2 # From configure.in Id: 81bd528fb5194c83d688db355737b7715448b958 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.69.
6 # Copyright 1998-2014 The OpenLDAP Foundation. All rights reserved.
7 # Restrictions apply, see COPYRIGHT and LICENSE files.
10 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
13 # This configure script is free software; the Free Software Foundation
14 # gives unlimited permission to copy, distribute and modify it.
15 ## -------------------- ##
16 ## M4sh Initialization. ##
17 ## -------------------- ##
19 # Be more Bourne compatible
20 DUALCASE=1; export DUALCASE # for MKS sh
21 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
29 case `(set -o) 2>/dev/null` in #(
41 # Printing a long string crashes Solaris 7 /usr/bin/printf.
42 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45 # Prefer a ksh shell builtin over an external printf program on Solaris,
46 # but without wasting forks for bash or zsh.
47 if test -z "$BASH_VERSION$ZSH_VERSION" \
48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo_n='print -rn --'
51 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57 as_echo_n='/usr/ucb/echo -n'
59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
64 expr "X$arg" : "X\\(.*\\)$as_nl";
65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
70 as_echo_n='sh -c $as_echo_n_body as_echo'
73 as_echo='sh -c $as_echo_body as_echo'
76 # The user is always right.
77 if test "${PATH_SEPARATOR+set}" != set; then
79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
87 # We need space, tab and new line, in precisely that order. Quoting is
88 # there to prevent editors from complaining about space-tab.
89 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
90 # splitting by setting IFS to empty value.)
93 # Find who we are. Look in the path if we contain no directory separator.
96 *[\\/]* ) as_myself=$0 ;;
97 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
101 test -z "$as_dir" && as_dir=.
102 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
108 # We did not find ourselves, most probably we were run as `sh COMMAND'
109 # in which case we are not to be found in the path.
110 if test "x$as_myself" = x; then
113 if test ! -f "$as_myself"; then
114 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
118 # Unset variables that we do not need and which cause bugs (e.g. in
119 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
120 # suppresses any "Segmentation fault" message there. '((' could
121 # trigger a bug in pdksh 5.2.14.
122 for as_var in BASH_ENV ENV MAIL MAILPATH
123 do eval test x\${$as_var+set} = xset \
124 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
137 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
139 # Use a proper internal environment variable to ensure we don't fall
140 # into an infinite loop, continuously re-executing ourselves.
141 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
142 _as_can_reexec=no; export _as_can_reexec;
143 # We cannot yet assume a decent shell, so we have to provide a
144 # neutralization value for shells without unset; and this also
145 # works around shells that cannot unset nonexistent variables.
146 # Preserve -v and -x to the replacement shell.
149 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
151 *v*x* | *x*v* ) as_opts=-vx ;;
156 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
157 # Admittedly, this is quite paranoid, since all the known shells bail
158 # out after a failed `exec'.
159 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
162 # We don't want this to propagate to other subprocesses.
163 { _as_can_reexec=; unset _as_can_reexec;}
164 if test "x$CONFIG_SHELL" = x; then
165 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
168 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
169 # is contrary to our usage. Disable this feature.
170 alias -g '\${1+\"\$@\"}'='\"\$@\"'
173 case \`(set -o) 2>/dev/null\` in #(
181 as_required="as_fn_return () { (exit \$1); }
182 as_fn_success () { as_fn_return 0; }
183 as_fn_failure () { as_fn_return 1; }
184 as_fn_ret_success () { return 0; }
185 as_fn_ret_failure () { return 1; }
188 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
189 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
190 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
191 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
192 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
195 exitcode=1; echo positional parameters were not saved.
197 test x\$exitcode = x0 || exit 1
199 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
200 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
201 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
202 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
203 test \$(( 1 + 1 )) = 2 || exit 1"
204 if (eval "$as_required") 2>/dev/null; then :
209 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
214 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
217 test -z "$as_dir" && as_dir=.
221 for as_base in sh bash ksh sh5; do
222 # Try only shells that exist, to save several forks.
223 as_shell=$as_dir/$as_base
224 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
225 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
226 CONFIG_SHELL=$as_shell as_have_required=yes
227 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
235 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
236 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
237 CONFIG_SHELL=$SHELL as_have_required=yes
242 if test "x$CONFIG_SHELL" != x; then :
244 # We cannot yet assume a decent shell, so we have to provide a
245 # neutralization value for shells without unset; and this also
246 # works around shells that cannot unset nonexistent variables.
247 # Preserve -v and -x to the replacement shell.
250 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
252 *v*x* | *x*v* ) as_opts=-vx ;;
257 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
258 # Admittedly, this is quite paranoid, since all the known shells bail
259 # out after a failed `exec'.
260 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
264 if test x$as_have_required = xno; then :
265 $as_echo "$0: This script requires a shell more modern than all"
266 $as_echo "$0: the shells that I found on your system."
267 if test x${ZSH_VERSION+set} = xset ; then
268 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
269 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
271 $as_echo "$0: Please tell bug-autoconf@gnu.org and
272 $0: <http://www.openldap.org/its/> about your system,
273 $0: including any error possibly output before this
274 $0: message. Then install a modern shell, or manually run
275 $0: the script under such a shell if you do have one."
281 SHELL=${CONFIG_SHELL-/bin/sh}
283 # Unset more variables known to interfere with behavior of common tools.
284 CLICOLOR_FORCE= GREP_OPTIONS=
285 unset CLICOLOR_FORCE GREP_OPTIONS
287 ## --------------------- ##
288 ## M4sh Shell Functions. ##
289 ## --------------------- ##
292 # Portably unset VAR.
295 { eval $1=; unset $1;}
299 # as_fn_set_status STATUS
300 # -----------------------
301 # Set $? to STATUS, without forking.
309 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
319 # Create "$as_dir" as a directory, including parents if necessary.
324 -*) as_dir=./$as_dir;;
326 test -d "$as_dir" || eval $as_mkdir_p || {
330 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
333 as_dirs="'$as_qdir' $as_dirs"
334 as_dir=`$as_dirname -- "$as_dir" ||
335 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
336 X"$as_dir" : 'X\(//\)[^/]' \| \
337 X"$as_dir" : 'X\(//\)$' \| \
338 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
339 $as_echo X"$as_dir" |
340 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
357 test -d "$as_dir" && break
359 test -z "$as_dirs" || eval "mkdir $as_dirs"
360 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
365 # as_fn_executable_p FILE
366 # -----------------------
367 # Test if FILE is an executable regular file.
368 as_fn_executable_p ()
370 test -f "$1" && test -x "$1"
371 } # as_fn_executable_p
372 # as_fn_append VAR VALUE
373 # ----------------------
374 # Append the text in VALUE to the end of the definition contained in VAR. Take
375 # advantage of any shell optimizations that allow amortized linear growth over
376 # repeated appends, instead of the typical quadratic growth present in naive
378 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
379 eval 'as_fn_append ()
392 # Perform arithmetic evaluation on the ARGs, and store the result in the
393 # global $as_val. Take advantage of shells that can avoid forks. The arguments
394 # must be portable across $(()) and expr.
395 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
403 as_val=`expr "$@" || test $? -eq 1`
408 # as_fn_error STATUS ERROR [LINENO LOG_FD]
409 # ----------------------------------------
410 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
411 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
412 # script with STATUS, using 1 if that was 0.
415 as_status=$1; test $as_status -eq 0 && as_status=1
417 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
418 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
420 $as_echo "$as_me: error: $2" >&2
421 as_fn_exit $as_status
424 if expr a : '\(a\)' >/dev/null 2>&1 &&
425 test "X`expr 00001 : '.*\(...\)'`" = X001; then
431 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
437 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
443 as_me=`$as_basename -- "$0" ||
444 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
445 X"$0" : 'X\(//\)$' \| \
446 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
448 sed '/^.*\/\([^/][^/]*\)\/*$/{
462 # Avoid depending upon Character Ranges.
463 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
464 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
465 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
466 as_cr_digits='0123456789'
467 as_cr_alnum=$as_cr_Letters$as_cr_digits
470 as_lineno_1=$LINENO as_lineno_1a=$LINENO
471 as_lineno_2=$LINENO as_lineno_2a=$LINENO
472 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
473 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
474 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
486 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
490 chmod +x "$as_me.lineno" ||
491 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
493 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
494 # already done that, so ensure we don't try to do so again and fall
495 # in an infinite loop. This has already happened in practice.
496 _as_can_reexec=no; export _as_can_reexec
497 # Don't try to exec as it changes $[0], causing all sort of problems
498 # (the dirname of $[0] is not the place where we might find the
499 # original and so on. Autoconf is especially sensitive to this).
501 # Exit status is that of the last command.
505 ECHO_C= ECHO_N= ECHO_T=
506 case `echo -n x` in #(((((
508 case `echo 'xy\c'` in
509 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
511 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
518 rm -f conf$$ conf$$.exe conf$$.file
519 if test -d conf$$.dir; then
520 rm -f conf$$.dir/conf$$.file
523 mkdir conf$$.dir 2>/dev/null
525 if (echo >conf$$.file) 2>/dev/null; then
526 if ln -s conf$$.file conf$$ 2>/dev/null; then
528 # ... but there are two gotchas:
529 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
530 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
531 # In both cases, we have to default to `cp -pR'.
532 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
534 elif ln conf$$.file conf$$ 2>/dev/null; then
542 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
543 rmdir conf$$.dir 2>/dev/null
545 if mkdir -p . 2>/dev/null; then
546 as_mkdir_p='mkdir -p "$as_dir"'
548 test -d ./-p && rmdir ./-p
553 as_executable_p=as_fn_executable_p
555 # Sed expression to map a string onto a valid CPP name.
556 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
558 # Sed expression to map a string onto a valid variable name.
559 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
563 # Check that we are running under the correct shell.
564 SHELL=${CONFIG_SHELL-/bin/sh}
568 # Remove one level of quotation (which was required for Make).
569 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
574 if test "X$1" = X--no-reexec; then
575 # Discard the --no-reexec flag, and continue.
577 elif test "X$1" = X--fallback-echo; then
578 # Avoid inline document here, it may be left over
580 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
581 # Yippee, $echo works!
584 # Restart under the correct shell.
585 exec $SHELL "$0" --no-reexec ${1+"$@"}
588 if test "X$1" = X--fallback-echo; then
589 # used as fallback echo
597 # The HP-UX ksh and POSIX shell print the target directory to stdout
599 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
601 if test -z "$ECHO"; then
602 if test "X${echo_test_string+set}" != Xset; then
603 # find a string as large as possible, as long as the shell can cope with it
604 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
605 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
606 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
607 echo_test_string=`eval $cmd` &&
608 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
615 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
616 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
617 test "X$echo_testing_string" = "X$echo_test_string"; then
620 # The Solaris, AIX, and Digital Unix default echo programs unquote
621 # backslashes. This makes it impossible to quote backslashes using
622 # echo "$something" | sed 's/\\/\\\\/g'
624 # So, first we look for a working echo in the user's PATH.
626 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
627 for dir in $PATH /usr/ucb; do
629 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
630 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
631 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
632 test "X$echo_testing_string" = "X$echo_test_string"; then
639 if test "X$echo" = Xecho; then
640 # We didn't find a better echo, so look for alternatives.
641 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
642 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
643 test "X$echo_testing_string" = "X$echo_test_string"; then
644 # This shell has a builtin print -r that does the trick.
646 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
647 test "X$CONFIG_SHELL" != X/bin/ksh; then
648 # If we have ksh, try running configure again with it.
649 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
650 export ORIGINAL_CONFIG_SHELL
651 CONFIG_SHELL=/bin/ksh
653 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
657 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
658 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
659 test "X$echo_testing_string" = "X$echo_test_string"; then
662 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
663 test "X$echo_testing_string" = 'X\t' &&
664 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
665 test "X$echo_testing_string" = "X$echo_test_string"; then
666 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
668 SHELL="$CONFIG_SHELL"
670 echo="$CONFIG_SHELL $0 --fallback-echo"
671 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
672 test "X$echo_testing_string" = 'X\t' &&
673 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
674 test "X$echo_testing_string" = "X$echo_test_string"; then
675 echo="$CONFIG_SHELL $0 --fallback-echo"
677 # maybe with a smaller string...
680 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
681 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
688 if test "$prev" != 'sed 50q "$0"'; then
689 echo_test_string=`eval $prev`
690 export echo_test_string
691 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
693 # Oops. We lost completely, so just stick with echo.
702 # Copy echo and quote the copy suitably for passing to libtool from
703 # the Makefile, instead of quoting the original, which is used later.
705 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
706 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
712 test -n "$DJDIR" || exec 7<&0 </dev/null
716 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
717 # so uname gets run too.
718 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
723 ac_default_prefix=/usr/local
725 ac_config_libobj_dir=.
732 # Identity of this package.
740 ac_unique_file="OpenLDAP"
741 ac_unique_file="build/version.sh"
742 ac_default_prefix=/usr/local
743 # Factoring default headers for most tests.
744 ac_includes_default="\
746 #ifdef HAVE_SYS_TYPES_H
747 # include <sys/types.h>
749 #ifdef HAVE_SYS_STAT_H
750 # include <sys/stat.h>
756 # ifdef HAVE_STDLIB_H
761 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
766 #ifdef HAVE_STRINGS_H
767 # include <strings.h>
769 #ifdef HAVE_INTTYPES_H
770 # include <inttypes.h>
779 ac_subst_vars='LTLIBOBJS
797 SLAPD_DYNAMIC_OVERLAYS
798 SLAPD_STATIC_OVERLAYS
799 SLAPD_DYNAMIC_BACKENDS
800 SLAPD_STATIC_BACKENDS
802 SLAPD_MODULES_LDFLAGS
803 SLAPD_MODULES_CPPFLAGS
895 OPENLDAP_RELEASE_DATE
905 INSTALL_STRIP_PROGRAM
958 program_transform_name
971 enable_option_checking
986 enable_xxslapdoptions
1000 enable_xxslapbackends
1017 enable_xxslapoverlays
1043 enable_dependency_tracking
1050 ac_precious_vars='build_alias
1061 # Initialize some variables set by options.
1063 ac_init_version=false
1064 ac_unrecognized_opts=
1065 ac_unrecognized_sep=
1066 # The variables have the same names as the options, with
1067 # dashes changed to underlines.
1068 cache_file=/dev/null
1075 program_transform_name=s,x,x,
1083 # Installation directory options.
1084 # These are left unexpanded so users can "make install exec_prefix=/foo"
1085 # and all the variables that are supposed to be based on exec_prefix
1086 # by default will actually change.
1087 # Use braces instead of parens because sh, perl, etc. also accept them.
1088 # (The list follows the same order as the GNU Coding Standards.)
1089 bindir='${exec_prefix}/bin'
1090 sbindir='${exec_prefix}/sbin'
1091 libexecdir='${exec_prefix}/libexec'
1092 datarootdir='${prefix}/share'
1093 datadir='${datarootdir}'
1094 sysconfdir='${prefix}/etc'
1095 sharedstatedir='${prefix}/com'
1096 localstatedir='${prefix}/var'
1097 includedir='${prefix}/include'
1098 oldincludedir='/usr/include'
1099 docdir='${datarootdir}/doc/${PACKAGE}'
1100 infodir='${datarootdir}/info'
1105 libdir='${exec_prefix}/lib'
1106 localedir='${datarootdir}/locale'
1107 mandir='${datarootdir}/man'
1113 # If the previous option needs an argument, assign it.
1114 if test -n "$ac_prev"; then
1115 eval $ac_prev=\$ac_option
1121 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1126 # Accept the important Cygnus configure options, so we can diagnose typos.
1128 case $ac_dashdash$ac_option in
1132 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1134 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1135 bindir=$ac_optarg ;;
1137 -build | --build | --buil | --bui | --bu)
1138 ac_prev=build_alias ;;
1139 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1140 build_alias=$ac_optarg ;;
1142 -cache-file | --cache-file | --cache-fil | --cache-fi \
1143 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1144 ac_prev=cache_file ;;
1145 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1146 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1147 cache_file=$ac_optarg ;;
1149 --config-cache | -C)
1150 cache_file=config.cache ;;
1152 -datadir | --datadir | --datadi | --datad)
1154 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1155 datadir=$ac_optarg ;;
1157 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1158 | --dataroo | --dataro | --datar)
1159 ac_prev=datarootdir ;;
1160 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1161 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1162 datarootdir=$ac_optarg ;;
1164 -disable-* | --disable-*)
1165 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1166 # Reject names that are not valid shell variable names.
1167 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1168 as_fn_error $? "invalid feature name: $ac_useropt"
1169 ac_useropt_orig=$ac_useropt
1170 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1171 case $ac_user_opts in
1173 "enable_$ac_useropt"
1175 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1176 ac_unrecognized_sep=', ';;
1178 eval enable_$ac_useropt=no ;;
1180 -docdir | --docdir | --docdi | --doc | --do)
1182 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1183 docdir=$ac_optarg ;;
1185 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1187 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1188 dvidir=$ac_optarg ;;
1190 -enable-* | --enable-*)
1191 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1192 # Reject names that are not valid shell variable names.
1193 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1194 as_fn_error $? "invalid feature name: $ac_useropt"
1195 ac_useropt_orig=$ac_useropt
1196 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1197 case $ac_user_opts in
1199 "enable_$ac_useropt"
1201 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1202 ac_unrecognized_sep=', ';;
1204 eval enable_$ac_useropt=\$ac_optarg ;;
1206 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1207 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1208 | --exec | --exe | --ex)
1209 ac_prev=exec_prefix ;;
1210 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1211 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1212 | --exec=* | --exe=* | --ex=*)
1213 exec_prefix=$ac_optarg ;;
1215 -gas | --gas | --ga | --g)
1216 # Obsolete; use --with-gas.
1219 -help | --help | --hel | --he | -h)
1220 ac_init_help=long ;;
1221 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1222 ac_init_help=recursive ;;
1223 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1224 ac_init_help=short ;;
1226 -host | --host | --hos | --ho)
1227 ac_prev=host_alias ;;
1228 -host=* | --host=* | --hos=* | --ho=*)
1229 host_alias=$ac_optarg ;;
1231 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1233 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1235 htmldir=$ac_optarg ;;
1237 -includedir | --includedir | --includedi | --included | --include \
1238 | --includ | --inclu | --incl | --inc)
1239 ac_prev=includedir ;;
1240 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1241 | --includ=* | --inclu=* | --incl=* | --inc=*)
1242 includedir=$ac_optarg ;;
1244 -infodir | --infodir | --infodi | --infod | --info | --inf)
1246 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1247 infodir=$ac_optarg ;;
1249 -libdir | --libdir | --libdi | --libd)
1251 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1252 libdir=$ac_optarg ;;
1254 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1255 | --libexe | --libex | --libe)
1256 ac_prev=libexecdir ;;
1257 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1258 | --libexe=* | --libex=* | --libe=*)
1259 libexecdir=$ac_optarg ;;
1261 -localedir | --localedir | --localedi | --localed | --locale)
1262 ac_prev=localedir ;;
1263 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1264 localedir=$ac_optarg ;;
1266 -localstatedir | --localstatedir | --localstatedi | --localstated \
1267 | --localstate | --localstat | --localsta | --localst | --locals)
1268 ac_prev=localstatedir ;;
1269 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1270 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1271 localstatedir=$ac_optarg ;;
1273 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1275 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1276 mandir=$ac_optarg ;;
1278 -nfp | --nfp | --nf)
1279 # Obsolete; use --without-fp.
1282 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1283 | --no-cr | --no-c | -n)
1286 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1287 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1290 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1291 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1292 | --oldin | --oldi | --old | --ol | --o)
1293 ac_prev=oldincludedir ;;
1294 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1295 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1296 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1297 oldincludedir=$ac_optarg ;;
1299 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1301 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1302 prefix=$ac_optarg ;;
1304 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1305 | --program-pre | --program-pr | --program-p)
1306 ac_prev=program_prefix ;;
1307 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1308 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1309 program_prefix=$ac_optarg ;;
1311 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1312 | --program-suf | --program-su | --program-s)
1313 ac_prev=program_suffix ;;
1314 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1315 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1316 program_suffix=$ac_optarg ;;
1318 -program-transform-name | --program-transform-name \
1319 | --program-transform-nam | --program-transform-na \
1320 | --program-transform-n | --program-transform- \
1321 | --program-transform | --program-transfor \
1322 | --program-transfo | --program-transf \
1323 | --program-trans | --program-tran \
1324 | --progr-tra | --program-tr | --program-t)
1325 ac_prev=program_transform_name ;;
1326 -program-transform-name=* | --program-transform-name=* \
1327 | --program-transform-nam=* | --program-transform-na=* \
1328 | --program-transform-n=* | --program-transform-=* \
1329 | --program-transform=* | --program-transfor=* \
1330 | --program-transfo=* | --program-transf=* \
1331 | --program-trans=* | --program-tran=* \
1332 | --progr-tra=* | --program-tr=* | --program-t=*)
1333 program_transform_name=$ac_optarg ;;
1335 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1337 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1338 pdfdir=$ac_optarg ;;
1340 -psdir | --psdir | --psdi | --psd | --ps)
1342 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1345 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1346 | -silent | --silent | --silen | --sile | --sil)
1349 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1351 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1353 sbindir=$ac_optarg ;;
1355 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1356 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1357 | --sharedst | --shareds | --shared | --share | --shar \
1359 ac_prev=sharedstatedir ;;
1360 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1361 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1362 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1364 sharedstatedir=$ac_optarg ;;
1366 -site | --site | --sit)
1368 -site=* | --site=* | --sit=*)
1371 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1373 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1374 srcdir=$ac_optarg ;;
1376 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1377 | --syscon | --sysco | --sysc | --sys | --sy)
1378 ac_prev=sysconfdir ;;
1379 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1380 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1381 sysconfdir=$ac_optarg ;;
1383 -target | --target | --targe | --targ | --tar | --ta | --t)
1384 ac_prev=target_alias ;;
1385 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1386 target_alias=$ac_optarg ;;
1388 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1391 -version | --version | --versio | --versi | --vers | -V)
1392 ac_init_version=: ;;
1395 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1396 # Reject names that are not valid shell variable names.
1397 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1398 as_fn_error $? "invalid package name: $ac_useropt"
1399 ac_useropt_orig=$ac_useropt
1400 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1401 case $ac_user_opts in
1405 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1406 ac_unrecognized_sep=', ';;
1408 eval with_$ac_useropt=\$ac_optarg ;;
1410 -without-* | --without-*)
1411 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1412 # Reject names that are not valid shell variable names.
1413 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1414 as_fn_error $? "invalid package name: $ac_useropt"
1415 ac_useropt_orig=$ac_useropt
1416 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1417 case $ac_user_opts in
1421 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1422 ac_unrecognized_sep=', ';;
1424 eval with_$ac_useropt=no ;;
1427 # Obsolete; use --with-x.
1430 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1431 | --x-incl | --x-inc | --x-in | --x-i)
1432 ac_prev=x_includes ;;
1433 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1434 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1435 x_includes=$ac_optarg ;;
1437 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1438 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1439 ac_prev=x_libraries ;;
1440 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1441 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1442 x_libraries=$ac_optarg ;;
1444 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1445 Try \`$0 --help' for more information"
1449 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1450 # Reject names that are not valid shell variable names.
1451 case $ac_envvar in #(
1452 '' | [0-9]* | *[!_$as_cr_alnum]* )
1453 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1455 eval $ac_envvar=\$ac_optarg
1456 export $ac_envvar ;;
1459 # FIXME: should be removed in autoconf 3.0.
1460 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1461 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1462 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1463 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1469 if test -n "$ac_prev"; then
1470 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1471 as_fn_error $? "missing argument to $ac_option"
1474 if test -n "$ac_unrecognized_opts"; then
1475 case $enable_option_checking in
1477 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1478 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1482 # Check all directory arguments for consistency.
1483 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1484 datadir sysconfdir sharedstatedir localstatedir includedir \
1485 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1486 libdir localedir mandir
1488 eval ac_val=\$$ac_var
1489 # Remove trailing slashes.
1492 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1493 eval $ac_var=\$ac_val;;
1495 # Be sure to have absolute directory names.
1497 [\\/$]* | ?:[\\/]* ) continue;;
1498 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1500 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1503 # There might be people who depend on the old broken behavior: `$host'
1504 # used to hold the argument of --host etc.
1505 # FIXME: To remove some day.
1508 target=$target_alias
1510 # FIXME: To remove some day.
1511 if test "x$host_alias" != x; then
1512 if test "x$build_alias" = x; then
1513 cross_compiling=maybe
1514 elif test "x$build_alias" != "x$host_alias"; then
1520 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1522 test "$silent" = yes && exec 6>/dev/null
1525 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1526 ac_ls_di=`ls -di .` &&
1527 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1528 as_fn_error $? "working directory cannot be determined"
1529 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1530 as_fn_error $? "pwd does not report name of working directory"
1533 # Find the source files, if location was not specified.
1534 if test -z "$srcdir"; then
1535 ac_srcdir_defaulted=yes
1536 # Try the directory containing this script, then the parent directory.
1537 ac_confdir=`$as_dirname -- "$as_myself" ||
1538 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1539 X"$as_myself" : 'X\(//\)[^/]' \| \
1540 X"$as_myself" : 'X\(//\)$' \| \
1541 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1542 $as_echo X"$as_myself" |
1543 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1561 if test ! -r "$srcdir/$ac_unique_file"; then
1565 ac_srcdir_defaulted=no
1567 if test ! -r "$srcdir/$ac_unique_file"; then
1568 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1569 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1571 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1573 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1575 # When building in place, set srcdir=.
1576 if test "$ac_abs_confdir" = "$ac_pwd"; then
1579 # Remove unnecessary trailing slashes from srcdir.
1580 # Double slashes in file names in object file debugging info
1581 # mess up M-x gdb in Emacs.
1583 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1585 for ac_var in $ac_precious_vars; do
1586 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1587 eval ac_env_${ac_var}_value=\$${ac_var}
1588 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1589 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1593 # Report the --help message.
1595 if test "$ac_init_help" = "long"; then
1596 # Omit some internal or obsolete options to make the list less imposing.
1597 # This message is too long to be a string in the A/UX 3.1 sh.
1599 \`configure' configures this package to adapt to many kinds of systems.
1601 Usage: $0 [OPTION]... [VAR=VALUE]...
1603 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1604 VAR=VALUE. See below for descriptions of some of the useful variables.
1606 Defaults for the options are specified in brackets.
1609 -h, --help display this help and exit
1610 --help=short display options specific to this package
1611 --help=recursive display the short help of all the included packages
1612 -V, --version display version information and exit
1613 -q, --quiet, --silent do not print \`checking ...' messages
1614 --cache-file=FILE cache test results in FILE [disabled]
1615 -C, --config-cache alias for \`--cache-file=config.cache'
1616 -n, --no-create do not create output files
1617 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1619 Installation directories:
1620 --prefix=PREFIX install architecture-independent files in PREFIX
1621 [$ac_default_prefix]
1622 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1625 By default, \`make install' will install all the files in
1626 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1627 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1628 for instance \`--prefix=\$HOME'.
1630 For better control, use the options below.
1632 Fine tuning of the installation directories:
1633 --bindir=DIR user executables [EPREFIX/bin]
1634 --sbindir=DIR system admin executables [EPREFIX/sbin]
1635 --libexecdir=DIR program executables [EPREFIX/libexec]
1636 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1637 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1638 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1639 --libdir=DIR object code libraries [EPREFIX/lib]
1640 --includedir=DIR C header files [PREFIX/include]
1641 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1642 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1643 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1644 --infodir=DIR info documentation [DATAROOTDIR/info]
1645 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1646 --mandir=DIR man documentation [DATAROOTDIR/man]
1647 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1648 --htmldir=DIR html documentation [DOCDIR]
1649 --dvidir=DIR dvi documentation [DOCDIR]
1650 --pdfdir=DIR pdf documentation [DOCDIR]
1651 --psdir=DIR ps documentation [DOCDIR]
1657 --program-prefix=PREFIX prepend PREFIX to installed program names
1658 --program-suffix=SUFFIX append SUFFIX to installed program names
1659 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1662 --build=BUILD configure for building on BUILD [guessed]
1663 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1664 --target=TARGET configure for building compilers for TARGET [HOST]
1668 if test -n "$ac_init_help"; then
1673 --disable-option-checking ignore unrecognized --enable/--with options
1674 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1675 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1676 --enable-debug enable debugging no|yes|traditional [yes]
1677 --enable-dynamic enable linking built binaries with dynamic libs [no]
1678 --enable-syslog enable syslog support [auto]
1679 --enable-proctitle enable proctitle support [yes]
1680 --enable-ipv6 enable IPv6 support [auto]
1681 --enable-local enable AF_LOCAL (AF_UNIX) socket support [auto]
1683 SLAPD (Standalone LDAP Daemon) Options:
1684 --enable-slapd enable building slapd [yes]
1685 --enable-dynacl enable run-time loadable ACL support (experimental) [no]
1686 --enable-aci enable per-object ACIs (experimental) no|yes|mod [no]
1687 --enable-cleartext enable cleartext passwords [yes]
1688 --enable-crypt enable crypt(3) passwords [no]
1689 --enable-lmpasswd enable LAN Manager passwords [no]
1690 --enable-spasswd enable (Cyrus) SASL password verification [no]
1691 --enable-modules enable dynamic module support [no]
1692 --enable-rewrite enable DN rewriting in back-ldap and rwm overlay [auto]
1693 --enable-rlookups enable reverse lookups of client hostnames [no]
1694 --enable-slapi enable SLAPI support (experimental) [no]
1695 --enable-slp enable SLPv2 support [no]
1696 --enable-wrappers enable tcp wrapper support [no]
1698 SLAPD Backend Options:
1699 --enable-backends enable all available backends no|yes|mod
1700 --enable-bdb enable Berkeley DB backend no|yes|mod [yes]
1701 --enable-dnssrv enable dnssrv backend no|yes|mod [no]
1702 --enable-hdb enable Hierarchical DB backend no|yes|mod [yes]
1703 --enable-ldap enable ldap backend no|yes|mod [no]
1704 --enable-mdb enable mdb database backend no|yes|mod [yes]
1705 --enable-meta enable metadirectory backend no|yes|mod [no]
1706 --enable-monitor enable monitor backend no|yes|mod [yes]
1707 --enable-ndb enable MySQL NDB Cluster backend no|yes|mod [no]
1708 --enable-null enable null backend no|yes|mod [no]
1709 --enable-passwd enable passwd backend no|yes|mod [no]
1710 --enable-perl enable perl backend no|yes|mod [no]
1711 --enable-relay enable relay backend no|yes|mod [yes]
1712 --enable-shell enable shell backend no|yes|mod [no]
1713 --enable-sock enable sock backend no|yes|mod [no]
1714 --enable-sql enable sql backend no|yes|mod [no]
1716 SLAPD Overlay Options:
1717 --enable-overlays enable all available overlays no|yes|mod
1718 --enable-accesslog In-Directory Access Logging overlay no|yes|mod [no]
1719 --enable-auditlog Audit Logging overlay no|yes|mod [no]
1720 --enable-collect Collect overlay no|yes|mod [no]
1721 --enable-constraint Attribute Constraint overlay no|yes|mod [no]
1722 --enable-dds Dynamic Directory Services overlay no|yes|mod [no]
1723 --enable-deref Dereference overlay no|yes|mod [no]
1724 --enable-dyngroup Dynamic Group overlay no|yes|mod [no]
1725 --enable-dynlist Dynamic List overlay no|yes|mod [no]
1726 --enable-memberof Reverse Group Membership overlay no|yes|mod [no]
1727 --enable-ppolicy Password Policy overlay no|yes|mod [no]
1728 --enable-proxycache Proxy Cache overlay no|yes|mod [no]
1729 --enable-refint Referential Integrity overlay no|yes|mod [no]
1730 --enable-retcode Return Code testing overlay no|yes|mod [no]
1731 --enable-rwm Rewrite/Remap overlay no|yes|mod [no]
1732 --enable-seqmod Sequential Modify overlay no|yes|mod [no]
1733 --enable-sssvlv ServerSideSort/VLV overlay no|yes|mod [no]
1734 --enable-syncprov Syncrepl Provider overlay no|yes|mod [yes]
1735 --enable-translucent Translucent Proxy overlay no|yes|mod [no]
1736 --enable-unique Attribute Uniqueness overlay no|yes|mod [no]
1737 --enable-valsort Value Sorting overlay no|yes|mod [no]
1739 Library Generation & Linking Options
1740 --enable-static[=PKGS] build static libraries [default=yes]
1741 --enable-shared[=PKGS] build shared libraries [default=yes]
1742 --enable-fast-install[=PKGS]
1743 optimize for fast installation [default=yes]
1744 --disable-dependency-tracking speeds up one-time build
1745 --enable-dependency-tracking do not reject slow dependency extractors
1746 --disable-libtool-lock avoid locking (might break parallel builds)
1749 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1750 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1751 --with-subdir=DIR change default subdirectory used for installs
1752 --with-cyrus-sasl with Cyrus SASL support [auto]
1753 --with-fetch with fetch(3) URL support [auto]
1754 --with-threads with threads [auto]
1755 --with-tls with TLS/SSL support auto|openssl|gnutls|moznss [auto]
1756 --with-yielding-select with implicitly yielding select [auto]
1757 --with-mp with multiple precision statistics auto|longlong|long|bignum|gmp [auto]
1758 --with-odbc with specific ODBC support iodbc|unixodbc|odbc32|auto [auto]
1759 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1760 --with-pic try to use only PIC/non-PIC objects [default=use
1762 --with-tags[=TAGS] include additional configurations [automatic]
1764 See INSTALL file for further details.
1766 Some influential environment variables:
1767 CC C compiler command
1768 CFLAGS C compiler flags
1769 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1770 nonstandard directory <lib dir>
1771 LIBS libraries to pass to the linker, e.g. -l<library>
1772 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1773 you have headers in a nonstandard directory <include dir>
1776 Use these variables to override the choices made by `configure' or to help
1777 it to find libraries and programs with nonstandard names/locations.
1779 Report bugs to the package provider.
1784 if test "$ac_init_help" = "recursive"; then
1785 # If there are subdirs, report their specific --help.
1786 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1787 test -d "$ac_dir" ||
1788 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1793 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1795 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1796 # A ".." for each directory in $ac_dir_suffix.
1797 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1798 case $ac_top_builddir_sub in
1799 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1800 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1803 ac_abs_top_builddir=$ac_pwd
1804 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1805 # for backward compatibility:
1806 ac_top_builddir=$ac_top_build_prefix
1809 .) # We are building in place.
1811 ac_top_srcdir=$ac_top_builddir_sub
1812 ac_abs_top_srcdir=$ac_pwd ;;
1813 [\\/]* | ?:[\\/]* ) # Absolute name.
1814 ac_srcdir=$srcdir$ac_dir_suffix;
1815 ac_top_srcdir=$srcdir
1816 ac_abs_top_srcdir=$srcdir ;;
1818 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1819 ac_top_srcdir=$ac_top_build_prefix$srcdir
1820 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1822 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1824 cd "$ac_dir" || { ac_status=$?; continue; }
1825 # Check for guested configure.
1826 if test -f "$ac_srcdir/configure.gnu"; then
1828 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1829 elif test -f "$ac_srcdir/configure"; then
1831 $SHELL "$ac_srcdir/configure" --help=recursive
1833 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1835 cd "$ac_pwd" || { ac_status=$?; break; }
1839 test -n "$ac_init_help" && exit $ac_status
1840 if $ac_init_version; then
1843 generated by GNU Autoconf 2.69
1845 Copyright (C) 2012 Free Software Foundation, Inc.
1846 This configure script is free software; the Free Software Foundation
1847 gives unlimited permission to copy, distribute and modify it.
1849 Copyright 1998-2014 The OpenLDAP Foundation. All rights reserved.
1850 Restrictions apply, see COPYRIGHT and LICENSE files.
1855 ## ------------------------ ##
1856 ## Autoconf initialization. ##
1857 ## ------------------------ ##
1859 # ac_fn_c_try_compile LINENO
1860 # --------------------------
1861 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1862 ac_fn_c_try_compile ()
1864 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1865 rm -f conftest.$ac_objext
1866 if { { ac_try="$ac_compile"
1868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1869 *) ac_try_echo=$ac_try;;
1871 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1872 $as_echo "$ac_try_echo"; } >&5
1873 (eval "$ac_compile") 2>conftest.err
1875 if test -s conftest.err; then
1876 grep -v '^ *+' conftest.err >conftest.er1
1877 cat conftest.er1 >&5
1878 mv -f conftest.er1 conftest.err
1880 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1881 test $ac_status = 0; } && {
1882 test -z "$ac_c_werror_flag" ||
1883 test ! -s conftest.err
1884 } && test -s conftest.$ac_objext; then :
1887 $as_echo "$as_me: failed program was:" >&5
1888 sed 's/^/| /' conftest.$ac_ext >&5
1892 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1893 as_fn_set_status $ac_retval
1895 } # ac_fn_c_try_compile
1897 # ac_fn_c_try_link LINENO
1898 # -----------------------
1899 # Try to link conftest.$ac_ext, and return whether this succeeded.
1902 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1903 rm -f conftest.$ac_objext conftest$ac_exeext
1904 if { { ac_try="$ac_link"
1906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1907 *) ac_try_echo=$ac_try;;
1909 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1910 $as_echo "$ac_try_echo"; } >&5
1911 (eval "$ac_link") 2>conftest.err
1913 if test -s conftest.err; then
1914 grep -v '^ *+' conftest.err >conftest.er1
1915 cat conftest.er1 >&5
1916 mv -f conftest.er1 conftest.err
1918 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1919 test $ac_status = 0; } && {
1920 test -z "$ac_c_werror_flag" ||
1921 test ! -s conftest.err
1922 } && test -s conftest$ac_exeext && {
1923 test "$cross_compiling" = yes ||
1924 test -x conftest$ac_exeext
1928 $as_echo "$as_me: failed program was:" >&5
1929 sed 's/^/| /' conftest.$ac_ext >&5
1933 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1934 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1935 # interfere with the next link command; also delete a directory that is
1936 # left behind by Apple's compiler. We do this before executing the actions.
1937 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1938 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1939 as_fn_set_status $ac_retval
1941 } # ac_fn_c_try_link
1943 # ac_fn_c_try_cpp LINENO
1944 # ----------------------
1945 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1948 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1949 if { { ac_try="$ac_cpp conftest.$ac_ext"
1951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1952 *) ac_try_echo=$ac_try;;
1954 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1955 $as_echo "$ac_try_echo"; } >&5
1956 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1958 if test -s conftest.err; then
1959 grep -v '^ *+' conftest.err >conftest.er1
1960 cat conftest.er1 >&5
1961 mv -f conftest.er1 conftest.err
1963 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1964 test $ac_status = 0; } > conftest.i && {
1965 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1966 test ! -s conftest.err
1970 $as_echo "$as_me: failed program was:" >&5
1971 sed 's/^/| /' conftest.$ac_ext >&5
1975 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1976 as_fn_set_status $ac_retval
1980 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1981 # -------------------------------------------------------
1982 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1983 # the include files in INCLUDES and setting the cache variable VAR
1985 ac_fn_c_check_header_mongrel ()
1987 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1988 if eval \${$3+:} false; then :
1989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1990 $as_echo_n "checking for $2... " >&6; }
1991 if eval \${$3+:} false; then :
1992 $as_echo_n "(cached) " >&6
1995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1996 $as_echo "$ac_res" >&6; }
1998 # Is the header compilable?
1999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2000 $as_echo_n "checking $2 usability... " >&6; }
2001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2002 /* end confdefs.h. */
2006 if ac_fn_c_try_compile "$LINENO"; then :
2007 ac_header_compiler=yes
2009 ac_header_compiler=no
2011 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2013 $as_echo "$ac_header_compiler" >&6; }
2015 # Is the header present?
2016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2017 $as_echo_n "checking $2 presence... " >&6; }
2018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2019 /* end confdefs.h. */
2022 if ac_fn_c_try_cpp "$LINENO"; then :
2023 ac_header_preproc=yes
2025 ac_header_preproc=no
2027 rm -f conftest.err conftest.i conftest.$ac_ext
2028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2029 $as_echo "$ac_header_preproc" >&6; }
2031 # So? What about this header?
2032 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2034 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2035 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2036 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2037 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2040 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2041 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2042 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2043 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2044 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2045 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2046 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2047 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2048 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2049 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2050 ( $as_echo "## --------------------------------------------- ##
2051 ## Report this to <http://www.openldap.org/its/> ##
2052 ## --------------------------------------------- ##"
2053 ) | sed "s/^/$as_me: WARNING: /" >&2
2056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2057 $as_echo_n "checking for $2... " >&6; }
2058 if eval \${$3+:} false; then :
2059 $as_echo_n "(cached) " >&6
2061 eval "$3=\$ac_header_compiler"
2064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2065 $as_echo "$ac_res" >&6; }
2067 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2069 } # ac_fn_c_check_header_mongrel
2071 # ac_fn_c_try_run LINENO
2072 # ----------------------
2073 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2074 # that executables *can* be run.
2077 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2078 if { { ac_try="$ac_link"
2080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2081 *) ac_try_echo=$ac_try;;
2083 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2084 $as_echo "$ac_try_echo"; } >&5
2085 (eval "$ac_link") 2>&5
2087 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2088 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2089 { { case "(($ac_try" in
2090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2091 *) ac_try_echo=$ac_try;;
2093 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2094 $as_echo "$ac_try_echo"; } >&5
2095 (eval "$ac_try") 2>&5
2097 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2098 test $ac_status = 0; }; }; then :
2101 $as_echo "$as_me: program exited with status $ac_status" >&5
2102 $as_echo "$as_me: failed program was:" >&5
2103 sed 's/^/| /' conftest.$ac_ext >&5
2105 ac_retval=$ac_status
2107 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2108 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2109 as_fn_set_status $ac_retval
2113 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2114 # -------------------------------------------------------
2115 # Tests whether HEADER exists and can be compiled using the include files in
2116 # INCLUDES, setting the cache variable VAR accordingly.
2117 ac_fn_c_check_header_compile ()
2119 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2121 $as_echo_n "checking for $2... " >&6; }
2122 if eval \${$3+:} false; then :
2123 $as_echo_n "(cached) " >&6
2125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2126 /* end confdefs.h. */
2130 if ac_fn_c_try_compile "$LINENO"; then :
2135 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2139 $as_echo "$ac_res" >&6; }
2140 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2142 } # ac_fn_c_check_header_compile
2144 # ac_fn_c_check_func LINENO FUNC VAR
2145 # ----------------------------------
2146 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2147 ac_fn_c_check_func ()
2149 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2151 $as_echo_n "checking for $2... " >&6; }
2152 if eval \${$3+:} false; then :
2153 $as_echo_n "(cached) " >&6
2155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2156 /* end confdefs.h. */
2157 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2158 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2159 #define $2 innocuous_$2
2161 /* System header to define __stub macros and hopefully few prototypes,
2162 which can conflict with char $2 (); below.
2163 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2164 <limits.h> exists even on freestanding compilers. */
2167 # include <limits.h>
2169 # include <assert.h>
2174 /* Override any GCC internal prototype to avoid an error.
2175 Use char because int might match the return type of a GCC
2176 builtin and then its argument prototype would still apply. */
2181 /* The GNU C library defines this for functions which it implements
2182 to always fail with ENOSYS. Some functions are actually named
2183 something starting with __ and the normal name is an alias. */
2184 #if defined __stub_$2 || defined __stub___$2
2196 if ac_fn_c_try_link "$LINENO"; then :
2201 rm -f core conftest.err conftest.$ac_objext \
2202 conftest$ac_exeext conftest.$ac_ext
2205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2206 $as_echo "$ac_res" >&6; }
2207 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2209 } # ac_fn_c_check_func
2211 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2212 # -------------------------------------------
2213 # Tests whether TYPE exists after having included INCLUDES, setting cache
2214 # variable VAR accordingly.
2215 ac_fn_c_check_type ()
2217 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2219 $as_echo_n "checking for $2... " >&6; }
2220 if eval \${$3+:} false; then :
2221 $as_echo_n "(cached) " >&6
2224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2225 /* end confdefs.h. */
2236 if ac_fn_c_try_compile "$LINENO"; then :
2237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2238 /* end confdefs.h. */
2249 if ac_fn_c_try_compile "$LINENO"; then :
2254 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2256 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2260 $as_echo "$ac_res" >&6; }
2261 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2263 } # ac_fn_c_check_type
2265 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2266 # ----------------------------------------------------
2267 # Tries to find if the field MEMBER exists in type AGGR, after including
2268 # INCLUDES, setting cache variable VAR accordingly.
2269 ac_fn_c_check_member ()
2271 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2273 $as_echo_n "checking for $2.$3... " >&6; }
2274 if eval \${$4+:} false; then :
2275 $as_echo_n "(cached) " >&6
2277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2278 /* end confdefs.h. */
2290 if ac_fn_c_try_compile "$LINENO"; then :
2293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2294 /* end confdefs.h. */
2300 if (sizeof ac_aggr.$3)
2306 if ac_fn_c_try_compile "$LINENO"; then :
2311 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2313 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2317 $as_echo "$ac_res" >&6; }
2318 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2320 } # ac_fn_c_check_member
2322 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2323 # --------------------------------------------
2324 # Tries to find the compile-time value of EXPR in a program that includes
2325 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2327 ac_fn_c_compute_int ()
2329 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2330 if test "$cross_compiling" = yes; then
2331 # Depending upon the size, compute the lo and hi bounds.
2332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2333 /* end confdefs.h. */
2338 static int test_array [1 - 2 * !(($2) >= 0)];
2340 return test_array [0];
2346 if ac_fn_c_try_compile "$LINENO"; then :
2349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2350 /* end confdefs.h. */
2355 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2357 return test_array [0];
2363 if ac_fn_c_try_compile "$LINENO"; then :
2364 ac_hi=$ac_mid; break
2366 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2367 if test $ac_lo -le $ac_mid; then
2371 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2373 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2377 /* end confdefs.h. */
2382 static int test_array [1 - 2 * !(($2) < 0)];
2384 return test_array [0];
2390 if ac_fn_c_try_compile "$LINENO"; then :
2393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2394 /* end confdefs.h. */
2399 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2401 return test_array [0];
2407 if ac_fn_c_try_compile "$LINENO"; then :
2408 ac_lo=$ac_mid; break
2410 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2411 if test $ac_mid -le $ac_hi; then
2415 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2417 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2422 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2424 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2425 # Binary search between lo and hi bounds.
2426 while test "x$ac_lo" != "x$ac_hi"; do
2427 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2429 /* end confdefs.h. */
2434 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2436 return test_array [0];
2442 if ac_fn_c_try_compile "$LINENO"; then :
2445 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2447 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2450 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2455 /* end confdefs.h. */
2457 static long int longval () { return $2; }
2458 static unsigned long int ulongval () { return $2; }
2465 FILE *f = fopen ("conftest.val", "w");
2470 long int i = longval ();
2473 fprintf (f, "%ld", i);
2477 unsigned long int i = ulongval ();
2480 fprintf (f, "%lu", i);
2482 /* Do not output a trailing newline, as this causes \r\n confusion
2483 on some platforms. */
2484 return ferror (f) || fclose (f) != 0;
2490 if ac_fn_c_try_run "$LINENO"; then :
2491 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2495 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2496 conftest.$ac_objext conftest.beam conftest.$ac_ext
2500 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2501 as_fn_set_status $ac_retval
2503 } # ac_fn_c_compute_int
2504 cat >config.log <<_ACEOF
2505 This file contains any messages produced by compilers while
2506 running configure, to aid debugging if configure makes a mistake.
2508 It was created by $as_me, which was
2509 generated by GNU Autoconf 2.69. Invocation command line was
2521 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2522 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2523 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2524 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2525 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2527 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2528 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2530 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2531 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2532 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2533 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2534 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2535 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2536 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2544 test -z "$as_dir" && as_dir=.
2545 $as_echo "PATH: $as_dir"
2561 # Keep a trace of the command line.
2562 # Strip out --no-create and --no-recursion so they do not pile up.
2563 # Strip out --silent because we don't want to record it for future runs.
2564 # Also quote any args containing shell meta-characters.
2565 # Make two passes to allow for proper duplicate-argument suppression.
2569 ac_must_keep_next=false
2575 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2576 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2577 | -silent | --silent | --silen | --sile | --sil)
2580 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2583 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2585 as_fn_append ac_configure_args1 " '$ac_arg'"
2586 if test $ac_must_keep_next = true; then
2587 ac_must_keep_next=false # Got value, back to normal.
2590 *=* | --config-cache | -C | -disable-* | --disable-* \
2591 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2592 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2593 | -with-* | --with-* | -without-* | --without-* | --x)
2594 case "$ac_configure_args0 " in
2595 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2598 -* ) ac_must_keep_next=true ;;
2601 as_fn_append ac_configure_args " '$ac_arg'"
2606 { ac_configure_args0=; unset ac_configure_args0;}
2607 { ac_configure_args1=; unset ac_configure_args1;}
2609 # When interrupted or exit'd, cleanup temporary files, and complete
2610 # config.log. We remove comments because anyway the quotes in there
2611 # would cause problems or look ugly.
2612 # WARNING: Use '\'' to represent an apostrophe within the trap.
2613 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2614 trap 'exit_status=$?
2615 # Save into config.log some information that might help in debugging.
2619 $as_echo "## ---------------- ##
2620 ## Cache variables. ##
2621 ## ---------------- ##"
2623 # The following way of writing the cache mishandles newlines in values,
2625 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2626 eval ac_val=\$$ac_var
2630 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2631 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2634 _ | IFS | as_nl) ;; #(
2635 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2636 *) { eval $ac_var=; unset $ac_var;} ;;
2641 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2642 *${as_nl}ac_space=\ *)
2644 "s/'\''/'\''\\\\'\'''\''/g;
2645 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2648 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2655 $as_echo "## ----------------- ##
2656 ## Output variables. ##
2657 ## ----------------- ##"
2659 for ac_var in $ac_subst_vars
2661 eval ac_val=\$$ac_var
2663 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2665 $as_echo "$ac_var='\''$ac_val'\''"
2669 if test -n "$ac_subst_files"; then
2670 $as_echo "## ------------------- ##
2671 ## File substitutions. ##
2672 ## ------------------- ##"
2674 for ac_var in $ac_subst_files
2676 eval ac_val=\$$ac_var
2678 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2680 $as_echo "$ac_var='\''$ac_val'\''"
2685 if test -s confdefs.h; then
2686 $as_echo "## ----------- ##
2693 test "$ac_signal" != 0 &&
2694 $as_echo "$as_me: caught signal $ac_signal"
2695 $as_echo "$as_me: exit $exit_status"
2697 rm -f core *.core core.conftest.* &&
2698 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2701 for ac_signal in 1 2 13 15; do
2702 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2706 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2707 rm -f -r conftest* confdefs.h
2709 $as_echo "/* confdefs.h */" > confdefs.h
2711 # Predefined preprocessor variables.
2713 cat >>confdefs.h <<_ACEOF
2714 #define PACKAGE_NAME "$PACKAGE_NAME"
2717 cat >>confdefs.h <<_ACEOF
2718 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2721 cat >>confdefs.h <<_ACEOF
2722 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2725 cat >>confdefs.h <<_ACEOF
2726 #define PACKAGE_STRING "$PACKAGE_STRING"
2729 cat >>confdefs.h <<_ACEOF
2730 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2733 cat >>confdefs.h <<_ACEOF
2734 #define PACKAGE_URL "$PACKAGE_URL"
2738 # Let the site file select an alternate cache file if it wants to.
2739 # Prefer an explicitly selected file to automatically selected ones.
2742 if test -n "$CONFIG_SITE"; then
2743 # We do not want a PATH search for config.site.
2744 case $CONFIG_SITE in #((
2745 -*) ac_site_file1=./$CONFIG_SITE;;
2746 */*) ac_site_file1=$CONFIG_SITE;;
2747 *) ac_site_file1=./$CONFIG_SITE;;
2749 elif test "x$prefix" != xNONE; then
2750 ac_site_file1=$prefix/share/config.site
2751 ac_site_file2=$prefix/etc/config.site
2753 ac_site_file1=$ac_default_prefix/share/config.site
2754 ac_site_file2=$ac_default_prefix/etc/config.site
2756 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2758 test "x$ac_site_file" = xNONE && continue
2759 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2760 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2761 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2762 sed 's/^/| /' "$ac_site_file" >&5
2764 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2765 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2766 as_fn_error $? "failed to load site script $ac_site_file
2767 See \`config.log' for more details" "$LINENO" 5; }
2772 # Check that the precious variables saved in the cache have kept the same
2774 ac_cache_corrupted=false
2775 for ac_var in $ac_precious_vars; do
2776 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2777 eval ac_new_set=\$ac_env_${ac_var}_set
2778 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2779 eval ac_new_val=\$ac_env_${ac_var}_value
2780 case $ac_old_set,$ac_new_set in
2782 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2783 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2784 ac_cache_corrupted=: ;;
2786 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2787 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2788 ac_cache_corrupted=: ;;
2791 if test "x$ac_old_val" != "x$ac_new_val"; then
2792 # differences in whitespace do not lead to failure.
2793 ac_old_val_w=`echo x $ac_old_val`
2794 ac_new_val_w=`echo x $ac_new_val`
2795 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2796 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2797 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2798 ac_cache_corrupted=:
2800 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2801 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2802 eval $ac_var=\$ac_old_val
2804 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2805 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2806 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2807 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2810 # Pass precious variables to config.status.
2811 if test "$ac_new_set" = set; then
2813 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2814 *) ac_arg=$ac_var=$ac_new_val ;;
2816 case " $ac_configure_args " in
2817 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2818 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2822 if $ac_cache_corrupted; then
2823 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2824 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2825 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2826 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2827 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2829 ## -------------------- ##
2830 ## Main body of script. ##
2831 ## -------------------- ##
2834 ac_cpp='$CPP $CPPFLAGS'
2835 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2836 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2837 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2867 for ac_dir in build "$srcdir"/build; do
2868 if test -f "$ac_dir/install-sh"; then
2870 ac_install_sh="$ac_aux_dir/install-sh -c"
2872 elif test -f "$ac_dir/install.sh"; then
2874 ac_install_sh="$ac_aux_dir/install.sh -c"
2876 elif test -f "$ac_dir/shtool"; then
2878 ac_install_sh="$ac_aux_dir/shtool install -c"
2882 if test -z "$ac_aux_dir"; then
2883 as_fn_error $? "cannot find install-sh, install.sh, or shtool in build \"$srcdir\"/build" "$LINENO" 5
2886 # These three variables are undocumented and unsupported,
2887 # and are intended to be withdrawn in a future Autoconf release.
2888 # They can cause serious problems if a builder's source tree is in a directory
2889 # whose full name contains unusual characters.
2890 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2891 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2892 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2895 eval `$ac_aux_dir/version.sh`
2896 if test -z "$OL_STRING"; then
2897 as_fn_error $? "could not determine version" "$LINENO" 5
2900 if test -f "$ac_aux_dir/shtool" && test ! -d $ac_aux_dir/shtool; then
2901 ac_cv_shtool="$ac_aux_dir/shtool"
2903 as_fn_error $? "no shtool found in $ac_aux_dir" "$LINENO" 5
2906 SHTOOL="$ac_cv_shtool"
2910 TB="`$SHTOOL echo -e '%B' 2>/dev/null`"
2911 TN="`$SHTOOL echo -e '%b' 2>/dev/null`"
2915 if test -d $ac_aux_dir/../.git; then
2916 OPENLDAP_REPO="(from Git clone) "
2917 elif test -d $ac_aux_dir/CVS; then
2918 OPENLDAP_REPO="(from CVS checkout) "
2921 echo "Configuring ${TB}${OL_STRING}${TN} ${OPENLDAP_REPO}..."
2923 # Make sure we can run config.sub.
2924 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2925 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2928 $as_echo_n "checking build system type... " >&6; }
2929 if ${ac_cv_build+:} false; then :
2930 $as_echo_n "(cached) " >&6
2932 ac_build_alias=$build_alias
2933 test "x$ac_build_alias" = x &&
2934 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2935 test "x$ac_build_alias" = x &&
2936 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2937 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2938 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2942 $as_echo "$ac_cv_build" >&6; }
2943 case $ac_cv_build in
2945 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2948 ac_save_IFS=$IFS; IFS='-'
2954 # Remember, the first character of IFS is used to create $*,
2955 # except with old shells:
2958 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2962 $as_echo_n "checking host system type... " >&6; }
2963 if ${ac_cv_host+:} false; then :
2964 $as_echo_n "(cached) " >&6
2966 if test "x$host_alias" = x; then
2967 ac_cv_host=$ac_cv_build
2969 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2970 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2975 $as_echo "$ac_cv_host" >&6; }
2978 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2981 ac_save_IFS=$IFS; IFS='-'
2987 # Remember, the first character of IFS is used to create $*,
2988 # except with old shells:
2991 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2995 $as_echo_n "checking target system type... " >&6; }
2996 if ${ac_cv_target+:} false; then :
2997 $as_echo_n "(cached) " >&6
2999 if test "x$target_alias" = x; then
3000 ac_cv_target=$ac_cv_host
3002 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3003 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3008 $as_echo "$ac_cv_target" >&6; }
3009 case $ac_cv_target in
3011 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
3013 target=$ac_cv_target
3014 ac_save_IFS=$IFS; IFS='-'
3020 # Remember, the first character of IFS is used to create $*,
3021 # except with old shells:
3024 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3027 # The aliases save the names the user supplied, while $host etc.
3028 # will get canonicalized.
3029 test -n "$target_alias" &&
3030 test "$program_prefix$program_suffix$program_transform_name" = \
3032 program_prefix=${target_alias}-
3034 am__api_version="1.9"
3035 # Find a good install program. We prefer a C program (faster),
3036 # so one script is as good as another. But avoid the broken or
3037 # incompatible versions:
3038 # SysV /etc/install, /usr/sbin/install
3039 # SunOS /usr/etc/install
3040 # IRIX /sbin/install
3042 # AmigaOS /C/install, which installs bootblocks on floppy discs
3043 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3044 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3045 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3046 # OS/2's system install, which has a completely different semantic
3047 # ./install, which can be erroneously created by make from ./install.sh.
3048 # Reject install programs that cannot install multiple files.
3049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3050 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3051 if test -z "$INSTALL"; then
3052 if ${ac_cv_path_install+:} false; then :
3053 $as_echo_n "(cached) " >&6
3055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3059 test -z "$as_dir" && as_dir=.
3060 # Account for people who put trailing slashes in PATH elements.
3061 case $as_dir/ in #((
3062 ./ | .// | /[cC]/* | \
3063 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3064 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3067 # OSF1 and SCO ODT 3.0 have their own names for install.
3068 # Don't use installbsd from OSF since it installs stuff as root
3070 for ac_prog in ginstall scoinst install; do
3071 for ac_exec_ext in '' $ac_executable_extensions; do
3072 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3073 if test $ac_prog = install &&
3074 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3075 # AIX install. It has an incompatible calling convention.
3077 elif test $ac_prog = install &&
3078 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3079 # program-specific install script used by HP pwplus--don't use.
3082 rm -rf conftest.one conftest.two conftest.dir
3083 echo one > conftest.one
3084 echo two > conftest.two
3086 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3087 test -s conftest.one && test -s conftest.two &&
3088 test -s conftest.dir/conftest.one &&
3089 test -s conftest.dir/conftest.two
3091 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3104 rm -rf conftest.one conftest.two conftest.dir
3107 if test "${ac_cv_path_install+set}" = set; then
3108 INSTALL=$ac_cv_path_install
3110 # As a last resort, use the slow shell script. Don't cache a
3111 # value for INSTALL within a source directory, because that will
3112 # break other packages using the cache if that directory is
3113 # removed, or if the value is a relative name.
3114 INSTALL=$ac_install_sh
3117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3118 $as_echo "$INSTALL" >&6; }
3120 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3121 # It thinks the first close brace ends the variable substitution.
3122 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3124 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3126 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3129 $as_echo_n "checking whether build environment is sane... " >&6; }
3132 echo timestamp > conftest.file
3133 # Do `set' in a subshell so we don't clobber the current shell's
3134 # arguments. Must try -L first in case configure is actually a
3135 # symlink; some systems play weird games with the mod time of symlinks
3136 # (eg FreeBSD returns the mod time of the symlink's containing
3139 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
3140 if test "$*" = "X"; then
3142 set X `ls -t $srcdir/configure conftest.file`
3145 if test "$*" != "X $srcdir/configure conftest.file" \
3146 && test "$*" != "X conftest.file $srcdir/configure"; then
3148 # If neither matched, then we have a broken ls. This can happen
3149 # if, for instance, CONFIG_SHELL is bash and it inherits a
3150 # broken ls alias from the environment. This has actually
3151 # happened. Such a system could not be considered "sane".
3152 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3153 alias in your environment" "$LINENO" 5
3156 test "$2" = conftest.file
3162 as_fn_error $? "newly created file is older than distributed files!
3163 Check your system clock" "$LINENO" 5
3165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3166 $as_echo "yes" >&6; }
3167 test "$program_prefix" != NONE &&
3168 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3169 # Use a double $ so make ignores it.
3170 test "$program_suffix" != NONE &&
3171 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3172 # Double any \ or $.
3173 # By default was `s,x,x', remove it if useless.
3174 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3175 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3177 # expand $ac_aux_dir to an absolute path
3178 am_aux_dir=`cd $ac_aux_dir && pwd`
3180 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
3181 # Use eval to expand $SHELL
3182 if eval "$MISSING --run true"; then
3183 am_missing_run="$MISSING --run "
3186 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3187 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3190 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
3191 # We used to keeping the `.' as first argument, in order to
3192 # allow $(mkdir_p) to be used without argument. As in
3193 # $(mkdir_p) $(somedir)
3194 # where $(somedir) is conditionally defined. However this is wrong
3196 # 1. if the package is installed by a user who cannot write `.'
3197 # make install will fail,
3198 # 2. the above comment should most certainly read
3199 # $(mkdir_p) $(DESTDIR)$(somedir)
3200 # so it does not work when $(somedir) is undefined and
3201 # $(DESTDIR) is not.
3202 # To support the latter case, we have to write
3203 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
3204 # so the `.' trick is pointless.
3205 mkdir_p='mkdir -p --'
3207 # On NextStep and OpenStep, the `mkdir' command does not
3208 # recognize any option. It will interpret all options as
3209 # directories to create, and then abort because `.' already
3211 for d in ./-p ./--version;
3213 test -d $d && rmdir $d
3215 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
3216 if test -f "$ac_aux_dir/mkinstalldirs"; then
3217 mkdir_p='$(mkinstalldirs)'
3219 mkdir_p='$(install_sh) -d'
3223 for ac_prog in gawk mawk nawk awk
3225 # Extract the first word of "$ac_prog", so it can be a program name with args.
3226 set dummy $ac_prog; ac_word=$2
3227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3228 $as_echo_n "checking for $ac_word... " >&6; }
3229 if ${ac_cv_prog_AWK+:} false; then :
3230 $as_echo_n "(cached) " >&6
3232 if test -n "$AWK"; then
3233 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3239 test -z "$as_dir" && as_dir=.
3240 for ac_exec_ext in '' $ac_executable_extensions; do
3241 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3242 ac_cv_prog_AWK="$ac_prog"
3243 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3253 if test -n "$AWK"; then
3254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3255 $as_echo "$AWK" >&6; }
3257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3258 $as_echo "no" >&6; }
3262 test -n "$AWK" && break
3265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3266 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3268 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3269 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3270 $as_echo_n "(cached) " >&6
3272 cat >conftest.make <<\_ACEOF
3275 @echo '@@@%%%=$(MAKE)=@@@%%%'
3277 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3278 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3280 eval ac_cv_prog_make_${ac_make}_set=yes;;
3282 eval ac_cv_prog_make_${ac_make}_set=no;;
3286 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3288 $as_echo "yes" >&6; }
3291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3292 $as_echo "no" >&6; }
3293 SET_MAKE="MAKE=${MAKE-make}"
3296 rm -rf .tst 2>/dev/null
3297 mkdir .tst 2>/dev/null
3298 if test -d .tst; then
3303 rmdir .tst 2>/dev/null
3305 # test to see if srcdir already configured
3306 if test "`cd $srcdir && pwd`" != "`pwd`" &&
3307 test -f $srcdir/config.status; then
3308 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3311 # test whether we have cygpath
3312 if test -z "$CYGPATH_W"; then
3313 if (cygpath --version) >/dev/null 2>/dev/null; then
3314 CYGPATH_W='cygpath -w'
3321 # Define the identity of the package.
3326 # Some tools Automake needs.
3328 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3331 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3334 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3337 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3340 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3342 install_sh=${install_sh-"$am_aux_dir/install-sh"}
3344 # Installed binaries are usually stripped using `strip' when the user
3345 # run `make install-strip'. However `strip' might not be the right
3346 # tool to use in cross-compilation environments, therefore Automake
3347 # will honor the `STRIP' environment variable to overrule this program.
3348 if test "$cross_compiling" != no; then
3349 if test -n "$ac_tool_prefix"; then
3350 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3351 set dummy ${ac_tool_prefix}strip; ac_word=$2
3352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3353 $as_echo_n "checking for $ac_word... " >&6; }
3354 if ${ac_cv_prog_STRIP+:} false; then :
3355 $as_echo_n "(cached) " >&6
3357 if test -n "$STRIP"; then
3358 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3364 test -z "$as_dir" && as_dir=.
3365 for ac_exec_ext in '' $ac_executable_extensions; do
3366 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3367 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3368 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3377 STRIP=$ac_cv_prog_STRIP
3378 if test -n "$STRIP"; then
3379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3380 $as_echo "$STRIP" >&6; }
3382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3383 $as_echo "no" >&6; }
3388 if test -z "$ac_cv_prog_STRIP"; then
3390 # Extract the first word of "strip", so it can be a program name with args.
3391 set dummy strip; ac_word=$2
3392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3393 $as_echo_n "checking for $ac_word... " >&6; }
3394 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3395 $as_echo_n "(cached) " >&6
3397 if test -n "$ac_ct_STRIP"; then
3398 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3404 test -z "$as_dir" && as_dir=.
3405 for ac_exec_ext in '' $ac_executable_extensions; do
3406 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3407 ac_cv_prog_ac_ct_STRIP="strip"
3408 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3417 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3418 if test -n "$ac_ct_STRIP"; then
3419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3420 $as_echo "$ac_ct_STRIP" >&6; }
3422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3423 $as_echo "no" >&6; }
3426 if test "x$ac_ct_STRIP" = x; then
3429 case $cross_compiling:$ac_tool_warned in
3431 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3432 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3433 ac_tool_warned=yes ;;
3438 STRIP="$ac_cv_prog_STRIP"
3442 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
3444 # We need awk for the "check" target. The system "awk" is bad on
3446 # Always define AMTAR for backward compatibility.
3448 AMTAR=${AMTAR-"${am_missing_run}tar"}
3450 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3456 cat >>confdefs.h <<_ACEOF
3457 #define OPENLDAP_PACKAGE "$PACKAGE"
3461 cat >>confdefs.h <<_ACEOF
3462 #define OPENLDAP_VERSION "$VERSION"
3467 cat >>confdefs.h <<_ACEOF
3468 #define LDAP_VENDOR_VERSION $OL_API_INC
3472 cat >>confdefs.h <<_ACEOF
3473 #define LDAP_VENDOR_VERSION_MAJOR $OL_MAJOR
3477 cat >>confdefs.h <<_ACEOF
3478 #define LDAP_VENDOR_VERSION_MINOR $OL_MINOR
3482 cat >>confdefs.h <<_ACEOF
3483 #define LDAP_VENDOR_VERSION_PATCH $OL_PATCH
3487 OPENLDAP_LIBRELEASE=$OL_API_LIB_RELEASE
3489 OPENLDAP_LIBVERSION=$OL_API_LIB_VERSION
3491 OPENLDAP_RELEASE_DATE="$OL_RELEASE_DATE"
3497 ac_config_headers="$ac_config_headers include/portable.h:include/portable.hin"
3499 ac_config_headers="$ac_config_headers include/ldap_features.h:include/ldap_features.hin"
3501 ac_config_headers="$ac_config_headers include/lber_types.h:include/lber_types.hin"
3504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking configure arguments" >&5
3505 $as_echo_n "checking configure arguments... " >&6; }
3510 ldap_subdir="/openldap"
3513 # Check whether --with-subdir was given.
3514 if test "${with_subdir+set}" = set; then :
3515 withval=$with_subdir; case "$withval" in
3521 ldap_subdir="$withval"
3524 ldap_subdir="/$withval"
3531 # OpenLDAP --enable-debug
3533 # Check whether --enable-debug was given.
3534 if test "${enable_debug+set}" = set; then :
3535 enableval=$enable_debug;
3537 for ol_val in no yes traditional ; do
3538 if test "$enableval" = "$ol_val" ; then
3542 if test "$ol_arg" = "invalid" ; then
3543 as_fn_error $? "bad value $enableval for --enable-debug" "$LINENO" 5
3545 ol_enable_debug="$ol_arg"
3551 # end --enable-debug
3552 # OpenLDAP --enable-dynamic
3554 # Check whether --enable-dynamic was given.
3555 if test "${enable_dynamic+set}" = set; then :
3556 enableval=$enable_dynamic;
3558 for ol_val in auto yes no ; do
3559 if test "$enableval" = "$ol_val" ; then
3563 if test "$ol_arg" = "invalid" ; then
3564 as_fn_error $? "bad value $enableval for --enable-dynamic" "$LINENO" 5
3566 ol_enable_dynamic="$ol_arg"
3569 ol_enable_dynamic=no
3572 # end --enable-dynamic
3573 # OpenLDAP --enable-syslog
3575 # Check whether --enable-syslog was given.
3576 if test "${enable_syslog+set}" = set; then :
3577 enableval=$enable_syslog;
3579 for ol_val in auto yes no ; do
3580 if test "$enableval" = "$ol_val" ; then
3584 if test "$ol_arg" = "invalid" ; then
3585 as_fn_error $? "bad value $enableval for --enable-syslog" "$LINENO" 5
3587 ol_enable_syslog="$ol_arg"
3590 ol_enable_syslog=auto
3593 # end --enable-syslog
3594 # OpenLDAP --enable-proctitle
3596 # Check whether --enable-proctitle was given.
3597 if test "${enable_proctitle+set}" = set; then :
3598 enableval=$enable_proctitle;
3600 for ol_val in auto yes no ; do
3601 if test "$enableval" = "$ol_val" ; then
3605 if test "$ol_arg" = "invalid" ; then
3606 as_fn_error $? "bad value $enableval for --enable-proctitle" "$LINENO" 5
3608 ol_enable_proctitle="$ol_arg"
3611 ol_enable_proctitle=yes
3614 # end --enable-proctitle
3615 ol_enable_referrals=${ol_enable_referrals-no}
3616 # OpenLDAP --enable-ipv6
3618 # Check whether --enable-ipv6 was given.
3619 if test "${enable_ipv6+set}" = set; then :
3620 enableval=$enable_ipv6;
3622 for ol_val in auto yes no ; do
3623 if test "$enableval" = "$ol_val" ; then
3627 if test "$ol_arg" = "invalid" ; then
3628 as_fn_error $? "bad value $enableval for --enable-ipv6" "$LINENO" 5
3630 ol_enable_ipv6="$ol_arg"
3637 # OpenLDAP --enable-local
3639 # Check whether --enable-local was given.
3640 if test "${enable_local+set}" = set; then :
3641 enableval=$enable_local;
3643 for ol_val in auto yes no ; do
3644 if test "$enableval" = "$ol_val" ; then
3648 if test "$ol_arg" = "invalid" ; then
3649 as_fn_error $? "bad value $enableval for --enable-local" "$LINENO" 5
3651 ol_enable_local="$ol_arg"
3654 ol_enable_local=auto
3657 # end --enable-local
3659 # OpenLDAP --with-cyrus_sasl
3661 # Check whether --with-cyrus_sasl was given.
3662 if test "${with_cyrus_sasl+set}" = set; then :
3663 withval=$with_cyrus_sasl;
3665 for ol_val in auto yes no ; do
3666 if test "$withval" = "$ol_val" ; then
3670 if test "$ol_arg" = "invalid" ; then
3671 as_fn_error $? "bad value $withval for --with-cyrus_sasl" "$LINENO" 5
3673 ol_with_cyrus_sasl="$ol_arg"
3676 ol_with_cyrus_sasl="auto"
3678 # end --with-cyrus_sasl
3680 # OpenLDAP --with-fetch
3682 # Check whether --with-fetch was given.
3683 if test "${with_fetch+set}" = set; then :
3684 withval=$with_fetch;
3686 for ol_val in auto yes no ; do
3687 if test "$withval" = "$ol_val" ; then
3691 if test "$ol_arg" = "invalid" ; then
3692 as_fn_error $? "bad value $withval for --with-fetch" "$LINENO" 5
3694 ol_with_fetch="$ol_arg"
3697 ol_with_fetch="auto"
3701 # OpenLDAP --with-threads
3703 # Check whether --with-threads was given.
3704 if test "${with_threads+set}" = set; then :
3705 withval=$with_threads;
3707 for ol_val in auto nt posix mach pth lwp yes no manual ; do
3708 if test "$withval" = "$ol_val" ; then
3712 if test "$ol_arg" = "invalid" ; then
3713 as_fn_error $? "bad value $withval for --with-threads" "$LINENO" 5
3715 ol_with_threads="$ol_arg"
3718 ol_with_threads="auto"
3720 # end --with-threads
3722 # OpenLDAP --with-tls
3724 # Check whether --with-tls was given.
3725 if test "${with_tls+set}" = set; then :
3728 for ol_val in auto openssl gnutls moznss yes no ; do
3729 if test "$withval" = "$ol_val" ; then
3733 if test "$ol_arg" = "invalid" ; then
3734 as_fn_error $? "bad value $withval for --with-tls" "$LINENO" 5
3736 ol_with_tls="$ol_arg"
3743 # OpenLDAP --with-yielding_select
3745 # Check whether --with-yielding_select was given.
3746 if test "${with_yielding_select+set}" = set; then :
3747 withval=$with_yielding_select;
3749 for ol_val in auto yes no manual ; do
3750 if test "$withval" = "$ol_val" ; then
3754 if test "$ol_arg" = "invalid" ; then
3755 as_fn_error $? "bad value $withval for --with-yielding_select" "$LINENO" 5
3757 ol_with_yielding_select="$ol_arg"
3760 ol_with_yielding_select="auto"
3762 # end --with-yielding_select
3764 # OpenLDAP --with-mp
3766 # Check whether --with-mp was given.
3767 if test "${with_mp+set}" = set; then :
3770 for ol_val in auto longlong long bignum gmp yes no ; do
3771 if test "$withval" = "$ol_val" ; then
3775 if test "$ol_arg" = "invalid" ; then
3776 as_fn_error $? "bad value $withval for --with-mp" "$LINENO" 5
3778 ol_with_mp="$ol_arg"
3785 # OpenLDAP --with-odbc
3787 # Check whether --with-odbc was given.
3788 if test "${with_odbc+set}" = set; then :
3791 for ol_val in auto iodbc unixodbc odbc32 ; do
3792 if test "$withval" = "$ol_val" ; then
3796 if test "$ol_arg" = "invalid" ; then
3797 as_fn_error $? "bad value $withval for --with-odbc" "$LINENO" 5
3799 ol_with_odbc="$ol_arg"
3808 # Check whether --enable-xxslapdoptions was given.
3809 if test "${enable_xxslapdoptions+set}" = set; then :
3810 enableval=$enable_xxslapdoptions;
3813 # OpenLDAP --enable-slapd
3815 # Check whether --enable-slapd was given.
3816 if test "${enable_slapd+set}" = set; then :
3817 enableval=$enable_slapd;
3819 for ol_val in auto yes no ; do
3820 if test "$enableval" = "$ol_val" ; then
3824 if test "$ol_arg" = "invalid" ; then
3825 as_fn_error $? "bad value $enableval for --enable-slapd" "$LINENO" 5
3827 ol_enable_slapd="$ol_arg"
3833 # end --enable-slapd
3834 # OpenLDAP --enable-dynacl
3836 # Check whether --enable-dynacl was given.
3837 if test "${enable_dynacl+set}" = set; then :
3838 enableval=$enable_dynacl;
3840 for ol_val in auto yes no ; do
3841 if test "$enableval" = "$ol_val" ; then
3845 if test "$ol_arg" = "invalid" ; then
3846 as_fn_error $? "bad value $enableval for --enable-dynacl" "$LINENO" 5
3848 ol_enable_dynacl="$ol_arg"
3854 # end --enable-dynacl
3855 # OpenLDAP --enable-aci
3857 # Check whether --enable-aci was given.
3858 if test "${enable_aci+set}" = set; then :
3859 enableval=$enable_aci;
3861 for ol_val in no yes mod ; do
3862 if test "$enableval" = "$ol_val" ; then
3866 if test "$ol_arg" = "invalid" ; then
3867 as_fn_error $? "bad value $enableval for --enable-aci" "$LINENO" 5
3869 ol_enable_aci="$ol_arg"
3876 # OpenLDAP --enable-cleartext
3878 # Check whether --enable-cleartext was given.
3879 if test "${enable_cleartext+set}" = set; then :
3880 enableval=$enable_cleartext;
3882 for ol_val in auto yes no ; do
3883 if test "$enableval" = "$ol_val" ; then
3887 if test "$ol_arg" = "invalid" ; then
3888 as_fn_error $? "bad value $enableval for --enable-cleartext" "$LINENO" 5
3890 ol_enable_cleartext="$ol_arg"
3893 ol_enable_cleartext=yes
3896 # end --enable-cleartext
3897 # OpenLDAP --enable-crypt
3899 # Check whether --enable-crypt was given.
3900 if test "${enable_crypt+set}" = set; then :
3901 enableval=$enable_crypt;
3903 for ol_val in auto yes no ; do
3904 if test "$enableval" = "$ol_val" ; then
3908 if test "$ol_arg" = "invalid" ; then
3909 as_fn_error $? "bad value $enableval for --enable-crypt" "$LINENO" 5
3911 ol_enable_crypt="$ol_arg"
3917 # end --enable-crypt
3918 # OpenLDAP --enable-lmpasswd
3920 # Check whether --enable-lmpasswd was given.
3921 if test "${enable_lmpasswd+set}" = set; then :
3922 enableval=$enable_lmpasswd;
3924 for ol_val in auto yes no ; do
3925 if test "$enableval" = "$ol_val" ; then
3929 if test "$ol_arg" = "invalid" ; then
3930 as_fn_error $? "bad value $enableval for --enable-lmpasswd" "$LINENO" 5
3932 ol_enable_lmpasswd="$ol_arg"
3935 ol_enable_lmpasswd=no
3938 # end --enable-lmpasswd
3939 # OpenLDAP --enable-spasswd
3941 # Check whether --enable-spasswd was given.
3942 if test "${enable_spasswd+set}" = set; then :
3943 enableval=$enable_spasswd;
3945 for ol_val in auto yes no ; do
3946 if test "$enableval" = "$ol_val" ; then
3950 if test "$ol_arg" = "invalid" ; then
3951 as_fn_error $? "bad value $enableval for --enable-spasswd" "$LINENO" 5
3953 ol_enable_spasswd="$ol_arg"
3956 ol_enable_spasswd=no
3959 # end --enable-spasswd
3960 # OpenLDAP --enable-modules
3962 # Check whether --enable-modules was given.
3963 if test "${enable_modules+set}" = set; then :
3964 enableval=$enable_modules;
3966 for ol_val in auto yes no ; do
3967 if test "$enableval" = "$ol_val" ; then
3971 if test "$ol_arg" = "invalid" ; then
3972 as_fn_error $? "bad value $enableval for --enable-modules" "$LINENO" 5
3974 ol_enable_modules="$ol_arg"
3977 ol_enable_modules=no
3980 # end --enable-modules
3981 # OpenLDAP --enable-rewrite
3983 # Check whether --enable-rewrite was given.
3984 if test "${enable_rewrite+set}" = set; then :
3985 enableval=$enable_rewrite;
3987 for ol_val in auto yes no ; do
3988 if test "$enableval" = "$ol_val" ; then
3992 if test "$ol_arg" = "invalid" ; then
3993 as_fn_error $? "bad value $enableval for --enable-rewrite" "$LINENO" 5
3995 ol_enable_rewrite="$ol_arg"
3998 ol_enable_rewrite=auto
4001 # end --enable-rewrite
4002 # OpenLDAP --enable-rlookups
4004 # Check whether --enable-rlookups was given.
4005 if test "${enable_rlookups+set}" = set; then :
4006 enableval=$enable_rlookups;
4008 for ol_val in auto yes no ; do
4009 if test "$enableval" = "$ol_val" ; then
4013 if test "$ol_arg" = "invalid" ; then
4014 as_fn_error $? "bad value $enableval for --enable-rlookups" "$LINENO" 5
4016 ol_enable_rlookups="$ol_arg"
4019 ol_enable_rlookups=no
4022 # end --enable-rlookups
4023 # OpenLDAP --enable-slapi
4025 # Check whether --enable-slapi was given.
4026 if test "${enable_slapi+set}" = set; then :
4027 enableval=$enable_slapi;
4029 for ol_val in auto yes no ; do
4030 if test "$enableval" = "$ol_val" ; then
4034 if test "$ol_arg" = "invalid" ; then
4035 as_fn_error $? "bad value $enableval for --enable-slapi" "$LINENO" 5
4037 ol_enable_slapi="$ol_arg"
4043 # end --enable-slapi
4044 # OpenLDAP --enable-slp
4046 # Check whether --enable-slp was given.
4047 if test "${enable_slp+set}" = set; then :
4048 enableval=$enable_slp;
4050 for ol_val in auto yes no ; do
4051 if test "$enableval" = "$ol_val" ; then
4055 if test "$ol_arg" = "invalid" ; then
4056 as_fn_error $? "bad value $enableval for --enable-slp" "$LINENO" 5
4058 ol_enable_slp="$ol_arg"
4065 # OpenLDAP --enable-wrappers
4067 # Check whether --enable-wrappers was given.
4068 if test "${enable_wrappers+set}" = set; then :
4069 enableval=$enable_wrappers;
4071 for ol_val in auto yes no ; do
4072 if test "$enableval" = "$ol_val" ; then
4076 if test "$ol_arg" = "invalid" ; then
4077 as_fn_error $? "bad value $enableval for --enable-wrappers" "$LINENO" 5
4079 ol_enable_wrappers="$ol_arg"
4082 ol_enable_wrappers=no
4085 # end --enable-wrappers
4103 # Check whether --enable-xxslapbackends was given.
4104 if test "${enable_xxslapbackends+set}" = set; then :
4105 enableval=$enable_xxslapbackends;
4109 # OpenLDAP --enable-backends
4111 # Check whether --enable-backends was given.
4112 if test "${enable_backends+set}" = set; then :
4113 enableval=$enable_backends;
4115 for ol_val in no yes mod ; do
4116 if test "$enableval" = "$ol_val" ; then
4120 if test "$ol_arg" = "invalid" ; then
4121 as_fn_error $? "bad value $enableval for --enable-backends" "$LINENO" 5
4123 ol_enable_backends="$ol_arg"
4127 # end --enable-backends
4128 # OpenLDAP --enable-bdb
4130 # Check whether --enable-bdb was given.
4131 if test "${enable_bdb+set}" = set; then :
4132 enableval=$enable_bdb;
4134 for ol_val in no yes mod ; do
4135 if test "$enableval" = "$ol_val" ; then
4139 if test "$ol_arg" = "invalid" ; then
4140 as_fn_error $? "bad value $enableval for --enable-bdb" "$LINENO" 5
4142 ol_enable_bdb="$ol_arg"
4145 ol_enable_bdb=${ol_enable_backends:-yes}
4149 # OpenLDAP --enable-dnssrv
4151 # Check whether --enable-dnssrv was given.
4152 if test "${enable_dnssrv+set}" = set; then :
4153 enableval=$enable_dnssrv;
4155 for ol_val in no yes mod ; do
4156 if test "$enableval" = "$ol_val" ; then
4160 if test "$ol_arg" = "invalid" ; then
4161 as_fn_error $? "bad value $enableval for --enable-dnssrv" "$LINENO" 5
4163 ol_enable_dnssrv="$ol_arg"
4166 ol_enable_dnssrv=${ol_enable_backends:-no}
4169 # end --enable-dnssrv
4170 # OpenLDAP --enable-hdb
4172 # Check whether --enable-hdb was given.
4173 if test "${enable_hdb+set}" = set; then :
4174 enableval=$enable_hdb;
4176 for ol_val in no yes mod ; do
4177 if test "$enableval" = "$ol_val" ; then
4181 if test "$ol_arg" = "invalid" ; then
4182 as_fn_error $? "bad value $enableval for --enable-hdb" "$LINENO" 5
4184 ol_enable_hdb="$ol_arg"
4187 ol_enable_hdb=${ol_enable_backends:-yes}
4191 # OpenLDAP --enable-ldap
4193 # Check whether --enable-ldap was given.
4194 if test "${enable_ldap+set}" = set; then :
4195 enableval=$enable_ldap;
4197 for ol_val in no yes mod ; do
4198 if test "$enableval" = "$ol_val" ; then
4202 if test "$ol_arg" = "invalid" ; then
4203 as_fn_error $? "bad value $enableval for --enable-ldap" "$LINENO" 5
4205 ol_enable_ldap="$ol_arg"
4208 ol_enable_ldap=${ol_enable_backends:-no}
4212 # OpenLDAP --enable-mdb
4214 # Check whether --enable-mdb was given.
4215 if test "${enable_mdb+set}" = set; then :
4216 enableval=$enable_mdb;
4218 for ol_val in no yes mod ; do
4219 if test "$enableval" = "$ol_val" ; then
4223 if test "$ol_arg" = "invalid" ; then
4224 as_fn_error $? "bad value $enableval for --enable-mdb" "$LINENO" 5
4226 ol_enable_mdb="$ol_arg"
4229 ol_enable_mdb=${ol_enable_backends:-yes}
4233 # OpenLDAP --enable-meta
4235 # Check whether --enable-meta was given.
4236 if test "${enable_meta+set}" = set; then :
4237 enableval=$enable_meta;
4239 for ol_val in no yes mod ; do
4240 if test "$enableval" = "$ol_val" ; then
4244 if test "$ol_arg" = "invalid" ; then
4245 as_fn_error $? "bad value $enableval for --enable-meta" "$LINENO" 5
4247 ol_enable_meta="$ol_arg"
4250 ol_enable_meta=${ol_enable_backends:-no}
4254 # OpenLDAP --enable-monitor
4256 # Check whether --enable-monitor was given.
4257 if test "${enable_monitor+set}" = set; then :
4258 enableval=$enable_monitor;
4260 for ol_val in no yes mod ; do
4261 if test "$enableval" = "$ol_val" ; then
4265 if test "$ol_arg" = "invalid" ; then
4266 as_fn_error $? "bad value $enableval for --enable-monitor" "$LINENO" 5
4268 ol_enable_monitor="$ol_arg"
4271 ol_enable_monitor=${ol_enable_backends:-yes}
4274 # end --enable-monitor
4275 # OpenLDAP --enable-ndb
4277 # Check whether --enable-ndb was given.
4278 if test "${enable_ndb+set}" = set; then :
4279 enableval=$enable_ndb;
4281 for ol_val in no yes mod ; do
4282 if test "$enableval" = "$ol_val" ; then
4286 if test "$ol_arg" = "invalid" ; then
4287 as_fn_error $? "bad value $enableval for --enable-ndb" "$LINENO" 5
4289 ol_enable_ndb="$ol_arg"
4292 ol_enable_ndb=${ol_enable_backends:-no}
4296 # OpenLDAP --enable-null
4298 # Check whether --enable-null was given.
4299 if test "${enable_null+set}" = set; then :
4300 enableval=$enable_null;
4302 for ol_val in no yes mod ; do
4303 if test "$enableval" = "$ol_val" ; then
4307 if test "$ol_arg" = "invalid" ; then
4308 as_fn_error $? "bad value $enableval for --enable-null" "$LINENO" 5
4310 ol_enable_null="$ol_arg"
4313 ol_enable_null=${ol_enable_backends:-no}
4317 # OpenLDAP --enable-passwd
4319 # Check whether --enable-passwd was given.
4320 if test "${enable_passwd+set}" = set; then :
4321 enableval=$enable_passwd;
4323 for ol_val in no yes mod ; do
4324 if test "$enableval" = "$ol_val" ; then
4328 if test "$ol_arg" = "invalid" ; then
4329 as_fn_error $? "bad value $enableval for --enable-passwd" "$LINENO" 5
4331 ol_enable_passwd="$ol_arg"
4334 ol_enable_passwd=${ol_enable_backends:-no}
4337 # end --enable-passwd
4338 # OpenLDAP --enable-perl
4340 # Check whether --enable-perl was given.
4341 if test "${enable_perl+set}" = set; then :
4342 enableval=$enable_perl;
4344 for ol_val in no yes mod ; do
4345 if test "$enableval" = "$ol_val" ; then
4349 if test "$ol_arg" = "invalid" ; then
4350 as_fn_error $? "bad value $enableval for --enable-perl" "$LINENO" 5
4352 ol_enable_perl="$ol_arg"
4355 ol_enable_perl=${ol_enable_backends:-no}
4359 # OpenLDAP --enable-relay
4361 # Check whether --enable-relay was given.
4362 if test "${enable_relay+set}" = set; then :
4363 enableval=$enable_relay;
4365 for ol_val in no yes mod ; do
4366 if test "$enableval" = "$ol_val" ; then
4370 if test "$ol_arg" = "invalid" ; then
4371 as_fn_error $? "bad value $enableval for --enable-relay" "$LINENO" 5
4373 ol_enable_relay="$ol_arg"
4376 ol_enable_relay=${ol_enable_backends:-yes}
4379 # end --enable-relay
4380 # OpenLDAP --enable-shell
4382 # Check whether --enable-shell was given.
4383 if test "${enable_shell+set}" = set; then :
4384 enableval=$enable_shell;
4386 for ol_val in no yes mod ; do
4387 if test "$enableval" = "$ol_val" ; then
4391 if test "$ol_arg" = "invalid" ; then
4392 as_fn_error $? "bad value $enableval for --enable-shell" "$LINENO" 5
4394 ol_enable_shell="$ol_arg"
4397 ol_enable_shell=${ol_enable_backends:-no}
4400 # end --enable-shell
4401 # OpenLDAP --enable-sock
4403 # Check whether --enable-sock was given.
4404 if test "${enable_sock+set}" = set; then :
4405 enableval=$enable_sock;
4407 for ol_val in no yes mod ; do
4408 if test "$enableval" = "$ol_val" ; then
4412 if test "$ol_arg" = "invalid" ; then
4413 as_fn_error $? "bad value $enableval for --enable-sock" "$LINENO" 5
4415 ol_enable_sock="$ol_arg"
4418 ol_enable_sock=${ol_enable_backends:-no}
4422 # OpenLDAP --enable-sql
4424 # Check whether --enable-sql was given.
4425 if test "${enable_sql+set}" = set; then :
4426 enableval=$enable_sql;
4428 for ol_val in no yes mod ; do
4429 if test "$enableval" = "$ol_val" ; then
4433 if test "$ol_arg" = "invalid" ; then
4434 as_fn_error $? "bad value $enableval for --enable-sql" "$LINENO" 5
4436 ol_enable_sql="$ol_arg"
4439 ol_enable_sql=${ol_enable_backends:-no}
4444 Overlays="accesslog \
4465 # Check whether --enable-xxslapoverlays was given.
4466 if test "${enable_xxslapoverlays+set}" = set; then :
4467 enableval=$enable_xxslapoverlays;
4471 # OpenLDAP --enable-overlays
4473 # Check whether --enable-overlays was given.
4474 if test "${enable_overlays+set}" = set; then :
4475 enableval=$enable_overlays;
4477 for ol_val in no yes mod ; do
4478 if test "$enableval" = "$ol_val" ; then
4482 if test "$ol_arg" = "invalid" ; then
4483 as_fn_error $? "bad value $enableval for --enable-overlays" "$LINENO" 5
4485 ol_enable_overlays="$ol_arg"
4489 # end --enable-overlays
4490 # OpenLDAP --enable-accesslog
4492 # Check whether --enable-accesslog was given.
4493 if test "${enable_accesslog+set}" = set; then :
4494 enableval=$enable_accesslog;
4496 for ol_val in no yes mod ; do
4497 if test "$enableval" = "$ol_val" ; then
4501 if test "$ol_arg" = "invalid" ; then
4502 as_fn_error $? "bad value $enableval for --enable-accesslog" "$LINENO" 5
4504 ol_enable_accesslog="$ol_arg"
4507 ol_enable_accesslog=${ol_enable_overlays:-no}
4510 # end --enable-accesslog
4512 # OpenLDAP --enable-auditlog
4514 # Check whether --enable-auditlog was given.
4515 if test "${enable_auditlog+set}" = set; then :
4516 enableval=$enable_auditlog;
4518 for ol_val in no yes mod ; do
4519 if test "$enableval" = "$ol_val" ; then
4523 if test "$ol_arg" = "invalid" ; then
4524 as_fn_error $? "bad value $enableval for --enable-auditlog" "$LINENO" 5
4526 ol_enable_auditlog="$ol_arg"
4529 ol_enable_auditlog=${ol_enable_overlays:-no}
4532 # end --enable-auditlog
4534 # OpenLDAP --enable-collect
4536 # Check whether --enable-collect was given.
4537 if test "${enable_collect+set}" = set; then :
4538 enableval=$enable_collect;
4540 for ol_val in no yes mod ; do
4541 if test "$enableval" = "$ol_val" ; then
4545 if test "$ol_arg" = "invalid" ; then
4546 as_fn_error $? "bad value $enableval for --enable-collect" "$LINENO" 5
4548 ol_enable_collect="$ol_arg"
4551 ol_enable_collect=${ol_enable_overlays:-no}
4554 # end --enable-collect
4556 # OpenLDAP --enable-constraint
4558 # Check whether --enable-constraint was given.
4559 if test "${enable_constraint+set}" = set; then :
4560 enableval=$enable_constraint;
4562 for ol_val in no yes mod ; do
4563 if test "$enableval" = "$ol_val" ; then
4567 if test "$ol_arg" = "invalid" ; then
4568 as_fn_error $? "bad value $enableval for --enable-constraint" "$LINENO" 5
4570 ol_enable_constraint="$ol_arg"
4573 ol_enable_constraint=${ol_enable_overlays:-no}
4576 # end --enable-constraint
4578 # OpenLDAP --enable-dds
4580 # Check whether --enable-dds was given.
4581 if test "${enable_dds+set}" = set; then :
4582 enableval=$enable_dds;
4584 for ol_val in no yes mod ; do
4585 if test "$enableval" = "$ol_val" ; then
4589 if test "$ol_arg" = "invalid" ; then
4590 as_fn_error $? "bad value $enableval for --enable-dds" "$LINENO" 5
4592 ol_enable_dds="$ol_arg"
4595 ol_enable_dds=${ol_enable_overlays:-no}
4600 # OpenLDAP --enable-deref
4602 # Check whether --enable-deref was given.
4603 if test "${enable_deref+set}" = set; then :
4604 enableval=$enable_deref;
4606 for ol_val in no yes mod ; do
4607 if test "$enableval" = "$ol_val" ; then
4611 if test "$ol_arg" = "invalid" ; then
4612 as_fn_error $? "bad value $enableval for --enable-deref" "$LINENO" 5
4614 ol_enable_deref="$ol_arg"
4617 ol_enable_deref=${ol_enable_overlays:-no}
4620 # end --enable-deref
4622 # OpenLDAP --enable-dyngroup
4624 # Check whether --enable-dyngroup was given.
4625 if test "${enable_dyngroup+set}" = set; then :
4626 enableval=$enable_dyngroup;
4628 for ol_val in no yes mod ; do
4629 if test "$enableval" = "$ol_val" ; then
4633 if test "$ol_arg" = "invalid" ; then
4634 as_fn_error $? "bad value $enableval for --enable-dyngroup" "$LINENO" 5
4636 ol_enable_dyngroup="$ol_arg"
4639 ol_enable_dyngroup=${ol_enable_overlays:-no}
4642 # end --enable-dyngroup
4644 # OpenLDAP --enable-dynlist
4646 # Check whether --enable-dynlist was given.
4647 if test "${enable_dynlist+set}" = set; then :
4648 enableval=$enable_dynlist;
4650 for ol_val in no yes mod ; do
4651 if test "$enableval" = "$ol_val" ; then
4655 if test "$ol_arg" = "invalid" ; then
4656 as_fn_error $? "bad value $enableval for --enable-dynlist" "$LINENO" 5
4658 ol_enable_dynlist="$ol_arg"
4661 ol_enable_dynlist=${ol_enable_overlays:-no}
4664 # end --enable-dynlist
4666 # OpenLDAP --enable-memberof
4668 # Check whether --enable-memberof was given.
4669 if test "${enable_memberof+set}" = set; then :
4670 enableval=$enable_memberof;
4672 for ol_val in no yes mod ; do
4673 if test "$enableval" = "$ol_val" ; then
4677 if test "$ol_arg" = "invalid" ; then
4678 as_fn_error $? "bad value $enableval for --enable-memberof" "$LINENO" 5
4680 ol_enable_memberof="$ol_arg"
4683 ol_enable_memberof=${ol_enable_overlays:-no}
4686 # end --enable-memberof
4688 # OpenLDAP --enable-ppolicy
4690 # Check whether --enable-ppolicy was given.
4691 if test "${enable_ppolicy+set}" = set; then :
4692 enableval=$enable_ppolicy;
4694 for ol_val in no yes mod ; do
4695 if test "$enableval" = "$ol_val" ; then
4699 if test "$ol_arg" = "invalid" ; then
4700 as_fn_error $? "bad value $enableval for --enable-ppolicy" "$LINENO" 5
4702 ol_enable_ppolicy="$ol_arg"
4705 ol_enable_ppolicy=${ol_enable_overlays:-no}
4708 # end --enable-ppolicy
4710 # OpenLDAP --enable-proxycache
4712 # Check whether --enable-proxycache was given.
4713 if test "${enable_proxycache+set}" = set; then :
4714 enableval=$enable_proxycache;
4716 for ol_val in no yes mod ; do
4717 if test "$enableval" = "$ol_val" ; then
4721 if test "$ol_arg" = "invalid" ; then
4722 as_fn_error $? "bad value $enableval for --enable-proxycache" "$LINENO" 5
4724 ol_enable_proxycache="$ol_arg"
4727 ol_enable_proxycache=${ol_enable_overlays:-no}
4730 # end --enable-proxycache
4732 # OpenLDAP --enable-refint
4734 # Check whether --enable-refint was given.
4735 if test "${enable_refint+set}" = set; then :
4736 enableval=$enable_refint;
4738 for ol_val in no yes mod ; do
4739 if test "$enableval" = "$ol_val" ; then
4743 if test "$ol_arg" = "invalid" ; then
4744 as_fn_error $? "bad value $enableval for --enable-refint" "$LINENO" 5
4746 ol_enable_refint="$ol_arg"
4749 ol_enable_refint=${ol_enable_overlays:-no}
4752 # end --enable-refint
4754 # OpenLDAP --enable-retcode
4756 # Check whether --enable-retcode was given.
4757 if test "${enable_retcode+set}" = set; then :
4758 enableval=$enable_retcode;
4760 for ol_val in no yes mod ; do
4761 if test "$enableval" = "$ol_val" ; then
4765 if test "$ol_arg" = "invalid" ; then
4766 as_fn_error $? "bad value $enableval for --enable-retcode" "$LINENO" 5
4768 ol_enable_retcode="$ol_arg"
4771 ol_enable_retcode=${ol_enable_overlays:-no}
4774 # end --enable-retcode
4776 # OpenLDAP --enable-rwm
4778 # Check whether --enable-rwm was given.
4779 if test "${enable_rwm+set}" = set; then :
4780 enableval=$enable_rwm;
4782 for ol_val in no yes mod ; do
4783 if test "$enableval" = "$ol_val" ; then
4787 if test "$ol_arg" = "invalid" ; then
4788 as_fn_error $? "bad value $enableval for --enable-rwm" "$LINENO" 5
4790 ol_enable_rwm="$ol_arg"
4793 ol_enable_rwm=${ol_enable_overlays:-no}
4798 # OpenLDAP --enable-seqmod
4800 # Check whether --enable-seqmod was given.
4801 if test "${enable_seqmod+set}" = set; then :
4802 enableval=$enable_seqmod;
4804 for ol_val in no yes mod ; do
4805 if test "$enableval" = "$ol_val" ; then
4809 if test "$ol_arg" = "invalid" ; then
4810 as_fn_error $? "bad value $enableval for --enable-seqmod" "$LINENO" 5
4812 ol_enable_seqmod="$ol_arg"
4815 ol_enable_seqmod=${ol_enable_overlays:-no}
4818 # end --enable-seqmod
4820 # OpenLDAP --enable-sssvlv
4822 # Check whether --enable-sssvlv was given.
4823 if test "${enable_sssvlv+set}" = set; then :
4824 enableval=$enable_sssvlv;
4826 for ol_val in no yes mod ; do
4827 if test "$enableval" = "$ol_val" ; then
4831 if test "$ol_arg" = "invalid" ; then
4832 as_fn_error $? "bad value $enableval for --enable-sssvlv" "$LINENO" 5
4834 ol_enable_sssvlv="$ol_arg"
4837 ol_enable_sssvlv=${ol_enable_overlays:-no}
4840 # end --enable-sssvlv
4842 # OpenLDAP --enable-syncprov
4844 # Check whether --enable-syncprov was given.
4845 if test "${enable_syncprov+set}" = set; then :
4846 enableval=$enable_syncprov;
4848 for ol_val in no yes mod ; do
4849 if test "$enableval" = "$ol_val" ; then
4853 if test "$ol_arg" = "invalid" ; then
4854 as_fn_error $? "bad value $enableval for --enable-syncprov" "$LINENO" 5
4856 ol_enable_syncprov="$ol_arg"
4859 ol_enable_syncprov=${ol_enable_overlays:-yes}
4862 # end --enable-syncprov
4864 # OpenLDAP --enable-translucent
4866 # Check whether --enable-translucent was given.
4867 if test "${enable_translucent+set}" = set; then :
4868 enableval=$enable_translucent;
4870 for ol_val in no yes mod ; do
4871 if test "$enableval" = "$ol_val" ; then
4875 if test "$ol_arg" = "invalid" ; then
4876 as_fn_error $? "bad value $enableval for --enable-translucent" "$LINENO" 5
4878 ol_enable_translucent="$ol_arg"
4881 ol_enable_translucent=${ol_enable_overlays:-no}
4884 # end --enable-translucent
4886 # OpenLDAP --enable-unique
4888 # Check whether --enable-unique was given.
4889 if test "${enable_unique+set}" = set; then :
4890 enableval=$enable_unique;
4892 for ol_val in no yes mod ; do
4893 if test "$enableval" = "$ol_val" ; then
4897 if test "$ol_arg" = "invalid" ; then
4898 as_fn_error $? "bad value $enableval for --enable-unique" "$LINENO" 5
4900 ol_enable_unique="$ol_arg"
4903 ol_enable_unique=${ol_enable_overlays:-no}
4906 # end --enable-unique
4908 # OpenLDAP --enable-valsort
4910 # Check whether --enable-valsort was given.
4911 if test "${enable_valsort+set}" = set; then :
4912 enableval=$enable_valsort;
4914 for ol_val in no yes mod ; do
4915 if test "$enableval" = "$ol_val" ; then
4919 if test "$ol_arg" = "invalid" ; then
4920 as_fn_error $? "bad value $enableval for --enable-valsort" "$LINENO" 5
4922 ol_enable_valsort="$ol_arg"
4925 ol_enable_valsort=${ol_enable_overlays:-no}
4928 # end --enable-valsort
4931 # Check whether --enable-xxliboptions was given.
4932 if test "${enable_xxliboptions+set}" = set; then :
4933 enableval=$enable_xxliboptions;
4936 # Check whether --enable-static was given.
4937 if test "${enable_static+set}" = set; then :
4938 enableval=$enable_static; p=${PACKAGE-default}
4940 yes) enable_static=yes ;;
4941 no) enable_static=no ;;
4944 # Look at the argument we got. We use all the common list separators.
4945 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4946 for pkg in $enableval; do
4948 if test "X$pkg" = "X$p"; then
4960 # Check whether --enable-shared was given.
4961 if test "${enable_shared+set}" = set; then :
4962 enableval=$enable_shared; p=${PACKAGE-default}
4964 yes) enable_shared=yes ;;
4965 no) enable_shared=no ;;
4968 # Look at the argument we got. We use all the common list separators.
4969 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4970 for pkg in $enableval; do
4972 if test "X$pkg" = "X$p"; then
4987 if test $ol_enable_slapd = no ; then
4988 if test $ol_enable_slapi = yes ; then
4989 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: slapd disabled, ignoring --enable-slapi argument" >&5
4990 $as_echo "$as_me: WARNING: slapd disabled, ignoring --enable-slapi argument" >&2;}
4992 case "$ol_enable_backends" in yes | mod)
4993 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: slapd disabled, ignoring --enable-backends argument" >&5
4994 $as_echo "$as_me: WARNING: slapd disabled, ignoring --enable-backends argument" >&2;}
4996 for i in $Backends; do
4997 eval "ol_tmp=\$ol_enable_$i"
4998 if test $ol_tmp != no ; then
4999 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: slapd disabled, ignoring --enable-$i argument" >&5
5000 $as_echo "$as_me: WARNING: slapd disabled, ignoring --enable-$i argument" >&2;}
5001 eval "ol_enable_$i=no"
5004 if test $ol_enable_modules = yes ; then
5005 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: slapd disabled, ignoring --enable-modules argument" >&5
5006 $as_echo "$as_me: WARNING: slapd disabled, ignoring --enable-modules argument" >&2;}
5008 if test $ol_enable_wrappers = yes ; then
5009 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: slapd disabled, ignoring --enable-wrappers argument" >&5
5010 $as_echo "$as_me: WARNING: slapd disabled, ignoring --enable-wrappers argument" >&2;}
5012 if test $ol_enable_rlookups = yes ; then
5013 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: slapd disabled, ignoring --enable-rlookups argument" >&5
5014 $as_echo "$as_me: WARNING: slapd disabled, ignoring --enable-rlookups argument" >&2;}
5016 if test $ol_enable_dynacl = yes ; then
5017 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: slapd disabled, ignoring --enable-dynacl argument" >&5
5018 $as_echo "$as_me: WARNING: slapd disabled, ignoring --enable-dynacl argument" >&2;}
5020 if test $ol_enable_aci != no ; then
5021 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: slapd disabled, ignoring --enable-aci argument" >&5
5022 $as_echo "$as_me: WARNING: slapd disabled, ignoring --enable-aci argument" >&2;}
5024 if test $ol_enable_rewrite = yes ; then
5025 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: slapd disabled, ignoring --enable-rewrite argument" >&5
5026 $as_echo "$as_me: WARNING: slapd disabled, ignoring --enable-rewrite argument" >&2;}
5028 case "$ol_enable_overlays" in yes | mod)
5029 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: slapd disabled, ignoring --enable-overlays argument" >&5
5030 $as_echo "$as_me: WARNING: slapd disabled, ignoring --enable-overlays argument" >&2;}
5032 for i in $Overlays; do
5033 eval "ol_tmp=\$ol_enable_$i"
5034 if test $ol_tmp != no ; then
5035 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: slapd disabled, ignoring --enable-$i argument" >&5
5036 $as_echo "$as_me: WARNING: slapd disabled, ignoring --enable-$i argument" >&2;}
5037 eval "ol_enable_$i=no"
5041 # force settings to no
5046 ol_enable_modules=no
5047 ol_enable_rlookups=no
5050 ol_enable_wrappers=no
5052 ol_enable_rewrite=no
5054 elif test $ol_enable_modules != yes &&
5055 test $ol_enable_bdb = no &&
5056 test $ol_enable_dnssrv = no &&
5057 test $ol_enable_hdb = no &&
5058 test $ol_enable_ldap = no &&
5059 test $ol_enable_mdb = no &&
5060 test $ol_enable_meta = no &&
5061 test $ol_enable_monitor = no &&
5062 test $ol_enable_ndb = no &&
5063 test $ol_enable_null = no &&
5064 test $ol_enable_passwd = no &&
5065 test $ol_enable_perl = no &&
5066 test $ol_enable_relay = no &&
5067 test $ol_enable_shell = no &&
5068 test $ol_enable_sock = no &&
5069 test $ol_enable_sql = no ; then
5071 if test $ol_enable_slapd = yes ; then
5072 as_fn_error $? "slapd requires a backend" "$LINENO" 5
5074 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: skipping slapd, no backend specified" >&5
5075 $as_echo "$as_me: WARNING: skipping slapd, no backend specified" >&2;}
5080 if test $ol_enable_meta/$ol_enable_ldap = yes/no ; then
5081 as_fn_error $? "--enable-meta requires --enable-ldap" "$LINENO" 5
5084 if test $ol_enable_lmpasswd = yes ; then
5085 if test $ol_with_tls = no ; then
5086 as_fn_error $? "LAN Manager passwords require OpenSSL" "$LINENO" 5
5090 if test $ol_enable_spasswd = yes ; then
5091 if test $ol_with_cyrus_sasl = no ; then
5092 as_fn_error $? "options require --with-cyrus-sasl" "$LINENO" 5
5094 ol_with_cyrus_sasl=yes
5097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
5098 $as_echo "done" >&6; }
5150 BUILD_TRANSLUCENT=no
5154 SLAPD_STATIC_OVERLAYS=
5155 SLAPD_DYNAMIC_OVERLAYS=
5157 SLAPD_MODULES_LDFLAGS=
5158 SLAPD_MODULES_CPPFLAGS=
5160 SLAPD_STATIC_BACKENDS=back-ldif
5161 SLAPD_DYNAMIC_BACKENDS=
5186 $as_echo "#define HAVE_MKVERSION 1" >>confdefs.h
5193 *-*-aix*) if test -z "$CC" ; then
5194 case "$ol_with_threads" in
5195 auto | yes | posix) ol_aix_threads=yes ;;
5201 if test $ol_aix_threads = yes ; then
5202 if test -z "${CC}" ; then
5203 for ac_prog in cc_r xlc_r cc
5205 # Extract the first word of "$ac_prog", so it can be a program name with args.
5206 set dummy $ac_prog; ac_word=$2
5207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5208 $as_echo_n "checking for $ac_word... " >&6; }
5209 if ${ac_cv_prog_CC+:} false; then :
5210 $as_echo_n "(cached) " >&6
5212 if test -n "$CC"; then
5213 ac_cv_prog_CC="$CC" # Let the user override the test.
5215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5219 test -z "$as_dir" && as_dir=.
5220 for ac_exec_ext in '' $ac_executable_extensions; do
5221 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5222 ac_cv_prog_CC="$ac_prog"
5223 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5233 if test -n "$CC"; then
5234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5235 $as_echo "$CC" >&6; }
5237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5238 $as_echo "no" >&6; }
5242 test -n "$CC" && break
5246 if test "$CC" = cc ; then
5247 if test $ol_with_threads != auto ; then
5248 as_fn_error $? "--with-threads requires cc_r (or other suitable compiler) on AIX" "$LINENO" 5
5250 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: disabling threads, no cc_r on AIX" >&5
5251 $as_echo "$as_me: WARNING: disabling threads, no cc_r on AIX" >&2;}
5257 case ${CC} in cc_r | xlc_r)
5258 ol_with_threads=posix
5259 ol_cv_pthread_create=yes
5264 if test -z "${CC}"; then
5265 for ac_prog in cc gcc
5267 # Extract the first word of "$ac_prog", so it can be a program name with args.
5268 set dummy $ac_prog; ac_word=$2
5269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5270 $as_echo_n "checking for $ac_word... " >&6; }
5271 if ${ac_cv_prog_CC+:} false; then :
5272 $as_echo_n "(cached) " >&6
5274 if test -n "$CC"; then
5275 ac_cv_prog_CC="$CC" # Let the user override the test.
5277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5281 test -z "$as_dir" && as_dir=.
5282 for ac_exec_ext in '' $ac_executable_extensions; do
5283 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5284 ac_cv_prog_CC="$ac_prog"
5285 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5295 if test -n "$CC"; then
5296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5297 $as_echo "$CC" >&6; }
5299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5300 $as_echo "no" >&6; }
5304 test -n "$CC" && break
5306 test -n "$CC" || CC="missing"
5309 if test "${CC}" = "missing" ; then
5310 as_fn_error $? "Unable to locate cc(1) or suitable replacement. Check PATH or set CC." "$LINENO" 5
5314 if test -z "${AR}"; then
5315 for ac_prog in ar gar
5317 # Extract the first word of "$ac_prog", so it can be a program name with args.
5318 set dummy $ac_prog; ac_word=$2
5319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5320 $as_echo_n "checking for $ac_word... " >&6; }
5321 if ${ac_cv_prog_AR+:} false; then :
5322 $as_echo_n "(cached) " >&6
5324 if test -n "$AR"; then
5325 ac_cv_prog_AR="$AR" # Let the user override the test.
5327 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5331 test -z "$as_dir" && as_dir=.
5332 for ac_exec_ext in '' $ac_executable_extensions; do
5333 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5334 ac_cv_prog_AR="$ac_prog"
5335 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5345 if test -n "$AR"; then
5346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5347 $as_echo "$AR" >&6; }
5349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5350 $as_echo "no" >&6; }
5354 test -n "$AR" && break
5356 test -n "$AR" || AR="missing"
5359 if test "${AR}" = "missing" ; then
5360 as_fn_error $? "Unable to locate ar(1) or suitable replacement. Check PATH or set AR." "$LINENO" 5
5368 # Check whether --enable-fast-install was given.
5369 if test "${enable_fast_install+set}" = set; then :
5370 enableval=$enable_fast_install; p=${PACKAGE-default}
5372 yes) enable_fast_install=yes ;;
5373 no) enable_fast_install=no ;;
5375 enable_fast_install=no
5376 # Look at the argument we got. We use all the common list separators.
5377 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5378 for pkg in $enableval; do
5380 if test "X$pkg" = "X$p"; then
5381 enable_fast_install=yes
5388 enable_fast_install=yes
5392 DEPDIR="${am__leading_dot}deps"
5394 ac_config_commands="$ac_config_commands depfiles"
5397 am_make=${MAKE-make}
5398 cat > confinc << 'END'
5403 # If we don't find an include directive, just comment out the code.
5404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
5405 $as_echo_n "checking for style of include used by $am_make... " >&6; }
5409 # First try GNU make style include.
5410 echo "include confinc" > confmf
5411 # We grep out `Entering directory' and `Leaving directory'
5412 # messages which can occur if `w' ends up in MAKEFLAGS.
5413 # In particular we don't look at `^make:' because GNU make might
5414 # be invoked under some other name (usually "gmake"), in which
5415 # case it prints its new name instead of `make'.
5416 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
5421 # Now try BSD make style include.
5422 if test "$am__include" = "#"; then
5423 echo '.include "confinc"' > confmf
5424 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
5425 am__include=.include
5432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
5433 $as_echo "$_am_result" >&6; }
5434 rm -f confinc confmf
5436 # Check whether --enable-dependency-tracking was given.
5437 if test "${enable_dependency_tracking+set}" = set; then :
5438 enableval=$enable_dependency_tracking;
5441 if test "x$enable_dependency_tracking" != xno; then
5442 am_depcomp="$ac_aux_dir/depcomp"
5447 if test "x$enable_dependency_tracking" != xno; then
5458 ac_cpp='$CPP $CPPFLAGS'
5459 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5460 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5461 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5462 if test -n "$ac_tool_prefix"; then
5463 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5464 set dummy ${ac_tool_prefix}gcc; ac_word=$2
5465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5466 $as_echo_n "checking for $ac_word... " >&6; }
5467 if ${ac_cv_prog_CC+:} false; then :
5468 $as_echo_n "(cached) " >&6
5470 if test -n "$CC"; then
5471 ac_cv_prog_CC="$CC" # Let the user override the test.
5473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5477 test -z "$as_dir" && as_dir=.
5478 for ac_exec_ext in '' $ac_executable_extensions; do
5479 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5480 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5481 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5491 if test -n "$CC"; then
5492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5493 $as_echo "$CC" >&6; }
5495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5496 $as_echo "no" >&6; }
5501 if test -z "$ac_cv_prog_CC"; then
5503 # Extract the first word of "gcc", so it can be a program name with args.
5504 set dummy gcc; ac_word=$2
5505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5506 $as_echo_n "checking for $ac_word... " >&6; }
5507 if ${ac_cv_prog_ac_ct_CC+:} false; then :
5508 $as_echo_n "(cached) " >&6
5510 if test -n "$ac_ct_CC"; then
5511 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5517 test -z "$as_dir" && as_dir=.
5518 for ac_exec_ext in '' $ac_executable_extensions; do
5519 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5520 ac_cv_prog_ac_ct_CC="gcc"
5521 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5530 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5531 if test -n "$ac_ct_CC"; then
5532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5533 $as_echo "$ac_ct_CC" >&6; }
5535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5536 $as_echo "no" >&6; }
5539 if test "x$ac_ct_CC" = x; then
5542 case $cross_compiling:$ac_tool_warned in
5544 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5545 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5546 ac_tool_warned=yes ;;
5554 if test -z "$CC"; then
5555 if test -n "$ac_tool_prefix"; then
5556 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5557 set dummy ${ac_tool_prefix}cc; ac_word=$2
5558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5559 $as_echo_n "checking for $ac_word... " >&6; }
5560 if ${ac_cv_prog_CC+:} false; then :
5561 $as_echo_n "(cached) " >&6
5563 if test -n "$CC"; then
5564 ac_cv_prog_CC="$CC" # Let the user override the test.
5566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5570 test -z "$as_dir" && as_dir=.
5571 for ac_exec_ext in '' $ac_executable_extensions; do
5572 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5573 ac_cv_prog_CC="${ac_tool_prefix}cc"
5574 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5584 if test -n "$CC"; then
5585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5586 $as_echo "$CC" >&6; }
5588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5589 $as_echo "no" >&6; }
5595 if test -z "$CC"; then
5596 # Extract the first word of "cc", so it can be a program name with args.
5597 set dummy cc; ac_word=$2
5598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5599 $as_echo_n "checking for $ac_word... " >&6; }
5600 if ${ac_cv_prog_CC+:} false; then :
5601 $as_echo_n "(cached) " >&6
5603 if test -n "$CC"; then
5604 ac_cv_prog_CC="$CC" # Let the user override the test.
5607 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5611 test -z "$as_dir" && as_dir=.
5612 for ac_exec_ext in '' $ac_executable_extensions; do
5613 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5614 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5615 ac_prog_rejected=yes
5619 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5626 if test $ac_prog_rejected = yes; then
5627 # We found a bogon in the path, so make sure we never use it.
5628 set dummy $ac_cv_prog_CC
5630 if test $# != 0; then
5631 # We chose a different compiler from the bogus one.
5632 # However, it has the same basename, so the bogon will be chosen
5633 # first if we set CC to just the basename; use the full file name.
5635 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5641 if test -n "$CC"; then
5642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5643 $as_echo "$CC" >&6; }
5645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5646 $as_echo "no" >&6; }
5651 if test -z "$CC"; then
5652 if test -n "$ac_tool_prefix"; then
5653 for ac_prog in cl.exe
5655 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5656 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5658 $as_echo_n "checking for $ac_word... " >&6; }
5659 if ${ac_cv_prog_CC+:} false; then :
5660 $as_echo_n "(cached) " >&6
5662 if test -n "$CC"; then
5663 ac_cv_prog_CC="$CC" # Let the user override the test.
5665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5669 test -z "$as_dir" && as_dir=.
5670 for ac_exec_ext in '' $ac_executable_extensions; do
5671 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5672 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5673 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5683 if test -n "$CC"; then
5684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5685 $as_echo "$CC" >&6; }
5687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5688 $as_echo "no" >&6; }
5692 test -n "$CC" && break
5695 if test -z "$CC"; then
5697 for ac_prog in cl.exe
5699 # Extract the first word of "$ac_prog", so it can be a program name with args.
5700 set dummy $ac_prog; ac_word=$2
5701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5702 $as_echo_n "checking for $ac_word... " >&6; }
5703 if ${ac_cv_prog_ac_ct_CC+:} false; then :
5704 $as_echo_n "(cached) " >&6
5706 if test -n "$ac_ct_CC"; then
5707 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5713 test -z "$as_dir" && as_dir=.
5714 for ac_exec_ext in '' $ac_executable_extensions; do
5715 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5716 ac_cv_prog_ac_ct_CC="$ac_prog"
5717 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5726 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5727 if test -n "$ac_ct_CC"; then
5728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5729 $as_echo "$ac_ct_CC" >&6; }
5731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5732 $as_echo "no" >&6; }
5736 test -n "$ac_ct_CC" && break
5739 if test "x$ac_ct_CC" = x; then
5742 case $cross_compiling:$ac_tool_warned in
5744 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5745 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5746 ac_tool_warned=yes ;;
5755 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5756 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5757 as_fn_error $? "no acceptable C compiler found in \$PATH
5758 See \`config.log' for more details" "$LINENO" 5; }
5760 # Provide some information about the compiler.
5761 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5764 for ac_option in --version -v -V -qversion; do
5765 { { ac_try="$ac_compiler $ac_option >&5"
5767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5768 *) ac_try_echo=$ac_try;;
5770 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5771 $as_echo "$ac_try_echo"; } >&5
5772 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5774 if test -s conftest.err; then
5776 ... rest of stderr output deleted ...
5777 10q' conftest.err >conftest.er1
5778 cat conftest.er1 >&5
5780 rm -f conftest.er1 conftest.err
5781 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5782 test $ac_status = 0; }
5785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5786 /* end confdefs.h. */
5796 ac_clean_files_save=$ac_clean_files
5797 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
5798 # Try to create an executable without -o first, disregard a.out.
5799 # It will help us diagnose broken compilers, and finding out an intuition
5801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
5802 $as_echo_n "checking whether the C compiler works... " >&6; }
5803 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
5805 # The possible output files:
5806 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
5809 for ac_file in $ac_files
5812 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
5813 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
5818 if { { ac_try="$ac_link_default"
5820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5821 *) ac_try_echo=$ac_try;;
5823 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5824 $as_echo "$ac_try_echo"; } >&5
5825 (eval "$ac_link_default") 2>&5
5827 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5828 test $ac_status = 0; }; then :
5829 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
5830 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
5831 # in a Makefile. We should not override ac_cv_exeext if it was cached,
5832 # so that the user can short-circuit this test for compilers unknown to
5834 for ac_file in $ac_files ''
5836 test -f "$ac_file" || continue
5838 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
5841 # We found the default executable, but exeext='' is most
5845 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
5847 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5849 # We set ac_cv_exeext here because the later test for it is not
5850 # safe: cross compilers may not add the suffix if given an `-o'
5851 # argument, so we may need to know it at that point already.
5852 # Even if this section looks crufty: it has the advantage of
5859 test "$ac_cv_exeext" = no && ac_cv_exeext=
5864 if test -z "$ac_file"; then :
5865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5866 $as_echo "no" >&6; }
5867 $as_echo "$as_me: failed program was:" >&5
5868 sed 's/^/| /' conftest.$ac_ext >&5
5870 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5871 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5872 as_fn_error 77 "C compiler cannot create executables
5873 See \`config.log' for more details" "$LINENO" 5; }
5875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5876 $as_echo "yes" >&6; }
5878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
5879 $as_echo_n "checking for C compiler default output file name... " >&6; }
5880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
5881 $as_echo "$ac_file" >&6; }
5882 ac_exeext=$ac_cv_exeext
5884 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
5885 ac_clean_files=$ac_clean_files_save
5886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
5887 $as_echo_n "checking for suffix of executables... " >&6; }
5888 if { { ac_try="$ac_link"
5890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5891 *) ac_try_echo=$ac_try;;
5893 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5894 $as_echo "$ac_try_echo"; } >&5
5895 (eval "$ac_link") 2>&5
5897 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5898 test $ac_status = 0; }; then :
5899 # If both `conftest.exe' and `conftest' are `present' (well, observable)
5900 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
5901 # work properly (i.e., refer to `conftest.exe'), while it won't with
5903 for ac_file in conftest.exe conftest conftest.*; do
5904 test -f "$ac_file" || continue
5906 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
5907 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5913 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5914 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5915 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
5916 See \`config.log' for more details" "$LINENO" 5; }
5918 rm -f conftest conftest$ac_cv_exeext
5919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
5920 $as_echo "$ac_cv_exeext" >&6; }
5922 rm -f conftest.$ac_ext
5923 EXEEXT=$ac_cv_exeext
5925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5926 /* end confdefs.h. */
5931 FILE *f = fopen ("conftest.out", "w");
5932 return ferror (f) || fclose (f) != 0;
5938 ac_clean_files="$ac_clean_files conftest.out"
5939 # Check that the compiler produces executables we can run. If not, either
5940 # the compiler is broken, or we cross compile.
5941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
5942 $as_echo_n "checking whether we are cross compiling... " >&6; }
5943 if test "$cross_compiling" != yes; then
5944 { { ac_try="$ac_link"
5946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5947 *) ac_try_echo=$ac_try;;
5949 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5950 $as_echo "$ac_try_echo"; } >&5
5951 (eval "$ac_link") 2>&5
5953 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5954 test $ac_status = 0; }
5955 if { ac_try='./conftest$ac_cv_exeext'
5956 { { case "(($ac_try" in
5957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5958 *) ac_try_echo=$ac_try;;
5960 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5961 $as_echo "$ac_try_echo"; } >&5
5962 (eval "$ac_try") 2>&5
5964 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5965 test $ac_status = 0; }; }; then
5968 if test "$cross_compiling" = maybe; then
5971 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5972 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5973 as_fn_error $? "cannot run C compiled programs.
5974 If you meant to cross compile, use \`--host'.
5975 See \`config.log' for more details" "$LINENO" 5; }
5979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
5980 $as_echo "$cross_compiling" >&6; }
5982 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
5983 ac_clean_files=$ac_clean_files_save
5984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
5985 $as_echo_n "checking for suffix of object files... " >&6; }
5986 if ${ac_cv_objext+:} false; then :
5987 $as_echo_n "(cached) " >&6
5989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5990 /* end confdefs.h. */
6000 rm -f conftest.o conftest.obj
6001 if { { ac_try="$ac_compile"
6003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6004 *) ac_try_echo=$ac_try;;
6006 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6007 $as_echo "$ac_try_echo"; } >&5
6008 (eval "$ac_compile") 2>&5
6010 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6011 test $ac_status = 0; }; then :
6012 for ac_file in conftest.o conftest.obj conftest.*; do
6013 test -f "$ac_file" || continue;
6015 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
6016 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
6021 $as_echo "$as_me: failed program was:" >&5
6022 sed 's/^/| /' conftest.$ac_ext >&5
6024 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6025 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6026 as_fn_error $? "cannot compute suffix of object files: cannot compile
6027 See \`config.log' for more details" "$LINENO" 5; }
6029 rm -f conftest.$ac_cv_objext conftest.$ac_ext
6031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
6032 $as_echo "$ac_cv_objext" >&6; }
6033 OBJEXT=$ac_cv_objext
6035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
6036 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
6037 if ${ac_cv_c_compiler_gnu+:} false; then :
6038 $as_echo_n "(cached) " >&6
6040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6041 /* end confdefs.h. */
6054 if ac_fn_c_try_compile "$LINENO"; then :
6059 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6060 ac_cv_c_compiler_gnu=$ac_compiler_gnu
6063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
6064 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
6065 if test $ac_compiler_gnu = yes; then
6070 ac_test_CFLAGS=${CFLAGS+set}
6071 ac_save_CFLAGS=$CFLAGS
6072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
6073 $as_echo_n "checking whether $CC accepts -g... " >&6; }
6074 if ${ac_cv_prog_cc_g+:} false; then :
6075 $as_echo_n "(cached) " >&6
6077 ac_save_c_werror_flag=$ac_c_werror_flag
6078 ac_c_werror_flag=yes
6081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6082 /* end confdefs.h. */
6092 if ac_fn_c_try_compile "$LINENO"; then :
6096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6097 /* end confdefs.h. */
6107 if ac_fn_c_try_compile "$LINENO"; then :
6110 ac_c_werror_flag=$ac_save_c_werror_flag
6112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6113 /* end confdefs.h. */
6123 if ac_fn_c_try_compile "$LINENO"; then :
6126 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6128 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6130 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6131 ac_c_werror_flag=$ac_save_c_werror_flag
6133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
6134 $as_echo "$ac_cv_prog_cc_g" >&6; }
6135 if test "$ac_test_CFLAGS" = set; then
6136 CFLAGS=$ac_save_CFLAGS
6137 elif test $ac_cv_prog_cc_g = yes; then
6138 if test "$GCC" = yes; then
6144 if test "$GCC" = yes; then
6150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
6151 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
6152 if ${ac_cv_prog_cc_c89+:} false; then :
6153 $as_echo_n "(cached) " >&6
6155 ac_cv_prog_cc_c89=no
6157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6158 /* end confdefs.h. */
6162 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6163 struct buf { int x; };
6164 FILE * (*rcsopen) (struct buf *, struct stat *, int);
6165 static char *e (p, i)
6171 static char *f (char * (*g) (char **, int), char **p, ...)
6176 s = g (p, va_arg (v,int));
6181 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6182 function prototypes and stuff, but not '\xHH' hex character constants.
6183 These don't provoke an error unfortunately, instead are silently treated
6184 as 'x'. The following induces an error, until -std is added to get
6185 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6186 array size at least. It's necessary to write '\x00'==0 to get something
6187 that's true only with -std. */
6188 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6190 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6191 inside strings and character constants. */
6193 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6195 int test (int i, double x);
6196 struct s1 {int (*f) (int a);};
6197 struct s2 {int (*f) (double a);};
6198 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6204 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6209 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6210 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6212 CC="$ac_save_CC $ac_arg"
6213 if ac_fn_c_try_compile "$LINENO"; then :
6214 ac_cv_prog_cc_c89=$ac_arg
6216 rm -f core conftest.err conftest.$ac_objext
6217 test "x$ac_cv_prog_cc_c89" != "xno" && break
6219 rm -f conftest.$ac_ext
6224 case "x$ac_cv_prog_cc_c89" in
6226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6227 $as_echo "none needed" >&6; } ;;
6229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6230 $as_echo "unsupported" >&6; } ;;
6232 CC="$CC $ac_cv_prog_cc_c89"
6233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6234 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6236 if test "x$ac_cv_prog_cc_c89" != xno; then :
6241 ac_cpp='$CPP $CPPFLAGS'
6242 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6243 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6244 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6246 depcc="$CC" am_compiler_list=
6248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6249 $as_echo_n "checking dependency style of $depcc... " >&6; }
6250 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
6251 $as_echo_n "(cached) " >&6
6253 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6254 # We make a subdir and do the tests there. Otherwise we can end up
6255 # making bogus files that we don't know about and never remove. For
6256 # instance it was reported that on HP-UX the gcc test will end up
6257 # making a dummy file named `D' -- because `-MD' means `put the output
6260 # Copy depcomp to subdir because otherwise we won't find it if we're
6261 # using a relative directory.
6262 cp "$am_depcomp" conftest.dir
6264 # We will build objects and dependencies in a subdirectory because
6265 # it helps to detect inapplicable dependency modes. For instance
6266 # both Tru64's cc and ICC support -MD to output dependencies as a
6267 # side effect of compilation, but ICC will put the dependencies in
6268 # the current directory while Tru64 will put them in the object
6272 am_cv_CC_dependencies_compiler_type=none
6273 if test "$am_compiler_list" = ""; then
6274 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6276 for depmode in $am_compiler_list; do
6277 # Setup a source with many dependencies, because some compilers
6278 # like to wrap large dependency lists on column 80 (with \), and
6279 # we should not choose a depcomp mode which is confused by this.
6281 # We need to recreate these files for each test, as the compiler may
6282 # overwrite some of them when testing with obscure command lines.
6283 # This happens at least with the AIX C compiler.
6285 for i in 1 2 3 4 5 6; do
6286 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6287 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6288 # Solaris 8's {/usr,}/bin/sh.
6289 touch sub/conftst$i.h
6291 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6295 # after this tag, mechanisms are not by side-effect, so they'll
6296 # only be used when explicitly requested
6297 if test "x$enable_dependency_tracking" = xyes; then
6305 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6306 # mode. It turns out that the SunPro C++ compiler does not properly
6307 # handle `-M -o', and we need to detect this.
6308 if depmode=$depmode \
6309 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
6310 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6311 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
6312 >/dev/null 2>conftest.err &&
6313 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6314 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
6315 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6316 # icc doesn't choke on unknown options, it will just issue warnings
6317 # or remarks (even with -Werror). So we grep stderr for any message
6318 # that says an option was ignored or not supported.
6319 # When given -MP, icc 7.0 and 7.1 complain thusly:
6320 # icc: Command line warning: ignoring option '-M'; no argument required
6321 # The diagnosis changed in icc 8.0:
6322 # icc: Command line remark: option '-MP' not supported
6323 if (grep 'ignoring option' conftest.err ||
6324 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6325 am_cv_CC_dependencies_compiler_type=$depmode
6334 am_cv_CC_dependencies_compiler_type=none
6338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6339 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6340 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6345 test "x$enable_dependency_tracking" != xno \
6346 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6348 am__fastdepCC_FALSE='#'
6350 am__fastdepCC_TRUE='#'
6351 am__fastdepCC_FALSE=
6355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6356 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6357 if ${lt_cv_path_SED+:} false; then :
6358 $as_echo_n "(cached) " >&6
6360 # Loop through the user's path and test for sed and gsed.
6361 # Then use that list of sed's as ones to test for truncation.
6362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6366 test -z "$as_dir" && as_dir=.
6367 for lt_ac_prog in sed gsed; do
6368 for ac_exec_ext in '' $ac_executable_extensions; do
6369 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
6370 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
6377 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
6378 # along with /bin/sed that truncates output.
6379 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
6380 test ! -f $lt_ac_sed && continue
6381 cat /dev/null > conftest.in
6383 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
6384 # Check for GNU sed and select it if it is found.
6385 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
6386 lt_cv_path_SED=$lt_ac_sed
6390 cat conftest.in conftest.in >conftest.tmp
6391 mv conftest.tmp conftest.in
6392 cp conftest.in conftest.nl
6394 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
6395 cmp -s conftest.out conftest.nl || break
6396 # 10000 chars as input seems more than enough
6397 test $lt_ac_count -gt 10 && break
6398 lt_ac_count=`expr $lt_ac_count + 1`
6399 if test $lt_ac_count -gt $lt_ac_max; then
6400 lt_ac_max=$lt_ac_count
6401 lt_cv_path_SED=$lt_ac_sed
6409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
6410 $as_echo "$SED" >&6; }
6412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6413 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
6414 if ${ac_cv_path_GREP+:} false; then :
6415 $as_echo_n "(cached) " >&6
6417 if test -z "$GREP"; then
6418 ac_path_GREP_found=false
6419 # Loop through the user's path and test for each of PROGNAME-LIST
6420 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6421 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6424 test -z "$as_dir" && as_dir=.
6425 for ac_prog in grep ggrep; do
6426 for ac_exec_ext in '' $ac_executable_extensions; do
6427 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
6428 as_fn_executable_p "$ac_path_GREP" || continue
6429 # Check for GNU ac_path_GREP and select it if it is found.
6430 # Check for GNU $ac_path_GREP
6431 case `"$ac_path_GREP" --version 2>&1` in
6433 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6436 $as_echo_n 0123456789 >"conftest.in"
6439 cat "conftest.in" "conftest.in" >"conftest.tmp"
6440 mv "conftest.tmp" "conftest.in"
6441 cp "conftest.in" "conftest.nl"
6442 $as_echo 'GREP' >> "conftest.nl"
6443 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6444 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6445 as_fn_arith $ac_count + 1 && ac_count=$as_val
6446 if test $ac_count -gt ${ac_path_GREP_max-0}; then
6447 # Best one so far, save it but keep looking for a better one
6448 ac_cv_path_GREP="$ac_path_GREP"
6449 ac_path_GREP_max=$ac_count
6451 # 10*(2^10) chars as input seems more than enough
6452 test $ac_count -gt 10 && break
6454 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6457 $ac_path_GREP_found && break 3
6462 if test -z "$ac_cv_path_GREP"; then
6463 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6466 ac_cv_path_GREP=$GREP
6470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6471 $as_echo "$ac_cv_path_GREP" >&6; }
6472 GREP="$ac_cv_path_GREP"
6475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6476 $as_echo_n "checking for egrep... " >&6; }
6477 if ${ac_cv_path_EGREP+:} false; then :
6478 $as_echo_n "(cached) " >&6
6480 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6481 then ac_cv_path_EGREP="$GREP -E"
6483 if test -z "$EGREP"; then
6484 ac_path_EGREP_found=false
6485 # Loop through the user's path and test for each of PROGNAME-LIST
6486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6487 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6490 test -z "$as_dir" && as_dir=.
6491 for ac_prog in egrep; do
6492 for ac_exec_ext in '' $ac_executable_extensions; do
6493 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6494 as_fn_executable_p "$ac_path_EGREP" || continue
6495 # Check for GNU ac_path_EGREP and select it if it is found.
6496 # Check for GNU $ac_path_EGREP
6497 case `"$ac_path_EGREP" --version 2>&1` in
6499 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6502 $as_echo_n 0123456789 >"conftest.in"
6505 cat "conftest.in" "conftest.in" >"conftest.tmp"
6506 mv "conftest.tmp" "conftest.in"
6507 cp "conftest.in" "conftest.nl"
6508 $as_echo 'EGREP' >> "conftest.nl"
6509 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6510 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6511 as_fn_arith $ac_count + 1 && ac_count=$as_val
6512 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6513 # Best one so far, save it but keep looking for a better one
6514 ac_cv_path_EGREP="$ac_path_EGREP"
6515 ac_path_EGREP_max=$ac_count
6517 # 10*(2^10) chars as input seems more than enough
6518 test $ac_count -gt 10 && break
6520 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6523 $ac_path_EGREP_found && break 3
6528 if test -z "$ac_cv_path_EGREP"; then
6529 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6532 ac_cv_path_EGREP=$EGREP
6537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6538 $as_echo "$ac_cv_path_EGREP" >&6; }
6539 EGREP="$ac_cv_path_EGREP"
6543 # Check whether --with-gnu-ld was given.
6544 if test "${with_gnu_ld+set}" = set; then :
6545 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6551 if test "$GCC" = yes; then
6552 # Check if gcc -print-prog-name=ld gives a path.
6553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6554 $as_echo_n "checking for ld used by $CC... " >&6; }
6557 # gcc leaves a trailing carriage return which upsets mingw
6558 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6560 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6563 # Accept absolute paths.
6565 re_direlt='/[^/][^/]*/\.\./'
6566 # Canonicalize the pathname of ld
6567 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
6568 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
6569 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
6571 test -z "$LD" && LD="$ac_prog"
6574 # If it fails, then pretend we aren't using GCC.
6578 # If it is relative, then search for the first ld in PATH.
6582 elif test "$with_gnu_ld" = yes; then
6583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6584 $as_echo_n "checking for GNU ld... " >&6; }
6586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6587 $as_echo_n "checking for non-GNU ld... " >&6; }
6589 if ${lt_cv_path_LD+:} false; then :
6590 $as_echo_n "(cached) " >&6
6592 if test -z "$LD"; then
6593 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6594 for ac_dir in $PATH; do
6596 test -z "$ac_dir" && ac_dir=.
6597 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6598 lt_cv_path_LD="$ac_dir/$ac_prog"
6599 # Check to see if the program is GNU ld. I'd rather use --version,
6600 # but apparently some variants of GNU ld only accept -v.
6601 # Break only if it was the GNU/non-GNU ld that we prefer.
6602 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6603 *GNU* | *'with BFD'*)
6604 test "$with_gnu_ld" != no && break
6607 test "$with_gnu_ld" != yes && break
6614 lt_cv_path_LD="$LD" # Let the user override the test with a path.
6619 if test -n "$LD"; then
6620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6621 $as_echo "$LD" >&6; }
6623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6624 $as_echo "no" >&6; }
6626 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6628 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6629 if ${lt_cv_prog_gnu_ld+:} false; then :
6630 $as_echo_n "(cached) " >&6
6632 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6633 case `$LD -v 2>&1 </dev/null` in
6634 *GNU* | *'with BFD'*)
6635 lt_cv_prog_gnu_ld=yes
6638 lt_cv_prog_gnu_ld=no
6642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6643 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6644 with_gnu_ld=$lt_cv_prog_gnu_ld
6647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6648 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6649 if ${lt_cv_ld_reload_flag+:} false; then :
6650 $as_echo_n "(cached) " >&6
6652 lt_cv_ld_reload_flag='-r'
6654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6655 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6656 reload_flag=$lt_cv_ld_reload_flag
6657 case $reload_flag in
6659 *) reload_flag=" $reload_flag" ;;
6661 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6664 if test "$GCC" = yes; then
6665 reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
6667 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD-compatible nm" >&5
6673 $as_echo_n "checking for BSD-compatible nm... " >&6; }
6674 if ${lt_cv_path_NM+:} false; then :
6675 $as_echo_n "(cached) " >&6
6677 if test -n "$NM"; then
6678 # Let the user override the test.
6681 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6682 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
6684 test -z "$ac_dir" && ac_dir=.
6685 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
6686 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6687 # Check to see if the nm accepts a BSD-compat flag.
6688 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6689 # nm: unknown option "B" ignored
6690 # Tru64's nm complains that /dev/null is an invalid object file
6691 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6692 */dev/null* | *'Invalid file or object type'*)
6693 lt_cv_path_NM="$tmp_nm -B"
6697 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6699 lt_cv_path_NM="$tmp_nm -p"
6703 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6704 continue # so that we can try to find one that supports BSD flags
6711 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6715 $as_echo "$lt_cv_path_NM" >&6; }
6718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6719 $as_echo_n "checking whether ln -s works... " >&6; }
6721 if test "$LN_S" = "ln -s"; then
6722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6723 $as_echo "yes" >&6; }
6725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6726 $as_echo "no, using $LN_S" >&6; }
6729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognise dependent libraries" >&5
6730 $as_echo_n "checking how to recognise dependent libraries... " >&6; }
6731 if ${lt_cv_deplibs_check_method+:} false; then :
6732 $as_echo_n "(cached) " >&6
6734 lt_cv_file_magic_cmd='$MAGIC_CMD'
6735 lt_cv_file_magic_test_file=
6736 lt_cv_deplibs_check_method='unknown'
6737 # Need to set the preceding variable on all platforms that support
6738 # interlibrary dependencies.
6739 # 'none' -- dependencies not supported.
6740 # `unknown' -- same as none, but documents that we really don't know.
6741 # 'pass_all' -- all dependencies passed with no checks.
6742 # 'test_compile' -- check by making test program.
6743 # 'file_magic [[regex]]' -- check by looking for files in library path
6744 # which responds to the $file_magic_cmd with a given extended regex.
6745 # If you have `file' or equivalent on your system and you're not sure
6746 # whether `pass_all' will *always* work, you probably want this one.
6750 lt_cv_deplibs_check_method=pass_all
6754 lt_cv_deplibs_check_method=pass_all
6758 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6759 lt_cv_file_magic_cmd='/usr/bin/file -L'
6760 lt_cv_file_magic_test_file=/shlib/libc.so
6764 # func_win32_libid is a shell function defined in ltmain.sh
6765 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6766 lt_cv_file_magic_cmd='func_win32_libid'
6770 # Base MSYS/MinGW do not provide the 'file' command needed by
6771 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
6772 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6773 lt_cv_file_magic_cmd='$OBJDUMP -f'
6776 darwin* | rhapsody*)
6777 lt_cv_deplibs_check_method=pass_all
6780 freebsd* | kfreebsd*-gnu | dragonfly*)
6781 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6784 # Not sure whether the presence of OpenBSD here was a mistake.
6785 # Let's accept both of them until this is cleared up.
6786 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6787 lt_cv_file_magic_cmd=/usr/bin/file
6788 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6792 lt_cv_deplibs_check_method=pass_all
6797 lt_cv_deplibs_check_method=pass_all
6800 hpux10.20* | hpux11*)
6801 lt_cv_file_magic_cmd=/usr/bin/file
6804 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6805 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6808 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]'
6809 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6812 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6813 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6818 irix5* | irix6* | nonstopux*)
6820 *-32|*"-32 ") libmagic=32-bit;;
6821 *-n32|*"-n32 ") libmagic=N32;;
6822 *-64|*"-64 ") libmagic=64-bit;;
6823 *) libmagic=never-match;;
6825 lt_cv_deplibs_check_method=pass_all
6828 # This must be Linux ELF.
6830 lt_cv_deplibs_check_method=pass_all
6834 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6835 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6837 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6842 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6843 lt_cv_file_magic_cmd=/usr/bin/file
6844 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6848 lt_cv_deplibs_check_method=unknown
6852 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6853 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6855 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6859 osf3* | osf4* | osf5*)
6860 lt_cv_deplibs_check_method=pass_all
6864 lt_cv_deplibs_check_method=pass_all
6868 lt_cv_deplibs_check_method=pass_all
6871 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6872 case $host_vendor in
6874 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]'
6875 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6878 lt_cv_deplibs_check_method=pass_all
6881 lt_cv_file_magic_cmd='/bin/file'
6882 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6885 lt_cv_file_magic_cmd='/bin/file'
6886 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6887 lt_cv_file_magic_test_file=/lib/libc.so
6890 lt_cv_deplibs_check_method=pass_all
6895 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
6896 lt_cv_deplibs_check_method=pass_all
6901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6902 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6903 file_magic_cmd=$lt_cv_file_magic_cmd
6904 deplibs_check_method=$lt_cv_deplibs_check_method
6905 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6910 # If no C compiler was specified, use CC.
6913 # Allow CC to be a program name with arguments.
6917 # Check whether --enable-libtool-lock was given.
6918 if test "${enable_libtool_lock+set}" = set; then :
6919 enableval=$enable_libtool_lock;
6922 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6924 # Some flags need to be propagated to the compiler or linker for good
6928 # Find out which ABI we are using.
6929 echo 'int i;' > conftest.$ac_ext
6930 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6931 (eval $ac_compile) 2>&5
6933 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6934 test $ac_status = 0; }; then
6935 case `/usr/bin/file conftest.$ac_objext` in
6947 # Find out which ABI we are using.
6948 echo '#line 6948 "configure"' > conftest.$ac_ext
6949 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6950 (eval $ac_compile) 2>&5
6952 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6953 test $ac_status = 0; }; then
6954 if test "$lt_cv_prog_gnu_ld" = yes; then
6955 case `/usr/bin/file conftest.$ac_objext` in
6957 LD="${LD-ld} -melf32bsmip"
6960 LD="${LD-ld} -melf32bmipn32"
6963 LD="${LD-ld} -melf64bmip"
6967 case `/usr/bin/file conftest.$ac_objext` in
6983 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
6984 # Find out which ABI we are using.
6985 echo 'int i;' > conftest.$ac_ext
6986 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6987 (eval $ac_compile) 2>&5
6989 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6990 test $ac_status = 0; }; then
6991 case `/usr/bin/file conftest.o` in
6995 LD="${LD-ld} -m elf_i386"
6997 ppc64-*linux*|powerpc64-*linux*)
6998 LD="${LD-ld} -m elf32ppclinux"
7001 LD="${LD-ld} -m elf_s390"
7004 LD="${LD-ld} -m elf32_sparc"
7011 LD="${LD-ld} -m elf_x86_64"
7013 ppc*-*linux*|powerpc*-*linux*)
7014 LD="${LD-ld} -m elf64ppc"
7017 LD="${LD-ld} -m elf64_s390"
7020 LD="${LD-ld} -m elf64_sparc"
7030 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7031 SAVE_CFLAGS="$CFLAGS"
7032 CFLAGS="$CFLAGS -belf"
7033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7034 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7035 if ${lt_cv_cc_needs_belf+:} false; then :
7036 $as_echo_n "(cached) " >&6
7039 ac_cpp='$CPP $CPPFLAGS'
7040 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7041 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7042 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7045 /* end confdefs.h. */
7055 if ac_fn_c_try_link "$LINENO"; then :
7056 lt_cv_cc_needs_belf=yes
7058 lt_cv_cc_needs_belf=no
7060 rm -f core conftest.err conftest.$ac_objext \
7061 conftest$ac_exeext conftest.$ac_ext
7063 ac_cpp='$CPP $CPPFLAGS'
7064 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7065 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7066 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7070 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7071 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7072 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7073 CFLAGS="$SAVE_CFLAGS"
7076 *-*-cygwin* | *-*-mingw* | *-*-pw32*)
7077 if test -n "$ac_tool_prefix"; then
7078 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7079 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7081 $as_echo_n "checking for $ac_word... " >&6; }
7082 if ${ac_cv_prog_DLLTOOL+:} false; then :
7083 $as_echo_n "(cached) " >&6
7085 if test -n "$DLLTOOL"; then
7086 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7092 test -z "$as_dir" && as_dir=.
7093 for ac_exec_ext in '' $ac_executable_extensions; do
7094 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7095 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7096 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7105 DLLTOOL=$ac_cv_prog_DLLTOOL
7106 if test -n "$DLLTOOL"; then
7107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7108 $as_echo "$DLLTOOL" >&6; }
7110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7111 $as_echo "no" >&6; }
7116 if test -z "$ac_cv_prog_DLLTOOL"; then
7117 ac_ct_DLLTOOL=$DLLTOOL
7118 # Extract the first word of "dlltool", so it can be a program name with args.
7119 set dummy dlltool; ac_word=$2
7120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7121 $as_echo_n "checking for $ac_word... " >&6; }
7122 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
7123 $as_echo_n "(cached) " >&6
7125 if test -n "$ac_ct_DLLTOOL"; then
7126 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7128 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7132 test -z "$as_dir" && as_dir=.
7133 for ac_exec_ext in '' $ac_executable_extensions; do
7134 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7135 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7136 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7145 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7146 if test -n "$ac_ct_DLLTOOL"; then
7147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7148 $as_echo "$ac_ct_DLLTOOL" >&6; }
7150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7151 $as_echo "no" >&6; }
7154 if test "x$ac_ct_DLLTOOL" = x; then
7157 case $cross_compiling:$ac_tool_warned in
7159 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7160 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7161 ac_tool_warned=yes ;;
7163 DLLTOOL=$ac_ct_DLLTOOL
7166 DLLTOOL="$ac_cv_prog_DLLTOOL"
7169 if test -n "$ac_tool_prefix"; then
7170 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
7171 set dummy ${ac_tool_prefix}as; ac_word=$2
7172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7173 $as_echo_n "checking for $ac_word... " >&6; }
7174 if ${ac_cv_prog_AS+:} false; then :
7175 $as_echo_n "(cached) " >&6
7177 if test -n "$AS"; then
7178 ac_cv_prog_AS="$AS" # Let the user override the test.
7180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7184 test -z "$as_dir" && as_dir=.
7185 for ac_exec_ext in '' $ac_executable_extensions; do
7186 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7187 ac_cv_prog_AS="${ac_tool_prefix}as"
7188 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7198 if test -n "$AS"; then
7199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
7200 $as_echo "$AS" >&6; }
7202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7203 $as_echo "no" >&6; }
7208 if test -z "$ac_cv_prog_AS"; then
7210 # Extract the first word of "as", so it can be a program name with args.
7211 set dummy as; ac_word=$2
7212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7213 $as_echo_n "checking for $ac_word... " >&6; }
7214 if ${ac_cv_prog_ac_ct_AS+:} false; then :
7215 $as_echo_n "(cached) " >&6
7217 if test -n "$ac_ct_AS"; then
7218 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
7220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7224 test -z "$as_dir" && as_dir=.
7225 for ac_exec_ext in '' $ac_executable_extensions; do
7226 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7227 ac_cv_prog_ac_ct_AS="as"
7228 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7237 ac_ct_AS=$ac_cv_prog_ac_ct_AS
7238 if test -n "$ac_ct_AS"; then
7239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
7240 $as_echo "$ac_ct_AS" >&6; }
7242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7243 $as_echo "no" >&6; }
7246 if test "x$ac_ct_AS" = x; then
7249 case $cross_compiling:$ac_tool_warned in
7251 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7252 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7253 ac_tool_warned=yes ;;
7261 if test -n "$ac_tool_prefix"; then
7262 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7263 set dummy ${ac_tool_prefix}objdump; ac_word=$2
7264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7265 $as_echo_n "checking for $ac_word... " >&6; }
7266 if ${ac_cv_prog_OBJDUMP+:} false; then :
7267 $as_echo_n "(cached) " >&6
7269 if test -n "$OBJDUMP"; then
7270 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7276 test -z "$as_dir" && as_dir=.
7277 for ac_exec_ext in '' $ac_executable_extensions; do
7278 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7279 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7280 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7289 OBJDUMP=$ac_cv_prog_OBJDUMP
7290 if test -n "$OBJDUMP"; then
7291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7292 $as_echo "$OBJDUMP" >&6; }
7294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7295 $as_echo "no" >&6; }
7300 if test -z "$ac_cv_prog_OBJDUMP"; then
7301 ac_ct_OBJDUMP=$OBJDUMP
7302 # Extract the first word of "objdump", so it can be a program name with args.
7303 set dummy objdump; ac_word=$2
7304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7305 $as_echo_n "checking for $ac_word... " >&6; }
7306 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
7307 $as_echo_n "(cached) " >&6
7309 if test -n "$ac_ct_OBJDUMP"; then
7310 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7316 test -z "$as_dir" && as_dir=.
7317 for ac_exec_ext in '' $ac_executable_extensions; do
7318 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7319 ac_cv_prog_ac_ct_OBJDUMP="objdump"
7320 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7329 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7330 if test -n "$ac_ct_OBJDUMP"; then
7331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7332 $as_echo "$ac_ct_OBJDUMP" >&6; }
7334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7335 $as_echo "no" >&6; }
7338 if test "x$ac_ct_OBJDUMP" = x; then
7341 case $cross_compiling:$ac_tool_warned in
7343 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7344 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7345 ac_tool_warned=yes ;;
7347 OBJDUMP=$ac_ct_OBJDUMP
7350 OBJDUMP="$ac_cv_prog_OBJDUMP"
7357 need_locks="$enable_libtool_lock"
7361 ac_cpp='$CPP $CPPFLAGS'
7362 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7363 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7364 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7366 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7367 # On Suns, sometimes $CPP names a directory.
7368 if test -n "$CPP" && test -d "$CPP"; then
7371 if test -z "$CPP"; then
7372 if ${ac_cv_prog_CPP+:} false; then :
7373 $as_echo_n "(cached) " >&6
7375 # Double quotes because CPP needs to be expanded
7376 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7379 for ac_c_preproc_warn_flag in '' yes
7381 # Use a header file that comes with gcc, so configuring glibc
7382 # with a fresh cross-compiler works.
7383 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7384 # <limits.h> exists even on freestanding compilers.
7385 # On the NeXT, cc -E runs the code through the compiler's parser,
7386 # not just through cpp. "Syntax error" is here to catch this case.
7387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7388 /* end confdefs.h. */
7390 # include <limits.h>
7392 # include <assert.h>
7396 if ac_fn_c_try_cpp "$LINENO"; then :
7399 # Broken: fails on valid input.
7402 rm -f conftest.err conftest.i conftest.$ac_ext
7404 # OK, works on sane cases. Now check whether nonexistent headers
7405 # can be detected and how.
7406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7407 /* end confdefs.h. */
7408 #include <ac_nonexistent.h>
7410 if ac_fn_c_try_cpp "$LINENO"; then :
7411 # Broken: success on invalid input.
7414 # Passes both tests.
7418 rm -f conftest.err conftest.i conftest.$ac_ext
7421 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7422 rm -f conftest.i conftest.err conftest.$ac_ext
7423 if $ac_preproc_ok; then :
7435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7436 $as_echo "$CPP" >&6; }
7438 for ac_c_preproc_warn_flag in '' yes
7440 # Use a header file that comes with gcc, so configuring glibc
7441 # with a fresh cross-compiler works.
7442 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7443 # <limits.h> exists even on freestanding compilers.
7444 # On the NeXT, cc -E runs the code through the compiler's parser,
7445 # not just through cpp. "Syntax error" is here to catch this case.
7446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7447 /* end confdefs.h. */
7449 # include <limits.h>
7451 # include <assert.h>
7455 if ac_fn_c_try_cpp "$LINENO"; then :
7458 # Broken: fails on valid input.
7461 rm -f conftest.err conftest.i conftest.$ac_ext
7463 # OK, works on sane cases. Now check whether nonexistent headers
7464 # can be detected and how.
7465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7466 /* end confdefs.h. */
7467 #include <ac_nonexistent.h>
7469 if ac_fn_c_try_cpp "$LINENO"; then :
7470 # Broken: success on invalid input.
7473 # Passes both tests.
7477 rm -f conftest.err conftest.i conftest.$ac_ext
7480 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7481 rm -f conftest.i conftest.err conftest.$ac_ext
7482 if $ac_preproc_ok; then :
7485 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7486 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7487 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7488 See \`config.log' for more details" "$LINENO" 5; }
7492 ac_cpp='$CPP $CPPFLAGS'
7493 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7494 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7495 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7499 $as_echo_n "checking for ANSI C header files... " >&6; }
7500 if ${ac_cv_header_stdc+:} false; then :
7501 $as_echo_n "(cached) " >&6
7503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7504 /* end confdefs.h. */
7518 if ac_fn_c_try_compile "$LINENO"; then :
7519 ac_cv_header_stdc=yes
7521 ac_cv_header_stdc=no
7523 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7525 if test $ac_cv_header_stdc = yes; then
7526 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7528 /* end confdefs.h. */
7532 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7533 $EGREP "memchr" >/dev/null 2>&1; then :
7536 ac_cv_header_stdc=no
7542 if test $ac_cv_header_stdc = yes; then
7543 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7545 /* end confdefs.h. */
7549 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7550 $EGREP "free" >/dev/null 2>&1; then :
7553 ac_cv_header_stdc=no
7559 if test $ac_cv_header_stdc = yes; then
7560 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7561 if test "$cross_compiling" = yes; then :
7564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7565 /* end confdefs.h. */
7568 #if ((' ' & 0x0FF) == 0x020)
7569 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7570 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7572 # define ISLOWER(c) \
7573 (('a' <= (c) && (c) <= 'i') \
7574 || ('j' <= (c) && (c) <= 'r') \
7575 || ('s' <= (c) && (c) <= 'z'))
7576 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7579 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7584 for (i = 0; i < 256; i++)
7585 if (XOR (islower (i), ISLOWER (i))
7586 || toupper (i) != TOUPPER (i))
7591 if ac_fn_c_try_run "$LINENO"; then :
7594 ac_cv_header_stdc=no
7596 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7597 conftest.$ac_objext conftest.beam conftest.$ac_ext
7602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7603 $as_echo "$ac_cv_header_stdc" >&6; }
7604 if test $ac_cv_header_stdc = yes; then
7606 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7610 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7611 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7612 inttypes.h stdint.h unistd.h
7614 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7615 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7617 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7618 cat >>confdefs.h <<_ACEOF
7619 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7627 for ac_header in dlfcn.h
7629 ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
7630 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7631 cat >>confdefs.h <<_ACEOF
7632 #define HAVE_DLFCN_H 1
7640 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
7642 # find the maximum length of command line arguments
7643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
7644 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
7645 if ${lt_cv_sys_max_cmd_len+:} false; then :
7646 $as_echo_n "(cached) " >&6
7653 # On DJGPP, this test can blow up pretty badly due to problems in libc
7654 # (any single argument exceeding 2000 bytes causes a buffer overrun
7655 # during glob expansion). Even if it were fixed, the result of this
7656 # check would be larger than it should be.
7657 lt_cv_sys_max_cmd_len=12288; # 12K is about right
7661 # Under GNU Hurd, this test is not required because there is
7662 # no limit to the length of command line arguments.
7663 # Libtool will interpret -1 as no limit whatsoever
7664 lt_cv_sys_max_cmd_len=-1;
7668 # On Win9x/ME, this test blows up -- it succeeds, but takes
7669 # about 5 minutes as the teststring grows exponentially.
7670 # Worse, since 9x/ME are not pre-emptively multitasking,
7671 # you end up with a "frozen" computer, even though with patience
7672 # the test eventually succeeds (with a max line length of 256k).
7673 # Instead, let's just punt: use the minimum linelength reported by
7674 # all of the supported platforms: 8192 (on NT/2K/XP).
7675 lt_cv_sys_max_cmd_len=8192;
7679 # On AmigaOS with pdksh, this test takes hours, literally.
7680 # So we just punt and use a minimum line length of 8192.
7681 lt_cv_sys_max_cmd_len=8192;
7684 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7685 # This has been around since 386BSD, at least. Likely further.
7686 if test -x /sbin/sysctl; then
7687 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7688 elif test -x /usr/sbin/sysctl; then
7689 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7691 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
7693 # And add a safety zone
7694 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7695 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7698 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7699 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7700 # nice to cause kernel panics so lets avoid the loop below.
7701 # First set a reasonable default.
7702 lt_cv_sys_max_cmd_len=16384
7704 if test -x /sbin/sysconfig; then
7705 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7706 *1*) lt_cv_sys_max_cmd_len=-1 ;;
7711 # If test is not a shell built-in, we'll probably end up computing a
7712 # maximum length that is only half of the actual maximum length, but
7714 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7715 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
7716 = "XX$teststring") >/dev/null 2>&1 &&
7717 new_result=`expr "X$teststring" : ".*" 2>&1` &&
7718 lt_cv_sys_max_cmd_len=$new_result &&
7719 test $i != 17 # 1/2 MB should be enough
7722 teststring=$teststring$teststring
7725 # Add a significant safety factor because C++ compilers can tack on massive
7726 # amounts of additional arguments before passing them to the linker.
7727 # It appears as though 1/2 is a usable value.
7728 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7734 if test -n $lt_cv_sys_max_cmd_len ; then
7735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
7736 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
7738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
7739 $as_echo "none" >&6; }
7745 # Check for command to grab the raw symbol name followed by C symbol from nm.
7746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7747 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7748 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7749 $as_echo_n "(cached) " >&6
7752 # These are sane defaults that work on at least a few old systems.
7753 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7755 # Character class describing NM global symbol codes.
7756 symcode='[BCDEGRST]'
7758 # Regexp to match symbols that can be accessed directly from C.
7759 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7761 # Transform an extracted symbol line into a proper C declaration
7762 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7764 # Transform an extracted symbol line into symbol name and symbol address
7765 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'"
7767 # Define system-specific variables.
7772 cygwin* | mingw* | pw32*)
7773 symcode='[ABCDGISTW]'
7775 hpux*) # Its linker distinguishes data from code symbols
7776 if test "$host_cpu" = ia64; then
7777 symcode='[ABCDEGRST]'
7779 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7780 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'"
7783 if test "$host_cpu" = ia64; then
7784 symcode='[ABCDGIRSTW]'
7785 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7786 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'"
7790 symcode='[BCDEGRST]'
7793 symcode='[BCDEGQRST]'
7803 # Handle CRLF in mingw tool chain
7807 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7811 # If we're using GNU nm, then use its standard symbol codes.
7812 case `$NM -V 2>&1` in
7813 *GNU* | *'with BFD'*)
7814 symcode='[ABCDGIRSTW]' ;;
7817 # Try without a prefix undercore, then with it.
7818 for ac_symprfx in "" "_"; do
7820 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7821 symxfrm="\\1 $ac_symprfx\\2 \\2"
7823 # Write the raw and C identifiers.
7824 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7826 # Check to see that the pipe works correctly.
7830 cat > conftest.$ac_ext <<EOF
7835 void nm_test_func(){}
7839 int main(){nm_test_var='a';nm_test_func();return(0);}
7842 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7843 (eval $ac_compile) 2>&5
7845 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7846 test $ac_status = 0; }; then
7847 # Now try to grab the symbols.
7849 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
7850 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7852 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7853 test $ac_status = 0; } && test -s "$nlist"; then
7854 # Try sorting and uniquifying the output.
7855 if sort "$nlist" | uniq > "$nlist"T; then
7856 mv -f "$nlist"T "$nlist"
7861 # Make sure that we snagged all the symbols we need.
7862 if grep ' nm_test_var$' "$nlist" >/dev/null; then
7863 if grep ' nm_test_func$' "$nlist" >/dev/null; then
7864 cat <<EOF > conftest.$ac_ext
7870 # Now generate the symbol file.
7871 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7873 cat <<EOF >> conftest.$ac_ext
7874 #if defined (__STDC__) && __STDC__
7875 # define lt_ptr_t void *
7877 # define lt_ptr_t char *
7881 /* The mapping between symbol names and symbols. */
7886 lt_preloaded_symbols[] =
7889 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7890 cat <<\EOF >> conftest.$ac_ext
7898 # Now try linking the two files.
7899 mv conftest.$ac_objext conftstm.$ac_objext
7900 lt_save_LIBS="$LIBS"
7901 lt_save_CFLAGS="$CFLAGS"
7902 LIBS="conftstm.$ac_objext"
7903 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7904 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7905 (eval $ac_link) 2>&5
7907 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7908 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7911 LIBS="$lt_save_LIBS"
7912 CFLAGS="$lt_save_CFLAGS"
7914 echo "cannot find nm_test_func in $nlist" >&5
7917 echo "cannot find nm_test_var in $nlist" >&5
7920 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7923 echo "$progname: failed program was:" >&5
7924 cat conftest.$ac_ext >&5
7926 rm -f conftest* conftst*
7928 # Do not use the global_symbol_pipe unless it works.
7929 if test "$pipe_works" = yes; then
7932 lt_cv_sys_global_symbol_pipe=
7938 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7939 lt_cv_sys_global_symbol_to_cdecl=
7941 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7943 $as_echo "failed" >&6; }
7945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7946 $as_echo "ok" >&6; }
7949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7950 $as_echo_n "checking for objdir... " >&6; }
7951 if ${lt_cv_objdir+:} false; then :
7952 $as_echo_n "(cached) " >&6
7954 rm -f .libs 2>/dev/null
7955 mkdir .libs 2>/dev/null
7956 if test -d .libs; then
7959 # MS-DOS does not allow filenames that begin with a dot.
7962 rmdir .libs 2>/dev/null
7964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7965 $as_echo "$lt_cv_objdir" >&6; }
7966 objdir=$lt_cv_objdir
7974 # AIX sometimes has problems with the GCC collect2 program. For some
7975 # reason, if we set the COLLECT_NAMES environment variable, the problems
7976 # vanish in a puff of smoke.
7977 if test "X${COLLECT_NAMES+set}" != Xset; then
7979 export COLLECT_NAMES
7984 # Sed substitution that helps us do robust quoting. It backslashifies
7985 # metacharacters that are still active within double-quoted strings.
7986 Xsed='sed -e 1s/^X//'
7987 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7989 # Same as above, but do not quote variable references.
7990 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7992 # Sed substitution to delay expansion of an escaped shell variable in a
7993 # double_quote_subst'ed string.
7994 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7996 # Sed substitution to avoid accidental globbing in evaled expressions
7997 no_glob_subst='s/\*/\\\*/g'
8003 default_ofile=libtool
8004 can_build_shared=yes
8006 # All known linkers require a `.a' archive for static linking (except MSVC,
8007 # which needs '.lib').
8009 ltmain="$ac_aux_dir/ltmain.sh"
8010 ofile="$default_ofile"
8011 with_gnu_ld="$lt_cv_prog_gnu_ld"
8013 if test -n "$ac_tool_prefix"; then
8014 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
8015 set dummy ${ac_tool_prefix}ar; ac_word=$2
8016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8017 $as_echo_n "checking for $ac_word... " >&6; }
8018 if ${ac_cv_prog_AR+:} false; then :
8019 $as_echo_n "(cached) " >&6
8021 if test -n "$AR"; then
8022 ac_cv_prog_AR="$AR" # Let the user override the test.
8024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8028 test -z "$as_dir" && as_dir=.
8029 for ac_exec_ext in '' $ac_executable_extensions; do
8030 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8031 ac_cv_prog_AR="${ac_tool_prefix}ar"
8032 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8042 if test -n "$AR"; then
8043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8044 $as_echo "$AR" >&6; }
8046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8047 $as_echo "no" >&6; }
8052 if test -z "$ac_cv_prog_AR"; then
8054 # Extract the first word of "ar", so it can be a program name with args.
8055 set dummy ar; ac_word=$2
8056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8057 $as_echo_n "checking for $ac_word... " >&6; }
8058 if ${ac_cv_prog_ac_ct_AR+:} false; then :
8059 $as_echo_n "(cached) " >&6
8061 if test -n "$ac_ct_AR"; then
8062 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8068 test -z "$as_dir" && as_dir=.
8069 for ac_exec_ext in '' $ac_executable_extensions; do
8070 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8071 ac_cv_prog_ac_ct_AR="ar"
8072 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8081 ac_ct_AR=$ac_cv_prog_ac_ct_AR
8082 if test -n "$ac_ct_AR"; then
8083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
8084 $as_echo "$ac_ct_AR" >&6; }
8086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8087 $as_echo "no" >&6; }
8090 if test "x$ac_ct_AR" = x; then
8093 case $cross_compiling:$ac_tool_warned in
8095 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8096 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8097 ac_tool_warned=yes ;;
8105 if test -n "$ac_tool_prefix"; then
8106 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8107 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8109 $as_echo_n "checking for $ac_word... " >&6; }
8110 if ${ac_cv_prog_RANLIB+:} false; then :
8111 $as_echo_n "(cached) " >&6
8113 if test -n "$RANLIB"; then
8114 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8120 test -z "$as_dir" && as_dir=.
8121 for ac_exec_ext in '' $ac_executable_extensions; do
8122 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8123 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8124 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8133 RANLIB=$ac_cv_prog_RANLIB
8134 if test -n "$RANLIB"; then
8135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8136 $as_echo "$RANLIB" >&6; }
8138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8139 $as_echo "no" >&6; }
8144 if test -z "$ac_cv_prog_RANLIB"; then
8145 ac_ct_RANLIB=$RANLIB
8146 # Extract the first word of "ranlib", so it can be a program name with args.
8147 set dummy ranlib; ac_word=$2
8148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8149 $as_echo_n "checking for $ac_word... " >&6; }
8150 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
8151 $as_echo_n "(cached) " >&6
8153 if test -n "$ac_ct_RANLIB"; then
8154 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8160 test -z "$as_dir" && as_dir=.
8161 for ac_exec_ext in '' $ac_executable_extensions; do
8162 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8163 ac_cv_prog_ac_ct_RANLIB="ranlib"
8164 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8173 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8174 if test -n "$ac_ct_RANLIB"; then
8175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8176 $as_echo "$ac_ct_RANLIB" >&6; }
8178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8179 $as_echo "no" >&6; }
8182 if test "x$ac_ct_RANLIB" = x; then
8185 case $cross_compiling:$ac_tool_warned in
8187 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8188 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8189 ac_tool_warned=yes ;;
8191 RANLIB=$ac_ct_RANLIB
8194 RANLIB="$ac_cv_prog_RANLIB"
8197 if test -n "$ac_tool_prefix"; then
8198 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8199 set dummy ${ac_tool_prefix}strip; ac_word=$2
8200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8201 $as_echo_n "checking for $ac_word... " >&6; }
8202 if ${ac_cv_prog_STRIP+:} false; then :
8203 $as_echo_n "(cached) " >&6
8205 if test -n "$STRIP"; then
8206 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8212 test -z "$as_dir" && as_dir=.
8213 for ac_exec_ext in '' $ac_executable_extensions; do
8214 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8215 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8216 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8225 STRIP=$ac_cv_prog_STRIP
8226 if test -n "$STRIP"; then
8227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8228 $as_echo "$STRIP" >&6; }
8230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8231 $as_echo "no" >&6; }
8236 if test -z "$ac_cv_prog_STRIP"; then
8238 # Extract the first word of "strip", so it can be a program name with args.
8239 set dummy strip; ac_word=$2
8240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8241 $as_echo_n "checking for $ac_word... " >&6; }
8242 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
8243 $as_echo_n "(cached) " >&6
8245 if test -n "$ac_ct_STRIP"; then
8246 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8248 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8252 test -z "$as_dir" && as_dir=.
8253 for ac_exec_ext in '' $ac_executable_extensions; do
8254 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8255 ac_cv_prog_ac_ct_STRIP="strip"
8256 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8265 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8266 if test -n "$ac_ct_STRIP"; then
8267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
8268 $as_echo "$ac_ct_STRIP" >&6; }
8270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8271 $as_echo "no" >&6; }
8274 if test "x$ac_ct_STRIP" = x; then
8277 case $cross_compiling:$ac_tool_warned in
8279 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8280 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8281 ac_tool_warned=yes ;;
8286 STRIP="$ac_cv_prog_STRIP"
8291 old_CFLAGS="$CFLAGS"
8293 # Set sane defaults for various variables
8294 test -z "$AR" && AR=ar
8295 test -z "$AR_FLAGS" && AR_FLAGS=cru
8296 test -z "$AS" && AS=as
8297 test -z "$CC" && CC=cc
8298 test -z "$LTCC" && LTCC=$CC
8299 test -z "$DLLTOOL" && DLLTOOL=dlltool
8300 test -z "$LD" && LD=ld
8301 test -z "$LN_S" && LN_S="ln -s"
8302 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8303 test -z "$NM" && NM=nm
8304 test -z "$SED" && SED=sed
8305 test -z "$OBJDUMP" && OBJDUMP=objdump
8306 test -z "$RANLIB" && RANLIB=:
8307 test -z "$STRIP" && STRIP=:
8308 test -z "$ac_objext" && ac_objext=o
8310 # Determine commands to create old-style static archives.
8311 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
8312 old_postinstall_cmds='chmod 644 $oldlib'
8313 old_postuninstall_cmds=
8315 if test -n "$RANLIB"; then
8318 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
8321 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
8324 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
8327 for cc_temp in $compiler""; do
8329 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8330 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8335 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8338 # Only perform the check for file, if the check method requires it
8339 case $deplibs_check_method in
8341 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8343 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8344 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8345 $as_echo_n "(cached) " >&6
8349 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8352 lt_save_MAGIC_CMD="$MAGIC_CMD"
8353 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8354 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8355 for ac_dir in $ac_dummy; do
8357 test -z "$ac_dir" && ac_dir=.
8358 if test -f $ac_dir/${ac_tool_prefix}file; then
8359 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8360 if test -n "$file_magic_test_file"; then
8361 case $deplibs_check_method in
8363 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8364 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8365 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8366 $EGREP "$file_magic_regex" > /dev/null; then
8371 *** Warning: the command libtool uses to detect shared libraries,
8372 *** $file_magic_cmd, produces output that libtool cannot recognize.
8373 *** The result is that libtool may fail to recognize shared libraries
8374 *** as such. This will affect the creation of libtool libraries that
8375 *** depend on shared libraries, but programs linked with such libtool
8376 *** libraries will work regardless of this problem. Nevertheless, you
8377 *** may want to report the problem to your system manager and/or to
8378 *** bug-libtool@gnu.org
8388 MAGIC_CMD="$lt_save_MAGIC_CMD"
8393 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8394 if test -n "$MAGIC_CMD"; then
8395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8396 $as_echo "$MAGIC_CMD" >&6; }
8398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8399 $as_echo "no" >&6; }
8402 if test -z "$lt_cv_path_MAGIC_CMD"; then
8403 if test -n "$ac_tool_prefix"; then
8404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8405 $as_echo_n "checking for file... " >&6; }
8406 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8407 $as_echo_n "(cached) " >&6
8411 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8414 lt_save_MAGIC_CMD="$MAGIC_CMD"
8415 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8416 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8417 for ac_dir in $ac_dummy; do
8419 test -z "$ac_dir" && ac_dir=.
8420 if test -f $ac_dir/file; then
8421 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8422 if test -n "$file_magic_test_file"; then
8423 case $deplibs_check_method in
8425 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8426 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8427 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8428 $EGREP "$file_magic_regex" > /dev/null; then
8433 *** Warning: the command libtool uses to detect shared libraries,
8434 *** $file_magic_cmd, produces output that libtool cannot recognize.
8435 *** The result is that libtool may fail to recognize shared libraries
8436 *** as such. This will affect the creation of libtool libraries that
8437 *** depend on shared libraries, but programs linked with such libtool
8438 *** libraries will work regardless of this problem. Nevertheless, you
8439 *** may want to report the problem to your system manager and/or to
8440 *** bug-libtool@gnu.org
8450 MAGIC_CMD="$lt_save_MAGIC_CMD"
8455 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8456 if test -n "$MAGIC_CMD"; then
8457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8458 $as_echo "$MAGIC_CMD" >&6; }
8460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8461 $as_echo "no" >&6; }
8474 enable_win32_dll=yes
8476 # Check whether --enable-libtool-lock was given.
8477 if test "${enable_libtool_lock+set}" = set; then :
8478 enableval=$enable_libtool_lock;
8481 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8484 # Check whether --with-pic was given.
8485 if test "${with_pic+set}" = set; then :
8486 withval=$with_pic; pic_mode="$withval"
8491 test -z "$pic_mode" && pic_mode=default
8493 # Use C for the default configuration in the libtool script
8497 ac_cpp='$CPP $CPPFLAGS'
8498 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8499 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8500 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8503 # Source file extension for C test sources.
8506 # Object file extension for compiled C test sources.
8510 # Code to be used in simple compile tests
8511 lt_simple_compile_test_code="int some_variable = 0;\n"
8513 # Code to be used in simple link tests
8514 lt_simple_link_test_code='int main(){return(0);}\n'
8517 # If no C compiler was specified, use CC.
8520 # Allow CC to be a program name with arguments.
8524 # save warnings/boilerplate of simple test code
8525 ac_outfile=conftest.$ac_objext
8526 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
8527 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
8528 _lt_compiler_boilerplate=`cat conftest.err`
8531 ac_outfile=conftest.$ac_objext
8532 printf "$lt_simple_link_test_code" >conftest.$ac_ext
8533 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
8534 _lt_linker_boilerplate=`cat conftest.err`
8539 # Check for any special shared library compilation flags.
8542 if test "$GCC" = no; then
8545 lt_prog_cc_shlib='-belf'
8549 if test -n "$lt_prog_cc_shlib"; then
8550 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
8551 $as_echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
8552 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
8554 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
8555 $as_echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
8556 lt_cv_prog_cc_can_build_shared=no
8562 # Check to make sure the static flag actually works.
8564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_prog_compiler_static works" >&5
8565 $as_echo_n "checking if $compiler static flag $lt_prog_compiler_static works... " >&6; }
8566 if ${lt_prog_compiler_static_works+:} false; then :
8567 $as_echo_n "(cached) " >&6
8569 lt_prog_compiler_static_works=no
8570 save_LDFLAGS="$LDFLAGS"
8571 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
8572 printf "$lt_simple_link_test_code" > conftest.$ac_ext
8573 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8574 # The linker can only warn and ignore the option if not recognized
8575 # So say no if there are warnings
8576 if test -s conftest.err; then
8577 # Append any errors to the config.log.
8578 cat conftest.err 1>&5
8579 $echo "X$_lt_linker_boilerplate" | $Xsed > conftest.exp
8580 $SED '/^$/d' conftest.err >conftest.er2
8581 if diff conftest.exp conftest.er2 >/dev/null; then
8582 lt_prog_compiler_static_works=yes
8585 lt_prog_compiler_static_works=yes
8589 LDFLAGS="$save_LDFLAGS"
8592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_static_works" >&5
8593 $as_echo "$lt_prog_compiler_static_works" >&6; }
8595 if test x"$lt_prog_compiler_static_works" = xyes; then
8598 lt_prog_compiler_static=
8604 lt_prog_compiler_no_builtin_flag=
8606 if test "$GCC" = yes; then
8607 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8611 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8612 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8613 $as_echo_n "(cached) " >&6
8615 lt_cv_prog_compiler_rtti_exceptions=no
8616 ac_outfile=conftest.$ac_objext
8617 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8618 lt_compiler_flag="-fno-rtti -fno-exceptions"
8619 # Insert the option either (1) after the last *FLAGS variable, or
8620 # (2) before a word containing "conftest.", or (3) at the end.
8621 # Note that $ac_compile itself does not contain backslashes and begins
8622 # with a dollar sign (not a hyphen), so the echo should work correctly.
8623 # The option is referenced via a variable to avoid confusing sed.
8624 lt_compile=`echo "$ac_compile" | $SED \
8625 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8626 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8627 -e 's:$: $lt_compiler_flag:'`
8628 (eval echo "\"\$as_me:8628: $lt_compile\"" >&5)
8629 (eval "$lt_compile" 2>conftest.err)
8631 cat conftest.err >&5
8632 echo "$as_me:8632: \$? = $ac_status" >&5
8633 if (exit $ac_status) && test -s "$ac_outfile"; then
8634 # The compiler can only warn and ignore the option if not recognized
8635 # So say no if there are warnings other than the usual output.
8636 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
8637 $SED '/^$/d' conftest.err >conftest.er2
8638 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
8639 lt_cv_prog_compiler_rtti_exceptions=yes
8645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8646 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8648 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8649 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8656 lt_prog_compiler_wl=
8657 lt_prog_compiler_pic=
8658 lt_prog_compiler_static=
8660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8661 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8663 if test "$GCC" = yes; then
8664 lt_prog_compiler_wl='-Wl,'
8665 lt_prog_compiler_static='-static'
8669 # All AIX code is PIC.
8670 if test "$host_cpu" = ia64; then
8671 # AIX 5 now supports IA64 processor
8672 lt_prog_compiler_static='-Bstatic'
8677 # FIXME: we need at least 68020 code to build shared libraries, but
8678 # adding the `-m68020' flag to GCC prevents building anything better,
8680 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8683 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8684 # PIC is the default for these OSes.
8687 mingw* | pw32* | os2*)
8688 # This hack is so that the source file can tell whether it is being
8689 # built for inclusion in a dll (and should export symbols for example).
8690 lt_prog_compiler_pic='-DDLL_EXPORT'
8693 darwin* | rhapsody*)
8694 # PIC is the default on this platform
8695 # Common symbols not allowed in MH_DYLIB files
8696 lt_prog_compiler_pic='-fno-common'
8700 # Just because we use GCC doesn't mean we suddenly get shared libraries
8701 # on systems that don't support them.
8702 lt_prog_compiler_can_build_shared=no
8707 if test -d /usr/nec; then
8708 lt_prog_compiler_pic=-Kconform_pic
8713 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8720 lt_prog_compiler_pic='-fPIC'
8726 lt_prog_compiler_pic='-fPIC'
8730 # PORTME Check for flag to pass linker flags through the system compiler.
8733 lt_prog_compiler_wl='-Wl,'
8734 if test "$host_cpu" = ia64; then
8735 # AIX 5 now supports IA64 processor
8736 lt_prog_compiler_static='-Bstatic'
8738 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8742 # PIC is the default on this platform
8743 # Common symbols not allowed in MH_DYLIB files
8744 case $cc_basename in
8746 lt_prog_compiler_pic='-qnocommon'
8747 lt_prog_compiler_wl='-Wl,'
8752 mingw* | pw32* | os2*)
8753 # This hack is so that the source file can tell whether it is being
8754 # built for inclusion in a dll (and should export symbols for example).
8755 lt_prog_compiler_pic='-DDLL_EXPORT'
8758 hpux9* | hpux10* | hpux11*)
8759 lt_prog_compiler_wl='-Wl,'
8760 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8767 lt_prog_compiler_pic='+Z'
8770 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8771 lt_prog_compiler_static='${wl}-a ${wl}archive'
8774 irix5* | irix6* | nonstopux*)
8775 lt_prog_compiler_wl='-Wl,'
8776 # PIC (with -KPIC) is the default.
8777 lt_prog_compiler_static='-non_shared'
8781 lt_prog_compiler_pic='-KPIC'
8782 lt_prog_compiler_static='-Bstatic'
8786 case $cc_basename in
8788 lt_prog_compiler_wl='-Wl,'
8789 lt_prog_compiler_pic='-KPIC'
8790 lt_prog_compiler_static='-static'
8792 pgcc* | pgf77* | pgf90* | pgf95*)
8793 # Portland Group compilers (*not* the Pentium gcc compiler,
8794 # which looks to be a dead project)
8795 lt_prog_compiler_wl='-Wl,'
8796 lt_prog_compiler_pic='-fpic'
8797 lt_prog_compiler_static='-Bstatic'
8800 lt_prog_compiler_wl='-Wl,'
8801 # All Alpha code is PIC.
8802 lt_prog_compiler_static='-non_shared'
8807 osf3* | osf4* | osf5*)
8808 lt_prog_compiler_wl='-Wl,'
8809 # All OSF/1 code is PIC.
8810 lt_prog_compiler_static='-non_shared'
8814 lt_prog_compiler_pic='-Kpic'
8815 lt_prog_compiler_static='-dn'
8819 lt_prog_compiler_pic='-KPIC'
8820 lt_prog_compiler_static='-Bstatic'
8821 case $cc_basename in
8823 lt_prog_compiler_wl='-Qoption ld ';;
8825 lt_prog_compiler_wl='-Wl,';;
8830 lt_prog_compiler_wl='-Qoption ld '
8831 lt_prog_compiler_pic='-PIC'
8832 lt_prog_compiler_static='-Bstatic'
8835 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8836 lt_prog_compiler_wl='-Wl,'
8837 lt_prog_compiler_pic='-KPIC'
8838 lt_prog_compiler_static='-Bstatic'
8842 if test -d /usr/nec ;then
8843 lt_prog_compiler_pic='-Kconform_pic'
8844 lt_prog_compiler_static='-Bstatic'
8849 lt_prog_compiler_wl='-Wl,'
8850 lt_prog_compiler_can_build_shared=no
8854 lt_prog_compiler_pic='-pic'
8855 lt_prog_compiler_static='-Bstatic'
8859 lt_prog_compiler_can_build_shared=no
8864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8865 $as_echo "$lt_prog_compiler_pic" >&6; }
8868 # Check to make sure the PIC flag actually works.
8870 if test -n "$lt_prog_compiler_pic"; then
8872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8873 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8874 if ${lt_prog_compiler_pic_works+:} false; then :
8875 $as_echo_n "(cached) " >&6
8877 lt_prog_compiler_pic_works=no
8878 ac_outfile=conftest.$ac_objext
8879 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8880 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8881 # Insert the option either (1) after the last *FLAGS variable, or
8882 # (2) before a word containing "conftest.", or (3) at the end.
8883 # Note that $ac_compile itself does not contain backslashes and begins
8884 # with a dollar sign (not a hyphen), so the echo should work correctly.
8885 # The option is referenced via a variable to avoid confusing sed.
8886 lt_compile=`echo "$ac_compile" | $SED \
8887 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8888 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8889 -e 's:$: $lt_compiler_flag:'`
8890 (eval echo "\"\$as_me:8890: $lt_compile\"" >&5)
8891 (eval "$lt_compile" 2>conftest.err)
8893 cat conftest.err >&5
8894 echo "$as_me:8894: \$? = $ac_status" >&5
8895 if (exit $ac_status) && test -s "$ac_outfile"; then
8896 # The compiler can only warn and ignore the option if not recognized
8897 # So say no if there are warnings other than the usual output.
8898 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
8899 $SED '/^$/d' conftest.err >conftest.er2
8900 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
8901 lt_prog_compiler_pic_works=yes
8907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_works" >&5
8908 $as_echo "$lt_prog_compiler_pic_works" >&6; }
8910 if test x"$lt_prog_compiler_pic_works" = xyes; then
8911 case $lt_prog_compiler_pic in
8913 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8916 lt_prog_compiler_pic=
8917 lt_prog_compiler_can_build_shared=no
8922 # For platforms which do not support PIC, -DPIC is meaningless:
8924 lt_prog_compiler_pic=
8927 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8932 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8933 if ${lt_cv_prog_compiler_c_o+:} false; then :
8934 $as_echo_n "(cached) " >&6
8936 lt_cv_prog_compiler_c_o=no
8937 $rm -r conftest 2>/dev/null
8941 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8943 lt_compiler_flag="-o out/conftest2.$ac_objext"
8944 # Insert the option either (1) after the last *FLAGS variable, or
8945 # (2) before a word containing "conftest.", or (3) at the end.
8946 # Note that $ac_compile itself does not contain backslashes and begins
8947 # with a dollar sign (not a hyphen), so the echo should work correctly.
8948 lt_compile=`echo "$ac_compile" | $SED \
8949 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8950 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8951 -e 's:$: $lt_compiler_flag:'`
8952 (eval echo "\"\$as_me:8952: $lt_compile\"" >&5)
8953 (eval "$lt_compile" 2>out/conftest.err)
8955 cat out/conftest.err >&5
8956 echo "$as_me:8956: \$? = $ac_status" >&5
8957 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8959 # The compiler can only warn and ignore the option if not recognized
8960 # So say no if there are warnings
8961 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
8962 $SED '/^$/d' out/conftest.err >out/conftest.er2
8963 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8964 lt_cv_prog_compiler_c_o=yes
8969 # SGI C++ compiler will create directory out/ii_files/ for
8970 # template instantiation
8971 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8972 $rm out/* && rmdir out
8978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8979 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8982 hard_links="nottested"
8983 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8984 # do not overwrite the value of need_locks provided by the user
8985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8986 $as_echo_n "checking if we can lock with hard links... " >&6; }
8989 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8991 ln conftest.a conftest.b 2>&5 || hard_links=no
8992 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8994 $as_echo "$hard_links" >&6; }
8995 if test "$hard_links" = no; then
8996 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8997 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9005 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9008 allow_undefined_flag=
9009 enable_shared_with_static_runtimes=no
9011 archive_expsym_cmds=
9012 old_archive_From_new_cmds=
9013 old_archive_from_expsyms_cmds=
9014 export_dynamic_flag_spec=
9015 whole_archive_flag_spec=
9016 thread_safe_flag_spec=
9017 hardcode_libdir_flag_spec=
9018 hardcode_libdir_flag_spec_ld=
9019 hardcode_libdir_separator=
9022 hardcode_shlibpath_var=unsupported
9023 link_all_deplibs=unknown
9024 hardcode_automatic=no
9027 always_export_symbols=no
9028 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9029 # include_expsyms should be a list of space-separated symbols to be *always*
9030 # included in the symbol list
9032 # exclude_expsyms can be an extended regexp of symbols to exclude
9033 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9034 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9035 # as well as any symbol that contains `d'.
9036 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
9037 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9038 # platforms (ab)use it in PIC code, but their linkers get confused if
9039 # the symbol is explicitly referenced. Since portable code cannot
9040 # rely on this symbol name, it's probably fine to never include it in
9041 # preloaded symbol tables.
9042 extract_expsyms_cmds=
9043 # Just being paranoid about ensuring that cc_basename is set.
9044 for cc_temp in $compiler""; do
9046 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9047 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9052 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9055 cygwin* | mingw* | pw32*)
9056 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9057 # When not using gcc, we currently assume that we are using
9058 # Microsoft Visual C++.
9059 if test "$GCC" != yes; then
9069 if test "$with_gnu_ld" = yes; then
9070 # If archive_cmds runs LD, not CC, wlarc should be empty
9073 # Set some defaults for GNU ld with shared library support. These
9074 # are reset later if shared libraries are not supported. Putting them
9075 # here allows them to be overridden if necessary.
9076 runpath_var=LD_RUN_PATH
9077 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
9078 export_dynamic_flag_spec='${wl}--export-dynamic'
9079 # ancient GNU ld didn't support --whole-archive et. al.
9080 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
9081 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9083 whole_archive_flag_spec=
9085 supports_anon_versioning=no
9086 case `$LD -v 2>/dev/null` in
9087 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9088 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9089 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9090 *\ 2.11.*) ;; # other 2.11 versions
9091 *) supports_anon_versioning=yes ;;
9094 # See if GNU ld supports shared libraries.
9096 aix3* | aix4* | aix5*)
9097 # On AIX/PPC, the GNU linker is very broken
9098 if test "$host_cpu" != ia64; then
9102 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
9103 *** to be unable to reliably create shared libraries on AIX.
9104 *** Therefore, libtool is disabling shared libraries support. If you
9105 *** really care for shared libraries, you may want to modify your PATH
9106 *** so that a non-GNU linker is found, and then restart.
9113 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)'
9114 hardcode_libdir_flag_spec='-L$libdir'
9115 hardcode_minus_L=yes
9117 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
9118 # that the semantics of dynamic libraries on AmigaOS, at least up
9119 # to version 4, is to share data among multiple programs linked
9120 # with the same dynamic library. Since this doesn't match the
9121 # behavior of shared libraries on other platforms, we can't use
9127 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9128 allow_undefined_flag=unsupported
9129 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9130 # support --undefined. This deserves some investigation. FIXME
9131 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9137 cygwin* | mingw* | pw32*)
9138 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9139 # as there is no search path for DLLs.
9140 hardcode_libdir_flag_spec='-L$libdir'
9141 allow_undefined_flag=unsupported
9142 always_export_symbols=no
9143 enable_shared_with_static_runtimes=yes
9144 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
9146 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9147 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
9148 # If the export-symbols file already is a .def file (1st line
9149 # is EXPORTS), use it as is; otherwise, prepend...
9150 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9151 cp $export_symbols $output_objdir/$soname.def;
9153 echo EXPORTS > $output_objdir/$soname.def;
9154 cat $export_symbols >> $output_objdir/$soname.def;
9156 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
9163 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9165 case $cc_basename,$host_cpu in
9166 pgcc*) # Portland Group C compiler
9167 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'
9168 tmp_addflag=' $pic_flag'
9170 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
9171 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'
9172 tmp_addflag=' $pic_flag -Mnomain' ;;
9173 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9174 tmp_addflag=' -i_dynamic' ;;
9175 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9176 tmp_addflag=' -i_dynamic -nofor_main' ;;
9177 ifc* | ifort*) # Intel Fortran compiler
9178 tmp_addflag=' -nofor_main' ;;
9180 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9182 if test $supports_anon_versioning = yes; then
9183 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
9184 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9185 $echo "local: *; };" >> $output_objdir/$libname.ver~
9186 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9194 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9195 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9198 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9199 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9204 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
9208 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9209 *** create shared libraries on Solaris systems. Therefore, libtool
9210 *** is disabling shared libraries support. We urge you to upgrade GNU
9211 *** binutils to release 2.9.1 or newer. Another option is to modify
9212 *** your PATH or compiler configuration so that the native linker is
9213 *** used, and then restart.
9216 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9217 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9218 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9225 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9228 hardcode_shlibpath_var=no
9232 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9233 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9234 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9241 if test "$ld_shlibs" = no; then
9243 hardcode_libdir_flag_spec=
9244 export_dynamic_flag_spec=
9245 whole_archive_flag_spec=
9248 # PORTME fill in a description of your system's linker (not GNU ld)
9251 allow_undefined_flag=unsupported
9252 always_export_symbols=yes
9253 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'
9254 # Note: this linker hardcodes the directories in LIBPATH if there
9255 # are no directories specified by -L.
9256 hardcode_minus_L=yes
9257 if test "$GCC" = yes && test -z "$link_static_flag"; then
9258 # Neither direct hardcoding nor static linking is supported with a
9260 hardcode_direct=unsupported
9265 if test "$host_cpu" = ia64; then
9266 # On IA64, the linker does run time linking by default, so we don't
9267 # have to do anything special.
9268 aix_use_runtimelinking=no
9269 exp_sym_flag='-Bexport'
9272 # If we're using GNU nm, then we don't want the "-C" option.
9273 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9274 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
9275 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'
9277 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'
9279 aix_use_runtimelinking=no
9281 # Test if we are trying to use run time linking or normal
9282 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9283 # need to do runtime linking.
9284 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9285 for ld_flag in $LDFLAGS; do
9286 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9287 aix_use_runtimelinking=yes
9293 exp_sym_flag='-bexport'
9294 no_entry_flag='-bnoentry'
9297 # When large executables or shared objects are built, AIX ld can
9298 # have problems creating the table of contents. If linking a library
9299 # or program results in "error TOC overflow" add -mminimal-toc to
9300 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9301 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9305 hardcode_libdir_separator=':'
9306 link_all_deplibs=yes
9308 if test "$GCC" = yes; then
9309 case $host_os in aix4.[012]|aix4.[012].*)
9310 # We only want to do this on AIX 4.2 and lower, the check
9311 # below for broken collect2 doesn't work under 4.3+
9312 collect2name=`${CC} -print-prog-name=collect2`
9313 if test -f "$collect2name" && \
9314 strings "$collect2name" | grep resolve_lib_name >/dev/null
9316 # We have reworked collect2
9319 # We have old collect2
9320 hardcode_direct=unsupported
9321 # It fails to find uninstalled libraries when the uninstalled
9322 # path is not listed in the libpath. Setting hardcode_minus_L
9323 # to unsupported forces relinking
9324 hardcode_minus_L=yes
9325 hardcode_libdir_flag_spec='-L$libdir'
9326 hardcode_libdir_separator=
9329 shared_flag='-shared'
9330 if test "$aix_use_runtimelinking" = yes; then
9331 shared_flag="$shared_flag "'${wl}-G'
9335 if test "$host_cpu" = ia64; then
9336 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9337 # chokes on -Wl,-G. The following line is correct:
9340 if test "$aix_use_runtimelinking" = yes; then
9341 shared_flag='${wl}-G'
9343 shared_flag='${wl}-bM:SRE'
9348 # It seems that -bexpall does not export symbols beginning with
9349 # underscore (_), so it is better to generate a list of symbols to export.
9350 always_export_symbols=yes
9351 if test "$aix_use_runtimelinking" = yes; then
9352 # Warning - without using the other runtime loading flags (-brtl),
9353 # -berok will link without error, but may produce a broken library.
9354 allow_undefined_flag='-berok'
9355 # Determine the default libpath from the value encoded in an empty executable.
9356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9357 /* end confdefs.h. */
9367 if ac_fn_c_try_link "$LINENO"; then :
9369 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9371 # Check for a 64-bit object if we didn't find anything.
9372 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; }
9375 rm -f core conftest.err conftest.$ac_objext \
9376 conftest$ac_exeext conftest.$ac_ext
9377 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9379 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9380 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"
9382 if test "$host_cpu" = ia64; then
9383 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9384 allow_undefined_flag="-z nodefs"
9385 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"
9387 # Determine the default libpath from the value encoded in an empty executable.
9388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9389 /* end confdefs.h. */
9399 if ac_fn_c_try_link "$LINENO"; then :
9401 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9403 # Check for a 64-bit object if we didn't find anything.
9404 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; }
9407 rm -f core conftest.err conftest.$ac_objext \
9408 conftest$ac_exeext conftest.$ac_ext
9409 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9411 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9412 # Warning - without using the other run time loading flags,
9413 # -berok will link without error, but may produce a broken library.
9414 no_undefined_flag=' ${wl}-bernotok'
9415 allow_undefined_flag=' ${wl}-berok'
9416 # -bexpall does not export symbols beginning with underscore (_)
9417 always_export_symbols=yes
9418 # Exported symbols can be pulled into shared objects from archives
9419 whole_archive_flag_spec=' '
9420 archive_cmds_need_lc=yes
9421 # This is similar to how AIX traditionally builds its shared libraries.
9422 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'
9428 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)'
9429 hardcode_libdir_flag_spec='-L$libdir'
9430 hardcode_minus_L=yes
9431 # see comment about different semantics on the GNU ld section
9436 export_dynamic_flag_spec=-rdynamic
9439 cygwin* | mingw* | pw32*)
9440 # When not using gcc, we currently assume that we are using
9441 # Microsoft Visual C++.
9442 # hardcode_libdir_flag_spec is actually meaningless, as there is
9443 # no search path for DLLs.
9444 hardcode_libdir_flag_spec=' '
9445 allow_undefined_flag=unsupported
9446 # Tell ltmain to make .lib files, not .a files.
9448 # Tell ltmain to make .dll files, not .so files.
9450 # FIXME: Setting linknames here is a bad hack.
9451 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
9452 # The linker will automatically build a .lib file if we build a DLL.
9453 old_archive_From_new_cmds='true'
9454 # FIXME: Should let the user specify the lib program.
9455 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
9456 fix_srcfile_path='`cygpath -w "$srcfile"`'
9457 enable_shared_with_static_runtimes=yes
9460 darwin* | rhapsody*)
9462 rhapsody* | darwin1.[012])
9463 allow_undefined_flag='${wl}-undefined ${wl}suppress'
9466 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9467 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9469 case ${MACOSX_DEPLOYMENT_TARGET} in
9471 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9474 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
9480 archive_cmds_need_lc=no
9482 hardcode_automatic=yes
9483 hardcode_shlibpath_var=unsupported
9484 whole_archive_flag_spec=''
9485 link_all_deplibs=yes
9486 if test "$GCC" = yes ; then
9487 output_verbose_link_cmd='echo'
9488 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9489 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9490 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9491 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}'
9492 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}'
9494 case $cc_basename in
9496 output_verbose_link_cmd='echo'
9497 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
9498 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9499 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9500 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}'
9501 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}'
9511 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9512 hardcode_libdir_flag_spec='-L$libdir'
9513 hardcode_shlibpath_var=no
9520 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9521 # support. Future versions do this automatically, but an explicit c++rt0.o
9522 # does not break anything, and helps significantly (at the cost of a little
9525 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9526 hardcode_libdir_flag_spec='-R$libdir'
9528 hardcode_shlibpath_var=no
9531 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9533 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9535 hardcode_minus_L=yes
9536 hardcode_shlibpath_var=no
9539 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9540 freebsd* | kfreebsd*-gnu | dragonfly*)
9541 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9542 hardcode_libdir_flag_spec='-R$libdir'
9544 hardcode_shlibpath_var=no
9548 if test "$GCC" = yes; then
9549 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'
9551 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'
9553 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9554 hardcode_libdir_separator=:
9557 # hardcode_minus_L: Not really in the search PATH,
9558 # but as the default location of the library.
9559 hardcode_minus_L=yes
9560 export_dynamic_flag_spec='${wl}-E'
9564 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9567 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9570 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9576 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
9579 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9583 if test "$with_gnu_ld" = no; then
9586 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9587 hardcode_libdir_flag_spec_ld='+b $libdir'
9588 hardcode_libdir_separator=:
9590 hardcode_shlibpath_var=no
9593 hardcode_libdir_flag_spec='-L$libdir'
9595 hardcode_shlibpath_var=no
9597 # hardcode_minus_L: Not really in the search PATH,
9598 # but as the default location of the library.
9599 hardcode_minus_L=yes
9602 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9603 hardcode_libdir_separator=:
9605 export_dynamic_flag_spec='${wl}-E'
9607 # hardcode_minus_L: Not really in the search PATH,
9608 # but as the default location of the library.
9609 hardcode_minus_L=yes
9615 irix5* | irix6* | nonstopux*)
9616 if test "$GCC" = yes; then
9617 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'
9619 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'
9620 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9622 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9623 hardcode_libdir_separator=:
9624 link_all_deplibs=yes
9628 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9629 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9631 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9633 hardcode_libdir_flag_spec='-R$libdir'
9635 hardcode_shlibpath_var=no
9639 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9641 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9642 hardcode_libdir_separator=:
9643 hardcode_shlibpath_var=no
9648 hardcode_shlibpath_var=no
9649 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9650 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9651 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9652 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9653 export_dynamic_flag_spec='${wl}-E'
9656 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9657 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9658 hardcode_libdir_flag_spec='-R$libdir'
9661 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9662 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9669 hardcode_libdir_flag_spec='-L$libdir'
9670 hardcode_minus_L=yes
9671 allow_undefined_flag=unsupported
9672 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'
9673 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9677 if test "$GCC" = yes; then
9678 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9679 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'
9681 allow_undefined_flag=' -expect_unresolved \*'
9682 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'
9684 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9685 hardcode_libdir_separator=:
9688 osf4* | osf5*) # as osf3* with the addition of -msym flag
9689 if test "$GCC" = yes; then
9690 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9691 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'
9692 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9694 allow_undefined_flag=' -expect_unresolved \*'
9695 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'
9696 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
9697 $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'
9699 # Both c and cxx compiler support -rpath directly
9700 hardcode_libdir_flag_spec='-rpath $libdir'
9702 hardcode_libdir_separator=:
9706 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9707 hardcode_shlibpath_var=no
9708 export_dynamic_flag_spec='${wl}-Bexport'
9709 runpath_var=LD_RUN_PATH
9710 hardcode_runpath_var=yes
9714 no_undefined_flag=' -z text'
9715 if test "$GCC" = yes; then
9717 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9718 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9719 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
9722 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9723 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9724 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9726 hardcode_libdir_flag_spec='-R$libdir'
9727 hardcode_shlibpath_var=no
9729 solaris2.[0-5] | solaris2.[0-5].*) ;;
9731 # The compiler driver will combine linker options so we
9732 # cannot just pass the convience library names through
9733 # without $wl, iff we do not link with $LD.
9734 # Luckily, gcc supports the same syntax we need for Sun Studio.
9735 # Supported since Solaris 2.6 (maybe 2.5.1?)
9738 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
9740 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' ;;
9743 link_all_deplibs=yes
9747 if test "x$host_vendor" = xsequent; then
9748 # Use $CC to link under sequent, because it throws in some extra .o
9749 # files that make .init and .fini sections work.
9750 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9752 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9754 hardcode_libdir_flag_spec='-L$libdir'
9756 hardcode_minus_L=yes
9757 hardcode_shlibpath_var=no
9761 case $host_vendor in
9763 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9764 hardcode_direct=yes # is this really true???
9767 ## LD is ld it makes a PLAMLIB
9768 ## CC just makes a GrossModule.
9769 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9770 reload_cmds='$CC -r -o $output$reload_objs'
9774 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9775 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9778 runpath_var='LD_RUN_PATH'
9779 hardcode_shlibpath_var=no
9783 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9784 hardcode_shlibpath_var=no
9785 export_dynamic_flag_spec='-Bexport'
9789 if test -d /usr/nec; then
9790 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9791 hardcode_shlibpath_var=no
9792 runpath_var=LD_RUN_PATH
9793 hardcode_runpath_var=yes
9799 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9802 hardcode_shlibpath_var=no
9803 hardcode_runpath_var=yes
9804 runpath_var=LD_RUN_PATH
9807 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
9808 no_undefined_flag='${wl}-z ${wl}text'
9809 if test "$GCC" = yes; then
9810 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9812 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9814 runpath_var='LD_RUN_PATH'
9815 hardcode_shlibpath_var=no
9819 no_undefined_flag=' -z text'
9820 # $CC -shared without GNU ld will not create a library from C++
9821 # object files and a static libstdc++, better avoid it by now
9822 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9823 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9824 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9825 hardcode_libdir_flag_spec=
9826 hardcode_shlibpath_var=no
9827 runpath_var='LD_RUN_PATH'
9831 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9832 hardcode_libdir_flag_spec='-L$libdir'
9833 hardcode_shlibpath_var=no
9842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9843 $as_echo "$ld_shlibs" >&6; }
9844 test "$ld_shlibs" = no && can_build_shared=no
9846 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9847 if test "$GCC" = yes; then
9848 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9852 # Do we need to explicitly link libc?
9854 case "x$archive_cmds_need_lc" in
9856 # Assume -lc should be added
9857 archive_cmds_need_lc=yes
9859 if test "$enable_shared" = yes && test "$GCC" = yes; then
9860 case $archive_cmds in
9862 # FIXME: we may have to deal with multi-command sequences.
9865 # Test whether the compiler implicitly links with -lc since on some
9866 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9867 # to ld, don't add -lc before -lgcc.
9868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9869 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9871 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9873 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9874 (eval $ac_compile) 2>&5
9876 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9877 test $ac_status = 0; } 2>conftest.err; then
9880 libobjs=conftest.$ac_objext
9882 wl=$lt_prog_compiler_wl
9888 lt_save_allow_undefined_flag=$allow_undefined_flag
9889 allow_undefined_flag=
9890 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9891 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9893 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9894 test $ac_status = 0; }
9896 archive_cmds_need_lc=no
9898 archive_cmds_need_lc=yes
9900 allow_undefined_flag=$lt_save_allow_undefined_flag
9902 cat conftest.err 1>&5
9905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
9906 $as_echo "$archive_cmds_need_lc" >&6; }
9913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9914 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9916 libname_spec='lib$name'
9924 shlibpath_overrides_runpath=unknown
9926 dynamic_linker="$host_os ld.so"
9927 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9928 if test "$GCC" = yes; then
9929 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9930 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9931 # if the path contains ";" then we assume it to be the separator
9932 # otherwise default to the standard path separator (i.e. ":") - it is
9933 # assumed that no part of a normal pathname contains ";" but that should
9934 # okay in the real world where ";" in dirpaths is itself problematic.
9935 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9937 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9940 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9942 need_lib_prefix=unknown
9943 hardcode_into_libs=no
9945 # when you set need_version to no, make sure it does not cause -set_version
9946 # flags to be left without arguments
9947 need_version=unknown
9952 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9953 shlibpath_var=LIBPATH
9955 # AIX 3 has no versioning support, so we append a major version to the name.
9956 soname_spec='${libname}${release}${shared_ext}$major'
9963 hardcode_into_libs=yes
9964 if test "$host_cpu" = ia64; then
9965 # AIX 5 supports IA64
9966 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9967 shlibpath_var=LD_LIBRARY_PATH
9969 # With GCC up to 2.95.x, collect2 would create an import file
9970 # for dependence libraries. The import file would start with
9971 # the line `#! .'. This would cause the generated library to
9972 # depend on `.', always an invalid library. This was fixed in
9973 # development snapshots of GCC prior to 3.0.
9975 aix4 | aix4.[01] | aix4.[01].*)
9976 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9978 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9985 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9986 # soname into executable. Probably we can add versioning support to
9987 # collect2, so additional links can be useful in future.
9988 if test "$aix_use_runtimelinking" = yes; then
9989 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9990 # instead of lib<name>.a to let people know that these are not
9991 # typical AIX shared libraries.
9992 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9994 # We preserve .a as extension for shared libraries through AIX4.2
9995 # and later when we are not doing run time linking.
9996 library_names_spec='${libname}${release}.a $libname.a'
9997 soname_spec='${libname}${release}${shared_ext}$major'
9999 shlibpath_var=LIBPATH
10004 library_names_spec='$libname.ixlibrary $libname.a'
10005 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10006 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'
10010 library_names_spec='${libname}${shared_ext}'
10011 dynamic_linker="$host_os ld.so"
10012 shlibpath_var=LIBRARY_PATH
10018 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10019 soname_spec='${libname}${release}${shared_ext}$major'
10020 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10021 shlibpath_var=LD_LIBRARY_PATH
10022 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10023 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10024 # the default ld.so.conf also contains /usr/contrib/lib and
10025 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10026 # libtool to hard-code these into programs
10029 cygwin* | mingw* | pw32*)
10030 version_type=windows
10035 case $GCC,$host_os in
10036 yes,cygwin* | yes,mingw* | yes,pw32*)
10037 library_names_spec='$libname.dll.a'
10038 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10039 postinstall_cmds='base_file=`basename \${file}`~
10040 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
10041 dldir=$destdir/`dirname \$dlpath`~
10042 test -d \$dldir || mkdir -p \$dldir~
10043 $install_prog $dir/$dlname \$dldir/$dlname~
10044 chmod a+x \$dldir/$dlname'
10045 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10046 dlpath=$dir/\$dldll~
10048 shlibpath_overrides_runpath=yes
10052 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10053 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10054 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10057 # MinGW DLLs use traditional 'lib' prefix
10058 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10059 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10060 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
10061 # It is most probably a Windows format PATH printed by
10062 # mingw gcc, but we are running on Cygwin. Gcc prints its search
10063 # path with ; separators, and with drive letters. We can handle the
10064 # drive letters (cygwin fileutils understands them), so leave them,
10065 # especially as we might pass files found there to a mingw objdump,
10066 # which wouldn't understand a cygwinified path. Ahh.
10067 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10069 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10073 # pw32 DLLs use 'pw' prefix rather than 'lib'
10074 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10080 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10083 dynamic_linker='Win32 ld.exe'
10084 # FIXME: first we should search . and the directory the executable is in
10088 darwin* | rhapsody*)
10089 dynamic_linker="$host_os dyld"
10090 version_type=darwin
10093 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10094 soname_spec='${libname}${release}${major}$shared_ext'
10095 shlibpath_overrides_runpath=yes
10096 shlibpath_var=DYLD_LIBRARY_PATH
10097 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10098 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
10099 if test "$GCC" = yes; then
10100 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"`
10102 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
10104 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10111 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10112 soname_spec='${libname}${release}${shared_ext}$major'
10113 shlibpath_var=LD_LIBRARY_PATH
10124 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10125 soname_spec='${libname}${release}${shared_ext}$major'
10126 shlibpath_var=LD_LIBRARY_PATH
10127 shlibpath_overrides_runpath=no
10128 hardcode_into_libs=yes
10129 dynamic_linker='GNU ld.so'
10132 freebsd* | dragonfly*)
10133 # DragonFly does not have aout. When/if they implement a new
10134 # versioning mechanism, adjust this.
10135 if test -x /usr/bin/objformat; then
10136 objformat=`/usr/bin/objformat`
10139 freebsd[123]*) objformat=aout ;;
10140 *) objformat=elf ;;
10143 version_type=freebsd-$objformat
10144 case $version_type in
10146 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10151 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10155 shlibpath_var=LD_LIBRARY_PATH
10158 shlibpath_overrides_runpath=yes
10160 freebsd3.[01]* | freebsdelf3.[01]*)
10161 shlibpath_overrides_runpath=yes
10162 hardcode_into_libs=yes
10165 shlibpath_overrides_runpath=no
10166 hardcode_into_libs=yes
10175 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10176 soname_spec='${libname}${release}${shared_ext}$major'
10177 shlibpath_var=LD_LIBRARY_PATH
10178 hardcode_into_libs=yes
10181 hpux9* | hpux10* | hpux11*)
10182 # Give a soname corresponding to the major version so that dld.sl refuses to
10183 # link against other versions.
10190 hardcode_into_libs=yes
10191 dynamic_linker="$host_os dld.so"
10192 shlibpath_var=LD_LIBRARY_PATH
10193 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10194 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10195 soname_spec='${libname}${release}${shared_ext}$major'
10196 if test "X$HPUX_IA64_MODE" = X32; then
10197 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10199 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10201 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10205 hardcode_into_libs=yes
10206 dynamic_linker="$host_os dld.sl"
10207 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10208 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10209 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10210 soname_spec='${libname}${release}${shared_ext}$major'
10211 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10212 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10216 dynamic_linker="$host_os dld.sl"
10217 shlibpath_var=SHLIB_PATH
10218 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10219 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10220 soname_spec='${libname}${release}${shared_ext}$major'
10223 # HP-UX runs *really* slowly unless shared libraries are mode 555.
10224 postinstall_cmds='chmod 555 $lib'
10227 irix5* | irix6* | nonstopux*)
10229 nonstopux*) version_type=nonstopux ;;
10231 if test "$lt_cv_prog_gnu_ld" = yes; then
10239 soname_spec='${libname}${release}${shared_ext}$major'
10240 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10242 irix5* | nonstopux*)
10243 libsuff= shlibsuff=
10246 case $LD in # libtool.m4 will add one of these switches to LD
10247 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10248 libsuff= shlibsuff= libmagic=32-bit;;
10249 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10250 libsuff=32 shlibsuff=N32 libmagic=N32;;
10251 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10252 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10253 *) libsuff= shlibsuff= libmagic=never-match;;
10257 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10258 shlibpath_overrides_runpath=no
10259 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10260 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10261 hardcode_into_libs=yes
10264 # No shared lib support for Linux oldld, aout, or coff.
10265 linux*oldld* | linux*aout* | linux*coff*)
10269 # This must be Linux ELF.
10274 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10275 soname_spec='${libname}${release}${shared_ext}$major'
10276 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10277 shlibpath_var=LD_LIBRARY_PATH
10278 shlibpath_overrides_runpath=no
10279 # This implies no fast_install, which is unacceptable.
10280 # Some rework will be needed to allow for fast_install
10281 # before this can be enabled.
10282 hardcode_into_libs=yes
10284 # Append ld.so.conf contents to the search path
10285 if test -f /etc/ld.so.conf; then
10286 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' ' '`
10287 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10290 # We used to test for /lib/ld.so.1 and disable shared libraries on
10291 # powerpc, because MkLinux only supported shared libraries with the
10292 # GNU dynamic linker. Since this was broken with cross compilers,
10293 # most powerpc-linux boxes support dynamic linking these days and
10294 # people can always --disable-shared, the test was removed, and we
10295 # assume the GNU/Linux dynamic linker is in use.
10296 dynamic_linker='GNU/Linux ld.so'
10303 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10304 soname_spec='${libname}${release}${shared_ext}$major'
10305 shlibpath_var=LD_LIBRARY_PATH
10306 shlibpath_overrides_runpath=no
10307 hardcode_into_libs=yes
10308 dynamic_linker='GNU ld.so'
10315 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10316 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10317 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10318 dynamic_linker='NetBSD (a.out) ld.so'
10320 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10321 soname_spec='${libname}${release}${shared_ext}$major'
10322 dynamic_linker='NetBSD ld.elf_so'
10324 shlibpath_var=LD_LIBRARY_PATH
10325 shlibpath_overrides_runpath=yes
10326 hardcode_into_libs=yes
10331 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10332 shlibpath_var=LD_LIBRARY_PATH
10333 shlibpath_overrides_runpath=yes
10340 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10341 soname_spec='${libname}${release}${shared_ext}$major'
10342 shlibpath_var=LD_LIBRARY_PATH
10343 shlibpath_overrides_runpath=yes
10349 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10351 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10352 *) need_version=no ;;
10354 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10355 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10356 shlibpath_var=LD_LIBRARY_PATH
10357 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10359 openbsd2.[89] | openbsd2.[89].*)
10360 shlibpath_overrides_runpath=no
10363 shlibpath_overrides_runpath=yes
10367 shlibpath_overrides_runpath=yes
10372 libname_spec='$name'
10375 library_names_spec='$libname${shared_ext} $libname.a'
10376 dynamic_linker='OS/2 ld.exe'
10377 shlibpath_var=LIBPATH
10380 osf3* | osf4* | osf5*)
10384 soname_spec='${libname}${release}${shared_ext}$major'
10385 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10386 shlibpath_var=LD_LIBRARY_PATH
10387 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10388 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10393 soname_spec='${libname}${release}${shared_ext}$major'
10394 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10395 shlibpath_var=LD_LIBRARY_PATH
10402 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10403 soname_spec='${libname}${release}${shared_ext}$major'
10404 shlibpath_var=LD_LIBRARY_PATH
10405 shlibpath_overrides_runpath=yes
10406 hardcode_into_libs=yes
10407 # ldd complains unless libraries are executable
10408 postinstall_cmds='chmod +x $lib'
10413 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10414 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10415 shlibpath_var=LD_LIBRARY_PATH
10416 shlibpath_overrides_runpath=yes
10417 if test "$with_gnu_ld" = yes; then
10423 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10425 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10426 soname_spec='${libname}${release}${shared_ext}$major'
10427 shlibpath_var=LD_LIBRARY_PATH
10428 case $host_vendor in
10430 shlibpath_overrides_runpath=no
10432 export_dynamic_flag_spec='${wl}-Blargedynsym'
10433 runpath_var=LD_RUN_PATH
10441 shlibpath_overrides_runpath=no
10442 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10448 if test -d /usr/nec ;then
10450 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10451 soname_spec='$libname${shared_ext}.$major'
10452 shlibpath_var=LD_LIBRARY_PATH
10458 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10459 soname_spec='${libname}${release}${shared_ext}$major'
10460 shlibpath_var=LD_LIBRARY_PATH
10467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10468 $as_echo "$dynamic_linker" >&6; }
10469 test "$dynamic_linker" = no && can_build_shared=no
10471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10472 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10474 if test -n "$hardcode_libdir_flag_spec" || \
10475 test -n "$runpath_var" || \
10476 test "X$hardcode_automatic" = "Xyes" ; then
10478 # We can hardcode non-existant directories.
10479 if test "$hardcode_direct" != no &&
10480 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10481 # have to relink, otherwise we might link with an installed library
10482 # when we should be linking with a yet-to-be-installed one
10483 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
10484 test "$hardcode_minus_L" != no; then
10485 # Linking always hardcodes the temporary library directory.
10486 hardcode_action=relink
10488 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10489 hardcode_action=immediate
10492 # We cannot hardcode anything, or else we can only hardcode existing
10494 hardcode_action=unsupported
10496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10497 $as_echo "$hardcode_action" >&6; }
10499 if test "$hardcode_action" = relink; then
10500 # Fast installation is not supported
10501 enable_fast_install=no
10502 elif test "$shlibpath_overrides_runpath" = yes ||
10503 test "$enable_shared" = no; then
10504 # Fast installation is not necessary
10505 enable_fast_install=needless
10510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
10511 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
10512 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
10513 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10514 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10516 $as_echo "yes" >&6; }
10518 # FIXME - insert some real tests, host_os isn't really good enough
10521 if test -n "$STRIP" ; then
10522 striplib="$STRIP -x"
10523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10524 $as_echo "yes" >&6; }
10526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10527 $as_echo "no" >&6; }
10531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10532 $as_echo "no" >&6; }
10537 if test "x$enable_dlopen" != xyes; then
10538 enable_dlopen=unknown
10539 enable_dlopen_self=unknown
10540 enable_dlopen_self_static=unknown
10547 lt_cv_dlopen="load_add_on"
10549 lt_cv_dlopen_self=yes
10553 lt_cv_dlopen="LoadLibrary"
10558 lt_cv_dlopen="dlopen"
10563 # if libdl is installed we need to link against it
10564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10565 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10566 if ${ac_cv_lib_dl_dlopen+:} false; then :
10567 $as_echo_n "(cached) " >&6
10569 ac_check_lib_save_LIBS=$LIBS
10571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10572 /* end confdefs.h. */
10574 /* Override any GCC internal prototype to avoid an error.
10575 Use char because int might match the return type of a GCC
10576 builtin and then its argument prototype would still apply. */
10589 if ac_fn_c_try_link "$LINENO"; then :
10590 ac_cv_lib_dl_dlopen=yes
10592 ac_cv_lib_dl_dlopen=no
10594 rm -f core conftest.err conftest.$ac_objext \
10595 conftest$ac_exeext conftest.$ac_ext
10596 LIBS=$ac_check_lib_save_LIBS
10598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10599 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10600 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10601 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10604 lt_cv_dlopen="dyld"
10606 lt_cv_dlopen_self=yes
10613 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10614 if test "x$ac_cv_func_shl_load" = xyes; then :
10615 lt_cv_dlopen="shl_load"
10617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10618 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10619 if ${ac_cv_lib_dld_shl_load+:} false; then :
10620 $as_echo_n "(cached) " >&6
10622 ac_check_lib_save_LIBS=$LIBS
10624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10625 /* end confdefs.h. */
10627 /* Override any GCC internal prototype to avoid an error.
10628 Use char because int might match the return type of a GCC
10629 builtin and then its argument prototype would still apply. */
10637 return shl_load ();
10642 if ac_fn_c_try_link "$LINENO"; then :
10643 ac_cv_lib_dld_shl_load=yes
10645 ac_cv_lib_dld_shl_load=no
10647 rm -f core conftest.err conftest.$ac_objext \
10648 conftest$ac_exeext conftest.$ac_ext
10649 LIBS=$ac_check_lib_save_LIBS
10651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10652 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10653 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
10654 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
10656 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10657 if test "x$ac_cv_func_dlopen" = xyes; then :
10658 lt_cv_dlopen="dlopen"
10660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10661 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10662 if ${ac_cv_lib_dl_dlopen+:} false; then :
10663 $as_echo_n "(cached) " >&6
10665 ac_check_lib_save_LIBS=$LIBS
10667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10668 /* end confdefs.h. */
10670 /* Override any GCC internal prototype to avoid an error.
10671 Use char because int might match the return type of a GCC
10672 builtin and then its argument prototype would still apply. */
10685 if ac_fn_c_try_link "$LINENO"; then :
10686 ac_cv_lib_dl_dlopen=yes
10688 ac_cv_lib_dl_dlopen=no
10690 rm -f core conftest.err conftest.$ac_objext \
10691 conftest$ac_exeext conftest.$ac_ext
10692 LIBS=$ac_check_lib_save_LIBS
10694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10695 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10696 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10697 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10700 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10701 if ${ac_cv_lib_svld_dlopen+:} false; then :
10702 $as_echo_n "(cached) " >&6
10704 ac_check_lib_save_LIBS=$LIBS
10705 LIBS="-lsvld $LIBS"
10706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10707 /* end confdefs.h. */
10709 /* Override any GCC internal prototype to avoid an error.
10710 Use char because int might match the return type of a GCC
10711 builtin and then its argument prototype would still apply. */
10724 if ac_fn_c_try_link "$LINENO"; then :
10725 ac_cv_lib_svld_dlopen=yes
10727 ac_cv_lib_svld_dlopen=no
10729 rm -f core conftest.err conftest.$ac_objext \
10730 conftest$ac_exeext conftest.$ac_ext
10731 LIBS=$ac_check_lib_save_LIBS
10733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10734 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10735 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
10736 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10739 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10740 if ${ac_cv_lib_dld_dld_link+:} false; then :
10741 $as_echo_n "(cached) " >&6
10743 ac_check_lib_save_LIBS=$LIBS
10745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10746 /* end confdefs.h. */
10748 /* Override any GCC internal prototype to avoid an error.
10749 Use char because int might match the return type of a GCC
10750 builtin and then its argument prototype would still apply. */
10758 return dld_link ();
10763 if ac_fn_c_try_link "$LINENO"; then :
10764 ac_cv_lib_dld_dld_link=yes
10766 ac_cv_lib_dld_dld_link=no
10768 rm -f core conftest.err conftest.$ac_objext \
10769 conftest$ac_exeext conftest.$ac_ext
10770 LIBS=$ac_check_lib_save_LIBS
10772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10773 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10774 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
10775 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10796 if test "x$lt_cv_dlopen" != xno; then
10802 case $lt_cv_dlopen in
10804 save_CPPFLAGS="$CPPFLAGS"
10805 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10807 save_LDFLAGS="$LDFLAGS"
10808 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10811 LIBS="$lt_cv_dlopen_libs $LIBS"
10813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10814 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10815 if ${lt_cv_dlopen_self+:} false; then :
10816 $as_echo_n "(cached) " >&6
10818 if test "$cross_compiling" = yes; then :
10819 lt_cv_dlopen_self=cross
10821 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10822 lt_status=$lt_dlunknown
10823 cat > conftest.$ac_ext <<EOF
10824 #line 10824 "configure"
10825 #include "confdefs.h"
10834 # define LT_DLGLOBAL RTLD_GLOBAL
10837 # define LT_DLGLOBAL DL_GLOBAL
10839 # define LT_DLGLOBAL 0
10843 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10844 find out it does not work in some platform. */
10845 #ifndef LT_DLLAZY_OR_NOW
10847 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10850 # define LT_DLLAZY_OR_NOW DL_LAZY
10853 # define LT_DLLAZY_OR_NOW RTLD_NOW
10856 # define LT_DLLAZY_OR_NOW DL_NOW
10858 # define LT_DLLAZY_OR_NOW 0
10866 extern "C" void exit (int);
10869 void fnord() { int i=42;}
10872 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10873 int status = $lt_dlunknown;
10877 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10878 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10879 /* dlclose (self); */
10885 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10886 (eval $ac_link) 2>&5
10888 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10889 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10890 (./conftest; exit; ) >&5 2>/dev/null
10892 case x$lt_status in
10893 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10894 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10895 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
10898 # compilation failed
10899 lt_cv_dlopen_self=no
10906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10907 $as_echo "$lt_cv_dlopen_self" >&6; }
10909 if test "x$lt_cv_dlopen_self" = xyes; then
10910 LDFLAGS="$LDFLAGS $link_static_flag"
10911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10912 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10913 if ${lt_cv_dlopen_self_static+:} false; then :
10914 $as_echo_n "(cached) " >&6
10916 if test "$cross_compiling" = yes; then :
10917 lt_cv_dlopen_self_static=cross
10919 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10920 lt_status=$lt_dlunknown
10921 cat > conftest.$ac_ext <<EOF
10922 #line 10922 "configure"
10923 #include "confdefs.h"
10932 # define LT_DLGLOBAL RTLD_GLOBAL
10935 # define LT_DLGLOBAL DL_GLOBAL
10937 # define LT_DLGLOBAL 0
10941 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10942 find out it does not work in some platform. */
10943 #ifndef LT_DLLAZY_OR_NOW
10945 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10948 # define LT_DLLAZY_OR_NOW DL_LAZY
10951 # define LT_DLLAZY_OR_NOW RTLD_NOW
10954 # define LT_DLLAZY_OR_NOW DL_NOW
10956 # define LT_DLLAZY_OR_NOW 0
10964 extern "C" void exit (int);
10967 void fnord() { int i=42;}
10970 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10971 int status = $lt_dlunknown;
10975 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10976 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10977 /* dlclose (self); */
10983 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10984 (eval $ac_link) 2>&5
10986 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10987 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10988 (./conftest; exit; ) >&5 2>/dev/null
10990 case x$lt_status in
10991 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10992 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10993 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
10996 # compilation failed
10997 lt_cv_dlopen_self_static=no
11004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11005 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11008 CPPFLAGS="$save_CPPFLAGS"
11009 LDFLAGS="$save_LDFLAGS"
11014 case $lt_cv_dlopen_self in
11015 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11016 *) enable_dlopen_self=unknown ;;
11019 case $lt_cv_dlopen_self_static in
11020 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11021 *) enable_dlopen_self_static=unknown ;;
11026 # Report which librarie types wil actually be built
11027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11028 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11030 $as_echo "$can_build_shared" >&6; }
11032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11033 $as_echo_n "checking whether to build shared libraries... " >&6; }
11034 test "$can_build_shared" = "no" && enable_shared=no
11036 # On AIX, shared libraries and static libraries use the same namespace, and
11037 # are all built from PIC.
11040 test "$enable_shared" = yes && enable_static=no
11041 if test -n "$RANLIB"; then
11042 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11043 postinstall_cmds='$RANLIB $lib'
11048 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11049 test "$enable_shared" = yes && enable_static=no
11053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11054 $as_echo "$enable_shared" >&6; }
11056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11057 $as_echo_n "checking whether to build static libraries... " >&6; }
11058 # Make sure either enable_shared or enable_static is yes.
11059 test "$enable_shared" = yes || enable_static=yes
11060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11061 $as_echo "$enable_static" >&6; }
11063 # The else clause should only fire when bootstrapping the
11064 # libtool distribution, otherwise you forgot to ship ltmain.sh
11065 # with your package, and you will get complaints that there are
11066 # no rules to generate ltmain.sh.
11067 if test -f "$ltmain"; then
11068 # See if we are running on zsh, and set the options which allow our commands through
11069 # without removal of \ escapes.
11070 if test -n "${ZSH_VERSION+set}" ; then
11071 setopt NO_GLOB_SUBST
11073 # Now quote all the things that may contain metacharacters while being
11074 # careful not to overquote the AC_SUBSTed values. We take copies of the
11075 # variables and quote the copies for generation of the libtool script.
11076 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
11078 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11079 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11080 deplibs_check_method reload_flag reload_cmds need_locks \
11081 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11082 lt_cv_sys_global_symbol_to_c_name_address \
11083 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11084 old_postinstall_cmds old_postuninstall_cmds \
11088 lt_prog_compiler_wl \
11089 lt_prog_compiler_pic \
11090 lt_prog_compiler_static \
11091 lt_prog_compiler_no_builtin_flag \
11092 export_dynamic_flag_spec \
11093 thread_safe_flag_spec \
11094 whole_archive_flag_spec \
11095 enable_shared_with_static_runtimes \
11097 old_archive_from_new_cmds \
11102 compiler_lib_search_path \
11104 archive_expsym_cmds \
11106 postuninstall_cmds \
11107 old_archive_from_expsyms_cmds \
11108 allow_undefined_flag \
11109 no_undefined_flag \
11110 export_symbols_cmds \
11111 hardcode_libdir_flag_spec \
11112 hardcode_libdir_flag_spec_ld \
11113 hardcode_libdir_separator \
11114 hardcode_automatic \
11116 module_expsym_cmds \
11117 lt_cv_prog_compiler_c_o \
11119 include_expsyms; do
11122 old_archive_cmds | \
11123 old_archive_from_new_cmds | \
11125 archive_expsym_cmds | \
11127 module_expsym_cmds | \
11128 old_archive_from_expsyms_cmds | \
11129 export_symbols_cmds | \
11130 extract_expsyms_cmds | reload_cmds | finish_cmds | \
11131 postinstall_cmds | postuninstall_cmds | \
11132 old_postinstall_cmds | old_postuninstall_cmds | \
11133 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
11134 # Double-quote double-evaled strings.
11135 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
11138 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
11144 *'\$0 --fallback-echo"')
11145 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
11149 cfgfile="${ofile}T"
11150 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
11152 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ofile" >&5
11153 $as_echo "$as_me: creating $ofile" >&6;}
11155 cat <<__EOF__ >> "$cfgfile"
11158 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
11159 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
11160 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
11162 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
11163 # Free Software Foundation, Inc.
11165 # This file is part of GNU Libtool:
11166 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
11168 # This program is free software; you can redistribute it and/or modify
11169 # it under the terms of the GNU General Public License as published by
11170 # the Free Software Foundation; either version 2 of the License, or
11171 # (at your option) any later version.
11173 # This program is distributed in the hope that it will be useful, but
11174 # WITHOUT ANY WARRANTY; without even the implied warranty of
11175 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11176 # General Public License for more details.
11178 # You should have received a copy of the GNU General Public License
11179 # along with this program; if not, write to the Free Software
11180 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
11182 # As a special exception to the GNU General Public License, if you
11183 # distribute this file as part of a program that contains a
11184 # configuration script generated by Autoconf, you may include it under
11185 # the same distribution terms that you use for the rest of that program.
11187 # A sed program that does not truncate output.
11190 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
11191 Xsed="$SED -e 1s/^X//"
11193 # The HP-UX ksh and POSIX shell print the target directory to stdout
11194 # if CDPATH is set.
11195 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11197 # The names of the tagged configurations supported by this script.
11200 # ### BEGIN LIBTOOL CONFIG
11202 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11204 # Shell to use when invoking shell scripts.
11207 # Whether or not to build shared libraries.
11208 build_libtool_libs=$enable_shared
11210 # Whether or not to build static libraries.
11211 build_old_libs=$enable_static
11213 # Whether or not to add -lc for building shared libraries.
11214 build_libtool_need_lc=$archive_cmds_need_lc
11216 # Whether or not to disallow shared libs when runtime libs are static
11217 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
11219 # Whether or not to optimize for fast installation.
11220 fast_install=$enable_fast_install
11223 host_alias=$host_alias
11227 # The build system.
11228 build_alias=$build_alias
11232 # An echo program that does not interpret backslashes.
11237 AR_FLAGS=$lt_AR_FLAGS
11242 # A language-specific compiler.
11245 # Is the compiler the GNU C compiler?
11251 # The linker used to build libraries.
11254 # Whether we need hard or soft links.
11257 # A BSD-compatible nm program.
11260 # A symbol stripping program
11263 # Used to examine libraries when file_magic_cmd begins "file"
11264 MAGIC_CMD=$MAGIC_CMD
11266 # Used on cygwin: DLL creation program.
11269 # Used on cygwin: object dumper.
11272 # Used on cygwin: assembler.
11275 # The name of the directory that contains temporary libtool files.
11278 # How to create reloadable object files.
11279 reload_flag=$lt_reload_flag
11280 reload_cmds=$lt_reload_cmds
11282 # How to pass a linker flag through the compiler.
11283 wl=$lt_lt_prog_compiler_wl
11285 # Object file suffix (normally "o").
11286 objext="$ac_objext"
11288 # Old archive suffix (normally "a").
11291 # Shared library suffix (normally ".so").
11292 shrext_cmds='$shrext_cmds'
11294 # Executable file suffix (normally "").
11297 # Additional compiler flags for building library objects.
11298 pic_flag=$lt_lt_prog_compiler_pic
11301 # What is the maximum length of a command?
11302 max_cmd_len=$lt_cv_sys_max_cmd_len
11304 # Does compiler simultaneously support -c and -o options?
11305 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
11307 # Must we lock files when doing compilation?
11308 need_locks=$lt_need_locks
11310 # Do we need the lib prefix for modules?
11311 need_lib_prefix=$need_lib_prefix
11313 # Do we need a version for libraries?
11314 need_version=$need_version
11316 # Whether dlopen is supported.
11317 dlopen_support=$enable_dlopen
11319 # Whether dlopen of programs is supported.
11320 dlopen_self=$enable_dlopen_self
11322 # Whether dlopen of statically linked programs is supported.
11323 dlopen_self_static=$enable_dlopen_self_static
11325 # Compiler flag to prevent dynamic linking.
11326 link_static_flag=$lt_lt_prog_compiler_static
11328 # Compiler flag to turn off builtin functions.
11329 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
11331 # Compiler flag to allow reflexive dlopens.
11332 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
11334 # Compiler flag to generate shared objects directly from archives.
11335 whole_archive_flag_spec=$lt_whole_archive_flag_spec
11337 # Compiler flag to generate thread-safe objects.
11338 thread_safe_flag_spec=$lt_thread_safe_flag_spec
11340 # Library versioning type.
11341 version_type=$version_type
11343 # Format of library name prefix.
11344 libname_spec=$lt_libname_spec
11346 # List of archive names. First name is the real one, the rest are links.
11347 # The last name is the one that the linker finds with -lNAME.
11348 library_names_spec=$lt_library_names_spec
11350 # The coded name of the library, if different from the real name.
11351 soname_spec=$lt_soname_spec
11353 # Commands used to build and install an old-style archive.
11355 old_archive_cmds=$lt_old_archive_cmds
11356 old_postinstall_cmds=$lt_old_postinstall_cmds
11357 old_postuninstall_cmds=$lt_old_postuninstall_cmds
11359 # Create an old-style archive from a shared archive.
11360 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
11362 # Create a temporary old-style archive to link instead of a shared archive.
11363 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
11365 # Commands used to build and install a shared archive.
11366 archive_cmds=$lt_archive_cmds
11367 archive_expsym_cmds=$lt_archive_expsym_cmds
11368 postinstall_cmds=$lt_postinstall_cmds
11369 postuninstall_cmds=$lt_postuninstall_cmds
11371 # Commands used to build a loadable module (assumed same as above if empty)
11372 module_cmds=$lt_module_cmds
11373 module_expsym_cmds=$lt_module_expsym_cmds
11375 # Commands to strip libraries.
11376 old_striplib=$lt_old_striplib
11377 striplib=$lt_striplib
11379 # Dependencies to place before the objects being linked to create a
11381 predep_objects=$lt_predep_objects
11383 # Dependencies to place after the objects being linked to create a
11385 postdep_objects=$lt_postdep_objects
11387 # Dependencies to place before the objects being linked to create a
11389 predeps=$lt_predeps
11391 # Dependencies to place after the objects being linked to create a
11393 postdeps=$lt_postdeps
11395 # The library search path used internally by the compiler when linking
11396 # a shared library.
11397 compiler_lib_search_path=$lt_compiler_lib_search_path
11399 # Method to check whether dependent libraries are shared objects.
11400 deplibs_check_method=$lt_deplibs_check_method
11402 # Command to use when deplibs_check_method == file_magic.
11403 file_magic_cmd=$lt_file_magic_cmd
11405 # Flag that allows shared libraries with undefined symbols to be built.
11406 allow_undefined_flag=$lt_allow_undefined_flag
11408 # Flag that forces no undefined symbols.
11409 no_undefined_flag=$lt_no_undefined_flag
11411 # Commands used to finish a libtool library installation in a directory.
11412 finish_cmds=$lt_finish_cmds
11414 # Same as above, but a single script fragment to be evaled but not shown.
11415 finish_eval=$lt_finish_eval
11417 # Take the output of nm and produce a listing of raw symbols and C names.
11418 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
11420 # Transform the output of nm in a proper C declaration
11421 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
11423 # Transform the output of nm in a C name address pair
11424 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
11426 # This is the shared library runtime path variable.
11427 runpath_var=$runpath_var
11429 # This is the shared library path variable.
11430 shlibpath_var=$shlibpath_var
11432 # Is shlibpath searched before the hard-coded library search path?
11433 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
11435 # How to hardcode a shared library path into an executable.
11436 hardcode_action=$hardcode_action
11438 # Whether we should hardcode library paths into libraries.
11439 hardcode_into_libs=$hardcode_into_libs
11441 # Flag to hardcode \$libdir into a binary during linking.
11442 # This must work even if \$libdir does not exist.
11443 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
11445 # If ld is used when linking, flag to hardcode \$libdir into
11446 # a binary during linking. This must work even if \$libdir does
11448 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
11450 # Whether we need a single -rpath flag with a separated argument.
11451 hardcode_libdir_separator=$lt_hardcode_libdir_separator
11453 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11454 # resulting binary.
11455 hardcode_direct=$hardcode_direct
11457 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11458 # resulting binary.
11459 hardcode_minus_L=$hardcode_minus_L
11461 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11462 # the resulting binary.
11463 hardcode_shlibpath_var=$hardcode_shlibpath_var
11465 # Set to yes if building a shared library automatically hardcodes DIR into the library
11466 # and all subsequent libraries and executables linked against it.
11467 hardcode_automatic=$hardcode_automatic
11469 # Variables whose values should be saved in libtool wrapper scripts and
11470 # restored at relink time.
11471 variables_saved_for_relink="$variables_saved_for_relink"
11473 # Whether libtool must link a program against all its dependency libraries.
11474 link_all_deplibs=$link_all_deplibs
11476 # Compile-time system search path for libraries
11477 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11479 # Run-time system search path for libraries
11480 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11482 # Fix the shell variable \$srcfile for the compiler.
11483 fix_srcfile_path="$fix_srcfile_path"
11485 # Set to yes if exported symbols are required.
11486 always_export_symbols=$always_export_symbols
11488 # The commands to list exported symbols.
11489 export_symbols_cmds=$lt_export_symbols_cmds
11491 # The commands to extract the exported symbol list from a shared archive.
11492 extract_expsyms_cmds=$lt_extract_expsyms_cmds
11494 # Symbols that should not be listed in the preloaded symbols.
11495 exclude_expsyms=$lt_exclude_expsyms
11497 # Symbols that must always be exported.
11498 include_expsyms=$lt_include_expsyms
11500 # ### END LIBTOOL CONFIG
11507 cat <<\EOF >> "$cfgfile"
11509 # AIX sometimes has problems with the GCC collect2 program. For some
11510 # reason, if we set the COLLECT_NAMES environment variable, the problems
11511 # vanish in a puff of smoke.
11512 if test "X${COLLECT_NAMES+set}" != Xset; then
11514 export COLLECT_NAMES
11520 # We use sed instead of cat because bash on DJGPP gets confused if
11521 # if finds mixed CR/LF and LF-only lines. Since sed operates in
11522 # text mode, it properly converts lines to CR/LF. This bash problem
11523 # is reportedly fixed, but why not run on old versions too?
11524 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
11526 mv -f "$cfgfile" "$ofile" || \
11527 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
11531 # If there is no Makefile yet, we rely on a make rule to execute
11532 # `config.status --recheck' to rerun these tests and create the
11533 # libtool script then.
11534 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11535 if test -f "$ltmain_in"; then
11536 test -f Makefile && make "$ltmain"
11542 ac_cpp='$CPP $CPPFLAGS'
11543 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11544 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11545 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11550 # Check whether --with-tags was given.
11551 if test "${with_tags+set}" = set; then :
11552 withval=$with_tags; tagnames="$withval"
11556 if test -f "$ltmain" && test -n "$tagnames"; then
11557 if test ! -f "${ofile}"; then
11558 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: output file \`$ofile' does not exist" >&5
11559 $as_echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
11562 if test -z "$LTCC"; then
11563 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
11564 if test -z "$LTCC"; then
11565 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: output file \`$ofile' does not look like a libtool script" >&5
11566 $as_echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
11568 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
11569 $as_echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11573 # Extract list of available tagged configurations in $ofile.
11574 # Note that this assumes the entire list is on one line.
11575 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11577 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11578 for tagname in $tagnames; do
11580 # Check whether tagname contains only valid characters
11581 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11583 *) as_fn_error $? "invalid tag name: $tagname" "$LINENO" 5
11587 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11589 as_fn_error $? "tag name \"$tagname\" already exists" "$LINENO" 5
11592 # Update the list of available tags.
11593 if test -n "$tagname"; then
11594 echo appending configuration tag \"$tagname\" to $ofile
11598 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11599 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11600 (test "X$CXX" != "Xg++"))) ; then
11608 if test -n "$F77" && test "X$F77" != "Xno"; then
11616 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
11626 # Source file extension for RC test sources.
11629 # Object file extension for compiled RC test sources.
11633 # Code to be used in simple compile tests
11634 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
11636 # Code to be used in simple link tests
11637 lt_simple_link_test_code="$lt_simple_compile_test_code"
11639 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11641 # If no C compiler was specified, use CC.
11644 # Allow CC to be a program name with arguments.
11648 # save warnings/boilerplate of simple test code
11649 ac_outfile=conftest.$ac_objext
11650 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
11651 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
11652 _lt_compiler_boilerplate=`cat conftest.err`
11655 ac_outfile=conftest.$ac_objext
11656 printf "$lt_simple_link_test_code" >conftest.$ac_ext
11657 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
11658 _lt_linker_boilerplate=`cat conftest.err`
11662 # Allow CC to be a program name with arguments.
11667 for cc_temp in $compiler""; do
11669 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11670 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11675 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11677 lt_cv_prog_compiler_c_o_RC=yes
11679 # The else clause should only fire when bootstrapping the
11680 # libtool distribution, otherwise you forgot to ship ltmain.sh
11681 # with your package, and you will get complaints that there are
11682 # no rules to generate ltmain.sh.
11683 if test -f "$ltmain"; then
11684 # See if we are running on zsh, and set the options which allow our commands through
11685 # without removal of \ escapes.
11686 if test -n "${ZSH_VERSION+set}" ; then
11687 setopt NO_GLOB_SUBST
11689 # Now quote all the things that may contain metacharacters while being
11690 # careful not to overquote the AC_SUBSTed values. We take copies of the
11691 # variables and quote the copies for generation of the libtool script.
11692 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
11694 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11695 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11696 deplibs_check_method reload_flag reload_cmds need_locks \
11697 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11698 lt_cv_sys_global_symbol_to_c_name_address \
11699 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11700 old_postinstall_cmds old_postuninstall_cmds \
11704 lt_prog_compiler_wl_RC \
11705 lt_prog_compiler_pic_RC \
11706 lt_prog_compiler_static_RC \
11707 lt_prog_compiler_no_builtin_flag_RC \
11708 export_dynamic_flag_spec_RC \
11709 thread_safe_flag_spec_RC \
11710 whole_archive_flag_spec_RC \
11711 enable_shared_with_static_runtimes_RC \
11712 old_archive_cmds_RC \
11713 old_archive_from_new_cmds_RC \
11714 predep_objects_RC \
11715 postdep_objects_RC \
11718 compiler_lib_search_path_RC \
11720 archive_expsym_cmds_RC \
11721 postinstall_cmds_RC \
11722 postuninstall_cmds_RC \
11723 old_archive_from_expsyms_cmds_RC \
11724 allow_undefined_flag_RC \
11725 no_undefined_flag_RC \
11726 export_symbols_cmds_RC \
11727 hardcode_libdir_flag_spec_RC \
11728 hardcode_libdir_flag_spec_ld_RC \
11729 hardcode_libdir_separator_RC \
11730 hardcode_automatic_RC \
11732 module_expsym_cmds_RC \
11733 lt_cv_prog_compiler_c_o_RC \
11734 exclude_expsyms_RC \
11735 include_expsyms_RC; do
11738 old_archive_cmds_RC | \
11739 old_archive_from_new_cmds_RC | \
11740 archive_cmds_RC | \
11741 archive_expsym_cmds_RC | \
11743 module_expsym_cmds_RC | \
11744 old_archive_from_expsyms_cmds_RC | \
11745 export_symbols_cmds_RC | \
11746 extract_expsyms_cmds | reload_cmds | finish_cmds | \
11747 postinstall_cmds | postuninstall_cmds | \
11748 old_postinstall_cmds | old_postuninstall_cmds | \
11749 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
11750 # Double-quote double-evaled strings.
11751 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
11754 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
11760 *'\$0 --fallback-echo"')
11761 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
11767 cat <<__EOF__ >> "$cfgfile"
11768 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
11770 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11772 # Shell to use when invoking shell scripts.
11775 # Whether or not to build shared libraries.
11776 build_libtool_libs=$enable_shared
11778 # Whether or not to build static libraries.
11779 build_old_libs=$enable_static
11781 # Whether or not to add -lc for building shared libraries.
11782 build_libtool_need_lc=$archive_cmds_need_lc_RC
11784 # Whether or not to disallow shared libs when runtime libs are static
11785 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
11787 # Whether or not to optimize for fast installation.
11788 fast_install=$enable_fast_install
11791 host_alias=$host_alias
11795 # The build system.
11796 build_alias=$build_alias
11800 # An echo program that does not interpret backslashes.
11805 AR_FLAGS=$lt_AR_FLAGS
11810 # A language-specific compiler.
11813 # Is the compiler the GNU C compiler?
11819 # The linker used to build libraries.
11822 # Whether we need hard or soft links.
11825 # A BSD-compatible nm program.
11828 # A symbol stripping program
11831 # Used to examine libraries when file_magic_cmd begins "file"
11832 MAGIC_CMD=$MAGIC_CMD
11834 # Used on cygwin: DLL creation program.
11837 # Used on cygwin: object dumper.
11840 # Used on cygwin: assembler.
11843 # The name of the directory that contains temporary libtool files.
11846 # How to create reloadable object files.
11847 reload_flag=$lt_reload_flag
11848 reload_cmds=$lt_reload_cmds
11850 # How to pass a linker flag through the compiler.
11851 wl=$lt_lt_prog_compiler_wl_RC
11853 # Object file suffix (normally "o").
11854 objext="$ac_objext"
11856 # Old archive suffix (normally "a").
11859 # Shared library suffix (normally ".so").
11860 shrext_cmds='$shrext_cmds'
11862 # Executable file suffix (normally "").
11865 # Additional compiler flags for building library objects.
11866 pic_flag=$lt_lt_prog_compiler_pic_RC
11869 # What is the maximum length of a command?
11870 max_cmd_len=$lt_cv_sys_max_cmd_len
11872 # Does compiler simultaneously support -c and -o options?
11873 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
11875 # Must we lock files when doing compilation?
11876 need_locks=$lt_need_locks
11878 # Do we need the lib prefix for modules?
11879 need_lib_prefix=$need_lib_prefix
11881 # Do we need a version for libraries?
11882 need_version=$need_version
11884 # Whether dlopen is supported.
11885 dlopen_support=$enable_dlopen
11887 # Whether dlopen of programs is supported.
11888 dlopen_self=$enable_dlopen_self
11890 # Whether dlopen of statically linked programs is supported.
11891 dlopen_self_static=$enable_dlopen_self_static
11893 # Compiler flag to prevent dynamic linking.
11894 link_static_flag=$lt_lt_prog_compiler_static_RC
11896 # Compiler flag to turn off builtin functions.
11897 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
11899 # Compiler flag to allow reflexive dlopens.
11900 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
11902 # Compiler flag to generate shared objects directly from archives.
11903 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
11905 # Compiler flag to generate thread-safe objects.
11906 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
11908 # Library versioning type.
11909 version_type=$version_type
11911 # Format of library name prefix.
11912 libname_spec=$lt_libname_spec
11914 # List of archive names. First name is the real one, the rest are links.
11915 # The last name is the one that the linker finds with -lNAME.
11916 library_names_spec=$lt_library_names_spec
11918 # The coded name of the library, if different from the real name.
11919 soname_spec=$lt_soname_spec
11921 # Commands used to build and install an old-style archive.
11923 old_archive_cmds=$lt_old_archive_cmds_RC
11924 old_postinstall_cmds=$lt_old_postinstall_cmds
11925 old_postuninstall_cmds=$lt_old_postuninstall_cmds
11927 # Create an old-style archive from a shared archive.
11928 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
11930 # Create a temporary old-style archive to link instead of a shared archive.
11931 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
11933 # Commands used to build and install a shared archive.
11934 archive_cmds=$lt_archive_cmds_RC
11935 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
11936 postinstall_cmds=$lt_postinstall_cmds
11937 postuninstall_cmds=$lt_postuninstall_cmds
11939 # Commands used to build a loadable module (assumed same as above if empty)
11940 module_cmds=$lt_module_cmds_RC
11941 module_expsym_cmds=$lt_module_expsym_cmds_RC
11943 # Commands to strip libraries.
11944 old_striplib=$lt_old_striplib
11945 striplib=$lt_striplib
11947 # Dependencies to place before the objects being linked to create a
11949 predep_objects=$lt_predep_objects_RC
11951 # Dependencies to place after the objects being linked to create a
11953 postdep_objects=$lt_postdep_objects_RC
11955 # Dependencies to place before the objects being linked to create a
11957 predeps=$lt_predeps_RC
11959 # Dependencies to place after the objects being linked to create a
11961 postdeps=$lt_postdeps_RC
11963 # The library search path used internally by the compiler when linking
11964 # a shared library.
11965 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
11967 # Method to check whether dependent libraries are shared objects.
11968 deplibs_check_method=$lt_deplibs_check_method
11970 # Command to use when deplibs_check_method == file_magic.
11971 file_magic_cmd=$lt_file_magic_cmd
11973 # Flag that allows shared libraries with undefined symbols to be built.
11974 allow_undefined_flag=$lt_allow_undefined_flag_RC
11976 # Flag that forces no undefined symbols.
11977 no_undefined_flag=$lt_no_undefined_flag_RC
11979 # Commands used to finish a libtool library installation in a directory.
11980 finish_cmds=$lt_finish_cmds
11982 # Same as above, but a single script fragment to be evaled but not shown.
11983 finish_eval=$lt_finish_eval
11985 # Take the output of nm and produce a listing of raw symbols and C names.
11986 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
11988 # Transform the output of nm in a proper C declaration
11989 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
11991 # Transform the output of nm in a C name address pair
11992 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
11994 # This is the shared library runtime path variable.
11995 runpath_var=$runpath_var
11997 # This is the shared library path variable.
11998 shlibpath_var=$shlibpath_var
12000 # Is shlibpath searched before the hard-coded library search path?
12001 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12003 # How to hardcode a shared library path into an executable.
12004 hardcode_action=$hardcode_action_RC
12006 # Whether we should hardcode library paths into libraries.
12007 hardcode_into_libs=$hardcode_into_libs
12009 # Flag to hardcode \$libdir into a binary during linking.
12010 # This must work even if \$libdir does not exist.
12011 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
12013 # If ld is used when linking, flag to hardcode \$libdir into
12014 # a binary during linking. This must work even if \$libdir does
12016 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
12018 # Whether we need a single -rpath flag with a separated argument.
12019 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
12021 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12022 # resulting binary.
12023 hardcode_direct=$hardcode_direct_RC
12025 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12026 # resulting binary.
12027 hardcode_minus_L=$hardcode_minus_L_RC
12029 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12030 # the resulting binary.
12031 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
12033 # Set to yes if building a shared library automatically hardcodes DIR into the library
12034 # and all subsequent libraries and executables linked against it.
12035 hardcode_automatic=$hardcode_automatic_RC
12037 # Variables whose values should be saved in libtool wrapper scripts and
12038 # restored at relink time.
12039 variables_saved_for_relink="$variables_saved_for_relink"
12041 # Whether libtool must link a program against all its dependency libraries.
12042 link_all_deplibs=$link_all_deplibs_RC
12044 # Compile-time system search path for libraries
12045 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12047 # Run-time system search path for libraries
12048 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12050 # Fix the shell variable \$srcfile for the compiler.
12051 fix_srcfile_path="$fix_srcfile_path_RC"
12053 # Set to yes if exported symbols are required.
12054 always_export_symbols=$always_export_symbols_RC
12056 # The commands to list exported symbols.
12057 export_symbols_cmds=$lt_export_symbols_cmds_RC
12059 # The commands to extract the exported symbol list from a shared archive.
12060 extract_expsyms_cmds=$lt_extract_expsyms_cmds
12062 # Symbols that should not be listed in the preloaded symbols.
12063 exclude_expsyms=$lt_exclude_expsyms_RC
12065 # Symbols that must always be exported.
12066 include_expsyms=$lt_include_expsyms_RC
12068 # ### END LIBTOOL TAG CONFIG: $tagname
12074 # If there is no Makefile yet, we rely on a make rule to execute
12075 # `config.status --recheck' to rerun these tests and create the
12076 # libtool script then.
12077 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
12078 if test -f "$ltmain_in"; then
12079 test -f Makefile && make "$ltmain"
12085 ac_cpp='$CPP $CPPFLAGS'
12086 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12087 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12088 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12095 as_fn_error $? "Unsupported tag name: $tagname" "$LINENO" 5
12099 # Append the new tag name to the list of available tags.
12100 if test -n "$tagname" ; then
12101 available_tags="$available_tags $tagname"
12107 # Now substitute the updated list of available tags.
12108 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
12109 mv "${ofile}T" "$ofile"
12113 as_fn_error $? "unable to update list of available tagged configurations." "$LINENO" 5
12119 # This can be used to rebuild libtool when needed
12120 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
12122 # Always use our own libtool.
12123 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
12125 # Prevent multiple expansion
12137 if test $ol_enable_perl != no ; then
12138 # Extract the first word of "perl", so it can be a program name with args.
12139 set dummy perl; ac_word=$2
12140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12141 $as_echo_n "checking for $ac_word... " >&6; }
12142 if ${ac_cv_path_PERLBIN+:} false; then :
12143 $as_echo_n "(cached) " >&6
12147 ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a path.
12150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12151 for as_dir in $PATH
12154 test -z "$as_dir" && as_dir=.
12155 for ac_exec_ext in '' $ac_executable_extensions; do
12156 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12157 ac_cv_path_PERLBIN="$as_dir/$ac_word$ac_exec_ext"
12158 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12165 test -z "$ac_cv_path_PERLBIN" && ac_cv_path_PERLBIN="/usr/bin/perl"
12169 PERLBIN=$ac_cv_path_PERLBIN
12170 if test -n "$PERLBIN"; then
12171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERLBIN" >&5
12172 $as_echo "$PERLBIN" >&6; }
12174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12175 $as_echo "no" >&6; }
12180 if test "no$PERLBIN" = "no" ; then
12181 if test $ol_enable_perl = yes ; then
12182 as_fn_error $? "could not locate perl" "$LINENO" 5
12186 PERL_CPPFLAGS="`$PERLBIN -MExtUtils::Embed -e ccopts`"
12187 PERL_LDFLAGS="`$PERLBIN -MExtUtils::Embed -e ldopts|sed -e 's/ -lc / /' -e 's/ -lc$//'`"
12189 if test x"$ol_enable_perl" = "xyes" ; then
12190 SLAPD_PERL_LDFLAGS="$PERL_LDFLAGS"
12192 MOD_PERL_LDFLAGS="$PERL_LDFLAGS"
12199 ac_cpp='$CPP $CPPFLAGS'
12200 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12201 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12202 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
12204 $as_echo_n "checking how to run the C preprocessor... " >&6; }
12205 # On Suns, sometimes $CPP names a directory.
12206 if test -n "$CPP" && test -d "$CPP"; then
12209 if test -z "$CPP"; then
12210 if ${ac_cv_prog_CPP+:} false; then :
12211 $as_echo_n "(cached) " >&6
12213 # Double quotes because CPP needs to be expanded
12214 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
12216 ac_preproc_ok=false
12217 for ac_c_preproc_warn_flag in '' yes
12219 # Use a header file that comes with gcc, so configuring glibc
12220 # with a fresh cross-compiler works.
12221 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12222 # <limits.h> exists even on freestanding compilers.
12223 # On the NeXT, cc -E runs the code through the compiler's parser,
12224 # not just through cpp. "Syntax error" is here to catch this case.
12225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12226 /* end confdefs.h. */
12228 # include <limits.h>
12230 # include <assert.h>
12234 if ac_fn_c_try_cpp "$LINENO"; then :
12237 # Broken: fails on valid input.
12240 rm -f conftest.err conftest.i conftest.$ac_ext
12242 # OK, works on sane cases. Now check whether nonexistent headers
12243 # can be detected and how.
12244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12245 /* end confdefs.h. */
12246 #include <ac_nonexistent.h>
12248 if ac_fn_c_try_cpp "$LINENO"; then :
12249 # Broken: success on invalid input.
12252 # Passes both tests.
12256 rm -f conftest.err conftest.i conftest.$ac_ext
12259 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12260 rm -f conftest.i conftest.err conftest.$ac_ext
12261 if $ac_preproc_ok; then :
12266 ac_cv_prog_CPP=$CPP
12269 CPP=$ac_cv_prog_CPP
12271 ac_cv_prog_CPP=$CPP
12273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
12274 $as_echo "$CPP" >&6; }
12275 ac_preproc_ok=false
12276 for ac_c_preproc_warn_flag in '' yes
12278 # Use a header file that comes with gcc, so configuring glibc
12279 # with a fresh cross-compiler works.
12280 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12281 # <limits.h> exists even on freestanding compilers.
12282 # On the NeXT, cc -E runs the code through the compiler's parser,
12283 # not just through cpp. "Syntax error" is here to catch this case.
12284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12285 /* end confdefs.h. */
12287 # include <limits.h>
12289 # include <assert.h>
12293 if ac_fn_c_try_cpp "$LINENO"; then :
12296 # Broken: fails on valid input.
12299 rm -f conftest.err conftest.i conftest.$ac_ext
12301 # OK, works on sane cases. Now check whether nonexistent headers
12302 # can be detected and how.
12303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12304 /* end confdefs.h. */
12305 #include <ac_nonexistent.h>
12307 if ac_fn_c_try_cpp "$LINENO"; then :
12308 # Broken: success on invalid input.
12311 # Passes both tests.
12315 rm -f conftest.err conftest.i conftest.$ac_ext
12318 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12319 rm -f conftest.i conftest.err conftest.$ac_ext
12320 if $ac_preproc_ok; then :
12323 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12324 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12325 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
12326 See \`config.log' for more details" "$LINENO" 5; }
12330 ac_cpp='$CPP $CPPFLAGS'
12331 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12332 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12333 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using MS Visual C++" >&5
12336 $as_echo_n "checking whether we are using MS Visual C++... " >&6; }
12337 if ${ol_cv_msvc+:} false; then :
12338 $as_echo_n "(cached) " >&6
12340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12341 /* end confdefs.h. */
12344 #include <__FOO__/generate_error.h>
12348 if ac_fn_c_try_cpp "$LINENO"; then :
12353 rm -f conftest.err conftest.i conftest.$ac_ext
12355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_msvc" >&5
12356 $as_echo "$ol_cv_msvc" >&6; }
12359 *mingw32* ) ac_cv_mingw32=yes ;;
12360 *cygwin* ) ac_cv_cygwin=yes ;;
12361 *interix* ) ac_cv_interix=yes ;;
12367 cat >>confdefs.h <<_ACEOF
12368 #define EXEEXT "${EXEEXT}"
12372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for be_app in -lbe" >&5
12373 $as_echo_n "checking for be_app in -lbe... " >&6; }
12374 if ${ac_cv_lib_be_be_app+:} false; then :
12375 $as_echo_n "(cached) " >&6
12377 ac_check_lib_save_LIBS=$LIBS
12378 LIBS="-lbe -lroot -lnet $LIBS"
12379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12380 /* end confdefs.h. */
12382 /* Override any GCC internal prototype to avoid an error.
12383 Use char because int might match the return type of a GCC
12384 builtin and then its argument prototype would still apply. */
12397 if ac_fn_c_try_link "$LINENO"; then :
12398 ac_cv_lib_be_be_app=yes
12400 ac_cv_lib_be_be_app=no
12402 rm -f core conftest.err conftest.$ac_objext \
12403 conftest$ac_exeext conftest.$ac_ext
12404 LIBS=$ac_check_lib_save_LIBS
12406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_be_be_app" >&5
12407 $as_echo "$ac_cv_lib_be_be_app" >&6; }
12408 if test "x$ac_cv_lib_be_be_app" = xyes; then :
12409 LIBS="$LIBS -lbe -lroot -lnet"
12416 ac_cpp='$CPP $CPPFLAGS'
12417 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12418 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12419 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12420 if test -n "$ac_tool_prefix"; then
12421 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
12422 set dummy ${ac_tool_prefix}gcc; ac_word=$2
12423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12424 $as_echo_n "checking for $ac_word... " >&6; }
12425 if ${ac_cv_prog_CC+:} false; then :
12426 $as_echo_n "(cached) " >&6
12428 if test -n "$CC"; then
12429 ac_cv_prog_CC="$CC" # Let the user override the test.
12431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12432 for as_dir in $PATH
12435 test -z "$as_dir" && as_dir=.
12436 for ac_exec_ext in '' $ac_executable_extensions; do
12437 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12438 ac_cv_prog_CC="${ac_tool_prefix}gcc"
12439 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12449 if test -n "$CC"; then
12450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12451 $as_echo "$CC" >&6; }
12453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12454 $as_echo "no" >&6; }
12459 if test -z "$ac_cv_prog_CC"; then
12461 # Extract the first word of "gcc", so it can be a program name with args.
12462 set dummy gcc; ac_word=$2
12463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12464 $as_echo_n "checking for $ac_word... " >&6; }
12465 if ${ac_cv_prog_ac_ct_CC+:} false; then :
12466 $as_echo_n "(cached) " >&6
12468 if test -n "$ac_ct_CC"; then
12469 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12472 for as_dir in $PATH
12475 test -z "$as_dir" && as_dir=.
12476 for ac_exec_ext in '' $ac_executable_extensions; do
12477 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12478 ac_cv_prog_ac_ct_CC="gcc"
12479 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12488 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12489 if test -n "$ac_ct_CC"; then
12490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
12491 $as_echo "$ac_ct_CC" >&6; }
12493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12494 $as_echo "no" >&6; }
12497 if test "x$ac_ct_CC" = x; then
12500 case $cross_compiling:$ac_tool_warned in
12502 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12503 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12504 ac_tool_warned=yes ;;
12509 CC="$ac_cv_prog_CC"
12512 if test -z "$CC"; then
12513 if test -n "$ac_tool_prefix"; then
12514 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
12515 set dummy ${ac_tool_prefix}cc; ac_word=$2
12516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12517 $as_echo_n "checking for $ac_word... " >&6; }
12518 if ${ac_cv_prog_CC+:} false; then :
12519 $as_echo_n "(cached) " >&6
12521 if test -n "$CC"; then
12522 ac_cv_prog_CC="$CC" # Let the user override the test.
12524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12525 for as_dir in $PATH
12528 test -z "$as_dir" && as_dir=.
12529 for ac_exec_ext in '' $ac_executable_extensions; do
12530 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12531 ac_cv_prog_CC="${ac_tool_prefix}cc"
12532 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12542 if test -n "$CC"; then
12543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12544 $as_echo "$CC" >&6; }
12546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12547 $as_echo "no" >&6; }
12553 if test -z "$CC"; then
12554 # Extract the first word of "cc", so it can be a program name with args.
12555 set dummy cc; ac_word=$2
12556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12557 $as_echo_n "checking for $ac_word... " >&6; }
12558 if ${ac_cv_prog_CC+:} false; then :
12559 $as_echo_n "(cached) " >&6
12561 if test -n "$CC"; then
12562 ac_cv_prog_CC="$CC" # Let the user override the test.
12564 ac_prog_rejected=no
12565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12566 for as_dir in $PATH
12569 test -z "$as_dir" && as_dir=.
12570 for ac_exec_ext in '' $ac_executable_extensions; do
12571 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12572 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
12573 ac_prog_rejected=yes
12577 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12584 if test $ac_prog_rejected = yes; then
12585 # We found a bogon in the path, so make sure we never use it.
12586 set dummy $ac_cv_prog_CC
12588 if test $# != 0; then
12589 # We chose a different compiler from the bogus one.
12590 # However, it has the same basename, so the bogon will be chosen
12591 # first if we set CC to just the basename; use the full file name.
12593 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
12599 if test -n "$CC"; then
12600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12601 $as_echo "$CC" >&6; }
12603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12604 $as_echo "no" >&6; }
12609 if test -z "$CC"; then
12610 if test -n "$ac_tool_prefix"; then
12611 for ac_prog in cl.exe
12613 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12614 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12616 $as_echo_n "checking for $ac_word... " >&6; }
12617 if ${ac_cv_prog_CC+:} false; then :
12618 $as_echo_n "(cached) " >&6
12620 if test -n "$CC"; then
12621 ac_cv_prog_CC="$CC" # Let the user override the test.
12623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12624 for as_dir in $PATH
12627 test -z "$as_dir" && as_dir=.
12628 for ac_exec_ext in '' $ac_executable_extensions; do
12629 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12630 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
12631 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12641 if test -n "$CC"; then
12642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12643 $as_echo "$CC" >&6; }
12645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12646 $as_echo "no" >&6; }
12650 test -n "$CC" && break
12653 if test -z "$CC"; then
12655 for ac_prog in cl.exe
12657 # Extract the first word of "$ac_prog", so it can be a program name with args.
12658 set dummy $ac_prog; ac_word=$2
12659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12660 $as_echo_n "checking for $ac_word... " >&6; }
12661 if ${ac_cv_prog_ac_ct_CC+:} false; then :
12662 $as_echo_n "(cached) " >&6
12664 if test -n "$ac_ct_CC"; then
12665 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12668 for as_dir in $PATH
12671 test -z "$as_dir" && as_dir=.
12672 for ac_exec_ext in '' $ac_executable_extensions; do
12673 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12674 ac_cv_prog_ac_ct_CC="$ac_prog"
12675 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12684 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12685 if test -n "$ac_ct_CC"; then
12686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
12687 $as_echo "$ac_ct_CC" >&6; }
12689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12690 $as_echo "no" >&6; }
12694 test -n "$ac_ct_CC" && break
12697 if test "x$ac_ct_CC" = x; then
12700 case $cross_compiling:$ac_tool_warned in
12702 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12703 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12704 ac_tool_warned=yes ;;
12713 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12714 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12715 as_fn_error $? "no acceptable C compiler found in \$PATH
12716 See \`config.log' for more details" "$LINENO" 5; }
12718 # Provide some information about the compiler.
12719 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
12722 for ac_option in --version -v -V -qversion; do
12723 { { ac_try="$ac_compiler $ac_option >&5"
12724 case "(($ac_try" in
12725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12726 *) ac_try_echo=$ac_try;;
12728 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12729 $as_echo "$ac_try_echo"; } >&5
12730 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
12732 if test -s conftest.err; then
12734 ... rest of stderr output deleted ...
12735 10q' conftest.err >conftest.er1
12736 cat conftest.er1 >&5
12738 rm -f conftest.er1 conftest.err
12739 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12740 test $ac_status = 0; }
12743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
12744 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
12745 if ${ac_cv_c_compiler_gnu+:} false; then :
12746 $as_echo_n "(cached) " >&6
12748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12749 /* end confdefs.h. */
12762 if ac_fn_c_try_compile "$LINENO"; then :
12763 ac_compiler_gnu=yes
12767 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12768 ac_cv_c_compiler_gnu=$ac_compiler_gnu
12771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
12772 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
12773 if test $ac_compiler_gnu = yes; then
12778 ac_test_CFLAGS=${CFLAGS+set}
12779 ac_save_CFLAGS=$CFLAGS
12780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
12781 $as_echo_n "checking whether $CC accepts -g... " >&6; }
12782 if ${ac_cv_prog_cc_g+:} false; then :
12783 $as_echo_n "(cached) " >&6
12785 ac_save_c_werror_flag=$ac_c_werror_flag
12786 ac_c_werror_flag=yes
12789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12790 /* end confdefs.h. */
12800 if ac_fn_c_try_compile "$LINENO"; then :
12801 ac_cv_prog_cc_g=yes
12804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12805 /* end confdefs.h. */
12815 if ac_fn_c_try_compile "$LINENO"; then :
12818 ac_c_werror_flag=$ac_save_c_werror_flag
12820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12821 /* end confdefs.h. */
12831 if ac_fn_c_try_compile "$LINENO"; then :
12832 ac_cv_prog_cc_g=yes
12834 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12836 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12838 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12839 ac_c_werror_flag=$ac_save_c_werror_flag
12841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
12842 $as_echo "$ac_cv_prog_cc_g" >&6; }
12843 if test "$ac_test_CFLAGS" = set; then
12844 CFLAGS=$ac_save_CFLAGS
12845 elif test $ac_cv_prog_cc_g = yes; then
12846 if test "$GCC" = yes; then
12852 if test "$GCC" = yes; then
12858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
12859 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
12860 if ${ac_cv_prog_cc_c89+:} false; then :
12861 $as_echo_n "(cached) " >&6
12863 ac_cv_prog_cc_c89=no
12865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12866 /* end confdefs.h. */
12867 #include <stdarg.h>
12870 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
12871 struct buf { int x; };
12872 FILE * (*rcsopen) (struct buf *, struct stat *, int);
12873 static char *e (p, i)
12879 static char *f (char * (*g) (char **, int), char **p, ...)
12884 s = g (p, va_arg (v,int));
12889 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
12890 function prototypes and stuff, but not '\xHH' hex character constants.
12891 These don't provoke an error unfortunately, instead are silently treated
12892 as 'x'. The following induces an error, until -std is added to get
12893 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
12894 array size at least. It's necessary to write '\x00'==0 to get something
12895 that's true only with -std. */
12896 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
12898 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
12899 inside strings and character constants. */
12901 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
12903 int test (int i, double x);
12904 struct s1 {int (*f) (int a);};
12905 struct s2 {int (*f) (double a);};
12906 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
12912 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
12917 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
12918 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
12920 CC="$ac_save_CC $ac_arg"
12921 if ac_fn_c_try_compile "$LINENO"; then :
12922 ac_cv_prog_cc_c89=$ac_arg
12924 rm -f core conftest.err conftest.$ac_objext
12925 test "x$ac_cv_prog_cc_c89" != "xno" && break
12927 rm -f conftest.$ac_ext
12932 case "x$ac_cv_prog_cc_c89" in
12934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
12935 $as_echo "none needed" >&6; } ;;
12937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
12938 $as_echo "unsupported" >&6; } ;;
12940 CC="$CC $ac_cv_prog_cc_c89"
12941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
12942 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
12944 if test "x$ac_cv_prog_cc_c89" != xno; then :
12949 ac_cpp='$CPP $CPPFLAGS'
12950 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12951 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12952 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12954 depcc="$CC" am_compiler_list=
12956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
12957 $as_echo_n "checking dependency style of $depcc... " >&6; }
12958 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
12959 $as_echo_n "(cached) " >&6
12961 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
12962 # We make a subdir and do the tests there. Otherwise we can end up
12963 # making bogus files that we don't know about and never remove. For
12964 # instance it was reported that on HP-UX the gcc test will end up
12965 # making a dummy file named `D' -- because `-MD' means `put the output
12968 # Copy depcomp to subdir because otherwise we won't find it if we're
12969 # using a relative directory.
12970 cp "$am_depcomp" conftest.dir
12972 # We will build objects and dependencies in a subdirectory because
12973 # it helps to detect inapplicable dependency modes. For instance
12974 # both Tru64's cc and ICC support -MD to output dependencies as a
12975 # side effect of compilation, but ICC will put the dependencies in
12976 # the current directory while Tru64 will put them in the object
12980 am_cv_CC_dependencies_compiler_type=none
12981 if test "$am_compiler_list" = ""; then
12982 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
12984 for depmode in $am_compiler_list; do
12985 # Setup a source with many dependencies, because some compilers
12986 # like to wrap large dependency lists on column 80 (with \), and
12987 # we should not choose a depcomp mode which is confused by this.
12989 # We need to recreate these files for each test, as the compiler may
12990 # overwrite some of them when testing with obscure command lines.
12991 # This happens at least with the AIX C compiler.
12993 for i in 1 2 3 4 5 6; do
12994 echo '#include "conftst'$i'.h"' >> sub/conftest.c
12995 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
12996 # Solaris 8's {/usr,}/bin/sh.
12997 touch sub/conftst$i.h
12999 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
13003 # after this tag, mechanisms are not by side-effect, so they'll
13004 # only be used when explicitly requested
13005 if test "x$enable_dependency_tracking" = xyes; then
13013 # We check with `-c' and `-o' for the sake of the "dashmstdout"
13014 # mode. It turns out that the SunPro C++ compiler does not properly
13015 # handle `-M -o', and we need to detect this.
13016 if depmode=$depmode \
13017 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
13018 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
13019 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
13020 >/dev/null 2>conftest.err &&
13021 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
13022 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
13023 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
13024 # icc doesn't choke on unknown options, it will just issue warnings
13025 # or remarks (even with -Werror). So we grep stderr for any message
13026 # that says an option was ignored or not supported.
13027 # When given -MP, icc 7.0 and 7.1 complain thusly:
13028 # icc: Command line warning: ignoring option '-M'; no argument required
13029 # The diagnosis changed in icc 8.0:
13030 # icc: Command line remark: option '-MP' not supported
13031 if (grep 'ignoring option' conftest.err ||
13032 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
13033 am_cv_CC_dependencies_compiler_type=$depmode
13040 rm -rf conftest.dir
13042 am_cv_CC_dependencies_compiler_type=none
13046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
13047 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
13048 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
13053 test "x$enable_dependency_tracking" != xno \
13054 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
13055 am__fastdepCC_TRUE=
13056 am__fastdepCC_FALSE='#'
13058 am__fastdepCC_TRUE='#'
13059 am__fastdepCC_FALSE=
13063 if test "X${ac_cv_prog_cc_stdc}" = "Xno" ; then
13064 as_fn_error $? "OpenLDAP requires compiler to support STDC constructs." "$LINENO" 5
13067 # test for make depend flag
13070 if test -z "${MKDEP}"; then
13071 OL_MKDEP="${CC-cc}"
13072 if test -z "${MKDEP_FLAGS}"; then
13073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${OL_MKDEP} depend flag" >&5
13074 $as_echo_n "checking for ${OL_MKDEP} depend flag... " >&6; }
13075 if ${ol_cv_mkdep+:} false; then :
13076 $as_echo_n "(cached) " >&6
13080 for flag in "-M" "-xM"; do
13081 cat > conftest.c <<EOF
13084 if { ac_try='$OL_MKDEP $flag conftest.c'
13085 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13086 (eval $ac_try) 2>&5
13088 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13089 test $ac_status = 0; }; } \
13090 | grep '^conftest\.'"${ac_objext}" >/dev/null 2>&1
13092 if test ! -f conftest."${ac_object}" ; then
13094 OL_MKDEP_FLAGS="$flag"
13102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_mkdep" >&5
13103 $as_echo "$ol_cv_mkdep" >&6; }
13104 test "$ol_cv_mkdep" = no && OL_MKDEP=":"
13107 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
13111 OL_MKDEP="${MKDEP}"
13112 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
13117 if test "${ol_cv_mkdep}" = no ; then
13118 # this will soon become an error
13119 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: do not know how to generate dependencies" >&5
13120 $as_echo "$as_me: WARNING: do not know how to generate dependencies" >&2;}
13123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for afopen in -ls" >&5
13124 $as_echo_n "checking for afopen in -ls... " >&6; }
13125 if ${ac_cv_lib_s_afopen+:} false; then :
13126 $as_echo_n "(cached) " >&6
13128 ac_check_lib_save_LIBS=$LIBS
13130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13131 /* end confdefs.h. */
13133 /* Override any GCC internal prototype to avoid an error.
13134 Use char because int might match the return type of a GCC
13135 builtin and then its argument prototype would still apply. */
13148 if ac_fn_c_try_link "$LINENO"; then :
13149 ac_cv_lib_s_afopen=yes
13151 ac_cv_lib_s_afopen=no
13153 rm -f core conftest.err conftest.$ac_objext \
13154 conftest$ac_exeext conftest.$ac_ext
13155 LIBS=$ac_check_lib_save_LIBS
13157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_s_afopen" >&5
13158 $as_echo "$ac_cv_lib_s_afopen" >&6; }
13159 if test "x$ac_cv_lib_s_afopen" = xyes; then :
13163 $as_echo "#define HAVE_AIX_SECURITY 1" >>confdefs.h
13171 ac_cv_func_getopt=no
13173 $as_echo "#define BOTH_STRINGS_H 1" >>confdefs.h
13179 WITH_MODULES_ENABLED=no
13180 if test $ol_enable_modules != no ; then
13181 for ac_header in ltdl.h
13183 ac_fn_c_check_header_mongrel "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default"
13184 if test "x$ac_cv_header_ltdl_h" = xyes; then :
13185 cat >>confdefs.h <<_ACEOF
13186 #define HAVE_LTDL_H 1
13194 if test $ac_cv_header_ltdl_h = no ; then
13195 as_fn_error $? "could not locate libtool ltdl.h" "$LINENO" 5
13198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lt_dlinit in -lltdl" >&5
13199 $as_echo_n "checking for lt_dlinit in -lltdl... " >&6; }
13200 if ${ac_cv_lib_ltdl_lt_dlinit+:} false; then :
13201 $as_echo_n "(cached) " >&6
13203 ac_check_lib_save_LIBS=$LIBS
13204 LIBS="-lltdl $LIBS"
13205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13206 /* end confdefs.h. */
13208 /* Override any GCC internal prototype to avoid an error.
13209 Use char because int might match the return type of a GCC
13210 builtin and then its argument prototype would still apply. */
13218 return lt_dlinit ();
13223 if ac_fn_c_try_link "$LINENO"; then :
13224 ac_cv_lib_ltdl_lt_dlinit=yes
13226 ac_cv_lib_ltdl_lt_dlinit=no
13228 rm -f core conftest.err conftest.$ac_objext \
13229 conftest$ac_exeext conftest.$ac_ext
13230 LIBS=$ac_check_lib_save_LIBS
13232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
13233 $as_echo "$ac_cv_lib_ltdl_lt_dlinit" >&6; }
13234 if test "x$ac_cv_lib_ltdl_lt_dlinit" = xyes; then :
13236 MODULES_LIBS=-lltdl
13238 $as_echo "#define HAVE_LIBLTDL 1" >>confdefs.h
13244 if test "$ac_cv_lib_ltdl_lt_dlinit" = no ; then
13245 as_fn_error $? "could not locate libtool -lltdl" "$LINENO" 5
13247 ol_link_modules=yes
13248 WITH_MODULES_ENABLED=yes
13251 for i in $Backends; do
13252 eval "ol_tmp=\$ol_enable_$i"
13253 if test $ol_tmp = mod ; then
13254 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: building static $i backend" >&5
13255 $as_echo "$as_me: WARNING: building static $i backend" >&2;}
13256 eval "ol_enable_$i=yes"
13259 for i in $Overlays; do
13260 eval "ol_tmp=\$ol_enable_$i"
13261 if test $ol_tmp = mod ; then
13262 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: building static $i overlay" >&5
13263 $as_echo "$as_me: WARNING: building static $i overlay" >&2;}
13264 eval "ol_enable_$i=yes"
13270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EBCDIC" >&5
13271 $as_echo_n "checking for EBCDIC... " >&6; }
13272 if ${ol_cv_cpp_ebcdic+:} false; then :
13273 $as_echo_n "(cached) " >&6
13276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13277 /* end confdefs.h. */
13280 #include <__ASCII__/generate_error.h>
13284 if ac_fn_c_try_cpp "$LINENO"; then :
13285 ol_cv_cpp_ebcdic=yes
13287 ol_cv_cpp_ebcdic=no
13289 rm -f conftest.err conftest.i conftest.$ac_ext
13291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_cpp_ebcdic" >&5
13292 $as_echo "$ol_cv_cpp_ebcdic" >&6; }
13293 if test $ol_cv_cpp_ebcdic = yes ; then
13295 $as_echo "#define HAVE_EBCDIC 1" >>confdefs.h
13299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
13300 $as_echo_n "checking for ANSI C header files... " >&6; }
13301 if ${ol_cv_header_stdc+:} false; then :
13302 $as_echo_n "(cached) " >&6
13304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13305 /* end confdefs.h. */
13306 #include <stdlib.h>
13307 #include <stdarg.h>
13308 #include <string.h>
13311 if ac_fn_c_try_cpp "$LINENO"; then :
13312 ol_cv_header_stdc=yes
13314 ol_cv_header_stdc=no
13316 rm -f conftest.err conftest.i conftest.$ac_ext
13318 if test $ol_cv_header_stdc = yes; then
13319 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13321 /* end confdefs.h. */
13322 #include <string.h>
13325 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13326 $EGREP "memchr" >/dev/null 2>&1; then :
13329 ol_cv_header_stdc=no
13335 if test $ol_cv_header_stdc = yes; then
13336 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13338 /* end confdefs.h. */
13339 #include <stdlib.h>
13342 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13343 $EGREP "free" >/dev/null 2>&1; then :
13346 ol_cv_header_stdc=no
13352 if test $ol_cv_header_stdc = yes; then
13353 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13354 if test "$cross_compiling" = yes; then :
13357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13358 /* end confdefs.h. */
13360 #ifndef HAVE_EBCDIC
13361 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13362 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13364 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
13365 || ('j' <= (c) && (c) <= 'r') \
13366 || ('s' <= (c) && (c) <= 'z'))
13367 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
13369 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13370 int main () { int i; for (i = 0; i < 256; i++)
13371 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
13375 if ac_fn_c_try_run "$LINENO"; then :
13378 ol_cv_header_stdc=no
13380 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13381 conftest.$ac_objext conftest.beam conftest.$ac_ext
13386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_header_stdc" >&5
13387 $as_echo "$ol_cv_header_stdc" >&6; }
13388 if test $ol_cv_header_stdc = yes; then
13389 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
13392 ac_cv_header_stdc=disable
13395 if test $ol_cv_header_stdc != yes; then
13396 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not locate Standard C compliant headers" >&5
13397 $as_echo "$as_me: WARNING: could not locate Standard C compliant headers" >&2;}
13400 ac_header_dirent=no
13401 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
13402 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
13403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
13404 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
13405 if eval \${$as_ac_Header+:} false; then :
13406 $as_echo_n "(cached) " >&6
13408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13409 /* end confdefs.h. */
13410 #include <sys/types.h>
13422 if ac_fn_c_try_compile "$LINENO"; then :
13423 eval "$as_ac_Header=yes"
13425 eval "$as_ac_Header=no"
13427 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13429 eval ac_res=\$$as_ac_Header
13430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13431 $as_echo "$ac_res" >&6; }
13432 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13433 cat >>confdefs.h <<_ACEOF
13434 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
13437 ac_header_dirent=$ac_hdr; break
13441 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
13442 if test $ac_header_dirent = dirent.h; then
13443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
13444 $as_echo_n "checking for library containing opendir... " >&6; }
13445 if ${ac_cv_search_opendir+:} false; then :
13446 $as_echo_n "(cached) " >&6
13448 ac_func_search_save_LIBS=$LIBS
13449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13450 /* end confdefs.h. */
13452 /* Override any GCC internal prototype to avoid an error.
13453 Use char because int might match the return type of a GCC
13454 builtin and then its argument prototype would still apply. */
13467 for ac_lib in '' dir; do
13468 if test -z "$ac_lib"; then
13469 ac_res="none required"
13472 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13474 if ac_fn_c_try_link "$LINENO"; then :
13475 ac_cv_search_opendir=$ac_res
13477 rm -f core conftest.err conftest.$ac_objext \
13479 if ${ac_cv_search_opendir+:} false; then :
13483 if ${ac_cv_search_opendir+:} false; then :
13486 ac_cv_search_opendir=no
13488 rm conftest.$ac_ext
13489 LIBS=$ac_func_search_save_LIBS
13491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
13492 $as_echo "$ac_cv_search_opendir" >&6; }
13493 ac_res=$ac_cv_search_opendir
13494 if test "$ac_res" != no; then :
13495 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
13501 $as_echo_n "checking for library containing opendir... " >&6; }
13502 if ${ac_cv_search_opendir+:} false; then :
13503 $as_echo_n "(cached) " >&6
13505 ac_func_search_save_LIBS=$LIBS
13506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13507 /* end confdefs.h. */
13509 /* Override any GCC internal prototype to avoid an error.
13510 Use char because int might match the return type of a GCC
13511 builtin and then its argument prototype would still apply. */
13524 for ac_lib in '' x; do
13525 if test -z "$ac_lib"; then
13526 ac_res="none required"
13529 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13531 if ac_fn_c_try_link "$LINENO"; then :
13532 ac_cv_search_opendir=$ac_res
13534 rm -f core conftest.err conftest.$ac_objext \
13536 if ${ac_cv_search_opendir+:} false; then :
13540 if ${ac_cv_search_opendir+:} false; then :
13543 ac_cv_search_opendir=no
13545 rm conftest.$ac_ext
13546 LIBS=$ac_func_search_save_LIBS
13548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
13549 $as_echo "$ac_cv_search_opendir" >&6; }
13550 ac_res=$ac_cv_search_opendir
13551 if test "$ac_res" != no; then :
13552 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
13559 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
13560 if ${ac_cv_header_sys_wait_h+:} false; then :
13561 $as_echo_n "(cached) " >&6
13563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13564 /* end confdefs.h. */
13565 #include <sys/types.h>
13566 #include <sys/wait.h>
13567 #ifndef WEXITSTATUS
13568 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
13571 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
13579 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
13584 if ac_fn_c_try_compile "$LINENO"; then :
13585 ac_cv_header_sys_wait_h=yes
13587 ac_cv_header_sys_wait_h=no
13589 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
13592 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
13593 if test $ac_cv_header_sys_wait_h = yes; then
13595 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
13599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether termios.h defines TIOCGWINSZ" >&5
13600 $as_echo_n "checking whether termios.h defines TIOCGWINSZ... " >&6; }
13601 if ${ac_cv_sys_tiocgwinsz_in_termios_h+:} false; then :
13602 $as_echo_n "(cached) " >&6
13604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13605 /* end confdefs.h. */
13606 #include <sys/types.h>
13607 #include <termios.h>
13613 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13614 $EGREP "yes" >/dev/null 2>&1; then :
13615 ac_cv_sys_tiocgwinsz_in_termios_h=yes
13617 ac_cv_sys_tiocgwinsz_in_termios_h=no
13622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
13623 $as_echo "$ac_cv_sys_tiocgwinsz_in_termios_h" >&6; }
13625 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
13626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
13627 $as_echo_n "checking whether sys/ioctl.h defines TIOCGWINSZ... " >&6; }
13628 if ${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+:} false; then :
13629 $as_echo_n "(cached) " >&6
13631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13632 /* end confdefs.h. */
13633 #include <sys/types.h>
13634 #include <sys/ioctl.h>
13640 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13641 $EGREP "yes" >/dev/null 2>&1; then :
13642 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes
13644 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no
13649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
13650 $as_echo "$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6; }
13652 if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
13654 $as_echo "#define GWINSZ_IN_SYS_IOCTL 1" >>confdefs.h
13710 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13711 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13712 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13713 cat >>confdefs.h <<_ACEOF
13714 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13722 if test "$ac_cv_mingw32" = yes \
13723 -o "$ac_cv_interix" = yes \
13724 -o "$ol_cv_msvc" = yes
13726 for ac_header in winsock.h winsock2.h
13728 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13729 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13730 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13731 cat >>confdefs.h <<_ACEOF
13732 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13741 for ac_header in resolv.h
13743 ac_fn_c_check_header_compile "$LINENO" "resolv.h" "ac_cv_header_resolv_h" "$ac_includes_default
13744 #include <netinet/in.h>
13747 if test "x$ac_cv_header_resolv_h" = xyes; then :
13748 cat >>confdefs.h <<_ACEOF
13749 #define HAVE_RESOLV_H 1
13757 for ac_header in netinet/tcp.h
13759 ac_fn_c_check_header_compile "$LINENO" "netinet/tcp.h" "ac_cv_header_netinet_tcp_h" "$ac_includes_default
13760 #include <netinet/in.h>
13763 if test "x$ac_cv_header_netinet_tcp_h" = xyes; then :
13764 cat >>confdefs.h <<_ACEOF
13765 #define HAVE_NETINET_TCP_H 1
13773 for ac_header in sys/ucred.h
13775 ac_fn_c_check_header_compile "$LINENO" "sys/ucred.h" "ac_cv_header_sys_ucred_h" "$ac_includes_default
13776 #ifdef HAVE_SYS_PARAM_H
13777 #include <sys/param.h>
13781 if test "x$ac_cv_header_sys_ucred_h" = xyes; then :
13782 cat >>confdefs.h <<_ACEOF
13783 #define HAVE_SYS_UCRED_H 1
13792 for ac_func in sigaction sigset
13794 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13795 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13796 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13797 cat >>confdefs.h <<_ACEOF
13798 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13805 if test $ac_cv_func_sigaction = no && test $ac_cv_func_sigaction = no ; then
13806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigset in -lV3" >&5
13807 $as_echo_n "checking for sigset in -lV3... " >&6; }
13808 if ${ac_cv_lib_V3_sigset+:} false; then :
13809 $as_echo_n "(cached) " >&6
13811 ac_check_lib_save_LIBS=$LIBS
13813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13814 /* end confdefs.h. */
13816 /* Override any GCC internal prototype to avoid an error.
13817 Use char because int might match the return type of a GCC
13818 builtin and then its argument prototype would still apply. */
13831 if ac_fn_c_try_link "$LINENO"; then :
13832 ac_cv_lib_V3_sigset=yes
13834 ac_cv_lib_V3_sigset=no
13836 rm -f core conftest.err conftest.$ac_objext \
13837 conftest$ac_exeext conftest.$ac_ext
13838 LIBS=$ac_check_lib_save_LIBS
13840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_V3_sigset" >&5
13841 $as_echo "$ac_cv_lib_V3_sigset" >&6; }
13842 if test "x$ac_cv_lib_V3_sigset" = xyes; then :
13843 cat >>confdefs.h <<_ACEOF
13844 #define HAVE_LIBV3 1
13853 if test $ol_cv_msvc = yes ; then
13857 if test "$ac_cv_header_winsock_h" = yes; then
13858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winsock" >&5
13859 $as_echo_n "checking for winsock... " >&6; }
13860 if ${ol_cv_winsock+:} false; then :
13861 $as_echo_n "(cached) " >&6
13865 for curlib in none ws2_32 wsock32; do
13866 if test $curlib != none ; then
13867 LIBS="$save_LIBS -l$curlib"
13869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13870 /* end confdefs.h. */
13871 #include <winsock.h>
13878 select(0,NULL,NULL,NULL,NULL);
13880 gethostname(NULL,0);
13886 if ac_fn_c_try_link "$LINENO"; then :
13887 ol_cv_winsock=$curlib
13891 rm -f core conftest.err conftest.$ac_objext \
13892 conftest$ac_exeext conftest.$ac_ext
13894 test "$ol_cv_winsock" != no && break
13899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_winsock" >&5
13900 $as_echo "$ol_cv_winsock" >&6; }
13902 if test $ol_cv_winsock != no ; then
13904 $as_echo "#define HAVE_WINSOCK 1" >>confdefs.h
13906 ac_cv_func_socket=yes
13907 ac_cv_func_select=yes
13908 ac_cv_func_closesocket=yes
13909 ac_cv_func_gethostname=yes
13911 if test $ol_cv_winsock != none -a $ol_cv_winsock != yes ; then
13912 LIBS="$LIBS -l$ol_cv_winsock"
13915 if test $ol_cv_winsock = ws2_32 -o $ol_cv_winsock = yes ; then
13917 $as_echo "#define HAVE_WINSOCK2 1" >>confdefs.h
13924 ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
13925 if test "x$ac_cv_func_socket" = xyes; then :
13929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lsocket" >&5
13930 $as_echo_n "checking for main in -lsocket... " >&6; }
13931 if ${ac_cv_lib_socket_main+:} false; then :
13932 $as_echo_n "(cached) " >&6
13934 ac_check_lib_save_LIBS=$LIBS
13935 LIBS="-lsocket $LIBS"
13936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13937 /* end confdefs.h. */
13948 if ac_fn_c_try_link "$LINENO"; then :
13949 ac_cv_lib_socket_main=yes
13951 ac_cv_lib_socket_main=no
13953 rm -f core conftest.err conftest.$ac_objext \
13954 conftest$ac_exeext conftest.$ac_ext
13955 LIBS=$ac_check_lib_save_LIBS
13957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_main" >&5
13958 $as_echo "$ac_cv_lib_socket_main" >&6; }
13959 if test "x$ac_cv_lib_socket_main" = xyes; then :
13960 cat >>confdefs.h <<_ACEOF
13961 #define HAVE_LIBSOCKET 1
13964 LIBS="-lsocket $LIBS"
13968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lnet" >&5
13969 $as_echo_n "checking for socket in -lnet... " >&6; }
13970 if ${ac_cv_lib_net_socket+:} false; then :
13971 $as_echo_n "(cached) " >&6
13973 ac_check_lib_save_LIBS=$LIBS
13975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13976 /* end confdefs.h. */
13978 /* Override any GCC internal prototype to avoid an error.
13979 Use char because int might match the return type of a GCC
13980 builtin and then its argument prototype would still apply. */
13993 if ac_fn_c_try_link "$LINENO"; then :
13994 ac_cv_lib_net_socket=yes
13996 ac_cv_lib_net_socket=no
13998 rm -f core conftest.err conftest.$ac_objext \
13999 conftest$ac_exeext conftest.$ac_ext
14000 LIBS=$ac_check_lib_save_LIBS
14002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_net_socket" >&5
14003 $as_echo "$ac_cv_lib_net_socket" >&6; }
14004 if test "x$ac_cv_lib_net_socket" = xyes; then :
14005 cat >>confdefs.h <<_ACEOF
14006 #define HAVE_LIBNET 1
14013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lnsl_s" >&5
14014 $as_echo_n "checking for main in -lnsl_s... " >&6; }
14015 if ${ac_cv_lib_nsl_s_main+:} false; then :
14016 $as_echo_n "(cached) " >&6
14018 ac_check_lib_save_LIBS=$LIBS
14019 LIBS="-lnsl_s $LIBS"
14020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14021 /* end confdefs.h. */
14032 if ac_fn_c_try_link "$LINENO"; then :
14033 ac_cv_lib_nsl_s_main=yes
14035 ac_cv_lib_nsl_s_main=no
14037 rm -f core conftest.err conftest.$ac_objext \
14038 conftest$ac_exeext conftest.$ac_ext
14039 LIBS=$ac_check_lib_save_LIBS
14041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_s_main" >&5
14042 $as_echo "$ac_cv_lib_nsl_s_main" >&6; }
14043 if test "x$ac_cv_lib_nsl_s_main" = xyes; then :
14044 cat >>confdefs.h <<_ACEOF
14045 #define HAVE_LIBNSL_S 1
14048 LIBS="-lnsl_s $LIBS"
14052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lnsl" >&5
14053 $as_echo_n "checking for main in -lnsl... " >&6; }
14054 if ${ac_cv_lib_nsl_main+:} false; then :
14055 $as_echo_n "(cached) " >&6
14057 ac_check_lib_save_LIBS=$LIBS
14059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14060 /* end confdefs.h. */
14071 if ac_fn_c_try_link "$LINENO"; then :
14072 ac_cv_lib_nsl_main=yes
14074 ac_cv_lib_nsl_main=no
14076 rm -f core conftest.err conftest.$ac_objext \
14077 conftest$ac_exeext conftest.$ac_ext
14078 LIBS=$ac_check_lib_save_LIBS
14080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_main" >&5
14081 $as_echo "$ac_cv_lib_nsl_main" >&6; }
14082 if test "x$ac_cv_lib_nsl_main" = xyes; then :
14083 cat >>confdefs.h <<_ACEOF
14084 #define HAVE_LIBNSL 1
14091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -linet" >&5
14092 $as_echo_n "checking for socket in -linet... " >&6; }
14093 if ${ac_cv_lib_inet_socket+:} false; then :
14094 $as_echo_n "(cached) " >&6
14096 ac_check_lib_save_LIBS=$LIBS
14097 LIBS="-linet $LIBS"
14098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14099 /* end confdefs.h. */
14101 /* Override any GCC internal prototype to avoid an error.
14102 Use char because int might match the return type of a GCC
14103 builtin and then its argument prototype would still apply. */
14116 if ac_fn_c_try_link "$LINENO"; then :
14117 ac_cv_lib_inet_socket=yes
14119 ac_cv_lib_inet_socket=no
14121 rm -f core conftest.err conftest.$ac_objext \
14122 conftest$ac_exeext conftest.$ac_ext
14123 LIBS=$ac_check_lib_save_LIBS
14125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_inet_socket" >&5
14126 $as_echo "$ac_cv_lib_inet_socket" >&6; }
14127 if test "x$ac_cv_lib_inet_socket" = xyes; then :
14128 cat >>confdefs.h <<_ACEOF
14129 #define HAVE_LIBINET 1
14132 LIBS="-linet $LIBS"
14136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lgen" >&5
14137 $as_echo_n "checking for main in -lgen... " >&6; }
14138 if ${ac_cv_lib_gen_main+:} false; then :
14139 $as_echo_n "(cached) " >&6
14141 ac_check_lib_save_LIBS=$LIBS
14143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14144 /* end confdefs.h. */
14155 if ac_fn_c_try_link "$LINENO"; then :
14156 ac_cv_lib_gen_main=yes
14158 ac_cv_lib_gen_main=no
14160 rm -f core conftest.err conftest.$ac_objext \
14161 conftest$ac_exeext conftest.$ac_ext
14162 LIBS=$ac_check_lib_save_LIBS
14164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gen_main" >&5
14165 $as_echo "$ac_cv_lib_gen_main" >&6; }
14166 if test "x$ac_cv_lib_gen_main" = xyes; then :
14167 cat >>confdefs.h <<_ACEOF
14168 #define HAVE_LIBGEN 1
14179 ac_fn_c_check_func "$LINENO" "select" "ac_cv_func_select"
14180 if test "x$ac_cv_func_select" = xyes; then :
14183 as_fn_error $? "select() required." "$LINENO" 5
14187 if test "${ac_cv_header_winsock_h}" != yes; then
14188 for ac_header in sys/select.h sys/socket.h
14190 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14191 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14192 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
14193 cat >>confdefs.h <<_ACEOF
14194 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
14202 $as_echo_n "checking types of arguments for select... " >&6; }
14203 if ${ac_cv_func_select_args+:} false; then :
14204 $as_echo_n "(cached) " >&6
14206 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
14207 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
14208 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
14209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14210 /* end confdefs.h. */
14211 $ac_includes_default
14212 #ifdef HAVE_SYS_SELECT_H
14213 # include <sys/select.h>
14215 #ifdef HAVE_SYS_SOCKET_H
14216 # include <sys/socket.h>
14222 extern int select ($ac_arg1,
14223 $ac_arg234, $ac_arg234, $ac_arg234,
14229 if ac_fn_c_try_compile "$LINENO"; then :
14230 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
14232 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14236 # Provide a safe default value.
14237 : "${ac_cv_func_select_args=int,int *,struct timeval *}"
14240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
14241 $as_echo "$ac_cv_func_select_args" >&6; }
14242 ac_save_IFS=$IFS; IFS=','
14243 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
14247 cat >>confdefs.h <<_ACEOF
14248 #define SELECT_TYPE_ARG1 $1
14252 cat >>confdefs.h <<_ACEOF
14253 #define SELECT_TYPE_ARG234 ($2)
14257 cat >>confdefs.h <<_ACEOF
14258 #define SELECT_TYPE_ARG5 ($3)
14266 for ac_func in poll
14268 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14269 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14270 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14271 cat >>confdefs.h <<_ACEOF
14272 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14278 if test $ac_cv_func_poll = yes; then
14279 for ac_header in poll.h sys/poll.h
14281 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14282 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14283 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
14284 cat >>confdefs.h <<_ACEOF
14285 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14294 for ac_header in sys/epoll.h
14296 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14297 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14298 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
14299 cat >>confdefs.h <<_ACEOF
14300 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14307 if test "${ac_cv_header_sys_epoll_h}" = yes; then
14308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for epoll system call" >&5
14309 $as_echo_n "checking for epoll system call... " >&6; }
14310 if test "$cross_compiling" = yes; then :
14311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14312 $as_echo "no" >&6; }
14314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14315 /* end confdefs.h. */
14316 int main(int argc, char **argv)
14318 int epfd = epoll_create(256);
14319 exit (epfd == -1 ? 1 : 0);
14322 if ac_fn_c_try_run "$LINENO"; then :
14323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14324 $as_echo "yes" >&6; }
14326 $as_echo "#define HAVE_EPOLL 1" >>confdefs.h
14329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14330 $as_echo "no" >&6; }
14332 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14333 conftest.$ac_objext conftest.beam conftest.$ac_ext
14338 for ac_header in sys/devpoll.h
14340 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14341 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14342 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
14343 cat >>confdefs.h <<_ACEOF
14344 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14351 if test "${ac_cv_header_sys_devpoll_h}" = yes \
14352 -a "${ac_cv_header_poll_h}" = yes ; \
14354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/poll" >&5
14355 $as_echo_n "checking for /dev/poll... " >&6; }
14356 if test "$cross_compiling" = yes; then :
14357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14358 $as_echo "no" >&6; }
14360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14361 /* end confdefs.h. */
14362 int main(int argc, char **argv)
14364 int devpollfd = open("/dev/poll", /* O_RDWR */ 2);
14365 exit (devpollfd == -1 ? 1 : 0);
14368 if ac_fn_c_try_run "$LINENO"; then :
14369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14370 $as_echo "yes" >&6; }
14372 $as_echo "#define HAVE_DEVPOLL 1" >>confdefs.h
14375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14376 $as_echo "no" >&6; }
14378 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14379 conftest.$ac_objext conftest.beam conftest.$ac_ext
14384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking declaration of sys_errlist" >&5
14385 $as_echo_n "checking declaration of sys_errlist... " >&6; }
14386 if ${ol_cv_dcl_sys_errlist+:} false; then :
14387 $as_echo_n "(cached) " >&6
14390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14391 /* end confdefs.h. */
14394 #include <sys/types.h>
14397 #include <stdlib.h>
14402 char *c = (char *) *sys_errlist
14407 if ac_fn_c_try_compile "$LINENO"; then :
14408 ol_cv_dcl_sys_errlist=yes
14409 ol_cv_have_sys_errlist=yes
14411 ol_cv_dcl_sys_errlist=no
14413 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_dcl_sys_errlist" >&5
14416 $as_echo "$ol_cv_dcl_sys_errlist" >&6; }
14418 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
14419 if test $ol_cv_dcl_sys_errlist = no ; then
14421 $as_echo "#define DECL_SYS_ERRLIST 1" >>confdefs.h
14424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking existence of sys_errlist" >&5
14425 $as_echo_n "checking existence of sys_errlist... " >&6; }
14426 if ${ol_cv_have_sys_errlist+:} false; then :
14427 $as_echo_n "(cached) " >&6
14430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14431 /* end confdefs.h. */
14436 char *c = (char *) *sys_errlist
14441 if ac_fn_c_try_link "$LINENO"; then :
14442 ol_cv_have_sys_errlist=yes
14444 ol_cv_have_sys_errlist=no
14446 rm -f core conftest.err conftest.$ac_objext \
14447 conftest$ac_exeext conftest.$ac_ext
14449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_have_sys_errlist" >&5
14450 $as_echo "$ol_cv_have_sys_errlist" >&6; }
14452 if test $ol_cv_have_sys_errlist = yes ; then
14454 $as_echo "#define HAVE_SYS_ERRLIST 1" >>confdefs.h
14457 for ac_func in strerror strerror_r
14459 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14460 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14461 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14462 cat >>confdefs.h <<_ACEOF
14463 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14469 ol_cv_func_strerror_r=no
14470 if test "${ac_cv_func_strerror_r}" = yes ; then
14471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking non-posix strerror_r" >&5
14472 $as_echo_n "checking non-posix strerror_r... " >&6; }
14473 if ${ol_cv_nonposix_strerror_r+:} false; then :
14474 $as_echo_n "(cached) " >&6
14477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14478 /* end confdefs.h. */
14479 #include <string.h>
14481 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14482 $EGREP "strerror_r" >/dev/null 2>&1; then :
14483 ol_decl_strerror_r=yes
14485 ol_decl_strerror_r=no
14489 if test $ol_decl_strerror_r = yes ; then
14490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14491 /* end confdefs.h. */
14492 #include <string.h>
14496 /* from autoconf 2.59 */
14498 char x = *strerror_r (0, buf, sizeof buf);
14499 char *p = strerror_r (0, buf, sizeof buf);
14505 if ac_fn_c_try_compile "$LINENO"; then :
14506 ol_cv_nonposix_strerror_r=yes
14508 ol_cv_nonposix_strerror_r=no
14510 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14512 if test "$cross_compiling" = yes; then :
14513 ol_cv_nonposix_strerror=no
14515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14516 /* end confdefs.h. */
14521 strerror_r( 1, buf, sizeof buf );
14522 exit( buf[0] == 0 );
14526 if ac_fn_c_try_run "$LINENO"; then :
14527 ol_cv_nonposix_strerror_r=yes
14529 ol_cv_nonposix_strerror=no
14531 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14532 conftest.$ac_objext conftest.beam conftest.$ac_ext
14538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_nonposix_strerror_r" >&5
14539 $as_echo "$ol_cv_nonposix_strerror_r" >&6; }
14540 if test $ol_cv_nonposix_strerror_r = yes ; then
14542 $as_echo "#define HAVE_NONPOSIX_STRERROR_R 1" >>confdefs.h
14546 elif test "${ac_cv_func_strerror}" = no ; then
14547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking declaration of sys_errlist" >&5
14548 $as_echo_n "checking declaration of sys_errlist... " >&6; }
14549 if ${ol_cv_dcl_sys_errlist+:} false; then :
14550 $as_echo_n "(cached) " >&6
14553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14554 /* end confdefs.h. */
14557 #include <sys/types.h>
14560 #include <stdlib.h>
14565 char *c = (char *) *sys_errlist
14570 if ac_fn_c_try_compile "$LINENO"; then :
14571 ol_cv_dcl_sys_errlist=yes
14572 ol_cv_have_sys_errlist=yes
14574 ol_cv_dcl_sys_errlist=no
14576 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_dcl_sys_errlist" >&5
14579 $as_echo "$ol_cv_dcl_sys_errlist" >&6; }
14581 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
14582 if test $ol_cv_dcl_sys_errlist = no ; then
14584 $as_echo "#define DECL_SYS_ERRLIST 1" >>confdefs.h
14587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking existence of sys_errlist" >&5
14588 $as_echo_n "checking existence of sys_errlist... " >&6; }
14589 if ${ol_cv_have_sys_errlist+:} false; then :
14590 $as_echo_n "(cached) " >&6
14593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14594 /* end confdefs.h. */
14599 char *c = (char *) *sys_errlist
14604 if ac_fn_c_try_link "$LINENO"; then :
14605 ol_cv_have_sys_errlist=yes
14607 ol_cv_have_sys_errlist=no
14609 rm -f core conftest.err conftest.$ac_objext \
14610 conftest$ac_exeext conftest.$ac_ext
14612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_have_sys_errlist" >&5
14613 $as_echo "$ol_cv_have_sys_errlist" >&6; }
14615 if test $ol_cv_have_sys_errlist = yes ; then
14617 $as_echo "#define HAVE_SYS_ERRLIST 1" >>confdefs.h
14624 for ac_header in regex.h
14626 ac_fn_c_check_header_compile "$LINENO" "regex.h" "ac_cv_header_regex_h" "$ac_includes_default
14627 #ifdef HAVE_SYS_TYPES_H
14628 #include <sys/types.h>
14632 if test "x$ac_cv_header_regex_h" = xyes; then :
14633 cat >>confdefs.h <<_ACEOF
14634 #define HAVE_REGEX_H 1
14642 if test "$ac_cv_header_regex_h" != yes ; then
14643 as_fn_error $? "POSIX regex.h required." "$LINENO" 5
14645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing regfree" >&5
14646 $as_echo_n "checking for library containing regfree... " >&6; }
14647 if ${ac_cv_search_regfree+:} false; then :
14648 $as_echo_n "(cached) " >&6
14650 ac_func_search_save_LIBS=$LIBS
14651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14652 /* end confdefs.h. */
14654 /* Override any GCC internal prototype to avoid an error.
14655 Use char because int might match the return type of a GCC
14656 builtin and then its argument prototype would still apply. */
14669 for ac_lib in '' regex gnuregex; do
14670 if test -z "$ac_lib"; then
14671 ac_res="none required"
14674 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14676 if ac_fn_c_try_link "$LINENO"; then :
14677 ac_cv_search_regfree=$ac_res
14679 rm -f core conftest.err conftest.$ac_objext \
14681 if ${ac_cv_search_regfree+:} false; then :
14685 if ${ac_cv_search_regfree+:} false; then :
14688 ac_cv_search_regfree=no
14690 rm conftest.$ac_ext
14691 LIBS=$ac_func_search_save_LIBS
14693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_regfree" >&5
14694 $as_echo "$ac_cv_search_regfree" >&6; }
14695 ac_res=$ac_cv_search_regfree
14696 if test "$ac_res" != no; then :
14697 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14700 as_fn_error $? "POSIX regex required." "$LINENO" 5
14705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compatible POSIX regex" >&5
14706 $as_echo_n "checking for compatible POSIX regex... " >&6; }
14707 if ${ol_cv_c_posix_regex+:} false; then :
14708 $as_echo_n "(cached) " >&6
14711 if test "$cross_compiling" = yes; then :
14712 ol_cv_c_posix_regex=cross
14714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14715 /* end confdefs.h. */
14717 #include <sys/types.h>
14719 static char *pattern, *string;
14727 if(regcomp(&re, pattern, 0)) {
14731 string = "ALL MATCH";
14733 rc = regexec(&re, string, 0, (void*)0, 0);
14740 if ac_fn_c_try_run "$LINENO"; then :
14741 ol_cv_c_posix_regex=yes
14743 ol_cv_c_posix_regex=no
14745 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14746 conftest.$ac_objext conftest.beam conftest.$ac_ext
14750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_c_posix_regex" >&5
14751 $as_echo "$ol_cv_c_posix_regex" >&6; }
14753 if test "$ol_cv_c_posix_regex" = no ; then
14754 as_fn_error $? "broken POSIX regex!" "$LINENO" 5
14759 for ac_header in sys/uuid.h
14761 ac_fn_c_check_header_mongrel "$LINENO" "sys/uuid.h" "ac_cv_header_sys_uuid_h" "$ac_includes_default"
14762 if test "x$ac_cv_header_sys_uuid_h" = xyes; then :
14763 cat >>confdefs.h <<_ACEOF
14764 #define HAVE_SYS_UUID_H 1
14771 if test $ac_cv_header_sys_uuid_h = yes ; then
14773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing uuid_to_str" >&5
14774 $as_echo_n "checking for library containing uuid_to_str... " >&6; }
14775 if ${ac_cv_search_uuid_to_str+:} false; then :
14776 $as_echo_n "(cached) " >&6
14778 ac_func_search_save_LIBS=$LIBS
14779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14780 /* end confdefs.h. */
14782 /* Override any GCC internal prototype to avoid an error.
14783 Use char because int might match the return type of a GCC
14784 builtin and then its argument prototype would still apply. */
14788 char uuid_to_str ();
14792 return uuid_to_str ();
14797 for ac_lib in '' uuid; do
14798 if test -z "$ac_lib"; then
14799 ac_res="none required"
14802 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14804 if ac_fn_c_try_link "$LINENO"; then :
14805 ac_cv_search_uuid_to_str=$ac_res
14807 rm -f core conftest.err conftest.$ac_objext \
14809 if ${ac_cv_search_uuid_to_str+:} false; then :
14813 if ${ac_cv_search_uuid_to_str+:} false; then :
14816 ac_cv_search_uuid_to_str=no
14818 rm conftest.$ac_ext
14819 LIBS=$ac_func_search_save_LIBS
14821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_uuid_to_str" >&5
14822 $as_echo "$ac_cv_search_uuid_to_str" >&6; }
14823 ac_res=$ac_cv_search_uuid_to_str
14824 if test "$ac_res" != no; then :
14825 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing uuid_create" >&5
14832 $as_echo_n "checking for library containing uuid_create... " >&6; }
14833 if ${ac_cv_search_uuid_create+:} false; then :
14834 $as_echo_n "(cached) " >&6
14836 ac_func_search_save_LIBS=$LIBS
14837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14838 /* end confdefs.h. */
14840 /* Override any GCC internal prototype to avoid an error.
14841 Use char because int might match the return type of a GCC
14842 builtin and then its argument prototype would still apply. */
14846 char uuid_create ();
14850 return uuid_create ();
14855 for ac_lib in '' uuid; do
14856 if test -z "$ac_lib"; then
14857 ac_res="none required"
14860 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14862 if ac_fn_c_try_link "$LINENO"; then :
14863 ac_cv_search_uuid_create=$ac_res
14865 rm -f core conftest.err conftest.$ac_objext \
14867 if ${ac_cv_search_uuid_create+:} false; then :
14871 if ${ac_cv_search_uuid_create+:} false; then :
14874 ac_cv_search_uuid_create=no
14876 rm conftest.$ac_ext
14877 LIBS=$ac_func_search_save_LIBS
14879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_uuid_create" >&5
14880 $as_echo "$ac_cv_search_uuid_create" >&6; }
14881 ac_res=$ac_cv_search_uuid_create
14882 if test "$ac_res" != no; then :
14883 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14891 if test $have_uuid = yes ; then
14893 $as_echo "#define HAVE_UUID_TO_STR 1" >>confdefs.h
14896 test "$ac_cv_search_uuid_to_str" = "none required" || \
14897 SLAPD_LIBS="$SLAPD_LIBS $ac_cv_search_uuid_to_str"
14901 if test $have_uuid = no ; then
14902 for ac_header in uuid/uuid.h
14904 ac_fn_c_check_header_mongrel "$LINENO" "uuid/uuid.h" "ac_cv_header_uuid_uuid_h" "$ac_includes_default"
14905 if test "x$ac_cv_header_uuid_uuid_h" = xyes; then :
14906 cat >>confdefs.h <<_ACEOF
14907 #define HAVE_UUID_UUID_H 1
14914 if test $ac_cv_header_uuid_uuid_h = yes ; then
14916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing uuid_generate" >&5
14917 $as_echo_n "checking for library containing uuid_generate... " >&6; }
14918 if ${ac_cv_search_uuid_generate+:} false; then :
14919 $as_echo_n "(cached) " >&6
14921 ac_func_search_save_LIBS=$LIBS
14922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14923 /* end confdefs.h. */
14925 /* Override any GCC internal prototype to avoid an error.
14926 Use char because int might match the return type of a GCC
14927 builtin and then its argument prototype would still apply. */
14931 char uuid_generate ();
14935 return uuid_generate ();
14940 for ac_lib in '' uuid; do
14941 if test -z "$ac_lib"; then
14942 ac_res="none required"
14945 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14947 if ac_fn_c_try_link "$LINENO"; then :
14948 ac_cv_search_uuid_generate=$ac_res
14950 rm -f core conftest.err conftest.$ac_objext \
14952 if ${ac_cv_search_uuid_generate+:} false; then :
14956 if ${ac_cv_search_uuid_generate+:} false; then :
14959 ac_cv_search_uuid_generate=no
14961 rm conftest.$ac_ext
14962 LIBS=$ac_func_search_save_LIBS
14964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_uuid_generate" >&5
14965 $as_echo "$ac_cv_search_uuid_generate" >&6; }
14966 ac_res=$ac_cv_search_uuid_generate
14967 if test "$ac_res" != no; then :
14968 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing uuid_unparse_lower" >&5
14975 $as_echo_n "checking for library containing uuid_unparse_lower... " >&6; }
14976 if ${ac_cv_search_uuid_unparse_lower+:} false; then :
14977 $as_echo_n "(cached) " >&6
14979 ac_func_search_save_LIBS=$LIBS
14980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14981 /* end confdefs.h. */
14983 /* Override any GCC internal prototype to avoid an error.
14984 Use char because int might match the return type of a GCC
14985 builtin and then its argument prototype would still apply. */
14989 char uuid_unparse_lower ();
14993 return uuid_unparse_lower ();
14998 for ac_lib in '' uuid; do
14999 if test -z "$ac_lib"; then
15000 ac_res="none required"
15003 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15005 if ac_fn_c_try_link "$LINENO"; then :
15006 ac_cv_search_uuid_unparse_lower=$ac_res
15008 rm -f core conftest.err conftest.$ac_objext \
15010 if ${ac_cv_search_uuid_unparse_lower+:} false; then :
15014 if ${ac_cv_search_uuid_unparse_lower+:} false; then :
15017 ac_cv_search_uuid_unparse_lower=no
15019 rm conftest.$ac_ext
15020 LIBS=$ac_func_search_save_LIBS
15022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_uuid_unparse_lower" >&5
15023 $as_echo "$ac_cv_search_uuid_unparse_lower" >&6; }
15024 ac_res=$ac_cv_search_uuid_unparse_lower
15025 if test "$ac_res" != no; then :
15026 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15034 if test $have_uuid = yes ; then
15036 $as_echo "#define HAVE_UUID_GENERATE 1" >>confdefs.h
15039 test "$ac_cv_search_uuid_generate" = "none required" || \
15040 SLAPD_LIBS="$SLAPD_LIBS $ac_cv_search_uuid_generate"
15045 if test $have_uuid = no ; then
15046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if -lrpcrt4 is needed for win32 UUID support" >&5
15047 $as_echo_n "checking to see if -lrpcrt4 is needed for win32 UUID support... " >&6; }
15049 LIBS="$LIBS -lrpcrt4"
15050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15051 /* end confdefs.h. */
15053 int __stdcall UuidCreate(void *);
15054 int __stdcall UuidToStringA(void *,void **);
15061 UuidToStringA(0,0);
15067 if ac_fn_c_try_link "$LINENO"; then :
15072 rm -f core conftest.err conftest.$ac_objext \
15073 conftest$ac_exeext conftest.$ac_ext
15074 if test $need_rpcrt = yes; then
15075 SLAPD_LIBS="$SLAPD_LIBS -lrpcrt4"
15078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $need_rpcrt" >&5
15079 $as_echo "$need_rpcrt" >&6; }
15082 ol_cv_lib_resolver=no
15083 if test $ol_cv_lib_resolver = no ; then
15084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for resolver link (default)" >&5
15085 $as_echo_n "checking for resolver link (default)... " >&6; }
15086 if ${ol_cv_resolver_none+:} false; then :
15087 $as_echo_n "(cached) " >&6
15092 LIBS="$ol_RESOLVER_LIB $LIBS"
15094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15095 /* end confdefs.h. */
15097 #ifdef HAVE_SYS_TYPES_H
15098 # include <sys/types.h>
15100 #include <netinet/in.h>
15101 #ifdef HAVE_ARPA_NAMESER_H
15102 # include <arpa/nameser.h>
15104 #ifdef HAVE_RESOLV_H
15105 # include <resolv.h>
15113 char *request = NULL;
15114 unsigned char reply[64*1024];
15115 unsigned char host[64*1024];
15119 /* Bind 8/9 interface */
15120 len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
15122 /* Bind 4 interface */
15126 len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
15130 /* Bind 8/9 interface */
15132 #elif defined(HFIXEDSZ)
15133 /* Bind 4 interface w/ HFIXEDSZ */
15136 /* Bind 4 interface w/o HFIXEDSZ */
15137 p += sizeof(HEADER);
15139 status = dn_expand( reply, reply+len, p, host, sizeof(host));
15145 if ac_fn_c_try_link "$LINENO"; then :
15146 ol_cv_resolver_none=yes
15148 ol_cv_resolver_none=no
15150 rm -f core conftest.err conftest.$ac_objext \
15151 conftest$ac_exeext conftest.$ac_ext
15156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_resolver_none" >&5
15157 $as_echo "$ol_cv_resolver_none" >&6; }
15159 if test $ol_cv_resolver_none = yes ; then
15160 ol_cv_lib_resolver=yes
15164 if test $ol_cv_lib_resolver = no ; then
15165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for resolver link (-lresolv)" >&5
15166 $as_echo_n "checking for resolver link (-lresolv)... " >&6; }
15167 if ${ol_cv_resolver_resolv+:} false; then :
15168 $as_echo_n "(cached) " >&6
15171 ol_RESOLVER_LIB=-lresolv
15173 LIBS="$ol_RESOLVER_LIB $LIBS"
15175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15176 /* end confdefs.h. */
15178 #ifdef HAVE_SYS_TYPES_H
15179 # include <sys/types.h>
15181 #include <netinet/in.h>
15182 #ifdef HAVE_ARPA_NAMESER_H
15183 # include <arpa/nameser.h>
15185 #ifdef HAVE_RESOLV_H
15186 # include <resolv.h>
15194 char *request = NULL;
15195 unsigned char reply[64*1024];
15196 unsigned char host[64*1024];
15200 /* Bind 8/9 interface */
15201 len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
15203 /* Bind 4 interface */
15207 len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
15211 /* Bind 8/9 interface */
15213 #elif defined(HFIXEDSZ)
15214 /* Bind 4 interface w/ HFIXEDSZ */
15217 /* Bind 4 interface w/o HFIXEDSZ */
15218 p += sizeof(HEADER);
15220 status = dn_expand( reply, reply+len, p, host, sizeof(host));
15226 if ac_fn_c_try_link "$LINENO"; then :
15227 ol_cv_resolver_resolv=yes
15229 ol_cv_resolver_resolv=no
15231 rm -f core conftest.err conftest.$ac_objext \
15232 conftest$ac_exeext conftest.$ac_ext
15237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_resolver_resolv" >&5
15238 $as_echo "$ol_cv_resolver_resolv" >&6; }
15240 if test $ol_cv_resolver_resolv = yes ; then
15241 ol_cv_lib_resolver=-lresolv
15245 if test $ol_cv_lib_resolver = no ; then
15246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for resolver link (-lbind)" >&5
15247 $as_echo_n "checking for resolver link (-lbind)... " >&6; }
15248 if ${ol_cv_resolver_bind+:} false; then :
15249 $as_echo_n "(cached) " >&6
15252 ol_RESOLVER_LIB=-lbind
15254 LIBS="$ol_RESOLVER_LIB $LIBS"
15256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15257 /* end confdefs.h. */
15259 #ifdef HAVE_SYS_TYPES_H
15260 # include <sys/types.h>
15262 #include <netinet/in.h>
15263 #ifdef HAVE_ARPA_NAMESER_H
15264 # include <arpa/nameser.h>
15266 #ifdef HAVE_RESOLV_H
15267 # include <resolv.h>
15275 char *request = NULL;
15276 unsigned char reply[64*1024];
15277 unsigned char host[64*1024];
15281 /* Bind 8/9 interface */
15282 len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
15284 /* Bind 4 interface */
15288 len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
15292 /* Bind 8/9 interface */
15294 #elif defined(HFIXEDSZ)
15295 /* Bind 4 interface w/ HFIXEDSZ */
15298 /* Bind 4 interface w/o HFIXEDSZ */
15299 p += sizeof(HEADER);
15301 status = dn_expand( reply, reply+len, p, host, sizeof(host));
15307 if ac_fn_c_try_link "$LINENO"; then :
15308 ol_cv_resolver_bind=yes
15310 ol_cv_resolver_bind=no
15312 rm -f core conftest.err conftest.$ac_objext \
15313 conftest$ac_exeext conftest.$ac_ext
15318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_resolver_bind" >&5
15319 $as_echo "$ol_cv_resolver_bind" >&6; }
15321 if test $ol_cv_resolver_bind = yes ; then
15322 ol_cv_lib_resolver=-lbind
15329 if test "$ol_cv_lib_resolver" != no ; then
15331 $as_echo "#define HAVE_RES_QUERY 1" >>confdefs.h
15334 if test "$ol_enable_dnssrv" != no ; then
15338 if test "$ol_cv_lib_resolver" != yes ; then
15339 LIBS="$ol_cv_lib_resolver $LIBS"
15343 if test "$ol_enable_dnssrv" = yes || test "$ol_enable_dnssrv" = mod ; then
15344 if test "$ol_link_dnssrv" = no ; then
15345 as_fn_error $? "DNSSRV requires res_query()" "$LINENO" 5
15348 ol_enable_dnssrv=no
15351 for ac_func in hstrerror
15353 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15354 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15355 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
15356 cat >>confdefs.h <<_ACEOF
15357 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15364 for ac_func in getaddrinfo getnameinfo gai_strerror inet_ntop
15366 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15367 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15368 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
15369 cat >>confdefs.h <<_ACEOF
15370 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15378 if test $ac_cv_func_getaddrinfo = no || test $ac_cv_func_inet_ntop = no ; then
15379 if test $ol_enable_ipv6 = yes ; then
15380 as_fn_error $? "IPv6 support requires getaddrinfo() and inet_ntop()" "$LINENO" 5
15382 elif test $ol_enable_ipv6 != no ; then
15383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking INET6_ADDRSTRLEN" >&5
15384 $as_echo_n "checking INET6_ADDRSTRLEN... " >&6; }
15385 if ${ol_cv_inet6_addrstrlen+:} false; then :
15386 $as_echo_n "(cached) " >&6
15389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15390 /* end confdefs.h. */
15392 # include <netinet/in.h>
15393 # ifdef INET6_ADDRSTRLEN
15394 __has_inet6_addrstrlen__;
15398 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15399 $EGREP "__has_inet6_addrstrlen__" >/dev/null 2>&1; then :
15400 ol_cv_inet6_addrstrlen=yes
15402 ol_cv_inet6_addrstrlen=no
15407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_inet6_addrstrlen" >&5
15408 $as_echo "$ol_cv_inet6_addrstrlen" >&6; }
15411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking struct sockaddr_storage" >&5
15412 $as_echo_n "checking struct sockaddr_storage... " >&6; }
15413 if ${ol_cv_struct_sockaddr_storage+:} false; then :
15414 $as_echo_n "(cached) " >&6
15417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15418 /* end confdefs.h. */
15420 #include <sys/types.h>
15421 #include <sys/socket.h>
15427 struct sockaddr_storage ss;
15433 if ac_fn_c_try_compile "$LINENO"; then :
15434 ol_cv_struct_sockaddr_storage=yes
15436 ol_cv_struct_sockaddr_storage=no
15438 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_struct_sockaddr_storage" >&5
15441 $as_echo "$ol_cv_struct_sockaddr_storage" >&6; }
15443 if test $ol_cv_inet6_addrstrlen = yes &&
15444 test $ol_cv_struct_sockaddr_storage = yes ; then
15446 elif test $ol_enable_ipv6 = yes &&
15447 test $ol_cv_inet6_addrstrlen = no ; then
15448 as_fn_error $? "IPv6 support requires INET6_ADDRSTRLEN" "$LINENO" 5
15449 elif test $ol_enable_ipv6 = yes &&
15450 test $ol_cv_struct_sockaddr_storage = no ; then
15451 as_fn_error $? "IPv6 support requires struct sockaddr_storage" "$LINENO" 5
15455 if test $ol_enable_local != no ; then
15456 for ac_header in sys/un.h
15458 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15459 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15460 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
15461 cat >>confdefs.h <<_ACEOF
15462 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15470 if test $ol_enable_local = auto ; then
15471 ol_enable_local=$ac_cv_header_sys_un_h
15472 elif test $ac_cv_header_sys_un_h = no ; then
15473 as_fn_error $? "AF_LOCAL domain support requires sys/un.h" "$LINENO" 5
15478 if test $ol_with_tls = yes ; then
15483 if test $ol_with_tls = openssl || test $ol_with_tls = auto ; then
15484 for ac_header in openssl/ssl.h
15486 ac_fn_c_check_header_mongrel "$LINENO" "openssl/ssl.h" "ac_cv_header_openssl_ssl_h" "$ac_includes_default"
15487 if test "x$ac_cv_header_openssl_ssl_h" = xyes; then :
15488 cat >>confdefs.h <<_ACEOF
15489 #define HAVE_OPENSSL_SSL_H 1
15497 if test $ac_cv_header_openssl_ssl_h = yes ; then
15498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_library_init in -lssl" >&5
15499 $as_echo_n "checking for SSL_library_init in -lssl... " >&6; }
15500 if ${ac_cv_lib_ssl_SSL_library_init+:} false; then :
15501 $as_echo_n "(cached) " >&6
15503 ac_check_lib_save_LIBS=$LIBS
15504 LIBS="-lssl -lcrypto $LIBS"
15505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15506 /* end confdefs.h. */
15508 /* Override any GCC internal prototype to avoid an error.
15509 Use char because int might match the return type of a GCC
15510 builtin and then its argument prototype would still apply. */
15514 char SSL_library_init ();
15518 return SSL_library_init ();
15523 if ac_fn_c_try_link "$LINENO"; then :
15524 ac_cv_lib_ssl_SSL_library_init=yes
15526 ac_cv_lib_ssl_SSL_library_init=no
15528 rm -f core conftest.err conftest.$ac_objext \
15529 conftest$ac_exeext conftest.$ac_ext
15530 LIBS=$ac_check_lib_save_LIBS
15532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_library_init" >&5
15533 $as_echo "$ac_cv_lib_ssl_SSL_library_init" >&6; }
15534 if test "x$ac_cv_lib_ssl_SSL_library_init" = xyes; then :
15542 if test $have_openssl = no ; then
15543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssl3_accept in -lssl" >&5
15544 $as_echo_n "checking for ssl3_accept in -lssl... " >&6; }
15545 if ${ac_cv_lib_ssl_ssl3_accept+:} false; then :
15546 $as_echo_n "(cached) " >&6
15548 ac_check_lib_save_LIBS=$LIBS
15549 LIBS="-lssl -lcrypto -lRSAglue -lrsaref $LIBS"
15550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15551 /* end confdefs.h. */
15553 /* Override any GCC internal prototype to avoid an error.
15554 Use char because int might match the return type of a GCC
15555 builtin and then its argument prototype would still apply. */
15559 char ssl3_accept ();
15563 return ssl3_accept ();
15568 if ac_fn_c_try_link "$LINENO"; then :
15569 ac_cv_lib_ssl_ssl3_accept=yes
15571 ac_cv_lib_ssl_ssl3_accept=no
15573 rm -f core conftest.err conftest.$ac_objext \
15574 conftest$ac_exeext conftest.$ac_ext
15575 LIBS=$ac_check_lib_save_LIBS
15577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_ssl3_accept" >&5
15578 $as_echo "$ac_cv_lib_ssl_ssl3_accept" >&6; }
15579 if test "x$ac_cv_lib_ssl_ssl3_accept" = xyes; then :
15588 if test $have_openssl = yes ; then
15589 ol_with_tls=openssl
15593 $as_echo "#define HAVE_OPENSSL 1" >>confdefs.h
15596 if test $need_rsaref = yes; then
15598 $as_echo "#define HAVE_RSAREF 1" >>confdefs.h
15601 TLS_LIBS="-lssl -lcrypto -lRSAglue -lrsaref"
15603 TLS_LIBS="-lssl -lcrypto"
15606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking OpenSSL library version (CRL checking capability)" >&5
15607 $as_echo_n "checking OpenSSL library version (CRL checking capability)... " >&6; }
15608 if ${ol_cv_ssl_crl_compat+:} false; then :
15609 $as_echo_n "(cached) " >&6
15612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15613 /* end confdefs.h. */
15615 #ifdef HAVE_OPENSSL_SSL_H
15616 #include <openssl/ssl.h>
15619 /* Require 0.9.7d+ */
15620 #if OPENSSL_VERSION_NUMBER >= 0x0090704fL
15621 char *__ssl_compat = "0.9.7d";
15625 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15626 $EGREP "__ssl_compat" >/dev/null 2>&1; then :
15627 ol_cv_ssl_crl_compat=yes
15629 ol_cv_ssl_crl_compat=no
15634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_ssl_crl_compat" >&5
15635 $as_echo "$ol_cv_ssl_crl_compat" >&6; }
15637 if test $ol_cv_ssl_crl_compat = yes ; then
15639 $as_echo "#define HAVE_OPENSSL_CRL 1" >>confdefs.h
15646 if test $ol_link_tls = no ; then
15647 if test $ol_with_tls = gnutls || test $ol_with_tls = auto ; then
15648 for ac_header in gnutls/gnutls.h
15650 ac_fn_c_check_header_mongrel "$LINENO" "gnutls/gnutls.h" "ac_cv_header_gnutls_gnutls_h" "$ac_includes_default"
15651 if test "x$ac_cv_header_gnutls_gnutls_h" = xyes; then :
15652 cat >>confdefs.h <<_ACEOF
15653 #define HAVE_GNUTLS_GNUTLS_H 1
15661 if test $ac_cv_header_gnutls_gnutls_h = yes ; then
15662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15663 /* end confdefs.h. */
15664 #include <gnutls/gnutls.h>
15665 #if GNUTLS_VERSION_NUMBER < 0x020c00
15666 #error "GnuTLS 2.12.0 or newer required"
15669 if ac_fn_c_try_cpp "$LINENO"; then :
15672 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15673 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15674 as_fn_error $? "GnuTLS is too old
15675 See \`config.log' for more details" "$LINENO" 5; }
15677 rm -f conftest.err conftest.i conftest.$ac_ext
15679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls_init in -lgnutls" >&5
15680 $as_echo_n "checking for gnutls_init in -lgnutls... " >&6; }
15681 if ${ac_cv_lib_gnutls_gnutls_init+:} false; then :
15682 $as_echo_n "(cached) " >&6
15684 ac_check_lib_save_LIBS=$LIBS
15685 LIBS="-lgnutls $LIBS"
15686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15687 /* end confdefs.h. */
15689 /* Override any GCC internal prototype to avoid an error.
15690 Use char because int might match the return type of a GCC
15691 builtin and then its argument prototype would still apply. */
15695 char gnutls_init ();
15699 return gnutls_init ();
15704 if ac_fn_c_try_link "$LINENO"; then :
15705 ac_cv_lib_gnutls_gnutls_init=yes
15707 ac_cv_lib_gnutls_gnutls_init=no
15709 rm -f core conftest.err conftest.$ac_objext \
15710 conftest$ac_exeext conftest.$ac_ext
15711 LIBS=$ac_check_lib_save_LIBS
15713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gnutls_gnutls_init" >&5
15714 $as_echo "$ac_cv_lib_gnutls_gnutls_init" >&6; }
15715 if test "x$ac_cv_lib_gnutls_gnutls_init" = xyes; then :
15722 if test $have_gnutls = yes ; then
15726 TLS_LIBS="-lgnutls"
15729 $as_echo "#define HAVE_GNUTLS 1" >>confdefs.h
15736 if test $ol_link_tls = no ; then
15737 if test $ol_with_tls = moznss || test $ol_with_tls = auto ; then
15739 for ac_header in nssutil.h
15741 ac_fn_c_check_header_mongrel "$LINENO" "nssutil.h" "ac_cv_header_nssutil_h" "$ac_includes_default"
15742 if test "x$ac_cv_header_nssutil_h" = xyes; then :
15743 cat >>confdefs.h <<_ACEOF
15744 #define HAVE_NSSUTIL_H 1
15751 if test "$ac_cv_header_nssutil_h" = yes ; then
15752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NSS_Initialize in -lnss3" >&5
15753 $as_echo_n "checking for NSS_Initialize in -lnss3... " >&6; }
15754 if ${ac_cv_lib_nss3_NSS_Initialize+:} false; then :
15755 $as_echo_n "(cached) " >&6
15757 ac_check_lib_save_LIBS=$LIBS
15758 LIBS="-lnss3 $LIBS"
15759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15760 /* end confdefs.h. */
15762 /* Override any GCC internal prototype to avoid an error.
15763 Use char because int might match the return type of a GCC
15764 builtin and then its argument prototype would still apply. */
15768 char NSS_Initialize ();
15772 return NSS_Initialize ();
15777 if ac_fn_c_try_link "$LINENO"; then :
15778 ac_cv_lib_nss3_NSS_Initialize=yes
15780 ac_cv_lib_nss3_NSS_Initialize=no
15782 rm -f core conftest.err conftest.$ac_objext \
15783 conftest$ac_exeext conftest.$ac_ext
15784 LIBS=$ac_check_lib_save_LIBS
15786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nss3_NSS_Initialize" >&5
15787 $as_echo "$ac_cv_lib_nss3_NSS_Initialize" >&6; }
15788 if test "x$ac_cv_lib_nss3_NSS_Initialize" = xyes; then :
15796 if test "$have_moznss" = yes ; then
15800 $as_echo "#define HAVE_MOZNSS 1" >>confdefs.h
15802 TLS_LIBS="-lssl3 -lsmime3 -lnss3 -lnssutil3 -lplds4 -lplc4 -lnspr4"
15804 if test $ol_with_tls = moznss ; then
15805 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
15812 if test $ol_link_tls = yes ; then
15814 $as_echo "#define HAVE_TLS 1" >>confdefs.h
15817 elif test $ol_with_tls = auto ; then
15818 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not locate TLS/SSL package" >&5
15819 $as_echo "$as_me: WARNING: Could not locate TLS/SSL package" >&2;}
15820 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: TLS data protection not supported!" >&5
15821 $as_echo "$as_me: WARNING: TLS data protection not supported!" >&2;}
15822 elif test $ol_with_tls != no ; then
15823 as_fn_error $? "Could not locate TLS/SSL package" "$LINENO" 5
15825 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: TLS data protection not supported!" >&5
15826 $as_echo "$as_me: WARNING: TLS data protection not supported!" >&2;}
15829 if test $ol_enable_lmpasswd != no; then
15830 if test $ol_link_tls != yes ; then
15831 as_fn_error $? "LAN Manager passwords require OpenSSL" "$LINENO" 5
15835 $as_echo "#define SLAPD_LMHASH 1" >>confdefs.h
15841 case $ol_with_threads in auto | yes | nt)
15844 ac_fn_c_check_func "$LINENO" "_beginthread" "ac_cv_func__beginthread"
15845 if test "x$ac_cv_func__beginthread" = xyes; then :
15850 if test $ac_cv_func__beginthread = yes ; then
15852 $as_echo "#define HAVE_NT_THREADS 1" >>confdefs.h
15854 ol_cv_nt_threads=yes
15858 if test "$ol_cv_nt_threads" = yes ; then
15860 ol_with_threads=found
15861 ol_with_yielding_select=yes
15864 $as_echo "#define HAVE_NT_SERVICE_MANAGER 1" >>confdefs.h
15867 $as_echo "#define HAVE_NT_EVENT_LOG 1" >>confdefs.h
15871 if test $ol_with_threads = nt ; then
15872 as_fn_error $? "could not locate NT Threads" "$LINENO" 5
15877 case $ol_with_threads in auto | yes | posix)
15879 for ac_header in pthread.h
15881 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
15882 if test "x$ac_cv_header_pthread_h" = xyes; then :
15883 cat >>confdefs.h <<_ACEOF
15884 #define HAVE_PTHREAD_H 1
15892 if test $ac_cv_header_pthread_h = yes ; then
15893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking POSIX thread version" >&5
15894 $as_echo_n "checking POSIX thread version... " >&6; }
15895 if ${ol_cv_pthread_version+:} false; then :
15896 $as_echo_n "(cached) " >&6
15899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15900 /* end confdefs.h. */
15902 # include <pthread.h>
15908 int i = PTHREAD_CREATE_JOINABLE;
15914 if ac_fn_c_try_compile "$LINENO"; then :
15916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15917 /* end confdefs.h. */
15918 #include <pthread.h>
15921 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15922 $EGREP "pthread_detach" >/dev/null 2>&1; then :
15923 ol_cv_pthread_version=10
15925 ol_cv_pthread_version=8
15931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15932 /* end confdefs.h. */
15934 # include <pthread.h>
15935 # ifdef PTHREAD_CREATE_UNDETACHED
15940 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15941 $EGREP "draft7" >/dev/null 2>&1; then :
15942 ol_cv_pthread_version=7
15945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15946 /* end confdefs.h. */
15947 #include <pthread.h>
15950 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15951 $EGREP "pthread_attr_init" >/dev/null 2>&1; then :
15952 ol_cv_pthread_version=6
15955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15956 /* end confdefs.h. */
15958 # include <pthread.h>
15959 #ifdef PTHREAD_MUTEX_INITIALIZER
15964 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15965 $EGREP "draft5" >/dev/null 2>&1; then :
15966 ol_cv_pthread_version=5
15968 ol_cv_pthread_version=4
15979 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_version" >&5
15983 $as_echo "$ol_cv_pthread_version" >&6; }
15986 if test $ol_cv_pthread_version != 0 ; then
15988 cat >>confdefs.h <<_ACEOF
15989 #define HAVE_PTHREADS $ol_cv_pthread_version
15993 as_fn_error $? "unknown pthread version" "$LINENO" 5
15996 # consider threads found
15997 ol_with_threads=found
16000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LinuxThreads pthread.h" >&5
16001 $as_echo_n "checking for LinuxThreads pthread.h... " >&6; }
16002 if ${ol_cv_header_linux_threads+:} false; then :
16003 $as_echo_n "(cached) " >&6
16005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16006 /* end confdefs.h. */
16007 #include <pthread.h>
16009 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16010 $EGREP "pthread_kill_other_threads_np" >/dev/null 2>&1; then :
16011 ol_cv_header_linux_threads=yes
16013 ol_cv_header_linux_threads=no
16019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_header_linux_threads" >&5
16020 $as_echo "$ol_cv_header_linux_threads" >&6; }
16021 if test $ol_cv_header_linux_threads = yes; then
16023 $as_echo "#define HAVE_LINUX_THREADS 1" >>confdefs.h
16028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU Pth pthread.h" >&5
16029 $as_echo_n "checking for GNU Pth pthread.h... " >&6; }
16030 if ${ol_cv_header_gnu_pth_pthread_h+:} false; then :
16031 $as_echo_n "(cached) " >&6
16033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16034 /* end confdefs.h. */
16035 #include <pthread.h>
16036 #ifdef _POSIX_THREAD_IS_GNU_PTH
16041 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16042 $EGREP "__gnu_pth__" >/dev/null 2>&1; then :
16043 ol_cv_header_gnu_pth_pthread_h=yes
16045 ol_cv_header_gnu_pth_pthread_h=no
16051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_header_gnu_pth_pthread_h" >&5
16052 $as_echo "$ol_cv_header_gnu_pth_pthread_h" >&6; }
16055 if test $ol_cv_header_gnu_pth_pthread_h = no ; then
16056 for ac_header in sched.h
16058 ac_fn_c_check_header_mongrel "$LINENO" "sched.h" "ac_cv_header_sched_h" "$ac_includes_default"
16059 if test "x$ac_cv_header_sched_h" = xyes; then :
16060 cat >>confdefs.h <<_ACEOF
16061 #define HAVE_SCHED_H 1
16071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in default libraries" >&5
16072 $as_echo_n "checking for pthread_create in default libraries... " >&6; }
16073 if ${ol_cv_pthread_create+:} false; then :
16074 $as_echo_n "(cached) " >&6
16077 if test "$cross_compiling" = yes; then :
16078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16079 /* end confdefs.h. */
16081 /* pthread test headers */
16082 #include <pthread.h>
16083 #if HAVE_PTHREADS < 7
16087 #define NULL (void*)0
16090 static void *task(p)
16093 return (void *) (p == NULL);
16100 /* pthread test function */
16101 #ifndef PTHREAD_CREATE_DETACHED
16102 #define PTHREAD_CREATE_DETACHED 1
16106 int detach = PTHREAD_CREATE_DETACHED;
16108 #if HAVE_PTHREADS > 4
16109 /* Final pthreads */
16110 pthread_attr_t attr;
16112 status = pthread_attr_init(&attr);
16113 if( status ) return status;
16115 #if HAVE_PTHREADS < 7
16116 status = pthread_attr_setdetachstate(&attr, &detach);
16117 if( status < 0 ) status = errno;
16119 status = pthread_attr_setdetachstate(&attr, detach);
16121 if( status ) return status;
16122 status = pthread_create( &t, &attr, task, NULL );
16123 #if HAVE_PTHREADS < 7
16124 if( status < 0 ) status = errno;
16126 if( status ) return status;
16128 /* Draft 4 pthreads */
16129 status = pthread_create( &t, pthread_attr_default, task, NULL );
16130 if( status ) return errno;
16132 /* give thread a chance to complete */
16133 /* it should remain joinable and hence detachable */
16136 status = pthread_detach( &t );
16137 if( status ) return errno;
16140 #ifdef HAVE_LINUX_THREADS
16141 pthread_kill_other_threads_np();
16150 if ac_fn_c_try_link "$LINENO"; then :
16151 ol_cv_pthread_create=yes
16153 ol_cv_pthread_create=no
16155 rm -f core conftest.err conftest.$ac_objext \
16156 conftest$ac_exeext conftest.$ac_ext
16158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16159 /* end confdefs.h. */
16161 /* pthread test headers */
16162 #include <pthread.h>
16163 #if HAVE_PTHREADS < 7
16167 #define NULL (void*)0
16170 static void *task(p)
16173 return (void *) (p == NULL);
16177 int main(argc, argv)
16182 /* pthread test function */
16183 #ifndef PTHREAD_CREATE_DETACHED
16184 #define PTHREAD_CREATE_DETACHED 1
16188 int detach = PTHREAD_CREATE_DETACHED;
16190 #if HAVE_PTHREADS > 4
16191 /* Final pthreads */
16192 pthread_attr_t attr;
16194 status = pthread_attr_init(&attr);
16195 if( status ) return status;
16197 #if HAVE_PTHREADS < 7
16198 status = pthread_attr_setdetachstate(&attr, &detach);
16199 if( status < 0 ) status = errno;
16201 status = pthread_attr_setdetachstate(&attr, detach);
16203 if( status ) return status;
16204 status = pthread_create( &t, &attr, task, NULL );
16205 #if HAVE_PTHREADS < 7
16206 if( status < 0 ) status = errno;
16208 if( status ) return status;
16210 /* Draft 4 pthreads */
16211 status = pthread_create( &t, pthread_attr_default, task, NULL );
16212 if( status ) return errno;
16214 /* give thread a chance to complete */
16215 /* it should remain joinable and hence detachable */
16218 status = pthread_detach( &t );
16219 if( status ) return errno;
16222 #ifdef HAVE_LINUX_THREADS
16223 pthread_kill_other_threads_np();
16231 if ac_fn_c_try_run "$LINENO"; then :
16232 ol_cv_pthread_create=yes
16234 ol_cv_pthread_create=no
16236 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16237 conftest.$ac_objext conftest.beam conftest.$ac_ext
16241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_create" >&5
16242 $as_echo "$ol_cv_pthread_create" >&6; }
16244 if test $ol_cv_pthread_create != no ; then
16245 ol_link_threads=posix
16246 ol_link_pthreads=""
16249 # Pthread try link: -kthread (ol_cv_pthread_kthread)
16250 if test "$ol_link_threads" = no ; then
16252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -kthread" >&5
16253 $as_echo_n "checking for pthread link with -kthread... " >&6; }
16254 if ${ol_cv_pthread_kthread+:} false; then :
16255 $as_echo_n "(cached) " >&6
16260 LIBS="-kthread $LIBS"
16262 if test "$cross_compiling" = yes; then :
16263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16264 /* end confdefs.h. */
16266 /* pthread test headers */
16267 #include <pthread.h>
16268 #if HAVE_PTHREADS < 7
16272 #define NULL (void*)0
16275 static void *task(p)
16278 return (void *) (p == NULL);
16285 /* pthread test function */
16286 #ifndef PTHREAD_CREATE_DETACHED
16287 #define PTHREAD_CREATE_DETACHED 1
16291 int detach = PTHREAD_CREATE_DETACHED;
16293 #if HAVE_PTHREADS > 4
16294 /* Final pthreads */
16295 pthread_attr_t attr;
16297 status = pthread_attr_init(&attr);
16298 if( status ) return status;
16300 #if HAVE_PTHREADS < 7
16301 status = pthread_attr_setdetachstate(&attr, &detach);
16302 if( status < 0 ) status = errno;
16304 status = pthread_attr_setdetachstate(&attr, detach);
16306 if( status ) return status;
16307 status = pthread_create( &t, &attr, task, NULL );
16308 #if HAVE_PTHREADS < 7
16309 if( status < 0 ) status = errno;
16311 if( status ) return status;
16313 /* Draft 4 pthreads */
16314 status = pthread_create( &t, pthread_attr_default, task, NULL );
16315 if( status ) return errno;
16317 /* give thread a chance to complete */
16318 /* it should remain joinable and hence detachable */
16321 status = pthread_detach( &t );
16322 if( status ) return errno;
16325 #ifdef HAVE_LINUX_THREADS
16326 pthread_kill_other_threads_np();
16335 if ac_fn_c_try_link "$LINENO"; then :
16336 ol_cv_pthread_kthread=yes
16338 ol_cv_pthread_kthread=no
16340 rm -f core conftest.err conftest.$ac_objext \
16341 conftest$ac_exeext conftest.$ac_ext
16343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16344 /* end confdefs.h. */
16346 /* pthread test headers */
16347 #include <pthread.h>
16348 #if HAVE_PTHREADS < 7
16352 #define NULL (void*)0
16355 static void *task(p)
16358 return (void *) (p == NULL);
16362 int main(argc, argv)
16367 /* pthread test function */
16368 #ifndef PTHREAD_CREATE_DETACHED
16369 #define PTHREAD_CREATE_DETACHED 1
16373 int detach = PTHREAD_CREATE_DETACHED;
16375 #if HAVE_PTHREADS > 4
16376 /* Final pthreads */
16377 pthread_attr_t attr;
16379 status = pthread_attr_init(&attr);
16380 if( status ) return status;
16382 #if HAVE_PTHREADS < 7
16383 status = pthread_attr_setdetachstate(&attr, &detach);
16384 if( status < 0 ) status = errno;
16386 status = pthread_attr_setdetachstate(&attr, detach);
16388 if( status ) return status;
16389 status = pthread_create( &t, &attr, task, NULL );
16390 #if HAVE_PTHREADS < 7
16391 if( status < 0 ) status = errno;
16393 if( status ) return status;
16395 /* Draft 4 pthreads */
16396 status = pthread_create( &t, pthread_attr_default, task, NULL );
16397 if( status ) return errno;
16399 /* give thread a chance to complete */
16400 /* it should remain joinable and hence detachable */
16403 status = pthread_detach( &t );
16404 if( status ) return errno;
16407 #ifdef HAVE_LINUX_THREADS
16408 pthread_kill_other_threads_np();
16416 if ac_fn_c_try_run "$LINENO"; then :
16417 ol_cv_pthread_kthread=yes
16419 ol_cv_pthread_kthread=no
16421 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16422 conftest.$ac_objext conftest.beam conftest.$ac_ext
16430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_kthread" >&5
16431 $as_echo "$ol_cv_pthread_kthread" >&6; }
16433 if test $ol_cv_pthread_kthread = yes ; then
16434 ol_link_pthreads="-kthread"
16435 ol_link_threads=posix
16439 # Pthread try link: -pthread (ol_cv_pthread_pthread)
16440 if test "$ol_link_threads" = no ; then
16442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -pthread" >&5
16443 $as_echo_n "checking for pthread link with -pthread... " >&6; }
16444 if ${ol_cv_pthread_pthread+:} false; then :
16445 $as_echo_n "(cached) " >&6
16450 LIBS="-pthread $LIBS"
16452 if test "$cross_compiling" = yes; then :
16453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16454 /* end confdefs.h. */
16456 /* pthread test headers */
16457 #include <pthread.h>
16458 #if HAVE_PTHREADS < 7
16462 #define NULL (void*)0
16465 static void *task(p)
16468 return (void *) (p == NULL);
16475 /* pthread test function */
16476 #ifndef PTHREAD_CREATE_DETACHED
16477 #define PTHREAD_CREATE_DETACHED 1
16481 int detach = PTHREAD_CREATE_DETACHED;
16483 #if HAVE_PTHREADS > 4
16484 /* Final pthreads */
16485 pthread_attr_t attr;
16487 status = pthread_attr_init(&attr);
16488 if( status ) return status;
16490 #if HAVE_PTHREADS < 7
16491 status = pthread_attr_setdetachstate(&attr, &detach);
16492 if( status < 0 ) status = errno;
16494 status = pthread_attr_setdetachstate(&attr, detach);
16496 if( status ) return status;
16497 status = pthread_create( &t, &attr, task, NULL );
16498 #if HAVE_PTHREADS < 7
16499 if( status < 0 ) status = errno;
16501 if( status ) return status;
16503 /* Draft 4 pthreads */
16504 status = pthread_create( &t, pthread_attr_default, task, NULL );
16505 if( status ) return errno;
16507 /* give thread a chance to complete */
16508 /* it should remain joinable and hence detachable */
16511 status = pthread_detach( &t );
16512 if( status ) return errno;
16515 #ifdef HAVE_LINUX_THREADS
16516 pthread_kill_other_threads_np();
16525 if ac_fn_c_try_link "$LINENO"; then :
16526 ol_cv_pthread_pthread=yes
16528 ol_cv_pthread_pthread=no
16530 rm -f core conftest.err conftest.$ac_objext \
16531 conftest$ac_exeext conftest.$ac_ext
16533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16534 /* end confdefs.h. */
16536 /* pthread test headers */
16537 #include <pthread.h>
16538 #if HAVE_PTHREADS < 7
16542 #define NULL (void*)0
16545 static void *task(p)
16548 return (void *) (p == NULL);
16552 int main(argc, argv)
16557 /* pthread test function */
16558 #ifndef PTHREAD_CREATE_DETACHED
16559 #define PTHREAD_CREATE_DETACHED 1
16563 int detach = PTHREAD_CREATE_DETACHED;
16565 #if HAVE_PTHREADS > 4
16566 /* Final pthreads */
16567 pthread_attr_t attr;
16569 status = pthread_attr_init(&attr);
16570 if( status ) return status;
16572 #if HAVE_PTHREADS < 7
16573 status = pthread_attr_setdetachstate(&attr, &detach);
16574 if( status < 0 ) status = errno;
16576 status = pthread_attr_setdetachstate(&attr, detach);
16578 if( status ) return status;
16579 status = pthread_create( &t, &attr, task, NULL );
16580 #if HAVE_PTHREADS < 7
16581 if( status < 0 ) status = errno;
16583 if( status ) return status;
16585 /* Draft 4 pthreads */
16586 status = pthread_create( &t, pthread_attr_default, task, NULL );
16587 if( status ) return errno;
16589 /* give thread a chance to complete */
16590 /* it should remain joinable and hence detachable */
16593 status = pthread_detach( &t );
16594 if( status ) return errno;
16597 #ifdef HAVE_LINUX_THREADS
16598 pthread_kill_other_threads_np();
16606 if ac_fn_c_try_run "$LINENO"; then :
16607 ol_cv_pthread_pthread=yes
16609 ol_cv_pthread_pthread=no
16611 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16612 conftest.$ac_objext conftest.beam conftest.$ac_ext
16620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_pthread" >&5
16621 $as_echo "$ol_cv_pthread_pthread" >&6; }
16623 if test $ol_cv_pthread_pthread = yes ; then
16624 ol_link_pthreads="-pthread"
16625 ol_link_threads=posix
16629 # Pthread try link: -pthreads (ol_cv_pthread_pthreads)
16630 if test "$ol_link_threads" = no ; then
16632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -pthreads" >&5
16633 $as_echo_n "checking for pthread link with -pthreads... " >&6; }
16634 if ${ol_cv_pthread_pthreads+:} false; then :
16635 $as_echo_n "(cached) " >&6
16640 LIBS="-pthreads $LIBS"
16642 if test "$cross_compiling" = yes; then :
16643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16644 /* end confdefs.h. */
16646 /* pthread test headers */
16647 #include <pthread.h>
16648 #if HAVE_PTHREADS < 7
16652 #define NULL (void*)0
16655 static void *task(p)
16658 return (void *) (p == NULL);
16665 /* pthread test function */
16666 #ifndef PTHREAD_CREATE_DETACHED
16667 #define PTHREAD_CREATE_DETACHED 1
16671 int detach = PTHREAD_CREATE_DETACHED;
16673 #if HAVE_PTHREADS > 4
16674 /* Final pthreads */
16675 pthread_attr_t attr;
16677 status = pthread_attr_init(&attr);
16678 if( status ) return status;
16680 #if HAVE_PTHREADS < 7
16681 status = pthread_attr_setdetachstate(&attr, &detach);
16682 if( status < 0 ) status = errno;
16684 status = pthread_attr_setdetachstate(&attr, detach);
16686 if( status ) return status;
16687 status = pthread_create( &t, &attr, task, NULL );
16688 #if HAVE_PTHREADS < 7
16689 if( status < 0 ) status = errno;
16691 if( status ) return status;
16693 /* Draft 4 pthreads */
16694 status = pthread_create( &t, pthread_attr_default, task, NULL );
16695 if( status ) return errno;
16697 /* give thread a chance to complete */
16698 /* it should remain joinable and hence detachable */
16701 status = pthread_detach( &t );
16702 if( status ) return errno;
16705 #ifdef HAVE_LINUX_THREADS
16706 pthread_kill_other_threads_np();
16715 if ac_fn_c_try_link "$LINENO"; then :
16716 ol_cv_pthread_pthreads=yes
16718 ol_cv_pthread_pthreads=no
16720 rm -f core conftest.err conftest.$ac_objext \
16721 conftest$ac_exeext conftest.$ac_ext
16723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16724 /* end confdefs.h. */
16726 /* pthread test headers */
16727 #include <pthread.h>
16728 #if HAVE_PTHREADS < 7
16732 #define NULL (void*)0
16735 static void *task(p)
16738 return (void *) (p == NULL);
16742 int main(argc, argv)
16747 /* pthread test function */
16748 #ifndef PTHREAD_CREATE_DETACHED
16749 #define PTHREAD_CREATE_DETACHED 1
16753 int detach = PTHREAD_CREATE_DETACHED;
16755 #if HAVE_PTHREADS > 4
16756 /* Final pthreads */
16757 pthread_attr_t attr;
16759 status = pthread_attr_init(&attr);
16760 if( status ) return status;
16762 #if HAVE_PTHREADS < 7
16763 status = pthread_attr_setdetachstate(&attr, &detach);
16764 if( status < 0 ) status = errno;
16766 status = pthread_attr_setdetachstate(&attr, detach);
16768 if( status ) return status;
16769 status = pthread_create( &t, &attr, task, NULL );
16770 #if HAVE_PTHREADS < 7
16771 if( status < 0 ) status = errno;
16773 if( status ) return status;
16775 /* Draft 4 pthreads */
16776 status = pthread_create( &t, pthread_attr_default, task, NULL );
16777 if( status ) return errno;
16779 /* give thread a chance to complete */
16780 /* it should remain joinable and hence detachable */
16783 status = pthread_detach( &t );
16784 if( status ) return errno;
16787 #ifdef HAVE_LINUX_THREADS
16788 pthread_kill_other_threads_np();
16796 if ac_fn_c_try_run "$LINENO"; then :
16797 ol_cv_pthread_pthreads=yes
16799 ol_cv_pthread_pthreads=no
16801 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16802 conftest.$ac_objext conftest.beam conftest.$ac_ext
16810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_pthreads" >&5
16811 $as_echo "$ol_cv_pthread_pthreads" >&6; }
16813 if test $ol_cv_pthread_pthreads = yes ; then
16814 ol_link_pthreads="-pthreads"
16815 ol_link_threads=posix
16819 # Pthread try link: -mthreads (ol_cv_pthread_mthreads)
16820 if test "$ol_link_threads" = no ; then
16822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -mthreads" >&5
16823 $as_echo_n "checking for pthread link with -mthreads... " >&6; }
16824 if ${ol_cv_pthread_mthreads+:} false; then :
16825 $as_echo_n "(cached) " >&6
16830 LIBS="-mthreads $LIBS"
16832 if test "$cross_compiling" = yes; then :
16833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16834 /* end confdefs.h. */
16836 /* pthread test headers */
16837 #include <pthread.h>
16838 #if HAVE_PTHREADS < 7
16842 #define NULL (void*)0
16845 static void *task(p)
16848 return (void *) (p == NULL);
16855 /* pthread test function */
16856 #ifndef PTHREAD_CREATE_DETACHED
16857 #define PTHREAD_CREATE_DETACHED 1
16861 int detach = PTHREAD_CREATE_DETACHED;
16863 #if HAVE_PTHREADS > 4
16864 /* Final pthreads */
16865 pthread_attr_t attr;
16867 status = pthread_attr_init(&attr);
16868 if( status ) return status;
16870 #if HAVE_PTHREADS < 7
16871 status = pthread_attr_setdetachstate(&attr, &detach);
16872 if( status < 0 ) status = errno;
16874 status = pthread_attr_setdetachstate(&attr, detach);
16876 if( status ) return status;
16877 status = pthread_create( &t, &attr, task, NULL );
16878 #if HAVE_PTHREADS < 7
16879 if( status < 0 ) status = errno;
16881 if( status ) return status;
16883 /* Draft 4 pthreads */
16884 status = pthread_create( &t, pthread_attr_default, task, NULL );
16885 if( status ) return errno;
16887 /* give thread a chance to complete */
16888 /* it should remain joinable and hence detachable */
16891 status = pthread_detach( &t );
16892 if( status ) return errno;
16895 #ifdef HAVE_LINUX_THREADS
16896 pthread_kill_other_threads_np();
16905 if ac_fn_c_try_link "$LINENO"; then :
16906 ol_cv_pthread_mthreads=yes
16908 ol_cv_pthread_mthreads=no
16910 rm -f core conftest.err conftest.$ac_objext \
16911 conftest$ac_exeext conftest.$ac_ext
16913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16914 /* end confdefs.h. */
16916 /* pthread test headers */
16917 #include <pthread.h>
16918 #if HAVE_PTHREADS < 7
16922 #define NULL (void*)0
16925 static void *task(p)
16928 return (void *) (p == NULL);
16932 int main(argc, argv)
16937 /* pthread test function */
16938 #ifndef PTHREAD_CREATE_DETACHED
16939 #define PTHREAD_CREATE_DETACHED 1
16943 int detach = PTHREAD_CREATE_DETACHED;
16945 #if HAVE_PTHREADS > 4
16946 /* Final pthreads */
16947 pthread_attr_t attr;
16949 status = pthread_attr_init(&attr);
16950 if( status ) return status;
16952 #if HAVE_PTHREADS < 7
16953 status = pthread_attr_setdetachstate(&attr, &detach);
16954 if( status < 0 ) status = errno;
16956 status = pthread_attr_setdetachstate(&attr, detach);
16958 if( status ) return status;
16959 status = pthread_create( &t, &attr, task, NULL );
16960 #if HAVE_PTHREADS < 7
16961 if( status < 0 ) status = errno;
16963 if( status ) return status;
16965 /* Draft 4 pthreads */
16966 status = pthread_create( &t, pthread_attr_default, task, NULL );
16967 if( status ) return errno;
16969 /* give thread a chance to complete */
16970 /* it should remain joinable and hence detachable */
16973 status = pthread_detach( &t );
16974 if( status ) return errno;
16977 #ifdef HAVE_LINUX_THREADS
16978 pthread_kill_other_threads_np();
16986 if ac_fn_c_try_run "$LINENO"; then :
16987 ol_cv_pthread_mthreads=yes
16989 ol_cv_pthread_mthreads=no
16991 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16992 conftest.$ac_objext conftest.beam conftest.$ac_ext
17000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_mthreads" >&5
17001 $as_echo "$ol_cv_pthread_mthreads" >&6; }
17003 if test $ol_cv_pthread_mthreads = yes ; then
17004 ol_link_pthreads="-mthreads"
17005 ol_link_threads=posix
17009 # Pthread try link: -thread (ol_cv_pthread_thread)
17010 if test "$ol_link_threads" = no ; then
17012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -thread" >&5
17013 $as_echo_n "checking for pthread link with -thread... " >&6; }
17014 if ${ol_cv_pthread_thread+:} false; then :
17015 $as_echo_n "(cached) " >&6
17020 LIBS="-thread $LIBS"
17022 if test "$cross_compiling" = yes; then :
17023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17024 /* end confdefs.h. */
17026 /* pthread test headers */
17027 #include <pthread.h>
17028 #if HAVE_PTHREADS < 7
17032 #define NULL (void*)0
17035 static void *task(p)
17038 return (void *) (p == NULL);
17045 /* pthread test function */
17046 #ifndef PTHREAD_CREATE_DETACHED
17047 #define PTHREAD_CREATE_DETACHED 1
17051 int detach = PTHREAD_CREATE_DETACHED;
17053 #if HAVE_PTHREADS > 4
17054 /* Final pthreads */
17055 pthread_attr_t attr;
17057 status = pthread_attr_init(&attr);
17058 if( status ) return status;
17060 #if HAVE_PTHREADS < 7
17061 status = pthread_attr_setdetachstate(&attr, &detach);
17062 if( status < 0 ) status = errno;
17064 status = pthread_attr_setdetachstate(&attr, detach);
17066 if( status ) return status;
17067 status = pthread_create( &t, &attr, task, NULL );
17068 #if HAVE_PTHREADS < 7
17069 if( status < 0 ) status = errno;
17071 if( status ) return status;
17073 /* Draft 4 pthreads */
17074 status = pthread_create( &t, pthread_attr_default, task, NULL );
17075 if( status ) return errno;
17077 /* give thread a chance to complete */
17078 /* it should remain joinable and hence detachable */
17081 status = pthread_detach( &t );
17082 if( status ) return errno;
17085 #ifdef HAVE_LINUX_THREADS
17086 pthread_kill_other_threads_np();
17095 if ac_fn_c_try_link "$LINENO"; then :
17096 ol_cv_pthread_thread=yes
17098 ol_cv_pthread_thread=no
17100 rm -f core conftest.err conftest.$ac_objext \
17101 conftest$ac_exeext conftest.$ac_ext
17103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17104 /* end confdefs.h. */
17106 /* pthread test headers */
17107 #include <pthread.h>
17108 #if HAVE_PTHREADS < 7
17112 #define NULL (void*)0
17115 static void *task(p)
17118 return (void *) (p == NULL);
17122 int main(argc, argv)
17127 /* pthread test function */
17128 #ifndef PTHREAD_CREATE_DETACHED
17129 #define PTHREAD_CREATE_DETACHED 1
17133 int detach = PTHREAD_CREATE_DETACHED;
17135 #if HAVE_PTHREADS > 4
17136 /* Final pthreads */
17137 pthread_attr_t attr;
17139 status = pthread_attr_init(&attr);
17140 if( status ) return status;
17142 #if HAVE_PTHREADS < 7
17143 status = pthread_attr_setdetachstate(&attr, &detach);
17144 if( status < 0 ) status = errno;
17146 status = pthread_attr_setdetachstate(&attr, detach);
17148 if( status ) return status;
17149 status = pthread_create( &t, &attr, task, NULL );
17150 #if HAVE_PTHREADS < 7
17151 if( status < 0 ) status = errno;
17153 if( status ) return status;
17155 /* Draft 4 pthreads */
17156 status = pthread_create( &t, pthread_attr_default, task, NULL );
17157 if( status ) return errno;
17159 /* give thread a chance to complete */
17160 /* it should remain joinable and hence detachable */
17163 status = pthread_detach( &t );
17164 if( status ) return errno;
17167 #ifdef HAVE_LINUX_THREADS
17168 pthread_kill_other_threads_np();
17176 if ac_fn_c_try_run "$LINENO"; then :
17177 ol_cv_pthread_thread=yes
17179 ol_cv_pthread_thread=no
17181 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17182 conftest.$ac_objext conftest.beam conftest.$ac_ext
17190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_thread" >&5
17191 $as_echo "$ol_cv_pthread_thread" >&6; }
17193 if test $ol_cv_pthread_thread = yes ; then
17194 ol_link_pthreads="-thread"
17195 ol_link_threads=posix
17200 # Pthread try link: -lpthread -lmach -lexc -lc_r (ol_cv_pthread_lpthread_lmach_lexc_lc_r)
17201 if test "$ol_link_threads" = no ; then
17202 # try -lpthread -lmach -lexc -lc_r
17203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthread -lmach -lexc -lc_r" >&5
17204 $as_echo_n "checking for pthread link with -lpthread -lmach -lexc -lc_r... " >&6; }
17205 if ${ol_cv_pthread_lpthread_lmach_lexc_lc_r+:} false; then :
17206 $as_echo_n "(cached) " >&6
17211 LIBS="-lpthread -lmach -lexc -lc_r $LIBS"
17213 if test "$cross_compiling" = yes; then :
17214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17215 /* end confdefs.h. */
17217 /* pthread test headers */
17218 #include <pthread.h>
17219 #if HAVE_PTHREADS < 7
17223 #define NULL (void*)0
17226 static void *task(p)
17229 return (void *) (p == NULL);
17236 /* pthread test function */
17237 #ifndef PTHREAD_CREATE_DETACHED
17238 #define PTHREAD_CREATE_DETACHED 1
17242 int detach = PTHREAD_CREATE_DETACHED;
17244 #if HAVE_PTHREADS > 4
17245 /* Final pthreads */
17246 pthread_attr_t attr;
17248 status = pthread_attr_init(&attr);
17249 if( status ) return status;
17251 #if HAVE_PTHREADS < 7
17252 status = pthread_attr_setdetachstate(&attr, &detach);
17253 if( status < 0 ) status = errno;
17255 status = pthread_attr_setdetachstate(&attr, detach);
17257 if( status ) return status;
17258 status = pthread_create( &t, &attr, task, NULL );
17259 #if HAVE_PTHREADS < 7
17260 if( status < 0 ) status = errno;
17262 if( status ) return status;
17264 /* Draft 4 pthreads */
17265 status = pthread_create( &t, pthread_attr_default, task, NULL );
17266 if( status ) return errno;
17268 /* give thread a chance to complete */
17269 /* it should remain joinable and hence detachable */
17272 status = pthread_detach( &t );
17273 if( status ) return errno;
17276 #ifdef HAVE_LINUX_THREADS
17277 pthread_kill_other_threads_np();
17286 if ac_fn_c_try_link "$LINENO"; then :
17287 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
17289 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
17291 rm -f core conftest.err conftest.$ac_objext \
17292 conftest$ac_exeext conftest.$ac_ext
17294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17295 /* end confdefs.h. */
17297 /* pthread test headers */
17298 #include <pthread.h>
17299 #if HAVE_PTHREADS < 7
17303 #define NULL (void*)0
17306 static void *task(p)
17309 return (void *) (p == NULL);
17313 int main(argc, argv)
17318 /* pthread test function */
17319 #ifndef PTHREAD_CREATE_DETACHED
17320 #define PTHREAD_CREATE_DETACHED 1
17324 int detach = PTHREAD_CREATE_DETACHED;
17326 #if HAVE_PTHREADS > 4
17327 /* Final pthreads */
17328 pthread_attr_t attr;
17330 status = pthread_attr_init(&attr);
17331 if( status ) return status;
17333 #if HAVE_PTHREADS < 7
17334 status = pthread_attr_setdetachstate(&attr, &detach);
17335 if( status < 0 ) status = errno;
17337 status = pthread_attr_setdetachstate(&attr, detach);
17339 if( status ) return status;
17340 status = pthread_create( &t, &attr, task, NULL );
17341 #if HAVE_PTHREADS < 7
17342 if( status < 0 ) status = errno;
17344 if( status ) return status;
17346 /* Draft 4 pthreads */
17347 status = pthread_create( &t, pthread_attr_default, task, NULL );
17348 if( status ) return errno;
17350 /* give thread a chance to complete */
17351 /* it should remain joinable and hence detachable */
17354 status = pthread_detach( &t );
17355 if( status ) return errno;
17358 #ifdef HAVE_LINUX_THREADS
17359 pthread_kill_other_threads_np();
17367 if ac_fn_c_try_run "$LINENO"; then :
17368 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
17370 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
17372 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17373 conftest.$ac_objext conftest.beam conftest.$ac_ext
17381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lpthread_lmach_lexc_lc_r" >&5
17382 $as_echo "$ol_cv_pthread_lpthread_lmach_lexc_lc_r" >&6; }
17384 if test $ol_cv_pthread_lpthread_lmach_lexc_lc_r = yes ; then
17385 ol_link_pthreads="-lpthread -lmach -lexc -lc_r"
17386 ol_link_threads=posix
17390 # Pthread try link: -lpthread -lmach -lexc (ol_cv_pthread_lpthread_lmach_lexc)
17391 if test "$ol_link_threads" = no ; then
17392 # try -lpthread -lmach -lexc
17393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthread -lmach -lexc" >&5
17394 $as_echo_n "checking for pthread link with -lpthread -lmach -lexc... " >&6; }
17395 if ${ol_cv_pthread_lpthread_lmach_lexc+:} false; then :
17396 $as_echo_n "(cached) " >&6
17401 LIBS="-lpthread -lmach -lexc $LIBS"
17403 if test "$cross_compiling" = yes; then :
17404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17405 /* end confdefs.h. */
17407 /* pthread test headers */
17408 #include <pthread.h>
17409 #if HAVE_PTHREADS < 7
17413 #define NULL (void*)0
17416 static void *task(p)
17419 return (void *) (p == NULL);
17426 /* pthread test function */
17427 #ifndef PTHREAD_CREATE_DETACHED
17428 #define PTHREAD_CREATE_DETACHED 1
17432 int detach = PTHREAD_CREATE_DETACHED;
17434 #if HAVE_PTHREADS > 4
17435 /* Final pthreads */
17436 pthread_attr_t attr;
17438 status = pthread_attr_init(&attr);
17439 if( status ) return status;
17441 #if HAVE_PTHREADS < 7
17442 status = pthread_attr_setdetachstate(&attr, &detach);
17443 if( status < 0 ) status = errno;
17445 status = pthread_attr_setdetachstate(&attr, detach);
17447 if( status ) return status;
17448 status = pthread_create( &t, &attr, task, NULL );
17449 #if HAVE_PTHREADS < 7
17450 if( status < 0 ) status = errno;
17452 if( status ) return status;
17454 /* Draft 4 pthreads */
17455 status = pthread_create( &t, pthread_attr_default, task, NULL );
17456 if( status ) return errno;
17458 /* give thread a chance to complete */
17459 /* it should remain joinable and hence detachable */
17462 status = pthread_detach( &t );
17463 if( status ) return errno;
17466 #ifdef HAVE_LINUX_THREADS
17467 pthread_kill_other_threads_np();
17476 if ac_fn_c_try_link "$LINENO"; then :
17477 ol_cv_pthread_lpthread_lmach_lexc=yes
17479 ol_cv_pthread_lpthread_lmach_lexc=no
17481 rm -f core conftest.err conftest.$ac_objext \
17482 conftest$ac_exeext conftest.$ac_ext
17484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17485 /* end confdefs.h. */
17487 /* pthread test headers */
17488 #include <pthread.h>
17489 #if HAVE_PTHREADS < 7
17493 #define NULL (void*)0
17496 static void *task(p)
17499 return (void *) (p == NULL);
17503 int main(argc, argv)
17508 /* pthread test function */
17509 #ifndef PTHREAD_CREATE_DETACHED
17510 #define PTHREAD_CREATE_DETACHED 1
17514 int detach = PTHREAD_CREATE_DETACHED;
17516 #if HAVE_PTHREADS > 4
17517 /* Final pthreads */
17518 pthread_attr_t attr;
17520 status = pthread_attr_init(&attr);
17521 if( status ) return status;
17523 #if HAVE_PTHREADS < 7
17524 status = pthread_attr_setdetachstate(&attr, &detach);
17525 if( status < 0 ) status = errno;
17527 status = pthread_attr_setdetachstate(&attr, detach);
17529 if( status ) return status;
17530 status = pthread_create( &t, &attr, task, NULL );
17531 #if HAVE_PTHREADS < 7
17532 if( status < 0 ) status = errno;
17534 if( status ) return status;
17536 /* Draft 4 pthreads */
17537 status = pthread_create( &t, pthread_attr_default, task, NULL );
17538 if( status ) return errno;
17540 /* give thread a chance to complete */
17541 /* it should remain joinable and hence detachable */
17544 status = pthread_detach( &t );
17545 if( status ) return errno;
17548 #ifdef HAVE_LINUX_THREADS
17549 pthread_kill_other_threads_np();
17557 if ac_fn_c_try_run "$LINENO"; then :
17558 ol_cv_pthread_lpthread_lmach_lexc=yes
17560 ol_cv_pthread_lpthread_lmach_lexc=no
17562 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17563 conftest.$ac_objext conftest.beam conftest.$ac_ext
17571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lpthread_lmach_lexc" >&5
17572 $as_echo "$ol_cv_pthread_lpthread_lmach_lexc" >&6; }
17574 if test $ol_cv_pthread_lpthread_lmach_lexc = yes ; then
17575 ol_link_pthreads="-lpthread -lmach -lexc"
17576 ol_link_threads=posix
17581 # Pthread try link: -lpthread -Wl,-woff,85 (ol_cv_pthread_lib_lpthread_woff)
17582 if test "$ol_link_threads" = no ; then
17583 # try -lpthread -Wl,-woff,85
17584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthread -Wl,-woff,85" >&5
17585 $as_echo_n "checking for pthread link with -lpthread -Wl,-woff,85... " >&6; }
17586 if ${ol_cv_pthread_lib_lpthread_woff+:} false; then :
17587 $as_echo_n "(cached) " >&6
17592 LIBS="-lpthread -Wl,-woff,85 $LIBS"
17594 if test "$cross_compiling" = yes; then :
17595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17596 /* end confdefs.h. */
17598 /* pthread test headers */
17599 #include <pthread.h>
17600 #if HAVE_PTHREADS < 7
17604 #define NULL (void*)0
17607 static void *task(p)
17610 return (void *) (p == NULL);
17617 /* pthread test function */
17618 #ifndef PTHREAD_CREATE_DETACHED
17619 #define PTHREAD_CREATE_DETACHED 1
17623 int detach = PTHREAD_CREATE_DETACHED;
17625 #if HAVE_PTHREADS > 4
17626 /* Final pthreads */
17627 pthread_attr_t attr;
17629 status = pthread_attr_init(&attr);
17630 if( status ) return status;
17632 #if HAVE_PTHREADS < 7
17633 status = pthread_attr_setdetachstate(&attr, &detach);
17634 if( status < 0 ) status = errno;
17636 status = pthread_attr_setdetachstate(&attr, detach);
17638 if( status ) return status;
17639 status = pthread_create( &t, &attr, task, NULL );
17640 #if HAVE_PTHREADS < 7
17641 if( status < 0 ) status = errno;
17643 if( status ) return status;
17645 /* Draft 4 pthreads */
17646 status = pthread_create( &t, pthread_attr_default, task, NULL );
17647 if( status ) return errno;
17649 /* give thread a chance to complete */
17650 /* it should remain joinable and hence detachable */
17653 status = pthread_detach( &t );
17654 if( status ) return errno;
17657 #ifdef HAVE_LINUX_THREADS
17658 pthread_kill_other_threads_np();
17667 if ac_fn_c_try_link "$LINENO"; then :
17668 ol_cv_pthread_lib_lpthread_woff=yes
17670 ol_cv_pthread_lib_lpthread_woff=no
17672 rm -f core conftest.err conftest.$ac_objext \
17673 conftest$ac_exeext conftest.$ac_ext
17675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17676 /* end confdefs.h. */
17678 /* pthread test headers */
17679 #include <pthread.h>
17680 #if HAVE_PTHREADS < 7
17684 #define NULL (void*)0
17687 static void *task(p)
17690 return (void *) (p == NULL);
17694 int main(argc, argv)
17699 /* pthread test function */
17700 #ifndef PTHREAD_CREATE_DETACHED
17701 #define PTHREAD_CREATE_DETACHED 1
17705 int detach = PTHREAD_CREATE_DETACHED;
17707 #if HAVE_PTHREADS > 4
17708 /* Final pthreads */
17709 pthread_attr_t attr;
17711 status = pthread_attr_init(&attr);
17712 if( status ) return status;
17714 #if HAVE_PTHREADS < 7
17715 status = pthread_attr_setdetachstate(&attr, &detach);
17716 if( status < 0 ) status = errno;
17718 status = pthread_attr_setdetachstate(&attr, detach);
17720 if( status ) return status;
17721 status = pthread_create( &t, &attr, task, NULL );
17722 #if HAVE_PTHREADS < 7
17723 if( status < 0 ) status = errno;
17725 if( status ) return status;
17727 /* Draft 4 pthreads */
17728 status = pthread_create( &t, pthread_attr_default, task, NULL );
17729 if( status ) return errno;
17731 /* give thread a chance to complete */
17732 /* it should remain joinable and hence detachable */
17735 status = pthread_detach( &t );
17736 if( status ) return errno;
17739 #ifdef HAVE_LINUX_THREADS
17740 pthread_kill_other_threads_np();
17748 if ac_fn_c_try_run "$LINENO"; then :
17749 ol_cv_pthread_lib_lpthread_woff=yes
17751 ol_cv_pthread_lib_lpthread_woff=no
17753 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17754 conftest.$ac_objext conftest.beam conftest.$ac_ext
17762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lib_lpthread_woff" >&5
17763 $as_echo "$ol_cv_pthread_lib_lpthread_woff" >&6; }
17765 if test $ol_cv_pthread_lib_lpthread_woff = yes ; then
17766 ol_link_pthreads="-lpthread -Wl,-woff,85"
17767 ol_link_threads=posix
17772 # Pthread try link: -lpthread (ol_cv_pthread_lpthread)
17773 if test "$ol_link_threads" = no ; then
17775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthread" >&5
17776 $as_echo_n "checking for pthread link with -lpthread... " >&6; }
17777 if ${ol_cv_pthread_lpthread+:} false; then :
17778 $as_echo_n "(cached) " >&6
17783 LIBS="-lpthread $LIBS"
17785 if test "$cross_compiling" = yes; then :
17786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17787 /* end confdefs.h. */
17789 /* pthread test headers */
17790 #include <pthread.h>
17791 #if HAVE_PTHREADS < 7
17795 #define NULL (void*)0
17798 static void *task(p)
17801 return (void *) (p == NULL);
17808 /* pthread test function */
17809 #ifndef PTHREAD_CREATE_DETACHED
17810 #define PTHREAD_CREATE_DETACHED 1
17814 int detach = PTHREAD_CREATE_DETACHED;
17816 #if HAVE_PTHREADS > 4
17817 /* Final pthreads */
17818 pthread_attr_t attr;
17820 status = pthread_attr_init(&attr);
17821 if( status ) return status;
17823 #if HAVE_PTHREADS < 7
17824 status = pthread_attr_setdetachstate(&attr, &detach);
17825 if( status < 0 ) status = errno;
17827 status = pthread_attr_setdetachstate(&attr, detach);
17829 if( status ) return status;
17830 status = pthread_create( &t, &attr, task, NULL );
17831 #if HAVE_PTHREADS < 7
17832 if( status < 0 ) status = errno;
17834 if( status ) return status;
17836 /* Draft 4 pthreads */
17837 status = pthread_create( &t, pthread_attr_default, task, NULL );
17838 if( status ) return errno;
17840 /* give thread a chance to complete */
17841 /* it should remain joinable and hence detachable */
17844 status = pthread_detach( &t );
17845 if( status ) return errno;
17848 #ifdef HAVE_LINUX_THREADS
17849 pthread_kill_other_threads_np();
17858 if ac_fn_c_try_link "$LINENO"; then :
17859 ol_cv_pthread_lpthread=yes
17861 ol_cv_pthread_lpthread=no
17863 rm -f core conftest.err conftest.$ac_objext \
17864 conftest$ac_exeext conftest.$ac_ext
17866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17867 /* end confdefs.h. */
17869 /* pthread test headers */
17870 #include <pthread.h>
17871 #if HAVE_PTHREADS < 7
17875 #define NULL (void*)0
17878 static void *task(p)
17881 return (void *) (p == NULL);
17885 int main(argc, argv)
17890 /* pthread test function */
17891 #ifndef PTHREAD_CREATE_DETACHED
17892 #define PTHREAD_CREATE_DETACHED 1
17896 int detach = PTHREAD_CREATE_DETACHED;
17898 #if HAVE_PTHREADS > 4
17899 /* Final pthreads */
17900 pthread_attr_t attr;
17902 status = pthread_attr_init(&attr);
17903 if( status ) return status;
17905 #if HAVE_PTHREADS < 7
17906 status = pthread_attr_setdetachstate(&attr, &detach);
17907 if( status < 0 ) status = errno;
17909 status = pthread_attr_setdetachstate(&attr, detach);
17911 if( status ) return status;
17912 status = pthread_create( &t, &attr, task, NULL );
17913 #if HAVE_PTHREADS < 7
17914 if( status < 0 ) status = errno;
17916 if( status ) return status;
17918 /* Draft 4 pthreads */
17919 status = pthread_create( &t, pthread_attr_default, task, NULL );
17920 if( status ) return errno;
17922 /* give thread a chance to complete */
17923 /* it should remain joinable and hence detachable */
17926 status = pthread_detach( &t );
17927 if( status ) return errno;
17930 #ifdef HAVE_LINUX_THREADS
17931 pthread_kill_other_threads_np();
17939 if ac_fn_c_try_run "$LINENO"; then :
17940 ol_cv_pthread_lpthread=yes
17942 ol_cv_pthread_lpthread=no
17944 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17945 conftest.$ac_objext conftest.beam conftest.$ac_ext
17953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lpthread" >&5
17954 $as_echo "$ol_cv_pthread_lpthread" >&6; }
17956 if test $ol_cv_pthread_lpthread = yes ; then
17957 ol_link_pthreads="-lpthread"
17958 ol_link_threads=posix
17962 # Pthread try link: -lc_r (ol_cv_pthread_lc_r)
17963 if test "$ol_link_threads" = no ; then
17965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lc_r" >&5
17966 $as_echo_n "checking for pthread link with -lc_r... " >&6; }
17967 if ${ol_cv_pthread_lc_r+:} false; then :
17968 $as_echo_n "(cached) " >&6
17975 if test "$cross_compiling" = yes; then :
17976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17977 /* end confdefs.h. */
17979 /* pthread test headers */
17980 #include <pthread.h>
17981 #if HAVE_PTHREADS < 7
17985 #define NULL (void*)0
17988 static void *task(p)
17991 return (void *) (p == NULL);
17998 /* pthread test function */
17999 #ifndef PTHREAD_CREATE_DETACHED
18000 #define PTHREAD_CREATE_DETACHED 1
18004 int detach = PTHREAD_CREATE_DETACHED;
18006 #if HAVE_PTHREADS > 4
18007 /* Final pthreads */
18008 pthread_attr_t attr;
18010 status = pthread_attr_init(&attr);
18011 if( status ) return status;
18013 #if HAVE_PTHREADS < 7
18014 status = pthread_attr_setdetachstate(&attr, &detach);
18015 if( status < 0 ) status = errno;
18017 status = pthread_attr_setdetachstate(&attr, detach);
18019 if( status ) return status;
18020 status = pthread_create( &t, &attr, task, NULL );
18021 #if HAVE_PTHREADS < 7
18022 if( status < 0 ) status = errno;
18024 if( status ) return status;
18026 /* Draft 4 pthreads */
18027 status = pthread_create( &t, pthread_attr_default, task, NULL );
18028 if( status ) return errno;
18030 /* give thread a chance to complete */
18031 /* it should remain joinable and hence detachable */
18034 status = pthread_detach( &t );
18035 if( status ) return errno;
18038 #ifdef HAVE_LINUX_THREADS
18039 pthread_kill_other_threads_np();
18048 if ac_fn_c_try_link "$LINENO"; then :
18049 ol_cv_pthread_lc_r=yes
18051 ol_cv_pthread_lc_r=no
18053 rm -f core conftest.err conftest.$ac_objext \
18054 conftest$ac_exeext conftest.$ac_ext
18056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18057 /* end confdefs.h. */
18059 /* pthread test headers */
18060 #include <pthread.h>
18061 #if HAVE_PTHREADS < 7
18065 #define NULL (void*)0
18068 static void *task(p)
18071 return (void *) (p == NULL);
18075 int main(argc, argv)
18080 /* pthread test function */
18081 #ifndef PTHREAD_CREATE_DETACHED
18082 #define PTHREAD_CREATE_DETACHED 1
18086 int detach = PTHREAD_CREATE_DETACHED;
18088 #if HAVE_PTHREADS > 4
18089 /* Final pthreads */
18090 pthread_attr_t attr;
18092 status = pthread_attr_init(&attr);
18093 if( status ) return status;
18095 #if HAVE_PTHREADS < 7
18096 status = pthread_attr_setdetachstate(&attr, &detach);
18097 if( status < 0 ) status = errno;
18099 status = pthread_attr_setdetachstate(&attr, detach);
18101 if( status ) return status;
18102 status = pthread_create( &t, &attr, task, NULL );
18103 #if HAVE_PTHREADS < 7
18104 if( status < 0 ) status = errno;
18106 if( status ) return status;
18108 /* Draft 4 pthreads */
18109 status = pthread_create( &t, pthread_attr_default, task, NULL );
18110 if( status ) return errno;
18112 /* give thread a chance to complete */
18113 /* it should remain joinable and hence detachable */
18116 status = pthread_detach( &t );
18117 if( status ) return errno;
18120 #ifdef HAVE_LINUX_THREADS
18121 pthread_kill_other_threads_np();
18129 if ac_fn_c_try_run "$LINENO"; then :
18130 ol_cv_pthread_lc_r=yes
18132 ol_cv_pthread_lc_r=no
18134 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18135 conftest.$ac_objext conftest.beam conftest.$ac_ext
18143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lc_r" >&5
18144 $as_echo "$ol_cv_pthread_lc_r" >&6; }
18146 if test $ol_cv_pthread_lc_r = yes ; then
18147 ol_link_pthreads="-lc_r"
18148 ol_link_threads=posix
18153 # Pthread try link: -threads (ol_cv_pthread_threads)
18154 if test "$ol_link_threads" = no ; then
18156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -threads" >&5
18157 $as_echo_n "checking for pthread link with -threads... " >&6; }
18158 if ${ol_cv_pthread_threads+:} false; then :
18159 $as_echo_n "(cached) " >&6
18164 LIBS="-threads $LIBS"
18166 if test "$cross_compiling" = yes; then :
18167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18168 /* end confdefs.h. */
18170 /* pthread test headers */
18171 #include <pthread.h>
18172 #if HAVE_PTHREADS < 7
18176 #define NULL (void*)0
18179 static void *task(p)
18182 return (void *) (p == NULL);
18189 /* pthread test function */
18190 #ifndef PTHREAD_CREATE_DETACHED
18191 #define PTHREAD_CREATE_DETACHED 1
18195 int detach = PTHREAD_CREATE_DETACHED;
18197 #if HAVE_PTHREADS > 4
18198 /* Final pthreads */
18199 pthread_attr_t attr;
18201 status = pthread_attr_init(&attr);
18202 if( status ) return status;
18204 #if HAVE_PTHREADS < 7
18205 status = pthread_attr_setdetachstate(&attr, &detach);
18206 if( status < 0 ) status = errno;
18208 status = pthread_attr_setdetachstate(&attr, detach);
18210 if( status ) return status;
18211 status = pthread_create( &t, &attr, task, NULL );
18212 #if HAVE_PTHREADS < 7
18213 if( status < 0 ) status = errno;
18215 if( status ) return status;
18217 /* Draft 4 pthreads */
18218 status = pthread_create( &t, pthread_attr_default, task, NULL );
18219 if( status ) return errno;
18221 /* give thread a chance to complete */
18222 /* it should remain joinable and hence detachable */
18225 status = pthread_detach( &t );
18226 if( status ) return errno;
18229 #ifdef HAVE_LINUX_THREADS
18230 pthread_kill_other_threads_np();
18239 if ac_fn_c_try_link "$LINENO"; then :
18240 ol_cv_pthread_threads=yes
18242 ol_cv_pthread_threads=no
18244 rm -f core conftest.err conftest.$ac_objext \
18245 conftest$ac_exeext conftest.$ac_ext
18247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18248 /* end confdefs.h. */
18250 /* pthread test headers */
18251 #include <pthread.h>
18252 #if HAVE_PTHREADS < 7
18256 #define NULL (void*)0
18259 static void *task(p)
18262 return (void *) (p == NULL);
18266 int main(argc, argv)
18271 /* pthread test function */
18272 #ifndef PTHREAD_CREATE_DETACHED
18273 #define PTHREAD_CREATE_DETACHED 1
18277 int detach = PTHREAD_CREATE_DETACHED;
18279 #if HAVE_PTHREADS > 4
18280 /* Final pthreads */
18281 pthread_attr_t attr;
18283 status = pthread_attr_init(&attr);
18284 if( status ) return status;
18286 #if HAVE_PTHREADS < 7
18287 status = pthread_attr_setdetachstate(&attr, &detach);
18288 if( status < 0 ) status = errno;
18290 status = pthread_attr_setdetachstate(&attr, detach);
18292 if( status ) return status;
18293 status = pthread_create( &t, &attr, task, NULL );
18294 #if HAVE_PTHREADS < 7
18295 if( status < 0 ) status = errno;
18297 if( status ) return status;
18299 /* Draft 4 pthreads */
18300 status = pthread_create( &t, pthread_attr_default, task, NULL );
18301 if( status ) return errno;
18303 /* give thread a chance to complete */
18304 /* it should remain joinable and hence detachable */
18307 status = pthread_detach( &t );
18308 if( status ) return errno;
18311 #ifdef HAVE_LINUX_THREADS
18312 pthread_kill_other_threads_np();
18320 if ac_fn_c_try_run "$LINENO"; then :
18321 ol_cv_pthread_threads=yes
18323 ol_cv_pthread_threads=no
18325 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18326 conftest.$ac_objext conftest.beam conftest.$ac_ext
18334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_threads" >&5
18335 $as_echo "$ol_cv_pthread_threads" >&6; }
18337 if test $ol_cv_pthread_threads = yes ; then
18338 ol_link_pthreads="-threads"
18339 ol_link_threads=posix
18344 # Pthread try link: -lpthreads -lmach -lexc -lc_r (ol_cv_pthread_lpthreads_lmach_lexc_lc_r)
18345 if test "$ol_link_threads" = no ; then
18346 # try -lpthreads -lmach -lexc -lc_r
18347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthreads -lmach -lexc -lc_r" >&5
18348 $as_echo_n "checking for pthread link with -lpthreads -lmach -lexc -lc_r... " >&6; }
18349 if ${ol_cv_pthread_lpthreads_lmach_lexc_lc_r+:} false; then :
18350 $as_echo_n "(cached) " >&6
18355 LIBS="-lpthreads -lmach -lexc -lc_r $LIBS"
18357 if test "$cross_compiling" = yes; then :
18358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18359 /* end confdefs.h. */
18361 /* pthread test headers */
18362 #include <pthread.h>
18363 #if HAVE_PTHREADS < 7
18367 #define NULL (void*)0
18370 static void *task(p)
18373 return (void *) (p == NULL);
18380 /* pthread test function */
18381 #ifndef PTHREAD_CREATE_DETACHED
18382 #define PTHREAD_CREATE_DETACHED 1
18386 int detach = PTHREAD_CREATE_DETACHED;
18388 #if HAVE_PTHREADS > 4
18389 /* Final pthreads */
18390 pthread_attr_t attr;
18392 status = pthread_attr_init(&attr);
18393 if( status ) return status;
18395 #if HAVE_PTHREADS < 7
18396 status = pthread_attr_setdetachstate(&attr, &detach);
18397 if( status < 0 ) status = errno;
18399 status = pthread_attr_setdetachstate(&attr, detach);
18401 if( status ) return status;
18402 status = pthread_create( &t, &attr, task, NULL );
18403 #if HAVE_PTHREADS < 7
18404 if( status < 0 ) status = errno;
18406 if( status ) return status;
18408 /* Draft 4 pthreads */
18409 status = pthread_create( &t, pthread_attr_default, task, NULL );
18410 if( status ) return errno;
18412 /* give thread a chance to complete */
18413 /* it should remain joinable and hence detachable */
18416 status = pthread_detach( &t );
18417 if( status ) return errno;
18420 #ifdef HAVE_LINUX_THREADS
18421 pthread_kill_other_threads_np();
18430 if ac_fn_c_try_link "$LINENO"; then :
18431 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
18433 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
18435 rm -f core conftest.err conftest.$ac_objext \
18436 conftest$ac_exeext conftest.$ac_ext
18438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18439 /* end confdefs.h. */
18441 /* pthread test headers */
18442 #include <pthread.h>
18443 #if HAVE_PTHREADS < 7
18447 #define NULL (void*)0
18450 static void *task(p)
18453 return (void *) (p == NULL);
18457 int main(argc, argv)
18462 /* pthread test function */
18463 #ifndef PTHREAD_CREATE_DETACHED
18464 #define PTHREAD_CREATE_DETACHED 1
18468 int detach = PTHREAD_CREATE_DETACHED;
18470 #if HAVE_PTHREADS > 4
18471 /* Final pthreads */
18472 pthread_attr_t attr;
18474 status = pthread_attr_init(&attr);
18475 if( status ) return status;
18477 #if HAVE_PTHREADS < 7
18478 status = pthread_attr_setdetachstate(&attr, &detach);
18479 if( status < 0 ) status = errno;
18481 status = pthread_attr_setdetachstate(&attr, detach);
18483 if( status ) return status;
18484 status = pthread_create( &t, &attr, task, NULL );
18485 #if HAVE_PTHREADS < 7
18486 if( status < 0 ) status = errno;
18488 if( status ) return status;
18490 /* Draft 4 pthreads */
18491 status = pthread_create( &t, pthread_attr_default, task, NULL );
18492 if( status ) return errno;
18494 /* give thread a chance to complete */
18495 /* it should remain joinable and hence detachable */
18498 status = pthread_detach( &t );
18499 if( status ) return errno;
18502 #ifdef HAVE_LINUX_THREADS
18503 pthread_kill_other_threads_np();
18511 if ac_fn_c_try_run "$LINENO"; then :
18512 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
18514 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
18516 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18517 conftest.$ac_objext conftest.beam conftest.$ac_ext
18525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lpthreads_lmach_lexc_lc_r" >&5
18526 $as_echo "$ol_cv_pthread_lpthreads_lmach_lexc_lc_r" >&6; }
18528 if test $ol_cv_pthread_lpthreads_lmach_lexc_lc_r = yes ; then
18529 ol_link_pthreads="-lpthreads -lmach -lexc -lc_r"
18530 ol_link_threads=posix
18534 # Pthread try link: -lpthreads -lmach -lexc (ol_cv_pthread_lpthreads_lmach_lexc)
18535 if test "$ol_link_threads" = no ; then
18536 # try -lpthreads -lmach -lexc
18537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthreads -lmach -lexc" >&5
18538 $as_echo_n "checking for pthread link with -lpthreads -lmach -lexc... " >&6; }
18539 if ${ol_cv_pthread_lpthreads_lmach_lexc+:} false; then :
18540 $as_echo_n "(cached) " >&6
18545 LIBS="-lpthreads -lmach -lexc $LIBS"
18547 if test "$cross_compiling" = yes; then :
18548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18549 /* end confdefs.h. */
18551 /* pthread test headers */
18552 #include <pthread.h>
18553 #if HAVE_PTHREADS < 7
18557 #define NULL (void*)0
18560 static void *task(p)
18563 return (void *) (p == NULL);
18570 /* pthread test function */
18571 #ifndef PTHREAD_CREATE_DETACHED
18572 #define PTHREAD_CREATE_DETACHED 1
18576 int detach = PTHREAD_CREATE_DETACHED;
18578 #if HAVE_PTHREADS > 4
18579 /* Final pthreads */
18580 pthread_attr_t attr;
18582 status = pthread_attr_init(&attr);
18583 if( status ) return status;
18585 #if HAVE_PTHREADS < 7
18586 status = pthread_attr_setdetachstate(&attr, &detach);
18587 if( status < 0 ) status = errno;
18589 status = pthread_attr_setdetachstate(&attr, detach);
18591 if( status ) return status;
18592 status = pthread_create( &t, &attr, task, NULL );
18593 #if HAVE_PTHREADS < 7
18594 if( status < 0 ) status = errno;
18596 if( status ) return status;
18598 /* Draft 4 pthreads */
18599 status = pthread_create( &t, pthread_attr_default, task, NULL );
18600 if( status ) return errno;
18602 /* give thread a chance to complete */
18603 /* it should remain joinable and hence detachable */
18606 status = pthread_detach( &t );
18607 if( status ) return errno;
18610 #ifdef HAVE_LINUX_THREADS
18611 pthread_kill_other_threads_np();
18620 if ac_fn_c_try_link "$LINENO"; then :
18621 ol_cv_pthread_lpthreads_lmach_lexc=yes
18623 ol_cv_pthread_lpthreads_lmach_lexc=no
18625 rm -f core conftest.err conftest.$ac_objext \
18626 conftest$ac_exeext conftest.$ac_ext
18628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18629 /* end confdefs.h. */
18631 /* pthread test headers */
18632 #include <pthread.h>
18633 #if HAVE_PTHREADS < 7
18637 #define NULL (void*)0
18640 static void *task(p)
18643 return (void *) (p == NULL);
18647 int main(argc, argv)
18652 /* pthread test function */
18653 #ifndef PTHREAD_CREATE_DETACHED
18654 #define PTHREAD_CREATE_DETACHED 1
18658 int detach = PTHREAD_CREATE_DETACHED;
18660 #if HAVE_PTHREADS > 4
18661 /* Final pthreads */
18662 pthread_attr_t attr;
18664 status = pthread_attr_init(&attr);
18665 if( status ) return status;
18667 #if HAVE_PTHREADS < 7
18668 status = pthread_attr_setdetachstate(&attr, &detach);
18669 if( status < 0 ) status = errno;
18671 status = pthread_attr_setdetachstate(&attr, detach);
18673 if( status ) return status;
18674 status = pthread_create( &t, &attr, task, NULL );
18675 #if HAVE_PTHREADS < 7
18676 if( status < 0 ) status = errno;
18678 if( status ) return status;
18680 /* Draft 4 pthreads */
18681 status = pthread_create( &t, pthread_attr_default, task, NULL );
18682 if( status ) return errno;
18684 /* give thread a chance to complete */
18685 /* it should remain joinable and hence detachable */
18688 status = pthread_detach( &t );
18689 if( status ) return errno;
18692 #ifdef HAVE_LINUX_THREADS
18693 pthread_kill_other_threads_np();
18701 if ac_fn_c_try_run "$LINENO"; then :
18702 ol_cv_pthread_lpthreads_lmach_lexc=yes
18704 ol_cv_pthread_lpthreads_lmach_lexc=no
18706 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18707 conftest.$ac_objext conftest.beam conftest.$ac_ext
18715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lpthreads_lmach_lexc" >&5
18716 $as_echo "$ol_cv_pthread_lpthreads_lmach_lexc" >&6; }
18718 if test $ol_cv_pthread_lpthreads_lmach_lexc = yes ; then
18719 ol_link_pthreads="-lpthreads -lmach -lexc"
18720 ol_link_threads=posix
18724 # Pthread try link: -lpthreads -lexc (ol_cv_pthread_lpthreads_lexc)
18725 if test "$ol_link_threads" = no ; then
18726 # try -lpthreads -lexc
18727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthreads -lexc" >&5
18728 $as_echo_n "checking for pthread link with -lpthreads -lexc... " >&6; }
18729 if ${ol_cv_pthread_lpthreads_lexc+:} false; then :
18730 $as_echo_n "(cached) " >&6
18735 LIBS="-lpthreads -lexc $LIBS"
18737 if test "$cross_compiling" = yes; then :
18738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18739 /* end confdefs.h. */
18741 /* pthread test headers */
18742 #include <pthread.h>
18743 #if HAVE_PTHREADS < 7
18747 #define NULL (void*)0
18750 static void *task(p)
18753 return (void *) (p == NULL);
18760 /* pthread test function */
18761 #ifndef PTHREAD_CREATE_DETACHED
18762 #define PTHREAD_CREATE_DETACHED 1
18766 int detach = PTHREAD_CREATE_DETACHED;
18768 #if HAVE_PTHREADS > 4
18769 /* Final pthreads */
18770 pthread_attr_t attr;
18772 status = pthread_attr_init(&attr);
18773 if( status ) return status;
18775 #if HAVE_PTHREADS < 7
18776 status = pthread_attr_setdetachstate(&attr, &detach);
18777 if( status < 0 ) status = errno;
18779 status = pthread_attr_setdetachstate(&attr, detach);
18781 if( status ) return status;
18782 status = pthread_create( &t, &attr, task, NULL );
18783 #if HAVE_PTHREADS < 7
18784 if( status < 0 ) status = errno;
18786 if( status ) return status;
18788 /* Draft 4 pthreads */
18789 status = pthread_create( &t, pthread_attr_default, task, NULL );
18790 if( status ) return errno;
18792 /* give thread a chance to complete */
18793 /* it should remain joinable and hence detachable */
18796 status = pthread_detach( &t );
18797 if( status ) return errno;
18800 #ifdef HAVE_LINUX_THREADS
18801 pthread_kill_other_threads_np();
18810 if ac_fn_c_try_link "$LINENO"; then :
18811 ol_cv_pthread_lpthreads_lexc=yes
18813 ol_cv_pthread_lpthreads_lexc=no
18815 rm -f core conftest.err conftest.$ac_objext \
18816 conftest$ac_exeext conftest.$ac_ext
18818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18819 /* end confdefs.h. */
18821 /* pthread test headers */
18822 #include <pthread.h>
18823 #if HAVE_PTHREADS < 7
18827 #define NULL (void*)0
18830 static void *task(p)
18833 return (void *) (p == NULL);
18837 int main(argc, argv)
18842 /* pthread test function */
18843 #ifndef PTHREAD_CREATE_DETACHED
18844 #define PTHREAD_CREATE_DETACHED 1
18848 int detach = PTHREAD_CREATE_DETACHED;
18850 #if HAVE_PTHREADS > 4
18851 /* Final pthreads */
18852 pthread_attr_t attr;
18854 status = pthread_attr_init(&attr);
18855 if( status ) return status;
18857 #if HAVE_PTHREADS < 7
18858 status = pthread_attr_setdetachstate(&attr, &detach);
18859 if( status < 0 ) status = errno;
18861 status = pthread_attr_setdetachstate(&attr, detach);
18863 if( status ) return status;
18864 status = pthread_create( &t, &attr, task, NULL );
18865 #if HAVE_PTHREADS < 7
18866 if( status < 0 ) status = errno;
18868 if( status ) return status;
18870 /* Draft 4 pthreads */
18871 status = pthread_create( &t, pthread_attr_default, task, NULL );
18872 if( status ) return errno;
18874 /* give thread a chance to complete */
18875 /* it should remain joinable and hence detachable */
18878 status = pthread_detach( &t );
18879 if( status ) return errno;
18882 #ifdef HAVE_LINUX_THREADS
18883 pthread_kill_other_threads_np();
18891 if ac_fn_c_try_run "$LINENO"; then :
18892 ol_cv_pthread_lpthreads_lexc=yes
18894 ol_cv_pthread_lpthreads_lexc=no
18896 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18897 conftest.$ac_objext conftest.beam conftest.$ac_ext
18905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lpthreads_lexc" >&5
18906 $as_echo "$ol_cv_pthread_lpthreads_lexc" >&6; }
18908 if test $ol_cv_pthread_lpthreads_lexc = yes ; then
18909 ol_link_pthreads="-lpthreads -lexc"
18910 ol_link_threads=posix
18915 # Pthread try link: -lpthreads (ol_cv_pthread_lib_lpthreads)
18916 if test "$ol_link_threads" = no ; then
18918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthreads" >&5
18919 $as_echo_n "checking for pthread link with -lpthreads... " >&6; }
18920 if ${ol_cv_pthread_lib_lpthreads+:} false; then :
18921 $as_echo_n "(cached) " >&6
18926 LIBS="-lpthreads $LIBS"
18928 if test "$cross_compiling" = yes; then :
18929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18930 /* end confdefs.h. */
18932 /* pthread test headers */
18933 #include <pthread.h>
18934 #if HAVE_PTHREADS < 7
18938 #define NULL (void*)0
18941 static void *task(p)
18944 return (void *) (p == NULL);
18951 /* pthread test function */
18952 #ifndef PTHREAD_CREATE_DETACHED
18953 #define PTHREAD_CREATE_DETACHED 1
18957 int detach = PTHREAD_CREATE_DETACHED;
18959 #if HAVE_PTHREADS > 4
18960 /* Final pthreads */
18961 pthread_attr_t attr;
18963 status = pthread_attr_init(&attr);
18964 if( status ) return status;
18966 #if HAVE_PTHREADS < 7
18967 status = pthread_attr_setdetachstate(&attr, &detach);
18968 if( status < 0 ) status = errno;
18970 status = pthread_attr_setdetachstate(&attr, detach);
18972 if( status ) return status;
18973 status = pthread_create( &t, &attr, task, NULL );
18974 #if HAVE_PTHREADS < 7
18975 if( status < 0 ) status = errno;
18977 if( status ) return status;
18979 /* Draft 4 pthreads */
18980 status = pthread_create( &t, pthread_attr_default, task, NULL );
18981 if( status ) return errno;
18983 /* give thread a chance to complete */
18984 /* it should remain joinable and hence detachable */
18987 status = pthread_detach( &t );
18988 if( status ) return errno;
18991 #ifdef HAVE_LINUX_THREADS
18992 pthread_kill_other_threads_np();
19001 if ac_fn_c_try_link "$LINENO"; then :
19002 ol_cv_pthread_lib_lpthreads=yes
19004 ol_cv_pthread_lib_lpthreads=no
19006 rm -f core conftest.err conftest.$ac_objext \
19007 conftest$ac_exeext conftest.$ac_ext
19009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19010 /* end confdefs.h. */
19012 /* pthread test headers */
19013 #include <pthread.h>
19014 #if HAVE_PTHREADS < 7
19018 #define NULL (void*)0
19021 static void *task(p)
19024 return (void *) (p == NULL);
19028 int main(argc, argv)
19033 /* pthread test function */
19034 #ifndef PTHREAD_CREATE_DETACHED
19035 #define PTHREAD_CREATE_DETACHED 1
19039 int detach = PTHREAD_CREATE_DETACHED;
19041 #if HAVE_PTHREADS > 4
19042 /* Final pthreads */
19043 pthread_attr_t attr;
19045 status = pthread_attr_init(&attr);
19046 if( status ) return status;
19048 #if HAVE_PTHREADS < 7
19049 status = pthread_attr_setdetachstate(&attr, &detach);
19050 if( status < 0 ) status = errno;
19052 status = pthread_attr_setdetachstate(&attr, detach);
19054 if( status ) return status;
19055 status = pthread_create( &t, &attr, task, NULL );
19056 #if HAVE_PTHREADS < 7
19057 if( status < 0 ) status = errno;
19059 if( status ) return status;
19061 /* Draft 4 pthreads */
19062 status = pthread_create( &t, pthread_attr_default, task, NULL );
19063 if( status ) return errno;
19065 /* give thread a chance to complete */
19066 /* it should remain joinable and hence detachable */
19069 status = pthread_detach( &t );
19070 if( status ) return errno;
19073 #ifdef HAVE_LINUX_THREADS
19074 pthread_kill_other_threads_np();
19082 if ac_fn_c_try_run "$LINENO"; then :
19083 ol_cv_pthread_lib_lpthreads=yes
19085 ol_cv_pthread_lib_lpthreads=no
19087 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19088 conftest.$ac_objext conftest.beam conftest.$ac_ext
19096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lib_lpthreads" >&5
19097 $as_echo "$ol_cv_pthread_lib_lpthreads" >&6; }
19099 if test $ol_cv_pthread_lib_lpthreads = yes ; then
19100 ol_link_pthreads="-lpthreads"
19101 ol_link_threads=posix
19106 if test $ol_link_threads != no ; then
19107 LTHREAD_LIBS="$LTHREAD_LIBS $ol_link_pthreads"
19109 save_CPPFLAGS="$CPPFLAGS"
19111 LIBS="$LTHREAD_LIBS $LIBS"
19113 for ac_func in sched_yield pthread_yield thr_yield
19115 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19116 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19117 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
19118 cat >>confdefs.h <<_ACEOF
19119 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19126 if test $ac_cv_func_sched_yield = no &&
19127 test $ac_cv_func_pthread_yield = no &&
19128 test $ac_cv_func_thr_yield = no ; then
19129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sched_yield in -lrt" >&5
19130 $as_echo_n "checking for sched_yield in -lrt... " >&6; }
19131 if ${ac_cv_lib_rt_sched_yield+:} false; then :
19132 $as_echo_n "(cached) " >&6
19134 ac_check_lib_save_LIBS=$LIBS
19136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19137 /* end confdefs.h. */
19139 /* Override any GCC internal prototype to avoid an error.
19140 Use char because int might match the return type of a GCC
19141 builtin and then its argument prototype would still apply. */
19145 char sched_yield ();
19149 return sched_yield ();
19154 if ac_fn_c_try_link "$LINENO"; then :
19155 ac_cv_lib_rt_sched_yield=yes
19157 ac_cv_lib_rt_sched_yield=no
19159 rm -f core conftest.err conftest.$ac_objext \
19160 conftest$ac_exeext conftest.$ac_ext
19161 LIBS=$ac_check_lib_save_LIBS
19163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sched_yield" >&5
19164 $as_echo "$ac_cv_lib_rt_sched_yield" >&6; }
19165 if test "x$ac_cv_lib_rt_sched_yield" = xyes; then :
19166 LTHREAD_LIBS="$LTHREAD_LIBS -lrt"
19168 $as_echo "#define HAVE_SCHED_YIELD 1" >>confdefs.h
19170 ac_cv_func_sched_yield=yes
19172 ac_cv_func_sched_yield=no
19176 if test $ac_cv_func_sched_yield = no &&
19177 test $ac_cv_func_pthread_yield = no &&
19178 test "$ac_cv_func_thr_yield" = no ; then
19179 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not locate sched_yield() or pthread_yield()" >&5
19180 $as_echo "$as_me: WARNING: could not locate sched_yield() or pthread_yield()" >&2;}
19183 for ac_func in pthread_kill
19185 ac_fn_c_check_func "$LINENO" "pthread_kill" "ac_cv_func_pthread_kill"
19186 if test "x$ac_cv_func_pthread_kill" = xyes; then :
19187 cat >>confdefs.h <<_ACEOF
19188 #define HAVE_PTHREAD_KILL 1
19195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_rwlock_destroy with <pthread.h>" >&5
19196 $as_echo_n "checking for pthread_rwlock_destroy with <pthread.h>... " >&6; }
19197 if ${ol_cv_func_pthread_rwlock_destroy+:} false; then :
19198 $as_echo_n "(cached) " >&6
19201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19202 /* end confdefs.h. */
19204 #include <pthread.h>
19205 pthread_rwlock_t rwlock;
19210 pthread_rwlock_destroy(&rwlock);
19215 if ac_fn_c_try_link "$LINENO"; then :
19216 ol_cv_func_pthread_rwlock_destroy=yes
19218 ol_cv_func_pthread_rwlock_destroy=no
19220 rm -f core conftest.err conftest.$ac_objext \
19221 conftest$ac_exeext conftest.$ac_ext
19224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_func_pthread_rwlock_destroy" >&5
19225 $as_echo "$ol_cv_func_pthread_rwlock_destroy" >&6; }
19226 if test $ol_cv_func_pthread_rwlock_destroy = yes ; then
19228 $as_echo "#define HAVE_PTHREAD_RWLOCK_DESTROY 1" >>confdefs.h
19232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_detach with <pthread.h>" >&5
19233 $as_echo_n "checking for pthread_detach with <pthread.h>... " >&6; }
19234 if ${ol_cv_func_pthread_detach+:} false; then :
19235 $as_echo_n "(cached) " >&6
19238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19239 /* end confdefs.h. */
19241 #include <pthread.h>
19243 #define NULL (void*)0
19249 pthread_detach(NULL);
19254 if ac_fn_c_try_link "$LINENO"; then :
19255 ol_cv_func_pthread_detach=yes
19257 ol_cv_func_pthread_detach=no
19259 rm -f core conftest.err conftest.$ac_objext \
19260 conftest$ac_exeext conftest.$ac_ext
19263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_func_pthread_detach" >&5
19264 $as_echo "$ol_cv_func_pthread_detach" >&6; }
19266 if test $ol_cv_func_pthread_detach = no ; then
19267 as_fn_error $? "could not locate pthread_detach()" "$LINENO" 5
19271 $as_echo "#define HAVE_PTHREAD_DETACH 1" >>confdefs.h
19275 pthread_setconcurrency \
19276 pthread_getconcurrency \
19277 thr_setconcurrency \
19278 thr_getconcurrency \
19281 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19282 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19283 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
19284 cat >>confdefs.h <<_ACEOF
19285 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19293 for ac_func in pthread_kill_other_threads_np
19295 ac_fn_c_check_func "$LINENO" "pthread_kill_other_threads_np" "ac_cv_func_pthread_kill_other_threads_np"
19296 if test "x$ac_cv_func_pthread_kill_other_threads_np" = xyes; then :
19297 cat >>confdefs.h <<_ACEOF
19298 #define HAVE_PTHREAD_KILL_OTHER_THREADS_NP 1
19304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LinuxThreads implementation" >&5
19305 $as_echo_n "checking for LinuxThreads implementation... " >&6; }
19306 if ${ol_cv_sys_linux_threads+:} false; then :
19307 $as_echo_n "(cached) " >&6
19309 ol_cv_sys_linux_threads=$ac_cv_func_pthread_kill_other_threads_np
19311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_sys_linux_threads" >&5
19312 $as_echo "$ol_cv_sys_linux_threads" >&6; }
19317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LinuxThreads consistency" >&5
19318 $as_echo_n "checking for LinuxThreads consistency... " >&6; }
19319 if ${ol_cv_linux_threads+:} false; then :
19320 $as_echo_n "(cached) " >&6
19323 if test $ol_cv_header_linux_threads = yes &&
19324 test $ol_cv_sys_linux_threads = yes; then
19325 ol_cv_linux_threads=yes
19326 elif test $ol_cv_header_linux_threads = no &&
19327 test $ol_cv_sys_linux_threads = no; then
19328 ol_cv_linux_threads=no
19330 ol_cv_linux_threads=error
19334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_linux_threads" >&5
19335 $as_echo "$ol_cv_linux_threads" >&6; }
19338 if test $ol_cv_linux_threads = error; then
19339 as_fn_error $? "LinuxThreads header/library mismatch" "$LINENO" 5;
19342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if pthread_create() works" >&5
19343 $as_echo_n "checking if pthread_create() works... " >&6; }
19344 if ${ol_cv_pthread_create_works+:} false; then :
19345 $as_echo_n "(cached) " >&6
19348 if test "$cross_compiling" = yes; then :
19349 ol_cv_pthread_create_works=yes
19351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19352 /* end confdefs.h. */
19354 /* pthread test headers */
19355 #include <pthread.h>
19356 #if HAVE_PTHREADS < 7
19360 #define NULL (void*)0
19363 static void *task(p)
19366 return (void *) (p == NULL);
19370 int main(argc, argv)
19375 /* pthread test function */
19376 #ifndef PTHREAD_CREATE_DETACHED
19377 #define PTHREAD_CREATE_DETACHED 1
19381 int detach = PTHREAD_CREATE_DETACHED;
19383 #if HAVE_PTHREADS > 4
19384 /* Final pthreads */
19385 pthread_attr_t attr;
19387 status = pthread_attr_init(&attr);
19388 if( status ) return status;
19390 #if HAVE_PTHREADS < 7
19391 status = pthread_attr_setdetachstate(&attr, &detach);
19392 if( status < 0 ) status = errno;
19394 status = pthread_attr_setdetachstate(&attr, detach);
19396 if( status ) return status;
19397 status = pthread_create( &t, &attr, task, NULL );
19398 #if HAVE_PTHREADS < 7
19399 if( status < 0 ) status = errno;
19401 if( status ) return status;
19403 /* Draft 4 pthreads */
19404 status = pthread_create( &t, pthread_attr_default, task, NULL );
19405 if( status ) return errno;
19407 /* give thread a chance to complete */
19408 /* it should remain joinable and hence detachable */
19411 status = pthread_detach( &t );
19412 if( status ) return errno;
19415 #ifdef HAVE_LINUX_THREADS
19416 pthread_kill_other_threads_np();
19424 if ac_fn_c_try_run "$LINENO"; then :
19425 ol_cv_pthread_create_works=yes
19427 ol_cv_pthread_create_works=no
19429 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19430 conftest.$ac_objext conftest.beam conftest.$ac_ext
19434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_create_works" >&5
19435 $as_echo "$ol_cv_pthread_create_works" >&6; }
19437 if test $ol_cv_pthread_create_works = no ; then
19438 as_fn_error $? "pthread_create is not usable, check environment settings" "$LINENO" 5
19441 ol_replace_broken_yield=no
19443 if test $ol_replace_broken_yield = yes ; then
19445 $as_echo "#define REPLACE_BROKEN_YIELD 1" >>confdefs.h
19449 if test $ol_with_yielding_select = auto ; then
19450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if select yields when using pthreads" >&5
19451 $as_echo_n "checking if select yields when using pthreads... " >&6; }
19452 if ${ol_cv_pthread_select_yields+:} false; then :
19453 $as_echo_n "(cached) " >&6
19456 if test "$cross_compiling" = yes; then :
19457 ol_cv_pthread_select_yields=cross
19459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19460 /* end confdefs.h. */
19462 #include <sys/types.h>
19463 #include <sys/time.h>
19464 #include <unistd.h>
19465 #include <pthread.h>
19467 #define NULL (void*) 0
19470 static int fildes[2];
19472 static void *task(p)
19484 FD_SET(fildes[0], &rfds);
19486 /* we're not interested in any fds */
19487 i = select(FD_SETSIZE, &rfds, NULL, NULL, &tv);
19494 exit(0); /* if we exit here, the select blocked the whole process */
19497 int main(argc, argv)
19503 /* create a pipe to select */
19504 if(pipe(&fildes[0])) {
19509 #ifdef HAVE_PTHREAD_SETCONCURRENCY
19510 (void) pthread_setconcurrency(2);
19512 #ifdef HAVE_THR_SETCONCURRENCY
19513 /* Set Solaris LWP concurrency to 2 */
19514 thr_setconcurrency(2);
19518 #if HAVE_PTHREADS < 6
19519 pthread_create(&t, pthread_attr_default, task, NULL);
19521 pthread_create(&t, NULL, task, NULL);
19524 /* make sure task runs first */
19525 #ifdef HAVE_THR_YIELD
19527 #elif defined( HAVE_SCHED_YIELD )
19529 #elif defined( HAVE_PTHREAD_YIELD )
19536 if ac_fn_c_try_run "$LINENO"; then :
19537 ol_cv_pthread_select_yields=no
19539 ol_cv_pthread_select_yields=yes
19541 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19542 conftest.$ac_objext conftest.beam conftest.$ac_ext
19546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_select_yields" >&5
19547 $as_echo "$ol_cv_pthread_select_yields" >&6; }
19549 if test $ol_cv_pthread_select_yields = cross ; then
19550 as_fn_error $? "crossing compiling: use --with-yielding_select=yes|no|manual" "$LINENO" 5
19553 if test $ol_cv_pthread_select_yields = yes ; then
19554 ol_with_yielding_select=yes
19558 CPPFLAGS="$save_CPPFLAGS"
19561 as_fn_error $? "could not locate usable POSIX Threads" "$LINENO" 5
19565 if test $ol_with_threads = posix ; then
19566 as_fn_error $? "could not locate POSIX Threads" "$LINENO" 5
19571 case $ol_with_threads in auto | yes | mach)
19573 for ac_header in mach/cthreads.h cthreads.h
19575 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19576 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
19577 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
19578 cat >>confdefs.h <<_ACEOF
19579 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19586 if test $ac_cv_header_mach_cthreads_h = yes ; then
19587 ol_with_threads=found
19589 ac_fn_c_check_func "$LINENO" "cthread_fork" "ac_cv_func_cthread_fork"
19590 if test "x$ac_cv_func_cthread_fork" = xyes; then :
19591 ol_link_threads=yes
19595 if test $ol_link_threads = no ; then
19596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cthread_fork with -all_load" >&5
19597 $as_echo_n "checking for cthread_fork with -all_load... " >&6; }
19598 if ${ol_cv_cthread_all_load+:} false; then :
19599 $as_echo_n "(cached) " >&6
19603 LIBS="-all_load $LIBS"
19604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19605 /* end confdefs.h. */
19606 #include <mach/cthreads.h>
19611 cthread_fork((void *)0, (void *)0);
19617 if ac_fn_c_try_link "$LINENO"; then :
19618 ol_cv_cthread_all_load=yes
19620 ol_cv_cthread_all_load=no
19622 rm -f core conftest.err conftest.$ac_objext \
19623 conftest$ac_exeext conftest.$ac_ext
19627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_cthread_all_load" >&5
19628 $as_echo "$ol_cv_cthread_all_load" >&6; }
19630 if test $ol_cv_cthread_all_load = yes ; then
19631 LTHREAD_LIBS="$LTHREAD_LIBS -all_load"
19632 ol_link_threads=mach
19633 ol_with_threads=found
19637 elif test $ac_cv_header_cthreads_h = yes ; then
19639 ol_with_threads=found
19642 LIBS="$LIBS -lthreads"
19643 ac_fn_c_check_func "$LINENO" "cthread_fork" "ac_cv_func_cthread_fork"
19644 if test "x$ac_cv_func_cthread_fork" = xyes; then :
19645 ol_link_threads=yes
19650 if test $ol_link_threads = yes ; then
19651 LTHREAD_LIBS="-lthreads"
19652 ol_link_threads=mach
19653 ol_with_threads=found
19655 as_fn_error $? "could not link with Mach CThreads" "$LINENO" 5
19658 elif test $ol_with_threads = mach ; then
19659 as_fn_error $? "could not locate Mach CThreads" "$LINENO" 5
19662 if test $ol_link_threads = mach ; then
19664 $as_echo "#define HAVE_MACH_CTHREADS 1" >>confdefs.h
19666 elif test $ol_with_threads = found ; then
19667 as_fn_error $? "could not link with Mach CThreads" "$LINENO" 5
19672 case $ol_with_threads in auto | yes | pth)
19674 for ac_header in pth.h
19676 ac_fn_c_check_header_mongrel "$LINENO" "pth.h" "ac_cv_header_pth_h" "$ac_includes_default"
19677 if test "x$ac_cv_header_pth_h" = xyes; then :
19678 cat >>confdefs.h <<_ACEOF
19679 #define HAVE_PTH_H 1
19687 if test $ac_cv_header_pth_h = yes ; then
19688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pth_version in -lpth" >&5
19689 $as_echo_n "checking for pth_version in -lpth... " >&6; }
19690 if ${ac_cv_lib_pth_pth_version+:} false; then :
19691 $as_echo_n "(cached) " >&6
19693 ac_check_lib_save_LIBS=$LIBS
19695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19696 /* end confdefs.h. */
19698 /* Override any GCC internal prototype to avoid an error.
19699 Use char because int might match the return type of a GCC
19700 builtin and then its argument prototype would still apply. */
19704 char pth_version ();
19708 return pth_version ();
19713 if ac_fn_c_try_link "$LINENO"; then :
19714 ac_cv_lib_pth_pth_version=yes
19716 ac_cv_lib_pth_pth_version=no
19718 rm -f core conftest.err conftest.$ac_objext \
19719 conftest$ac_exeext conftest.$ac_ext
19720 LIBS=$ac_check_lib_save_LIBS
19722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pth_pth_version" >&5
19723 $as_echo "$ac_cv_lib_pth_pth_version" >&6; }
19724 if test "x$ac_cv_lib_pth_pth_version" = xyes; then :
19731 if test $have_pth = yes ; then
19733 $as_echo "#define HAVE_GNU_PTH 1" >>confdefs.h
19735 LTHREAD_LIBS="$LTHREAD_LIBS -lpth"
19736 ol_link_threads=pth
19737 ol_with_threads=found
19739 if test $ol_with_yielding_select = auto ; then
19740 ol_with_yielding_select=yes
19747 case $ol_with_threads in auto | yes | lwp)
19749 for ac_header in thread.h synch.h
19751 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19752 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
19753 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
19754 cat >>confdefs.h <<_ACEOF
19755 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19762 if test $ac_cv_header_thread_h = yes &&
19763 test $ac_cv_header_synch_h = yes ; then
19764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thr_create in -lthread" >&5
19765 $as_echo_n "checking for thr_create in -lthread... " >&6; }
19766 if ${ac_cv_lib_thread_thr_create+:} false; then :
19767 $as_echo_n "(cached) " >&6
19769 ac_check_lib_save_LIBS=$LIBS
19770 LIBS="-lthread $LIBS"
19771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19772 /* end confdefs.h. */
19774 /* Override any GCC internal prototype to avoid an error.
19775 Use char because int might match the return type of a GCC
19776 builtin and then its argument prototype would still apply. */
19780 char thr_create ();
19784 return thr_create ();
19789 if ac_fn_c_try_link "$LINENO"; then :
19790 ac_cv_lib_thread_thr_create=yes
19792 ac_cv_lib_thread_thr_create=no
19794 rm -f core conftest.err conftest.$ac_objext \
19795 conftest$ac_exeext conftest.$ac_ext
19796 LIBS=$ac_check_lib_save_LIBS
19798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_thread_thr_create" >&5
19799 $as_echo "$ac_cv_lib_thread_thr_create" >&6; }
19800 if test "x$ac_cv_lib_thread_thr_create" = xyes; then :
19807 if test $have_thr = yes ; then
19809 $as_echo "#define HAVE_THR 1" >>confdefs.h
19811 LTHREAD_LIBS="$LTHREAD_LIBS -lthread"
19812 ol_link_threads=thr
19814 if test $ol_with_yielding_select = auto ; then
19815 ol_with_yielding_select=yes
19819 thr_setconcurrency \
19820 thr_getconcurrency \
19823 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19824 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19825 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
19826 cat >>confdefs.h <<_ACEOF
19827 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19838 if test $ol_with_yielding_select = yes ; then
19840 $as_echo "#define HAVE_YIELDING_SELECT 1" >>confdefs.h
19844 if test $ol_with_threads = manual ; then
19845 ol_link_threads=yes
19847 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: thread defines and link options must be set manually" >&5
19848 $as_echo "$as_me: WARNING: thread defines and link options must be set manually" >&2;}
19850 for ac_header in pthread.h sched.h
19852 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19853 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
19854 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
19855 cat >>confdefs.h <<_ACEOF
19856 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19863 for ac_func in sched_yield pthread_yield
19865 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19866 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19867 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
19868 cat >>confdefs.h <<_ACEOF
19869 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LinuxThreads pthread.h" >&5
19877 $as_echo_n "checking for LinuxThreads pthread.h... " >&6; }
19878 if ${ol_cv_header_linux_threads+:} false; then :
19879 $as_echo_n "(cached) " >&6
19881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19882 /* end confdefs.h. */
19883 #include <pthread.h>
19885 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19886 $EGREP "pthread_kill_other_threads_np" >/dev/null 2>&1; then :
19887 ol_cv_header_linux_threads=yes
19889 ol_cv_header_linux_threads=no
19895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_header_linux_threads" >&5
19896 $as_echo "$ol_cv_header_linux_threads" >&6; }
19897 if test $ol_cv_header_linux_threads = yes; then
19899 $as_echo "#define HAVE_LINUX_THREADS 1" >>confdefs.h
19904 for ac_header in mach/cthreads.h
19906 ac_fn_c_check_header_mongrel "$LINENO" "mach/cthreads.h" "ac_cv_header_mach_cthreads_h" "$ac_includes_default"
19907 if test "x$ac_cv_header_mach_cthreads_h" = xyes; then :
19908 cat >>confdefs.h <<_ACEOF
19909 #define HAVE_MACH_CTHREADS_H 1
19916 for ac_header in thread.h synch.h
19918 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19919 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
19920 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
19921 cat >>confdefs.h <<_ACEOF
19922 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19931 if test $ol_link_threads != no && test $ol_link_threads != nt ; then
19932 $as_echo "#define REENTRANT 1" >>confdefs.h
19934 $as_echo "#define _REENTRANT 1" >>confdefs.h
19936 $as_echo "#define THREAD_SAFE 1" >>confdefs.h
19938 $as_echo "#define _THREAD_SAFE 1" >>confdefs.h
19940 $as_echo "#define THREADSAFE 1" >>confdefs.h
19942 $as_echo "#define _THREADSAFE 1" >>confdefs.h
19944 $as_echo "#define _SGI_MP_SOURCE 1" >>confdefs.h
19947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread specific errno" >&5
19948 $as_echo_n "checking for thread specific errno... " >&6; }
19949 if ${ol_cv_errno_thread_specific+:} false; then :
19950 $as_echo_n "(cached) " >&6
19953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19954 /* end confdefs.h. */
19964 if ac_fn_c_try_link "$LINENO"; then :
19965 ol_cv_errno_thread_specific=yes
19967 ol_cv_errno_thread_specific=no
19969 rm -f core conftest.err conftest.$ac_objext \
19970 conftest$ac_exeext conftest.$ac_ext
19973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_errno_thread_specific" >&5
19974 $as_echo "$ol_cv_errno_thread_specific" >&6; }
19976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread specific h_errno" >&5
19977 $as_echo_n "checking for thread specific h_errno... " >&6; }
19978 if ${ol_cv_h_errno_thread_specific+:} false; then :
19979 $as_echo_n "(cached) " >&6
19982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19983 /* end confdefs.h. */
19993 if ac_fn_c_try_link "$LINENO"; then :
19994 ol_cv_h_errno_thread_specific=yes
19996 ol_cv_h_errno_thread_specific=no
19998 rm -f core conftest.err conftest.$ac_objext \
19999 conftest$ac_exeext conftest.$ac_ext
20002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_h_errno_thread_specific" >&5
20003 $as_echo "$ol_cv_h_errno_thread_specific" >&6; }
20005 if test $ol_cv_errno_thread_specific != yes ||
20006 test $ol_cv_h_errno_thread_specific != yes ; then
20007 LIBS="$LTHREAD_LIBS $LIBS"
20013 if test $ol_link_threads = no ; then
20014 if test $ol_with_threads = yes ; then
20015 as_fn_error $? "no suitable thread support" "$LINENO" 5
20018 if test $ol_with_threads = auto ; then
20019 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no suitable thread support, disabling threads" >&5
20020 $as_echo "$as_me: WARNING: no suitable thread support, disabling threads" >&2;}
20025 $as_echo "#define NO_THREADS 1" >>confdefs.h
20033 if test $ol_link_threads != no ; then
20035 $as_echo "#define LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE 1" >>confdefs.h
20041 gmtime_r localtime_r \
20042 gethostbyname_r gethostbyaddr_r \
20045 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20046 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20047 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
20048 cat >>confdefs.h <<_ACEOF
20049 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20056 if test "$ac_cv_func_ctime_r" = no ; then
20057 ol_cv_func_ctime_r_nargs=0
20059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of arguments of ctime_r" >&5
20060 $as_echo_n "checking number of arguments of ctime_r... " >&6; }
20061 if ${ol_cv_func_ctime_r_nargs+:} false; then :
20062 $as_echo_n "(cached) " >&6
20064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20065 /* end confdefs.h. */
20070 time_t ti; char *buffer; ctime_r(&ti,buffer,32);
20075 if ac_fn_c_try_compile "$LINENO"; then :
20076 ol_cv_func_ctime_r_nargs3=yes
20078 ol_cv_func_ctime_r_nargs3=no
20080 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20083 /* end confdefs.h. */
20088 time_t ti; char *buffer; ctime_r(&ti,buffer);
20093 if ac_fn_c_try_compile "$LINENO"; then :
20094 ol_cv_func_ctime_r_nargs2=yes
20096 ol_cv_func_ctime_r_nargs2=no
20098 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20100 if test $ol_cv_func_ctime_r_nargs3 = yes &&
20101 test $ol_cv_func_ctime_r_nargs2 = no ; then
20103 ol_cv_func_ctime_r_nargs=3
20105 elif test $ol_cv_func_ctime_r_nargs3 = no &&
20106 test $ol_cv_func_ctime_r_nargs2 = yes ; then
20108 ol_cv_func_ctime_r_nargs=2
20111 ol_cv_func_ctime_r_nargs=0
20115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_func_ctime_r_nargs" >&5
20116 $as_echo "$ol_cv_func_ctime_r_nargs" >&6; }
20118 if test $ol_cv_func_ctime_r_nargs -gt 1 ; then
20120 cat >>confdefs.h <<_ACEOF
20121 #define CTIME_R_NARGS $ol_cv_func_ctime_r_nargs
20128 if test "$ac_cv_func_gethostbyname_r" = yes ; then
20129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of arguments of gethostbyname_r" >&5
20130 $as_echo_n "checking number of arguments of gethostbyname_r... " >&6; }
20131 if ${ol_cv_func_gethostbyname_r_nargs+:} false; then :
20132 $as_echo_n "(cached) " >&6
20134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20135 /* end confdefs.h. */
20136 #include <sys/types.h>
20137 #include <sys/socket.h>
20138 #include <netinet/in.h>
20140 #define BUFSIZE (sizeof(struct hostent)+10)
20144 struct hostent hent; char buffer[BUFSIZE];
20145 int bufsize=BUFSIZE;int h_errno;
20146 (void)gethostbyname_r("segovia.cs.purdue.edu", &hent,
20147 buffer, bufsize, &h_errno);
20152 if ac_fn_c_try_compile "$LINENO"; then :
20153 ol_cv_func_gethostbyname_r_nargs5=yes
20155 ol_cv_func_gethostbyname_r_nargs5=no
20157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20160 /* end confdefs.h. */
20161 #include <sys/types.h>
20162 #include <sys/socket.h>
20163 #include <netinet/in.h>
20165 #define BUFSIZE (sizeof(struct hostent)+10)
20169 struct hostent hent;struct hostent *rhent;
20170 char buffer[BUFSIZE];
20171 int bufsize=BUFSIZE;int h_errno;
20172 (void)gethostbyname_r("localhost", &hent, buffer, bufsize,
20178 if ac_fn_c_try_compile "$LINENO"; then :
20179 ol_cv_func_gethostbyname_r_nargs6=yes
20181 ol_cv_func_gethostbyname_r_nargs6=no
20183 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20185 if test $ol_cv_func_gethostbyname_r_nargs5 = yes &&
20186 test $ol_cv_func_gethostbyname_r_nargs6 = no ; then
20188 ol_cv_func_gethostbyname_r_nargs=5
20190 elif test $ol_cv_func_gethostbyname_r_nargs5 = no &&
20191 test $ol_cv_func_gethostbyname_r_nargs6 = yes ; then
20193 ol_cv_func_gethostbyname_r_nargs=6
20196 ol_cv_func_gethostbyname_r_nargs=0
20200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_func_gethostbyname_r_nargs" >&5
20201 $as_echo "$ol_cv_func_gethostbyname_r_nargs" >&6; }
20202 if test $ol_cv_func_gethostbyname_r_nargs -gt 1 ; then
20204 cat >>confdefs.h <<_ACEOF
20205 #define GETHOSTBYNAME_R_NARGS $ol_cv_func_gethostbyname_r_nargs
20211 ol_cv_func_gethostbyname_r_nargs=0
20214 if test "$ac_cv_func_gethostbyaddr_r" = yes ; then
20215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of arguments of gethostbyaddr_r" >&5
20216 $as_echo_n "checking number of arguments of gethostbyaddr_r... " >&6; }
20217 if ${ol_cv_func_gethostbyaddr_r_nargs+:} false; then :
20218 $as_echo_n "(cached) " >&6
20220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20221 /* end confdefs.h. */
20222 #include <sys/types.h>
20223 #include <sys/socket.h>
20224 #include <netinet/in.h>
20226 #define BUFSIZE (sizeof(struct hostent)+10)
20230 struct hostent hent; char buffer[BUFSIZE];
20231 struct in_addr add;
20232 size_t alen=sizeof(struct in_addr);
20233 int bufsize=BUFSIZE;int h_errno;
20234 (void)gethostbyaddr_r( (void *)&(add.s_addr),
20235 alen, AF_INET, &hent, buffer, bufsize, &h_errno);
20240 if ac_fn_c_try_compile "$LINENO"; then :
20241 ol_cv_func_gethostbyaddr_r_nargs7=yes
20243 ol_cv_func_gethostbyaddr_r_nargs7=no
20245 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20248 /* end confdefs.h. */
20249 #include <sys/types.h>
20250 #include <sys/socket.h>
20251 #include <netinet/in.h>
20253 #define BUFSIZE (sizeof(struct hostent)+10)
20257 struct hostent hent;
20258 struct hostent *rhent; char buffer[BUFSIZE];
20259 struct in_addr add;
20260 size_t alen=sizeof(struct in_addr);
20261 int bufsize=BUFSIZE;int h_errno;
20262 (void)gethostbyaddr_r( (void *)&(add.s_addr),
20263 alen, AF_INET, &hent, buffer, bufsize,
20269 if ac_fn_c_try_compile "$LINENO"; then :
20270 ol_cv_func_gethostbyaddr_r_nargs8=yes
20272 ol_cv_func_gethostbyaddr_r_nargs8=no
20274 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20276 if test $ol_cv_func_gethostbyaddr_r_nargs7 = yes &&
20277 test $ol_cv_func_gethostbyaddr_r_nargs8 = no ; then
20279 ol_cv_func_gethostbyaddr_r_nargs=7
20281 elif test $ol_cv_func_gethostbyaddr_r_nargs7 = no &&
20282 test $ol_cv_func_gethostbyaddr_r_nargs8 = yes ; then
20284 ol_cv_func_gethostbyaddr_r_nargs=8
20287 ol_cv_func_gethostbyaddr_r_nargs=0
20291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_func_gethostbyaddr_r_nargs" >&5
20292 $as_echo "$ol_cv_func_gethostbyaddr_r_nargs" >&6; }
20293 if test $ol_cv_func_gethostbyaddr_r_nargs -gt 1 ; then
20295 cat >>confdefs.h <<_ACEOF
20296 #define GETHOSTBYADDR_R_NARGS $ol_cv_func_gethostbyaddr_r_nargs
20302 ol_cv_func_gethostbyaddr_r_nargs=0
20307 if test $ol_enable_bdb/$ol_enable_hdb != no/no; then
20308 ol_cv_berkeley_db=no
20309 for ac_header in db.h
20311 ac_fn_c_check_header_mongrel "$LINENO" "db.h" "ac_cv_header_db_h" "$ac_includes_default"
20312 if test "x$ac_cv_header_db_h" = xyes; then :
20313 cat >>confdefs.h <<_ACEOF
20314 #define HAVE_DB_H 1
20321 if test $ac_cv_header_db_h = yes; then
20322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Berkeley DB major version in db.h" >&5
20323 $as_echo_n "checking for Berkeley DB major version in db.h... " >&6; }
20324 if ${ol_cv_bdb_major+:} false; then :
20325 $as_echo_n "(cached) " >&6
20328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20329 /* end confdefs.h. */
20332 #ifndef DB_VERSION_MAJOR
20333 # define DB_VERSION_MAJOR 1
20335 __db_version DB_VERSION_MAJOR
20338 set X `eval "$ac_cpp conftest.$ac_ext" | $EGREP __db_version` none none
20339 ol_cv_bdb_major=${3}
20342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_bdb_major" >&5
20343 $as_echo "$ol_cv_bdb_major" >&6; }
20344 case $ol_cv_bdb_major in [1-9]*) : ;; *)
20345 as_fn_error $? "Unknown Berkeley DB major version in db.h" "$LINENO" 5 ;;
20348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Berkeley DB minor version in db.h" >&5
20349 $as_echo_n "checking for Berkeley DB minor version in db.h... " >&6; }
20350 if ${ol_cv_bdb_minor+:} false; then :
20351 $as_echo_n "(cached) " >&6
20354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20355 /* end confdefs.h. */
20358 #ifndef DB_VERSION_MINOR
20359 # define DB_VERSION_MINOR 0
20361 __db_version DB_VERSION_MINOR
20364 set X `eval "$ac_cpp conftest.$ac_ext" | $EGREP __db_version` none none
20365 ol_cv_bdb_minor=${3}
20368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_bdb_minor" >&5
20369 $as_echo "$ol_cv_bdb_minor" >&6; }
20370 case $ol_cv_bdb_minor in [0-9]*) : ;; *)
20371 as_fn_error $? "Unknown Berkeley DB minor version in db.h" "$LINENO" 5 ;;
20374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Berkeley DB version supported by BDB/HDB backends" >&5
20375 $as_echo_n "checking if Berkeley DB version supported by BDB/HDB backends... " >&6; }
20376 if ${ol_cv_bdb_compat+:} false; then :
20377 $as_echo_n "(cached) " >&6
20380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20381 /* end confdefs.h. */
20385 /* this check could be improved */
20386 #ifndef DB_VERSION_MAJOR
20387 # define DB_VERSION_MAJOR 1
20389 #ifndef DB_VERSION_MINOR
20390 # define DB_VERSION_MINOR 0
20393 #define DB_VERSION_MM ((DB_VERSION_MAJOR<<8)|DB_VERSION_MINOR)
20395 /* require 4.4 or later */
20396 #if DB_VERSION_MM >= 0x0404
20397 __db_version_compat
20401 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20402 $EGREP "__db_version_compat" >/dev/null 2>&1; then :
20403 ol_cv_bdb_compat=yes
20405 ol_cv_bdb_compat=no
20410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_bdb_compat" >&5
20411 $as_echo "$ol_cv_bdb_compat" >&6; }
20414 if test $ol_cv_bdb_compat != yes ; then
20415 as_fn_error $? "BerkeleyDB version incompatible with BDB/HDB backends" "$LINENO" 5
20420 if test $ol_cv_bdb_major = 5 ; then
20421 if test $ol_cv_lib_db = no ; then
20422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Berkeley DB link (-ldb-5.$ol_cv_bdb_minor)" >&5
20423 $as_echo_n "checking for Berkeley DB link (-ldb-5.$ol_cv_bdb_minor)... " >&6; }
20424 if ${ol_cv_db_db_5_dot_m+:} false; then :
20425 $as_echo_n "(cached) " >&6
20428 ol_DB_LIB=-ldb-5.$ol_cv_bdb_minor
20430 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
20432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20433 /* end confdefs.h. */
20435 #ifdef HAVE_DB_185_H
20436 # include <db_185.h>
20441 #ifndef DB_VERSION_MAJOR
20442 # define DB_VERSION_MAJOR 1
20446 #define NULL ((void*)0)
20453 #if DB_VERSION_MAJOR > 2
20454 db_env_create( NULL, 0 );
20455 #elif DB_VERSION_MAJOR > 1
20456 db_appexit( NULL );
20458 (void) dbopen( NULL, 0, 0, 0, NULL);
20465 if ac_fn_c_try_link "$LINENO"; then :
20466 ol_cv_db_db_5_dot_m=yes
20468 ol_cv_db_db_5_dot_m=no
20470 rm -f core conftest.err conftest.$ac_objext \
20471 conftest$ac_exeext conftest.$ac_ext
20476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_db_db_5_dot_m" >&5
20477 $as_echo "$ol_cv_db_db_5_dot_m" >&6; }
20479 if test $ol_cv_db_db_5_dot_m = yes ; then
20480 ol_cv_lib_db=-ldb-5.$ol_cv_bdb_minor
20484 if test $ol_cv_lib_db = no ; then
20485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Berkeley DB link (-ldb5$ol_cv_bdb_minor)" >&5
20486 $as_echo_n "checking for Berkeley DB link (-ldb5$ol_cv_bdb_minor)... " >&6; }
20487 if ${ol_cv_db_db5m+:} false; then :
20488 $as_echo_n "(cached) " >&6
20491 ol_DB_LIB=-ldb5$ol_cv_bdb_minor
20493 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
20495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20496 /* end confdefs.h. */
20498 #ifdef HAVE_DB_185_H
20499 # include <db_185.h>
20504 #ifndef DB_VERSION_MAJOR
20505 # define DB_VERSION_MAJOR 1
20509 #define NULL ((void*)0)
20516 #if DB_VERSION_MAJOR > 2
20517 db_env_create( NULL, 0 );
20518 #elif DB_VERSION_MAJOR > 1
20519 db_appexit( NULL );
20521 (void) dbopen( NULL, 0, 0, 0, NULL);
20528 if ac_fn_c_try_link "$LINENO"; then :
20533 rm -f core conftest.err conftest.$ac_objext \
20534 conftest$ac_exeext conftest.$ac_ext
20539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_db_db5m" >&5
20540 $as_echo "$ol_cv_db_db5m" >&6; }
20542 if test $ol_cv_db_db5m = yes ; then
20543 ol_cv_lib_db=-ldb5$ol_cv_bdb_minor
20547 if test $ol_cv_lib_db = no ; then
20548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Berkeley DB link (-ldb-5$ol_cv_bdb_minor)" >&5
20549 $as_echo_n "checking for Berkeley DB link (-ldb-5$ol_cv_bdb_minor)... " >&6; }
20550 if ${ol_cv_db_db_5m+:} false; then :
20551 $as_echo_n "(cached) " >&6
20554 ol_DB_LIB=-ldb-5$ol_cv_bdb_minor
20556 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
20558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20559 /* end confdefs.h. */
20561 #ifdef HAVE_DB_185_H
20562 # include <db_185.h>
20567 #ifndef DB_VERSION_MAJOR
20568 # define DB_VERSION_MAJOR 1
20572 #define NULL ((void*)0)
20579 #if DB_VERSION_MAJOR > 2
20580 db_env_create( NULL, 0 );
20581 #elif DB_VERSION_MAJOR > 1
20582 db_appexit( NULL );
20584 (void) dbopen( NULL, 0, 0, 0, NULL);
20591 if ac_fn_c_try_link "$LINENO"; then :
20596 rm -f core conftest.err conftest.$ac_objext \
20597 conftest$ac_exeext conftest.$ac_ext
20602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_db_db_5m" >&5
20603 $as_echo "$ol_cv_db_db_5m" >&6; }
20605 if test $ol_cv_db_db_5m = yes ; then
20606 ol_cv_lib_db=-ldb-5$ol_cv_bdb_minor
20610 if test $ol_cv_lib_db = no ; then
20611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Berkeley DB link (-ldb-5-$ol_cv_bdb_minor)" >&5
20612 $as_echo_n "checking for Berkeley DB link (-ldb-5-$ol_cv_bdb_minor)... " >&6; }
20613 if ${ol_cv_db_db_5_m+:} false; then :
20614 $as_echo_n "(cached) " >&6
20617 ol_DB_LIB=-ldb-5-$ol_cv_bdb_minor
20619 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
20621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20622 /* end confdefs.h. */
20624 #ifdef HAVE_DB_185_H
20625 # include <db_185.h>
20630 #ifndef DB_VERSION_MAJOR
20631 # define DB_VERSION_MAJOR 1
20635 #define NULL ((void*)0)
20642 #if DB_VERSION_MAJOR > 2
20643 db_env_create( NULL, 0 );
20644 #elif DB_VERSION_MAJOR > 1
20645 db_appexit( NULL );
20647 (void) dbopen( NULL, 0, 0, 0, NULL);
20654 if ac_fn_c_try_link "$LINENO"; then :
20655 ol_cv_db_db_5_m=yes
20659 rm -f core conftest.err conftest.$ac_objext \
20660 conftest$ac_exeext conftest.$ac_ext
20665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_db_db_5_m" >&5
20666 $as_echo "$ol_cv_db_db_5_m" >&6; }
20668 if test $ol_cv_db_db_5_m = yes ; then
20669 ol_cv_lib_db=-ldb-5-$ol_cv_bdb_minor
20673 if test $ol_cv_lib_db = no ; then
20674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Berkeley DB link (-ldb-5)" >&5
20675 $as_echo_n "checking for Berkeley DB link (-ldb-5)... " >&6; }
20676 if ${ol_cv_db_db_5+:} false; then :
20677 $as_echo_n "(cached) " >&6
20682 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
20684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20685 /* end confdefs.h. */
20687 #ifdef HAVE_DB_185_H
20688 # include <db_185.h>
20693 #ifndef DB_VERSION_MAJOR
20694 # define DB_VERSION_MAJOR 1
20698 #define NULL ((void*)0)
20705 #if DB_VERSION_MAJOR > 2
20706 db_env_create( NULL, 0 );
20707 #elif DB_VERSION_MAJOR > 1
20708 db_appexit( NULL );
20710 (void) dbopen( NULL, 0, 0, 0, NULL);
20717 if ac_fn_c_try_link "$LINENO"; then :
20722 rm -f core conftest.err conftest.$ac_objext \
20723 conftest$ac_exeext conftest.$ac_ext
20728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_db_db_5" >&5
20729 $as_echo "$ol_cv_db_db_5" >&6; }
20731 if test $ol_cv_db_db_5 = yes ; then
20732 ol_cv_lib_db=-ldb-5
20736 if test $ol_cv_lib_db = no ; then
20737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Berkeley DB link (-ldb5)" >&5
20738 $as_echo_n "checking for Berkeley DB link (-ldb5)... " >&6; }
20739 if ${ol_cv_db_db5+:} false; then :
20740 $as_echo_n "(cached) " >&6
20745 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
20747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20748 /* end confdefs.h. */
20750 #ifdef HAVE_DB_185_H
20751 # include <db_185.h>
20756 #ifndef DB_VERSION_MAJOR
20757 # define DB_VERSION_MAJOR 1
20761 #define NULL ((void*)0)
20768 #if DB_VERSION_MAJOR > 2
20769 db_env_create( NULL, 0 );
20770 #elif DB_VERSION_MAJOR > 1
20771 db_appexit( NULL );
20773 (void) dbopen( NULL, 0, 0, 0, NULL);
20780 if ac_fn_c_try_link "$LINENO"; then :
20785 rm -f core conftest.err conftest.$ac_objext \
20786 conftest$ac_exeext conftest.$ac_ext
20791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_db_db5" >&5
20792 $as_echo "$ol_cv_db_db5" >&6; }
20794 if test $ol_cv_db_db5 = yes ; then
20799 elif test $ol_cv_bdb_major = 4 ; then
20800 if test $ol_cv_lib_db = no ; then
20801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Berkeley DB link (-ldb-4.$ol_cv_bdb_minor)" >&5
20802 $as_echo_n "checking for Berkeley DB link (-ldb-4.$ol_cv_bdb_minor)... " >&6; }
20803 if ${ol_cv_db_db_4_dot_m+:} false; then :
20804 $as_echo_n "(cached) " >&6
20807 ol_DB_LIB=-ldb-4.$ol_cv_bdb_minor
20809 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
20811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20812 /* end confdefs.h. */
20814 #ifdef HAVE_DB_185_H
20815 # include <db_185.h>
20820 #ifndef DB_VERSION_MAJOR
20821 # define DB_VERSION_MAJOR 1
20825 #define NULL ((void*)0)
20832 #if DB_VERSION_MAJOR > 2
20833 db_env_create( NULL, 0 );
20834 #elif DB_VERSION_MAJOR > 1
20835 db_appexit( NULL );
20837 (void) dbopen( NULL, 0, 0, 0, NULL);
20844 if ac_fn_c_try_link "$LINENO"; then :
20845 ol_cv_db_db_4_dot_m=yes
20847 ol_cv_db_db_4_dot_m=no
20849 rm -f core conftest.err conftest.$ac_objext \
20850 conftest$ac_exeext conftest.$ac_ext
20855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_db_db_4_dot_m" >&5
20856 $as_echo "$ol_cv_db_db_4_dot_m" >&6; }
20858 if test $ol_cv_db_db_4_dot_m = yes ; then
20859 ol_cv_lib_db=-ldb-4.$ol_cv_bdb_minor
20863 if test $ol_cv_lib_db = no ; then
20864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Berkeley DB link (-ldb4$ol_cv_bdb_minor)" >&5
20865 $as_echo_n "checking for Berkeley DB link (-ldb4$ol_cv_bdb_minor)... " >&6; }
20866 if ${ol_cv_db_db4m+:} false; then :
20867 $as_echo_n "(cached) " >&6
20870 ol_DB_LIB=-ldb4$ol_cv_bdb_minor
20872 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
20874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20875 /* end confdefs.h. */
20877 #ifdef HAVE_DB_185_H
20878 # include <db_185.h>
20883 #ifndef DB_VERSION_MAJOR
20884 # define DB_VERSION_MAJOR 1
20888 #define NULL ((void*)0)
20895 #if DB_VERSION_MAJOR > 2
20896 db_env_create( NULL, 0 );
20897 #elif DB_VERSION_MAJOR > 1
20898 db_appexit( NULL );
20900 (void) dbopen( NULL, 0, 0, 0, NULL);
20907 if ac_fn_c_try_link "$LINENO"; then :
20912 rm -f core conftest.err conftest.$ac_objext \
20913 conftest$ac_exeext conftest.$ac_ext
20918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_db_db4m" >&5
20919 $as_echo "$ol_cv_db_db4m" >&6; }
20921 if test $ol_cv_db_db4m = yes ; then
20922 ol_cv_lib_db=-ldb4$ol_cv_bdb_minor
20926 if test $ol_cv_lib_db = no ; then
20927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Berkeley DB link (-ldb-4$ol_cv_bdb_minor)" >&5
20928 $as_echo_n "checking for Berkeley DB link (-ldb-4$ol_cv_bdb_minor)... " >&6; }
20929 if ${ol_cv_db_db_4m+:} false; then :
20930 $as_echo_n "(cached) " >&6
20933 ol_DB_LIB=-ldb-4$ol_cv_bdb_minor
20935 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
20937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20938 /* end confdefs.h. */
20940 #ifdef HAVE_DB_185_H
20941 # include <db_185.h>
20946 #ifndef DB_VERSION_MAJOR
20947 # define DB_VERSION_MAJOR 1
20951 #define NULL ((void*)0)
20958 #if DB_VERSION_MAJOR > 2
20959 db_env_create( NULL, 0 );
20960 #elif DB_VERSION_MAJOR > 1
20961 db_appexit( NULL );
20963 (void) dbopen( NULL, 0, 0, 0, NULL);
20970 if ac_fn_c_try_link "$LINENO"; then :
20975 rm -f core conftest.err conftest.$ac_objext \
20976 conftest$ac_exeext conftest.$ac_ext
20981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_db_db_4m" >&5
20982 $as_echo "$ol_cv_db_db_4m" >&6; }
20984 if test $ol_cv_db_db_4m = yes ; then
20985 ol_cv_lib_db=-ldb-4$ol_cv_bdb_minor
20989 if test $ol_cv_lib_db = no ; then
20990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Berkeley DB link (-ldb-4-$ol_cv_bdb_minor)" >&5
20991 $as_echo_n "checking for Berkeley DB link (-ldb-4-$ol_cv_bdb_minor)... " >&6; }
20992 if ${ol_cv_db_db_4_m+:} false; then :
20993 $as_echo_n "(cached) " >&6
20996 ol_DB_LIB=-ldb-4-$ol_cv_bdb_minor
20998 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
21000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21001 /* end confdefs.h. */
21003 #ifdef HAVE_DB_185_H
21004 # include <db_185.h>
21009 #ifndef DB_VERSION_MAJOR
21010 # define DB_VERSION_MAJOR 1
21014 #define NULL ((void*)0)
21021 #if DB_VERSION_MAJOR > 2
21022 db_env_create( NULL, 0 );
21023 #elif DB_VERSION_MAJOR > 1
21024 db_appexit( NULL );
21026 (void) dbopen( NULL, 0, 0, 0, NULL);
21033 if ac_fn_c_try_link "$LINENO"; then :
21034 ol_cv_db_db_4_m=yes
21038 rm -f core conftest.err conftest.$ac_objext \
21039 conftest$ac_exeext conftest.$ac_ext
21044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_db_db_4_m" >&5
21045 $as_echo "$ol_cv_db_db_4_m" >&6; }
21047 if test $ol_cv_db_db_4_m = yes ; then
21048 ol_cv_lib_db=-ldb-4-$ol_cv_bdb_minor
21052 if test $ol_cv_lib_db = no ; then
21053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Berkeley DB link (-ldb-4)" >&5
21054 $as_echo_n "checking for Berkeley DB link (-ldb-4)... " >&6; }
21055 if ${ol_cv_db_db_4+:} false; then :
21056 $as_echo_n "(cached) " >&6
21061 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
21063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21064 /* end confdefs.h. */
21066 #ifdef HAVE_DB_185_H
21067 # include <db_185.h>
21072 #ifndef DB_VERSION_MAJOR
21073 # define DB_VERSION_MAJOR 1
21077 #define NULL ((void*)0)
21084 #if DB_VERSION_MAJOR > 2
21085 db_env_create( NULL, 0 );
21086 #elif DB_VERSION_MAJOR > 1
21087 db_appexit( NULL );
21089 (void) dbopen( NULL, 0, 0, 0, NULL);
21096 if ac_fn_c_try_link "$LINENO"; then :
21101 rm -f core conftest.err conftest.$ac_objext \
21102 conftest$ac_exeext conftest.$ac_ext
21107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_db_db_4" >&5
21108 $as_echo "$ol_cv_db_db_4" >&6; }
21110 if test $ol_cv_db_db_4 = yes ; then
21111 ol_cv_lib_db=-ldb-4
21115 if test $ol_cv_lib_db = no ; then
21116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Berkeley DB link (-ldb4)" >&5
21117 $as_echo_n "checking for Berkeley DB link (-ldb4)... " >&6; }
21118 if ${ol_cv_db_db4+:} false; then :
21119 $as_echo_n "(cached) " >&6
21124 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
21126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21127 /* end confdefs.h. */
21129 #ifdef HAVE_DB_185_H
21130 # include <db_185.h>
21135 #ifndef DB_VERSION_MAJOR
21136 # define DB_VERSION_MAJOR 1
21140 #define NULL ((void*)0)
21147 #if DB_VERSION_MAJOR > 2
21148 db_env_create( NULL, 0 );
21149 #elif DB_VERSION_MAJOR > 1
21150 db_appexit( NULL );
21152 (void) dbopen( NULL, 0, 0, 0, NULL);
21159 if ac_fn_c_try_link "$LINENO"; then :
21164 rm -f core conftest.err conftest.$ac_objext \
21165 conftest$ac_exeext conftest.$ac_ext
21170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_db_db4" >&5
21171 $as_echo "$ol_cv_db_db4" >&6; }
21173 if test $ol_cv_db_db4 = yes ; then
21179 if test $ol_cv_lib_db = no ; then
21180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Berkeley DB link (-ldb)" >&5
21181 $as_echo_n "checking for Berkeley DB link (-ldb)... " >&6; }
21182 if ${ol_cv_db_db+:} false; then :
21183 $as_echo_n "(cached) " >&6
21188 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
21190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21191 /* end confdefs.h. */
21193 #ifdef HAVE_DB_185_H
21194 # include <db_185.h>
21199 #ifndef DB_VERSION_MAJOR
21200 # define DB_VERSION_MAJOR 1
21204 #define NULL ((void*)0)
21211 #if DB_VERSION_MAJOR > 2
21212 db_env_create( NULL, 0 );
21213 #elif DB_VERSION_MAJOR > 1
21214 db_appexit( NULL );
21216 (void) dbopen( NULL, 0, 0, 0, NULL);
21223 if ac_fn_c_try_link "$LINENO"; then :
21228 rm -f core conftest.err conftest.$ac_objext \
21229 conftest$ac_exeext conftest.$ac_ext
21234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_db_db" >&5
21235 $as_echo "$ol_cv_db_db" >&6; }
21237 if test $ol_cv_db_db = yes ; then
21242 if test $ol_cv_lib_db = no ; then
21243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Berkeley DB link (default)" >&5
21244 $as_echo_n "checking for Berkeley DB link (default)... " >&6; }
21245 if ${ol_cv_db_none+:} false; then :
21246 $as_echo_n "(cached) " >&6
21251 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
21253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21254 /* end confdefs.h. */
21256 #ifdef HAVE_DB_185_H
21257 # include <db_185.h>
21262 #ifndef DB_VERSION_MAJOR
21263 # define DB_VERSION_MAJOR 1
21267 #define NULL ((void*)0)
21274 #if DB_VERSION_MAJOR > 2
21275 db_env_create( NULL, 0 );
21276 #elif DB_VERSION_MAJOR > 1
21277 db_appexit( NULL );
21279 (void) dbopen( NULL, 0, 0, 0, NULL);
21286 if ac_fn_c_try_link "$LINENO"; then :
21291 rm -f core conftest.err conftest.$ac_objext \
21292 conftest$ac_exeext conftest.$ac_ext
21297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_db_none" >&5
21298 $as_echo "$ol_cv_db_none" >&6; }
21300 if test $ol_cv_db_none = yes ; then
21306 if test "$ol_cv_lib_db" != no ; then
21307 ol_cv_berkeley_db=yes
21308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Berkeley DB library and header version match" >&5
21309 $as_echo_n "checking for Berkeley DB library and header version match... " >&6; }
21310 if ${ol_cv_berkeley_db_version+:} false; then :
21311 $as_echo_n "(cached) " >&6
21315 LIBS="$LTHREAD_LIBS $LIBS"
21316 if test $ol_cv_lib_db != yes ; then
21317 LIBS="$ol_cv_lib_db $LIBS"
21320 if test "$cross_compiling" = yes; then :
21321 ol_cv_berkeley_db_version=cross
21323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21324 /* end confdefs.h. */
21326 #ifdef HAVE_DB_185_H
21331 #ifndef DB_VERSION_MAJOR
21332 # define DB_VERSION_MAJOR 1
21335 #define NULL ((void *)0)
21339 #if DB_VERSION_MAJOR > 1
21341 int major, minor, patch;
21343 version = db_version( &major, &minor, &patch );
21345 if( major != DB_VERSION_MAJOR ||
21346 minor != DB_VERSION_MINOR ||
21347 patch != DB_VERSION_PATCH )
21349 printf("Berkeley DB version mismatch\n"
21350 "\theader: %s\n\tlibrary: %s\n",
21351 DB_VERSION_STRING, version);
21359 if ac_fn_c_try_run "$LINENO"; then :
21360 ol_cv_berkeley_db_version=yes
21362 ol_cv_berkeley_db_version=no
21364 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21365 conftest.$ac_objext conftest.beam conftest.$ac_ext
21372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_berkeley_db_version" >&5
21373 $as_echo "$ol_cv_berkeley_db_version" >&6; }
21375 if test $ol_cv_berkeley_db_version = no ; then
21376 as_fn_error $? "Berkeley DB version mismatch" "$LINENO" 5
21379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Berkeley DB thread support" >&5
21380 $as_echo_n "checking for Berkeley DB thread support... " >&6; }
21381 if ${ol_cv_berkeley_db_thread+:} false; then :
21382 $as_echo_n "(cached) " >&6
21386 LIBS="$LTHREAD_LIBS $LIBS"
21387 if test $ol_cv_lib_db != yes ; then
21388 LIBS="$ol_cv_lib_db $LIBS"
21391 if test "$cross_compiling" = yes; then :
21392 ol_cv_berkeley_db_thread=cross
21394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21395 /* end confdefs.h. */
21397 #ifdef HAVE_DB_185_H
21403 #define NULL ((void *)0)
21408 u_int32_t flags = DB_CREATE |
21414 #if DB_VERSION_MAJOR > 2
21415 DB_ENV *env = NULL;
21417 rc = db_env_create( &env, 0 );
21419 flags |= DB_INIT_MPOOL;
21420 #ifdef DB_MPOOL_PRIVATE
21421 flags |= DB_MPOOL_PRIVATE;
21425 printf("BerkeleyDB: %s\n", db_strerror(rc) );
21429 #if (DB_VERSION_MAJOR > 3) || (DB_VERSION_MINOR >= 1)
21430 rc = (env->open)( env, NULL, flags, 0 );
21432 rc = (env->open)( env, NULL, NULL, flags, 0 );
21436 rc = env->close( env, 0 );
21440 printf("BerkeleyDB: %s\n", db_strerror(rc) );
21446 memset( &env, '\0', sizeof(env) );
21448 rc = db_appinit( NULL, NULL, &env, flags );
21451 db_appexit( &env );
21454 unlink("__db_mpool.share");
21455 unlink("__db_lock.share");
21461 if ac_fn_c_try_run "$LINENO"; then :
21462 ol_cv_berkeley_db_thread=yes
21464 ol_cv_berkeley_db_thread=no
21466 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21467 conftest.$ac_objext conftest.beam conftest.$ac_ext
21474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_berkeley_db_thread" >&5
21475 $as_echo "$ol_cv_berkeley_db_thread" >&6; }
21477 if test $ol_cv_berkeley_db_thread != no ; then
21479 $as_echo "#define HAVE_BERKELEY_DB_THREAD 1" >>confdefs.h
21487 if test $ol_cv_berkeley_db = no ; then
21488 as_fn_error $? "BDB/HDB: BerkeleyDB not available" "$LINENO" 5
21492 $as_echo "#define HAVE_BERKELEY_DB 1" >>confdefs.h
21495 if test $ol_cv_lib_db != yes ; then
21496 BDB_LIBS="$BDB_LIBS $ol_cv_lib_db"
21499 SLAPD_LIBS="$SLAPD_LIBS \$(BDB_LIBS)"
21505 if test $ol_enable_dynamic = yes && test $enable_shared = yes ; then
21506 BUILD_LIBS_DYNAMIC=shared
21508 $as_echo "#define LDAP_LIBS_DYNAMIC 1" >>confdefs.h
21512 BUILD_LIBS_DYNAMIC=static
21516 if test $ol_enable_wrappers != no ; then
21517 for ac_header in tcpd.h
21519 ac_fn_c_check_header_mongrel "$LINENO" "tcpd.h" "ac_cv_header_tcpd_h" "$ac_includes_default"
21520 if test "x$ac_cv_header_tcpd_h" = xyes; then :
21521 cat >>confdefs.h <<_ACEOF
21522 #define HAVE_TCPD_H 1
21525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TCP wrappers library" >&5
21526 $as_echo_n "checking for TCP wrappers library... " >&6; }
21528 LIBS="$LIBS -lwrap"
21529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21530 /* end confdefs.h. */
21533 int allow_severity = 0;
21534 int deny_severity = 0;
21536 struct request_info *req;
21548 if ac_fn_c_try_link "$LINENO"; then :
21549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -lwrap" >&5
21550 $as_echo "-lwrap" >&6; }
21556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21557 /* end confdefs.h. */
21560 int allow_severity = 0;
21561 int deny_severity = 0;
21563 struct request_info *req;
21575 if ac_fn_c_try_link "$LINENO"; then :
21576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -lwrap -lnsl" >&5
21577 $as_echo "-lwrap -lnsl" >&6; }
21579 LIBS="$save_LIBS -lnsl"
21582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21583 $as_echo "no" >&6; }
21587 rm -f core conftest.err conftest.$ac_objext \
21588 conftest$ac_exeext conftest.$ac_ext
21590 rm -f core conftest.err conftest.$ac_objext \
21591 conftest$ac_exeext conftest.$ac_ext
21599 if test $have_wrappers = yes ; then
21601 $as_echo "#define HAVE_TCPD 1" >>confdefs.h
21604 elif test $ol_enable_wrappers = yes ; then
21605 as_fn_error $? "could not find TCP wrappers, select apppropriate options or disable" "$LINENO" 5
21607 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find TCP wrappers, support disabled" >&5
21608 $as_echo "$as_me: WARNING: could not find TCP wrappers, support disabled" >&2;}
21613 if test $ol_enable_syslog != no ; then
21614 ac_fn_c_check_func "$LINENO" "openlog" "ac_cv_func_openlog"
21615 if test "x$ac_cv_func_openlog" = xyes; then :
21619 if test $ac_cv_func_openlog = no && test $ol_enable_syslog = yes; then
21620 as_fn_error select appropriate options or disable "could not find syslog" "$LINENO" 5
21622 ol_enable_syslog=$ac_cv_func_openlog
21626 if test $ol_enable_sql != no ; then
21627 for ac_header in sql.h sqlext.h
21629 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21630 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
21631 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
21632 cat >>confdefs.h <<_ACEOF
21633 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21638 as_fn_error $? "could not locate SQL headers" "$LINENO" 5
21646 LIBS="$LTHREAD_LIBS"
21648 if test $ol_with_odbc = auto ; then
21649 ol_with_odbc="iodbc unixodbc odbc32"
21652 for odbc in $ol_with_odbc ; do
21653 if test $ol_link_sql = no ; then
21656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SQLDriverConnect in -liodbc" >&5
21657 $as_echo_n "checking for SQLDriverConnect in -liodbc... " >&6; }
21658 if ${ac_cv_lib_iodbc_SQLDriverConnect+:} false; then :
21659 $as_echo_n "(cached) " >&6
21661 ac_check_lib_save_LIBS=$LIBS
21662 LIBS="-liodbc $LIBS"
21663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21664 /* end confdefs.h. */
21666 /* Override any GCC internal prototype to avoid an error.
21667 Use char because int might match the return type of a GCC
21668 builtin and then its argument prototype would still apply. */
21672 char SQLDriverConnect ();
21676 return SQLDriverConnect ();
21681 if ac_fn_c_try_link "$LINENO"; then :
21682 ac_cv_lib_iodbc_SQLDriverConnect=yes
21684 ac_cv_lib_iodbc_SQLDriverConnect=no
21686 rm -f core conftest.err conftest.$ac_objext \
21687 conftest$ac_exeext conftest.$ac_ext
21688 LIBS=$ac_check_lib_save_LIBS
21690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_iodbc_SQLDriverConnect" >&5
21691 $as_echo "$ac_cv_lib_iodbc_SQLDriverConnect" >&6; }
21692 if test "x$ac_cv_lib_iodbc_SQLDriverConnect" = xyes; then :
21698 if test $have_iodbc = yes ; then
21699 ol_link_sql="-liodbc"
21704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SQLDriverConnect in -lodbc" >&5
21705 $as_echo_n "checking for SQLDriverConnect in -lodbc... " >&6; }
21706 if ${ac_cv_lib_odbc_SQLDriverConnect+:} false; then :
21707 $as_echo_n "(cached) " >&6
21709 ac_check_lib_save_LIBS=$LIBS
21710 LIBS="-lodbc $LIBS"
21711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21712 /* end confdefs.h. */
21714 /* Override any GCC internal prototype to avoid an error.
21715 Use char because int might match the return type of a GCC
21716 builtin and then its argument prototype would still apply. */
21720 char SQLDriverConnect ();
21724 return SQLDriverConnect ();
21729 if ac_fn_c_try_link "$LINENO"; then :
21730 ac_cv_lib_odbc_SQLDriverConnect=yes
21732 ac_cv_lib_odbc_SQLDriverConnect=no
21734 rm -f core conftest.err conftest.$ac_objext \
21735 conftest$ac_exeext conftest.$ac_ext
21736 LIBS=$ac_check_lib_save_LIBS
21738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_odbc_SQLDriverConnect" >&5
21739 $as_echo "$ac_cv_lib_odbc_SQLDriverConnect" >&6; }
21740 if test "x$ac_cv_lib_odbc_SQLDriverConnect" = xyes; then :
21746 if test $have_odbc = yes ; then
21747 ol_link_sql="-lodbc"
21752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SQLDriverConnect in -lodbc32" >&5
21753 $as_echo_n "checking for SQLDriverConnect in -lodbc32... " >&6; }
21754 if ${ac_cv_lib_odbc32_SQLDriverConnect+:} false; then :
21755 $as_echo_n "(cached) " >&6
21757 ac_check_lib_save_LIBS=$LIBS
21758 LIBS="-lodbc32 $LIBS"
21759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21760 /* end confdefs.h. */
21762 /* Override any GCC internal prototype to avoid an error.
21763 Use char because int might match the return type of a GCC
21764 builtin and then its argument prototype would still apply. */
21768 char SQLDriverConnect ();
21772 return SQLDriverConnect ();
21777 if ac_fn_c_try_link "$LINENO"; then :
21778 ac_cv_lib_odbc32_SQLDriverConnect=yes
21780 ac_cv_lib_odbc32_SQLDriverConnect=no
21782 rm -f core conftest.err conftest.$ac_objext \
21783 conftest$ac_exeext conftest.$ac_ext
21784 LIBS=$ac_check_lib_save_LIBS
21786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_odbc32_SQLDriverConnect" >&5
21787 $as_echo "$ac_cv_lib_odbc32_SQLDriverConnect" >&6; }
21788 if test "x$ac_cv_lib_odbc32_SQLDriverConnect" = xyes; then :
21795 if test $have_odbc32 = no ; then
21796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SQLDriverConnect in -lodbc32 with windows.h" >&5
21797 $as_echo_n "checking for SQLDriverConnect in -lodbc32 with windows.h... " >&6; }
21799 LIBS="$LIBS -lodbc32"
21800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21801 /* end confdefs.h. */
21802 #include <windows.h>
21803 #include <sqlext.h>
21809 SQLDriverConnect(NULL,NULL,NULL,0,NULL,0,NULL,0);
21815 if ac_fn_c_try_link "$LINENO"; then :
21820 rm -f core conftest.err conftest.$ac_objext \
21821 conftest$ac_exeext conftest.$ac_ext
21823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_odbc32" >&5
21824 $as_echo "$have_odbc32" >&6; }
21827 if test $have_odbc32 = yes ; then
21828 ol_link_sql="-lodbc32"
21833 as_fn_error $? "unknown ODBC library" "$LINENO" 5
21841 if test $ol_link_sql != no ; then
21842 SLAPD_SQL_LIBS="$ol_link_sql"
21844 elif test $ol_enable_sql != auto ; then
21845 as_fn_error $? "could not locate suitable ODBC library" "$LINENO" 5
21850 if test $ol_enable_ndb != no ; then
21851 # Extract the first word of "mysql_config", so it can be a program name with args.
21852 set dummy mysql_config; ac_word=$2
21853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21854 $as_echo_n "checking for $ac_word... " >&6; }
21855 if ${ac_cv_prog_MYSQL+:} false; then :
21856 $as_echo_n "(cached) " >&6
21858 if test -n "$MYSQL"; then
21859 ac_cv_prog_MYSQL="$MYSQL" # Let the user override the test.
21861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21862 for as_dir in $PATH
21865 test -z "$as_dir" && as_dir=.
21866 for ac_exec_ext in '' $ac_executable_extensions; do
21867 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21868 ac_cv_prog_MYSQL="yes"
21869 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21878 MYSQL=$ac_cv_prog_MYSQL
21879 if test -n "$MYSQL"; then
21880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MYSQL" >&5
21881 $as_echo "$MYSQL" >&6; }
21883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21884 $as_echo "no" >&6; }
21888 if test "$MYSQL" != yes ; then
21889 as_fn_error $? "could not locate mysql_config" "$LINENO" 5
21892 SQL_INC=`mysql_config --include`
21893 SLAPD_NDB_INCS="$SQL_INC $SQL_INC/storage/ndb $SQL_INC/storage/ndb/ndbapi"
21895 save_CPPFLAGS="$CPPFLAGS"
21896 CPPFLAGS="$SLAPD_NDB_INCS"
21897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NdbApi.hpp" >&5
21898 $as_echo_n "checking for NdbApi.hpp... " >&6; }
21899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21900 /* end confdefs.h. */
21901 #include <NdbApi.hpp>
21903 if ac_fn_c_try_cpp "$LINENO"; then :
21904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21905 $as_echo "yes" >&6; }
21907 as_fn_error $? "could not locate NdbApi headers" "$LINENO" 5
21910 rm -f conftest.err conftest.i conftest.$ac_ext
21911 CPPFLAGS="$save_CPPFLAGS"
21913 SQL_LIB=`mysql_config --libs_r`
21914 SLAPD_NDB_LIBS="$SQL_LIB -lndbclient -lstdc++"
21916 save_LDFLAGS="$LDFLAGS"
21919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ndb_init in -lndbclient" >&5
21920 $as_echo_n "checking for ndb_init in -lndbclient... " >&6; }
21921 if ${ac_cv_lib_ndbclient_ndb_init+:} false; then :
21922 $as_echo_n "(cached) " >&6
21924 ac_check_lib_save_LIBS=$LIBS
21925 LIBS="-lndbclient -lstdc++ $LIBS"
21926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21927 /* end confdefs.h. */
21929 /* Override any GCC internal prototype to avoid an error.
21930 Use char because int might match the return type of a GCC
21931 builtin and then its argument prototype would still apply. */
21939 return ndb_init ();
21944 if ac_fn_c_try_link "$LINENO"; then :
21945 ac_cv_lib_ndbclient_ndb_init=yes
21947 ac_cv_lib_ndbclient_ndb_init=no
21949 rm -f core conftest.err conftest.$ac_objext \
21950 conftest$ac_exeext conftest.$ac_ext
21951 LIBS=$ac_check_lib_save_LIBS
21953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ndbclient_ndb_init" >&5
21954 $as_echo "$ac_cv_lib_ndbclient_ndb_init" >&6; }
21955 if test "x$ac_cv_lib_ndbclient_ndb_init" = xyes; then :
21959 as_fn_error $? "could not locate ndbclient library" "$LINENO" 5
21964 LDFLAGS="$save_LDFLAGS"
21966 if test "$ol_enable_ndb" = yes ; then
21967 SLAPD_LIBS="$SLAPD_LIBS \$(SLAPD_NDB_LIBS)"
21972 for ac_header in unicode/utypes.h
21974 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21975 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
21976 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
21977 cat >>confdefs.h <<_ACEOF
21978 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21985 if test $ac_cv_header_unicode_utypes_h = yes ; then
21986 OL_ICULIBS="-licuuc -licudata"
21988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ICU libraries" >&5
21989 $as_echo_n "checking for ICU libraries... " >&6; }
21990 if ${ol_cv_lib_icu+:} false; then :
21991 $as_echo_n "(cached) " >&6
21995 LIBS="$OL_ICULIBS $LIBS"
21996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21997 /* end confdefs.h. */
21999 #include <unicode/utypes.h>
22005 (void) u_errorName(0);
22011 if ac_fn_c_try_link "$LINENO"; then :
22016 rm -f core conftest.err conftest.$ac_objext \
22017 conftest$ac_exeext conftest.$ac_ext
22021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_lib_icu" >&5
22022 $as_echo "$ol_cv_lib_icu" >&6; }
22024 if test $ol_cv_lib_icu != no ; then
22025 ol_icu="$OL_ICULIBS"
22027 $as_echo "#define HAVE_ICU 1" >>confdefs.h
22032 if test "$ol_icu" = no ; then
22033 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ICU not available" >&5
22034 $as_echo "$as_me: WARNING: ICU not available" >&2;}
22041 if test $ol_with_cyrus_sasl != no ; then
22042 for ac_header in sasl/sasl.h sasl.h
22044 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22045 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
22046 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22047 cat >>confdefs.h <<_ACEOF
22048 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22056 if test $ac_cv_header_sasl_sasl_h = yes ||
22057 test $ac_cv_header_sasl_h = yes; then
22058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sasl_client_init in -lsasl2" >&5
22059 $as_echo_n "checking for sasl_client_init in -lsasl2... " >&6; }
22060 if ${ac_cv_lib_sasl2_sasl_client_init+:} false; then :
22061 $as_echo_n "(cached) " >&6
22063 ac_check_lib_save_LIBS=$LIBS
22064 LIBS="-lsasl2 $LIBS"
22065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22066 /* end confdefs.h. */
22068 /* Override any GCC internal prototype to avoid an error.
22069 Use char because int might match the return type of a GCC
22070 builtin and then its argument prototype would still apply. */
22074 char sasl_client_init ();
22078 return sasl_client_init ();
22083 if ac_fn_c_try_link "$LINENO"; then :
22084 ac_cv_lib_sasl2_sasl_client_init=yes
22086 ac_cv_lib_sasl2_sasl_client_init=no
22088 rm -f core conftest.err conftest.$ac_objext \
22089 conftest$ac_exeext conftest.$ac_ext
22090 LIBS=$ac_check_lib_save_LIBS
22092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sasl2_sasl_client_init" >&5
22093 $as_echo "$ac_cv_lib_sasl2_sasl_client_init" >&6; }
22094 if test "x$ac_cv_lib_sasl2_sasl_client_init" = xyes; then :
22095 ol_link_sasl="-lsasl2"
22097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sasl_client_init in -lsasl" >&5
22098 $as_echo_n "checking for sasl_client_init in -lsasl... " >&6; }
22099 if ${ac_cv_lib_sasl_sasl_client_init+:} false; then :
22100 $as_echo_n "(cached) " >&6
22102 ac_check_lib_save_LIBS=$LIBS
22103 LIBS="-lsasl $LIBS"
22104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22105 /* end confdefs.h. */
22107 /* Override any GCC internal prototype to avoid an error.
22108 Use char because int might match the return type of a GCC
22109 builtin and then its argument prototype would still apply. */
22113 char sasl_client_init ();
22117 return sasl_client_init ();
22122 if ac_fn_c_try_link "$LINENO"; then :
22123 ac_cv_lib_sasl_sasl_client_init=yes
22125 ac_cv_lib_sasl_sasl_client_init=no
22127 rm -f core conftest.err conftest.$ac_objext \
22128 conftest$ac_exeext conftest.$ac_ext
22129 LIBS=$ac_check_lib_save_LIBS
22131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sasl_sasl_client_init" >&5
22132 $as_echo "$ac_cv_lib_sasl_sasl_client_init" >&6; }
22133 if test "x$ac_cv_lib_sasl_sasl_client_init" = xyes; then :
22134 ol_link_sasl="-lsasl"
22141 if test $ol_link_sasl = no ; then
22142 if test $ol_with_cyrus_sasl != auto ; then
22143 as_fn_error $? "Could not locate Cyrus SASL" "$LINENO" 5
22145 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not locate Cyrus SASL" >&5
22146 $as_echo "$as_me: WARNING: Could not locate Cyrus SASL" >&2;}
22147 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: SASL authentication not supported!" >&5
22148 $as_echo "$as_me: WARNING: SASL authentication not supported!" >&2;}
22149 if test $ol_link_tls = no ; then
22150 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Strong authentication not supported!" >&5
22151 $as_echo "$as_me: WARNING: Strong authentication not supported!" >&2;}
22155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Cyrus SASL library version" >&5
22156 $as_echo_n "checking Cyrus SASL library version... " >&6; }
22157 if ${ol_cv_sasl_compat+:} false; then :
22158 $as_echo_n "(cached) " >&6
22161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22162 /* end confdefs.h. */
22164 #ifdef HAVE_SASL_SASL_H
22165 #include <sasl/sasl.h>
22170 /* Require 2.1.15+ */
22171 #if SASL_VERSION_MAJOR == 2 && SASL_VERSION_MINOR > 1
22172 char *__sasl_compat = "2.2+ or better okay (we guess)";
22173 #elif SASL_VERSION_MAJOR == 2 && SASL_VERSION_MINOR == 1 \
22174 && SASL_VERSION_STEP >=15
22175 char *__sasl_compat = "2.1.15+ or better okay";
22179 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22180 $EGREP "__sasl_compat" >/dev/null 2>&1; then :
22181 ol_cv_sasl_compat=yes
22183 ol_cv_sasl_compat=no
22188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_sasl_compat" >&5
22189 $as_echo "$ol_cv_sasl_compat" >&6; }
22191 if test $ol_cv_sasl_compat = no ; then
22193 as_fn_error $? "Cyrus SASL library located but is incompatible" "$LINENO" 5
22197 $as_echo "#define HAVE_CYRUS_SASL 1" >>confdefs.h
22199 SASL_LIBS="$ol_link_sasl"
22200 if test $ol_enable_spasswd != no ; then
22201 ol_link_spasswd=yes
22204 ac_save_LIBS="$LIBS"
22205 LIBS="$LIBS $ol_link_sasl"
22206 ac_fn_c_check_func "$LINENO" "sasl_version" "ac_cv_func_sasl_version"
22207 if test "x$ac_cv_func_sasl_version" = xyes; then :
22209 $as_echo "#define HAVE_SASL_VERSION 1" >>confdefs.h
22213 LIBS="$ac_save_LIBS"
22219 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: SASL authentication not supported!" >&5
22220 $as_echo "$as_me: WARNING: SASL authentication not supported!" >&2;}
22221 if test $ol_link_tls = no ; then
22222 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Strong authentication not supported!" >&5
22223 $as_echo "$as_me: WARNING: Strong authentication not supported!" >&2;}
22227 if test $cross_compiling != yes && test "$ac_cv_mingw32" != yes ; then
22229 if test -r /dev/urandom ; then
22230 dev="/dev/urandom";
22231 elif test -r /idev/urandom ; then
22232 dev="/idev/urandom";
22233 elif test -r /dev/srandom ; then
22234 dev="/dev/srandom";
22235 elif test -r /dev/random ; then
22237 elif test -r /idev/random ; then
22238 dev="/idev/random";
22241 if test $dev != no ; then
22243 cat >>confdefs.h <<_ACEOF
22244 #define URANDOM_DEVICE "$dev"
22251 if test $ol_with_fetch != no ; then
22253 LIBS="-lfetch -lcom_err $LIBS"
22254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking fetch(3) library" >&5
22255 $as_echo_n "checking fetch(3) library... " >&6; }
22256 if ${ol_cv_lib_fetch+:} false; then :
22257 $as_echo_n "(cached) " >&6
22260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22261 /* end confdefs.h. */
22263 #ifdef HAVE_SYS_PARAM_H
22264 #include <sys/param.h>
22271 struct url *u = fetchParseURL("file:///");
22276 if ac_fn_c_try_link "$LINENO"; then :
22277 ol_cv_lib_fetch=yes
22281 rm -f core conftest.err conftest.$ac_objext \
22282 conftest$ac_exeext conftest.$ac_ext
22284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_lib_fetch" >&5
22285 $as_echo "$ol_cv_lib_fetch" >&6; }
22287 if test $ol_cv_lib_fetch != no ; then
22288 ol_link_fetch="-lfetch -lcom_err"
22290 $as_echo "#define HAVE_FETCH 1" >>confdefs.h
22295 if test $ol_cv_lib_fetch != no ; then
22296 LIBS="$LIBS $ol_link_fetch"
22297 ol_link_fetch=freebsd
22299 elif test $ol_with_fetch != auto ; then
22300 as_fn_error $? "no suitable API for --with-fetch=$ol_with_fetch" "$LINENO" 5
22304 if test $ol_enable_crypt != no ; then
22306 LIBS="$TLS_LIBS $LIBS"
22308 ac_fn_c_check_func "$LINENO" "crypt" "ac_cv_func_crypt"
22309 if test "x$ac_cv_func_crypt" = xyes; then :
22314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5
22315 $as_echo_n "checking for crypt in -lcrypt... " >&6; }
22316 if ${ac_cv_lib_crypt_crypt+:} false; then :
22317 $as_echo_n "(cached) " >&6
22319 ac_check_lib_save_LIBS=$LIBS
22320 LIBS="-lcrypt $LIBS"
22321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22322 /* end confdefs.h. */
22324 /* Override any GCC internal prototype to avoid an error.
22325 Use char because int might match the return type of a GCC
22326 builtin and then its argument prototype would still apply. */
22339 if ac_fn_c_try_link "$LINENO"; then :
22340 ac_cv_lib_crypt_crypt=yes
22342 ac_cv_lib_crypt_crypt=no
22344 rm -f core conftest.err conftest.$ac_objext \
22345 conftest$ac_exeext conftest.$ac_ext
22346 LIBS=$ac_check_lib_save_LIBS
22348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5
22349 $as_echo "$ac_cv_lib_crypt_crypt" >&6; }
22350 if test "x$ac_cv_lib_crypt_crypt" = xyes; then :
22351 LUTIL_LIBS="$LUTIL_LIBS -lcrypt"
22362 if test $have_crypt = yes ; then
22364 $as_echo "#define HAVE_CRYPT 1" >>confdefs.h
22367 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find crypt" >&5
22368 $as_echo "$as_me: WARNING: could not find crypt" >&2;}
22369 if test $ol_enable_crypt = yes ; then
22370 as_fn_error $? "could not find crypt, select appropriate options or disable" "$LINENO" 5
22373 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: disabling crypt support" >&5
22374 $as_echo "$as_me: WARNING: disabling crypt support" >&2;}
22379 if test $ol_enable_proctitle != no ; then
22380 ac_fn_c_check_func "$LINENO" "setproctitle" "ac_cv_func_setproctitle"
22381 if test "x$ac_cv_func_setproctitle" = xyes; then :
22382 have_setproctitle=yes
22385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setproctitle in -lutil" >&5
22386 $as_echo_n "checking for setproctitle in -lutil... " >&6; }
22387 if ${ac_cv_lib_util_setproctitle+:} false; then :
22388 $as_echo_n "(cached) " >&6
22390 ac_check_lib_save_LIBS=$LIBS
22391 LIBS="-lutil $LIBS"
22392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22393 /* end confdefs.h. */
22395 /* Override any GCC internal prototype to avoid an error.
22396 Use char because int might match the return type of a GCC
22397 builtin and then its argument prototype would still apply. */
22401 char setproctitle ();
22405 return setproctitle ();
22410 if ac_fn_c_try_link "$LINENO"; then :
22411 ac_cv_lib_util_setproctitle=yes
22413 ac_cv_lib_util_setproctitle=no
22415 rm -f core conftest.err conftest.$ac_objext \
22416 conftest$ac_exeext conftest.$ac_ext
22417 LIBS=$ac_check_lib_save_LIBS
22419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_setproctitle" >&5
22420 $as_echo "$ac_cv_lib_util_setproctitle" >&6; }
22421 if test "x$ac_cv_lib_util_setproctitle" = xyes; then :
22422 have_setproctitle=yes
22423 LUTIL_LIBS="$LUTIL_LIBS -lutil"
22425 have_setproctitle=no
22426 case " $LIBOBJS " in
22427 *" setproctitle.$ac_objext "* ) ;;
22428 *) LIBOBJS="$LIBOBJS setproctitle.$ac_objext"
22432 LIBSRCS="$LIBSRCS setproctitle.c"
22438 if test $have_setproctitle = yes ; then
22440 $as_echo "#define HAVE_SETPROCTITLE 1" >>confdefs.h
22445 if test $ol_enable_slp != no ; then
22446 for ac_header in slp.h
22448 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22449 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
22450 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22451 cat >>confdefs.h <<_ACEOF
22452 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22460 if test $ac_cv_header_slp_h = yes ; then
22461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SLPOpen in -lslp" >&5
22462 $as_echo_n "checking for SLPOpen in -lslp... " >&6; }
22463 if ${ac_cv_lib_slp_SLPOpen+:} false; then :
22464 $as_echo_n "(cached) " >&6
22466 ac_check_lib_save_LIBS=$LIBS
22468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22469 /* end confdefs.h. */
22471 /* Override any GCC internal prototype to avoid an error.
22472 Use char because int might match the return type of a GCC
22473 builtin and then its argument prototype would still apply. */
22486 if ac_fn_c_try_link "$LINENO"; then :
22487 ac_cv_lib_slp_SLPOpen=yes
22489 ac_cv_lib_slp_SLPOpen=no
22491 rm -f core conftest.err conftest.$ac_objext \
22492 conftest$ac_exeext conftest.$ac_ext
22493 LIBS=$ac_check_lib_save_LIBS
22495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_slp_SLPOpen" >&5
22496 $as_echo "$ac_cv_lib_slp_SLPOpen" >&6; }
22497 if test "x$ac_cv_lib_slp_SLPOpen" = xyes; then :
22503 if test $have_slp = yes ; then
22505 $as_echo "#define HAVE_SLP 1" >>confdefs.h
22507 SLAPD_SLP_LIBS=-lslp
22510 elif test $ol_enable_slp = yes ; then
22511 as_fn_error $? "SLP not found" "$LINENO" 5
22516 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
22517 if test "x$ac_cv_type_mode_t" = xyes; then :
22521 cat >>confdefs.h <<_ACEOF
22527 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
22528 if test "x$ac_cv_type_off_t" = xyes; then :
22532 cat >>confdefs.h <<_ACEOF
22538 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
22539 if test "x$ac_cv_type_pid_t" = xyes; then :
22543 cat >>confdefs.h <<_ACEOF
22549 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
22550 if test "x$ac_cv_type_ssize_t" = xyes; then :
22554 cat >>confdefs.h <<_ACEOF
22555 #define ssize_t signed int
22560 ac_fn_c_check_type "$LINENO" "caddr_t" "ac_cv_type_caddr_t" "$ac_includes_default"
22561 if test "x$ac_cv_type_caddr_t" = xyes; then :
22565 cat >>confdefs.h <<_ACEOF
22566 #define caddr_t char *
22571 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
22572 if test "x$ac_cv_type_size_t" = xyes; then :
22576 cat >>confdefs.h <<_ACEOF
22577 #define size_t unsigned
22583 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
22584 if test "x$ac_cv_type_long_long" = xyes; then :
22586 cat >>confdefs.h <<_ACEOF
22587 #define HAVE_LONG_LONG 1
22593 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
22594 if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
22596 cat >>confdefs.h <<_ACEOF
22597 #define HAVE_PTRDIFF_T 1
22605 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "$ac_includes_default
22606 #ifdef HAVE_SYS_SOCKET_H
22607 #include <sys/socket.h>
22610 if test "x$ac_cv_type_socklen_t" = xyes; then :
22615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the type of arg 3 to accept()" >&5
22616 $as_echo_n "checking the type of arg 3 to accept()... " >&6; }
22617 if ${ol_cv_type_ber_socklen_t+:} false; then :
22618 $as_echo_n "(cached) " >&6
22621 set socklen_t int unsigned "unsigned long" long size_t
22622 test "$ac_cv_type_socklen_t" = yes || shift
22623 ol_cv_type_ber_socklen_t=$1 guessing="guessing "
22624 for lentype in "$@" ; do for addrtype in "struct sockaddr" void ; do
22625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22626 /* end confdefs.h. */
22627 $ac_includes_default
22628 #ifdef HAVE_SYS_SOCKET_H
22629 #include <sys/socket.h>
22631 extern int accept(int s, $addrtype *ap, $lentype *lp);
22637 accept(0, (struct sockaddr *) 0, ($lentype *) 0);
22643 if ac_fn_c_try_compile "$LINENO"; then :
22644 ol_cv_type_ber_socklen_t=$lentype guessing= ; break 2
22646 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $guessing$ol_cv_type_ber_socklen_t *" >&5
22651 $as_echo "$guessing$ol_cv_type_ber_socklen_t *" >&6; }
22653 cat >>confdefs.h <<_ACEOF
22654 #define ber_socklen_t $ol_cv_type_ber_socklen_t
22658 if test "$ac_cv_type_socklen_t" != yes; then
22660 cat >>confdefs.h <<_ACEOF
22661 #define socklen_t $ol_cv_type_ber_socklen_t
22667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
22668 $as_echo_n "checking return type of signal handlers... " >&6; }
22669 if ${ac_cv_type_signal+:} false; then :
22670 $as_echo_n "(cached) " >&6
22672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22673 /* end confdefs.h. */
22674 #include <sys/types.h>
22675 #include <signal.h>
22680 return *(signal (0, 0)) (0) == 1;
22685 if ac_fn_c_try_compile "$LINENO"; then :
22686 ac_cv_type_signal=int
22688 ac_cv_type_signal=void
22690 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
22693 $as_echo "$ac_cv_type_signal" >&6; }
22695 cat >>confdefs.h <<_ACEOF
22696 #define RETSIGTYPE $ac_cv_type_signal
22701 ac_fn_c_check_type "$LINENO" "sig_atomic_t" "ac_cv_type_sig_atomic_t" "$ac_includes_default
22702 #include <signal.h>
22705 if test "x$ac_cv_type_sig_atomic_t" = xyes; then :
22709 cat >>confdefs.h <<_ACEOF
22710 #define sig_atomic_t int
22716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
22717 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
22718 if ${ac_cv_type_uid_t+:} false; then :
22719 $as_echo_n "(cached) " >&6
22721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22722 /* end confdefs.h. */
22723 #include <sys/types.h>
22726 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22727 $EGREP "uid_t" >/dev/null 2>&1; then :
22728 ac_cv_type_uid_t=yes
22730 ac_cv_type_uid_t=no
22735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
22736 $as_echo "$ac_cv_type_uid_t" >&6; }
22737 if test $ac_cv_type_uid_t = no; then
22739 $as_echo "#define uid_t int" >>confdefs.h
22742 $as_echo "#define gid_t int" >>confdefs.h
22747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
22748 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
22749 if ${ac_cv_header_time+:} false; then :
22750 $as_echo_n "(cached) " >&6
22752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22753 /* end confdefs.h. */
22754 #include <sys/types.h>
22755 #include <sys/time.h>
22761 if ((struct tm *) 0)
22767 if ac_fn_c_try_compile "$LINENO"; then :
22768 ac_cv_header_time=yes
22770 ac_cv_header_time=no
22772 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
22775 $as_echo "$ac_cv_header_time" >&6; }
22776 if test $ac_cv_header_time = yes; then
22778 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
22782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
22783 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
22784 if ${ac_cv_struct_tm+:} false; then :
22785 $as_echo_n "(cached) " >&6
22787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22788 /* end confdefs.h. */
22789 #include <sys/types.h>
22796 int *p = &tm.tm_sec;
22802 if ac_fn_c_try_compile "$LINENO"; then :
22803 ac_cv_struct_tm=time.h
22805 ac_cv_struct_tm=sys/time.h
22807 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
22810 $as_echo "$ac_cv_struct_tm" >&6; }
22811 if test $ac_cv_struct_tm = sys/time.h; then
22813 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
22817 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
22818 if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then :
22820 cat >>confdefs.h <<_ACEOF
22821 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
22827 ac_fn_c_check_member "$LINENO" "struct passwd" "pw_gecos" "ac_cv_member_struct_passwd_pw_gecos" "$ac_includes_default
22830 if test "x$ac_cv_member_struct_passwd_pw_gecos" = xyes; then :
22832 cat >>confdefs.h <<_ACEOF
22833 #define HAVE_STRUCT_PASSWD_PW_GECOS 1
22839 ac_fn_c_check_member "$LINENO" "struct passwd" "pw_passwd" "ac_cv_member_struct_passwd_pw_passwd" "$ac_includes_default
22842 if test "x$ac_cv_member_struct_passwd_pw_passwd" = xyes; then :
22844 cat >>confdefs.h <<_ACEOF
22845 #define HAVE_STRUCT_PASSWD_PW_PASSWD 1
22852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if toupper() requires islower()" >&5
22853 $as_echo_n "checking if toupper() requires islower()... " >&6; }
22854 if ${ol_cv_c_upper_lower+:} false; then :
22855 $as_echo_n "(cached) " >&6
22858 if test "$cross_compiling" = yes; then :
22859 ol_cv_c_upper_lower=safe
22861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22862 /* end confdefs.h. */
22867 if ('C' == toupper('C'))
22873 if ac_fn_c_try_run "$LINENO"; then :
22874 ol_cv_c_upper_lower=no
22876 ol_cv_c_upper_lower=yes
22878 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22879 conftest.$ac_objext conftest.beam conftest.$ac_ext
22883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_c_upper_lower" >&5
22884 $as_echo "$ol_cv_c_upper_lower" >&6; }
22885 if test $ol_cv_c_upper_lower != no ; then
22887 $as_echo "#define C_UPPER_LOWER 1" >>confdefs.h
22891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
22892 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
22893 if ${ac_cv_c_const+:} false; then :
22894 $as_echo_n "(cached) " >&6
22896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22897 /* end confdefs.h. */
22903 #ifndef __cplusplus
22904 /* Ultrix mips cc rejects this sort of thing. */
22905 typedef int charset[2];
22906 const charset cs = { 0, 0 };
22907 /* SunOS 4.1.1 cc rejects this. */
22908 char const *const *pcpcc;
22910 /* NEC SVR4.0.2 mips cc rejects this. */
22911 struct point {int x, y;};
22912 static struct point const zero = {0,0};
22913 /* AIX XL C 1.02.0.0 rejects this.
22914 It does not let you subtract one const X* pointer from another in
22915 an arm of an if-expression whose if-part is not a constant
22917 const char *g = "string";
22918 pcpcc = &g + (g ? g-g : 0);
22919 /* HPUX 7.0 cc rejects these. */
22921 ppc = (char**) pcpcc;
22922 pcpcc = (char const *const *) ppc;
22923 { /* SCO 3.2v4 cc rejects this sort of thing. */
22926 char const *s = 0 ? (char *) 0 : (char const *) 0;
22931 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
22932 int x[] = {25, 17};
22933 const int *foo = &x[0];
22936 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
22937 typedef const int *iptr;
22941 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
22942 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
22943 struct s { int j; const int *ap[3]; } bx;
22944 struct s *b = &bx; b->j = 5;
22946 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
22947 const int foo = 10;
22948 if (!foo) return 0;
22950 return !cs[0] && !zero.x;
22957 if ac_fn_c_try_compile "$LINENO"; then :
22962 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
22965 $as_echo "$ac_cv_c_const" >&6; }
22966 if test $ac_cv_c_const = no; then
22968 $as_echo "#define const /**/" >>confdefs.h
22972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler understands volatile" >&5
22973 $as_echo_n "checking if compiler understands volatile... " >&6; }
22974 if ${ol_cv_c_volatile+:} false; then :
22975 $as_echo_n "(cached) " >&6
22977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22978 /* end confdefs.h. */
22983 volatile int a; int * volatile b = x ? &y : &z;
22984 /* Older MIPS compilers (eg., in Ultrix 4.2) don't like *b = 0 */
22990 if ac_fn_c_try_compile "$LINENO"; then :
22991 ol_cv_c_volatile=yes
22993 ol_cv_c_volatile=no
22995 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_c_volatile" >&5
22998 $as_echo "$ol_cv_c_volatile" >&6; }
22999 if test $ol_cv_c_volatile = yes; then
23003 $as_echo "#define volatile /**/" >>confdefs.h
23008 if test $cross_compiling = yes ; then
23009 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Crossing compiling... all bets are off!" >&5
23010 $as_echo "$as_me: WARNING: Crossing compiling... all bets are off!" >&2;}
23012 $as_echo "#define CROSS_COMPILING 1" >>confdefs.h
23015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
23016 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
23017 if ${ac_cv_c_bigendian+:} false; then :
23018 $as_echo_n "(cached) " >&6
23020 ac_cv_c_bigendian=unknown
23021 # See if we're dealing with a universal compiler.
23022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23023 /* end confdefs.h. */
23024 #ifndef __APPLE_CC__
23025 not a universal capable compiler
23030 if ac_fn_c_try_compile "$LINENO"; then :
23032 # Check for potential -arch flags. It is not universal unless
23033 # there are at least two -arch flags with different values.
23036 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
23037 if test -n "$ac_prev"; then
23039 i?86 | x86_64 | ppc | ppc64)
23040 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
23043 ac_cv_c_bigendian=universal
23049 elif test "x$ac_word" = "x-arch"; then
23054 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23055 if test $ac_cv_c_bigendian = unknown; then
23056 # See if sys/param.h defines the BYTE_ORDER macro.
23057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23058 /* end confdefs.h. */
23059 #include <sys/types.h>
23060 #include <sys/param.h>
23065 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
23066 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
23068 bogus endian macros
23075 if ac_fn_c_try_compile "$LINENO"; then :
23076 # It does; now see whether it defined to BIG_ENDIAN or not.
23077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23078 /* end confdefs.h. */
23079 #include <sys/types.h>
23080 #include <sys/param.h>
23085 #if BYTE_ORDER != BIG_ENDIAN
23093 if ac_fn_c_try_compile "$LINENO"; then :
23094 ac_cv_c_bigendian=yes
23096 ac_cv_c_bigendian=no
23098 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23100 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23102 if test $ac_cv_c_bigendian = unknown; then
23103 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
23104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23105 /* end confdefs.h. */
23106 #include <limits.h>
23111 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
23112 bogus endian macros
23119 if ac_fn_c_try_compile "$LINENO"; then :
23120 # It does; now see whether it defined to _BIG_ENDIAN or not.
23121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23122 /* end confdefs.h. */
23123 #include <limits.h>
23128 #ifndef _BIG_ENDIAN
23136 if ac_fn_c_try_compile "$LINENO"; then :
23137 ac_cv_c_bigendian=yes
23139 ac_cv_c_bigendian=no
23141 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23145 if test $ac_cv_c_bigendian = unknown; then
23146 # Compile a test program.
23147 if test "$cross_compiling" = yes; then :
23148 # Try to guess by grepping values from an object file.
23149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23150 /* end confdefs.h. */
23151 short int ascii_mm[] =
23152 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
23153 short int ascii_ii[] =
23154 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
23155 int use_ascii (int i) {
23156 return ascii_mm[i] + ascii_ii[i];
23158 short int ebcdic_ii[] =
23159 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
23160 short int ebcdic_mm[] =
23161 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
23162 int use_ebcdic (int i) {
23163 return ebcdic_mm[i] + ebcdic_ii[i];
23170 return use_ascii (foo) == use_ebcdic (foo);
23175 if ac_fn_c_try_compile "$LINENO"; then :
23176 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
23177 ac_cv_c_bigendian=yes
23179 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
23180 if test "$ac_cv_c_bigendian" = unknown; then
23181 ac_cv_c_bigendian=no
23183 # finding both strings is unlikely to happen, but who knows?
23184 ac_cv_c_bigendian=unknown
23188 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23191 /* end confdefs.h. */
23192 $ac_includes_default
23197 /* Are we little or big endian? From Harbison&Steele. */
23201 char c[sizeof (long int)];
23204 return u.c[sizeof (long int) - 1] == 1;
23210 if ac_fn_c_try_run "$LINENO"; then :
23211 ac_cv_c_bigendian=no
23213 ac_cv_c_bigendian=yes
23215 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23216 conftest.$ac_objext conftest.beam conftest.$ac_ext
23221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
23222 $as_echo "$ac_cv_c_bigendian" >&6; }
23223 case $ac_cv_c_bigendian in #(
23225 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
23231 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
23235 as_fn_error $? "unknown endianness
23236 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
23241 # The cast to long int works around a bug in the HP C Compiler
23242 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23243 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23244 # This bug is HP SR number 8606223364.
23245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
23246 $as_echo_n "checking size of short... " >&6; }
23247 if ${ac_cv_sizeof_short+:} false; then :
23248 $as_echo_n "(cached) " >&6
23250 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
23253 if test "$ac_cv_type_short" = yes; then
23254 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23255 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23256 as_fn_error 77 "cannot compute sizeof (short)
23257 See \`config.log' for more details" "$LINENO" 5; }
23259 ac_cv_sizeof_short=0
23264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
23265 $as_echo "$ac_cv_sizeof_short" >&6; }
23269 cat >>confdefs.h <<_ACEOF
23270 #define SIZEOF_SHORT $ac_cv_sizeof_short
23274 # The cast to long int works around a bug in the HP C Compiler
23275 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23276 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23277 # This bug is HP SR number 8606223364.
23278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
23279 $as_echo_n "checking size of int... " >&6; }
23280 if ${ac_cv_sizeof_int+:} false; then :
23281 $as_echo_n "(cached) " >&6
23283 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
23286 if test "$ac_cv_type_int" = yes; then
23287 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23288 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23289 as_fn_error 77 "cannot compute sizeof (int)
23290 See \`config.log' for more details" "$LINENO" 5; }
23297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
23298 $as_echo "$ac_cv_sizeof_int" >&6; }
23302 cat >>confdefs.h <<_ACEOF
23303 #define SIZEOF_INT $ac_cv_sizeof_int
23307 # The cast to long int works around a bug in the HP C Compiler
23308 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23309 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23310 # This bug is HP SR number 8606223364.
23311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
23312 $as_echo_n "checking size of long... " >&6; }
23313 if ${ac_cv_sizeof_long+:} false; then :
23314 $as_echo_n "(cached) " >&6
23316 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
23319 if test "$ac_cv_type_long" = yes; then
23320 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23321 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23322 as_fn_error 77 "cannot compute sizeof (long)
23323 See \`config.log' for more details" "$LINENO" 5; }
23325 ac_cv_sizeof_long=0
23330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
23331 $as_echo "$ac_cv_sizeof_long" >&6; }
23335 cat >>confdefs.h <<_ACEOF
23336 #define SIZEOF_LONG $ac_cv_sizeof_long
23340 # The cast to long int works around a bug in the HP C Compiler
23341 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23342 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23343 # This bug is HP SR number 8606223364.
23344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
23345 $as_echo_n "checking size of long long... " >&6; }
23346 if ${ac_cv_sizeof_long_long+:} false; then :
23347 $as_echo_n "(cached) " >&6
23349 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
23352 if test "$ac_cv_type_long_long" = yes; then
23353 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23354 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23355 as_fn_error 77 "cannot compute sizeof (long long)
23356 See \`config.log' for more details" "$LINENO" 5; }
23358 ac_cv_sizeof_long_long=0
23363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
23364 $as_echo "$ac_cv_sizeof_long_long" >&6; }
23368 cat >>confdefs.h <<_ACEOF
23369 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
23373 # The cast to long int works around a bug in the HP C Compiler
23374 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23375 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23376 # This bug is HP SR number 8606223364.
23377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of wchar_t" >&5
23378 $as_echo_n "checking size of wchar_t... " >&6; }
23379 if ${ac_cv_sizeof_wchar_t+:} false; then :
23380 $as_echo_n "(cached) " >&6
23382 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (wchar_t))" "ac_cv_sizeof_wchar_t" "$ac_includes_default"; then :
23385 if test "$ac_cv_type_wchar_t" = yes; then
23386 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23387 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23388 as_fn_error 77 "cannot compute sizeof (wchar_t)
23389 See \`config.log' for more details" "$LINENO" 5; }
23391 ac_cv_sizeof_wchar_t=0
23396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_wchar_t" >&5
23397 $as_echo "$ac_cv_sizeof_wchar_t" >&6; }
23401 cat >>confdefs.h <<_ACEOF
23402 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
23407 if test "$ac_cv_sizeof_int" -lt 4 ; then
23408 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OpenLDAP requires 'int' to be 32 bits or greater." >&5
23409 $as_echo "$as_me: WARNING: OpenLDAP requires 'int' to be 32 bits or greater." >&2;}
23412 $as_echo "#define LBER_INT_T long" >>confdefs.h
23416 $as_echo "#define LBER_INT_T int" >>confdefs.h
23421 $as_echo "#define LBER_LEN_T long" >>confdefs.h
23424 $as_echo "#define LBER_SOCKET_T int" >>confdefs.h
23427 $as_echo "#define LBER_TAG_T long" >>confdefs.h
23430 if test $ol_with_mp = longlong || test $ol_with_mp = auto ; then
23431 if test $ac_cv_sizeof_long_long -gt 4 ; then
23432 ol_with_mp=longlong
23434 $as_echo "#define USE_MP_LONG_LONG 1" >>confdefs.h
23436 elif test $ol_with_mp = longlong ; then
23437 as_fn_error $? "long long unusable for multiple precision" "$LINENO" 5
23440 if test $ol_with_mp = long || test $ol_with_mp = auto ; then
23441 if test $ac_cv_sizeof_long -gt 4 ; then
23444 $as_echo "#define USE_MP_LONG 1" >>confdefs.h
23446 elif test $ol_with_mp = long ; then
23447 as_fn_error $? "long unusable for multiple precision" "$LINENO" 5
23450 if test $ol_with_mp = bignum || test $ol_with_mp = auto ; then
23451 for ac_header in openssl/bn.h
23453 ac_fn_c_check_header_mongrel "$LINENO" "openssl/bn.h" "ac_cv_header_openssl_bn_h" "$ac_includes_default"
23454 if test "x$ac_cv_header_openssl_bn_h" = xyes; then :
23455 cat >>confdefs.h <<_ACEOF
23456 #define HAVE_OPENSSL_BN_H 1
23463 for ac_header in openssl/crypto.h
23465 ac_fn_c_check_header_mongrel "$LINENO" "openssl/crypto.h" "ac_cv_header_openssl_crypto_h" "$ac_includes_default"
23466 if test "x$ac_cv_header_openssl_crypto_h" = xyes; then :
23467 cat >>confdefs.h <<_ACEOF
23468 #define HAVE_OPENSSL_CRYPTO_H 1
23475 if test "$ac_cv_header_openssl_bn_h" = "yes" &&
23476 test "$ac_cv_header_openssl_crypto_h" = "yes" &&
23477 test "$ol_with_tls" = "found" ; then
23480 $as_echo "#define USE_MP_BIGNUM 1" >>confdefs.h
23482 elif test $ol_with_mp = bignum ; then
23483 as_fn_error $? "bignum not available" "$LINENO" 5
23486 if test $ol_with_mp = gmp || test $ol_with_mp = auto ; then
23487 for ac_header in gmp.h
23489 ac_fn_c_check_header_mongrel "$LINENO" "gmp.h" "ac_cv_header_gmp_h" "$ac_includes_default"
23490 if test "x$ac_cv_header_gmp_h" = xyes; then :
23491 cat >>confdefs.h <<_ACEOF
23492 #define HAVE_GMP_H 1
23499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __gmpz_add_ui in -lgmp" >&5
23500 $as_echo_n "checking for __gmpz_add_ui in -lgmp... " >&6; }
23501 if ${ac_cv_lib_gmp___gmpz_add_ui+:} false; then :
23502 $as_echo_n "(cached) " >&6
23504 ac_check_lib_save_LIBS=$LIBS
23506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23507 /* end confdefs.h. */
23509 /* Override any GCC internal prototype to avoid an error.
23510 Use char because int might match the return type of a GCC
23511 builtin and then its argument prototype would still apply. */
23515 char __gmpz_add_ui ();
23519 return __gmpz_add_ui ();
23524 if ac_fn_c_try_link "$LINENO"; then :
23525 ac_cv_lib_gmp___gmpz_add_ui=yes
23527 ac_cv_lib_gmp___gmpz_add_ui=no
23529 rm -f core conftest.err conftest.$ac_objext \
23530 conftest$ac_exeext conftest.$ac_ext
23531 LIBS=$ac_check_lib_save_LIBS
23533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gmp___gmpz_add_ui" >&5
23534 $as_echo "$ac_cv_lib_gmp___gmpz_add_ui" >&6; }
23535 if test "x$ac_cv_lib_gmp___gmpz_add_ui" = xyes; then :
23536 cat >>confdefs.h <<_ACEOF
23537 #define HAVE_LIBGMP 1
23544 if test $ac_cv_header_gmp_h = yes && test $ac_cv_lib_gmp___gmpz_add_ui = yes ; then
23546 $as_echo "#define USE_MP_GMP 1" >>confdefs.h
23549 elif test $ol_with_mp = gmp ; then
23550 as_fn_error $? "gmp not available" "$LINENO" 5
23553 if test $ol_with_mp = auto ; then
23557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
23558 $as_echo_n "checking for working memcmp... " >&6; }
23559 if ${ac_cv_func_memcmp_working+:} false; then :
23560 $as_echo_n "(cached) " >&6
23562 if test "$cross_compiling" = yes; then :
23563 ac_cv_func_memcmp_working=no
23565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23566 /* end confdefs.h. */
23567 $ac_includes_default
23572 /* Some versions of memcmp are not 8-bit clean. */
23573 char c0 = '\100', c1 = '\200', c2 = '\201';
23574 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
23577 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
23578 or more and with at least one buffer not starting on a 4-byte boundary.
23579 William Lewis provided this test program. */
23584 for (i = 0; i < 4; i++)
23588 strcpy (a, "--------01111111");
23589 strcpy (b, "--------10000000");
23590 if (memcmp (a, b, 16) >= 0)
23600 if ac_fn_c_try_run "$LINENO"; then :
23601 ac_cv_func_memcmp_working=yes
23603 ac_cv_func_memcmp_working=no
23605 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23606 conftest.$ac_objext conftest.beam conftest.$ac_ext
23610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
23611 $as_echo "$ac_cv_func_memcmp_working" >&6; }
23612 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
23613 *" memcmp.$ac_objext "* ) ;;
23614 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
23620 if test $ac_cv_func_memcmp_working = no ; then
23622 $as_echo "#define NEED_MEMCMP_REPLACEMENT 1" >>confdefs.h
23626 for ac_func in strftime
23628 ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
23629 if test "x$ac_cv_func_strftime" = xyes; then :
23630 cat >>confdefs.h <<_ACEOF
23631 #define HAVE_STRFTIME 1
23635 # strftime is in -lintl on SCO UNIX.
23636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
23637 $as_echo_n "checking for strftime in -lintl... " >&6; }
23638 if ${ac_cv_lib_intl_strftime+:} false; then :
23639 $as_echo_n "(cached) " >&6
23641 ac_check_lib_save_LIBS=$LIBS
23642 LIBS="-lintl $LIBS"
23643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23644 /* end confdefs.h. */
23646 /* Override any GCC internal prototype to avoid an error.
23647 Use char because int might match the return type of a GCC
23648 builtin and then its argument prototype would still apply. */
23656 return strftime ();
23661 if ac_fn_c_try_link "$LINENO"; then :
23662 ac_cv_lib_intl_strftime=yes
23664 ac_cv_lib_intl_strftime=no
23666 rm -f core conftest.err conftest.$ac_objext \
23667 conftest$ac_exeext conftest.$ac_ext
23668 LIBS=$ac_check_lib_save_LIBS
23670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
23671 $as_echo "$ac_cv_lib_intl_strftime" >&6; }
23672 if test "x$ac_cv_lib_intl_strftime" = xyes; then :
23673 $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
23675 LIBS="-lintl $LIBS"
23682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_aton()" >&5
23683 $as_echo_n "checking for inet_aton()... " >&6; }
23684 if ${ol_cv_func_inet_aton+:} false; then :
23685 $as_echo_n "(cached) " >&6
23687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23688 /* end confdefs.h. */
23690 #ifdef HAVE_SYS_TYPES_H
23691 # include <sys/types.h>
23693 #ifdef HAVE_SYS_SOCKET_H
23694 # include <sys/socket.h>
23695 # ifdef HAVE_SYS_SELECT_H
23696 # include <sys/select.h>
23698 # include <netinet/in.h>
23699 # ifdef HAVE_ARPA_INET_H
23700 # include <arpa/inet.h>
23708 int rc = inet_aton( "255.255.255.255", &in );
23713 if ac_fn_c_try_link "$LINENO"; then :
23714 ol_cv_func_inet_aton=yes
23716 ol_cv_func_inet_aton=no
23718 rm -f core conftest.err conftest.$ac_objext \
23719 conftest$ac_exeext conftest.$ac_ext
23721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_func_inet_aton" >&5
23722 $as_echo "$ol_cv_func_inet_aton" >&6; }
23723 if test $ol_cv_func_inet_aton != no; then
23725 $as_echo "#define HAVE_INET_ATON 1" >>confdefs.h
23730 ac_fn_c_check_func "$LINENO" "_spawnlp" "ac_cv_func__spawnlp"
23731 if test "x$ac_cv_func__spawnlp" = xyes; then :
23733 $as_echo "#define HAVE_SPAWNLP 1" >>confdefs.h
23738 ac_fn_c_check_func "$LINENO" "_snprintf" "ac_cv_func__snprintf"
23739 if test "x$ac_cv_func__snprintf" = xyes; then :
23740 ac_cv_func_snprintf=yes
23742 $as_echo "#define snprintf _snprintf" >>confdefs.h
23748 for ac_func in vsnprintf _vsnprintf
23750 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
23751 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
23752 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
23753 cat >>confdefs.h <<_ACEOF
23754 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
23761 if test $ac_cv_func_vsnprintf = no -a $ac_cv_func__vsnprintf = yes ; then
23762 ac_cv_func_vsnprintf=yes
23764 $as_echo "#define vsnprintf _vsnprintf" >>confdefs.h
23768 for ac_func in vprintf
23770 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
23771 if test "x$ac_cv_func_vprintf" = xyes; then :
23772 cat >>confdefs.h <<_ACEOF
23773 #define HAVE_VPRINTF 1
23776 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
23777 if test "x$ac_cv_func__doprnt" = xyes; then :
23779 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
23788 if test $ac_cv_func_vprintf = yes ; then
23789 for ac_func in snprintf vsnprintf
23791 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
23792 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
23793 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
23794 cat >>confdefs.h <<_ACEOF
23795 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
23862 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
23863 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
23864 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
23865 cat >>confdefs.h <<_ACEOF
23866 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
23873 ac_fn_c_check_func "$LINENO" "getopt" "ac_cv_func_getopt"
23874 if test "x$ac_cv_func_getopt" = xyes; then :
23875 $as_echo "#define HAVE_GETOPT 1" >>confdefs.h
23878 case " $LIBOBJS " in
23879 *" getopt.$ac_objext "* ) ;;
23880 *) LIBOBJS="$LIBOBJS getopt.$ac_objext"
23886 ac_fn_c_check_func "$LINENO" "getpeereid" "ac_cv_func_getpeereid"
23887 if test "x$ac_cv_func_getpeereid" = xyes; then :
23888 $as_echo "#define HAVE_GETPEEREID 1" >>confdefs.h
23891 case " $LIBOBJS " in
23892 *" getpeereid.$ac_objext "* ) ;;
23893 *) LIBOBJS="$LIBOBJS getpeereid.$ac_objext"
23901 if test "$ac_cv_func_getopt" != yes; then
23902 LIBSRCS="$LIBSRCS getopt.c"
23905 if test "$ac_cv_func_getpeereid" != yes; then
23906 for ac_func in getpeerucred
23908 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
23909 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
23910 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
23911 cat >>confdefs.h <<_ACEOF
23912 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
23918 if test "$ac_cv_func_getpeerucred" != yes ; then
23919 ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_accrightslen" "ac_cv_member_struct_msghdr_msg_accrightslen" "$ac_includes_default
23920 #ifdef HAVE_SYS_SOCKET_H
23921 #include <sys/socket.h>
23924 if test "x$ac_cv_member_struct_msghdr_msg_accrightslen" = xyes; then :
23926 cat >>confdefs.h <<_ACEOF
23927 #define HAVE_STRUCT_MSGHDR_MSG_ACCRIGHTSLEN 1
23933 if test "$ac_cv_member_struct_msghdr_msg_accrightslen" != yes; then
23934 ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" "$ac_includes_default
23935 #ifdef HAVE_SYS_SOCKET_H
23936 #include <sys/socket.h>
23939 if test "x$ac_cv_member_struct_msghdr_msg_control" = xyes; then :
23941 cat >>confdefs.h <<_ACEOF
23942 #define HAVE_STRUCT_MSGHDR_MSG_CONTROL 1
23949 ac_fn_c_check_member "$LINENO" "struct stat" "st_fstype" "ac_cv_member_struct_stat_st_fstype" "$ac_includes_default"
23950 if test "x$ac_cv_member_struct_stat_st_fstype" = xyes; then :
23952 cat >>confdefs.h <<_ACEOF
23953 #define HAVE_STRUCT_STAT_ST_FSTYPE 1
23958 ac_fn_c_check_member "$LINENO" "struct stat" "st_vfstype" "ac_cv_member_struct_stat_st_vfstype" "$ac_includes_default"
23959 if test "x$ac_cv_member_struct_stat_st_vfstype" = xyes; then :
23961 cat >>confdefs.h <<_ACEOF
23962 #define HAVE_STRUCT_STAT_ST_VFSTYPE 1
23968 if test "$ac_cv_member_struct_stat_st_fstype" = yes; then
23969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23970 /* end confdefs.h. */
23971 struct stat st; char *ptr=st.st_fstype;
23973 if ac_fn_c_try_compile "$LINENO"; then :
23975 $as_echo "#define HAVE_STRUCT_STAT_ST_FSTYPE_CHAR 1" >>confdefs.h
23979 $as_echo "#define HAVE_STRUCT_STAT_ST_FSTYPE_INT 1" >>confdefs.h
23982 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23985 LIBSRCS="$LIBSRCS getpeereid.c"
23988 if test "$ac_cv_func_snprintf" != yes ||
23989 test "$ac_cv_func_vsnprintf" != yes; then
23990 if test "$ac_cv_func_snprintf" != yes; then
23992 $as_echo "#define snprintf ber_pvt_snprintf" >>confdefs.h
23995 if test "$ac_cv_func_vsnprintf" != yes; then
23997 $as_echo "#define vsnprintf ber_pvt_vsnprintf" >>confdefs.h
24003 if test "$ol_enable_slapi" != no ; then
24004 for ac_header in ltdl.h
24006 ac_fn_c_check_header_mongrel "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default"
24007 if test "x$ac_cv_header_ltdl_h" = xyes; then :
24008 cat >>confdefs.h <<_ACEOF
24009 #define HAVE_LTDL_H 1
24017 if test $ac_cv_header_ltdl_h != yes ; then
24018 as_fn_error $? "could not locate <ltdl.h>" "$LINENO" 5
24020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lt_dlinit in -lltdl" >&5
24021 $as_echo_n "checking for lt_dlinit in -lltdl... " >&6; }
24022 if ${ac_cv_lib_ltdl_lt_dlinit+:} false; then :
24023 $as_echo_n "(cached) " >&6
24025 ac_check_lib_save_LIBS=$LIBS
24026 LIBS="-lltdl $LIBS"
24027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24028 /* end confdefs.h. */
24030 /* Override any GCC internal prototype to avoid an error.
24031 Use char because int might match the return type of a GCC
24032 builtin and then its argument prototype would still apply. */
24040 return lt_dlinit ();
24045 if ac_fn_c_try_link "$LINENO"; then :
24046 ac_cv_lib_ltdl_lt_dlinit=yes
24048 ac_cv_lib_ltdl_lt_dlinit=no
24050 rm -f core conftest.err conftest.$ac_objext \
24051 conftest$ac_exeext conftest.$ac_ext
24052 LIBS=$ac_check_lib_save_LIBS
24054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
24055 $as_echo "$ac_cv_lib_ltdl_lt_dlinit" >&6; }
24056 if test "x$ac_cv_lib_ltdl_lt_dlinit" = xyes; then :
24059 LIBSLAPI=slapi/libslapi.la
24061 $as_echo "#define HAVE_LIBLTDL 1" >>confdefs.h
24065 as_fn_error $? "could not locate libtool -lltdl" "$LINENO" 5
24070 $as_echo "#define LDAP_SLAPI 1" >>confdefs.h
24074 if test "$ol_enable_debug" != no ; then
24075 if test "$ol_enable_debug" = traditional; then
24077 $as_echo "#define OLD_DEBUG 1" >>confdefs.h
24081 $as_echo "#define LDAP_DEBUG 1" >>confdefs.h
24084 if test "$ol_enable_syslog" = yes ; then
24086 $as_echo "#define LDAP_SYSLOG 1" >>confdefs.h
24089 if test "$ol_enable_proctitle" != no ; then
24091 $as_echo "#define LDAP_PROCTITLE 1" >>confdefs.h
24094 if test "$ol_enable_referrals" != no ; then
24096 $as_echo "#define LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS LDAP_VENDOR_VERSION" >>confdefs.h
24099 if test "$ol_enable_local" != no; then
24101 $as_echo "#define LDAP_PF_LOCAL 1" >>confdefs.h
24104 if test "$ol_link_ipv6" != no; then
24106 $as_echo "#define LDAP_PF_INET6 1" >>confdefs.h
24109 if test "$ol_enable_cleartext" != no ; then
24111 $as_echo "#define SLAPD_CLEARTEXT 1" >>confdefs.h
24114 if test "$ol_enable_crypt" != no ; then
24116 $as_echo "#define SLAPD_CRYPT 1" >>confdefs.h
24119 if test "$ol_link_spasswd" != no ; then
24121 $as_echo "#define SLAPD_SPASSWD 1" >>confdefs.h
24124 if test "$ol_enable_rlookups" != no ; then
24126 $as_echo "#define SLAPD_RLOOKUPS 1" >>confdefs.h
24129 if test "$ol_enable_aci" != no ; then
24130 if test $ol_enable_dynacl = no ; then
24131 ol_enable_dynacl=yes
24132 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ACIs need dynacl" >&5
24133 $as_echo "$as_me: WARNING: ACIs need dynacl" >&2;}
24135 if test "$ol_enable_aci" = mod ; then
24136 MFLAG=SLAPD_MOD_DYNAMIC
24137 as_fn_error $? "ACI build as dynamic module not supported (yet)" "$LINENO" 5
24139 MFLAG=SLAPD_MOD_STATIC
24141 WITH_ACI_ENABLED=$ol_enable_aci
24143 cat >>confdefs.h <<_ACEOF
24144 #define SLAPD_ACI_ENABLED $MFLAG
24148 WITH_ACI_ENABLED=no
24150 if test "$ol_enable_dynacl" != no ; then
24152 $as_echo "#define SLAP_DYNACL 1" >>confdefs.h
24156 if test "$ol_link_modules" != no ; then
24158 $as_echo "#define SLAPD_MODULES 1" >>confdefs.h
24161 SLAPD_MODULES_LDFLAGS="-dlopen self"
24165 $as_echo "#define SLAPD_MOD_STATIC 1" >>confdefs.h
24168 $as_echo "#define SLAPD_MOD_DYNAMIC 2" >>confdefs.h
24171 if test "$ol_enable_monitor" != no ; then
24173 BUILD_MONITOR=$ol_enable_monitor
24174 if test "$ol_enable_monitor" = mod ; then
24175 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-monitor"
24176 MFLAG=SLAPD_MOD_DYNAMIC
24178 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-monitor"
24179 MFLAG=SLAPD_MOD_STATIC
24182 cat >>confdefs.h <<_ACEOF
24183 #define SLAPD_MONITOR $MFLAG
24188 if test "$ol_enable_bdb" != no ; then
24190 BUILD_BDB=$ol_enable_bdb
24191 if test "$ol_enable_bdb" = mod ; then
24192 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-bdb"
24193 MFLAG=SLAPD_MOD_DYNAMIC
24195 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-bdb"
24196 MFLAG=SLAPD_MOD_STATIC
24199 cat >>confdefs.h <<_ACEOF
24200 #define SLAPD_BDB $MFLAG
24205 if test "$ol_enable_dnssrv" != no ; then
24207 BUILD_DNSSRV=$ol_enable_dnssrv
24208 if test "$ol_enable_dnssrv" = mod ; then
24209 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-dnssrv"
24210 MFLAG=SLAPD_MOD_DYNAMIC
24212 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-dnssrv"
24213 MFLAG=SLAPD_MOD_STATIC
24216 cat >>confdefs.h <<_ACEOF
24217 #define SLAPD_DNSSRV $MFLAG
24222 if test "$ol_enable_hdb" != no ; then
24224 BUILD_HDB=$ol_enable_hdb
24225 if test "$ol_enable_hdb" = mod ; then
24226 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-hdb"
24227 MFLAG=SLAPD_MOD_DYNAMIC
24229 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-hdb"
24230 MFLAG=SLAPD_MOD_STATIC
24233 cat >>confdefs.h <<_ACEOF
24234 #define SLAPD_HDB $MFLAG
24239 if test "$ol_enable_ldap" != no ; then
24241 BUILD_LDAP=$ol_enable_ldap
24242 if test "$ol_enable_ldap" = mod ; then
24243 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-ldap"
24244 MFLAG=SLAPD_MOD_DYNAMIC
24246 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-ldap"
24247 MFLAG=SLAPD_MOD_STATIC
24250 cat >>confdefs.h <<_ACEOF
24251 #define SLAPD_LDAP $MFLAG
24256 if test "$ol_enable_mdb" != no ; then
24258 BUILD_MDB=$ol_enable_mdb
24259 if test "$ol_enable_mdb" = mod ; then
24260 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-mdb"
24261 MFLAG=SLAPD_MOD_DYNAMIC
24263 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-mdb"
24264 MFLAG=SLAPD_MOD_STATIC
24267 cat >>confdefs.h <<_ACEOF
24268 #define SLAPD_MDB $MFLAG
24273 if test "$ol_enable_meta" != no ; then
24275 BUILD_META=$ol_enable_meta
24277 if test "$ol_enable_meta" = mod ; then
24278 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-meta"
24279 MFLAG=SLAPD_MOD_DYNAMIC
24281 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-meta"
24282 MFLAG=SLAPD_MOD_STATIC
24285 cat >>confdefs.h <<_ACEOF
24286 #define SLAPD_META $MFLAG
24291 if test "$ol_enable_ndb" != no ; then
24293 BUILD_NDB=$ol_enable_ndb
24294 if test "$ol_enable_ndb" = mod ; then
24295 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-ndb"
24296 MFLAG=SLAPD_MOD_DYNAMIC
24298 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-ndb"
24299 MFLAG=SLAPD_MOD_STATIC
24302 cat >>confdefs.h <<_ACEOF
24303 #define SLAPD_NDB $MFLAG
24308 if test "$ol_enable_null" != no ; then
24310 BUILD_NULL=$ol_enable_null
24311 if test "$ol_enable_null" = mod ; then
24312 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-null"
24313 MFLAG=SLAPD_MOD_DYNAMIC
24315 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-null"
24316 MFLAG=SLAPD_MOD_STATIC
24319 cat >>confdefs.h <<_ACEOF
24320 #define SLAPD_NULL $MFLAG
24325 if test "$ol_enable_passwd" != no ; then
24327 BUILD_PASSWD=$ol_enable_passwd
24328 if test "$ol_enable_passwd" = mod ; then
24329 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-passwd"
24330 MFLAG=SLAPD_MOD_DYNAMIC
24332 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-passwd"
24333 MFLAG=SLAPD_MOD_STATIC
24336 cat >>confdefs.h <<_ACEOF
24337 #define SLAPD_PASSWD $MFLAG
24342 if test "$ol_link_perl" != no ; then
24344 BUILD_PERL=$ol_enable_perl
24345 if test "$ol_enable_perl" = mod ; then
24346 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-perl"
24347 MFLAG=SLAPD_MOD_DYNAMIC
24349 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-perl"
24350 MFLAG=SLAPD_MOD_STATIC
24353 cat >>confdefs.h <<_ACEOF
24354 #define SLAPD_PERL $MFLAG
24359 if test "$ol_enable_relay" != no ; then
24361 BUILD_RELAY=$ol_enable_relay
24362 if test "$ol_enable_relay" = mod ; then
24363 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-relay"
24364 MFLAG=SLAPD_MOD_DYNAMIC
24366 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-relay"
24367 MFLAG=SLAPD_MOD_STATIC
24370 cat >>confdefs.h <<_ACEOF
24371 #define SLAPD_RELAY $MFLAG
24376 if test "$ol_enable_shell" != no ; then
24377 if test "$ol_link_threads" != no ; then
24378 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Use of --without-threads is recommended with back-shell" >&5
24379 $as_echo "$as_me: WARNING: Use of --without-threads is recommended with back-shell" >&2;}
24382 BUILD_SHELL=$ol_enable_shell
24383 if test "$ol_enable_shell" = mod ; then
24384 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-shell"
24385 MFLAG=SLAPD_MOD_DYNAMIC
24387 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-shell"
24388 MFLAG=SLAPD_MOD_STATIC
24391 cat >>confdefs.h <<_ACEOF
24392 #define SLAPD_SHELL $MFLAG
24397 if test "$ol_enable_sock" != no ; then
24399 BUILD_SOCK=$ol_enable_sock
24400 if test "$ol_enable_sock" = mod ; then
24401 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-sock"
24402 MFLAG=SLAPD_MOD_DYNAMIC
24404 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-sock"
24405 MFLAG=SLAPD_MOD_STATIC
24408 cat >>confdefs.h <<_ACEOF
24409 #define SLAPD_SOCK $MFLAG
24414 if test "$ol_link_sql" != no ; then
24416 BUILD_SQL=$ol_enable_sql
24417 if test "$ol_enable_sql" = mod; then
24418 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-sql"
24419 MFLAG=SLAPD_MOD_DYNAMIC
24421 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-sql"
24422 MFLAG=SLAPD_MOD_STATIC
24425 cat >>confdefs.h <<_ACEOF
24426 #define SLAPD_SQL $MFLAG
24431 if test "$ol_enable_accesslog" != no ; then
24432 BUILD_ACCESSLOG=$ol_enable_accesslog
24433 if test "$ol_enable_accesslog" = mod ; then
24434 MFLAG=SLAPD_MOD_DYNAMIC
24435 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS accesslog.la"
24437 MFLAG=SLAPD_MOD_STATIC
24438 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS accesslog.o"
24441 cat >>confdefs.h <<_ACEOF
24442 #define SLAPD_OVER_ACCESSLOG $MFLAG
24447 if test "$ol_enable_auditlog" != no ; then
24448 BUILD_AUDITLOG=$ol_enable_auditlog
24449 if test "$ol_enable_auditlog" = mod ; then
24450 MFLAG=SLAPD_MOD_DYNAMIC
24451 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS auditlog.la"
24453 MFLAG=SLAPD_MOD_STATIC
24454 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS auditlog.o"
24457 cat >>confdefs.h <<_ACEOF
24458 #define SLAPD_OVER_AUDITLOG $MFLAG
24463 if test "$ol_enable_collect" != no ; then
24464 BUILD_COLLECT=$ol_enable_collect
24465 if test "$ol_enable_collect" = mod ; then
24466 MFLAG=SLAPD_MOD_DYNAMIC
24467 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS collect.la"
24469 MFLAG=SLAPD_MOD_STATIC
24470 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS collect.o"
24473 cat >>confdefs.h <<_ACEOF
24474 #define SLAPD_OVER_COLLECT $MFLAG
24479 if test "$ol_enable_constraint" != no ; then
24480 BUILD_CONSTRAINT=$ol_enable_constraint
24481 if test "$ol_enable_constraint" = mod ; then
24482 MFLAG=SLAPD_MOD_DYNAMIC
24483 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS constraint.la"
24485 MFLAG=SLAPD_MOD_STATIC
24486 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS constraint.o"
24489 cat >>confdefs.h <<_ACEOF
24490 #define SLAPD_OVER_CONSTRAINT $MFLAG
24495 if test "$ol_enable_dds" != no ; then
24496 BUILD_DDS=$ol_enable_dds
24497 if test "$ol_enable_dds" = mod ; then
24498 MFLAG=SLAPD_MOD_DYNAMIC
24499 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dds.la"
24501 MFLAG=SLAPD_MOD_STATIC
24502 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS dds.o"
24505 cat >>confdefs.h <<_ACEOF
24506 #define SLAPD_OVER_DDS $MFLAG
24511 if test "$ol_enable_deref" != no ; then
24512 BUILD_DEREF=$ol_enable_deref
24513 if test "$ol_enable_deref" = mod ; then
24514 MFLAG=SLAPD_MOD_DYNAMIC
24515 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS deref.la"
24517 MFLAG=SLAPD_MOD_STATIC
24518 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS deref.o"
24521 cat >>confdefs.h <<_ACEOF
24522 #define SLAPD_OVER_DEREF $MFLAG
24527 if test "$ol_enable_dyngroup" != no ; then
24528 BUILD_DYNGROUP=$ol_enable_dyngroup
24529 if test "$ol_enable_dyngroup" = mod ; then
24530 MFLAG=SLAPD_MOD_DYNAMIC
24531 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dyngroup.la"
24533 MFLAG=SLAPD_MOD_STATIC
24534 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS dyngroup.o"
24537 cat >>confdefs.h <<_ACEOF
24538 #define SLAPD_OVER_DYNGROUP $MFLAG
24543 if test "$ol_enable_dynlist" != no ; then
24544 BUILD_DYNLIST=$ol_enable_dynlist
24545 if test "$ol_enable_dynlist" = mod ; then
24546 MFLAG=SLAPD_MOD_DYNAMIC
24547 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dynlist.la"
24549 MFLAG=SLAPD_MOD_STATIC
24550 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS dynlist.o"
24553 cat >>confdefs.h <<_ACEOF
24554 #define SLAPD_OVER_DYNLIST $MFLAG
24559 if test "$ol_enable_memberof" != no ; then
24560 BUILD_MEMBEROF=$ol_enable_memberof
24561 if test "$ol_enable_memberof" = mod ; then
24562 MFLAG=SLAPD_MOD_DYNAMIC
24563 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS memberof.la"
24565 MFLAG=SLAPD_MOD_STATIC
24566 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS memberof.o"
24569 cat >>confdefs.h <<_ACEOF
24570 #define SLAPD_OVER_MEMBEROF $MFLAG
24575 if test "$ol_enable_ppolicy" != no ; then
24576 BUILD_PPOLICY=$ol_enable_ppolicy
24577 if test "$ol_enable_ppolicy" = mod ; then
24578 MFLAG=SLAPD_MOD_DYNAMIC
24579 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS ppolicy.la"
24581 MFLAG=SLAPD_MOD_STATIC
24582 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS ppolicy.o"
24585 cat >>confdefs.h <<_ACEOF
24586 #define SLAPD_OVER_PPOLICY $MFLAG
24591 if test "$ol_enable_proxycache" != no ; then
24592 BUILD_PROXYCACHE=$ol_enable_proxycache
24593 if test "$ol_enable_proxycache" = mod ; then
24594 MFLAG=SLAPD_MOD_DYNAMIC
24595 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS pcache.la"
24597 MFLAG=SLAPD_MOD_STATIC
24598 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS pcache.o"
24601 cat >>confdefs.h <<_ACEOF
24602 #define SLAPD_OVER_PROXYCACHE $MFLAG
24607 if test "$ol_enable_refint" != no ; then
24608 BUILD_REFINT=$ol_enable_refint
24609 if test "$ol_enable_refint" = mod ; then
24610 MFLAG=SLAPD_MOD_DYNAMIC
24611 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS refint.la"
24613 MFLAG=SLAPD_MOD_STATIC
24614 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS refint.o"
24617 cat >>confdefs.h <<_ACEOF
24618 #define SLAPD_OVER_REFINT $MFLAG
24623 if test "$ol_enable_retcode" != no ; then
24624 BUILD_RETCODE=$ol_enable_retcode
24625 if test "$ol_enable_retcode" = mod ; then
24626 MFLAG=SLAPD_MOD_DYNAMIC
24627 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS retcode.la"
24629 MFLAG=SLAPD_MOD_STATIC
24630 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS retcode.o"
24633 cat >>confdefs.h <<_ACEOF
24634 #define SLAPD_OVER_RETCODE $MFLAG
24639 if test "$ol_enable_rwm" != no ; then
24641 BUILD_RWM=$ol_enable_rwm
24642 if test "$ol_enable_rwm" = mod ; then
24643 MFLAG=SLAPD_MOD_DYNAMIC
24644 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS rwm.la"
24646 MFLAG=SLAPD_MOD_STATIC
24647 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS rwm_x.o"
24650 cat >>confdefs.h <<_ACEOF
24651 #define SLAPD_OVER_RWM $MFLAG
24656 if test "$ol_enable_seqmod" != no ; then
24657 BUILD_SEQMOD=$ol_enable_seqmod
24658 if test "$ol_enable_seqmod" = mod ; then
24659 MFLAG=SLAPD_MOD_DYNAMIC
24660 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS seqmod.la"
24662 MFLAG=SLAPD_MOD_STATIC
24663 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS seqmod.o"
24666 cat >>confdefs.h <<_ACEOF
24667 #define SLAPD_OVER_SEQMOD $MFLAG
24672 if test "$ol_enable_sssvlv" != no ; then
24673 BUILD_SSSVLV=$ol_enable_sssvlv
24674 if test "$ol_enable_sssvlv" = mod ; then
24675 MFLAG=SLAPD_MOD_DYNAMIC
24676 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS sssvlv.la"
24678 MFLAG=SLAPD_MOD_STATIC
24679 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS sssvlv.o"
24682 cat >>confdefs.h <<_ACEOF
24683 #define SLAPD_OVER_SSSVLV $MFLAG
24688 if test "$ol_enable_syncprov" != no ; then
24689 BUILD_SYNCPROV=$ol_enable_syncprov
24690 if test "$ol_enable_syncprov" = mod ; then
24691 MFLAG=SLAPD_MOD_DYNAMIC
24692 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS syncprov.la"
24694 MFLAG=SLAPD_MOD_STATIC
24695 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS syncprov.o"
24698 cat >>confdefs.h <<_ACEOF
24699 #define SLAPD_OVER_SYNCPROV $MFLAG
24704 if test "$ol_enable_translucent" != no ; then
24705 BUILD_TRANSLUCENT=$ol_enable_translucent
24706 if test "$ol_enable_translucent" = mod ; then
24707 MFLAG=SLAPD_MOD_DYNAMIC
24708 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS translucent.la"
24710 MFLAG=SLAPD_MOD_STATIC
24711 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS translucent.o"
24714 cat >>confdefs.h <<_ACEOF
24715 #define SLAPD_OVER_TRANSLUCENT $MFLAG
24720 if test "$ol_enable_unique" != no ; then
24721 BUILD_UNIQUE=$ol_enable_unique
24722 if test "$ol_enable_unique" = mod ; then
24723 MFLAG=SLAPD_MOD_DYNAMIC
24724 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS unique.la"
24726 MFLAG=SLAPD_MOD_STATIC
24727 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS unique.o"
24730 cat >>confdefs.h <<_ACEOF
24731 #define SLAPD_OVER_UNIQUE $MFLAG
24736 if test "$ol_enable_valsort" != no ; then
24737 BUILD_VALSORT=$ol_enable_valsort
24738 if test "$ol_enable_valsort" = mod ; then
24739 MFLAG=SLAPD_MOD_DYNAMIC
24740 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS valsort.la"
24742 MFLAG=SLAPD_MOD_STATIC
24743 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS valsort.o"
24746 cat >>confdefs.h <<_ACEOF
24747 #define SLAPD_OVER_VALSORT $MFLAG
24752 if test "$ol_enable_rewrite" != no ; then
24754 $as_echo "#define ENABLE_REWRITE 1" >>confdefs.h
24759 if test "$ol_enable_slapi" != no ; then
24761 $as_echo "#define ENABLE_SLAPI 1" >>confdefs.h
24764 SLAPD_SLAPI_DEPEND=libslapi.a
24769 if test "$ac_cv_mingw32" = yes -o $ol_cv_msvc = yes ; then
24771 SLAPD_MODULES_LDFLAGS=
24866 # Check whether --with-xxinstall was given.
24867 if test "${with_xxinstall+set}" = set; then :
24868 withval=$with_xxinstall;
24873 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"
24876 ac_config_commands="$ac_config_commands default"
24880 test "x$prefix" = xNONE && prefix=$ac_default_prefix
24881 # Let make expand exec_prefix.
24882 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
24884 DEFS=-DHAVE_CONFIG_H
24889 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
24890 # 1. Remove the extension, and $U if already installed.
24891 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
24892 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
24893 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
24894 # will be set to the directory where LIBOBJS objects are built.
24895 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
24896 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
24898 LIBOBJS=$ac_libobjs
24900 LTLIBOBJS=$ac_ltlibobjs
24903 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
24904 as_fn_error $? "conditional \"AMDEP\" was never defined.
24905 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24907 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
24908 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
24909 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24911 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
24912 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
24913 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24917 : "${CONFIG_STATUS=./config.status}"
24919 ac_clean_files_save=$ac_clean_files
24920 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
24921 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
24922 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
24924 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
24926 # Generated by $as_me.
24927 # Run this file to recreate the current configuration.
24928 # Compiler output produced by configure, useful for debugging
24929 # configure, is in config.log if it exists.
24932 ac_cs_recheck=false
24935 SHELL=\${CONFIG_SHELL-$SHELL}
24938 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
24939 ## -------------------- ##
24940 ## M4sh Initialization. ##
24941 ## -------------------- ##
24943 # Be more Bourne compatible
24944 DUALCASE=1; export DUALCASE # for MKS sh
24945 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
24948 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
24949 # is contrary to our usage. Disable this feature.
24950 alias -g '${1+"$@"}'='"$@"'
24951 setopt NO_GLOB_SUBST
24953 case `(set -o) 2>/dev/null` in #(
24965 # Printing a long string crashes Solaris 7 /usr/bin/printf.
24966 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
24967 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
24968 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
24969 # Prefer a ksh shell builtin over an external printf program on Solaris,
24970 # but without wasting forks for bash or zsh.
24971 if test -z "$BASH_VERSION$ZSH_VERSION" \
24972 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
24973 as_echo='print -r --'
24974 as_echo_n='print -rn --'
24975 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
24976 as_echo='printf %s\n'
24977 as_echo_n='printf %s'
24979 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
24980 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
24981 as_echo_n='/usr/ucb/echo -n'
24983 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
24984 as_echo_n_body='eval
24988 expr "X$arg" : "X\\(.*\\)$as_nl";
24989 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
24991 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
24993 export as_echo_n_body
24994 as_echo_n='sh -c $as_echo_n_body as_echo'
24996 export as_echo_body
24997 as_echo='sh -c $as_echo_body as_echo'
25000 # The user is always right.
25001 if test "${PATH_SEPARATOR+set}" != set; then
25003 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
25004 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
25011 # We need space, tab and new line, in precisely that order. Quoting is
25012 # there to prevent editors from complaining about space-tab.
25013 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
25014 # splitting by setting IFS to empty value.)
25017 # Find who we are. Look in the path if we contain no directory separator.
25020 *[\\/]* ) as_myself=$0 ;;
25021 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25022 for as_dir in $PATH
25025 test -z "$as_dir" && as_dir=.
25026 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
25032 # We did not find ourselves, most probably we were run as `sh COMMAND'
25033 # in which case we are not to be found in the path.
25034 if test "x$as_myself" = x; then
25037 if test ! -f "$as_myself"; then
25038 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
25042 # Unset variables that we do not need and which cause bugs (e.g. in
25043 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
25044 # suppresses any "Segmentation fault" message there. '((' could
25045 # trigger a bug in pdksh 5.2.14.
25046 for as_var in BASH_ENV ENV MAIL MAILPATH
25047 do eval test x\${$as_var+set} = xset \
25048 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
25061 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
25064 # as_fn_error STATUS ERROR [LINENO LOG_FD]
25065 # ----------------------------------------
25066 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
25067 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
25068 # script with STATUS, using 1 if that was 0.
25071 as_status=$1; test $as_status -eq 0 && as_status=1
25073 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
25074 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
25076 $as_echo "$as_me: error: $2" >&2
25077 as_fn_exit $as_status
25081 # as_fn_set_status STATUS
25082 # -----------------------
25083 # Set $? to STATUS, without forking.
25084 as_fn_set_status ()
25087 } # as_fn_set_status
25089 # as_fn_exit STATUS
25090 # -----------------
25091 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
25095 as_fn_set_status $1
25101 # Portably unset VAR.
25104 { eval $1=; unset $1;}
25106 as_unset=as_fn_unset
25107 # as_fn_append VAR VALUE
25108 # ----------------------
25109 # Append the text in VALUE to the end of the definition contained in VAR. Take
25110 # advantage of any shell optimizations that allow amortized linear growth over
25111 # repeated appends, instead of the typical quadratic growth present in naive
25113 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
25114 eval 'as_fn_append ()
25125 # as_fn_arith ARG...
25126 # ------------------
25127 # Perform arithmetic evaluation on the ARGs, and store the result in the
25128 # global $as_val. Take advantage of shells that can avoid forks. The arguments
25129 # must be portable across $(()) and expr.
25130 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
25131 eval 'as_fn_arith ()
25138 as_val=`expr "$@" || test $? -eq 1`
25143 if expr a : '\(a\)' >/dev/null 2>&1 &&
25144 test "X`expr 00001 : '.*\(...\)'`" = X001; then
25150 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
25151 as_basename=basename
25156 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
25162 as_me=`$as_basename -- "$0" ||
25163 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
25164 X"$0" : 'X\(//\)$' \| \
25165 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
25167 sed '/^.*\/\([^/][^/]*\)\/*$/{
25181 # Avoid depending upon Character Ranges.
25182 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
25183 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
25184 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
25185 as_cr_digits='0123456789'
25186 as_cr_alnum=$as_cr_Letters$as_cr_digits
25188 ECHO_C= ECHO_N= ECHO_T=
25189 case `echo -n x` in #(((((
25191 case `echo 'xy\c'` in
25192 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
25194 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
25201 rm -f conf$$ conf$$.exe conf$$.file
25202 if test -d conf$$.dir; then
25203 rm -f conf$$.dir/conf$$.file
25206 mkdir conf$$.dir 2>/dev/null
25208 if (echo >conf$$.file) 2>/dev/null; then
25209 if ln -s conf$$.file conf$$ 2>/dev/null; then
25211 # ... but there are two gotchas:
25212 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
25213 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
25214 # In both cases, we have to default to `cp -pR'.
25215 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
25217 elif ln conf$$.file conf$$ 2>/dev/null; then
25225 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
25226 rmdir conf$$.dir 2>/dev/null
25231 # Create "$as_dir" as a directory, including parents if necessary.
25236 -*) as_dir=./$as_dir;;
25238 test -d "$as_dir" || eval $as_mkdir_p || {
25242 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
25243 *) as_qdir=$as_dir;;
25245 as_dirs="'$as_qdir' $as_dirs"
25246 as_dir=`$as_dirname -- "$as_dir" ||
25247 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25248 X"$as_dir" : 'X\(//\)[^/]' \| \
25249 X"$as_dir" : 'X\(//\)$' \| \
25250 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
25251 $as_echo X"$as_dir" |
25252 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25256 /^X\(\/\/\)[^/].*/{
25269 test -d "$as_dir" && break
25271 test -z "$as_dirs" || eval "mkdir $as_dirs"
25272 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
25276 if mkdir -p . 2>/dev/null; then
25277 as_mkdir_p='mkdir -p "$as_dir"'
25279 test -d ./-p && rmdir ./-p
25284 # as_fn_executable_p FILE
25285 # -----------------------
25286 # Test if FILE is an executable regular file.
25287 as_fn_executable_p ()
25289 test -f "$1" && test -x "$1"
25290 } # as_fn_executable_p
25291 as_test_x='test -x'
25292 as_executable_p=as_fn_executable_p
25294 # Sed expression to map a string onto a valid CPP name.
25295 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
25297 # Sed expression to map a string onto a valid variable name.
25298 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
25302 ## ----------------------------------- ##
25303 ## Main body of $CONFIG_STATUS script. ##
25304 ## ----------------------------------- ##
25306 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
25308 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25309 # Save the log message, to keep $0 and so on meaningful, and to
25310 # report actual input values of CONFIG_FILES etc. instead of their
25311 # values after options handling.
25313 This file was extended by $as_me, which was
25314 generated by GNU Autoconf 2.69. Invocation command line was
25316 CONFIG_FILES = $CONFIG_FILES
25317 CONFIG_HEADERS = $CONFIG_HEADERS
25318 CONFIG_LINKS = $CONFIG_LINKS
25319 CONFIG_COMMANDS = $CONFIG_COMMANDS
25322 on `(hostname || uname -n) 2>/dev/null | sed 1q`
25327 case $ac_config_files in *"
25328 "*) set x $ac_config_files; shift; ac_config_files=$*;;
25331 case $ac_config_headers in *"
25332 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
25336 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25337 # Files that config.status was made for.
25338 config_files="$ac_config_files"
25339 config_headers="$ac_config_headers"
25340 config_commands="$ac_config_commands"
25344 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25346 \`$as_me' instantiates files and other configuration actions
25347 from templates according to the current configuration. Unless the files
25348 and actions are specified as TAGs, all are instantiated by default.
25350 Usage: $0 [OPTION]... [TAG]...
25352 -h, --help print this help, then exit
25353 -V, --version print version number and configuration settings, then exit
25354 --config print configuration, then exit
25355 -q, --quiet, --silent
25356 do not print progress messages
25357 -d, --debug don't remove temporary files
25358 --recheck update $as_me by reconfiguring in the same conditions
25359 --file=FILE[:TEMPLATE]
25360 instantiate the configuration file FILE
25361 --header=FILE[:TEMPLATE]
25362 instantiate the configuration header FILE
25364 Configuration files:
25367 Configuration headers:
25370 Configuration commands:
25373 Report bugs to <<http://www.openldap.org/its/>>."
25376 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25377 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
25380 configured by $0, generated by GNU Autoconf 2.69,
25381 with options \\"\$ac_cs_config\\"
25383 Copyright (C) 2012 Free Software Foundation, Inc.
25384 This config.status script is free software; the Free Software Foundation
25385 gives unlimited permission to copy, distribute and modify it."
25391 test -n "\$AWK" || AWK=awk
25394 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25395 # The default lists apply if the user does not specify any file.
25401 ac_option=`expr "X$1" : 'X\([^=]*\)='`
25402 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
25406 ac_option=`expr "X$1" : 'X\([^=]*\)='`
25418 # Handling of the options.
25419 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
25421 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
25422 $as_echo "$ac_cs_version"; exit ;;
25423 --config | --confi | --conf | --con | --co | --c )
25424 $as_echo "$ac_cs_config"; exit ;;
25425 --debug | --debu | --deb | --de | --d | -d )
25427 --file | --fil | --fi | --f )
25430 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
25431 '') as_fn_error $? "missing file argument" ;;
25433 as_fn_append CONFIG_FILES " '$ac_optarg'"
25434 ac_need_defaults=false;;
25435 --header | --heade | --head | --hea )
25438 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
25440 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
25441 ac_need_defaults=false;;
25443 # Conflict between --help and --header
25444 as_fn_error $? "ambiguous option: \`$1'
25445 Try \`$0 --help' for more information.";;
25446 --help | --hel | -h )
25447 $as_echo "$ac_cs_usage"; exit ;;
25448 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
25449 | -silent | --silent | --silen | --sile | --sil | --si | --s)
25452 # This is an error.
25453 -*) as_fn_error $? "unrecognized option: \`$1'
25454 Try \`$0 --help' for more information." ;;
25456 *) as_fn_append ac_config_targets " $1"
25457 ac_need_defaults=false ;;
25463 ac_configure_extra_args=
25465 if $ac_cs_silent; then
25467 ac_configure_extra_args="$ac_configure_extra_args --silent"
25471 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25472 if \$ac_cs_recheck; then
25473 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
25475 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
25476 CONFIG_SHELL='$SHELL'
25477 export CONFIG_SHELL
25482 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25486 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
25487 ## Running $as_me. ##
25493 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25497 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
25499 STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS"
25500 STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS"
25505 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25507 # Handling of arguments.
25508 for ac_config_target in $ac_config_targets
25510 case $ac_config_target in
25511 "include/portable.h") CONFIG_HEADERS="$CONFIG_HEADERS include/portable.h:include/portable.hin" ;;
25512 "include/ldap_features.h") CONFIG_HEADERS="$CONFIG_HEADERS include/ldap_features.h:include/ldap_features.hin" ;;
25513 "include/lber_types.h") CONFIG_HEADERS="$CONFIG_HEADERS include/lber_types.h:include/lber_types.hin" ;;
25514 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
25515 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile:build/top.mk:Makefile.in:build/dir.mk" ;;
25516 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk" ;;
25517 "doc/man/Makefile") CONFIG_FILES="$CONFIG_FILES doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk" ;;
25518 "doc/man/man1/Makefile") CONFIG_FILES="$CONFIG_FILES doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk" ;;
25519 "doc/man/man3/Makefile") CONFIG_FILES="$CONFIG_FILES doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk" ;;
25520 "doc/man/man5/Makefile") CONFIG_FILES="$CONFIG_FILES doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk" ;;
25521 "doc/man/man8/Makefile") CONFIG_FILES="$CONFIG_FILES doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk" ;;
25522 "clients/Makefile") CONFIG_FILES="$CONFIG_FILES clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk" ;;
25523 "clients/tools/Makefile") CONFIG_FILES="$CONFIG_FILES clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk" ;;
25524 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile:build/top.mk:include/Makefile.in" ;;
25525 "libraries/Makefile") CONFIG_FILES="$CONFIG_FILES libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk" ;;
25526 "libraries/liblber/Makefile") CONFIG_FILES="$CONFIG_FILES libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk" ;;
25527 "libraries/libldap/Makefile") CONFIG_FILES="$CONFIG_FILES libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk" ;;
25528 "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" ;;
25529 "libraries/liblunicode/Makefile") CONFIG_FILES="$CONFIG_FILES libraries/liblunicode/Makefile:build/top.mk:libraries/liblunicode/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
25530 "libraries/liblutil/Makefile") CONFIG_FILES="$CONFIG_FILES libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
25531 "libraries/librewrite/Makefile") CONFIG_FILES="$CONFIG_FILES libraries/librewrite/Makefile:build/top.mk:libraries/librewrite/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
25532 "servers/Makefile") CONFIG_FILES="$CONFIG_FILES servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk" ;;
25533 "servers/slapd/Makefile") CONFIG_FILES="$CONFIG_FILES servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk" ;;
25534 "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" ;;
25535 "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" ;;
25536 "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" ;;
25537 "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" ;;
25538 "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" ;;
25539 "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" ;;
25540 "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" ;;
25541 "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" ;;
25542 "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" ;;
25543 "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" ;;
25544 "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" ;;
25545 "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" ;;
25546 "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" ;;
25547 "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" ;;
25548 "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" ;;
25549 "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" ;;
25550 "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" ;;
25551 "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" ;;
25552 "servers/slapd/overlays/Makefile") CONFIG_FILES="$CONFIG_FILES servers/slapd/overlays/Makefile:build/top.mk:servers/slapd/overlays/Makefile.in:build/lib.mk" ;;
25553 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk" ;;
25554 "tests/run") CONFIG_FILES="$CONFIG_FILES tests/run" ;;
25555 "tests/progs/Makefile") CONFIG_FILES="$CONFIG_FILES tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk" ;;
25556 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
25558 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
25563 # If the user did not use the arguments to specify the items to instantiate,
25564 # then the envvar interface is used. Set only those that are not.
25565 # We use the long form for the default assignment because of an extremely
25566 # bizarre bug on SunOS 4.1.3.
25567 if $ac_need_defaults; then
25568 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
25569 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
25570 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
25573 # Have a temporary directory for convenience. Make it in the build tree
25574 # simply because there is no reason against having it here, and in addition,
25575 # creating and moving files from /tmp can sometimes cause problems.
25576 # Hook for its removal unless debugging.
25577 # Note that there is a small window in which the directory will not be cleaned:
25578 # after its creation but before its name has been assigned to `$tmp'.
25582 trap 'exit_status=$?
25583 : "${ac_tmp:=$tmp}"
25584 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
25586 trap 'as_fn_exit 1' 1 2 13 15
25588 # Create a (secure) tmp directory for tmp files.
25591 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
25595 tmp=./conf$$-$RANDOM
25596 (umask 077 && mkdir "$tmp")
25597 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
25600 # Set up the scripts for CONFIG_FILES section.
25601 # No need to generate them if there are no CONFIG_FILES.
25602 # This happens for instance with `./config.status config.h'.
25603 if test -n "$CONFIG_FILES"; then
25606 ac_cr=`echo X | tr X '\015'`
25607 # On cygwin, bash can eat \r inside `` if the user requested igncr.
25608 # But we know of no other shell where ac_cr would be empty at this
25609 # point, so we can use a bashism as a fallback.
25610 if test "x$ac_cr" = x; then
25611 eval ac_cr=\$\'\\r\'
25613 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
25614 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
25617 ac_cs_awk_cr=$ac_cr
25620 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
25625 echo "cat >conf$$subs.awk <<_ACEOF" &&
25626 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
25628 } >conf$$subs.sh ||
25629 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
25630 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
25632 for ac_last_try in false false false false false :; do
25633 . ./conf$$subs.sh ||
25634 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
25636 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
25637 if test $ac_delim_n = $ac_delim_num; then
25639 elif $ac_last_try; then
25640 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
25642 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
25645 rm -f conf$$subs.sh
25647 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25648 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
25652 s/^/S["/; s/!.*/"]=/
25662 s/\(.\{148\}\)..*/\1/
25664 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
25669 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
25676 s/\(.\{148\}\)..*/\1/
25678 s/["\\]/\\&/g; s/^/"/; s/$/"/
25682 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
25687 ' <conf$$subs.awk | sed '
25692 ' >>$CONFIG_STATUS || ac_write_fail=1
25693 rm -f conf$$subs.awk
25694 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25696 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
25697 for (key in S) S_is_set[key] = 1
25703 nfields = split(line, field, "@")
25705 len = length(field[1])
25706 for (i = 2; i < nfields; i++) {
25708 keylen = length(key)
25709 if (S_is_set[key]) {
25711 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
25712 len += length(value) + length(field[++i])
25723 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25724 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
25725 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
25728 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
25729 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
25732 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
25733 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
25734 # trailing colons and then remove the whole line if VPATH becomes empty
25735 # (actually we leave an empty line to preserve line numbers).
25736 if test "x$srcdir" = x.; then
25737 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
25755 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25756 fi # test -n "$CONFIG_FILES"
25758 # Set up the scripts for CONFIG_HEADERS section.
25759 # No need to generate them if there are no CONFIG_HEADERS.
25760 # This happens for instance with `./config.status Makefile'.
25761 if test -n "$CONFIG_HEADERS"; then
25762 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
25766 # Transform confdefs.h into an awk script `defines.awk', embedded as
25767 # here-document in config.status, that substitutes the proper values into
25768 # config.h.in to produce config.h.
25770 # Create a delimiter string that does not exist in confdefs.h, to ease
25771 # handling of long lines.
25773 for ac_last_try in false false :; do
25774 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
25775 if test -z "$ac_tt"; then
25777 elif $ac_last_try; then
25778 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
25780 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
25784 # For the awk script, D is an array of macro values keyed by name,
25785 # likewise P contains macro parameters if any. Preserve backslash
25786 # newline sequences.
25788 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
25790 s/.\{148\}/&'"$ac_delim"'/g
25793 s/^[ ]*#[ ]*define[ ][ ]*/ /
25800 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
25802 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
25806 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
25807 D["\1"]=" \3\\\\\\n"\\/p
25809 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
25814 s/.\{148\}/&'"$ac_delim"'/g
25819 s/["\\]/\\&/g; s/^/"/; s/$/"/p
25822 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
25824 ' <confdefs.h | sed '
25825 s/'"$ac_delim"'/"\\\
25826 "/g' >>$CONFIG_STATUS || ac_write_fail=1
25828 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25829 for (key in D) D_is_set[key] = 1
25832 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
25834 split(line, arg, " ")
25835 if (arg[1] == "#") {
25839 defundef = substr(arg[1], 2)
25842 split(mac1, mac2, "(") #)
25844 prefix = substr(line, 1, index(line, defundef) - 1)
25845 if (D_is_set[macro]) {
25846 # Preserve the white space surrounding the "#".
25847 print prefix "define", macro P[macro] D[macro]
25850 # Replace #undef with comments. This is necessary, for example,
25851 # in the case of _POSIX_SOURCE, which is predefined and required
25852 # on some systems where configure will not decide to define it.
25853 if (defundef == "undef") {
25854 print "/*", prefix defundef, macro, "*/"
25862 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25863 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
25864 fi # test -n "$CONFIG_HEADERS"
25867 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
25872 :[FHLC]) ac_mode=$ac_tag; continue;;
25874 case $ac_mode$ac_tag in
25876 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
25877 :[FH]-) ac_tag=-:-;;
25878 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
25895 -) ac_f="$ac_tmp/stdin";;
25896 *) # Look for the file first in the build tree, then in the source tree
25897 # (if the path is not absolute). The absolute path cannot be DOS-style,
25898 # because $ac_f cannot contain `:'.
25902 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
25904 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
25906 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
25907 as_fn_append ac_file_inputs " '$ac_f'"
25910 # Let's still pretend it is `configure' which instantiates (i.e., don't
25911 # use $as_me), people would be surprised to read:
25912 # /* config.h. Generated by config.status. */
25913 configure_input='Generated from '`
25914 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
25916 if test x"$ac_file" != x-; then
25917 configure_input="$ac_file. $configure_input"
25918 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
25919 $as_echo "$as_me: creating $ac_file" >&6;}
25921 # Neutralize special characters interpreted by sed in replacement strings.
25922 case $configure_input in #(
25923 *\&* | *\|* | *\\* )
25924 ac_sed_conf_input=`$as_echo "$configure_input" |
25925 sed 's/[\\\\&|]/\\\\&/g'`;; #(
25926 *) ac_sed_conf_input=$configure_input;;
25930 *:-:* | *:-) cat >"$ac_tmp/stdin" \
25931 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
25936 ac_dir=`$as_dirname -- "$ac_file" ||
25937 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25938 X"$ac_file" : 'X\(//\)[^/]' \| \
25939 X"$ac_file" : 'X\(//\)$' \| \
25940 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
25941 $as_echo X"$ac_file" |
25942 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25946 /^X\(\/\/\)[^/].*/{
25959 as_dir="$ac_dir"; as_fn_mkdir_p
25963 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
25965 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
25966 # A ".." for each directory in $ac_dir_suffix.
25967 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
25968 case $ac_top_builddir_sub in
25969 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
25970 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
25973 ac_abs_top_builddir=$ac_pwd
25974 ac_abs_builddir=$ac_pwd$ac_dir_suffix
25975 # for backward compatibility:
25976 ac_top_builddir=$ac_top_build_prefix
25979 .) # We are building in place.
25981 ac_top_srcdir=$ac_top_builddir_sub
25982 ac_abs_top_srcdir=$ac_pwd ;;
25983 [\\/]* | ?:[\\/]* ) # Absolute name.
25984 ac_srcdir=$srcdir$ac_dir_suffix;
25985 ac_top_srcdir=$srcdir
25986 ac_abs_top_srcdir=$srcdir ;;
25987 *) # Relative name.
25988 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
25989 ac_top_srcdir=$ac_top_build_prefix$srcdir
25990 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
25992 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
26002 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
26003 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
26007 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26008 # If the template does not know about datarootdir, expand it.
26009 # FIXME: This hack should be removed a few years after 2.60.
26010 ac_datarootdir_hack=; ac_datarootdir_seen=
26021 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
26022 *datarootdir*) ac_datarootdir_seen=yes;;
26023 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
26024 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
26025 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
26027 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26028 ac_datarootdir_hack='
26029 s&@datadir@&$datadir&g
26030 s&@docdir@&$docdir&g
26031 s&@infodir@&$infodir&g
26032 s&@localedir@&$localedir&g
26033 s&@mandir@&$mandir&g
26034 s&\\\${datarootdir}&$datarootdir&g' ;;
26038 # Neutralize VPATH when `$srcdir' = `.'.
26039 # Shell code in configure.ac might set extrasub.
26040 # FIXME: do we really want to maintain this feature?
26041 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26042 ac_sed_extra="$ac_vpsub
26045 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26047 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
26048 s|@configure_input@|$ac_sed_conf_input|;t t
26049 s&@top_builddir@&$ac_top_builddir_sub&;t t
26050 s&@top_build_prefix@&$ac_top_build_prefix&;t t
26051 s&@srcdir@&$ac_srcdir&;t t
26052 s&@abs_srcdir@&$ac_abs_srcdir&;t t
26053 s&@top_srcdir@&$ac_top_srcdir&;t t
26054 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
26055 s&@builddir@&$ac_builddir&;t t
26056 s&@abs_builddir@&$ac_abs_builddir&;t t
26057 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
26058 s&@INSTALL@&$ac_INSTALL&;t t
26059 $ac_datarootdir_hack
26061 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
26062 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
26064 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
26065 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
26066 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
26067 "$ac_tmp/out"`; test -z "$ac_out"; } &&
26068 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
26069 which seems to be undefined. Please make sure it is defined" >&5
26070 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
26071 which seems to be undefined. Please make sure it is defined" >&2;}
26073 rm -f "$ac_tmp/stdin"
26075 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
26076 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
26078 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
26084 if test x"$ac_file" != x-; then
26086 $as_echo "/* $configure_input */" \
26087 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
26088 } >"$ac_tmp/config.h" \
26089 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
26090 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
26091 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
26092 $as_echo "$as_me: $ac_file is unchanged" >&6;}
26095 mv "$ac_tmp/config.h" "$ac_file" \
26096 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
26099 $as_echo "/* $configure_input */" \
26100 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
26101 || as_fn_error $? "could not create -" "$LINENO" 5
26103 # Compute "$ac_file"'s index in $config_headers.
26105 for _am_header in $config_headers :; do
26106 case $_am_header in
26107 "$ac_file" | "$ac_file":* )
26110 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
26113 echo "timestamp for "$ac_file"" >`$as_dirname -- "$ac_file" ||
26114 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26115 X"$ac_file" : 'X\(//\)[^/]' \| \
26116 X"$ac_file" : 'X\(//\)$' \| \
26117 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
26118 $as_echo X"$ac_file" |
26119 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26123 /^X\(\/\/\)[^/].*/{
26135 s/.*/./; q'`/stamp-h$_am_stamp_count
26138 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
26139 $as_echo "$as_me: executing $ac_file commands" >&6;}
26144 case $ac_file$ac_mode in
26145 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
26146 # Strip MF so we end up with the name of the file.
26147 mf=`echo "$mf" | sed -e 's/:.*$//'`
26148 # Check whether this is an Automake generated Makefile or not.
26149 # We used to match only the files named `Makefile.in', but
26150 # some people rename them; so instead we look at the file content.
26151 # Grep'ing the first line is not enough: some people post-process
26152 # each Makefile.in and add a new line on top of each file to say so.
26153 # So let's grep whole file.
26154 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
26155 dirpart=`$as_dirname -- "$mf" ||
26156 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26157 X"$mf" : 'X\(//\)[^/]' \| \
26158 X"$mf" : 'X\(//\)$' \| \
26159 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
26161 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26165 /^X\(\/\/\)[^/].*/{
26181 # Extract the definition of DEPDIR, am__include, and am__quote
26182 # from the Makefile without running `make'.
26183 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
26184 test -z "$DEPDIR" && continue
26185 am__include=`sed -n 's/^am__include = //p' < "$mf"`
26186 test -z "am__include" && continue
26187 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
26188 # When using ansi2knr, U may be empty or an underscore; expand it
26189 U=`sed -n 's/^U = //p' < "$mf"`
26190 # Find all dependency output files, they are included files with
26191 # $(DEPDIR) in their names. We invoke sed twice because it is the
26192 # simplest approach to changing $(DEPDIR) to its actual value in the
26194 for file in `sed -n "
26195 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
26196 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
26197 # Make sure the directory exists.
26198 test -f "$dirpart/$file" && continue
26199 fdir=`$as_dirname -- "$file" ||
26200 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26201 X"$file" : 'X\(//\)[^/]' \| \
26202 X"$file" : 'X\(//\)$' \| \
26203 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
26204 $as_echo X"$file" |
26205 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26209 /^X\(\/\/\)[^/].*/{
26222 as_dir=$dirpart/$fdir; as_fn_mkdir_p
26223 # echo "creating $dirpart/$file"
26224 echo '# dummy' > "$dirpart/$file"
26231 BACKENDSC="servers/slapd/backends.c"
26232 echo "Making $BACKENDSC"
26234 cat > $BACKENDSC << ENDX
26235 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
26237 * Copyright 1998-2014 The OpenLDAP Foundation.
26238 * All rights reserved.
26240 * Redistribution and use in source and binary forms, with or without
26241 * modification, are permitted only as authorized by the OpenLDAP
26244 * A copy of this license is available in the file LICENSE in the
26245 * top-level directory of the distribution or, alternatively, at
26246 * <http://www.OpenLDAP.org/license.html>.
26248 /* This file is automatically generated by configure; please do not edit. */
26250 #include "portable.h"
26254 if test "${STATIC_BACKENDS}"; then
26255 for b in config ${STATIC_BACKENDS}; do
26256 bb=`echo "${b}" | sed -e 's/back-//'`
26257 cat >> $BACKENDSC << ENDX
26258 extern BI_init ${bb}_back_initialize;
26262 cat >> $BACKENDSC << ENDX
26264 BackendInfo slap_binfo[] = {
26267 for b in config ${STATIC_BACKENDS}; do
26268 bb=`echo "${b}" | sed -e 's/back-//'`
26269 echo " Add ${bb} ..."
26270 cat >> $BACKENDSC << ENDX
26271 { "${bb}", ${bb}_back_initialize },
26275 cat >> $BACKENDSC << ENDX
26279 /* end of generated file */
26282 OVERLAYSC="servers/slapd/overlays/statover.c"
26283 echo "Making $OVERLAYSC"
26285 cat > $OVERLAYSC << ENDX
26286 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
26288 * Copyright 1998-2014 The OpenLDAP Foundation.
26289 * All rights reserved.
26291 * Redistribution and use in source and binary forms, with or without
26292 * modification, are permitted only as authorized by the OpenLDAP
26295 * A copy of this license is available in the file LICENSE in the
26296 * top-level directory of the distribution or, alternatively, at
26297 * <http://www.OpenLDAP.org/license.html>.
26299 /* This file is automatically generated by configure; please do not edit. */
26301 #include "portable.h"
26305 if test "${STATIC_OVERLAYS}"; then
26306 for o in ${STATIC_OVERLAYS}; do
26307 oo=`echo "${o}" | sed -e 's/.o$//' -e 's/_x$//'`
26308 cat >> $OVERLAYSC << ENDX
26309 extern OV_init ${oo}_initialize;
26314 cat >> $OVERLAYSC << ENDX
26316 OverlayInit slap_oinfo[] = {
26319 if test "${STATIC_OVERLAYS}"; then
26320 for o in ${STATIC_OVERLAYS}; do
26321 oo=`echo "${o}" | sed -e 's/.o$//' -e 's/_x$//'`
26322 echo " Add ${oo} ..."
26323 cat >> $OVERLAYSC << ENDX
26324 { "${oo}", ${oo}_initialize },
26329 cat >> $OVERLAYSC << ENDX
26333 /* end of generated file */
26336 if test "${ol_cv_mkdep}" = no; then
26337 echo '(Do not "make depend"; we do not know how to build dependencies)'
26339 echo 'Please run "make depend" to build dependencies'
26349 ac_clean_files=$ac_clean_files_save
26351 test $ac_write_fail = 0 ||
26352 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
26355 # configure is writing to config.log, and then calls config.status.
26356 # config.status does its own redirection, appending to config.log.
26357 # Unfortunately, on DOS this fails, as config.log is still kept open
26358 # by configure, so config.status won't be able to write to it; its
26359 # output is simply discarded. So we exec the FD to /dev/null,
26360 # effectively closing config.log, so it can be properly (re)opened and
26361 # appended to by config.status. When coming back to configure, we
26362 # need to make the FD available again.
26363 if test "$no_create" != yes; then
26365 ac_config_status_args=
26366 test "$silent" = yes &&
26367 ac_config_status_args="$ac_config_status_args --quiet"
26369 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
26371 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
26372 # would make configure fail if this is the last instruction.
26373 $ac_cs_success || as_fn_exit 1
26375 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
26376 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
26377 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}