2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for subversion 1.14.0.
5 # Report bugs to <http://subversion.apache.org/>.
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
27 case `(set -o) 2>/dev/null` in #(
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68 as_echo_n='sh -c $as_echo_n_body as_echo'
71 as_echo='sh -c $as_echo_body as_echo'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
91 # Find who we are. Look in the path if we contain no directory separator.
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137 # Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
149 *v*x* | *x*v* ) as_opts=-vx ;;
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
171 case \`(set -o) 2>/dev/null\` in #(
179 as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
193 exitcode=1; echo positional parameters were not saved.
195 test x\$exitcode = x0 || exit 1
197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201 test \$(( 1 + 1 )) = 2 || exit 1
203 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
204 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
207 PATH=/empty FPATH=/empty; export PATH FPATH
208 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
209 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
210 if (eval "$as_required") 2>/dev/null; then :
215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
220 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223 test -z "$as_dir" && as_dir=.
227 for as_base in sh bash ksh sh5; do
228 # Try only shells that exist, to save several forks.
229 as_shell=$as_dir/$as_base
230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 CONFIG_SHELL=$as_shell as_have_required=yes
233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
241 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243 CONFIG_SHELL=$SHELL as_have_required=yes
248 if test "x$CONFIG_SHELL" != x; then :
250 # We cannot yet assume a decent shell, so we have to provide a
251 # neutralization value for shells without unset; and this also
252 # works around shells that cannot unset nonexistent variables.
253 # Preserve -v and -x to the replacement shell.
256 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
258 *v*x* | *x*v* ) as_opts=-vx ;;
263 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264 # Admittedly, this is quite paranoid, since all the known shells bail
265 # out after a failed `exec'.
266 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
270 if test x$as_have_required = xno; then :
271 $as_echo "$0: This script requires a shell more modern than all"
272 $as_echo "$0: the shells that I found on your system."
273 if test x${ZSH_VERSION+set} = xset ; then
274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
277 $as_echo "$0: Please tell bug-autoconf@gnu.org and
278 $0: http://subversion.apache.org/ about your system,
279 $0: including any error possibly output before this
280 $0: message. Then install a modern shell, or manually run
281 $0: the script under such a shell if you do have one."
287 SHELL=${CONFIG_SHELL-/bin/sh}
289 # Unset more variables known to interfere with behavior of common tools.
290 CLICOLOR_FORCE= GREP_OPTIONS=
291 unset CLICOLOR_FORCE GREP_OPTIONS
293 ## --------------------- ##
294 ## M4sh Shell Functions. ##
295 ## --------------------- ##
298 # Portably unset VAR.
301 { eval $1=; unset $1;}
305 # as_fn_set_status STATUS
306 # -----------------------
307 # Set $? to STATUS, without forking.
315 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
325 # Create "$as_dir" as a directory, including parents if necessary.
330 -*) as_dir=./$as_dir;;
332 test -d "$as_dir" || eval $as_mkdir_p || {
336 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
339 as_dirs="'$as_qdir' $as_dirs"
340 as_dir=`$as_dirname -- "$as_dir" ||
341 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
342 X"$as_dir" : 'X\(//\)[^/]' \| \
343 X"$as_dir" : 'X\(//\)$' \| \
344 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345 $as_echo X"$as_dir" |
346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
363 test -d "$as_dir" && break
365 test -z "$as_dirs" || eval "mkdir $as_dirs"
366 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
371 # as_fn_executable_p FILE
372 # -----------------------
373 # Test if FILE is an executable regular file.
374 as_fn_executable_p ()
376 test -f "$1" && test -x "$1"
377 } # as_fn_executable_p
378 # as_fn_append VAR VALUE
379 # ----------------------
380 # Append the text in VALUE to the end of the definition contained in VAR. Take
381 # advantage of any shell optimizations that allow amortized linear growth over
382 # repeated appends, instead of the typical quadratic growth present in naive
384 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
385 eval 'as_fn_append ()
398 # Perform arithmetic evaluation on the ARGs, and store the result in the
399 # global $as_val. Take advantage of shells that can avoid forks. The arguments
400 # must be portable across $(()) and expr.
401 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
409 as_val=`expr "$@" || test $? -eq 1`
414 # as_fn_error STATUS ERROR [LINENO LOG_FD]
415 # ----------------------------------------
416 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
417 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
418 # script with STATUS, using 1 if that was 0.
421 as_status=$1; test $as_status -eq 0 && as_status=1
423 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
424 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
426 $as_echo "$as_me: error: $2" >&2
427 as_fn_exit $as_status
430 if expr a : '\(a\)' >/dev/null 2>&1 &&
431 test "X`expr 00001 : '.*\(...\)'`" = X001; then
437 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
443 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
449 as_me=`$as_basename -- "$0" ||
450 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451 X"$0" : 'X\(//\)$' \| \
452 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
454 sed '/^.*\/\([^/][^/]*\)\/*$/{
468 # Avoid depending upon Character Ranges.
469 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
470 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
472 as_cr_digits='0123456789'
473 as_cr_alnum=$as_cr_Letters$as_cr_digits
476 as_lineno_1=$LINENO as_lineno_1a=$LINENO
477 as_lineno_2=$LINENO as_lineno_2a=$LINENO
478 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
479 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
480 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
492 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
496 chmod +x "$as_me.lineno" ||
497 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
499 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500 # already done that, so ensure we don't try to do so again and fall
501 # in an infinite loop. This has already happened in practice.
502 _as_can_reexec=no; export _as_can_reexec
503 # Don't try to exec as it changes $[0], causing all sort of problems
504 # (the dirname of $[0] is not the place where we might find the
505 # original and so on. Autoconf is especially sensitive to this).
507 # Exit status is that of the last command.
511 ECHO_C= ECHO_N= ECHO_T=
512 case `echo -n x` in #(((((
514 case `echo 'xy\c'` in
515 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
517 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
524 rm -f conf$$ conf$$.exe conf$$.file
525 if test -d conf$$.dir; then
526 rm -f conf$$.dir/conf$$.file
529 mkdir conf$$.dir 2>/dev/null
531 if (echo >conf$$.file) 2>/dev/null; then
532 if ln -s conf$$.file conf$$ 2>/dev/null; then
534 # ... but there are two gotchas:
535 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
536 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
537 # In both cases, we have to default to `cp -pR'.
538 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
540 elif ln conf$$.file conf$$ 2>/dev/null; then
548 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549 rmdir conf$$.dir 2>/dev/null
551 if mkdir -p . 2>/dev/null; then
552 as_mkdir_p='mkdir -p "$as_dir"'
554 test -d ./-p && rmdir ./-p
559 as_executable_p=as_fn_executable_p
561 # Sed expression to map a string onto a valid CPP name.
562 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
564 # Sed expression to map a string onto a valid variable name.
565 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
567 SHELL=${CONFIG_SHELL-/bin/sh}
570 test -n "$DJDIR" || exec 7<&0 </dev/null
574 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
575 # so uname gets run too.
576 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
581 ac_default_prefix=/usr/local
583 ac_config_libobj_dir=.
590 # Identity of this package.
591 PACKAGE_NAME='subversion'
592 PACKAGE_TARNAME='subversion'
593 PACKAGE_VERSION='1.14.0'
594 PACKAGE_STRING='subversion 1.14.0'
595 PACKAGE_BUGREPORT='http://subversion.apache.org/'
598 ac_unique_file="subversion/include/svn_types.h"
599 # Factoring default headers for most tests.
600 ac_includes_default="\
602 #ifdef HAVE_SYS_TYPES_H
603 # include <sys/types.h>
605 #ifdef HAVE_SYS_STAT_H
606 # include <sys/stat.h>
612 # ifdef HAVE_STDLIB_H
617 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
622 #ifdef HAVE_STRINGS_H
623 # include <strings.h>
625 #ifdef HAVE_INTTYPES_H
626 # include <inttypes.h>
635 ac_subst_vars='LTLIBOBJS
636 SVN_CONFIG_SCRIPT_FILES
638 JAVAHL_COMPAT_TESTS_TARGET
644 INSTALL_EXTRA_JAVAHL_LIB
645 SVN_BUILD_SVNXX_TESTS
649 BOOST_UNIT_TEST_FRAMEWORK_LIB
651 SVN_FS_LIB_INSTALL_DEPS
654 SVN_RA_LIB_INSTALL_DEPS
663 SWIG_RB_SITE_ARCH_DIR
698 SVN_UTF8PROC_INCLUDES
707 libsvn_ra_svn_LDFLAGS
708 libsvn_ra_serf_LDFLAGS
709 libsvn_ra_local_LDFLAGS
711 libsvn_fs_util_LDFLAGS
713 libsvn_fs_base_LDFLAGS
717 libsvn_client_LDFLAGS
736 SVN_GNOME_KEYRING_PCLIBS
737 SVN_GNOME_KEYRING_LIBS
738 SVN_GNOME_KEYRING_INCLUDES
740 SVN_MACOS_KEYCHAIN_LIBS
751 TRANSFORM_LIBTOOL_SCRIPTS
786 SVN_APR_MEMCACHE_LIBS
787 SVN_APR_MEMCACHE_INCLUDES
792 SVN_APR_MAJOR_VERSION
796 SVN_APR_SHLIB_PATH_VAR
870 program_transform_name
883 enable_option_checking
888 enable_apache_whitelist
890 with_apache_libexecdir
891 enable_broken_httpd_auth
893 enable_sqlite_compatibility_version
902 enable_experimental_libtool
904 enable_local_library_preloading
913 with_old_gnome_keyring
919 enable_plaintext_password_storage
922 enable_disallowing_of_undefined_references
923 enable_maintainer_mode
924 enable_full_version_match
929 enable_mod_activation
937 with_ruby_test_verbose
939 enable_runtime_module_search
944 with_boost_unit_test_framework
948 ac_precious_vars='build_alias
969 # Initialize some variables set by options.
971 ac_init_version=false
972 ac_unrecognized_opts=
974 # The variables have the same names as the options, with
975 # dashes changed to underlines.
983 program_transform_name=s,x,x,
991 # Installation directory options.
992 # These are left unexpanded so users can "make install exec_prefix=/foo"
993 # and all the variables that are supposed to be based on exec_prefix
994 # by default will actually change.
995 # Use braces instead of parens because sh, perl, etc. also accept them.
996 # (The list follows the same order as the GNU Coding Standards.)
997 bindir='${exec_prefix}/bin'
998 sbindir='${exec_prefix}/sbin'
999 libexecdir='${exec_prefix}/libexec'
1000 datarootdir='${prefix}/share'
1001 datadir='${datarootdir}'
1002 sysconfdir='${prefix}/etc'
1003 sharedstatedir='${prefix}/com'
1004 localstatedir='${prefix}/var'
1005 includedir='${prefix}/include'
1006 oldincludedir='/usr/include'
1007 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1008 infodir='${datarootdir}/info'
1013 libdir='${exec_prefix}/lib'
1014 localedir='${datarootdir}/locale'
1015 mandir='${datarootdir}/man'
1021 # If the previous option needs an argument, assign it.
1022 if test -n "$ac_prev"; then
1023 eval $ac_prev=\$ac_option
1029 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1034 # Accept the important Cygnus configure options, so we can diagnose typos.
1036 case $ac_dashdash$ac_option in
1040 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1042 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1043 bindir=$ac_optarg ;;
1045 -build | --build | --buil | --bui | --bu)
1046 ac_prev=build_alias ;;
1047 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1048 build_alias=$ac_optarg ;;
1050 -cache-file | --cache-file | --cache-fil | --cache-fi \
1051 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1052 ac_prev=cache_file ;;
1053 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1054 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1055 cache_file=$ac_optarg ;;
1057 --config-cache | -C)
1058 cache_file=config.cache ;;
1060 -datadir | --datadir | --datadi | --datad)
1062 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1063 datadir=$ac_optarg ;;
1065 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1066 | --dataroo | --dataro | --datar)
1067 ac_prev=datarootdir ;;
1068 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1069 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1070 datarootdir=$ac_optarg ;;
1072 -disable-* | --disable-*)
1073 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1074 # Reject names that are not valid shell variable names.
1075 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1076 as_fn_error $? "invalid feature name: $ac_useropt"
1077 ac_useropt_orig=$ac_useropt
1078 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1079 case $ac_user_opts in
1081 "enable_$ac_useropt"
1083 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1084 ac_unrecognized_sep=', ';;
1086 eval enable_$ac_useropt=no ;;
1088 -docdir | --docdir | --docdi | --doc | --do)
1090 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1091 docdir=$ac_optarg ;;
1093 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1095 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1096 dvidir=$ac_optarg ;;
1098 -enable-* | --enable-*)
1099 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1100 # Reject names that are not valid shell variable names.
1101 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1102 as_fn_error $? "invalid feature name: $ac_useropt"
1103 ac_useropt_orig=$ac_useropt
1104 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1105 case $ac_user_opts in
1107 "enable_$ac_useropt"
1109 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1110 ac_unrecognized_sep=', ';;
1112 eval enable_$ac_useropt=\$ac_optarg ;;
1114 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1115 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1116 | --exec | --exe | --ex)
1117 ac_prev=exec_prefix ;;
1118 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1119 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1120 | --exec=* | --exe=* | --ex=*)
1121 exec_prefix=$ac_optarg ;;
1123 -gas | --gas | --ga | --g)
1124 # Obsolete; use --with-gas.
1127 -help | --help | --hel | --he | -h)
1128 ac_init_help=long ;;
1129 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1130 ac_init_help=recursive ;;
1131 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1132 ac_init_help=short ;;
1134 -host | --host | --hos | --ho)
1135 ac_prev=host_alias ;;
1136 -host=* | --host=* | --hos=* | --ho=*)
1137 host_alias=$ac_optarg ;;
1139 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1141 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1143 htmldir=$ac_optarg ;;
1145 -includedir | --includedir | --includedi | --included | --include \
1146 | --includ | --inclu | --incl | --inc)
1147 ac_prev=includedir ;;
1148 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1149 | --includ=* | --inclu=* | --incl=* | --inc=*)
1150 includedir=$ac_optarg ;;
1152 -infodir | --infodir | --infodi | --infod | --info | --inf)
1154 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1155 infodir=$ac_optarg ;;
1157 -libdir | --libdir | --libdi | --libd)
1159 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1160 libdir=$ac_optarg ;;
1162 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1163 | --libexe | --libex | --libe)
1164 ac_prev=libexecdir ;;
1165 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1166 | --libexe=* | --libex=* | --libe=*)
1167 libexecdir=$ac_optarg ;;
1169 -localedir | --localedir | --localedi | --localed | --locale)
1170 ac_prev=localedir ;;
1171 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1172 localedir=$ac_optarg ;;
1174 -localstatedir | --localstatedir | --localstatedi | --localstated \
1175 | --localstate | --localstat | --localsta | --localst | --locals)
1176 ac_prev=localstatedir ;;
1177 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1178 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1179 localstatedir=$ac_optarg ;;
1181 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1183 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1184 mandir=$ac_optarg ;;
1186 -nfp | --nfp | --nf)
1187 # Obsolete; use --without-fp.
1190 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1191 | --no-cr | --no-c | -n)
1194 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1195 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1198 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1199 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1200 | --oldin | --oldi | --old | --ol | --o)
1201 ac_prev=oldincludedir ;;
1202 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1203 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1204 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1205 oldincludedir=$ac_optarg ;;
1207 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1209 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1210 prefix=$ac_optarg ;;
1212 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1213 | --program-pre | --program-pr | --program-p)
1214 ac_prev=program_prefix ;;
1215 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1216 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1217 program_prefix=$ac_optarg ;;
1219 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1220 | --program-suf | --program-su | --program-s)
1221 ac_prev=program_suffix ;;
1222 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1223 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1224 program_suffix=$ac_optarg ;;
1226 -program-transform-name | --program-transform-name \
1227 | --program-transform-nam | --program-transform-na \
1228 | --program-transform-n | --program-transform- \
1229 | --program-transform | --program-transfor \
1230 | --program-transfo | --program-transf \
1231 | --program-trans | --program-tran \
1232 | --progr-tra | --program-tr | --program-t)
1233 ac_prev=program_transform_name ;;
1234 -program-transform-name=* | --program-transform-name=* \
1235 | --program-transform-nam=* | --program-transform-na=* \
1236 | --program-transform-n=* | --program-transform-=* \
1237 | --program-transform=* | --program-transfor=* \
1238 | --program-transfo=* | --program-transf=* \
1239 | --program-trans=* | --program-tran=* \
1240 | --progr-tra=* | --program-tr=* | --program-t=*)
1241 program_transform_name=$ac_optarg ;;
1243 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1245 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1246 pdfdir=$ac_optarg ;;
1248 -psdir | --psdir | --psdi | --psd | --ps)
1250 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1253 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1254 | -silent | --silent | --silen | --sile | --sil)
1257 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1259 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1261 sbindir=$ac_optarg ;;
1263 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1264 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1265 | --sharedst | --shareds | --shared | --share | --shar \
1267 ac_prev=sharedstatedir ;;
1268 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1269 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1270 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1272 sharedstatedir=$ac_optarg ;;
1274 -site | --site | --sit)
1276 -site=* | --site=* | --sit=*)
1279 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1281 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1282 srcdir=$ac_optarg ;;
1284 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1285 | --syscon | --sysco | --sysc | --sys | --sy)
1286 ac_prev=sysconfdir ;;
1287 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1288 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1289 sysconfdir=$ac_optarg ;;
1291 -target | --target | --targe | --targ | --tar | --ta | --t)
1292 ac_prev=target_alias ;;
1293 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1294 target_alias=$ac_optarg ;;
1296 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1299 -version | --version | --versio | --versi | --vers | -V)
1300 ac_init_version=: ;;
1303 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1304 # Reject names that are not valid shell variable names.
1305 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1306 as_fn_error $? "invalid package name: $ac_useropt"
1307 ac_useropt_orig=$ac_useropt
1308 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1309 case $ac_user_opts in
1313 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1314 ac_unrecognized_sep=', ';;
1316 eval with_$ac_useropt=\$ac_optarg ;;
1318 -without-* | --without-*)
1319 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1320 # Reject names that are not valid shell variable names.
1321 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1322 as_fn_error $? "invalid package name: $ac_useropt"
1323 ac_useropt_orig=$ac_useropt
1324 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1325 case $ac_user_opts in
1329 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1330 ac_unrecognized_sep=', ';;
1332 eval with_$ac_useropt=no ;;
1335 # Obsolete; use --with-x.
1338 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1339 | --x-incl | --x-inc | --x-in | --x-i)
1340 ac_prev=x_includes ;;
1341 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1342 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1343 x_includes=$ac_optarg ;;
1345 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1346 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1347 ac_prev=x_libraries ;;
1348 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1349 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1350 x_libraries=$ac_optarg ;;
1352 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1353 Try \`$0 --help' for more information"
1357 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1358 # Reject names that are not valid shell variable names.
1359 case $ac_envvar in #(
1360 '' | [0-9]* | *[!_$as_cr_alnum]* )
1361 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1363 eval $ac_envvar=\$ac_optarg
1364 export $ac_envvar ;;
1367 # FIXME: should be removed in autoconf 3.0.
1368 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1369 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1370 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1371 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1377 if test -n "$ac_prev"; then
1378 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1379 as_fn_error $? "missing argument to $ac_option"
1382 if test -n "$ac_unrecognized_opts"; then
1383 case $enable_option_checking in
1385 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1386 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1390 # Check all directory arguments for consistency.
1391 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1392 datadir sysconfdir sharedstatedir localstatedir includedir \
1393 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1394 libdir localedir mandir
1396 eval ac_val=\$$ac_var
1397 # Remove trailing slashes.
1400 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1401 eval $ac_var=\$ac_val;;
1403 # Be sure to have absolute directory names.
1405 [\\/$]* | ?:[\\/]* ) continue;;
1406 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1408 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1411 # There might be people who depend on the old broken behavior: `$host'
1412 # used to hold the argument of --host etc.
1413 # FIXME: To remove some day.
1416 target=$target_alias
1418 # FIXME: To remove some day.
1419 if test "x$host_alias" != x; then
1420 if test "x$build_alias" = x; then
1421 cross_compiling=maybe
1422 elif test "x$build_alias" != "x$host_alias"; then
1428 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1430 test "$silent" = yes && exec 6>/dev/null
1433 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1434 ac_ls_di=`ls -di .` &&
1435 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1436 as_fn_error $? "working directory cannot be determined"
1437 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1438 as_fn_error $? "pwd does not report name of working directory"
1441 # Find the source files, if location was not specified.
1442 if test -z "$srcdir"; then
1443 ac_srcdir_defaulted=yes
1444 # Try the directory containing this script, then the parent directory.
1445 ac_confdir=`$as_dirname -- "$as_myself" ||
1446 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1447 X"$as_myself" : 'X\(//\)[^/]' \| \
1448 X"$as_myself" : 'X\(//\)$' \| \
1449 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1450 $as_echo X"$as_myself" |
1451 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1469 if test ! -r "$srcdir/$ac_unique_file"; then
1473 ac_srcdir_defaulted=no
1475 if test ! -r "$srcdir/$ac_unique_file"; then
1476 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1477 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1479 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1481 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1483 # When building in place, set srcdir=.
1484 if test "$ac_abs_confdir" = "$ac_pwd"; then
1487 # Remove unnecessary trailing slashes from srcdir.
1488 # Double slashes in file names in object file debugging info
1489 # mess up M-x gdb in Emacs.
1491 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1493 for ac_var in $ac_precious_vars; do
1494 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1495 eval ac_env_${ac_var}_value=\$${ac_var}
1496 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1497 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1501 # Report the --help message.
1503 if test "$ac_init_help" = "long"; then
1504 # Omit some internal or obsolete options to make the list less imposing.
1505 # This message is too long to be a string in the A/UX 3.1 sh.
1507 \`configure' configures subversion 1.14.0 to adapt to many kinds of systems.
1509 Usage: $0 [OPTION]... [VAR=VALUE]...
1511 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1512 VAR=VALUE. See below for descriptions of some of the useful variables.
1514 Defaults for the options are specified in brackets.
1517 -h, --help display this help and exit
1518 --help=short display options specific to this package
1519 --help=recursive display the short help of all the included packages
1520 -V, --version display version information and exit
1521 -q, --quiet, --silent do not print \`checking ...' messages
1522 --cache-file=FILE cache test results in FILE [disabled]
1523 -C, --config-cache alias for \`--cache-file=config.cache'
1524 -n, --no-create do not create output files
1525 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1527 Installation directories:
1528 --prefix=PREFIX install architecture-independent files in PREFIX
1529 [$ac_default_prefix]
1530 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1533 By default, \`make install' will install all the files in
1534 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1535 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1536 for instance \`--prefix=\$HOME'.
1538 For better control, use the options below.
1540 Fine tuning of the installation directories:
1541 --bindir=DIR user executables [EPREFIX/bin]
1542 --sbindir=DIR system admin executables [EPREFIX/sbin]
1543 --libexecdir=DIR program executables [EPREFIX/libexec]
1544 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1545 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1546 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1547 --libdir=DIR object code libraries [EPREFIX/lib]
1548 --includedir=DIR C header files [PREFIX/include]
1549 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1550 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1551 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1552 --infodir=DIR info documentation [DATAROOTDIR/info]
1553 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1554 --mandir=DIR man documentation [DATAROOTDIR/man]
1555 --docdir=DIR documentation root [DATAROOTDIR/doc/subversion]
1556 --htmldir=DIR html documentation [DOCDIR]
1557 --dvidir=DIR dvi documentation [DOCDIR]
1558 --pdfdir=DIR pdf documentation [DOCDIR]
1559 --psdir=DIR ps documentation [DOCDIR]
1565 --build=BUILD configure for building on BUILD [guessed]
1566 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1567 --target=TARGET configure for building compilers for TARGET [HOST]
1571 if test -n "$ac_init_help"; then
1572 case $ac_init_help in
1573 short | recursive ) echo "Configuration of subversion 1.14.0:";;
1578 --disable-option-checking ignore unrecognized --enable/--with options
1579 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1580 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1581 --enable-apache-whitelist=VER
1582 Whitelist a particular Apache version number,
1583 typically used to enable the use of a old version
1584 patched by a distribution.
1585 --enable-broken-httpd-auth
1586 Force build against httpd 2.4 with broken auth.
1587 (This is not recommended as Subversion will be
1588 vulnerable to CVE-2015-3184.)
1589 --enable-sqlite-compatibility-version=X.Y.Z
1590 Allow binary to run against SQLite as old as ARG
1591 --enable-shared[=PKGS] build shared libraries [default=yes]
1592 --enable-static[=PKGS] build static libraries [default=yes]
1593 --enable-fast-install[=PKGS]
1594 optimize for fast installation [default=yes]
1595 --disable-libtool-lock avoid locking (might break parallel builds)
1596 --enable-experimental-libtool
1598 --enable-static Build static libraries
1599 --enable-shared Build shared libraries
1600 --enable-all-static Build completely static (standalone) binaries.
1601 --enable-local-library-preloading
1602 Enable preloading of locally built libraries in
1603 locally built executables. This may be necessary for
1604 testing prior to installation on some platforms. It
1605 does not work on some platforms (Darwin, OpenBSD,
1607 --enable-bdb6 Allow building against BDB 6+. See
1608 --with-berkeley-db for specifying the location of
1609 the Berkeley DB installation. Using BDB 6 will fail
1610 if this option is not used.
1611 --disable-keychain Disable use of Mac OS KeyChain for auth credentials
1612 --enable-ev2-impl Use Ev2 implementations, where available
1614 --disable-nls Disable gettext functionality
1615 --enable-plaintext-password-storage
1616 Enable on-disk caching of plaintext passwords and
1617 passphrases. (Enabling this functionality will not
1618 force Subversion to store passwords in plaintext,
1619 but does permit users to explicitly allow that
1620 behavior via runtime configuration.)
1621 --enable-debug Turn on debugging
1622 --enable-optimize Turn on optimizations
1623 --enable-disallowing-of-undefined-references
1624 Use -Wl,--no-undefined flag during linking of some
1625 libraries to disallow undefined references
1626 --enable-maintainer-mode
1627 Turn on debugging and very strict compile-time
1629 --disable-full-version-match
1630 Disable the full version match rules when checking
1631 Subversion library compatibility.
1632 --enable-mod-activation Enable mod_dav_svn in httpd.conf
1633 --enable-gcov Turn on gcov coverage testing (GCC only).
1634 --enable-gprof Produce gprof profiling data in 'gmon.out' (GCC
1636 --enable-runtime-module-search
1637 Turn on dynamic loading of RA/FS libraries including
1638 third-party FS libraries
1639 --enable-svnxx Enable compilation of the C++ bindings (requires
1641 --enable-svnxx-tests Enable compilation of tests for the C++ bindings
1642 (implies --enable-svnxx, requires Boost and
1644 --enable-javahl Enable compilation of Java high-level bindings
1648 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1649 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1650 --with-apr=PATH prefix for installed APR or the full path to
1652 --with-apr-util=PATH prefix for installed APU or the full path to
1654 --with-serf=PREFIX Serf HTTP client library (enabled by default if
1656 --with-apr_memcache=PREFIX
1657 Standalone apr_memcache client library
1658 --with-apxs[=FILE] Build shared Apache modules. FILE is the optional
1659 pathname to the Apache apxs tool; defaults to
1661 --with-apache-libexecdir[=PATH]
1662 Install Apache modules to Apache's configured
1663 modules directory instead of LIBEXECDIR; if PATH is
1664 given, install to PATH.
1665 --with-sqlite=PREFIX Use installed SQLite library or amalgamation file.
1666 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1668 --with-aix-soname=aix|svr4|both
1669 shared library versioning (aka "SONAME") variant to
1670 provide on AIX, [default=aix].
1671 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1672 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1673 compiler's sysroot if not specified).
1674 --with-trang=PATH Specify the command to run the trang schema
1676 --with-doxygen=PATH Specify the command to run doxygen
1677 --with-expat=INCLUDES:LIB_SEARCH_DIRS:LIBS
1678 Specify location of Expat
1679 --with-berkeley-db[=HEADER:INCLUDES:LIB_SEARCH_DIRS:LIBS]
1680 The Subversion Berkeley DB based filesystem library
1681 requires Berkeley DB $db_version or $db_alt_version.
1682 If you specify `--without-berkeley-db', that library
1683 will not be built. If you omit the argument of this
1684 option completely, the configure script will use
1685 Berkeley DB used by APR-UTIL.
1686 --with-sasl=PATH Compile with libsasl2 in PATH
1687 --without-gpg-agent Disable support for GPG-Agent
1688 --with-old-gnome-keyring
1689 Enable old GNOME Keyring for auth credentials
1690 (prefer --with-gnome-keyring)
1691 --with-gnome-keyring Enable GNOME Keyring for auth credentials (enabled
1692 by default if found)
1693 --with-libmagic=PREFIX libmagic filetype detection library
1694 --with-kwallet[=PATH|INCDIR:LIBDIR]
1695 Enable use of KWallet (KDE 5 or 4) for auth
1696 credentials. PATH is the KDE install path,
1697 alternatively INCDIR:LIBDIR are the header and
1698 library install paths.
1699 --with-editor=PATH Specify a default editor for the subversion client.
1700 --with-zlib=PREFIX zlib compression library
1701 --with-lz4=PREFIX|internal
1702 look for lz4 in PREFIX or use the internal code
1703 --with-utf8proc=PREFIX|internal
1704 look for utf8proc in PREFIX or use the internal code
1705 --with-jdk=PATH Try to use 'PATH/include' to find the JNI headers.
1706 If PATH is not specified, look for a Java
1707 Development Kit at JAVA_HOME.
1708 --with-jikes=PATH Deprecated. Provided for backward compatibility.
1709 --with-swig=PATH Try to use 'PATH/bin/swig' to build the swig
1710 bindings. If PATH is not specified, look for a
1711 'swig' binary in your PATH.
1712 --with-py3c=PREFIX py3c python extension compatibility library
1713 --with-ruby-sitedir=SITEDIR
1714 install Ruby bindings in SITEDIR (default is same as
1716 --with-ruby-test-verbose=LEVEL
1717 how to use output level for Ruby bindings tests
1719 --with-ctypesgen=PATH Specify the path to ctypesgen. This can either be
1720 the full path to a ctypesgen installation, the full
1721 path to a ctypesgen source tree or the full path to
1723 --with-boost[=ARG] use Boost library from a standard location
1724 (ARG=yes), from the specified location (ARG=<path>),
1725 or disable it (ARG=no) [ARG=yes]
1726 --with-boost-libdir=LIB_DIR
1727 Force given directory for boost libraries. Note that
1728 this will override library path detection, so use
1729 this parameter only if default library detection
1730 fails and you know exactly where your boost
1731 libraries are located.
1732 --with-boost-unit-test-framework[=special-lib]
1733 use the Unit_Test_Framework library from boost - it
1734 is possible to specify a certain library for the
1736 --with-boost-unit-test-framework=boost_unit_test_framework-gcc
1737 --with-junit=PATH Specify a path to the junit JAR file.
1739 Some influential environment variables:
1740 CC C compiler command
1741 CFLAGS C compiler flags
1742 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1743 nonstandard directory <lib dir>
1744 LIBS libraries to pass to the linker, e.g. -l<library>
1745 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1746 you have headers in a nonstandard directory <include dir>
1747 CXX C++ compiler command
1748 CXXFLAGS C++ compiler flags
1751 User-defined run-time library search path.
1752 CXXCPP C++ preprocessor
1753 PYTHON Python interpreter command
1755 SWIG feature flags common to all bindings
1757 SWIG feature flags specific to Ruby bindings
1759 SWIG feature flags specific to Perl bindings
1761 SWIG feature flags specific to Python bindings
1763 Use these variables to override the choices made by `configure' or to help
1764 it to find libraries and programs with nonstandard names/locations.
1766 Report bugs to <http://subversion.apache.org/>.
1771 if test "$ac_init_help" = "recursive"; then
1772 # If there are subdirs, report their specific --help.
1773 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1774 test -d "$ac_dir" ||
1775 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1780 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1782 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1783 # A ".." for each directory in $ac_dir_suffix.
1784 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1785 case $ac_top_builddir_sub in
1786 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1787 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1790 ac_abs_top_builddir=$ac_pwd
1791 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1792 # for backward compatibility:
1793 ac_top_builddir=$ac_top_build_prefix
1796 .) # We are building in place.
1798 ac_top_srcdir=$ac_top_builddir_sub
1799 ac_abs_top_srcdir=$ac_pwd ;;
1800 [\\/]* | ?:[\\/]* ) # Absolute name.
1801 ac_srcdir=$srcdir$ac_dir_suffix;
1802 ac_top_srcdir=$srcdir
1803 ac_abs_top_srcdir=$srcdir ;;
1805 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1806 ac_top_srcdir=$ac_top_build_prefix$srcdir
1807 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1809 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1811 cd "$ac_dir" || { ac_status=$?; continue; }
1812 # Check for guested configure.
1813 if test -f "$ac_srcdir/configure.gnu"; then
1815 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1816 elif test -f "$ac_srcdir/configure"; then
1818 $SHELL "$ac_srcdir/configure" --help=recursive
1820 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1822 cd "$ac_pwd" || { ac_status=$?; break; }
1826 test -n "$ac_init_help" && exit $ac_status
1827 if $ac_init_version; then
1829 subversion configure 1.14.0
1830 generated by GNU Autoconf 2.69
1832 Copyright (C) 2012 Free Software Foundation, Inc.
1833 This configure script is free software; the Free Software Foundation
1834 gives unlimited permission to copy, distribute and modify it.
1839 ## ------------------------ ##
1840 ## Autoconf initialization. ##
1841 ## ------------------------ ##
1843 # ac_fn_c_try_compile LINENO
1844 # --------------------------
1845 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1846 ac_fn_c_try_compile ()
1848 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1849 rm -f conftest.$ac_objext
1850 if { { ac_try="$ac_compile"
1852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1853 *) ac_try_echo=$ac_try;;
1855 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1856 $as_echo "$ac_try_echo"; } >&5
1857 (eval "$ac_compile") 2>conftest.err
1859 if test -s conftest.err; then
1860 grep -v '^ *+' conftest.err >conftest.er1
1861 cat conftest.er1 >&5
1862 mv -f conftest.er1 conftest.err
1864 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1865 test $ac_status = 0; } && {
1866 test -z "$ac_c_werror_flag" ||
1867 test ! -s conftest.err
1868 } && test -s conftest.$ac_objext; then :
1871 $as_echo "$as_me: failed program was:" >&5
1872 sed 's/^/| /' conftest.$ac_ext >&5
1876 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1877 as_fn_set_status $ac_retval
1879 } # ac_fn_c_try_compile
1881 # ac_fn_c_try_link LINENO
1882 # -----------------------
1883 # Try to link conftest.$ac_ext, and return whether this succeeded.
1886 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1887 rm -f conftest.$ac_objext conftest$ac_exeext
1888 if { { ac_try="$ac_link"
1890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1891 *) ac_try_echo=$ac_try;;
1893 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1894 $as_echo "$ac_try_echo"; } >&5
1895 (eval "$ac_link") 2>conftest.err
1897 if test -s conftest.err; then
1898 grep -v '^ *+' conftest.err >conftest.er1
1899 cat conftest.er1 >&5
1900 mv -f conftest.er1 conftest.err
1902 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1903 test $ac_status = 0; } && {
1904 test -z "$ac_c_werror_flag" ||
1905 test ! -s conftest.err
1906 } && test -s conftest$ac_exeext && {
1907 test "$cross_compiling" = yes ||
1908 test -x conftest$ac_exeext
1912 $as_echo "$as_me: failed program was:" >&5
1913 sed 's/^/| /' conftest.$ac_ext >&5
1917 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1918 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1919 # interfere with the next link command; also delete a directory that is
1920 # left behind by Apple's compiler. We do this before executing the actions.
1921 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1922 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1923 as_fn_set_status $ac_retval
1925 } # ac_fn_c_try_link
1927 # ac_fn_cxx_try_compile LINENO
1928 # ----------------------------
1929 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1930 ac_fn_cxx_try_compile ()
1932 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1933 rm -f conftest.$ac_objext
1934 if { { ac_try="$ac_compile"
1936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1937 *) ac_try_echo=$ac_try;;
1939 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1940 $as_echo "$ac_try_echo"; } >&5
1941 (eval "$ac_compile") 2>conftest.err
1943 if test -s conftest.err; then
1944 grep -v '^ *+' conftest.err >conftest.er1
1945 cat conftest.er1 >&5
1946 mv -f conftest.er1 conftest.err
1948 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1949 test $ac_status = 0; } && {
1950 test -z "$ac_cxx_werror_flag" ||
1951 test ! -s conftest.err
1952 } && test -s conftest.$ac_objext; then :
1955 $as_echo "$as_me: failed program was:" >&5
1956 sed 's/^/| /' conftest.$ac_ext >&5
1960 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1961 as_fn_set_status $ac_retval
1963 } # ac_fn_cxx_try_compile
1965 # ac_fn_cxx_try_link LINENO
1966 # -------------------------
1967 # Try to link conftest.$ac_ext, and return whether this succeeded.
1968 ac_fn_cxx_try_link ()
1970 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1971 rm -f conftest.$ac_objext conftest$ac_exeext
1972 if { { ac_try="$ac_link"
1974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1975 *) ac_try_echo=$ac_try;;
1977 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1978 $as_echo "$ac_try_echo"; } >&5
1979 (eval "$ac_link") 2>conftest.err
1981 if test -s conftest.err; then
1982 grep -v '^ *+' conftest.err >conftest.er1
1983 cat conftest.er1 >&5
1984 mv -f conftest.er1 conftest.err
1986 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1987 test $ac_status = 0; } && {
1988 test -z "$ac_cxx_werror_flag" ||
1989 test ! -s conftest.err
1990 } && test -s conftest$ac_exeext && {
1991 test "$cross_compiling" = yes ||
1992 test -x conftest$ac_exeext
1996 $as_echo "$as_me: failed program was:" >&5
1997 sed 's/^/| /' conftest.$ac_ext >&5
2001 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2002 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2003 # interfere with the next link command; also delete a directory that is
2004 # left behind by Apple's compiler. We do this before executing the actions.
2005 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2006 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2007 as_fn_set_status $ac_retval
2009 } # ac_fn_cxx_try_link
2011 # ac_fn_c_try_cpp LINENO
2012 # ----------------------
2013 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2016 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2017 if { { ac_try="$ac_cpp conftest.$ac_ext"
2019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2020 *) ac_try_echo=$ac_try;;
2022 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2023 $as_echo "$ac_try_echo"; } >&5
2024 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2026 if test -s conftest.err; then
2027 grep -v '^ *+' conftest.err >conftest.er1
2028 cat conftest.er1 >&5
2029 mv -f conftest.er1 conftest.err
2031 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2032 test $ac_status = 0; } > conftest.i && {
2033 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2034 test ! -s conftest.err
2038 $as_echo "$as_me: failed program was:" >&5
2039 sed 's/^/| /' conftest.$ac_ext >&5
2043 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2044 as_fn_set_status $ac_retval
2048 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2049 # -------------------------------------------------------
2050 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2051 # the include files in INCLUDES and setting the cache variable VAR
2053 ac_fn_c_check_header_mongrel ()
2055 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2056 if eval \${$3+:} false; then :
2057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2058 $as_echo_n "checking for $2... " >&6; }
2059 if eval \${$3+:} false; then :
2060 $as_echo_n "(cached) " >&6
2063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2064 $as_echo "$ac_res" >&6; }
2066 # Is the header compilable?
2067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2068 $as_echo_n "checking $2 usability... " >&6; }
2069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2070 /* end confdefs.h. */
2074 if ac_fn_c_try_compile "$LINENO"; then :
2075 ac_header_compiler=yes
2077 ac_header_compiler=no
2079 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2081 $as_echo "$ac_header_compiler" >&6; }
2083 # Is the header present?
2084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2085 $as_echo_n "checking $2 presence... " >&6; }
2086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2087 /* end confdefs.h. */
2090 if ac_fn_c_try_cpp "$LINENO"; then :
2091 ac_header_preproc=yes
2093 ac_header_preproc=no
2095 rm -f conftest.err conftest.i conftest.$ac_ext
2096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2097 $as_echo "$ac_header_preproc" >&6; }
2099 # So? What about this header?
2100 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2102 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2103 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2104 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2105 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2108 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2109 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2110 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2111 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2112 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2113 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2114 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2115 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2116 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2117 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2118 ( $as_echo "## -------------------------------------------- ##
2119 ## Report this to http://subversion.apache.org/ ##
2120 ## -------------------------------------------- ##"
2121 ) | sed "s/^/$as_me: WARNING: /" >&2
2124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2125 $as_echo_n "checking for $2... " >&6; }
2126 if eval \${$3+:} false; then :
2127 $as_echo_n "(cached) " >&6
2129 eval "$3=\$ac_header_compiler"
2132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2133 $as_echo "$ac_res" >&6; }
2135 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2137 } # ac_fn_c_check_header_mongrel
2139 # ac_fn_c_try_run LINENO
2140 # ----------------------
2141 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2142 # that executables *can* be run.
2145 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2146 if { { ac_try="$ac_link"
2148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2149 *) ac_try_echo=$ac_try;;
2151 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2152 $as_echo "$ac_try_echo"; } >&5
2153 (eval "$ac_link") 2>&5
2155 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2156 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2157 { { case "(($ac_try" in
2158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2159 *) ac_try_echo=$ac_try;;
2161 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2162 $as_echo "$ac_try_echo"; } >&5
2163 (eval "$ac_try") 2>&5
2165 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2166 test $ac_status = 0; }; }; then :
2169 $as_echo "$as_me: program exited with status $ac_status" >&5
2170 $as_echo "$as_me: failed program was:" >&5
2171 sed 's/^/| /' conftest.$ac_ext >&5
2173 ac_retval=$ac_status
2175 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2176 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2177 as_fn_set_status $ac_retval
2181 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2182 # -------------------------------------------------------
2183 # Tests whether HEADER exists and can be compiled using the include files in
2184 # INCLUDES, setting the cache variable VAR accordingly.
2185 ac_fn_c_check_header_compile ()
2187 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2189 $as_echo_n "checking for $2... " >&6; }
2190 if eval \${$3+:} false; then :
2191 $as_echo_n "(cached) " >&6
2193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2194 /* end confdefs.h. */
2198 if ac_fn_c_try_compile "$LINENO"; then :
2203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2207 $as_echo "$ac_res" >&6; }
2208 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2210 } # ac_fn_c_check_header_compile
2212 # ac_fn_c_check_func LINENO FUNC VAR
2213 # ----------------------------------
2214 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2215 ac_fn_c_check_func ()
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
2223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2224 /* end confdefs.h. */
2225 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2226 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2227 #define $2 innocuous_$2
2229 /* System header to define __stub macros and hopefully few prototypes,
2230 which can conflict with char $2 (); below.
2231 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2232 <limits.h> exists even on freestanding compilers. */
2235 # include <limits.h>
2237 # include <assert.h>
2242 /* Override any GCC internal prototype to avoid an error.
2243 Use char because int might match the return type of a GCC
2244 builtin and then its argument prototype would still apply. */
2249 /* The GNU C library defines this for functions which it implements
2250 to always fail with ENOSYS. Some functions are actually named
2251 something starting with __ and the normal name is an alias. */
2252 #if defined __stub_$2 || defined __stub___$2
2264 if ac_fn_c_try_link "$LINENO"; then :
2269 rm -f core conftest.err conftest.$ac_objext \
2270 conftest$ac_exeext conftest.$ac_ext
2273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2274 $as_echo "$ac_res" >&6; }
2275 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2277 } # ac_fn_c_check_func
2279 # ac_fn_cxx_try_cpp LINENO
2280 # ------------------------
2281 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2282 ac_fn_cxx_try_cpp ()
2284 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2285 if { { ac_try="$ac_cpp conftest.$ac_ext"
2287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2288 *) ac_try_echo=$ac_try;;
2290 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2291 $as_echo "$ac_try_echo"; } >&5
2292 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2294 if test -s conftest.err; then
2295 grep -v '^ *+' conftest.err >conftest.er1
2296 cat conftest.er1 >&5
2297 mv -f conftest.er1 conftest.err
2299 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2300 test $ac_status = 0; } > conftest.i && {
2301 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2302 test ! -s conftest.err
2306 $as_echo "$as_me: failed program was:" >&5
2307 sed 's/^/| /' conftest.$ac_ext >&5
2311 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2312 as_fn_set_status $ac_retval
2314 } # ac_fn_cxx_try_cpp
2316 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2317 # -------------------------------------------
2318 # Tests whether TYPE exists after having included INCLUDES, setting cache
2319 # variable VAR accordingly.
2320 ac_fn_c_check_type ()
2322 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2324 $as_echo_n "checking for $2... " >&6; }
2325 if eval \${$3+:} false; then :
2326 $as_echo_n "(cached) " >&6
2329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2330 /* end confdefs.h. */
2341 if ac_fn_c_try_compile "$LINENO"; then :
2342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2343 /* end confdefs.h. */
2354 if ac_fn_c_try_compile "$LINENO"; then :
2359 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2361 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2365 $as_echo "$ac_res" >&6; }
2366 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2368 } # ac_fn_c_check_type
2369 cat >config.log <<_ACEOF
2370 This file contains any messages produced by compilers while
2371 running configure, to aid debugging if configure makes a mistake.
2373 It was created by subversion $as_me 1.14.0, which was
2374 generated by GNU Autoconf 2.69. Invocation command line was
2386 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2387 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2388 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2389 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2390 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2392 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2393 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2395 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2396 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2397 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2398 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2399 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2400 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2401 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2409 test -z "$as_dir" && as_dir=.
2410 $as_echo "PATH: $as_dir"
2426 # Keep a trace of the command line.
2427 # Strip out --no-create and --no-recursion so they do not pile up.
2428 # Strip out --silent because we don't want to record it for future runs.
2429 # Also quote any args containing shell meta-characters.
2430 # Make two passes to allow for proper duplicate-argument suppression.
2434 ac_must_keep_next=false
2440 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2441 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2442 | -silent | --silent | --silen | --sile | --sil)
2445 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2448 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2450 as_fn_append ac_configure_args1 " '$ac_arg'"
2451 if test $ac_must_keep_next = true; then
2452 ac_must_keep_next=false # Got value, back to normal.
2455 *=* | --config-cache | -C | -disable-* | --disable-* \
2456 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2457 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2458 | -with-* | --with-* | -without-* | --without-* | --x)
2459 case "$ac_configure_args0 " in
2460 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2463 -* ) ac_must_keep_next=true ;;
2466 as_fn_append ac_configure_args " '$ac_arg'"
2471 { ac_configure_args0=; unset ac_configure_args0;}
2472 { ac_configure_args1=; unset ac_configure_args1;}
2474 # When interrupted or exit'd, cleanup temporary files, and complete
2475 # config.log. We remove comments because anyway the quotes in there
2476 # would cause problems or look ugly.
2477 # WARNING: Use '\'' to represent an apostrophe within the trap.
2478 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2479 trap 'exit_status=$?
2480 # Save into config.log some information that might help in debugging.
2484 $as_echo "## ---------------- ##
2485 ## Cache variables. ##
2486 ## ---------------- ##"
2488 # The following way of writing the cache mishandles newlines in values,
2490 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2491 eval ac_val=\$$ac_var
2495 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2496 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2499 _ | IFS | as_nl) ;; #(
2500 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2501 *) { eval $ac_var=; unset $ac_var;} ;;
2506 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2507 *${as_nl}ac_space=\ *)
2509 "s/'\''/'\''\\\\'\'''\''/g;
2510 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2513 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2520 $as_echo "## ----------------- ##
2521 ## Output variables. ##
2522 ## ----------------- ##"
2524 for ac_var in $ac_subst_vars
2526 eval ac_val=\$$ac_var
2528 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2530 $as_echo "$ac_var='\''$ac_val'\''"
2534 if test -n "$ac_subst_files"; then
2535 $as_echo "## ------------------- ##
2536 ## File substitutions. ##
2537 ## ------------------- ##"
2539 for ac_var in $ac_subst_files
2541 eval ac_val=\$$ac_var
2543 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2545 $as_echo "$ac_var='\''$ac_val'\''"
2550 if test -s confdefs.h; then
2551 $as_echo "## ----------- ##
2558 test "$ac_signal" != 0 &&
2559 $as_echo "$as_me: caught signal $ac_signal"
2560 $as_echo "$as_me: exit $exit_status"
2562 rm -f core *.core core.conftest.* &&
2563 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2566 for ac_signal in 1 2 13 15; do
2567 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2571 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2572 rm -f -r conftest* confdefs.h
2574 $as_echo "/* confdefs.h */" > confdefs.h
2576 # Predefined preprocessor variables.
2578 cat >>confdefs.h <<_ACEOF
2579 #define PACKAGE_NAME "$PACKAGE_NAME"
2582 cat >>confdefs.h <<_ACEOF
2583 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2586 cat >>confdefs.h <<_ACEOF
2587 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2590 cat >>confdefs.h <<_ACEOF
2591 #define PACKAGE_STRING "$PACKAGE_STRING"
2594 cat >>confdefs.h <<_ACEOF
2595 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2598 cat >>confdefs.h <<_ACEOF
2599 #define PACKAGE_URL "$PACKAGE_URL"
2603 # Let the site file select an alternate cache file if it wants to.
2604 # Prefer an explicitly selected file to automatically selected ones.
2607 if test -n "$CONFIG_SITE"; then
2608 # We do not want a PATH search for config.site.
2609 case $CONFIG_SITE in #((
2610 -*) ac_site_file1=./$CONFIG_SITE;;
2611 */*) ac_site_file1=$CONFIG_SITE;;
2612 *) ac_site_file1=./$CONFIG_SITE;;
2614 elif test "x$prefix" != xNONE; then
2615 ac_site_file1=$prefix/share/config.site
2616 ac_site_file2=$prefix/etc/config.site
2618 ac_site_file1=$ac_default_prefix/share/config.site
2619 ac_site_file2=$ac_default_prefix/etc/config.site
2621 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2623 test "x$ac_site_file" = xNONE && continue
2624 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2625 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2626 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2627 sed 's/^/| /' "$ac_site_file" >&5
2629 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2630 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2631 as_fn_error $? "failed to load site script $ac_site_file
2632 See \`config.log' for more details" "$LINENO" 5; }
2636 if test -r "$cache_file"; then
2637 # Some versions of bash will fail to source /dev/null (special files
2638 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2639 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2640 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2641 $as_echo "$as_me: loading cache $cache_file" >&6;}
2643 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2644 *) . "./$cache_file";;
2648 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2649 $as_echo "$as_me: creating cache $cache_file" >&6;}
2653 # Check that the precious variables saved in the cache have kept the same
2655 ac_cache_corrupted=false
2656 for ac_var in $ac_precious_vars; do
2657 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2658 eval ac_new_set=\$ac_env_${ac_var}_set
2659 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2660 eval ac_new_val=\$ac_env_${ac_var}_value
2661 case $ac_old_set,$ac_new_set in
2663 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2664 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2665 ac_cache_corrupted=: ;;
2667 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2668 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2669 ac_cache_corrupted=: ;;
2672 if test "x$ac_old_val" != "x$ac_new_val"; then
2673 # differences in whitespace do not lead to failure.
2674 ac_old_val_w=`echo x $ac_old_val`
2675 ac_new_val_w=`echo x $ac_new_val`
2676 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2677 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2678 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2679 ac_cache_corrupted=:
2681 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2682 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2683 eval $ac_var=\$ac_old_val
2685 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2686 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2687 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2688 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2691 # Pass precious variables to config.status.
2692 if test "$ac_new_set" = set; then
2694 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2695 *) ac_arg=$ac_var=$ac_new_val ;;
2697 case " $ac_configure_args " in
2698 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2699 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2703 if $ac_cache_corrupted; then
2704 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2705 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2706 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2707 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2708 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2710 ## -------------------- ##
2711 ## Main body of script. ##
2712 ## -------------------- ##
2715 ac_cpp='$CPP $CPPFLAGS'
2716 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2717 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2718 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2724 for ac_dir in build "$srcdir"/build; do
2725 if test -f "$ac_dir/install-sh"; then
2727 ac_install_sh="$ac_aux_dir/install-sh -c"
2729 elif test -f "$ac_dir/install.sh"; then
2731 ac_install_sh="$ac_aux_dir/install.sh -c"
2733 elif test -f "$ac_dir/shtool"; then
2735 ac_install_sh="$ac_aux_dir/shtool install -c"
2739 if test -z "$ac_aux_dir"; then
2740 as_fn_error $? "cannot find install-sh, install.sh, or shtool in build \"$srcdir\"/build" "$LINENO" 5
2743 # These three variables are undocumented and unsupported,
2744 # and are intended to be withdrawn in a future Autoconf release.
2745 # They can cause serious problems if a builder's source tree is in a directory
2746 # whose full name contains unusual characters.
2747 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2748 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2749 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2753 { $as_echo "$as_me:${as_lineno-$LINENO}: Configuring Subversion 1.14.0" >&5
2754 $as_echo "$as_me: Configuring Subversion 1.14.0" >&6;}
2756 abs_srcdir="`cd $srcdir && pwd`"
2758 abs_builddir="`pwd`"
2760 if test "$abs_srcdir" = "$abs_builddir"; then
2761 canonicalized_srcdir=""
2763 canonicalized_srcdir="$srcdir/"
2767 SWIG_LDFLAGS="$LDFLAGS"
2770 # Generate config.nice early (before the arguments are munged)
2772 { $as_echo "$as_me:${as_lineno-$LINENO}: creating config.nice" >&5
2773 $as_echo "$as_me: creating config.nice" >&6;}
2774 # This little dance satisfies Cygwin, which cannot overwrite in-use files.
2775 if test -f "config.nice"; then
2776 mv "config.nice" "config.nice.old"
2779 cat >"config.nice" <<EOF
2782 # Created by configure
2784 '$0' $ac_configure_args "\$@"
2787 chmod +x "config.nice"
2788 rm -f "config.nice.old"
2791 # ==== Check for programs ====================================================
2793 # Look for a C compiler (before anything can set CFLAGS)
2794 CUSERFLAGS="$CFLAGS"
2796 ac_cpp='$CPP $CPPFLAGS'
2797 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2798 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2799 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2800 if test -n "$ac_tool_prefix"; then
2801 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2802 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2804 $as_echo_n "checking for $ac_word... " >&6; }
2805 if ${ac_cv_prog_CC+:} false; then :
2806 $as_echo_n "(cached) " >&6
2808 if test -n "$CC"; then
2809 ac_cv_prog_CC="$CC" # Let the user override the test.
2811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2815 test -z "$as_dir" && as_dir=.
2816 for ac_exec_ext in '' $ac_executable_extensions; do
2817 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2818 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2819 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2829 if test -n "$CC"; then
2830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2831 $as_echo "$CC" >&6; }
2833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2834 $as_echo "no" >&6; }
2839 if test -z "$ac_cv_prog_CC"; then
2841 # Extract the first word of "gcc", so it can be a program name with args.
2842 set dummy gcc; ac_word=$2
2843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2844 $as_echo_n "checking for $ac_word... " >&6; }
2845 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2846 $as_echo_n "(cached) " >&6
2848 if test -n "$ac_ct_CC"; then
2849 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2855 test -z "$as_dir" && as_dir=.
2856 for ac_exec_ext in '' $ac_executable_extensions; do
2857 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2858 ac_cv_prog_ac_ct_CC="gcc"
2859 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2868 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2869 if test -n "$ac_ct_CC"; then
2870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2871 $as_echo "$ac_ct_CC" >&6; }
2873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2874 $as_echo "no" >&6; }
2877 if test "x$ac_ct_CC" = x; then
2880 case $cross_compiling:$ac_tool_warned in
2882 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2883 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2884 ac_tool_warned=yes ;;
2892 if test -z "$CC"; then
2893 if test -n "$ac_tool_prefix"; then
2894 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2895 set dummy ${ac_tool_prefix}cc; ac_word=$2
2896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2897 $as_echo_n "checking for $ac_word... " >&6; }
2898 if ${ac_cv_prog_CC+:} false; then :
2899 $as_echo_n "(cached) " >&6
2901 if test -n "$CC"; then
2902 ac_cv_prog_CC="$CC" # Let the user override the test.
2904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2908 test -z "$as_dir" && as_dir=.
2909 for ac_exec_ext in '' $ac_executable_extensions; do
2910 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2911 ac_cv_prog_CC="${ac_tool_prefix}cc"
2912 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2922 if test -n "$CC"; then
2923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2924 $as_echo "$CC" >&6; }
2926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2927 $as_echo "no" >&6; }
2933 if test -z "$CC"; then
2934 # Extract the first word of "cc", so it can be a program name with args.
2935 set dummy cc; ac_word=$2
2936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2937 $as_echo_n "checking for $ac_word... " >&6; }
2938 if ${ac_cv_prog_CC+:} false; then :
2939 $as_echo_n "(cached) " >&6
2941 if test -n "$CC"; then
2942 ac_cv_prog_CC="$CC" # Let the user override the test.
2945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2949 test -z "$as_dir" && as_dir=.
2950 for ac_exec_ext in '' $ac_executable_extensions; do
2951 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2952 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2953 ac_prog_rejected=yes
2957 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2964 if test $ac_prog_rejected = yes; then
2965 # We found a bogon in the path, so make sure we never use it.
2966 set dummy $ac_cv_prog_CC
2968 if test $# != 0; then
2969 # We chose a different compiler from the bogus one.
2970 # However, it has the same basename, so the bogon will be chosen
2971 # first if we set CC to just the basename; use the full file name.
2973 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2979 if test -n "$CC"; then
2980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2981 $as_echo "$CC" >&6; }
2983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2984 $as_echo "no" >&6; }
2989 if test -z "$CC"; then
2990 if test -n "$ac_tool_prefix"; then
2991 for ac_prog in cl.exe
2993 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2994 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2996 $as_echo_n "checking for $ac_word... " >&6; }
2997 if ${ac_cv_prog_CC+:} false; then :
2998 $as_echo_n "(cached) " >&6
3000 if test -n "$CC"; then
3001 ac_cv_prog_CC="$CC" # Let the user override the test.
3003 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3007 test -z "$as_dir" && as_dir=.
3008 for ac_exec_ext in '' $ac_executable_extensions; do
3009 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3010 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3011 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3021 if test -n "$CC"; then
3022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3023 $as_echo "$CC" >&6; }
3025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3026 $as_echo "no" >&6; }
3030 test -n "$CC" && break
3033 if test -z "$CC"; then
3035 for ac_prog in cl.exe
3037 # Extract the first word of "$ac_prog", so it can be a program name with args.
3038 set dummy $ac_prog; ac_word=$2
3039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3040 $as_echo_n "checking for $ac_word... " >&6; }
3041 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3042 $as_echo_n "(cached) " >&6
3044 if test -n "$ac_ct_CC"; then
3045 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3051 test -z "$as_dir" && as_dir=.
3052 for ac_exec_ext in '' $ac_executable_extensions; do
3053 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3054 ac_cv_prog_ac_ct_CC="$ac_prog"
3055 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3064 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3065 if test -n "$ac_ct_CC"; then
3066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3067 $as_echo "$ac_ct_CC" >&6; }
3069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3070 $as_echo "no" >&6; }
3074 test -n "$ac_ct_CC" && break
3077 if test "x$ac_ct_CC" = x; then
3080 case $cross_compiling:$ac_tool_warned in
3082 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3083 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3084 ac_tool_warned=yes ;;
3093 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3094 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3095 as_fn_error $? "no acceptable C compiler found in \$PATH
3096 See \`config.log' for more details" "$LINENO" 5; }
3098 # Provide some information about the compiler.
3099 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3102 for ac_option in --version -v -V -qversion; do
3103 { { ac_try="$ac_compiler $ac_option >&5"
3105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3106 *) ac_try_echo=$ac_try;;
3108 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3109 $as_echo "$ac_try_echo"; } >&5
3110 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3112 if test -s conftest.err; then
3114 ... rest of stderr output deleted ...
3115 10q' conftest.err >conftest.er1
3116 cat conftest.er1 >&5
3118 rm -f conftest.er1 conftest.err
3119 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3120 test $ac_status = 0; }
3123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3124 /* end confdefs.h. */
3134 ac_clean_files_save=$ac_clean_files
3135 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3136 # Try to create an executable without -o first, disregard a.out.
3137 # It will help us diagnose broken compilers, and finding out an intuition
3139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3140 $as_echo_n "checking whether the C compiler works... " >&6; }
3141 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3143 # The possible output files:
3144 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3147 for ac_file in $ac_files
3150 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3151 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3156 if { { ac_try="$ac_link_default"
3158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3159 *) ac_try_echo=$ac_try;;
3161 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3162 $as_echo "$ac_try_echo"; } >&5
3163 (eval "$ac_link_default") 2>&5
3165 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3166 test $ac_status = 0; }; then :
3167 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3168 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3169 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3170 # so that the user can short-circuit this test for compilers unknown to
3172 for ac_file in $ac_files ''
3174 test -f "$ac_file" || continue
3176 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3179 # We found the default executable, but exeext='' is most
3183 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3185 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3187 # We set ac_cv_exeext here because the later test for it is not
3188 # safe: cross compilers may not add the suffix if given an `-o'
3189 # argument, so we may need to know it at that point already.
3190 # Even if this section looks crufty: it has the advantage of
3197 test "$ac_cv_exeext" = no && ac_cv_exeext=
3202 if test -z "$ac_file"; then :
3203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3204 $as_echo "no" >&6; }
3205 $as_echo "$as_me: failed program was:" >&5
3206 sed 's/^/| /' conftest.$ac_ext >&5
3208 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3209 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3210 as_fn_error 77 "C compiler cannot create executables
3211 See \`config.log' for more details" "$LINENO" 5; }
3213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3214 $as_echo "yes" >&6; }
3216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3217 $as_echo_n "checking for C compiler default output file name... " >&6; }
3218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3219 $as_echo "$ac_file" >&6; }
3220 ac_exeext=$ac_cv_exeext
3222 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3223 ac_clean_files=$ac_clean_files_save
3224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3225 $as_echo_n "checking for suffix of executables... " >&6; }
3226 if { { ac_try="$ac_link"
3228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3229 *) ac_try_echo=$ac_try;;
3231 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3232 $as_echo "$ac_try_echo"; } >&5
3233 (eval "$ac_link") 2>&5
3235 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3236 test $ac_status = 0; }; then :
3237 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3238 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3239 # work properly (i.e., refer to `conftest.exe'), while it won't with
3241 for ac_file in conftest.exe conftest conftest.*; do
3242 test -f "$ac_file" || continue
3244 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3245 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3251 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3252 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3253 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3254 See \`config.log' for more details" "$LINENO" 5; }
3256 rm -f conftest conftest$ac_cv_exeext
3257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3258 $as_echo "$ac_cv_exeext" >&6; }
3260 rm -f conftest.$ac_ext
3261 EXEEXT=$ac_cv_exeext
3263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3264 /* end confdefs.h. */
3269 FILE *f = fopen ("conftest.out", "w");
3270 return ferror (f) || fclose (f) != 0;
3276 ac_clean_files="$ac_clean_files conftest.out"
3277 # Check that the compiler produces executables we can run. If not, either
3278 # the compiler is broken, or we cross compile.
3279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3280 $as_echo_n "checking whether we are cross compiling... " >&6; }
3281 if test "$cross_compiling" != yes; then
3282 { { ac_try="$ac_link"
3284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3285 *) ac_try_echo=$ac_try;;
3287 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3288 $as_echo "$ac_try_echo"; } >&5
3289 (eval "$ac_link") 2>&5
3291 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3292 test $ac_status = 0; }
3293 if { ac_try='./conftest$ac_cv_exeext'
3294 { { case "(($ac_try" in
3295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3296 *) ac_try_echo=$ac_try;;
3298 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3299 $as_echo "$ac_try_echo"; } >&5
3300 (eval "$ac_try") 2>&5
3302 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3303 test $ac_status = 0; }; }; then
3306 if test "$cross_compiling" = maybe; then
3309 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3310 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3311 as_fn_error $? "cannot run C compiled programs.
3312 If you meant to cross compile, use \`--host'.
3313 See \`config.log' for more details" "$LINENO" 5; }
3317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3318 $as_echo "$cross_compiling" >&6; }
3320 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3321 ac_clean_files=$ac_clean_files_save
3322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3323 $as_echo_n "checking for suffix of object files... " >&6; }
3324 if ${ac_cv_objext+:} false; then :
3325 $as_echo_n "(cached) " >&6
3327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3328 /* end confdefs.h. */
3338 rm -f conftest.o conftest.obj
3339 if { { ac_try="$ac_compile"
3341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3342 *) ac_try_echo=$ac_try;;
3344 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3345 $as_echo "$ac_try_echo"; } >&5
3346 (eval "$ac_compile") 2>&5
3348 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3349 test $ac_status = 0; }; then :
3350 for ac_file in conftest.o conftest.obj conftest.*; do
3351 test -f "$ac_file" || continue;
3353 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3354 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3359 $as_echo "$as_me: failed program was:" >&5
3360 sed 's/^/| /' conftest.$ac_ext >&5
3362 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3363 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3364 as_fn_error $? "cannot compute suffix of object files: cannot compile
3365 See \`config.log' for more details" "$LINENO" 5; }
3367 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3370 $as_echo "$ac_cv_objext" >&6; }
3371 OBJEXT=$ac_cv_objext
3373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3374 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3375 if ${ac_cv_c_compiler_gnu+:} false; then :
3376 $as_echo_n "(cached) " >&6
3378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3379 /* end confdefs.h. */
3392 if ac_fn_c_try_compile "$LINENO"; then :
3397 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3398 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3402 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3403 if test $ac_compiler_gnu = yes; then
3408 ac_test_CFLAGS=${CFLAGS+set}
3409 ac_save_CFLAGS=$CFLAGS
3410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3411 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3412 if ${ac_cv_prog_cc_g+:} false; then :
3413 $as_echo_n "(cached) " >&6
3415 ac_save_c_werror_flag=$ac_c_werror_flag
3416 ac_c_werror_flag=yes
3419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3420 /* end confdefs.h. */
3430 if ac_fn_c_try_compile "$LINENO"; then :
3434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3435 /* end confdefs.h. */
3445 if ac_fn_c_try_compile "$LINENO"; then :
3448 ac_c_werror_flag=$ac_save_c_werror_flag
3450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3451 /* end confdefs.h. */
3461 if ac_fn_c_try_compile "$LINENO"; then :
3464 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3466 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3468 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3469 ac_c_werror_flag=$ac_save_c_werror_flag
3471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3472 $as_echo "$ac_cv_prog_cc_g" >&6; }
3473 if test "$ac_test_CFLAGS" = set; then
3474 CFLAGS=$ac_save_CFLAGS
3475 elif test $ac_cv_prog_cc_g = yes; then
3476 if test "$GCC" = yes; then
3482 if test "$GCC" = yes; then
3488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3489 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3490 if ${ac_cv_prog_cc_c89+:} false; then :
3491 $as_echo_n "(cached) " >&6
3493 ac_cv_prog_cc_c89=no
3495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3496 /* end confdefs.h. */
3500 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3501 struct buf { int x; };
3502 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3503 static char *e (p, i)
3509 static char *f (char * (*g) (char **, int), char **p, ...)
3514 s = g (p, va_arg (v,int));
3519 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3520 function prototypes and stuff, but not '\xHH' hex character constants.
3521 These don't provoke an error unfortunately, instead are silently treated
3522 as 'x'. The following induces an error, until -std is added to get
3523 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3524 array size at least. It's necessary to write '\x00'==0 to get something
3525 that's true only with -std. */
3526 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3528 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3529 inside strings and character constants. */
3531 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3533 int test (int i, double x);
3534 struct s1 {int (*f) (int a);};
3535 struct s2 {int (*f) (double a);};
3536 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3542 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3547 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3548 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3550 CC="$ac_save_CC $ac_arg"
3551 if ac_fn_c_try_compile "$LINENO"; then :
3552 ac_cv_prog_cc_c89=$ac_arg
3554 rm -f core conftest.err conftest.$ac_objext
3555 test "x$ac_cv_prog_cc_c89" != "xno" && break
3557 rm -f conftest.$ac_ext
3562 case "x$ac_cv_prog_cc_c89" in
3564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3565 $as_echo "none needed" >&6; } ;;
3567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3568 $as_echo "unsupported" >&6; } ;;
3570 CC="$CC $ac_cv_prog_cc_c89"
3571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3572 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3574 if test "x$ac_cv_prog_cc_c89" != xno; then :
3579 ac_cpp='$CPP $CPPFLAGS'
3580 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3581 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3582 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3586 CFLAGS_KEEP="$CFLAGS"
3589 if test "$GCC" = "yes"; then
3591 _svn_xxflags__save="$CFLAGS"
3593 ac_cpp='$CPP $CPPFLAGS'
3594 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3595 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3596 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -std=c90" >&5
3599 $as_echo_n "checking if $CC accepts -std=c90... " >&6; }
3600 CFLAGS="-std=c90 $CFLAGS"
3601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3602 /* end confdefs.h. */
3603 int main(void){return 0;}
3605 if ac_fn_c_try_link "$LINENO"; then :
3607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3608 $as_echo "yes" >&6; }
3613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3614 $as_echo "no" >&6; }
3615 CFLAGS="$_svn_xxflags__save"
3618 _svn_xxflags__save="$CFLAGS"
3620 ac_cpp='$CPP $CPPFLAGS'
3621 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3622 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3623 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -std=c89" >&5
3626 $as_echo_n "checking if $CC accepts -std=c89... " >&6; }
3627 CFLAGS="-std=c89 $CFLAGS"
3628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3629 /* end confdefs.h. */
3630 int main(void){return 0;}
3632 if ac_fn_c_try_link "$LINENO"; then :
3634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3635 $as_echo "yes" >&6; }
3640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3641 $as_echo "no" >&6; }
3642 CFLAGS="$_svn_xxflags__save"
3645 _svn_xxflags__save="$CFLAGS"
3647 ac_cpp='$CPP $CPPFLAGS'
3648 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3649 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3650 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -ansi" >&5
3653 $as_echo_n "checking if $CC accepts -ansi... " >&6; }
3654 CFLAGS="-ansi $CFLAGS"
3655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3656 /* end confdefs.h. */
3657 int main(void){return 0;}
3659 if ac_fn_c_try_link "$LINENO"; then :
3661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3662 $as_echo "yes" >&6; }
3667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3668 $as_echo "no" >&6; }
3669 CFLAGS="$_svn_xxflags__save"
3673 rm -f core conftest.err conftest.$ac_objext \
3674 conftest$ac_exeext conftest.$ac_ext
3676 ac_cpp='$CPP $CPPFLAGS'
3677 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3678 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3679 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3685 rm -f core conftest.err conftest.$ac_objext \
3686 conftest$ac_exeext conftest.$ac_ext
3688 ac_cpp='$CPP $CPPFLAGS'
3689 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3690 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3691 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3697 rm -f core conftest.err conftest.$ac_objext \
3698 conftest$ac_exeext conftest.$ac_ext
3700 ac_cpp='$CPP $CPPFLAGS'
3701 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3702 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3703 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3708 CMODEFLAGS="$CFLAGS"
3711 if test "$GCC" = "yes"; then
3713 _svn_xxflags__save="$CFLAGS"
3715 ac_cpp='$CPP $CPPFLAGS'
3716 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3717 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3718 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -w" >&5
3721 $as_echo_n "checking if $CC accepts -w... " >&6; }
3723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3724 /* end confdefs.h. */
3725 int main(void){return 0;}
3727 if ac_fn_c_try_link "$LINENO"; then :
3729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3730 $as_echo "yes" >&6; }
3735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3736 $as_echo "no" >&6; }
3737 CFLAGS="$_svn_xxflags__save"
3741 rm -f core conftest.err conftest.$ac_objext \
3742 conftest$ac_exeext conftest.$ac_ext
3744 ac_cpp='$CPP $CPPFLAGS'
3745 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3746 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3747 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3752 CNOWARNFLAGS="$CFLAGS"
3753 CFLAGS="$CFLAGS_KEEP"
3760 if test "$GCC" = "yes"; then
3762 _svn_xxflags__save="$CFLAGS"
3764 ac_cpp='$CPP $CPPFLAGS'
3765 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3766 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3767 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -Werror=unknown-warning-option" >&5
3770 $as_echo_n "checking if $CC accepts -Werror=unknown-warning-option... " >&6; }
3771 CFLAGS="-Werror=unknown-warning-option $CFLAGS"
3772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3773 /* end confdefs.h. */
3774 int main(void){return 0;}
3776 if ac_fn_c_try_link "$LINENO"; then :
3778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3779 $as_echo "yes" >&6; }
3784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3785 $as_echo "no" >&6; }
3786 CFLAGS="$_svn_xxflags__save"
3790 rm -f core conftest.err conftest.$ac_objext \
3791 conftest$ac_exeext conftest.$ac_ext
3793 ac_cpp='$CPP $CPPFLAGS'
3794 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3795 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3796 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3802 # Look for a C++ compiler (before anything can set CXXFLAGS)
3803 CXXUSERFLAGS="$CXXFLAGS"
3805 ac_cpp='$CXXCPP $CPPFLAGS'
3806 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3807 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3808 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3809 if test -z "$CXX"; then
3810 if test -n "$CCC"; then
3813 if test -n "$ac_tool_prefix"; then
3814 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3816 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3817 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3819 $as_echo_n "checking for $ac_word... " >&6; }
3820 if ${ac_cv_prog_CXX+:} false; then :
3821 $as_echo_n "(cached) " >&6
3823 if test -n "$CXX"; then
3824 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3826 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3830 test -z "$as_dir" && as_dir=.
3831 for ac_exec_ext in '' $ac_executable_extensions; do
3832 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3833 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3834 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3844 if test -n "$CXX"; then
3845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3846 $as_echo "$CXX" >&6; }
3848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3849 $as_echo "no" >&6; }
3853 test -n "$CXX" && break
3856 if test -z "$CXX"; then
3858 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3860 # Extract the first word of "$ac_prog", so it can be a program name with args.
3861 set dummy $ac_prog; ac_word=$2
3862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3863 $as_echo_n "checking for $ac_word... " >&6; }
3864 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
3865 $as_echo_n "(cached) " >&6
3867 if test -n "$ac_ct_CXX"; then
3868 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3874 test -z "$as_dir" && as_dir=.
3875 for ac_exec_ext in '' $ac_executable_extensions; do
3876 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3877 ac_cv_prog_ac_ct_CXX="$ac_prog"
3878 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3887 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3888 if test -n "$ac_ct_CXX"; then
3889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3890 $as_echo "$ac_ct_CXX" >&6; }
3892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3893 $as_echo "no" >&6; }
3897 test -n "$ac_ct_CXX" && break
3900 if test "x$ac_ct_CXX" = x; then
3903 case $cross_compiling:$ac_tool_warned in
3905 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3906 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3907 ac_tool_warned=yes ;;
3915 # Provide some information about the compiler.
3916 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3919 for ac_option in --version -v -V -qversion; do
3920 { { ac_try="$ac_compiler $ac_option >&5"
3922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3923 *) ac_try_echo=$ac_try;;
3925 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3926 $as_echo "$ac_try_echo"; } >&5
3927 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3929 if test -s conftest.err; then
3931 ... rest of stderr output deleted ...
3932 10q' conftest.err >conftest.er1
3933 cat conftest.er1 >&5
3935 rm -f conftest.er1 conftest.err
3936 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3937 test $ac_status = 0; }
3940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3941 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3942 if ${ac_cv_cxx_compiler_gnu+:} false; then :
3943 $as_echo_n "(cached) " >&6
3945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3946 /* end confdefs.h. */
3959 if ac_fn_cxx_try_compile "$LINENO"; then :
3964 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3965 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3969 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3970 if test $ac_compiler_gnu = yes; then
3975 ac_test_CXXFLAGS=${CXXFLAGS+set}
3976 ac_save_CXXFLAGS=$CXXFLAGS
3977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3978 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3979 if ${ac_cv_prog_cxx_g+:} false; then :
3980 $as_echo_n "(cached) " >&6
3982 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3983 ac_cxx_werror_flag=yes
3986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3987 /* end confdefs.h. */
3997 if ac_fn_cxx_try_compile "$LINENO"; then :
3998 ac_cv_prog_cxx_g=yes
4001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4002 /* end confdefs.h. */
4012 if ac_fn_cxx_try_compile "$LINENO"; then :
4015 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4018 /* end confdefs.h. */
4028 if ac_fn_cxx_try_compile "$LINENO"; then :
4029 ac_cv_prog_cxx_g=yes
4031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4035 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4036 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4039 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4040 if test "$ac_test_CXXFLAGS" = set; then
4041 CXXFLAGS=$ac_save_CXXFLAGS
4042 elif test $ac_cv_prog_cxx_g = yes; then
4043 if test "$GXX" = yes; then
4049 if test "$GXX" = yes; then
4056 ac_cpp='$CPP $CPPFLAGS'
4057 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4058 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4059 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4063 CXXFLAGS_KEEP="$CXXFLAGS"
4066 if test "$GXX" = "yes"; then
4068 _svn_xxflags__save="$CXXFLAGS"
4070 ac_cpp='$CXXCPP $CPPFLAGS'
4071 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4072 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4073 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CXX accepts -std=c++11" >&5
4076 $as_echo_n "checking if $CXX accepts -std=c++11... " >&6; }
4077 CXXFLAGS="-std=c++11 $CXXFLAGS"
4078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4079 /* end confdefs.h. */
4082 if ac_fn_cxx_try_link "$LINENO"; then :
4084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4085 $as_echo "yes" >&6; }
4090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4091 $as_echo "no" >&6; }
4092 CXXFLAGS="$_svn_xxflags__save"
4096 rm -f core conftest.err conftest.$ac_objext \
4097 conftest$ac_exeext conftest.$ac_ext
4099 ac_cpp='$CPP $CPPFLAGS'
4100 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4101 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4102 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4107 CXXMODEFLAGS="$CXXFLAGS"
4110 if test "$GXX" = "yes"; then
4112 _svn_xxflags__save="$CXXFLAGS"
4114 ac_cpp='$CXXCPP $CPPFLAGS'
4115 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4116 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4117 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CXX accepts -w" >&5
4120 $as_echo_n "checking if $CXX accepts -w... " >&6; }
4121 CXXFLAGS="-w $CXXFLAGS"
4122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4123 /* end confdefs.h. */
4126 if ac_fn_cxx_try_link "$LINENO"; then :
4128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4129 $as_echo "yes" >&6; }
4134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4135 $as_echo "no" >&6; }
4136 CXXFLAGS="$_svn_xxflags__save"
4140 rm -f core conftest.err conftest.$ac_objext \
4141 conftest$ac_exeext conftest.$ac_ext
4143 ac_cpp='$CPP $CPPFLAGS'
4144 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4145 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4146 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4151 CXXNOWARNFLAGS="$CXXFLAGS"
4152 CXXFLAGS="$CXXFLAGS_KEEP"
4159 if test "$GXX" = "yes"; then
4161 _svn_xxflags__save="$CXXFLAGS"
4163 ac_cpp='$CXXCPP $CPPFLAGS'
4164 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4165 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4166 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CXX accepts -Werror=unknown-warning-option" >&5
4169 $as_echo_n "checking if $CXX accepts -Werror=unknown-warning-option... " >&6; }
4170 CXXFLAGS="-Werror=unknown-warning-option $CXXFLAGS"
4171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4172 /* end confdefs.h. */
4175 if ac_fn_cxx_try_link "$LINENO"; then :
4177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4178 $as_echo "yes" >&6; }
4183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4184 $as_echo "no" >&6; }
4185 CXXFLAGS="$_svn_xxflags__save"
4189 rm -f core conftest.err conftest.$ac_objext \
4190 conftest$ac_exeext conftest.$ac_ext
4192 ac_cpp='$CPP $CPPFLAGS'
4193 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4194 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4195 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4201 # Look for a C pre-processor
4203 ac_cpp='$CPP $CPPFLAGS'
4204 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4205 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4206 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4208 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4209 # On Suns, sometimes $CPP names a directory.
4210 if test -n "$CPP" && test -d "$CPP"; then
4213 if test -z "$CPP"; then
4214 if ${ac_cv_prog_CPP+:} false; then :
4215 $as_echo_n "(cached) " >&6
4217 # Double quotes because CPP needs to be expanded
4218 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4221 for ac_c_preproc_warn_flag in '' yes
4223 # Use a header file that comes with gcc, so configuring glibc
4224 # with a fresh cross-compiler works.
4225 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4226 # <limits.h> exists even on freestanding compilers.
4227 # On the NeXT, cc -E runs the code through the compiler's parser,
4228 # not just through cpp. "Syntax error" is here to catch this case.
4229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4230 /* end confdefs.h. */
4232 # include <limits.h>
4234 # include <assert.h>
4238 if ac_fn_c_try_cpp "$LINENO"; then :
4241 # Broken: fails on valid input.
4244 rm -f conftest.err conftest.i conftest.$ac_ext
4246 # OK, works on sane cases. Now check whether nonexistent headers
4247 # can be detected and how.
4248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4249 /* end confdefs.h. */
4250 #include <ac_nonexistent.h>
4252 if ac_fn_c_try_cpp "$LINENO"; then :
4253 # Broken: success on invalid input.
4256 # Passes both tests.
4260 rm -f conftest.err conftest.i conftest.$ac_ext
4263 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4264 rm -f conftest.i conftest.err conftest.$ac_ext
4265 if $ac_preproc_ok; then :
4277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4278 $as_echo "$CPP" >&6; }
4280 for ac_c_preproc_warn_flag in '' yes
4282 # Use a header file that comes with gcc, so configuring glibc
4283 # with a fresh cross-compiler works.
4284 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4285 # <limits.h> exists even on freestanding compilers.
4286 # On the NeXT, cc -E runs the code through the compiler's parser,
4287 # not just through cpp. "Syntax error" is here to catch this case.
4288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4289 /* end confdefs.h. */
4291 # include <limits.h>
4293 # include <assert.h>
4297 if ac_fn_c_try_cpp "$LINENO"; then :
4300 # Broken: fails on valid input.
4303 rm -f conftest.err conftest.i conftest.$ac_ext
4305 # OK, works on sane cases. Now check whether nonexistent headers
4306 # can be detected and how.
4307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4308 /* end confdefs.h. */
4309 #include <ac_nonexistent.h>
4311 if ac_fn_c_try_cpp "$LINENO"; then :
4312 # Broken: success on invalid input.
4315 # Passes both tests.
4319 rm -f conftest.err conftest.i conftest.$ac_ext
4322 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4323 rm -f conftest.i conftest.err conftest.$ac_ext
4324 if $ac_preproc_ok; then :
4327 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4328 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4329 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4330 See \`config.log' for more details" "$LINENO" 5; }
4334 ac_cpp='$CPP $CPPFLAGS'
4335 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4336 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4337 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4340 # Look for a good sed
4341 # AC_PROG_SED was introduced in Autoconf 2.59b
4342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4343 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4344 if ${ac_cv_path_SED+:} false; then :
4345 $as_echo_n "(cached) " >&6
4347 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4348 for ac_i in 1 2 3 4 5 6 7; do
4349 ac_script="$ac_script$as_nl$ac_script"
4351 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4352 { ac_script=; unset ac_script;}
4353 if test -z "$SED"; then
4354 ac_path_SED_found=false
4355 # Loop through the user's path and test for each of PROGNAME-LIST
4356 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4360 test -z "$as_dir" && as_dir=.
4361 for ac_prog in sed gsed; do
4362 for ac_exec_ext in '' $ac_executable_extensions; do
4363 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4364 as_fn_executable_p "$ac_path_SED" || continue
4365 # Check for GNU ac_path_SED and select it if it is found.
4366 # Check for GNU $ac_path_SED
4367 case `"$ac_path_SED" --version 2>&1` in
4369 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4372 $as_echo_n 0123456789 >"conftest.in"
4375 cat "conftest.in" "conftest.in" >"conftest.tmp"
4376 mv "conftest.tmp" "conftest.in"
4377 cp "conftest.in" "conftest.nl"
4378 $as_echo '' >> "conftest.nl"
4379 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4380 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4381 as_fn_arith $ac_count + 1 && ac_count=$as_val
4382 if test $ac_count -gt ${ac_path_SED_max-0}; then
4383 # Best one so far, save it but keep looking for a better one
4384 ac_cv_path_SED="$ac_path_SED"
4385 ac_path_SED_max=$ac_count
4387 # 10*(2^10) chars as input seems more than enough
4388 test $ac_count -gt 10 && break
4390 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4393 $ac_path_SED_found && break 3
4398 if test -z "$ac_cv_path_SED"; then
4399 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4407 $as_echo "$ac_cv_path_SED" >&6; }
4408 SED="$ac_cv_path_SED"
4412 # Grab target_cpu, so we can use it in the Solaris pkginfo file
4413 # Make sure we can run config.sub.
4414 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4415 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4418 $as_echo_n "checking build system type... " >&6; }
4419 if ${ac_cv_build+:} false; then :
4420 $as_echo_n "(cached) " >&6
4422 ac_build_alias=$build_alias
4423 test "x$ac_build_alias" = x &&
4424 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4425 test "x$ac_build_alias" = x &&
4426 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4427 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4428 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4432 $as_echo "$ac_cv_build" >&6; }
4433 case $ac_cv_build in
4435 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4438 ac_save_IFS=$IFS; IFS='-'
4444 # Remember, the first character of IFS is used to create $*,
4445 # except with old shells:
4448 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4452 $as_echo_n "checking host system type... " >&6; }
4453 if ${ac_cv_host+:} false; then :
4454 $as_echo_n "(cached) " >&6
4456 if test "x$host_alias" = x; then
4457 ac_cv_host=$ac_cv_build
4459 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4460 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4465 $as_echo "$ac_cv_host" >&6; }
4468 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4471 ac_save_IFS=$IFS; IFS='-'
4477 # Remember, the first character of IFS is used to create $*,
4478 # except with old shells:
4481 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
4485 $as_echo_n "checking target system type... " >&6; }
4486 if ${ac_cv_target+:} false; then :
4487 $as_echo_n "(cached) " >&6
4489 if test "x$target_alias" = x; then
4490 ac_cv_target=$ac_cv_host
4492 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
4493 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
4497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
4498 $as_echo "$ac_cv_target" >&6; }
4499 case $ac_cv_target in
4501 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
4503 target=$ac_cv_target
4504 ac_save_IFS=$IFS; IFS='-'
4510 # Remember, the first character of IFS is used to create $*,
4511 # except with old shells:
4514 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
4517 # The aliases save the names the user supplied, while $host etc.
4518 # will get canonicalized.
4519 test -n "$target_alias" &&
4520 test "$program_prefix$program_suffix$program_transform_name" = \
4522 program_prefix=${target_alias}-
4524 # Look for an extended grep
4525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4526 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4527 if ${ac_cv_path_GREP+:} false; then :
4528 $as_echo_n "(cached) " >&6
4530 if test -z "$GREP"; then
4531 ac_path_GREP_found=false
4532 # Loop through the user's path and test for each of PROGNAME-LIST
4533 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4534 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4537 test -z "$as_dir" && as_dir=.
4538 for ac_prog in grep ggrep; do
4539 for ac_exec_ext in '' $ac_executable_extensions; do
4540 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4541 as_fn_executable_p "$ac_path_GREP" || continue
4542 # Check for GNU ac_path_GREP and select it if it is found.
4543 # Check for GNU $ac_path_GREP
4544 case `"$ac_path_GREP" --version 2>&1` in
4546 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4549 $as_echo_n 0123456789 >"conftest.in"
4552 cat "conftest.in" "conftest.in" >"conftest.tmp"
4553 mv "conftest.tmp" "conftest.in"
4554 cp "conftest.in" "conftest.nl"
4555 $as_echo 'GREP' >> "conftest.nl"
4556 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4557 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4558 as_fn_arith $ac_count + 1 && ac_count=$as_val
4559 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4560 # Best one so far, save it but keep looking for a better one
4561 ac_cv_path_GREP="$ac_path_GREP"
4562 ac_path_GREP_max=$ac_count
4564 # 10*(2^10) chars as input seems more than enough
4565 test $ac_count -gt 10 && break
4567 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4570 $ac_path_GREP_found && break 3
4575 if test -z "$ac_cv_path_GREP"; then
4576 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4579 ac_cv_path_GREP=$GREP
4583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4584 $as_echo "$ac_cv_path_GREP" >&6; }
4585 GREP="$ac_cv_path_GREP"
4588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4589 $as_echo_n "checking for egrep... " >&6; }
4590 if ${ac_cv_path_EGREP+:} false; then :
4591 $as_echo_n "(cached) " >&6
4593 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4594 then ac_cv_path_EGREP="$GREP -E"
4596 if test -z "$EGREP"; then
4597 ac_path_EGREP_found=false
4598 # Loop through the user's path and test for each of PROGNAME-LIST
4599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4600 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4603 test -z "$as_dir" && as_dir=.
4604 for ac_prog in egrep; do
4605 for ac_exec_ext in '' $ac_executable_extensions; do
4606 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4607 as_fn_executable_p "$ac_path_EGREP" || continue
4608 # Check for GNU ac_path_EGREP and select it if it is found.
4609 # Check for GNU $ac_path_EGREP
4610 case `"$ac_path_EGREP" --version 2>&1` in
4612 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4615 $as_echo_n 0123456789 >"conftest.in"
4618 cat "conftest.in" "conftest.in" >"conftest.tmp"
4619 mv "conftest.tmp" "conftest.in"
4620 cp "conftest.in" "conftest.nl"
4621 $as_echo 'EGREP' >> "conftest.nl"
4622 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4623 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4624 as_fn_arith $ac_count + 1 && ac_count=$as_val
4625 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4626 # Best one so far, save it but keep looking for a better one
4627 ac_cv_path_EGREP="$ac_path_EGREP"
4628 ac_path_EGREP_max=$ac_count
4630 # 10*(2^10) chars as input seems more than enough
4631 test $ac_count -gt 10 && break
4633 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4636 $ac_path_EGREP_found && break 3
4641 if test -z "$ac_cv_path_EGREP"; then
4642 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4645 ac_cv_path_EGREP=$EGREP
4650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4651 $as_echo "$ac_cv_path_EGREP" >&6; }
4652 EGREP="$ac_cv_path_EGREP"
4656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4657 $as_echo_n "checking whether ln -s works... " >&6; }
4659 if test "$LN_S" = "ln -s"; then
4660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4661 $as_echo "yes" >&6; }
4663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4664 $as_echo "no, using $LN_S" >&6; }
4668 # Find a good install program. We prefer a C program (faster),
4669 # so one script is as good as another. But avoid the broken or
4670 # incompatible versions:
4671 # SysV /etc/install, /usr/sbin/install
4672 # SunOS /usr/etc/install
4673 # IRIX /sbin/install
4675 # AmigaOS /C/install, which installs bootblocks on floppy discs
4676 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4677 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4678 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4679 # OS/2's system install, which has a completely different semantic
4680 # ./install, which can be erroneously created by make from ./install.sh.
4681 # Reject install programs that cannot install multiple files.
4682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4683 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4684 if test -z "$INSTALL"; then
4685 if ${ac_cv_path_install+:} false; then :
4686 $as_echo_n "(cached) " >&6
4688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4692 test -z "$as_dir" && as_dir=.
4693 # Account for people who put trailing slashes in PATH elements.
4694 case $as_dir/ in #((
4695 ./ | .// | /[cC]/* | \
4696 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4697 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4700 # OSF1 and SCO ODT 3.0 have their own names for install.
4701 # Don't use installbsd from OSF since it installs stuff as root
4703 for ac_prog in ginstall scoinst install; do
4704 for ac_exec_ext in '' $ac_executable_extensions; do
4705 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4706 if test $ac_prog = install &&
4707 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4708 # AIX install. It has an incompatible calling convention.
4710 elif test $ac_prog = install &&
4711 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4712 # program-specific install script used by HP pwplus--don't use.
4715 rm -rf conftest.one conftest.two conftest.dir
4716 echo one > conftest.one
4717 echo two > conftest.two
4719 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4720 test -s conftest.one && test -s conftest.two &&
4721 test -s conftest.dir/conftest.one &&
4722 test -s conftest.dir/conftest.two
4724 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4737 rm -rf conftest.one conftest.two conftest.dir
4740 if test "${ac_cv_path_install+set}" = set; then
4741 INSTALL=$ac_cv_path_install
4743 # As a last resort, use the slow shell script. Don't cache a
4744 # value for INSTALL within a source directory, because that will
4745 # break other packages using the cache if that directory is
4746 # removed, or if the value is a relative name.
4747 INSTALL=$ac_install_sh
4750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4751 $as_echo "$INSTALL" >&6; }
4753 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4754 # It thinks the first close brace ends the variable substitution.
4755 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4757 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4759 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4761 # If $INSTALL is relative path to our fallback install-sh, then convert
4762 # to an absolute path, as in some cases (e.g. Solaris VPATH build), libtool
4763 # may try to use it from a changed working directory.
4764 if test "$INSTALL" = "build/install-sh -c"; then
4765 INSTALL="$abs_srcdir/$INSTALL"
4768 if test -z "$MKDIR"; then
4773 # ==== Libraries, for which we may have source to build ======================
4776 APR_VER_REGEXES="1\.[5-9]\. 2\."
4779 APR_WANTED_REGEXES="$APR_VER_REGEXES"
4781 { $as_echo "$as_me:${as_lineno-$LINENO}: Apache Portable Runtime (APR) library configuration" >&5
4782 $as_echo "$as_me: Apache Portable Runtime (APR) library configuration" >&6;}
4787 if test "$target_os" = "os2-emx"; then
4788 # Scripts don't pass test -x on OS/2
4794 acceptable_majors="2 1 0"
4796 apr_temp_acceptable_apr_config=""
4797 for apr_temp_major in $acceptable_majors
4799 case $apr_temp_major in
4801 apr_temp_acceptable_apr_config="$apr_temp_acceptable_apr_config apr-config"
4804 apr_temp_acceptable_apr_config="$apr_temp_acceptable_apr_config apr-$apr_temp_major-config"
4809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for APR" >&5
4810 $as_echo_n "checking for APR... " >&6; }
4812 # Check whether --with-apr was given.
4813 if test "${with_apr+set}" = set; then :
4815 if test "$withval" = "no" || test "$withval" = "yes"; then
4816 as_fn_error $? "--with-apr requires a directory or file to be provided" "$LINENO" 5
4819 for apr_temp_apr_config_file in $apr_temp_acceptable_apr_config
4821 for lookdir in "$withval/bin" "$withval"
4823 if $TEST_X "$lookdir/$apr_temp_apr_config_file"; then
4824 apr_config="$lookdir/$apr_temp_apr_config_file"
4832 if test "$apr_found" != "yes" && $TEST_X "$withval" && $withval --help > /dev/null 2>&1 ; then
4833 apr_config="$withval"
4837 if test "$apr_found" != "yes"; then
4838 as_fn_error $? "the --with-apr parameter is incorrect. It must specify an install prefix, a build directory, or an apr-config file." "$LINENO" 5
4843 if test -n "1" && test "1" = "1"; then
4844 for apr_temp_apr_config_file in $apr_temp_acceptable_apr_config
4846 if $apr_temp_apr_config_file --help > /dev/null 2>&1 ; then
4847 apr_config="$apr_temp_apr_config_file"
4852 for lookdir in /usr /usr/local /usr/local/apr /opt/apr; do
4853 if $TEST_X "$lookdir/bin/$apr_temp_apr_config_file"; then
4854 apr_config="$lookdir/bin/$apr_temp_apr_config_file"
4863 if test "$apr_found" = "no" && test -d """"; then
4864 apr_temp_abs_srcdir="`cd \"""\" && pwd`"
4865 apr_found="reconfig"
4866 apr_bundled_major="`sed -n '/#define.*APR_MAJOR_VERSION/s/^[^0-9]*\([0-9]*\).*$/\1/p' \"""/include/apr_version.h\"`"
4867 case $apr_bundled_major in
4869 as_fn_error $? "failed to find major version of bundled APR" "$LINENO" 5
4872 apr_temp_apr_config_file="apr-config"
4875 apr_temp_apr_config_file="apr-$apr_bundled_major-config"
4878 if test -n """"; then
4879 apr_config="""/$apr_temp_apr_config_file"
4881 apr_config="""/$apr_temp_apr_config_file"
4888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_found" >&5
4889 $as_echo "$apr_found" >&6; }
4892 if test $apr_found = "no"; then
4893 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: APR not found" >&5
4894 $as_echo "$as_me: WARNING: APR not found" >&2;}
4896 echo "The Apache Portable Runtime (APR) library cannot be found."
4897 echo "Please install APR on this system and configure Subversion"
4898 echo "with the appropriate --with-apr option."
4900 echo "You probably need to do something similar with the Apache"
4901 echo "Portable Runtime Utility (APRUTIL) library and then configure"
4902 echo "Subversion with both the --with-apr and --with-apr-util options."
4904 as_fn_error $? "no suitable APR found" "$LINENO" 5
4908 if test $apr_found = "reconfig"; then
4909 as_fn_error $? "Unexpected APR reconfig" "$LINENO" 5
4913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking APR version" >&5
4914 $as_echo_n "checking APR version... " >&6; }
4915 apr_version="`$apr_config --version`"
4916 if test $? -ne 0; then
4917 as_fn_error $? "apr-config --version failed" "$LINENO" 5
4919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_version" >&5
4920 $as_echo "$apr_version" >&6; }
4922 APR_WANTED_REGEX_MATCH=0
4923 for apr_wanted_regex in $APR_WANTED_REGEXES; do
4924 if test `expr $apr_version : $apr_wanted_regex` -ne 0; then
4925 APR_WANTED_REGEX_MATCH=1
4930 if test $APR_WANTED_REGEX_MATCH -eq 0; then
4931 echo "wanted regexes are $APR_WANTED_REGEXES"
4932 as_fn_error $? "invalid apr version found" "$LINENO" 5
4936 CPPFLAGS="$CPPFLAGS `$apr_config --cppflags`"
4937 if test $? -ne 0; then
4938 as_fn_error $? "apr-config --cppflags failed" "$LINENO" 5
4941 CFLAGS="$CFLAGS `$apr_config --cflags`"
4942 if test $? -ne 0; then
4943 as_fn_error $? "apr-config --cflags failed" "$LINENO" 5
4946 apr_ldflags="`$apr_config --ldflags`"
4947 if test $? -ne 0; then
4948 as_fn_error $? "apr-config --ldflags failed" "$LINENO" 5
4951 input_flags="$apr_ldflags"
4953 filtered_dirs="/lib /lib64 /usr/lib /usr/lib64"
4954 for flag in $input_flags; do
4956 for dir in $filtered_dirs; do
4957 if test "$flag" = "-L$dir" || test "$flag" = "-L$dir/"; then
4962 if test "$filter" = "no"; then
4963 output_flags="$output_flags $flag"
4966 if test -n "$output_flags"; then
4967 printf "%s" "${output_flags# }"
4971 SVN_APR_INCLUDES="`$apr_config --includes`"
4972 if test $? -ne 0; then
4973 as_fn_error $? "apr-config --includes failed" "$LINENO" 5
4976 if test "$enable_all_static" = "yes"; then
4977 SVN_APR_LIBS="`$apr_config --link-ld --libs`"
4978 if test $? -ne 0; then
4979 as_fn_error $? "apr-config --link-ld --libs failed" "$LINENO" 5
4982 SVN_APR_LIBS="`$apr_config --link-ld`"
4983 if test $? -ne 0; then
4984 as_fn_error $? "apr-config --link-ld failed" "$LINENO" 5
4988 input_flags="$SVN_APR_LIBS"
4990 filtered_dirs="/lib /lib64 /usr/lib /usr/lib64"
4991 for flag in $input_flags; do
4993 for dir in $filtered_dirs; do
4994 if test "$flag" = "-L$dir" || test "$flag" = "-L$dir/"; then
4999 if test "$filter" = "no"; then
5000 output_flags="$output_flags $flag"
5003 if test -n "$output_flags"; then
5004 printf "%s" "${output_flags# }"
5008 SVN_APR_SHLIB_PATH_VAR="`$apr_config --shlib-path-var`"
5009 if test $? -ne 0; then
5010 as_fn_error $? "apr-config --shlib-path-var failed" "$LINENO" 5
5013 SVN_APR_CONFIG="$apr_config"
5020 if test `expr $apr_version : 2` -ne 0; then
5022 apu_config=$apr_config
5024 SVN_APRUTIL_CONFIG="$apu_config"
5027 SVN_APR_MAJOR_VERSION=2
5030 APU_VER_REGEXES="1\.[3-9]\."
5032 APRUTIL_WANTED_REGEXES="$APU_VER_REGEXES"
5034 { $as_echo "$as_me:${as_lineno-$LINENO}: Apache Portable Runtime Utility (APRUTIL) library configuration" >&5
5035 $as_echo "$as_me: Apache Portable Runtime Utility (APRUTIL) library configuration" >&6;}
5040 if test "$target_os" = "os2-emx"; then
5041 # Scripts don't pass test -x on OS/2
5047 acceptable_majors="1 0"
5049 apu_temp_acceptable_apu_config=""
5050 for apu_temp_major in $acceptable_majors
5052 case $apu_temp_major in
5054 apu_temp_acceptable_apu_config="$apu_temp_acceptable_apu_config apu-config"
5057 apu_temp_acceptable_apu_config="$apu_temp_acceptable_apu_config apu-$apu_temp_major-config"
5062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for APR-util" >&5
5063 $as_echo_n "checking for APR-util... " >&6; }
5065 # Check whether --with-apr-util was given.
5066 if test "${with_apr_util+set}" = set; then :
5067 withval=$with_apr_util;
5068 if test "$withval" = "no" || test "$withval" = "yes"; then
5069 as_fn_error $? "--with-apr-util requires a directory or file to be provided" "$LINENO" 5
5072 for apu_temp_apu_config_file in $apu_temp_acceptable_apu_config
5074 for lookdir in "$withval/bin" "$withval"
5076 if $TEST_X "$lookdir/$apu_temp_apu_config_file"; then
5077 apu_config="$lookdir/$apu_temp_apu_config_file"
5085 if test "$apu_found" != "yes" && $TEST_X "$withval" && $withval --help > /dev/null 2>&1 ; then
5086 apu_config="$withval"
5090 if test "$apu_found" != "yes"; then
5091 as_fn_error $? "the --with-apr-util parameter is incorrect. It must specify an install prefix, a build directory, or an apu-config file." "$LINENO" 5
5096 if test -n "1" && test "1" = "1"; then
5097 for apu_temp_apu_config_file in $apu_temp_acceptable_apu_config
5099 if $apu_temp_apu_config_file --help > /dev/null 2>&1 ; then
5100 apu_config="$apu_temp_apu_config_file"
5105 for lookdir in /usr /usr/local /usr/local/apr /opt/apr; do
5106 if $TEST_X "$lookdir/bin/$apu_temp_apu_config_file"; then
5107 apu_config="$lookdir/bin/$apu_temp_apu_config_file"
5116 if test "$apu_found" = "no" && test -d """"; then
5117 apu_temp_abs_srcdir="`cd \"""\" && pwd`"
5118 apu_found="reconfig"
5119 apu_bundled_major="`sed -n '/#define.*APU_MAJOR_VERSION/s/^[^0-9]*\([0-9]*\).*$/\1/p' \"""/include/apu_version.h\"`"
5120 case $apu_bundled_major in
5122 as_fn_error $? "failed to find major version of bundled APU" "$LINENO" 5
5125 apu_temp_apu_config_file="apu-config"
5128 apu_temp_apu_config_file="apu-$apu_bundled_major-config"
5131 if test -n """"; then
5132 apu_config="""/$apu_temp_apu_config_file"
5134 apu_config="""/$apu_temp_apu_config_file"
5141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apu_found" >&5
5142 $as_echo "$apu_found" >&6; }
5145 if test $apu_found = "no"; then
5146 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: APRUTIL not found" >&5
5147 $as_echo "$as_me: WARNING: APRUTIL not found" >&2;}
5149 echo "The Apache Portable Runtime Utility (APRUTIL) library cannot be found."
5150 echo "Install APRUTIL on this system and configure Subversion with the"
5151 echo " appropriate --with-apr-util option."
5153 as_fn_error $? "no suitable APRUTIL found" "$LINENO" 5
5157 if test $apu_found = "reconfig"; then
5158 as_fn_error $? "Unexpected APRUTIL reconfig" "$LINENO" 5
5162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking APRUTIL version" >&5
5163 $as_echo_n "checking APRUTIL version... " >&6; }
5164 apu_version="`$apu_config --version`"
5165 if test $? -ne 0; then
5166 # This is a hack as suggested by Ben Collins-Sussman. It can be
5167 # removed after apache 2.0.44 has been released. (The apu-config
5168 # shipped in 2.0.43 contains a correct version number, but
5169 # stupidly doesn't understand the --version switch.)
5170 apu_version=`grep "APRUTIL_DOTTED_VERSION=" $(which $apu_config) | tr -d "APRUTIL_DOTTED_VERSION="| tr -d '"'`
5172 # apu-config --version failed.
5173 # Your apu-config doesn't support the --version switch, please upgrade
5174 # to APR-UTIL more recent than 2002-Nov-05.])
5176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apu_version" >&5
5177 $as_echo "$apu_version" >&6; }
5179 APU_WANTED_REGEX_MATCH=0
5180 for apu_wanted_regex in $APRUTIL_WANTED_REGEXES; do
5181 if test `expr $apu_version : $apu_wanted_regex` -ne 0; then
5182 APU_WANTED_REGEX_MATCH=1
5187 if test $APU_WANTED_REGEX_MATCH -eq 0; then
5188 echo "wanted regexes are $APRUTIL_WANTED_REGEXES"
5189 as_fn_error $? "invalid APRUTIL version found" "$LINENO" 5
5193 apu_ldflags="`$apu_config --ldflags`"
5194 if test $? -ne 0; then
5195 as_fn_error $? "apu-config --ldflags failed" "$LINENO" 5
5198 input_flags="$apu_ldflags"
5200 filtered_dirs="/lib /lib64 /usr/lib /usr/lib64"
5201 for flag in $input_flags; do
5203 for dir in $filtered_dirs; do
5204 if test "$flag" = "-L$dir" || test "$flag" = "-L$dir/"; then
5209 if test "$filter" = "no"; then
5210 output_flags="$output_flags $flag"
5213 if test -n "$output_flags"; then
5214 printf "%s" "${output_flags# }"
5218 SVN_APRUTIL_INCLUDES="`$apu_config --includes`"
5219 if test $? -ne 0; then
5220 as_fn_error $? "apu-config --includes failed" "$LINENO" 5
5223 if test "$enable_all_static" = "yes"; then
5224 SVN_APRUTIL_LIBS="`$apu_config --link-ld --libs`"
5225 if test $? -ne 0; then
5226 as_fn_error $? "apu-config --link-ld --libs failed" "$LINENO" 5
5229 SVN_APRUTIL_LIBS="`$apu_config --link-ld`"
5230 if test $? -ne 0; then
5231 as_fn_error $? "apu-config --link-ld failed" "$LINENO" 5
5235 input_flags="$SVN_APRUTIL_LIBS"
5237 filtered_dirs="/lib /lib64 /usr/lib /usr/lib64"
5238 for flag in $input_flags; do
5240 for dir in $filtered_dirs; do
5241 if test "$flag" = "-L$dir" || test "$flag" = "-L$dir/"; then
5246 if test "$filter" = "no"; then
5247 output_flags="$output_flags $flag"
5250 if test -n "$output_flags"; then
5251 printf "%s" "${output_flags# }"
5256 SVN_APRUTIL_CONFIG="$apu_config"
5260 SVN_HAVE_OLD_EXPAT="`$apu_config --old-expat`"
5261 if test "$SVN_HAVE_OLD_EXPAT" = "yes"; then
5263 $as_echo "#define SVN_HAVE_OLD_EXPAT 1" >>confdefs.h
5267 SVN_APR_MAJOR_VERSION=1
5270 SVN_LT_SOVERSION="-version-info $svn_lib_ver"
5273 cat >>confdefs.h <<_ACEOF
5274 #define SVN_SOVERSION $svn_lib_ver
5278 # Extract the first word of "pkg-config", so it can be a program name with args.
5279 set dummy pkg-config; ac_word=$2
5280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5281 $as_echo_n "checking for $ac_word... " >&6; }
5282 if ${ac_cv_path_PKG_CONFIG+:} false; then :
5283 $as_echo_n "(cached) " >&6
5287 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5294 test -z "$as_dir" && as_dir=.
5295 for ac_exec_ext in '' $ac_executable_extensions; do
5296 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5297 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5298 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5308 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5309 if test -n "$PKG_CONFIG"; then
5310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5311 $as_echo "$PKG_CONFIG" >&6; }
5313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5314 $as_echo "no" >&6; }
5320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5321 $as_echo_n "checking for ANSI C header files... " >&6; }
5322 if ${ac_cv_header_stdc+:} false; then :
5323 $as_echo_n "(cached) " >&6
5325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5326 /* end confdefs.h. */
5340 if ac_fn_c_try_compile "$LINENO"; then :
5341 ac_cv_header_stdc=yes
5343 ac_cv_header_stdc=no
5345 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5347 if test $ac_cv_header_stdc = yes; then
5348 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5350 /* end confdefs.h. */
5354 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5355 $EGREP "memchr" >/dev/null 2>&1; then :
5358 ac_cv_header_stdc=no
5364 if test $ac_cv_header_stdc = yes; then
5365 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5367 /* end confdefs.h. */
5371 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5372 $EGREP "free" >/dev/null 2>&1; then :
5375 ac_cv_header_stdc=no
5381 if test $ac_cv_header_stdc = yes; then
5382 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5383 if test "$cross_compiling" = yes; then :
5386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5387 /* end confdefs.h. */
5390 #if ((' ' & 0x0FF) == 0x020)
5391 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5392 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5394 # define ISLOWER(c) \
5395 (('a' <= (c) && (c) <= 'i') \
5396 || ('j' <= (c) && (c) <= 'r') \
5397 || ('s' <= (c) && (c) <= 'z'))
5398 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5401 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5406 for (i = 0; i < 256; i++)
5407 if (XOR (islower (i), ISLOWER (i))
5408 || toupper (i) != TOUPPER (i))
5413 if ac_fn_c_try_run "$LINENO"; then :
5416 ac_cv_header_stdc=no
5418 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5419 conftest.$ac_objext conftest.beam conftest.$ac_ext
5424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5425 $as_echo "$ac_cv_header_stdc" >&6; }
5426 if test $ac_cv_header_stdc = yes; then
5428 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5432 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5433 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5434 inttypes.h stdint.h unistd.h
5436 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5437 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5439 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5440 cat >>confdefs.h <<_ACEOF
5441 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5454 serf_check_major="1"
5455 serf_check_minor="3"
5456 serf_check_patch="4"
5457 serf_check_version="1.3.4"
5460 # Check whether --with-serf was given.
5461 if test "${with_serf+set}" = set; then :
5463 if test "$withval" = "yes" ; then
5465 elif test "$withval" = "no" ; then
5469 serf_prefix="$withval"
5475 if test "$serf_skip" = "no" ; then
5477 { $as_echo "$as_me:${as_lineno-$LINENO}: serf library configuration via pkg-config" >&5
5478 $as_echo "$as_me: serf library configuration via pkg-config" >&6;}
5479 if test -n "$PKG_CONFIG"; then
5480 for serf_major in serf-2 serf-1; do
5481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $serf_major library" >&5
5482 $as_echo_n "checking for $serf_major library... " >&6; }
5483 if test -n "$serf_prefix" ; then
5484 if test -e "$serf_prefix/$serf_major.pc" ; then
5485 serf_pc_arg="$serf_prefix/$serf_major.pc"
5486 elif test -e "$serf_prefix/lib/pkgconfig/$serf_major.pc" ; then
5487 serf_pc_arg="$serf_prefix/lib/pkgconfig/$serf_major.pc"
5489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5490 $as_echo "no" >&6; }
5494 serf_pc_arg="$serf_major"
5496 if $PKG_CONFIG $serf_pc_arg --exists; then
5497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5498 $as_echo "yes" >&6; }
5499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking serf library version" >&5
5500 $as_echo_n "checking serf library version... " >&6; }
5501 SERF_VERSION=`$PKG_CONFIG $serf_pc_arg --modversion`
5502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SERF_VERSION" >&5
5503 $as_echo "$SERF_VERSION" >&6; }
5504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking serf version is suitable" >&5
5505 $as_echo_n "checking serf version is suitable... " >&6; }
5506 if $PKG_CONFIG $serf_pc_arg --atleast-version=$serf_check_version; then
5507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5508 $as_echo "yes" >&6; }
5510 SVN_SERF_INCLUDES=`$PKG_CONFIG $serf_pc_arg --cflags-only-I`
5511 SVN_SERF_LIBS=`$PKG_CONFIG $serf_pc_arg --libs-only-l`
5512 LDFLAGS="$LDFLAGS `$PKG_CONFIG $serf_pc_arg --libs | $SED -e 's/-l[^ ]*//g'`"
5515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5516 $as_echo "no" >&6; }
5517 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Serf version too old: need $serf_check_version" >&5
5518 $as_echo "$as_me: WARNING: Serf version too old: need $serf_check_version" >&2;}
5521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5522 $as_echo "no" >&6; }
5527 if test -n "$serf_prefix" && test "$serf_found" = "no" ; then
5529 { $as_echo "$as_me:${as_lineno-$LINENO}: serf library configuration via prefix" >&5
5530 $as_echo "$as_me: serf library configuration via prefix" >&6;}
5532 for serf_major in serf-2 serf-1; do
5533 if ! test -d $serf_prefix/include/$serf_major; then continue; fi
5534 save_cppflags="$CPPFLAGS"
5535 CPPFLAGS="$CPPFLAGS $SVN_APR_INCLUDES $SVN_APRUTIL_INCLUDES -I$serf_prefix/include/$serf_major"
5536 for ac_header in serf.h
5538 ac_fn_c_check_header_mongrel "$LINENO" "serf.h" "ac_cv_header_serf_h" "$ac_includes_default"
5539 if test "x$ac_cv_header_serf_h" = xyes; then :
5540 cat >>confdefs.h <<_ACEOF
5541 #define HAVE_SERF_H 1
5544 save_ldflags="$LDFLAGS"
5546 input_flags="-L$serf_prefix/lib"
5548 filtered_dirs="/lib /lib64 /usr/lib /usr/lib64"
5549 for flag in $input_flags; do
5551 for dir in $filtered_dirs; do
5552 if test "$flag" = "-L$dir" || test "$flag" = "-L$dir/"; then
5557 if test "$filter" = "no"; then
5558 output_flags="$output_flags $flag"
5561 if test -n "$output_flags"; then
5562 printf "%s" "${output_flags# }"
5565 as_ac_Lib=`$as_echo "ac_cv_lib_$serf_major''_serf_context_create" | $as_tr_sh`
5566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for serf_context_create in -l$serf_major" >&5
5567 $as_echo_n "checking for serf_context_create in -l$serf_major... " >&6; }
5568 if eval \${$as_ac_Lib+:} false; then :
5569 $as_echo_n "(cached) " >&6
5571 ac_check_lib_save_LIBS=$LIBS
5572 LIBS="-l$serf_major $SVN_APRUTIL_LIBS $SVN_APR_LIBS -lz $LIBS"
5573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5574 /* end confdefs.h. */
5576 /* Override any GCC internal prototype to avoid an error.
5577 Use char because int might match the return type of a GCC
5578 builtin and then its argument prototype would still apply. */
5582 char serf_context_create ();
5586 return serf_context_create ();
5591 if ac_fn_c_try_link "$LINENO"; then :
5592 eval "$as_ac_Lib=yes"
5594 eval "$as_ac_Lib=no"
5596 rm -f core conftest.err conftest.$ac_objext \
5597 conftest$ac_exeext conftest.$ac_ext
5598 LIBS=$ac_check_lib_save_LIBS
5600 eval ac_res=\$$as_ac_Lib
5601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5602 $as_echo "$ac_res" >&6; }
5603 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
5605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5606 /* end confdefs.h. */
5615 #if ! SERF_VERSION_AT_LEAST($serf_check_major, $serf_check_minor, $serf_check_patch)
5616 #error Serf version too old: need $serf_check_version
5623 if ac_fn_c_try_compile "$LINENO"; then :
5626 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Serf version too old: need $serf_check_version" >&5
5627 $as_echo "$as_me: WARNING: Serf version too old: need $serf_check_version" >&2;}
5630 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5633 LDFLAGS="$save_ldflags"
5638 CPPFLAGS="$save_cppflags"
5639 test $serf_found = yes && break
5642 if test $serf_found = "yes"; then
5643 SVN_SERF_INCLUDES="-I$serf_prefix/include/$serf_major"
5644 if test -e "$serf_prefix/lib/lib$serf_major.la"; then
5645 SVN_SERF_LIBS="$serf_prefix/lib/lib$serf_major.la"
5647 SVN_SERF_LIBS="-l$serf_major"
5649 input_flags="-L$serf_prefix/lib"
5651 filtered_dirs="/lib /lib64 /usr/lib /usr/lib64"
5652 for flag in $input_flags; do
5654 for dir in $filtered_dirs; do
5655 if test "$flag" = "-L$dir" || test "$flag" = "-L$dir/"; then
5660 if test "$filter" = "no"; then
5661 output_flags="$output_flags $flag"
5664 if test -n "$output_flags"; then
5665 printf "%s" "${output_flags# }"
5673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking was serf enabled" >&5
5674 $as_echo_n "checking was serf enabled... " >&6; }
5675 if test "$serf_found" = "yes"; then
5676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5677 $as_echo "yes" >&6; }
5679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5680 $as_echo "no" >&6; }
5683 echo "An appropriate version of serf could not be found, so libsvn_ra_serf"
5684 echo "will not be built. If you want to build libsvn_ra_serf, please"
5685 echo "install serf $serf_check_version or newer."
5688 if test "$serf_required" = "yes"; then
5689 as_fn_error $? "Serf was explicitly enabled but an appropriate version was not found." "$LINENO" 5
5694 svn_lib_serf=$serf_found
5700 if test "$svn_lib_serf" = "yes"; then
5702 $as_echo "#define SVN_HAVE_SERF 1" >>confdefs.h
5707 apr_memcache_found=no
5710 # Check whether --with-apr_memcache was given.
5711 if test "${with_apr_memcache+set}" = set; then :
5712 withval=$with_apr_memcache;
5713 if test "$withval" = "yes" ; then
5714 as_fn_error $? "--with-apr_memcache requires an argument." "$LINENO" 5
5716 { $as_echo "$as_me:${as_lineno-$LINENO}: looking for separate apr_memcache package" >&5
5717 $as_echo "$as_me: looking for separate apr_memcache package" >&6;}
5718 apr_memcache_prefix=$withval
5719 save_cppflags="$CPPFLAGS"
5720 CPPFLAGS="$CPPFLAGS $SVN_APR_INCLUDES $SVN_APRUTIL_INCLUDES -I$apr_memcache_prefix/include/apr_memcache-0"
5721 ac_fn_c_check_header_mongrel "$LINENO" "apr_memcache.h" "ac_cv_header_apr_memcache_h" "$ac_includes_default"
5722 if test "x$ac_cv_header_apr_memcache_h" = xyes; then :
5724 save_ldflags="$LDFLAGS"
5725 LDFLAGS="$LDFLAGS -L$apr_memcache_prefix/lib"
5726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for apr_memcache_create in -lapr_memcache" >&5
5727 $as_echo_n "checking for apr_memcache_create in -lapr_memcache... " >&6; }
5728 if ${ac_cv_lib_apr_memcache_apr_memcache_create+:} false; then :
5729 $as_echo_n "(cached) " >&6
5731 ac_check_lib_save_LIBS=$LIBS
5732 LIBS="-lapr_memcache $LIBS"
5733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5734 /* end confdefs.h. */
5736 /* Override any GCC internal prototype to avoid an error.
5737 Use char because int might match the return type of a GCC
5738 builtin and then its argument prototype would still apply. */
5742 char apr_memcache_create ();
5746 return apr_memcache_create ();
5751 if ac_fn_c_try_link "$LINENO"; then :
5752 ac_cv_lib_apr_memcache_apr_memcache_create=yes
5754 ac_cv_lib_apr_memcache_apr_memcache_create=no
5756 rm -f core conftest.err conftest.$ac_objext \
5757 conftest$ac_exeext conftest.$ac_ext
5758 LIBS=$ac_check_lib_save_LIBS
5760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_apr_memcache_apr_memcache_create" >&5
5761 $as_echo "$ac_cv_lib_apr_memcache_apr_memcache_create" >&6; }
5762 if test "x$ac_cv_lib_apr_memcache_apr_memcache_create" = xyes; then :
5763 apr_memcache_found="standalone"
5766 LDFLAGS="$save_ldflags"
5770 CPPFLAGS="$save_cppflags"
5775 { $as_echo "$as_me:${as_lineno-$LINENO}: looking for apr_memcache as part of apr-util" >&5
5776 $as_echo "$as_me: looking for apr_memcache as part of apr-util" >&6;}
5777 save_cppflags="$CPPFLAGS"
5778 CPPFLAGS="$CPPFLAGS $SVN_APR_INCLUDES $SVN_APRUTIL_INCLUDES"
5779 ac_fn_c_check_header_mongrel "$LINENO" "apr_memcache.h" "ac_cv_header_apr_memcache_h" "$ac_includes_default"
5780 if test "x$ac_cv_header_apr_memcache_h" = xyes; then :
5782 save_ldflags="$LDFLAGS"
5783 LDFLAGS="$LDFLAGS $SVN_APRUTIL_LIBS"
5784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for apr_memcache_create in -laprutil-1" >&5
5785 $as_echo_n "checking for apr_memcache_create in -laprutil-1... " >&6; }
5786 if ${ac_cv_lib_aprutil_1_apr_memcache_create+:} false; then :
5787 $as_echo_n "(cached) " >&6
5789 ac_check_lib_save_LIBS=$LIBS
5790 LIBS="-laprutil-1 $LIBS"
5791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5792 /* end confdefs.h. */
5794 /* Override any GCC internal prototype to avoid an error.
5795 Use char because int might match the return type of a GCC
5796 builtin and then its argument prototype would still apply. */
5800 char apr_memcache_create ();
5804 return apr_memcache_create ();
5809 if ac_fn_c_try_link "$LINENO"; then :
5810 ac_cv_lib_aprutil_1_apr_memcache_create=yes
5812 ac_cv_lib_aprutil_1_apr_memcache_create=no
5814 rm -f core conftest.err conftest.$ac_objext \
5815 conftest$ac_exeext conftest.$ac_ext
5816 LIBS=$ac_check_lib_save_LIBS
5818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_aprutil_1_apr_memcache_create" >&5
5819 $as_echo "$ac_cv_lib_aprutil_1_apr_memcache_create" >&6; }
5820 if test "x$ac_cv_lib_aprutil_1_apr_memcache_create" = xyes; then :
5821 apr_memcache_found="aprutil"
5824 LDFLAGS="$save_ldflags"
5828 CPPFLAGS="$save_cppflags"
5834 if test $apr_memcache_found = "standalone"; then
5835 SVN_APR_MEMCACHE_INCLUDES="-I$apr_memcache_prefix/include/apr_memcache-0"
5836 SVN_APR_MEMCACHE_LIBS="$apr_memcache_prefix/lib/libapr_memcache.la"
5837 svn_lib_apr_memcache=yes
5838 elif test $apr_memcache_found = "aprutil"; then
5839 SVN_APR_MEMCACHE_INCLUDES=""
5840 SVN_APR_MEMCACHE_LIBS=""
5841 svn_lib_apr_memcache=yes
5842 elif test $apr_memcache_found = "reconfig"; then
5843 svn_lib_apr_memcache=yes
5845 svn_lib_apr_memcache=no
5852 if test "$svn_lib_apr_memcache" = "yes"; then
5854 $as_echo "#define SVN_HAVE_MEMCACHE 1" >>confdefs.h
5858 # Check whether --enable-apache-whitelist was given.
5859 if test "${enable_apache_whitelist+set}" = set; then :
5860 enableval=$enable_apache_whitelist; apache_whitelist_ver=$enableval
5862 apache_whitelist_ver=no
5865 HTTPD_WHITELIST="$apache_whitelist_ver"
5871 HTTPD_WANTED_MMN="20051115"
5873 HTTPD_WHITELIST_VER="$apache_whitelist_ver"
5875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Apache module support via DSO through APXS" >&5
5876 $as_echo_n "checking for Apache module support via DSO through APXS... " >&6; }
5878 # Check whether --with-apxs was given.
5879 if test "${with_apxs+set}" = set; then :
5881 if test "$withval" = "yes"; then
5891 if test -z "$APXS"; then
5892 for i in /usr/local/apache2/bin /usr/local/apache/bin /usr/bin /usr/sbin ; do
5893 if test -f "$i/apxs2"; then
5897 if test -f "$i/apxs"; then
5904 if test -n "$APXS" && test "$APXS" != "no"; then
5905 APXS_INCLUDE="`$APXS -q INCLUDEDIR`"
5906 if test -r $APXS_INCLUDE/mod_dav.h; then
5907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found at $APXS" >&5
5908 $as_echo "found at $APXS" >&6; }
5910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking httpd version" >&5
5911 $as_echo_n "checking httpd version... " >&6; }
5912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5913 /* end confdefs.h. */
5915 #include "$APXS_INCLUDE/ap_mmn.h"
5916 #if AP_MODULE_MAGIC_AT_LEAST($HTTPD_WANTED_MMN,0)
5920 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5921 $EGREP "VERSION_OKAY" >/dev/null 2>&1; then :
5922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: recent enough" >&5
5923 $as_echo "recent enough" >&6; }
5925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: apache too old: mmn must be at least $HTTPD_WANTED_MMN" >&5
5926 $as_echo "apache too old: mmn must be at least $HTTPD_WANTED_MMN" >&6; }
5927 if test "$APXS_EXPLICIT" != ""; then
5928 as_fn_error $? "Apache APXS build explicitly requested, but apache version is too old" "$LINENO" 5
5936 elif test "$APXS_EXPLICIT" != ""; then
5937 as_fn_error $? "no - APXS refers to an old version of Apache
5938 Unable to locate $APXS_INCLUDE/mod_dav.h" "$LINENO" 5
5940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no - Unable to locate $APXS_INCLUDE/mod_dav.h" >&5
5941 $as_echo "no - Unable to locate $APXS_INCLUDE/mod_dav.h" >&6; }
5945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5946 $as_echo "no" >&6; }
5949 # check for some busted versions of mod_dav
5950 # in particular 2.2.25, 2.4.5, and 2.4.6 had the following bugs which are
5951 # troublesome for Subversion:
5952 # PR 55304: https://issues.apache.org/bugzilla/show_bug.cgi?id=55304
5953 # PR 55306: https://issues.apache.org/bugzilla/show_bug.cgi?id=55306
5954 # PR 55397: https://issues.apache.org/bugzilla/show_bug.cgi?id=55397
5955 if test -n "$APXS" && test "$APXS" != "no"; then
5956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking mod_dav version" >&5
5957 $as_echo_n "checking mod_dav version... " >&6; }
5958 HTTPD_MAJOR=`$SED -ne '/^#define AP_SERVER_MAJORVERSION_NUMBER/p' "$APXS_INCLUDE/ap_release.h" | $SED -e 's/^.*NUMBER *//'`
5959 HTTPD_MINOR=`$SED -ne '/^#define AP_SERVER_MINORVERSION_NUMBER/p' "$APXS_INCLUDE/ap_release.h" | $SED -e 's/^.*NUMBER *//'`
5960 HTTPD_PATCH=`$SED -ne '/^#define AP_SERVER_PATCHLEVEL_NUMBER/p' "$APXS_INCLUDE/ap_release.h" | $SED -e 's/^.*NUMBER *//'`
5961 HTTPD_VERSION="${HTTPD_MAJOR}.${HTTPD_MINOR}.${HTTPD_PATCH}"
5962 case "$HTTPD_VERSION" in
5963 $HTTPD_WHITELIST_VER)
5964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: acceptable (whitelist)" >&5
5965 $as_echo "acceptable (whitelist)" >&6; }
5968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: broken" >&5
5969 $as_echo "broken" >&6; }
5970 as_fn_error $? "Apache httpd version $HTTPD_VERSION includes a broken mod_dav; use a newer version of httpd" "$LINENO" 5
5973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: acceptable" >&5
5974 $as_echo "acceptable" >&6; }
5977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unrecognised" >&5
5978 $as_echo "unrecognised" >&6; }
5979 as_fn_error $? "Apache httpd version $HTTPD_VERSION not recognised" "$LINENO" 5
5984 if test -n "$APXS" && test "$APXS" != "no"; then
5985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Apache version is compatible with APR version" >&5
5986 $as_echo_n "checking whether Apache version is compatible with APR version... " >&6; }
5987 apr_major_version="${apr_version%%.*}"
5988 case "$apr_major_version" in
5990 apache_minor_version_wanted_regex="0"
5993 apache_minor_version_wanted_regex="[1-5]"
5996 apache_minor_version_wanted_regex="[3-5]"
5999 as_fn_error $? "unknown APR version" "$LINENO" 5
6002 case $HTTPD_MINOR in
6003 $apache_minor_version_wanted_regex)
6004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6005 $as_echo "yes" >&6; }
6008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6009 $as_echo "no" >&6; }
6010 as_fn_error $? "Apache version $HTTPD_VERSION incompatible with APR version $apr_version" "$LINENO" 5
6016 # Check whether --with-apache-libexecdir was given.
6017 if test "${with_apache_libexecdir+set}" = set; then :
6018 withval=$with_apache_libexecdir; APACHE_LIBEXECDIR="$withval"
6020 APACHE_LIBEXECDIR='no'
6024 INSTALL_APACHE_MODS=false
6025 if test -n "$APXS" && test "$APXS" != "no"; then
6026 APXS_CC="`$APXS -q CC`"
6027 APACHE_INCLUDES="$APACHE_INCLUDES -I$APXS_INCLUDE"
6029 if test "$APACHE_LIBEXECDIR" = 'no'; then
6030 APACHE_LIBEXECDIR="$libexecdir"
6031 elif test "$APACHE_LIBEXECDIR" = 'yes'; then
6032 APACHE_LIBEXECDIR="`$APXS -q libexecdir`"
6035 for ac_header in unistd.h
6037 ac_fn_c_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
6038 if test "x$ac_cv_header_unistd_h" = xyes; then :
6039 cat >>confdefs.h <<_ACEOF
6040 #define HAVE_UNISTD_H 1
6042 for ac_func in getpid
6044 ac_fn_c_check_func "$LINENO" "getpid" "ac_cv_func_getpid"
6045 if test "x$ac_cv_func_getpid" = xyes; then :
6046 cat >>confdefs.h <<_ACEOF
6047 #define HAVE_GETPID 1
6058 MMN_MAJOR=`$SED -ne '/^#define MODULE_MAGIC_NUMBER_MAJOR/p' "$APXS_INCLUDE/ap_mmn.h" | $SED -e 's/^.*MAJOR *//'`
6059 MMN_MINOR=`$SED -ne '/^#define MODULE_MAGIC_NUMBER_MINOR/p' "$APXS_INCLUDE/ap_mmn.h" | $SED -e 's/^.*MINOR *//' | $SED -e 's/ .*//'`
6060 if test "$MMN_MAJOR" = "20120211" && test "$MMN_MINOR" -lt "47" ; then
6061 # This is httpd 2.4 and it doesn't appear to have the required
6062 # API but the installation may have been patched.
6063 # Check whether --enable-broken-httpd-auth was given.
6064 if test "${enable_broken_httpd_auth+set}" = set; then :
6065 enableval=$enable_broken_httpd_auth; broken_httpd_auth=$enableval
6067 broken_httpd_auth=no
6070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ap_some_authn_required" >&5
6071 $as_echo_n "checking for ap_some_authn_required... " >&6; }
6072 old_CPPFLAGS="$CPPFLAGS"
6073 CPPFLAGS="$CPPFLAGS $APACHE_INCLUDES $SVN_APR_INCLUDES"
6074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6075 /* end confdefs.h. */
6076 #include "http_request.h"
6078 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6079 $EGREP "int.*\sap_some_authn_required\s*\(" >/dev/null 2>&1; then :
6080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6081 $as_echo "yes" >&6; }
6084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6085 $as_echo "no" >&6; }
6089 CPPFLAGS="$old_CPPFLAGS"
6090 if test "$working_auth" = "yes" ; then
6092 $as_echo "#define SVN_USE_FORCE_AUTHN 1" >>confdefs.h
6094 elif test "$enable_broken_httpd_auth" = "yes"; then
6095 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ==============================================" >&5
6096 $as_echo "$as_me: WARNING: ==============================================" >&2;}
6097 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Apache httpd $HTTPD_VERSION MMN $MMN_MAJOR.$MMN_MINOR" >&5
6098 $as_echo "$as_me: WARNING: Apache httpd $HTTPD_VERSION MMN $MMN_MAJOR.$MMN_MINOR" >&2;}
6099 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Subversion will be vulnerable to CVE-2015-3184" >&5
6100 $as_echo "$as_me: WARNING: Subversion will be vulnerable to CVE-2015-3184" >&2;}
6101 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ==============================================" >&5
6102 $as_echo "$as_me: WARNING: ==============================================" >&2;}
6104 $as_echo "#define SVN_ALLOW_BROKEN_HTTPD_AUTH 1" >>confdefs.h
6107 as_fn_error $? "Apache httpd $HTTPD_VERSION MMN $MMN_MAJOR.$MMN_MINOR has broken auth (CVE-2015-3184)" "$LINENO" 5
6111 BUILD_APACHE_RULE=apache-mod
6112 INSTALL_APACHE_RULE=install-mods-shared
6113 INSTALL_APACHE_MODS=true
6116 APACHE_LDFLAGS="-shrext .so"
6119 elif test x"$APXS" != x"no"; then
6120 echo "=================================================================="
6121 echo "WARNING: skipping the build of mod_dav_svn"
6122 echo " try using --with-apxs"
6123 echo "=================================================================="
6133 # there aren't any flags that interest us ...
6134 #if test -n "$APXS" && test "$APXS" != "no"; then
6135 # CFLAGS="$CFLAGS `$APXS -q CFLAGS CFLAGS_SHLIB`"
6138 if test -n "$APXS_CC" && test "$APXS_CC" != "$CC" ; then
6139 echo "=================================================================="
6140 echo "WARNING: You have chosen to compile Subversion with a different"
6141 echo " compiler than the one used to compile Apache."
6143 echo " Current compiler: $CC"
6144 echo " Apache's compiler: $APXS_CC"
6146 echo "This could cause some problems."
6147 echo "=================================================================="
6152 SQLITE_MINIMUM_VER="3.8.2"
6153 SQLITE_RECOMMENDED_VER="3.8.11.1"
6154 SQLITE_RECOMMENDED_VER_REL_YEAR="2015"
6155 SQLITE_URL="https://www.sqlite.org/$SQLITE_RECOMMENDED_VER_REL_YEAR/sqlite-amalgamation-$(printf %d%02d%02d%02d $(echo ${SQLITE_RECOMMENDED_VER} | sed -e 's/\./ /g')).zip"
6158 SQLITE_MINIMUM_VER="${SQLITE_MINIMUM_VER}"
6159 SQLITE_RECOMMENDED_VER="${SQLITE_RECOMMENDED_VER}"
6160 SQLITE_URL="${SQLITE_URL}"
6161 SQLITE_PKGNAME="sqlite3"
6165 version_string="$SQLITE_MINIMUM_VER"
6167 major=`expr $version_string : '\([0-9]*\)'`
6168 minor=`expr $version_string : '[0-9]*\.\([0-9]*\)'`
6169 micro=`expr $version_string : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
6170 if test -z "$micro"; then
6173 sqlite_min_ver_num=`expr $major \* 1000000 \
6179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sqlite library" >&5
6180 $as_echo "$as_me: checking sqlite library" >&6;}
6183 # Check whether --with-sqlite was given.
6184 if test "${with_sqlite+set}" = set; then :
6185 withval=$with_sqlite;
6186 if test "$withval" = "yes" ; then
6187 as_fn_error $? "--with-sqlite requires an argument." "$LINENO" 5
6189 sqlite_dir="$withval"
6192 if test -d $sqlite_dir; then
6194 if test -z "$sqlite_dir"; then
6196 sqlite_include="sqlite3.h"
6198 sqlite_dir="$sqlite_dir"
6199 sqlite_include="$sqlite_dir/include/sqlite3.h"
6202 save_CPPFLAGS="$CPPFLAGS"
6203 save_LDFLAGS="$LDFLAGS"
6205 if test ! -z "$sqlite_dir"; then
6206 CPPFLAGS="$CPPFLAGS -I$sqlite_dir/include"
6207 LDFLAGS="$LDFLAGS -L$sqlite_dir/lib"
6210 ac_fn_c_check_header_mongrel "$LINENO" "sqlite3.h" "ac_cv_header_sqlite3_h" "$ac_includes_default"
6211 if test "x$ac_cv_header_sqlite3_h" = xyes; then :
6213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sqlite library version (via header)" >&5
6214 $as_echo_n "checking sqlite library version (via header)... " >&6; }
6215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6216 /* end confdefs.h. */
6218 #include "$sqlite_include"
6219 #if SQLITE_VERSION_NUMBER >= $sqlite_min_ver_num
6223 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6224 $EGREP "SQLITE_VERSION_OKAY" >/dev/null 2>&1; then :
6225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: okay" >&5
6226 $as_echo "okay" >&6; }
6227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite3_close in -lsqlite3" >&5
6228 $as_echo_n "checking for sqlite3_close in -lsqlite3... " >&6; }
6229 if ${ac_cv_lib_sqlite3_sqlite3_close+:} false; then :
6230 $as_echo_n "(cached) " >&6
6232 ac_check_lib_save_LIBS=$LIBS
6233 LIBS="-lsqlite3 $LIBS"
6234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6235 /* end confdefs.h. */
6237 /* Override any GCC internal prototype to avoid an error.
6238 Use char because int might match the return type of a GCC
6239 builtin and then its argument prototype would still apply. */
6243 char sqlite3_close ();
6247 return sqlite3_close ();
6252 if ac_fn_c_try_link "$LINENO"; then :
6253 ac_cv_lib_sqlite3_sqlite3_close=yes
6255 ac_cv_lib_sqlite3_sqlite3_close=no
6257 rm -f core conftest.err conftest.$ac_objext \
6258 conftest$ac_exeext conftest.$ac_ext
6259 LIBS=$ac_check_lib_save_LIBS
6261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_close" >&5
6262 $as_echo "$ac_cv_lib_sqlite3_sqlite3_close" >&6; }
6263 if test "x$ac_cv_lib_sqlite3_sqlite3_close" = xyes; then :
6265 svn_lib_sqlite="yes"
6266 if test -z "$sqlite_dir" -o ! -d "$sqlite_dir"; then
6267 SVN_SQLITE_LIBS="-lsqlite3"
6269 SVN_SQLITE_INCLUDES="-I$sqlite_dir/include"
6271 input_flags="-L$sqlite_dir/lib -lsqlite3"
6273 filtered_dirs="/lib /lib64 /usr/lib /usr/lib64"
6274 for flag in $input_flags; do
6276 for dir in $filtered_dirs; do
6277 if test "$flag" = "-L$dir" || test "$flag" = "-L$dir/"; then
6282 if test "$filter" = "no"; then
6283 output_flags="$output_flags $flag"
6286 if test -n "$output_flags"; then
6287 printf "%s" "${output_flags# }"
6295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported SQLite version" >&5
6296 $as_echo "unsupported SQLite version" >&6; }
6305 CPPFLAGS="$save_CPPFLAGS"
6306 LDFLAGS="$save_LDFLAGS"
6310 sqlite_amalg="$sqlite_dir"
6311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sqlite amalgamation" >&5
6312 $as_echo_n "checking sqlite amalgamation... " >&6; }
6313 if test ! -e $sqlite_amalg; then
6314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6315 $as_echo "no" >&6; }
6317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6318 $as_echo "yes" >&6; }
6319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sqlite amalgamation file version" >&5
6320 $as_echo_n "checking sqlite amalgamation file version... " >&6; }
6321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6322 /* end confdefs.h. */
6324 #include "$sqlite_amalg"
6325 #if SQLITE_VERSION_NUMBER >= $sqlite_min_ver_num
6329 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6330 $EGREP "SQLITE_VERSION_OKAY" >/dev/null 2>&1; then :
6331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: amalgamation found and is okay" >&5
6332 $as_echo "amalgamation found and is okay" >&6; }
6335 beos* | mingw* | pw32* | cegcc* | cygwin*)
6336 svn_sqlite_dso_ldflags=
6340 # if libdl is installed we need to link against it
6341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
6342 $as_echo_n "checking for dlopen in -ldl... " >&6; }
6343 if ${ac_cv_lib_dl_dlopen+:} false; then :
6344 $as_echo_n "(cached) " >&6
6346 ac_check_lib_save_LIBS=$LIBS
6348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6349 /* end confdefs.h. */
6351 /* Override any GCC internal prototype to avoid an error.
6352 Use char because int might match the return type of a GCC
6353 builtin and then its argument prototype would still apply. */
6366 if ac_fn_c_try_link "$LINENO"; then :
6367 ac_cv_lib_dl_dlopen=yes
6369 ac_cv_lib_dl_dlopen=no
6371 rm -f core conftest.err conftest.$ac_objext \
6372 conftest$ac_exeext conftest.$ac_ext
6373 LIBS=$ac_check_lib_save_LIBS
6375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
6376 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
6377 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
6378 lt_cv_dlopen="dlopen" svn_sqlite_dso_ldflags="-ldl"
6381 svn_sqlite_dso_ldflags=
6388 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
6389 if test "x$ac_cv_func_shl_load" = xyes; then :
6390 svn_sqlite_dso_ldflags=
6392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
6393 $as_echo_n "checking for shl_load in -ldld... " >&6; }
6394 if ${ac_cv_lib_dld_shl_load+:} false; then :
6395 $as_echo_n "(cached) " >&6
6397 ac_check_lib_save_LIBS=$LIBS
6399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6400 /* end confdefs.h. */
6402 /* Override any GCC internal prototype to avoid an error.
6403 Use char because int might match the return type of a GCC
6404 builtin and then its argument prototype would still apply. */
6417 if ac_fn_c_try_link "$LINENO"; then :
6418 ac_cv_lib_dld_shl_load=yes
6420 ac_cv_lib_dld_shl_load=no
6422 rm -f core conftest.err conftest.$ac_objext \
6423 conftest$ac_exeext conftest.$ac_ext
6424 LIBS=$ac_check_lib_save_LIBS
6426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
6427 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
6428 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
6429 svn_sqlite_dso_ldflags="-ldld"
6431 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
6432 if test "x$ac_cv_func_dlopen" = xyes; then :
6433 svn_sqlite_dso_ldflags=
6435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
6436 $as_echo_n "checking for dlopen in -ldl... " >&6; }
6437 if ${ac_cv_lib_dl_dlopen+:} false; then :
6438 $as_echo_n "(cached) " >&6
6440 ac_check_lib_save_LIBS=$LIBS
6442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6443 /* end confdefs.h. */
6445 /* Override any GCC internal prototype to avoid an error.
6446 Use char because int might match the return type of a GCC
6447 builtin and then its argument prototype would still apply. */
6460 if ac_fn_c_try_link "$LINENO"; then :
6461 ac_cv_lib_dl_dlopen=yes
6463 ac_cv_lib_dl_dlopen=no
6465 rm -f core conftest.err conftest.$ac_objext \
6466 conftest$ac_exeext conftest.$ac_ext
6467 LIBS=$ac_check_lib_save_LIBS
6469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
6470 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
6471 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
6472 svn_sqlite_dso_ldflags="-ldl"
6474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
6475 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
6476 if ${ac_cv_lib_svld_dlopen+:} false; then :
6477 $as_echo_n "(cached) " >&6
6479 ac_check_lib_save_LIBS=$LIBS
6481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6482 /* end confdefs.h. */
6484 /* Override any GCC internal prototype to avoid an error.
6485 Use char because int might match the return type of a GCC
6486 builtin and then its argument prototype would still apply. */
6499 if ac_fn_c_try_link "$LINENO"; then :
6500 ac_cv_lib_svld_dlopen=yes
6502 ac_cv_lib_svld_dlopen=no
6504 rm -f core conftest.err conftest.$ac_objext \
6505 conftest$ac_exeext conftest.$ac_ext
6506 LIBS=$ac_check_lib_save_LIBS
6508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
6509 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
6510 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
6511 svn_sqlite_dso_ldflags="-lsvld"
6513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
6514 $as_echo_n "checking for dld_link in -ldld... " >&6; }
6515 if ${ac_cv_lib_dld_dld_link+:} false; then :
6516 $as_echo_n "(cached) " >&6
6518 ac_check_lib_save_LIBS=$LIBS
6520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6521 /* end confdefs.h. */
6523 /* Override any GCC internal prototype to avoid an error.
6524 Use char because int might match the return type of a GCC
6525 builtin and then its argument prototype would still apply. */
6538 if ac_fn_c_try_link "$LINENO"; then :
6539 ac_cv_lib_dld_dld_link=yes
6541 ac_cv_lib_dld_dld_link=no
6543 rm -f core conftest.err conftest.$ac_objext \
6544 conftest$ac_exeext conftest.$ac_ext
6545 LIBS=$ac_check_lib_save_LIBS
6547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
6548 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
6549 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
6550 svn_sqlite_dso_ldflags="-ldld"
6571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking additional libraries for sqlite" >&5
6572 $as_echo_n "checking additional libraries for sqlite... " >&6; }
6573 if test -n "$svn_sqlite_dso_ldflags"; then
6574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${svn_sqlite_dso_ldflags}" >&5
6575 $as_echo "${svn_sqlite_dso_ldflags}" >&6; }
6577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6578 $as_echo "none" >&6; }
6582 $as_echo "#define SVN_SQLITE_INLINE 1" >>confdefs.h
6584 SVN_SQLITE_INCLUDES="-I`dirname $sqlite_amalg`"
6585 if test -n "$svn_sqlite_dso_ldflags"; then
6586 SVN_SQLITE_LIBS="$svn_sqlite_dso_ldflags -lpthread"
6588 SVN_SQLITE_LIBS="-lpthread"
6590 svn_lib_sqlite="yes"
6592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported amalgamation SQLite version" >&5
6593 $as_echo "unsupported amalgamation SQLite version" >&6; }
6601 if test -z "$svn_lib_sqlite"; then
6602 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no suitable sqlite found in $sqlite_dir" >&5
6603 $as_echo "$as_me: WARNING: no suitable sqlite found in $sqlite_dir" >&2;}
6606 echo "An appropriate version of sqlite could not be found. We recommmend"
6607 echo "${SQLITE_RECOMMENDED_VER}, but require at least ${SQLITE_MINIMUM_VER}."
6608 echo "Please either install a newer sqlite on this system"
6612 echo "get the sqlite ${SQLITE_RECOMMENDED_VER} amalgamation from:"
6613 echo " ${SQLITE_URL}"
6614 echo "unpack the archive using unzip and rename the resulting"
6615 echo "directory to:"
6616 echo "$abs_srcdir/sqlite-amalgamation"
6617 if test x"$abs_srcdir" != x"$abs_builddir"; then
6619 echo "$abs_builddir/sqlite-amalgamation"
6622 as_fn_error $? "Subversion requires SQLite" "$LINENO" 5
6629 sqlite_amalg="$abs_srcdir/sqlite-amalgamation/sqlite3.c"
6630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sqlite amalgamation" >&5
6631 $as_echo_n "checking sqlite amalgamation... " >&6; }
6632 if test ! -e $sqlite_amalg; then
6633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6634 $as_echo "no" >&6; }
6636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6637 $as_echo "yes" >&6; }
6638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sqlite amalgamation file version" >&5
6639 $as_echo_n "checking sqlite amalgamation file version... " >&6; }
6640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6641 /* end confdefs.h. */
6643 #include "$sqlite_amalg"
6644 #if SQLITE_VERSION_NUMBER >= $sqlite_min_ver_num
6648 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6649 $EGREP "SQLITE_VERSION_OKAY" >/dev/null 2>&1; then :
6650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: amalgamation found and is okay" >&5
6651 $as_echo "amalgamation found and is okay" >&6; }
6654 beos* | mingw* | pw32* | cegcc* | cygwin*)
6655 svn_sqlite_dso_ldflags=
6659 # if libdl is installed we need to link against it
6660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
6661 $as_echo_n "checking for dlopen in -ldl... " >&6; }
6662 if ${ac_cv_lib_dl_dlopen+:} false; then :
6663 $as_echo_n "(cached) " >&6
6665 ac_check_lib_save_LIBS=$LIBS
6667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6668 /* end confdefs.h. */
6670 /* Override any GCC internal prototype to avoid an error.
6671 Use char because int might match the return type of a GCC
6672 builtin and then its argument prototype would still apply. */
6685 if ac_fn_c_try_link "$LINENO"; then :
6686 ac_cv_lib_dl_dlopen=yes
6688 ac_cv_lib_dl_dlopen=no
6690 rm -f core conftest.err conftest.$ac_objext \
6691 conftest$ac_exeext conftest.$ac_ext
6692 LIBS=$ac_check_lib_save_LIBS
6694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
6695 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
6696 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
6697 lt_cv_dlopen="dlopen" svn_sqlite_dso_ldflags="-ldl"
6700 svn_sqlite_dso_ldflags=
6707 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
6708 if test "x$ac_cv_func_shl_load" = xyes; then :
6709 svn_sqlite_dso_ldflags=
6711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
6712 $as_echo_n "checking for shl_load in -ldld... " >&6; }
6713 if ${ac_cv_lib_dld_shl_load+:} false; then :
6714 $as_echo_n "(cached) " >&6
6716 ac_check_lib_save_LIBS=$LIBS
6718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6719 /* end confdefs.h. */
6721 /* Override any GCC internal prototype to avoid an error.
6722 Use char because int might match the return type of a GCC
6723 builtin and then its argument prototype would still apply. */
6736 if ac_fn_c_try_link "$LINENO"; then :
6737 ac_cv_lib_dld_shl_load=yes
6739 ac_cv_lib_dld_shl_load=no
6741 rm -f core conftest.err conftest.$ac_objext \
6742 conftest$ac_exeext conftest.$ac_ext
6743 LIBS=$ac_check_lib_save_LIBS
6745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
6746 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
6747 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
6748 svn_sqlite_dso_ldflags="-ldld"
6750 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
6751 if test "x$ac_cv_func_dlopen" = xyes; then :
6752 svn_sqlite_dso_ldflags=
6754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
6755 $as_echo_n "checking for dlopen in -ldl... " >&6; }
6756 if ${ac_cv_lib_dl_dlopen+:} false; then :
6757 $as_echo_n "(cached) " >&6
6759 ac_check_lib_save_LIBS=$LIBS
6761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6762 /* end confdefs.h. */
6764 /* Override any GCC internal prototype to avoid an error.
6765 Use char because int might match the return type of a GCC
6766 builtin and then its argument prototype would still apply. */
6779 if ac_fn_c_try_link "$LINENO"; then :
6780 ac_cv_lib_dl_dlopen=yes
6782 ac_cv_lib_dl_dlopen=no
6784 rm -f core conftest.err conftest.$ac_objext \
6785 conftest$ac_exeext conftest.$ac_ext
6786 LIBS=$ac_check_lib_save_LIBS
6788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
6789 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
6790 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
6791 svn_sqlite_dso_ldflags="-ldl"
6793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
6794 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
6795 if ${ac_cv_lib_svld_dlopen+:} false; then :
6796 $as_echo_n "(cached) " >&6
6798 ac_check_lib_save_LIBS=$LIBS
6800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6801 /* end confdefs.h. */
6803 /* Override any GCC internal prototype to avoid an error.
6804 Use char because int might match the return type of a GCC
6805 builtin and then its argument prototype would still apply. */
6818 if ac_fn_c_try_link "$LINENO"; then :
6819 ac_cv_lib_svld_dlopen=yes
6821 ac_cv_lib_svld_dlopen=no
6823 rm -f core conftest.err conftest.$ac_objext \
6824 conftest$ac_exeext conftest.$ac_ext
6825 LIBS=$ac_check_lib_save_LIBS
6827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
6828 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
6829 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
6830 svn_sqlite_dso_ldflags="-lsvld"
6832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
6833 $as_echo_n "checking for dld_link in -ldld... " >&6; }
6834 if ${ac_cv_lib_dld_dld_link+:} false; then :
6835 $as_echo_n "(cached) " >&6
6837 ac_check_lib_save_LIBS=$LIBS
6839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6840 /* end confdefs.h. */
6842 /* Override any GCC internal prototype to avoid an error.
6843 Use char because int might match the return type of a GCC
6844 builtin and then its argument prototype would still apply. */
6857 if ac_fn_c_try_link "$LINENO"; then :
6858 ac_cv_lib_dld_dld_link=yes
6860 ac_cv_lib_dld_dld_link=no
6862 rm -f core conftest.err conftest.$ac_objext \
6863 conftest$ac_exeext conftest.$ac_ext
6864 LIBS=$ac_check_lib_save_LIBS
6866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
6867 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
6868 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
6869 svn_sqlite_dso_ldflags="-ldld"
6890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking additional libraries for sqlite" >&5
6891 $as_echo_n "checking additional libraries for sqlite... " >&6; }
6892 if test -n "$svn_sqlite_dso_ldflags"; then
6893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${svn_sqlite_dso_ldflags}" >&5
6894 $as_echo "${svn_sqlite_dso_ldflags}" >&6; }
6896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6897 $as_echo "none" >&6; }
6901 $as_echo "#define SVN_SQLITE_INLINE 1" >>confdefs.h
6903 SVN_SQLITE_INCLUDES="-I`dirname $sqlite_amalg`"
6904 if test -n "$svn_sqlite_dso_ldflags"; then
6905 SVN_SQLITE_LIBS="$svn_sqlite_dso_ldflags -lpthread"
6907 SVN_SQLITE_LIBS="-lpthread"
6909 svn_lib_sqlite="yes"
6911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported amalgamation SQLite version" >&5
6912 $as_echo "unsupported amalgamation SQLite version" >&6; }
6919 if test -z "$svn_lib_sqlite"; then
6921 sqlite_amalg="$abs_builddir/sqlite-amalgamation/sqlite3.c"
6922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sqlite amalgamation" >&5
6923 $as_echo_n "checking sqlite amalgamation... " >&6; }
6924 if test ! -e $sqlite_amalg; then
6925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6926 $as_echo "no" >&6; }
6928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6929 $as_echo "yes" >&6; }
6930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sqlite amalgamation file version" >&5
6931 $as_echo_n "checking sqlite amalgamation file version... " >&6; }
6932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6933 /* end confdefs.h. */
6935 #include "$sqlite_amalg"
6936 #if SQLITE_VERSION_NUMBER >= $sqlite_min_ver_num
6940 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6941 $EGREP "SQLITE_VERSION_OKAY" >/dev/null 2>&1; then :
6942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: amalgamation found and is okay" >&5
6943 $as_echo "amalgamation found and is okay" >&6; }
6946 beos* | mingw* | pw32* | cegcc* | cygwin*)
6947 svn_sqlite_dso_ldflags=
6951 # if libdl is installed we need to link against it
6952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
6953 $as_echo_n "checking for dlopen in -ldl... " >&6; }
6954 if ${ac_cv_lib_dl_dlopen+:} false; then :
6955 $as_echo_n "(cached) " >&6
6957 ac_check_lib_save_LIBS=$LIBS
6959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6960 /* end confdefs.h. */
6962 /* Override any GCC internal prototype to avoid an error.
6963 Use char because int might match the return type of a GCC
6964 builtin and then its argument prototype would still apply. */
6977 if ac_fn_c_try_link "$LINENO"; then :
6978 ac_cv_lib_dl_dlopen=yes
6980 ac_cv_lib_dl_dlopen=no
6982 rm -f core conftest.err conftest.$ac_objext \
6983 conftest$ac_exeext conftest.$ac_ext
6984 LIBS=$ac_check_lib_save_LIBS
6986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
6987 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
6988 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
6989 lt_cv_dlopen="dlopen" svn_sqlite_dso_ldflags="-ldl"
6992 svn_sqlite_dso_ldflags=
6999 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
7000 if test "x$ac_cv_func_shl_load" = xyes; then :
7001 svn_sqlite_dso_ldflags=
7003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
7004 $as_echo_n "checking for shl_load in -ldld... " >&6; }
7005 if ${ac_cv_lib_dld_shl_load+:} false; then :
7006 $as_echo_n "(cached) " >&6
7008 ac_check_lib_save_LIBS=$LIBS
7010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7011 /* end confdefs.h. */
7013 /* Override any GCC internal prototype to avoid an error.
7014 Use char because int might match the return type of a GCC
7015 builtin and then its argument prototype would still apply. */
7028 if ac_fn_c_try_link "$LINENO"; then :
7029 ac_cv_lib_dld_shl_load=yes
7031 ac_cv_lib_dld_shl_load=no
7033 rm -f core conftest.err conftest.$ac_objext \
7034 conftest$ac_exeext conftest.$ac_ext
7035 LIBS=$ac_check_lib_save_LIBS
7037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
7038 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
7039 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
7040 svn_sqlite_dso_ldflags="-ldld"
7042 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
7043 if test "x$ac_cv_func_dlopen" = xyes; then :
7044 svn_sqlite_dso_ldflags=
7046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
7047 $as_echo_n "checking for dlopen in -ldl... " >&6; }
7048 if ${ac_cv_lib_dl_dlopen+:} false; then :
7049 $as_echo_n "(cached) " >&6
7051 ac_check_lib_save_LIBS=$LIBS
7053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7054 /* end confdefs.h. */
7056 /* Override any GCC internal prototype to avoid an error.
7057 Use char because int might match the return type of a GCC
7058 builtin and then its argument prototype would still apply. */
7071 if ac_fn_c_try_link "$LINENO"; then :
7072 ac_cv_lib_dl_dlopen=yes
7074 ac_cv_lib_dl_dlopen=no
7076 rm -f core conftest.err conftest.$ac_objext \
7077 conftest$ac_exeext conftest.$ac_ext
7078 LIBS=$ac_check_lib_save_LIBS
7080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
7081 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
7082 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
7083 svn_sqlite_dso_ldflags="-ldl"
7085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
7086 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
7087 if ${ac_cv_lib_svld_dlopen+:} false; then :
7088 $as_echo_n "(cached) " >&6
7090 ac_check_lib_save_LIBS=$LIBS
7092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7093 /* end confdefs.h. */
7095 /* Override any GCC internal prototype to avoid an error.
7096 Use char because int might match the return type of a GCC
7097 builtin and then its argument prototype would still apply. */
7110 if ac_fn_c_try_link "$LINENO"; then :
7111 ac_cv_lib_svld_dlopen=yes
7113 ac_cv_lib_svld_dlopen=no
7115 rm -f core conftest.err conftest.$ac_objext \
7116 conftest$ac_exeext conftest.$ac_ext
7117 LIBS=$ac_check_lib_save_LIBS
7119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
7120 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
7121 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
7122 svn_sqlite_dso_ldflags="-lsvld"
7124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
7125 $as_echo_n "checking for dld_link in -ldld... " >&6; }
7126 if ${ac_cv_lib_dld_dld_link+:} false; then :
7127 $as_echo_n "(cached) " >&6
7129 ac_check_lib_save_LIBS=$LIBS
7131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7132 /* end confdefs.h. */
7134 /* Override any GCC internal prototype to avoid an error.
7135 Use char because int might match the return type of a GCC
7136 builtin and then its argument prototype would still apply. */
7149 if ac_fn_c_try_link "$LINENO"; then :
7150 ac_cv_lib_dld_dld_link=yes
7152 ac_cv_lib_dld_dld_link=no
7154 rm -f core conftest.err conftest.$ac_objext \
7155 conftest$ac_exeext conftest.$ac_ext
7156 LIBS=$ac_check_lib_save_LIBS
7158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
7159 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
7160 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
7161 svn_sqlite_dso_ldflags="-ldld"
7182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking additional libraries for sqlite" >&5
7183 $as_echo_n "checking additional libraries for sqlite... " >&6; }
7184 if test -n "$svn_sqlite_dso_ldflags"; then
7185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${svn_sqlite_dso_ldflags}" >&5
7186 $as_echo "${svn_sqlite_dso_ldflags}" >&6; }
7188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
7189 $as_echo "none" >&6; }
7193 $as_echo "#define SVN_SQLITE_INLINE 1" >>confdefs.h
7195 SVN_SQLITE_INCLUDES="-I`dirname $sqlite_amalg`"
7196 if test -n "$svn_sqlite_dso_ldflags"; then
7197 SVN_SQLITE_LIBS="$svn_sqlite_dso_ldflags -lpthread"
7199 SVN_SQLITE_LIBS="-lpthread"
7201 svn_lib_sqlite="yes"
7203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported amalgamation SQLite version" >&5
7204 $as_echo "unsupported amalgamation SQLite version" >&6; }
7212 if test -z "$svn_lib_sqlite"; then
7216 sqlite_include="sqlite3.h"
7219 sqlite_include="/include/sqlite3.h"
7222 save_CPPFLAGS="$CPPFLAGS"
7223 save_LDFLAGS="$LDFLAGS"
7225 if test ! -z ""; then
7226 CPPFLAGS="$CPPFLAGS -I$sqlite_dir/include"
7227 LDFLAGS="$LDFLAGS -L$sqlite_dir/lib"
7230 ac_fn_c_check_header_mongrel "$LINENO" "sqlite3.h" "ac_cv_header_sqlite3_h" "$ac_includes_default"
7231 if test "x$ac_cv_header_sqlite3_h" = xyes; then :
7233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sqlite library version (via header)" >&5
7234 $as_echo_n "checking sqlite library version (via header)... " >&6; }
7235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7236 /* end confdefs.h. */
7238 #include "$sqlite_include"
7239 #if SQLITE_VERSION_NUMBER >= $sqlite_min_ver_num
7243 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7244 $EGREP "SQLITE_VERSION_OKAY" >/dev/null 2>&1; then :
7245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: okay" >&5
7246 $as_echo "okay" >&6; }
7247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite3_close in -lsqlite3" >&5
7248 $as_echo_n "checking for sqlite3_close in -lsqlite3... " >&6; }
7249 if ${ac_cv_lib_sqlite3_sqlite3_close+:} false; then :
7250 $as_echo_n "(cached) " >&6
7252 ac_check_lib_save_LIBS=$LIBS
7253 LIBS="-lsqlite3 $LIBS"
7254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7255 /* end confdefs.h. */
7257 /* Override any GCC internal prototype to avoid an error.
7258 Use char because int might match the return type of a GCC
7259 builtin and then its argument prototype would still apply. */
7263 char sqlite3_close ();
7267 return sqlite3_close ();
7272 if ac_fn_c_try_link "$LINENO"; then :
7273 ac_cv_lib_sqlite3_sqlite3_close=yes
7275 ac_cv_lib_sqlite3_sqlite3_close=no
7277 rm -f core conftest.err conftest.$ac_objext \
7278 conftest$ac_exeext conftest.$ac_ext
7279 LIBS=$ac_check_lib_save_LIBS
7281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_close" >&5
7282 $as_echo "$ac_cv_lib_sqlite3_sqlite3_close" >&6; }
7283 if test "x$ac_cv_lib_sqlite3_sqlite3_close" = xyes; then :
7285 svn_lib_sqlite="yes"
7286 if test -z "$sqlite_dir" -o ! -d "$sqlite_dir"; then
7287 SVN_SQLITE_LIBS="-lsqlite3"
7289 SVN_SQLITE_INCLUDES="-I$sqlite_dir/include"
7291 input_flags="-L$sqlite_dir/lib -lsqlite3"
7293 filtered_dirs="/lib /lib64 /usr/lib /usr/lib64"
7294 for flag in $input_flags; do
7296 for dir in $filtered_dirs; do
7297 if test "$flag" = "-L$dir" || test "$flag" = "-L$dir/"; then
7302 if test "$filter" = "no"; then
7303 output_flags="$output_flags $flag"
7306 if test -n "$output_flags"; then
7307 printf "%s" "${output_flags# }"
7315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported SQLite version" >&5
7316 $as_echo "unsupported SQLite version" >&6; }
7325 CPPFLAGS="$save_CPPFLAGS"
7326 LDFLAGS="$save_LDFLAGS"
7330 if test -z "$svn_lib_sqlite"; then
7332 if test -n "$PKG_CONFIG"; then
7333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sqlite library version (via pkg-config)" >&5
7334 $as_echo_n "checking sqlite library version (via pkg-config)... " >&6; }
7335 sqlite_version=`$PKG_CONFIG $SQLITE_PKGNAME --modversion --silence-errors`
7337 if test -n "$sqlite_version"; then
7339 version_string="$sqlite_version"
7341 major=`expr $version_string : '\([0-9]*\)'`
7342 minor=`expr $version_string : '[0-9]*\.\([0-9]*\)'`
7343 micro=`expr $version_string : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
7344 if test -z "$micro"; then
7347 sqlite_ver_num=`expr $major \* 1000000 \
7352 if test "$sqlite_ver_num" -ge "$sqlite_min_ver_num"; then
7353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sqlite_version" >&5
7354 $as_echo "$sqlite_version" >&6; }
7355 svn_lib_sqlite="yes"
7356 SVN_SQLITE_INCLUDES="`$PKG_CONFIG $SQLITE_PKGNAME --cflags`"
7357 SVN_SQLITE_LIBS="`$PKG_CONFIG $SQLITE_PKGNAME --libs`"
7359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none or unsupported $sqlite_version" >&5
7360 $as_echo "none or unsupported $sqlite_version" >&6; }
7365 if test -z "$svn_lib_sqlite"; then
7366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7367 $as_echo "no" >&6; }
7372 if test -z "$svn_lib_sqlite"; then
7375 echo "An appropriate version of sqlite could not be found. We recommmend"
7376 echo "${SQLITE_RECOMMENDED_VER}, but require at least ${SQLITE_MINIMUM_VER}."
7377 echo "Please either install a newer sqlite on this system"
7381 echo "get the sqlite ${SQLITE_RECOMMENDED_VER} amalgamation from:"
7382 echo " ${SQLITE_URL}"
7383 echo "unpack the archive using unzip and rename the resulting"
7384 echo "directory to:"
7385 echo "$abs_srcdir/sqlite-amalgamation"
7386 if test x"$abs_srcdir" != x"$abs_builddir"; then
7388 echo "$abs_builddir/sqlite-amalgamation"
7391 as_fn_error $? "Subversion requires SQLite" "$LINENO" 5
7402 # Check whether --enable-sqlite-compatibility-version was given.
7403 if test "${enable_sqlite_compatibility_version+set}" = set; then :
7404 enableval=$enable_sqlite_compatibility_version; sqlite_compat_ver=$enableval
7406 sqlite_compat_ver=no
7410 if test -n "$sqlite_compat_ver" && test "$sqlite_compat_ver" != no; then
7412 version_string="$sqlite_compat_ver"
7414 major=`expr $version_string : '\([0-9]*\)'`
7415 minor=`expr $version_string : '[0-9]*\.\([0-9]*\)'`
7416 micro=`expr $version_string : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
7417 if test -z "$micro"; then
7420 sqlite_compat_ver_num=`expr $major \* 1000000 \
7424 CFLAGS="-DSVN_SQLITE_MIN_VERSION='\"$sqlite_compat_ver\"' $CFLAGS"
7425 CFLAGS="-DSVN_SQLITE_MIN_VERSION_NUMBER=$sqlite_compat_ver_num $CFLAGS"
7429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler provides atomic builtins" >&5
7430 $as_echo_n "checking whether the compiler provides atomic builtins... " >&6; }
7431 if ${svn_cv_atomic_builtins+:} false; then :
7432 $as_echo_n "(cached) " >&6
7434 if test "$cross_compiling" = yes; then :
7435 svn_cv_atomic_builtins=no
7437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7438 /* end confdefs.h. */
7442 unsigned long long val = 1010, tmp, *mem = &val;
7444 if (__sync_fetch_and_add(&val, 1010) != 1010 || val != 2020)
7449 if (__sync_fetch_and_sub(mem, 1010) != tmp || val != 1010)
7452 if (__sync_sub_and_fetch(&val, 1010) != 0 || val != 0)
7457 if (__sync_val_compare_and_swap(mem, 0, tmp) != 0 || val != tmp)
7460 if (__sync_lock_test_and_set(&val, 4040) != 3030)
7465 if (__sync_val_compare_and_swap(&mem, &tmp, &val) != &tmp)
7468 __sync_synchronize();
7476 if ac_fn_c_try_run "$LINENO"; then :
7477 svn_cv_atomic_builtins=yes
7479 svn_cv_atomic_builtins=no
7481 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7482 conftest.$ac_objext conftest.beam conftest.$ac_ext
7486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $svn_cv_atomic_builtins" >&5
7487 $as_echo "$svn_cv_atomic_builtins" >&6; }
7489 if test "$svn_cv_atomic_builtins" = "yes"; then
7491 $as_echo "#define SVN_HAS_ATOMIC_BUILTINS 1" >>confdefs.h
7496 if test "${bindir}" = '${exec_prefix}/bin'; then
7497 if test "${exec_prefix}" = "NONE"; then
7498 if test "${prefix}" = "NONE"; then
7499 SVN_BINDIR="${ac_default_prefix}/bin"
7501 SVN_BINDIR="${prefix}/bin"
7504 SVN_BINDIR="${exec_prefix}/bin"
7507 SVN_BINDIR="${bindir}"
7510 SVN_BINDIR="`eval echo ${SVN_BINDIR}`"
7514 cat >>confdefs.h <<_ACEOF
7515 #define SVN_BINDIR "${SVN_BINDIR}"
7519 localedir='${datadir}/locale'
7522 if test "${prefix}" = "NONE" \
7523 && ( test "${datadir}" = '${prefix}/share' \
7524 || ( test "${datadir}" = '${datarootdir}' \
7525 && test "${datarootdir}" = '${prefix}/share' ) ); then
7526 exp_localedir='${ac_default_prefix}/share/locale'
7528 exp_localedir=$localedir
7532 svn_cur=""${exp_localedir}""
7533 while test "x${svn_cur}" != "x${svn_last}";
7535 svn_last="${svn_cur}"
7536 svn_cur=`eval "echo ${svn_cur}"`
7538 svn_localedir="${svn_cur}"
7541 cat >>confdefs.h <<_ACEOF
7542 #define SVN_LOCALE_DIR "${svn_localedir}"
7546 { $as_echo "$as_me:${as_lineno-$LINENO}: configuring libtool now" >&5
7547 $as_echo "$as_me: configuring libtool now" >&6;}
7550 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
7551 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
7556 macro_version='2.4.6'
7557 macro_revision='2.4.6'
7571 ltmain=$ac_aux_dir/ltmain.sh
7573 # Backslashify metacharacters that are still active within
7574 # double-quoted strings.
7575 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7577 # Same as above, but do not quote variable references.
7578 double_quote_subst='s/\(["`\\]\)/\\\1/g'
7580 # Sed substitution to delay expansion of an escaped shell variable in a
7581 # double_quote_subst'ed string.
7582 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7584 # Sed substitution to delay expansion of an escaped single quote.
7585 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7587 # Sed substitution to avoid accidental globbing in evaled expressions
7588 no_glob_subst='s/\*/\\\*/g'
7590 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7591 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
7592 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
7594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
7595 $as_echo_n "checking how to print strings... " >&6; }
7596 # Test print first, because it will be a builtin if present.
7597 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
7598 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
7600 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
7603 # Use this function as a fallback that always works.
7604 func_fallback_echo ()
7606 eval 'cat <<_LTECHO_EOF
7610 ECHO='func_fallback_echo'
7613 # func_echo_all arg...
7614 # Invoke $ECHO with all args, space-separated.
7621 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
7622 $as_echo "printf" >&6; } ;;
7623 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
7624 $as_echo "print -r" >&6; } ;;
7625 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
7626 $as_echo "cat" >&6; } ;;
7642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
7643 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
7644 if ${ac_cv_path_SED+:} false; then :
7645 $as_echo_n "(cached) " >&6
7647 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
7648 for ac_i in 1 2 3 4 5 6 7; do
7649 ac_script="$ac_script$as_nl$ac_script"
7651 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
7652 { ac_script=; unset ac_script;}
7653 if test -z "$SED"; then
7654 ac_path_SED_found=false
7655 # Loop through the user's path and test for each of PROGNAME-LIST
7656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7660 test -z "$as_dir" && as_dir=.
7661 for ac_prog in sed gsed; do
7662 for ac_exec_ext in '' $ac_executable_extensions; do
7663 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
7664 as_fn_executable_p "$ac_path_SED" || continue
7665 # Check for GNU ac_path_SED and select it if it is found.
7666 # Check for GNU $ac_path_SED
7667 case `"$ac_path_SED" --version 2>&1` in
7669 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
7672 $as_echo_n 0123456789 >"conftest.in"
7675 cat "conftest.in" "conftest.in" >"conftest.tmp"
7676 mv "conftest.tmp" "conftest.in"
7677 cp "conftest.in" "conftest.nl"
7678 $as_echo '' >> "conftest.nl"
7679 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
7680 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7681 as_fn_arith $ac_count + 1 && ac_count=$as_val
7682 if test $ac_count -gt ${ac_path_SED_max-0}; then
7683 # Best one so far, save it but keep looking for a better one
7684 ac_cv_path_SED="$ac_path_SED"
7685 ac_path_SED_max=$ac_count
7687 # 10*(2^10) chars as input seems more than enough
7688 test $ac_count -gt 10 && break
7690 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7693 $ac_path_SED_found && break 3
7698 if test -z "$ac_cv_path_SED"; then
7699 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
7706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
7707 $as_echo "$ac_cv_path_SED" >&6; }
7708 SED="$ac_cv_path_SED"
7711 test -z "$SED" && SED=sed
7712 Xsed="$SED -e 1s/^X//"
7724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
7725 $as_echo_n "checking for fgrep... " >&6; }
7726 if ${ac_cv_path_FGREP+:} false; then :
7727 $as_echo_n "(cached) " >&6
7729 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
7730 then ac_cv_path_FGREP="$GREP -F"
7732 if test -z "$FGREP"; then
7733 ac_path_FGREP_found=false
7734 # Loop through the user's path and test for each of PROGNAME-LIST
7735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7736 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7739 test -z "$as_dir" && as_dir=.
7740 for ac_prog in fgrep; do
7741 for ac_exec_ext in '' $ac_executable_extensions; do
7742 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
7743 as_fn_executable_p "$ac_path_FGREP" || continue
7744 # Check for GNU ac_path_FGREP and select it if it is found.
7745 # Check for GNU $ac_path_FGREP
7746 case `"$ac_path_FGREP" --version 2>&1` in
7748 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
7751 $as_echo_n 0123456789 >"conftest.in"
7754 cat "conftest.in" "conftest.in" >"conftest.tmp"
7755 mv "conftest.tmp" "conftest.in"
7756 cp "conftest.in" "conftest.nl"
7757 $as_echo 'FGREP' >> "conftest.nl"
7758 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
7759 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7760 as_fn_arith $ac_count + 1 && ac_count=$as_val
7761 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
7762 # Best one so far, save it but keep looking for a better one
7763 ac_cv_path_FGREP="$ac_path_FGREP"
7764 ac_path_FGREP_max=$ac_count
7766 # 10*(2^10) chars as input seems more than enough
7767 test $ac_count -gt 10 && break
7769 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7772 $ac_path_FGREP_found && break 3
7777 if test -z "$ac_cv_path_FGREP"; then
7778 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7781 ac_cv_path_FGREP=$FGREP
7786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
7787 $as_echo "$ac_cv_path_FGREP" >&6; }
7788 FGREP="$ac_cv_path_FGREP"
7791 test -z "$GREP" && GREP=grep
7811 # Check whether --with-gnu-ld was given.
7812 if test "${with_gnu_ld+set}" = set; then :
7813 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
7819 if test yes = "$GCC"; then
7820 # Check if gcc -print-prog-name=ld gives a path.
7821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7822 $as_echo_n "checking for ld used by $CC... " >&6; }
7825 # gcc leaves a trailing carriage return, which upsets mingw
7826 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7828 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7831 # Accept absolute paths.
7833 re_direlt='/[^/][^/]*/\.\./'
7834 # Canonicalize the pathname of ld
7835 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
7836 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
7837 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
7839 test -z "$LD" && LD=$ac_prog
7842 # If it fails, then pretend we aren't using GCC.
7846 # If it is relative, then search for the first ld in PATH.
7850 elif test yes = "$with_gnu_ld"; then
7851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7852 $as_echo_n "checking for GNU ld... " >&6; }
7854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7855 $as_echo_n "checking for non-GNU ld... " >&6; }
7857 if ${lt_cv_path_LD+:} false; then :
7858 $as_echo_n "(cached) " >&6
7860 if test -z "$LD"; then
7861 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
7862 for ac_dir in $PATH; do
7864 test -z "$ac_dir" && ac_dir=.
7865 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7866 lt_cv_path_LD=$ac_dir/$ac_prog
7867 # Check to see if the program is GNU ld. I'd rather use --version,
7868 # but apparently some variants of GNU ld only accept -v.
7869 # Break only if it was the GNU/non-GNU ld that we prefer.
7870 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7871 *GNU* | *'with BFD'*)
7872 test no != "$with_gnu_ld" && break
7875 test yes != "$with_gnu_ld" && break
7882 lt_cv_path_LD=$LD # Let the user override the test with a path.
7887 if test -n "$LD"; then
7888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7889 $as_echo "$LD" >&6; }
7891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7892 $as_echo "no" >&6; }
7894 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
7895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7896 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7897 if ${lt_cv_prog_gnu_ld+:} false; then :
7898 $as_echo_n "(cached) " >&6
7900 # I'd rather use --version here, but apparently some GNU lds only accept -v.
7901 case `$LD -v 2>&1 </dev/null` in
7902 *GNU* | *'with BFD'*)
7903 lt_cv_prog_gnu_ld=yes
7906 lt_cv_prog_gnu_ld=no
7910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
7911 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
7912 with_gnu_ld=$lt_cv_prog_gnu_ld
7922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
7923 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
7924 if ${lt_cv_path_NM+:} false; then :
7925 $as_echo_n "(cached) " >&6
7927 if test -n "$NM"; then
7928 # Let the user override the test.
7931 lt_nm_to_check=${ac_tool_prefix}nm
7932 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
7933 lt_nm_to_check="$lt_nm_to_check nm"
7935 for lt_tmp_nm in $lt_nm_to_check; do
7936 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
7937 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
7939 test -z "$ac_dir" && ac_dir=.
7940 tmp_nm=$ac_dir/$lt_tmp_nm
7941 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
7942 # Check to see if the nm accepts a BSD-compat flag.
7943 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
7944 # nm: unknown option "B" ignored
7945 # Tru64's nm complains that /dev/null is an invalid object file
7946 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
7948 mingw*) lt_bad_file=conftest.nm/nofile ;;
7949 *) lt_bad_file=/dev/null ;;
7951 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
7952 *$lt_bad_file* | *'Invalid file or object type'*)
7953 lt_cv_path_NM="$tmp_nm -B"
7957 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
7959 lt_cv_path_NM="$tmp_nm -p"
7963 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
7964 continue # so that we can try to find one that supports BSD flags
7973 : ${lt_cv_path_NM=no}
7976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
7977 $as_echo "$lt_cv_path_NM" >&6; }
7978 if test no != "$lt_cv_path_NM"; then
7981 # Didn't find any BSD compatible name lister, look for dumpbin.
7982 if test -n "$DUMPBIN"; then :
7983 # Let the user override the test.
7985 if test -n "$ac_tool_prefix"; then
7986 for ac_prog in dumpbin "link -dump"
7988 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7989 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7991 $as_echo_n "checking for $ac_word... " >&6; }
7992 if ${ac_cv_prog_DUMPBIN+:} false; then :
7993 $as_echo_n "(cached) " >&6
7995 if test -n "$DUMPBIN"; then
7996 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
7998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8002 test -z "$as_dir" && as_dir=.
8003 for ac_exec_ext in '' $ac_executable_extensions; do
8004 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8005 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
8006 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8015 DUMPBIN=$ac_cv_prog_DUMPBIN
8016 if test -n "$DUMPBIN"; then
8017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
8018 $as_echo "$DUMPBIN" >&6; }
8020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8021 $as_echo "no" >&6; }
8025 test -n "$DUMPBIN" && break
8028 if test -z "$DUMPBIN"; then
8029 ac_ct_DUMPBIN=$DUMPBIN
8030 for ac_prog in dumpbin "link -dump"
8032 # Extract the first word of "$ac_prog", so it can be a program name with args.
8033 set dummy $ac_prog; ac_word=$2
8034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8035 $as_echo_n "checking for $ac_word... " >&6; }
8036 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
8037 $as_echo_n "(cached) " >&6
8039 if test -n "$ac_ct_DUMPBIN"; then
8040 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
8042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8046 test -z "$as_dir" && as_dir=.
8047 for ac_exec_ext in '' $ac_executable_extensions; do
8048 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8049 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
8050 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8059 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
8060 if test -n "$ac_ct_DUMPBIN"; then
8061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
8062 $as_echo "$ac_ct_DUMPBIN" >&6; }
8064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8065 $as_echo "no" >&6; }
8069 test -n "$ac_ct_DUMPBIN" && break
8072 if test "x$ac_ct_DUMPBIN" = x; then
8075 case $cross_compiling:$ac_tool_warned in
8077 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8078 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8079 ac_tool_warned=yes ;;
8081 DUMPBIN=$ac_ct_DUMPBIN
8085 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
8087 DUMPBIN="$DUMPBIN -symbols -headers"
8095 if test : != "$DUMPBIN"; then
8099 test -z "$NM" && NM=nm
8106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
8107 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
8108 if ${lt_cv_nm_interface+:} false; then :
8109 $as_echo_n "(cached) " >&6
8111 lt_cv_nm_interface="BSD nm"
8112 echo "int some_variable = 0;" > conftest.$ac_ext
8113 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
8114 (eval "$ac_compile" 2>conftest.err)
8115 cat conftest.err >&5
8116 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
8117 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
8118 cat conftest.err >&5
8119 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
8120 cat conftest.out >&5
8121 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
8122 lt_cv_nm_interface="MS dumpbin"
8126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
8127 $as_echo "$lt_cv_nm_interface" >&6; }
8129 # find the maximum length of command line arguments
8130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
8131 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
8132 if ${lt_cv_sys_max_cmd_len+:} false; then :
8133 $as_echo_n "(cached) " >&6
8140 # On DJGPP, this test can blow up pretty badly due to problems in libc
8141 # (any single argument exceeding 2000 bytes causes a buffer overrun
8142 # during glob expansion). Even if it were fixed, the result of this
8143 # check would be larger than it should be.
8144 lt_cv_sys_max_cmd_len=12288; # 12K is about right
8148 # Under GNU Hurd, this test is not required because there is
8149 # no limit to the length of command line arguments.
8150 # Libtool will interpret -1 as no limit whatsoever
8151 lt_cv_sys_max_cmd_len=-1;
8154 cygwin* | mingw* | cegcc*)
8155 # On Win9x/ME, this test blows up -- it succeeds, but takes
8156 # about 5 minutes as the teststring grows exponentially.
8157 # Worse, since 9x/ME are not pre-emptively multitasking,
8158 # you end up with a "frozen" computer, even though with patience
8159 # the test eventually succeeds (with a max line length of 256k).
8160 # Instead, let's just punt: use the minimum linelength reported by
8161 # all of the supported platforms: 8192 (on NT/2K/XP).
8162 lt_cv_sys_max_cmd_len=8192;
8166 # On MiNT this can take a long time and run out of memory.
8167 lt_cv_sys_max_cmd_len=8192;
8171 # On AmigaOS with pdksh, this test takes hours, literally.
8172 # So we just punt and use a minimum line length of 8192.
8173 lt_cv_sys_max_cmd_len=8192;
8176 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
8177 # This has been around since 386BSD, at least. Likely further.
8178 if test -x /sbin/sysctl; then
8179 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
8180 elif test -x /usr/sbin/sysctl; then
8181 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
8183 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
8185 # And add a safety zone
8186 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
8187 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
8191 # We know the value 262144 and hardcode it with a safety zone (like BSD)
8192 lt_cv_sys_max_cmd_len=196608
8196 # The test takes a long time on OS/2.
8197 lt_cv_sys_max_cmd_len=8192
8201 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
8202 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
8203 # nice to cause kernel panics so lets avoid the loop below.
8204 # First set a reasonable default.
8205 lt_cv_sys_max_cmd_len=16384
8207 if test -x /sbin/sysconfig; then
8208 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
8209 *1*) lt_cv_sys_max_cmd_len=-1 ;;
8214 lt_cv_sys_max_cmd_len=102400
8216 sysv5* | sco5v6* | sysv4.2uw2*)
8217 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
8218 if test -n "$kargmax"; then
8219 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
8221 lt_cv_sys_max_cmd_len=32768
8225 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
8226 if test -n "$lt_cv_sys_max_cmd_len" && \
8227 test undefined != "$lt_cv_sys_max_cmd_len"; then
8228 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
8229 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
8231 # Make teststring a little bigger before we do anything with it.
8232 # a 1K string should be a reasonable start.
8233 for i in 1 2 3 4 5 6 7 8; do
8234 teststring=$teststring$teststring
8236 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
8237 # If test is not a shell built-in, we'll probably end up computing a
8238 # maximum length that is only half of the actual maximum length, but
8240 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
8241 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
8242 test 17 != "$i" # 1/2 MB should be enough
8245 teststring=$teststring$teststring
8247 # Only check the string length outside the loop.
8248 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
8250 # Add a significant safety factor because C++ compilers can tack on
8251 # massive amounts of additional arguments before passing them to the
8252 # linker. It appears as though 1/2 is a usable value.
8253 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
8260 if test -n "$lt_cv_sys_max_cmd_len"; then
8261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
8262 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
8264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
8265 $as_echo "none" >&6; }
8267 max_cmd_len=$lt_cv_sys_max_cmd_len
8278 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
8288 # test EBCDIC or ASCII
8289 case `echo X|tr X '\101'` in
8290 A) # ASCII based system
8291 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
8292 lt_SP2NL='tr \040 \012'
8293 lt_NL2SP='tr \015\012 \040\040'
8295 *) # EBCDIC based system
8296 lt_SP2NL='tr \100 \n'
8297 lt_NL2SP='tr \r\n \100\100'
8309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
8310 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
8311 if ${lt_cv_to_host_file_cmd+:} false; then :
8312 $as_echo_n "(cached) " >&6
8317 *-*-mingw* ) # actually msys
8318 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
8321 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
8323 * ) # otherwise, assume *nix
8324 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
8330 *-*-mingw* ) # actually msys
8331 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
8334 lt_cv_to_host_file_cmd=func_convert_file_noop
8336 * ) # otherwise, assume *nix
8337 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
8341 * ) # unhandled hosts (and "normal" native builds)
8342 lt_cv_to_host_file_cmd=func_convert_file_noop
8348 to_host_file_cmd=$lt_cv_to_host_file_cmd
8349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
8350 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
8356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
8357 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
8358 if ${lt_cv_to_tool_file_cmd+:} false; then :
8359 $as_echo_n "(cached) " >&6
8361 #assume ordinary cross tools, or native build.
8362 lt_cv_to_tool_file_cmd=func_convert_file_noop
8366 *-*-mingw* ) # actually msys
8367 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
8375 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
8376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
8377 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
8383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
8384 $as_echo_n "checking for $LD option to reload object files... " >&6; }
8385 if ${lt_cv_ld_reload_flag+:} false; then :
8386 $as_echo_n "(cached) " >&6
8388 lt_cv_ld_reload_flag='-r'
8390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
8391 $as_echo "$lt_cv_ld_reload_flag" >&6; }
8392 reload_flag=$lt_cv_ld_reload_flag
8393 case $reload_flag in
8395 *) reload_flag=" $reload_flag" ;;
8397 reload_cmds='$LD$reload_flag -o $output$reload_objs'
8399 cygwin* | mingw* | pw32* | cegcc*)
8400 if test yes != "$GCC"; then
8405 if test yes = "$GCC"; then
8406 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
8408 reload_cmds='$LD$reload_flag -o $output$reload_objs'
8421 if test -n "$ac_tool_prefix"; then
8422 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
8423 set dummy ${ac_tool_prefix}objdump; ac_word=$2
8424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8425 $as_echo_n "checking for $ac_word... " >&6; }
8426 if ${ac_cv_prog_OBJDUMP+:} false; then :
8427 $as_echo_n "(cached) " >&6
8429 if test -n "$OBJDUMP"; then
8430 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
8432 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8436 test -z "$as_dir" && as_dir=.
8437 for ac_exec_ext in '' $ac_executable_extensions; do
8438 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8439 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
8440 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8449 OBJDUMP=$ac_cv_prog_OBJDUMP
8450 if test -n "$OBJDUMP"; then
8451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
8452 $as_echo "$OBJDUMP" >&6; }
8454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8455 $as_echo "no" >&6; }
8460 if test -z "$ac_cv_prog_OBJDUMP"; then
8461 ac_ct_OBJDUMP=$OBJDUMP
8462 # Extract the first word of "objdump", so it can be a program name with args.
8463 set dummy objdump; ac_word=$2
8464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8465 $as_echo_n "checking for $ac_word... " >&6; }
8466 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
8467 $as_echo_n "(cached) " >&6
8469 if test -n "$ac_ct_OBJDUMP"; then
8470 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
8472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8476 test -z "$as_dir" && as_dir=.
8477 for ac_exec_ext in '' $ac_executable_extensions; do
8478 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8479 ac_cv_prog_ac_ct_OBJDUMP="objdump"
8480 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8489 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
8490 if test -n "$ac_ct_OBJDUMP"; then
8491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
8492 $as_echo "$ac_ct_OBJDUMP" >&6; }
8494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8495 $as_echo "no" >&6; }
8498 if test "x$ac_ct_OBJDUMP" = x; then
8501 case $cross_compiling:$ac_tool_warned in
8503 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8504 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8505 ac_tool_warned=yes ;;
8507 OBJDUMP=$ac_ct_OBJDUMP
8510 OBJDUMP="$ac_cv_prog_OBJDUMP"
8513 test -z "$OBJDUMP" && OBJDUMP=objdump
8523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
8524 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
8525 if ${lt_cv_deplibs_check_method+:} false; then :
8526 $as_echo_n "(cached) " >&6
8528 lt_cv_file_magic_cmd='$MAGIC_CMD'
8529 lt_cv_file_magic_test_file=
8530 lt_cv_deplibs_check_method='unknown'
8531 # Need to set the preceding variable on all platforms that support
8532 # interlibrary dependencies.
8533 # 'none' -- dependencies not supported.
8534 # 'unknown' -- same as none, but documents that we really don't know.
8535 # 'pass_all' -- all dependencies passed with no checks.
8536 # 'test_compile' -- check by making test program.
8537 # 'file_magic [[regex]]' -- check by looking for files in library path
8538 # that responds to the $file_magic_cmd with a given extended regex.
8539 # If you have 'file' or equivalent on your system and you're not sure
8540 # whether 'pass_all' will *always* work, you probably want this one.
8544 lt_cv_deplibs_check_method=pass_all
8548 lt_cv_deplibs_check_method=pass_all
8552 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
8553 lt_cv_file_magic_cmd='/usr/bin/file -L'
8554 lt_cv_file_magic_test_file=/shlib/libc.so
8558 # func_win32_libid is a shell function defined in ltmain.sh
8559 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
8560 lt_cv_file_magic_cmd='func_win32_libid'
8564 # Base MSYS/MinGW do not provide the 'file' command needed by
8565 # func_win32_libid shell function, so use a weaker test based on 'objdump',
8566 # unless we find 'file', for example because we are cross-compiling.
8567 if ( file / ) >/dev/null 2>&1; then
8568 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
8569 lt_cv_file_magic_cmd='func_win32_libid'
8571 # Keep this pattern in sync with the one in func_win32_libid.
8572 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
8573 lt_cv_file_magic_cmd='$OBJDUMP -f'
8578 # use the weaker test based on 'objdump'. See mingw*.
8579 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
8580 lt_cv_file_magic_cmd='$OBJDUMP -f'
8583 darwin* | rhapsody*)
8584 lt_cv_deplibs_check_method=pass_all
8587 freebsd* | dragonfly*)
8588 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8591 # Not sure whether the presence of OpenBSD here was a mistake.
8592 # Let's accept both of them until this is cleared up.
8593 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
8594 lt_cv_file_magic_cmd=/usr/bin/file
8595 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
8599 lt_cv_deplibs_check_method=pass_all
8604 lt_cv_deplibs_check_method=pass_all
8607 hpux10.20* | hpux11*)
8608 lt_cv_file_magic_cmd=/usr/bin/file
8611 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
8612 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
8615 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
8616 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
8619 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
8620 lt_cv_file_magic_test_file=/usr/lib/libc.sl
8626 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
8627 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
8630 irix5* | irix6* | nonstopux*)
8632 *-32|*"-32 ") libmagic=32-bit;;
8633 *-n32|*"-n32 ") libmagic=N32;;
8634 *-64|*"-64 ") libmagic=64-bit;;
8635 *) libmagic=never-match;;
8637 lt_cv_deplibs_check_method=pass_all
8640 # This must be glibc/ELF.
8641 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8642 lt_cv_deplibs_check_method=pass_all
8646 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8647 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8649 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
8654 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
8655 lt_cv_file_magic_cmd=/usr/bin/file
8656 lt_cv_file_magic_test_file=/usr/lib/libnls.so
8660 lt_cv_deplibs_check_method=pass_all
8664 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
8665 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
8667 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8671 osf3* | osf4* | osf5*)
8672 lt_cv_deplibs_check_method=pass_all
8676 lt_cv_deplibs_check_method=pass_all
8680 lt_cv_deplibs_check_method=pass_all
8683 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8684 lt_cv_deplibs_check_method=pass_all
8688 case $host_vendor in
8690 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]'
8691 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
8694 lt_cv_deplibs_check_method=pass_all
8697 lt_cv_file_magic_cmd='/bin/file'
8698 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
8701 lt_cv_file_magic_cmd='/bin/file'
8702 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
8703 lt_cv_file_magic_test_file=/lib/libc.so
8706 lt_cv_deplibs_check_method=pass_all
8709 lt_cv_deplibs_check_method=pass_all
8715 lt_cv_deplibs_check_method=pass_all
8718 lt_cv_deplibs_check_method=pass_all
8723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
8724 $as_echo "$lt_cv_deplibs_check_method" >&6; }
8728 if test "$build" = "$host"; then
8731 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
8734 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
8740 file_magic_cmd=$lt_cv_file_magic_cmd
8741 deplibs_check_method=$lt_cv_deplibs_check_method
8742 test -z "$deplibs_check_method" && deplibs_check_method=unknown
8765 if test -n "$ac_tool_prefix"; then
8766 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
8767 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
8768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8769 $as_echo_n "checking for $ac_word... " >&6; }
8770 if ${ac_cv_prog_DLLTOOL+:} false; then :
8771 $as_echo_n "(cached) " >&6
8773 if test -n "$DLLTOOL"; then
8774 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8780 test -z "$as_dir" && as_dir=.
8781 for ac_exec_ext in '' $ac_executable_extensions; do
8782 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8783 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
8784 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8793 DLLTOOL=$ac_cv_prog_DLLTOOL
8794 if test -n "$DLLTOOL"; then
8795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8796 $as_echo "$DLLTOOL" >&6; }
8798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8799 $as_echo "no" >&6; }
8804 if test -z "$ac_cv_prog_DLLTOOL"; then
8805 ac_ct_DLLTOOL=$DLLTOOL
8806 # Extract the first word of "dlltool", so it can be a program name with args.
8807 set dummy dlltool; ac_word=$2
8808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8809 $as_echo_n "checking for $ac_word... " >&6; }
8810 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
8811 $as_echo_n "(cached) " >&6
8813 if test -n "$ac_ct_DLLTOOL"; then
8814 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
8816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8820 test -z "$as_dir" && as_dir=.
8821 for ac_exec_ext in '' $ac_executable_extensions; do
8822 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8823 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
8824 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8833 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
8834 if test -n "$ac_ct_DLLTOOL"; then
8835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
8836 $as_echo "$ac_ct_DLLTOOL" >&6; }
8838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8839 $as_echo "no" >&6; }
8842 if test "x$ac_ct_DLLTOOL" = x; then
8845 case $cross_compiling:$ac_tool_warned in
8847 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8848 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8849 ac_tool_warned=yes ;;
8851 DLLTOOL=$ac_ct_DLLTOOL
8854 DLLTOOL="$ac_cv_prog_DLLTOOL"
8857 test -z "$DLLTOOL" && DLLTOOL=dlltool
8868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
8869 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
8870 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
8871 $as_echo_n "(cached) " >&6
8873 lt_cv_sharedlib_from_linklib_cmd='unknown'
8876 cygwin* | mingw* | pw32* | cegcc*)
8877 # two different shell functions defined in ltmain.sh;
8878 # decide which one to use based on capabilities of $DLLTOOL
8879 case `$DLLTOOL --help 2>&1` in
8880 *--identify-strict*)
8881 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
8884 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
8889 # fallback: assume linklib IS sharedlib
8890 lt_cv_sharedlib_from_linklib_cmd=$ECHO
8895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
8896 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
8897 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
8898 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
8906 if test -n "$ac_tool_prefix"; then
8909 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8910 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8912 $as_echo_n "checking for $ac_word... " >&6; }
8913 if ${ac_cv_prog_AR+:} false; then :
8914 $as_echo_n "(cached) " >&6
8916 if test -n "$AR"; then
8917 ac_cv_prog_AR="$AR" # Let the user override the test.
8919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8923 test -z "$as_dir" && as_dir=.
8924 for ac_exec_ext in '' $ac_executable_extensions; do
8925 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8926 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
8927 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8937 if test -n "$AR"; then
8938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8939 $as_echo "$AR" >&6; }
8941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8942 $as_echo "no" >&6; }
8946 test -n "$AR" && break
8949 if test -z "$AR"; then
8953 # Extract the first word of "$ac_prog", so it can be a program name with args.
8954 set dummy $ac_prog; ac_word=$2
8955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8956 $as_echo_n "checking for $ac_word... " >&6; }
8957 if ${ac_cv_prog_ac_ct_AR+:} false; then :
8958 $as_echo_n "(cached) " >&6
8960 if test -n "$ac_ct_AR"; then
8961 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8963 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8967 test -z "$as_dir" && as_dir=.
8968 for ac_exec_ext in '' $ac_executable_extensions; do
8969 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8970 ac_cv_prog_ac_ct_AR="$ac_prog"
8971 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8980 ac_ct_AR=$ac_cv_prog_ac_ct_AR
8981 if test -n "$ac_ct_AR"; then
8982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
8983 $as_echo "$ac_ct_AR" >&6; }
8985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8986 $as_echo "no" >&6; }
8990 test -n "$ac_ct_AR" && break
8993 if test "x$ac_ct_AR" = x; then
8996 case $cross_compiling:$ac_tool_warned in
8998 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8999 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9000 ac_tool_warned=yes ;;
9019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
9020 $as_echo_n "checking for archiver @FILE support... " >&6; }
9021 if ${lt_cv_ar_at_file+:} false; then :
9022 $as_echo_n "(cached) " >&6
9025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9026 /* end confdefs.h. */
9036 if ac_fn_c_try_compile "$LINENO"; then :
9037 echo conftest.$ac_objext > conftest.lst
9038 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
9039 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
9040 (eval $lt_ar_try) 2>&5
9042 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9043 test $ac_status = 0; }
9044 if test 0 -eq "$ac_status"; then
9045 # Ensure the archiver fails upon bogus file names.
9046 rm -f conftest.$ac_objext libconftest.a
9047 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
9048 (eval $lt_ar_try) 2>&5
9050 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9051 test $ac_status = 0; }
9052 if test 0 -ne "$ac_status"; then
9056 rm -f conftest.* libconftest.a
9059 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
9063 $as_echo "$lt_cv_ar_at_file" >&6; }
9065 if test no = "$lt_cv_ar_at_file"; then
9068 archiver_list_spec=$lt_cv_ar_at_file
9077 if test -n "$ac_tool_prefix"; then
9078 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
9079 set dummy ${ac_tool_prefix}strip; ac_word=$2
9080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9081 $as_echo_n "checking for $ac_word... " >&6; }
9082 if ${ac_cv_prog_STRIP+:} false; then :
9083 $as_echo_n "(cached) " >&6
9085 if test -n "$STRIP"; then
9086 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9092 test -z "$as_dir" && as_dir=.
9093 for ac_exec_ext in '' $ac_executable_extensions; do
9094 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9095 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
9096 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9105 STRIP=$ac_cv_prog_STRIP
9106 if test -n "$STRIP"; then
9107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9108 $as_echo "$STRIP" >&6; }
9110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9111 $as_echo "no" >&6; }
9116 if test -z "$ac_cv_prog_STRIP"; then
9118 # Extract the first word of "strip", so it can be a program name with args.
9119 set dummy strip; ac_word=$2
9120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9121 $as_echo_n "checking for $ac_word... " >&6; }
9122 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
9123 $as_echo_n "(cached) " >&6
9125 if test -n "$ac_ct_STRIP"; then
9126 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
9128 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9132 test -z "$as_dir" && as_dir=.
9133 for ac_exec_ext in '' $ac_executable_extensions; do
9134 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9135 ac_cv_prog_ac_ct_STRIP="strip"
9136 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9145 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
9146 if test -n "$ac_ct_STRIP"; then
9147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
9148 $as_echo "$ac_ct_STRIP" >&6; }
9150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9151 $as_echo "no" >&6; }
9154 if test "x$ac_ct_STRIP" = x; then
9157 case $cross_compiling:$ac_tool_warned in
9159 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9160 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9161 ac_tool_warned=yes ;;
9166 STRIP="$ac_cv_prog_STRIP"
9169 test -z "$STRIP" && STRIP=:
9176 if test -n "$ac_tool_prefix"; then
9177 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
9178 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
9179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9180 $as_echo_n "checking for $ac_word... " >&6; }
9181 if ${ac_cv_prog_RANLIB+:} false; then :
9182 $as_echo_n "(cached) " >&6
9184 if test -n "$RANLIB"; then
9185 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9191 test -z "$as_dir" && as_dir=.
9192 for ac_exec_ext in '' $ac_executable_extensions; do
9193 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9194 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
9195 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9204 RANLIB=$ac_cv_prog_RANLIB
9205 if test -n "$RANLIB"; then
9206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9207 $as_echo "$RANLIB" >&6; }
9209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9210 $as_echo "no" >&6; }
9215 if test -z "$ac_cv_prog_RANLIB"; then
9216 ac_ct_RANLIB=$RANLIB
9217 # Extract the first word of "ranlib", so it can be a program name with args.
9218 set dummy ranlib; ac_word=$2
9219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9220 $as_echo_n "checking for $ac_word... " >&6; }
9221 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
9222 $as_echo_n "(cached) " >&6
9224 if test -n "$ac_ct_RANLIB"; then
9225 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
9227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9231 test -z "$as_dir" && as_dir=.
9232 for ac_exec_ext in '' $ac_executable_extensions; do
9233 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9234 ac_cv_prog_ac_ct_RANLIB="ranlib"
9235 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9244 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
9245 if test -n "$ac_ct_RANLIB"; then
9246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
9247 $as_echo "$ac_ct_RANLIB" >&6; }
9249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9250 $as_echo "no" >&6; }
9253 if test "x$ac_ct_RANLIB" = x; then
9256 case $cross_compiling:$ac_tool_warned in
9258 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9259 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9260 ac_tool_warned=yes ;;
9262 RANLIB=$ac_ct_RANLIB
9265 RANLIB="$ac_cv_prog_RANLIB"
9268 test -z "$RANLIB" && RANLIB=:
9275 # Determine commands to create old-style static archives.
9276 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
9277 old_postinstall_cmds='chmod 644 $oldlib'
9278 old_postuninstall_cmds=
9280 if test -n "$RANLIB"; then
9283 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
9286 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
9289 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
9294 lock_old_archive_extraction=yes ;;
9296 lock_old_archive_extraction=no ;;
9319 for ac_prog in gawk mawk nawk awk
9321 # Extract the first word of "$ac_prog", so it can be a program name with args.
9322 set dummy $ac_prog; ac_word=$2
9323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9324 $as_echo_n "checking for $ac_word... " >&6; }
9325 if ${ac_cv_prog_AWK+:} false; then :
9326 $as_echo_n "(cached) " >&6
9328 if test -n "$AWK"; then
9329 ac_cv_prog_AWK="$AWK" # Let the user override the test.
9331 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9335 test -z "$as_dir" && as_dir=.
9336 for ac_exec_ext in '' $ac_executable_extensions; do
9337 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9338 ac_cv_prog_AWK="$ac_prog"
9339 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9349 if test -n "$AWK"; then
9350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
9351 $as_echo "$AWK" >&6; }
9353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9354 $as_echo "no" >&6; }
9358 test -n "$AWK" && break
9379 # If no C compiler was specified, use CC.
9382 # If no C compiler flags were specified, use CFLAGS.
9383 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9385 # Allow CC to be a program name with arguments.
9389 # Check for command to grab the raw symbol name followed by C symbol from nm.
9390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
9391 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
9392 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
9393 $as_echo_n "(cached) " >&6
9396 # These are sane defaults that work on at least a few old systems.
9397 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
9399 # Character class describing NM global symbol codes.
9400 symcode='[BCDEGRST]'
9402 # Regexp to match symbols that can be accessed directly from C.
9403 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9405 # Define system-specific variables.
9410 cygwin* | mingw* | pw32* | cegcc*)
9411 symcode='[ABCDGISTW]'
9414 if test ia64 = "$host_cpu"; then
9415 symcode='[ABCDEGRST]'
9419 symcode='[BCDEGRST]'
9422 symcode='[BCDEGQRST]'
9433 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9441 # If we're using GNU nm, then use its standard symbol codes.
9442 case `$NM -V 2>&1` in
9443 *GNU* | *'with BFD'*)
9444 symcode='[ABCDGIRSTW]' ;;
9447 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9448 # Gets list of data symbols to import.
9449 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
9450 # Adjust the below global symbol transforms to fixup imported variables.
9451 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
9452 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
9453 lt_c_name_lib_hook="\
9454 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
9455 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
9457 # Disable hooks by default.
9458 lt_cv_sys_global_symbol_to_import=
9464 # Transform an extracted symbol line into a proper C declaration.
9465 # Some systems (esp. on ia64) link data and code symbols differently,
9466 # so use this general approach.
9467 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
9469 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
9470 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
9472 # Transform an extracted symbol line into symbol name and symbol address
9473 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
9475 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
9476 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
9478 # Transform an extracted symbol line into symbol name with lib prefix and
9480 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
9481 $lt_c_name_lib_hook\
9482 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
9483 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
9484 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
9486 # Handle CRLF in mingw tool chain
9490 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9494 # Try without a prefix underscore, then with it.
9495 for ac_symprfx in "" "_"; do
9497 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9498 symxfrm="\\1 $ac_symprfx\\2 \\2"
9500 # Write the raw and C identifiers.
9501 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9502 # Fake it for dumpbin and say T for any non-static function,
9503 # D for any global variable and I for any imported variable.
9504 # Also find C++ and __fastcall symbols from MSVC++,
9505 # which start with @ or ?.
9506 lt_cv_sys_global_symbol_pipe="$AWK '"\
9507 " {last_section=section; section=\$ 3};"\
9508 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
9509 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
9510 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
9511 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
9512 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
9513 " \$ 0!~/External *\|/{next};"\
9514 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
9515 " {if(hide[section]) next};"\
9516 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
9517 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
9518 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
9519 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
9520 " ' prfx=^$ac_symprfx"
9522 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9524 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
9526 # Check to see that the pipe works correctly.
9530 cat > conftest.$ac_ext <<_LT_EOF
9535 void nm_test_func(void);
9536 void nm_test_func(void){}
9540 int main(){nm_test_var='a';nm_test_func();return(0);}
9543 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9544 (eval $ac_compile) 2>&5
9546 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9547 test $ac_status = 0; }; then
9548 # Now try to grab the symbols.
9550 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
9551 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
9553 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9554 test $ac_status = 0; } && test -s "$nlist"; then
9555 # Try sorting and uniquifying the output.
9556 if sort "$nlist" | uniq > "$nlist"T; then
9557 mv -f "$nlist"T "$nlist"
9562 # Make sure that we snagged all the symbols we need.
9563 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
9564 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
9565 cat <<_LT_EOF > conftest.$ac_ext
9566 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
9567 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
9568 /* DATA imports from DLLs on WIN32 can't be const, because runtime
9569 relocations are performed -- see ld's documentation on pseudo-relocs. */
9570 # define LT_DLSYM_CONST
9571 #elif defined __osf__
9572 /* This system does not cope well with relocations in const data. */
9573 # define LT_DLSYM_CONST
9575 # define LT_DLSYM_CONST const
9583 # Now generate the symbol file.
9584 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
9586 cat <<_LT_EOF >> conftest.$ac_ext
9588 /* The mapping between symbol names and symbols. */
9589 LT_DLSYM_CONST struct {
9593 lt__PROGRAM__LTX_preloaded_symbols[] =
9595 { "@PROGRAM@", (void *) 0 },
9597 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
9598 cat <<\_LT_EOF >> conftest.$ac_ext
9602 /* This works around a problem in FreeBSD linker */
9603 #ifdef FREEBSD_WORKAROUND
9604 static const void *lt_preloaded_setup() {
9605 return lt__PROGRAM__LTX_preloaded_symbols;
9613 # Now try linking the two files.
9614 mv conftest.$ac_objext conftstm.$ac_objext
9615 lt_globsym_save_LIBS=$LIBS
9616 lt_globsym_save_CFLAGS=$CFLAGS
9617 LIBS=conftstm.$ac_objext
9618 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9619 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
9620 (eval $ac_link) 2>&5
9622 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9623 test $ac_status = 0; } && test -s conftest$ac_exeext; then
9626 LIBS=$lt_globsym_save_LIBS
9627 CFLAGS=$lt_globsym_save_CFLAGS
9629 echo "cannot find nm_test_func in $nlist" >&5
9632 echo "cannot find nm_test_var in $nlist" >&5
9635 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9638 echo "$progname: failed program was:" >&5
9639 cat conftest.$ac_ext >&5
9641 rm -rf conftest* conftst*
9643 # Do not use the global_symbol_pipe unless it works.
9644 if test yes = "$pipe_works"; then
9647 lt_cv_sys_global_symbol_pipe=
9653 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9654 lt_cv_sys_global_symbol_to_cdecl=
9656 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
9658 $as_echo "failed" >&6; }
9660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
9661 $as_echo "ok" >&6; }
9664 # Response file support.
9665 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9666 nm_file_list_spec='@'
9667 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
9668 nm_file_list_spec='@'
9707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
9708 $as_echo_n "checking for sysroot... " >&6; }
9710 # Check whether --with-sysroot was given.
9711 if test "${with_sysroot+set}" = set; then :
9712 withval=$with_sysroot;
9719 case $with_sysroot in #(
9721 if test yes = "$GCC"; then
9722 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
9726 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
9731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
9732 $as_echo "$with_sysroot" >&6; }
9733 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
9737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
9738 $as_echo "${lt_sysroot:-no}" >&6; }
9744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
9745 $as_echo_n "checking for a working dd... " >&6; }
9746 if ${ac_cv_path_lt_DD+:} false; then :
9747 $as_echo_n "(cached) " >&6
9749 printf 0123456789abcdef0123456789abcdef >conftest.i
9750 cat conftest.i conftest.i >conftest2.i
9752 if test -z "$lt_DD"; then
9753 ac_path_lt_DD_found=false
9754 # Loop through the user's path and test for each of PROGNAME-LIST
9755 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9759 test -z "$as_dir" && as_dir=.
9760 for ac_prog in dd; do
9761 for ac_exec_ext in '' $ac_executable_extensions; do
9762 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
9763 as_fn_executable_p "$ac_path_lt_DD" || continue
9764 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
9765 cmp -s conftest.i conftest.out \
9766 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
9768 $ac_path_lt_DD_found && break 3
9773 if test -z "$ac_cv_path_lt_DD"; then
9777 ac_cv_path_lt_DD=$lt_DD
9780 rm -f conftest.i conftest2.i conftest.out
9782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
9783 $as_echo "$ac_cv_path_lt_DD" >&6; }
9786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
9787 $as_echo_n "checking how to truncate binary pipes... " >&6; }
9788 if ${lt_cv_truncate_bin+:} false; then :
9789 $as_echo_n "(cached) " >&6
9791 printf 0123456789abcdef0123456789abcdef >conftest.i
9792 cat conftest.i conftest.i >conftest2.i
9794 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
9795 cmp -s conftest.i conftest.out \
9796 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
9798 rm -f conftest.i conftest2.i conftest.out
9799 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
9801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
9802 $as_echo "$lt_cv_truncate_bin" >&6; }
9810 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
9813 for cc_temp in $*""; do
9815 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9816 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9821 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9824 # Check whether --enable-libtool-lock was given.
9825 if test "${enable_libtool_lock+set}" = set; then :
9826 enableval=$enable_libtool_lock;
9829 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
9831 # Some flags need to be propagated to the compiler or linker for good
9835 # Find out what ABI is being produced by ac_compile, and set mode
9836 # options accordingly.
9837 echo 'int i;' > conftest.$ac_ext
9838 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9839 (eval $ac_compile) 2>&5
9841 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9842 test $ac_status = 0; }; then
9843 case `/usr/bin/file conftest.$ac_objext` in
9855 # Find out what ABI is being produced by ac_compile, and set linker
9856 # options accordingly.
9857 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
9858 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9859 (eval $ac_compile) 2>&5
9861 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9862 test $ac_status = 0; }; then
9863 if test yes = "$lt_cv_prog_gnu_ld"; then
9864 case `/usr/bin/file conftest.$ac_objext` in
9866 LD="${LD-ld} -melf32bsmip"
9869 LD="${LD-ld} -melf32bmipn32"
9872 LD="${LD-ld} -melf64bmip"
9876 case `/usr/bin/file conftest.$ac_objext` in
9893 # Find out what ABI is being produced by ac_compile, and set linker
9894 # options accordingly.
9895 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
9896 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9897 (eval $ac_compile) 2>&5
9899 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9900 test $ac_status = 0; }; then
9902 case `/usr/bin/file conftest.$ac_objext` in
9910 case `/usr/bin/file conftest.$ac_objext` in
9912 emul="${emul}btsmip"
9915 emul="${emul}ltsmip"
9918 case `/usr/bin/file conftest.$ac_objext` in
9923 LD="${LD-ld} -m $emul"
9928 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
9929 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
9930 # Find out what ABI is being produced by ac_compile, and set linker
9931 # options accordingly. Note that the listed cases only cover the
9932 # situations where additional linker options are needed (such as when
9933 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
9934 # vice versa); the common cases where no linker options are needed do
9935 # not appear in the list.
9936 echo 'int i;' > conftest.$ac_ext
9937 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9938 (eval $ac_compile) 2>&5
9940 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9941 test $ac_status = 0; }; then
9942 case `/usr/bin/file conftest.o` in
9945 x86_64-*kfreebsd*-gnu)
9946 LD="${LD-ld} -m elf_i386_fbsd"
9949 case `/usr/bin/file conftest.o` in
9951 LD="${LD-ld} -m elf32_x86_64"
9954 LD="${LD-ld} -m elf_i386"
9958 powerpc64le-*linux*)
9959 LD="${LD-ld} -m elf32lppclinux"
9962 LD="${LD-ld} -m elf32ppclinux"
9965 LD="${LD-ld} -m elf_s390"
9968 LD="${LD-ld} -m elf32_sparc"
9974 x86_64-*kfreebsd*-gnu)
9975 LD="${LD-ld} -m elf_x86_64_fbsd"
9978 LD="${LD-ld} -m elf_x86_64"
9981 LD="${LD-ld} -m elf64lppc"
9984 LD="${LD-ld} -m elf64ppc"
9986 s390*-*linux*|s390*-*tpf*)
9987 LD="${LD-ld} -m elf64_s390"
9990 LD="${LD-ld} -m elf64_sparc"
10000 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
10001 SAVE_CFLAGS=$CFLAGS
10002 CFLAGS="$CFLAGS -belf"
10003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
10004 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
10005 if ${lt_cv_cc_needs_belf+:} false; then :
10006 $as_echo_n "(cached) " >&6
10009 ac_cpp='$CPP $CPPFLAGS'
10010 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10011 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10012 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10015 /* end confdefs.h. */
10025 if ac_fn_c_try_link "$LINENO"; then :
10026 lt_cv_cc_needs_belf=yes
10028 lt_cv_cc_needs_belf=no
10030 rm -f core conftest.err conftest.$ac_objext \
10031 conftest$ac_exeext conftest.$ac_ext
10033 ac_cpp='$CPP $CPPFLAGS'
10034 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10035 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10036 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
10040 $as_echo "$lt_cv_cc_needs_belf" >&6; }
10041 if test yes != "$lt_cv_cc_needs_belf"; then
10042 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
10043 CFLAGS=$SAVE_CFLAGS
10047 # Find out what ABI is being produced by ac_compile, and set linker
10048 # options accordingly.
10049 echo 'int i;' > conftest.$ac_ext
10050 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10051 (eval $ac_compile) 2>&5
10053 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10054 test $ac_status = 0; }; then
10055 case `/usr/bin/file conftest.o` in
10057 case $lt_cv_prog_gnu_ld in
10060 i?86-*-solaris*|x86_64-*-solaris*)
10061 LD="${LD-ld} -m elf_x86_64"
10064 LD="${LD-ld} -m elf64_sparc"
10067 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
10068 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
10073 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
10085 need_locks=$enable_libtool_lock
10087 if test -n "$ac_tool_prefix"; then
10088 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
10089 set dummy ${ac_tool_prefix}mt; ac_word=$2
10090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10091 $as_echo_n "checking for $ac_word... " >&6; }
10092 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
10093 $as_echo_n "(cached) " >&6
10095 if test -n "$MANIFEST_TOOL"; then
10096 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
10098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10099 for as_dir in $PATH
10102 test -z "$as_dir" && as_dir=.
10103 for ac_exec_ext in '' $ac_executable_extensions; do
10104 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10105 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
10106 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10115 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
10116 if test -n "$MANIFEST_TOOL"; then
10117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
10118 $as_echo "$MANIFEST_TOOL" >&6; }
10120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10121 $as_echo "no" >&6; }
10126 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
10127 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
10128 # Extract the first word of "mt", so it can be a program name with args.
10129 set dummy mt; ac_word=$2
10130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10131 $as_echo_n "checking for $ac_word... " >&6; }
10132 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
10133 $as_echo_n "(cached) " >&6
10135 if test -n "$ac_ct_MANIFEST_TOOL"; then
10136 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
10138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10139 for as_dir in $PATH
10142 test -z "$as_dir" && as_dir=.
10143 for ac_exec_ext in '' $ac_executable_extensions; do
10144 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10145 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
10146 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10155 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
10156 if test -n "$ac_ct_MANIFEST_TOOL"; then
10157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
10158 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
10160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10161 $as_echo "no" >&6; }
10164 if test "x$ac_ct_MANIFEST_TOOL" = x; then
10167 case $cross_compiling:$ac_tool_warned in
10169 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10170 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10171 ac_tool_warned=yes ;;
10173 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
10176 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
10179 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
10180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
10181 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
10182 if ${lt_cv_path_mainfest_tool+:} false; then :
10183 $as_echo_n "(cached) " >&6
10185 lt_cv_path_mainfest_tool=no
10186 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
10187 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
10188 cat conftest.err >&5
10189 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
10190 lt_cv_path_mainfest_tool=yes
10194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
10195 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
10196 if test yes != "$lt_cv_path_mainfest_tool"; then
10206 rhapsody* | darwin*)
10207 if test -n "$ac_tool_prefix"; then
10208 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
10209 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
10210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10211 $as_echo_n "checking for $ac_word... " >&6; }
10212 if ${ac_cv_prog_DSYMUTIL+:} false; then :
10213 $as_echo_n "(cached) " >&6
10215 if test -n "$DSYMUTIL"; then
10216 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
10218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10219 for as_dir in $PATH
10222 test -z "$as_dir" && as_dir=.
10223 for ac_exec_ext in '' $ac_executable_extensions; do
10224 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10225 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
10226 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10235 DSYMUTIL=$ac_cv_prog_DSYMUTIL
10236 if test -n "$DSYMUTIL"; then
10237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
10238 $as_echo "$DSYMUTIL" >&6; }
10240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10241 $as_echo "no" >&6; }
10246 if test -z "$ac_cv_prog_DSYMUTIL"; then
10247 ac_ct_DSYMUTIL=$DSYMUTIL
10248 # Extract the first word of "dsymutil", so it can be a program name with args.
10249 set dummy dsymutil; ac_word=$2
10250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10251 $as_echo_n "checking for $ac_word... " >&6; }
10252 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
10253 $as_echo_n "(cached) " >&6
10255 if test -n "$ac_ct_DSYMUTIL"; then
10256 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
10258 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10259 for as_dir in $PATH
10262 test -z "$as_dir" && as_dir=.
10263 for ac_exec_ext in '' $ac_executable_extensions; do
10264 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10265 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
10266 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10275 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
10276 if test -n "$ac_ct_DSYMUTIL"; then
10277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
10278 $as_echo "$ac_ct_DSYMUTIL" >&6; }
10280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10281 $as_echo "no" >&6; }
10284 if test "x$ac_ct_DSYMUTIL" = x; then
10287 case $cross_compiling:$ac_tool_warned in
10289 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10290 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10291 ac_tool_warned=yes ;;
10293 DSYMUTIL=$ac_ct_DSYMUTIL
10296 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
10299 if test -n "$ac_tool_prefix"; then
10300 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
10301 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
10302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10303 $as_echo_n "checking for $ac_word... " >&6; }
10304 if ${ac_cv_prog_NMEDIT+:} false; then :
10305 $as_echo_n "(cached) " >&6
10307 if test -n "$NMEDIT"; then
10308 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
10310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10311 for as_dir in $PATH
10314 test -z "$as_dir" && as_dir=.
10315 for ac_exec_ext in '' $ac_executable_extensions; do
10316 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10317 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
10318 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10327 NMEDIT=$ac_cv_prog_NMEDIT
10328 if test -n "$NMEDIT"; then
10329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
10330 $as_echo "$NMEDIT" >&6; }
10332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10333 $as_echo "no" >&6; }
10338 if test -z "$ac_cv_prog_NMEDIT"; then
10339 ac_ct_NMEDIT=$NMEDIT
10340 # Extract the first word of "nmedit", so it can be a program name with args.
10341 set dummy nmedit; ac_word=$2
10342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10343 $as_echo_n "checking for $ac_word... " >&6; }
10344 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
10345 $as_echo_n "(cached) " >&6
10347 if test -n "$ac_ct_NMEDIT"; then
10348 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
10350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10351 for as_dir in $PATH
10354 test -z "$as_dir" && as_dir=.
10355 for ac_exec_ext in '' $ac_executable_extensions; do
10356 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10357 ac_cv_prog_ac_ct_NMEDIT="nmedit"
10358 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10367 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
10368 if test -n "$ac_ct_NMEDIT"; then
10369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
10370 $as_echo "$ac_ct_NMEDIT" >&6; }
10372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10373 $as_echo "no" >&6; }
10376 if test "x$ac_ct_NMEDIT" = x; then
10379 case $cross_compiling:$ac_tool_warned in
10381 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10382 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10383 ac_tool_warned=yes ;;
10385 NMEDIT=$ac_ct_NMEDIT
10388 NMEDIT="$ac_cv_prog_NMEDIT"
10391 if test -n "$ac_tool_prefix"; then
10392 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
10393 set dummy ${ac_tool_prefix}lipo; ac_word=$2
10394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10395 $as_echo_n "checking for $ac_word... " >&6; }
10396 if ${ac_cv_prog_LIPO+:} false; then :
10397 $as_echo_n "(cached) " >&6
10399 if test -n "$LIPO"; then
10400 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
10402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10403 for as_dir in $PATH
10406 test -z "$as_dir" && as_dir=.
10407 for ac_exec_ext in '' $ac_executable_extensions; do
10408 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10409 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
10410 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10419 LIPO=$ac_cv_prog_LIPO
10420 if test -n "$LIPO"; then
10421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
10422 $as_echo "$LIPO" >&6; }
10424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10425 $as_echo "no" >&6; }
10430 if test -z "$ac_cv_prog_LIPO"; then
10432 # Extract the first word of "lipo", so it can be a program name with args.
10433 set dummy lipo; ac_word=$2
10434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10435 $as_echo_n "checking for $ac_word... " >&6; }
10436 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
10437 $as_echo_n "(cached) " >&6
10439 if test -n "$ac_ct_LIPO"; then
10440 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
10442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10443 for as_dir in $PATH
10446 test -z "$as_dir" && as_dir=.
10447 for ac_exec_ext in '' $ac_executable_extensions; do
10448 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10449 ac_cv_prog_ac_ct_LIPO="lipo"
10450 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10459 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
10460 if test -n "$ac_ct_LIPO"; then
10461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
10462 $as_echo "$ac_ct_LIPO" >&6; }
10464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10465 $as_echo "no" >&6; }
10468 if test "x$ac_ct_LIPO" = x; then
10471 case $cross_compiling:$ac_tool_warned in
10473 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10474 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10475 ac_tool_warned=yes ;;
10480 LIPO="$ac_cv_prog_LIPO"
10483 if test -n "$ac_tool_prefix"; then
10484 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
10485 set dummy ${ac_tool_prefix}otool; ac_word=$2
10486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10487 $as_echo_n "checking for $ac_word... " >&6; }
10488 if ${ac_cv_prog_OTOOL+:} false; then :
10489 $as_echo_n "(cached) " >&6
10491 if test -n "$OTOOL"; then
10492 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
10494 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10495 for as_dir in $PATH
10498 test -z "$as_dir" && as_dir=.
10499 for ac_exec_ext in '' $ac_executable_extensions; do
10500 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10501 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
10502 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10511 OTOOL=$ac_cv_prog_OTOOL
10512 if test -n "$OTOOL"; then
10513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
10514 $as_echo "$OTOOL" >&6; }
10516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10517 $as_echo "no" >&6; }
10522 if test -z "$ac_cv_prog_OTOOL"; then
10524 # Extract the first word of "otool", so it can be a program name with args.
10525 set dummy otool; ac_word=$2
10526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10527 $as_echo_n "checking for $ac_word... " >&6; }
10528 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
10529 $as_echo_n "(cached) " >&6
10531 if test -n "$ac_ct_OTOOL"; then
10532 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
10534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10535 for as_dir in $PATH
10538 test -z "$as_dir" && as_dir=.
10539 for ac_exec_ext in '' $ac_executable_extensions; do
10540 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10541 ac_cv_prog_ac_ct_OTOOL="otool"
10542 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10551 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
10552 if test -n "$ac_ct_OTOOL"; then
10553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
10554 $as_echo "$ac_ct_OTOOL" >&6; }
10556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10557 $as_echo "no" >&6; }
10560 if test "x$ac_ct_OTOOL" = x; then
10563 case $cross_compiling:$ac_tool_warned in
10565 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10566 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10567 ac_tool_warned=yes ;;
10572 OTOOL="$ac_cv_prog_OTOOL"
10575 if test -n "$ac_tool_prefix"; then
10576 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
10577 set dummy ${ac_tool_prefix}otool64; ac_word=$2
10578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10579 $as_echo_n "checking for $ac_word... " >&6; }
10580 if ${ac_cv_prog_OTOOL64+:} false; then :
10581 $as_echo_n "(cached) " >&6
10583 if test -n "$OTOOL64"; then
10584 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
10586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10587 for as_dir in $PATH
10590 test -z "$as_dir" && as_dir=.
10591 for ac_exec_ext in '' $ac_executable_extensions; do
10592 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10593 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
10594 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10603 OTOOL64=$ac_cv_prog_OTOOL64
10604 if test -n "$OTOOL64"; then
10605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
10606 $as_echo "$OTOOL64" >&6; }
10608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10609 $as_echo "no" >&6; }
10614 if test -z "$ac_cv_prog_OTOOL64"; then
10615 ac_ct_OTOOL64=$OTOOL64
10616 # Extract the first word of "otool64", so it can be a program name with args.
10617 set dummy otool64; ac_word=$2
10618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10619 $as_echo_n "checking for $ac_word... " >&6; }
10620 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
10621 $as_echo_n "(cached) " >&6
10623 if test -n "$ac_ct_OTOOL64"; then
10624 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
10626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10627 for as_dir in $PATH
10630 test -z "$as_dir" && as_dir=.
10631 for ac_exec_ext in '' $ac_executable_extensions; do
10632 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10633 ac_cv_prog_ac_ct_OTOOL64="otool64"
10634 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10643 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
10644 if test -n "$ac_ct_OTOOL64"; then
10645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
10646 $as_echo "$ac_ct_OTOOL64" >&6; }
10648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10649 $as_echo "no" >&6; }
10652 if test "x$ac_ct_OTOOL64" = x; then
10655 case $cross_compiling:$ac_tool_warned in
10657 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10658 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10659 ac_tool_warned=yes ;;
10661 OTOOL64=$ac_ct_OTOOL64
10664 OTOOL64="$ac_cv_prog_OTOOL64"
10693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
10694 $as_echo_n "checking for -single_module linker flag... " >&6; }
10695 if ${lt_cv_apple_cc_single_mod+:} false; then :
10696 $as_echo_n "(cached) " >&6
10698 lt_cv_apple_cc_single_mod=no
10699 if test -z "$LT_MULTI_MODULE"; then
10700 # By default we will add the -single_module flag. You can override
10701 # by either setting the environment variable LT_MULTI_MODULE
10702 # non-empty at configure time, or by adding -multi_module to the
10704 rm -rf libconftest.dylib*
10705 echo "int foo(void){return 1;}" > conftest.c
10706 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
10707 -dynamiclib -Wl,-single_module conftest.c" >&5
10708 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
10709 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
10711 # If there is a non-empty error log, and "single_module"
10712 # appears in it, assume the flag caused a linker warning
10713 if test -s conftest.err && $GREP single_module conftest.err; then
10714 cat conftest.err >&5
10715 # Otherwise, if the output was created with a 0 exit code from
10716 # the compiler, it worked.
10717 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
10718 lt_cv_apple_cc_single_mod=yes
10720 cat conftest.err >&5
10722 rm -rf libconftest.dylib*
10726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
10727 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
10729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
10730 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
10731 if ${lt_cv_ld_exported_symbols_list+:} false; then :
10732 $as_echo_n "(cached) " >&6
10734 lt_cv_ld_exported_symbols_list=no
10735 save_LDFLAGS=$LDFLAGS
10736 echo "_main" > conftest.sym
10737 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
10738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10739 /* end confdefs.h. */
10749 if ac_fn_c_try_link "$LINENO"; then :
10750 lt_cv_ld_exported_symbols_list=yes
10752 lt_cv_ld_exported_symbols_list=no
10754 rm -f core conftest.err conftest.$ac_objext \
10755 conftest$ac_exeext conftest.$ac_ext
10756 LDFLAGS=$save_LDFLAGS
10759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
10760 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
10762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
10763 $as_echo_n "checking for -force_load linker flag... " >&6; }
10764 if ${lt_cv_ld_force_load+:} false; then :
10765 $as_echo_n "(cached) " >&6
10767 lt_cv_ld_force_load=no
10768 cat > conftest.c << _LT_EOF
10769 int forced_loaded() { return 2;}
10771 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
10772 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
10773 echo "$AR cru libconftest.a conftest.o" >&5
10774 $AR cru libconftest.a conftest.o 2>&5
10775 echo "$RANLIB libconftest.a" >&5
10776 $RANLIB libconftest.a 2>&5
10777 cat > conftest.c << _LT_EOF
10778 int main() { return 0;}
10780 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
10781 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
10783 if test -s conftest.err && $GREP force_load conftest.err; then
10784 cat conftest.err >&5
10785 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
10786 lt_cv_ld_force_load=yes
10788 cat conftest.err >&5
10790 rm -f conftest.err libconftest.a conftest conftest.c
10791 rm -rf conftest.dSYM
10794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
10795 $as_echo "$lt_cv_ld_force_load" >&6; }
10797 rhapsody* | darwin1.[012])
10798 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
10800 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
10801 darwin*) # darwin 5.x on
10802 # if running on 10.5 or later, the deployment target defaults
10803 # to the OS version, if on x86, and 10.4, the deployment
10804 # target defaults to 10.4. Don't you love it?
10805 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
10806 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
10807 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
10809 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
10811 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
10815 if test yes = "$lt_cv_apple_cc_single_mod"; then
10816 _lt_dar_single_mod='$single_module'
10818 if test yes = "$lt_cv_ld_exported_symbols_list"; then
10819 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
10821 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
10823 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
10824 _lt_dsymutil='~$DSYMUTIL $lib || :'
10831 # func_munge_path_list VARIABLE PATH
10832 # -----------------------------------
10833 # VARIABLE is name of variable containing _space_ separated list of
10834 # directories to be munged by the contents of PATH, which is string
10837 # string "DIR[ DIR]" will be prepended to VARIABLE
10839 # string "DIR[ DIR]" will be appended to VARIABLE
10840 # "DIRP[:DIRP]::[DIRA:]DIRA"
10841 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
10842 # "DIRA[ DIRA]" will be appended to VARIABLE
10844 # VARIABLE will be replaced by "DIR[ DIR]"
10845 func_munge_path_list ()
10851 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
10854 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
10857 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
10858 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
10861 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
10866 for ac_header in dlfcn.h
10868 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
10870 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
10871 cat >>confdefs.h <<_ACEOF
10872 #define HAVE_DLFCN_H 1
10881 func_stripname_cnf ()
10884 .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;;
10885 *) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;;
10887 } # func_stripname_cnf
10900 enable_win32_dll=no
10903 # Check whether --enable-shared was given.
10904 if test "${enable_shared+set}" = set; then :
10905 enableval=$enable_shared; p=${PACKAGE-default}
10907 yes) enable_shared=yes ;;
10908 no) enable_shared=no ;;
10911 # Look at the argument we got. We use all the common list separators.
10912 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10913 for pkg in $enableval; do
10915 if test "X$pkg" = "X$p"; then
10934 # Check whether --enable-static was given.
10935 if test "${enable_static+set}" = set; then :
10936 enableval=$enable_static; p=${PACKAGE-default}
10938 yes) enable_static=yes ;;
10939 no) enable_static=no ;;
10942 # Look at the argument we got. We use all the common list separators.
10943 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10944 for pkg in $enableval; do
10946 if test "X$pkg" = "X$p"; then
10966 # Check whether --with-pic was given.
10967 if test "${with_pic+set}" = set; then :
10968 withval=$with_pic; lt_p=${PACKAGE-default}
10970 yes|no) pic_mode=$withval ;;
10973 # Look at the argument we got. We use all the common list separators.
10974 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10975 for lt_pkg in $withval; do
10977 if test "X$lt_pkg" = "X$lt_p"; then
10995 # Check whether --enable-fast-install was given.
10996 if test "${enable_fast_install+set}" = set; then :
10997 enableval=$enable_fast_install; p=${PACKAGE-default}
10999 yes) enable_fast_install=yes ;;
11000 no) enable_fast_install=no ;;
11002 enable_fast_install=no
11003 # Look at the argument we got. We use all the common list separators.
11004 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
11005 for pkg in $enableval; do
11007 if test "X$pkg" = "X$p"; then
11008 enable_fast_install=yes
11015 enable_fast_install=yes
11025 shared_archive_member_spec=
11026 case $host,$enable_shared in
11027 power*-*-aix[5-9]*,yes)
11028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
11029 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
11031 # Check whether --with-aix-soname was given.
11032 if test "${with_aix_soname+set}" = set; then :
11033 withval=$with_aix_soname; case $withval in
11037 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
11040 lt_cv_with_aix_soname=$with_aix_soname
11042 if ${lt_cv_with_aix_soname+:} false; then :
11043 $as_echo_n "(cached) " >&6
11045 lt_cv_with_aix_soname=aix
11048 with_aix_soname=$lt_cv_with_aix_soname
11051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
11052 $as_echo "$with_aix_soname" >&6; }
11053 if test aix != "$with_aix_soname"; then
11054 # For the AIX way of multilib, we name the shared archive member
11055 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
11056 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
11057 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
11058 # the AIX toolchain works better with OBJECT_MODE set (default 32).
11059 if test 64 = "${OBJECT_MODE-32}"; then
11060 shared_archive_member_spec=shr_64
11062 shared_archive_member_spec=shr
11067 with_aix_soname=aix
11080 # This can be used to rebuild libtool when needed
11081 LIBTOOL_DEPS=$ltmain
11083 # Always use our own libtool.
11084 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
11115 test -z "$LN_S" && LN_S="ln -s"
11130 if test -n "${ZSH_VERSION+set}"; then
11131 setopt NO_GLOB_SUBST
11134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
11135 $as_echo_n "checking for objdir... " >&6; }
11136 if ${lt_cv_objdir+:} false; then :
11137 $as_echo_n "(cached) " >&6
11139 rm -f .libs 2>/dev/null
11140 mkdir .libs 2>/dev/null
11141 if test -d .libs; then
11144 # MS-DOS does not allow filenames that begin with a dot.
11147 rmdir .libs 2>/dev/null
11149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
11150 $as_echo "$lt_cv_objdir" >&6; }
11151 objdir=$lt_cv_objdir
11157 cat >>confdefs.h <<_ACEOF
11158 #define LT_OBJDIR "$lt_cv_objdir/"
11166 # AIX sometimes has problems with the GCC collect2 program. For some
11167 # reason, if we set the COLLECT_NAMES environment variable, the problems
11168 # vanish in a puff of smoke.
11169 if test set != "${COLLECT_NAMES+set}"; then
11171 export COLLECT_NAMES
11176 # Global variables:
11178 can_build_shared=yes
11180 # All known linkers require a '.a' archive for static linking (except MSVC,
11181 # which needs '.lib').
11184 with_gnu_ld=$lt_cv_prog_gnu_ld
11189 # Set sane defaults for various variables
11190 test -z "$CC" && CC=cc
11191 test -z "$LTCC" && LTCC=$CC
11192 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
11193 test -z "$LD" && LD=ld
11194 test -z "$ac_objext" && ac_objext=o
11196 func_cc_basename $compiler
11197 cc_basename=$func_cc_basename_result
11200 # Only perform the check for file, if the check method requires it
11201 test -z "$MAGIC_CMD" && MAGIC_CMD=file
11202 case $deplibs_check_method in
11204 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
11205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
11206 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
11207 if ${lt_cv_path_MAGIC_CMD+:} false; then :
11208 $as_echo_n "(cached) " >&6
11212 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
11215 lt_save_MAGIC_CMD=$MAGIC_CMD
11216 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
11217 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11218 for ac_dir in $ac_dummy; do
11220 test -z "$ac_dir" && ac_dir=.
11221 if test -f "$ac_dir/${ac_tool_prefix}file"; then
11222 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
11223 if test -n "$file_magic_test_file"; then
11224 case $deplibs_check_method in
11226 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
11227 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
11228 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11229 $EGREP "$file_magic_regex" > /dev/null; then
11234 *** Warning: the command libtool uses to detect shared libraries,
11235 *** $file_magic_cmd, produces output that libtool cannot recognize.
11236 *** The result is that libtool may fail to recognize shared libraries
11237 *** as such. This will affect the creation of libtool libraries that
11238 *** depend on shared libraries, but programs linked with such libtool
11239 *** libraries will work regardless of this problem. Nevertheless, you
11240 *** may want to report the problem to your system manager and/or to
11241 *** bug-libtool@gnu.org
11251 MAGIC_CMD=$lt_save_MAGIC_CMD
11256 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
11257 if test -n "$MAGIC_CMD"; then
11258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
11259 $as_echo "$MAGIC_CMD" >&6; }
11261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11262 $as_echo "no" >&6; }
11269 if test -z "$lt_cv_path_MAGIC_CMD"; then
11270 if test -n "$ac_tool_prefix"; then
11271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
11272 $as_echo_n "checking for file... " >&6; }
11273 if ${lt_cv_path_MAGIC_CMD+:} false; then :
11274 $as_echo_n "(cached) " >&6
11278 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
11281 lt_save_MAGIC_CMD=$MAGIC_CMD
11282 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
11283 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11284 for ac_dir in $ac_dummy; do
11286 test -z "$ac_dir" && ac_dir=.
11287 if test -f "$ac_dir/file"; then
11288 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
11289 if test -n "$file_magic_test_file"; then
11290 case $deplibs_check_method in
11292 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
11293 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
11294 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11295 $EGREP "$file_magic_regex" > /dev/null; then
11300 *** Warning: the command libtool uses to detect shared libraries,
11301 *** $file_magic_cmd, produces output that libtool cannot recognize.
11302 *** The result is that libtool may fail to recognize shared libraries
11303 *** as such. This will affect the creation of libtool libraries that
11304 *** depend on shared libraries, but programs linked with such libtool
11305 *** libraries will work regardless of this problem. Nevertheless, you
11306 *** may want to report the problem to your system manager and/or to
11307 *** bug-libtool@gnu.org
11317 MAGIC_CMD=$lt_save_MAGIC_CMD
11322 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
11323 if test -n "$MAGIC_CMD"; then
11324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
11325 $as_echo "$MAGIC_CMD" >&6; }
11327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11328 $as_echo "no" >&6; }
11341 # Use C for the default configuration in the libtool script
11345 ac_cpp='$CPP $CPPFLAGS'
11346 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11347 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11348 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11351 # Source file extension for C test sources.
11354 # Object file extension for compiled C test sources.
11358 # Code to be used in simple compile tests
11359 lt_simple_compile_test_code="int some_variable = 0;"
11361 # Code to be used in simple link tests
11362 lt_simple_link_test_code='int main(){return(0);}'
11370 # If no C compiler was specified, use CC.
11373 # If no C compiler flags were specified, use CFLAGS.
11374 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11376 # Allow CC to be a program name with arguments.
11379 # Save the default compiler, since it gets overwritten when the other
11380 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
11381 compiler_DEFAULT=$CC
11383 # save warnings/boilerplate of simple test code
11384 ac_outfile=conftest.$ac_objext
11385 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11386 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11387 _lt_compiler_boilerplate=`cat conftest.err`
11390 ac_outfile=conftest.$ac_objext
11391 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11392 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11393 _lt_linker_boilerplate=`cat conftest.err`
11398 ## There is no encapsulation within the following macros, do not change
11399 ## the running order or otherwise move them around unless you know exactly
11400 ## what you are doing...
11401 if test -n "$compiler"; then
11403 lt_prog_compiler_no_builtin_flag=
11405 if test yes = "$GCC"; then
11406 case $cc_basename in
11408 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
11410 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
11413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
11414 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
11415 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
11416 $as_echo_n "(cached) " >&6
11418 lt_cv_prog_compiler_rtti_exceptions=no
11419 ac_outfile=conftest.$ac_objext
11420 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11421 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
11422 # Insert the option either (1) after the last *FLAGS variable, or
11423 # (2) before a word containing "conftest.", or (3) at the end.
11424 # Note that $ac_compile itself does not contain backslashes and begins
11425 # with a dollar sign (not a hyphen), so the echo should work correctly.
11426 # The option is referenced via a variable to avoid confusing sed.
11427 lt_compile=`echo "$ac_compile" | $SED \
11428 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11429 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11430 -e 's:$: $lt_compiler_flag:'`
11431 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11432 (eval "$lt_compile" 2>conftest.err)
11434 cat conftest.err >&5
11435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11436 if (exit $ac_status) && test -s "$ac_outfile"; then
11437 # The compiler can only warn and ignore the option if not recognized
11438 # So say no if there are warnings other than the usual output.
11439 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11440 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11441 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11442 lt_cv_prog_compiler_rtti_exceptions=yes
11448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
11449 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
11451 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
11452 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
11464 lt_prog_compiler_wl=
11465 lt_prog_compiler_pic=
11466 lt_prog_compiler_static=
11469 if test yes = "$GCC"; then
11470 lt_prog_compiler_wl='-Wl,'
11471 lt_prog_compiler_static='-static'
11475 # All AIX code is PIC.
11476 if test ia64 = "$host_cpu"; then
11477 # AIX 5 now supports IA64 processor
11478 lt_prog_compiler_static='-Bstatic'
11480 lt_prog_compiler_pic='-fPIC'
11486 # see comment about AmigaOS4 .so support
11487 lt_prog_compiler_pic='-fPIC'
11490 # FIXME: we need at least 68020 code to build shared libraries, but
11491 # adding the '-m68020' flag to GCC prevents building anything better,
11493 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
11498 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11499 # PIC is the default for these OSes.
11502 mingw* | cygwin* | pw32* | os2* | cegcc*)
11503 # This hack is so that the source file can tell whether it is being
11504 # built for inclusion in a dll (and should export symbols for example).
11505 # Although the cygwin gcc ignores -fPIC, still need this for old-style
11506 # (--disable-auto-import) libraries
11507 lt_prog_compiler_pic='-DDLL_EXPORT'
11510 lt_prog_compiler_static='$wl-static'
11515 darwin* | rhapsody*)
11516 # PIC is the default on this platform
11517 # Common symbols not allowed in MH_DYLIB files
11518 lt_prog_compiler_pic='-fno-common'
11522 # PIC is the default for Haiku.
11523 # The "-static" flag exists, but is broken.
11524 lt_prog_compiler_static=
11528 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
11529 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
11530 # sets the default TLS model and affects inlining.
11536 lt_prog_compiler_pic='-fPIC'
11542 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11543 # Instead, we relocate shared libraries at runtime.
11547 # Just because we use GCC doesn't mean we suddenly get shared libraries
11548 # on systems that don't support them.
11549 lt_prog_compiler_can_build_shared=no
11554 # QNX uses GNU C++, but need to define -shared option too, otherwise
11555 # it will coredump.
11556 lt_prog_compiler_pic='-fPIC -shared'
11560 if test -d /usr/nec; then
11561 lt_prog_compiler_pic=-Kconform_pic
11566 lt_prog_compiler_pic='-fPIC'
11570 case $cc_basename in
11571 nvcc*) # Cuda Compiler Driver 2.2
11572 lt_prog_compiler_wl='-Xlinker '
11573 if test -n "$lt_prog_compiler_pic"; then
11574 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
11579 # PORTME Check for flag to pass linker flags through the system compiler.
11582 lt_prog_compiler_wl='-Wl,'
11583 if test ia64 = "$host_cpu"; then
11584 # AIX 5 now supports IA64 processor
11585 lt_prog_compiler_static='-Bstatic'
11587 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
11591 darwin* | rhapsody*)
11592 # PIC is the default on this platform
11593 # Common symbols not allowed in MH_DYLIB files
11594 lt_prog_compiler_pic='-fno-common'
11595 case $cc_basename in
11597 # NAG Fortran compiler
11598 lt_prog_compiler_wl='-Wl,-Wl,,'
11599 lt_prog_compiler_pic='-PIC'
11600 lt_prog_compiler_static='-Bstatic'
11605 mingw* | cygwin* | pw32* | os2* | cegcc*)
11606 # This hack is so that the source file can tell whether it is being
11607 # built for inclusion in a dll (and should export symbols for example).
11608 lt_prog_compiler_pic='-DDLL_EXPORT'
11611 lt_prog_compiler_static='$wl-static'
11616 hpux9* | hpux10* | hpux11*)
11617 lt_prog_compiler_wl='-Wl,'
11618 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11619 # not for PA HP-UX.
11625 lt_prog_compiler_pic='+Z'
11628 # Is there a better lt_prog_compiler_static that works with the bundled CC?
11629 lt_prog_compiler_static='$wl-a ${wl}archive'
11632 irix5* | irix6* | nonstopux*)
11633 lt_prog_compiler_wl='-Wl,'
11634 # PIC (with -KPIC) is the default.
11635 lt_prog_compiler_static='-non_shared'
11638 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11639 case $cc_basename in
11640 # old Intel for x86_64, which still supported -KPIC.
11642 lt_prog_compiler_wl='-Wl,'
11643 lt_prog_compiler_pic='-KPIC'
11644 lt_prog_compiler_static='-static'
11646 # icc used to be incompatible with GCC.
11647 # ICC 10 doesn't accept -KPIC any more.
11649 lt_prog_compiler_wl='-Wl,'
11650 lt_prog_compiler_pic='-fPIC'
11651 lt_prog_compiler_static='-static'
11653 # Lahey Fortran 8.1.
11655 lt_prog_compiler_wl='-Wl,'
11656 lt_prog_compiler_pic='--shared'
11657 lt_prog_compiler_static='--static'
11660 # NAG Fortran compiler
11661 lt_prog_compiler_wl='-Wl,-Wl,,'
11662 lt_prog_compiler_pic='-PIC'
11663 lt_prog_compiler_static='-Bstatic'
11666 # Fabrice Bellard et al's Tiny C Compiler
11667 lt_prog_compiler_wl='-Wl,'
11668 lt_prog_compiler_pic='-fPIC'
11669 lt_prog_compiler_static='-static'
11671 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
11672 # Portland Group compilers (*not* the Pentium gcc compiler,
11673 # which looks to be a dead project)
11674 lt_prog_compiler_wl='-Wl,'
11675 lt_prog_compiler_pic='-fpic'
11676 lt_prog_compiler_static='-Bstatic'
11679 lt_prog_compiler_wl='-Wl,'
11680 # All Alpha code is PIC.
11681 lt_prog_compiler_static='-non_shared'
11683 xl* | bgxl* | bgf* | mpixl*)
11684 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
11685 lt_prog_compiler_wl='-Wl,'
11686 lt_prog_compiler_pic='-qpic'
11687 lt_prog_compiler_static='-qstaticlink'
11690 case `$CC -V 2>&1 | sed 5q` in
11691 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
11692 # Sun Fortran 8.3 passes all unrecognized flags to the linker
11693 lt_prog_compiler_pic='-KPIC'
11694 lt_prog_compiler_static='-Bstatic'
11695 lt_prog_compiler_wl=''
11697 *Sun\ F* | *Sun*Fortran*)
11698 lt_prog_compiler_pic='-KPIC'
11699 lt_prog_compiler_static='-Bstatic'
11700 lt_prog_compiler_wl='-Qoption ld '
11704 lt_prog_compiler_pic='-KPIC'
11705 lt_prog_compiler_static='-Bstatic'
11706 lt_prog_compiler_wl='-Wl,'
11708 *Intel*\ [CF]*Compiler*)
11709 lt_prog_compiler_wl='-Wl,'
11710 lt_prog_compiler_pic='-fPIC'
11711 lt_prog_compiler_static='-static'
11714 lt_prog_compiler_wl='-Wl,'
11715 lt_prog_compiler_pic='-fpic'
11716 lt_prog_compiler_static='-Bstatic'
11724 lt_prog_compiler_pic='-KPIC'
11725 lt_prog_compiler_static='-Bstatic'
11729 # QNX uses GNU C++, but need to define -shared option too, otherwise
11730 # it will coredump.
11731 lt_prog_compiler_pic='-fPIC -shared'
11734 osf3* | osf4* | osf5*)
11735 lt_prog_compiler_wl='-Wl,'
11736 # All OSF/1 code is PIC.
11737 lt_prog_compiler_static='-non_shared'
11741 lt_prog_compiler_static='-non_shared'
11745 lt_prog_compiler_pic='-KPIC'
11746 lt_prog_compiler_static='-Bstatic'
11747 case $cc_basename in
11748 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
11749 lt_prog_compiler_wl='-Qoption ld ';;
11751 lt_prog_compiler_wl='-Wl,';;
11756 lt_prog_compiler_wl='-Qoption ld '
11757 lt_prog_compiler_pic='-PIC'
11758 lt_prog_compiler_static='-Bstatic'
11761 sysv4 | sysv4.2uw2* | sysv4.3*)
11762 lt_prog_compiler_wl='-Wl,'
11763 lt_prog_compiler_pic='-KPIC'
11764 lt_prog_compiler_static='-Bstatic'
11768 if test -d /usr/nec; then
11769 lt_prog_compiler_pic='-Kconform_pic'
11770 lt_prog_compiler_static='-Bstatic'
11774 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11775 lt_prog_compiler_wl='-Wl,'
11776 lt_prog_compiler_pic='-KPIC'
11777 lt_prog_compiler_static='-Bstatic'
11781 lt_prog_compiler_wl='-Wl,'
11782 lt_prog_compiler_can_build_shared=no
11786 lt_prog_compiler_pic='-pic'
11787 lt_prog_compiler_static='-Bstatic'
11791 lt_prog_compiler_can_build_shared=no
11797 # For platforms that do not support PIC, -DPIC is meaningless:
11799 lt_prog_compiler_pic=
11802 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
11806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
11807 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
11808 if ${lt_cv_prog_compiler_pic+:} false; then :
11809 $as_echo_n "(cached) " >&6
11811 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
11813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
11814 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
11815 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
11818 # Check to make sure the PIC flag actually works.
11820 if test -n "$lt_prog_compiler_pic"; then
11821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
11822 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
11823 if ${lt_cv_prog_compiler_pic_works+:} false; then :
11824 $as_echo_n "(cached) " >&6
11826 lt_cv_prog_compiler_pic_works=no
11827 ac_outfile=conftest.$ac_objext
11828 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11829 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
11830 # Insert the option either (1) after the last *FLAGS variable, or
11831 # (2) before a word containing "conftest.", or (3) at the end.
11832 # Note that $ac_compile itself does not contain backslashes and begins
11833 # with a dollar sign (not a hyphen), so the echo should work correctly.
11834 # The option is referenced via a variable to avoid confusing sed.
11835 lt_compile=`echo "$ac_compile" | $SED \
11836 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11837 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11838 -e 's:$: $lt_compiler_flag:'`
11839 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11840 (eval "$lt_compile" 2>conftest.err)
11842 cat conftest.err >&5
11843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11844 if (exit $ac_status) && test -s "$ac_outfile"; then
11845 # The compiler can only warn and ignore the option if not recognized
11846 # So say no if there are warnings other than the usual output.
11847 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11848 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11849 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11850 lt_cv_prog_compiler_pic_works=yes
11856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
11857 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
11859 if test yes = "$lt_cv_prog_compiler_pic_works"; then
11860 case $lt_prog_compiler_pic in
11862 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
11865 lt_prog_compiler_pic=
11866 lt_prog_compiler_can_build_shared=no
11882 # Check to make sure the static flag actually works.
11884 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
11885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11886 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
11887 if ${lt_cv_prog_compiler_static_works+:} false; then :
11888 $as_echo_n "(cached) " >&6
11890 lt_cv_prog_compiler_static_works=no
11891 save_LDFLAGS=$LDFLAGS
11892 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11893 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11894 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11895 # The linker can only warn and ignore the option if not recognized
11896 # So say no if there are warnings
11897 if test -s conftest.err; then
11898 # Append any errors to the config.log.
11899 cat conftest.err 1>&5
11900 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11901 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11902 if diff conftest.exp conftest.er2 >/dev/null; then
11903 lt_cv_prog_compiler_static_works=yes
11906 lt_cv_prog_compiler_static_works=yes
11910 LDFLAGS=$save_LDFLAGS
11913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
11914 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
11916 if test yes = "$lt_cv_prog_compiler_static_works"; then
11919 lt_prog_compiler_static=
11928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11929 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11930 if ${lt_cv_prog_compiler_c_o+:} false; then :
11931 $as_echo_n "(cached) " >&6
11933 lt_cv_prog_compiler_c_o=no
11934 $RM -r conftest 2>/dev/null
11938 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11940 lt_compiler_flag="-o out/conftest2.$ac_objext"
11941 # Insert the option either (1) after the last *FLAGS variable, or
11942 # (2) before a word containing "conftest.", or (3) at the end.
11943 # Note that $ac_compile itself does not contain backslashes and begins
11944 # with a dollar sign (not a hyphen), so the echo should work correctly.
11945 lt_compile=`echo "$ac_compile" | $SED \
11946 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11947 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11948 -e 's:$: $lt_compiler_flag:'`
11949 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11950 (eval "$lt_compile" 2>out/conftest.err)
11952 cat out/conftest.err >&5
11953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11954 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11956 # The compiler can only warn and ignore the option if not recognized
11957 # So say no if there are warnings
11958 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
11959 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11960 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11961 lt_cv_prog_compiler_c_o=yes
11966 # SGI C++ compiler will create directory out/ii_files/ for
11967 # template instantiation
11968 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11969 $RM out/* && rmdir out
11975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
11976 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
11983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11984 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11985 if ${lt_cv_prog_compiler_c_o+:} false; then :
11986 $as_echo_n "(cached) " >&6
11988 lt_cv_prog_compiler_c_o=no
11989 $RM -r conftest 2>/dev/null
11993 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11995 lt_compiler_flag="-o out/conftest2.$ac_objext"
11996 # Insert the option either (1) after the last *FLAGS variable, or
11997 # (2) before a word containing "conftest.", or (3) at the end.
11998 # Note that $ac_compile itself does not contain backslashes and begins
11999 # with a dollar sign (not a hyphen), so the echo should work correctly.
12000 lt_compile=`echo "$ac_compile" | $SED \
12001 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12002 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12003 -e 's:$: $lt_compiler_flag:'`
12004 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12005 (eval "$lt_compile" 2>out/conftest.err)
12007 cat out/conftest.err >&5
12008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12009 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12011 # The compiler can only warn and ignore the option if not recognized
12012 # So say no if there are warnings
12013 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12014 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12015 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12016 lt_cv_prog_compiler_c_o=yes
12021 # SGI C++ compiler will create directory out/ii_files/ for
12022 # template instantiation
12023 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12024 $RM out/* && rmdir out
12030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
12031 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
12036 hard_links=nottested
12037 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
12038 # do not overwrite the value of need_locks provided by the user
12039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
12040 $as_echo_n "checking if we can lock with hard links... " >&6; }
12043 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12045 ln conftest.a conftest.b 2>&5 || hard_links=no
12046 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
12048 $as_echo "$hard_links" >&6; }
12049 if test no = "$hard_links"; then
12050 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
12051 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
12063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12064 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12067 allow_undefined_flag=
12068 always_export_symbols=no
12070 archive_expsym_cmds=
12071 compiler_needs_object=no
12072 enable_shared_with_static_runtimes=no
12073 export_dynamic_flag_spec=
12074 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12075 hardcode_automatic=no
12077 hardcode_direct_absolute=no
12078 hardcode_libdir_flag_spec=
12079 hardcode_libdir_separator=
12080 hardcode_minus_L=no
12081 hardcode_shlibpath_var=unsupported
12083 link_all_deplibs=unknown
12085 module_expsym_cmds=
12086 old_archive_from_new_cmds=
12087 old_archive_from_expsyms_cmds=
12088 thread_safe_flag_spec=
12089 whole_archive_flag_spec=
12090 # include_expsyms should be a list of space-separated symbols to be *always*
12091 # included in the symbol list
12093 # exclude_expsyms can be an extended regexp of symbols to exclude
12094 # it will be wrapped by ' (' and ')$', so one must not match beginning or
12095 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
12096 # as well as any symbol that contains 'd'.
12097 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12098 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12099 # platforms (ab)use it in PIC code, but their linkers get confused if
12100 # the symbol is explicitly referenced. Since portable code cannot
12101 # rely on this symbol name, it's probably fine to never include it in
12102 # preloaded symbol tables.
12103 # Exclude shared library initialization/finalization symbols.
12104 extract_expsyms_cmds=
12107 cygwin* | mingw* | pw32* | cegcc*)
12108 # FIXME: the MSVC++ port hasn't been tested in a loooong time
12109 # When not using gcc, we currently assume that we are using
12110 # Microsoft Visual C++.
12111 if test yes != "$GCC"; then
12116 # we just hope/assume this is gcc and not c89 (= MSVC++)
12119 openbsd* | bitrig*)
12126 # On some targets, GNU ld is compatible enough with the native linker
12127 # that we're better off using the native interface for both.
12128 lt_use_gnu_ld_interface=no
12129 if test yes = "$with_gnu_ld"; then
12132 # The AIX port of GNU ld has always aspired to compatibility
12133 # with the native linker. However, as the warning in the GNU ld
12134 # block says, versions before 2.19.5* couldn't really create working
12135 # shared libraries, regardless of the interface used.
12136 case `$LD -v 2>&1` in
12137 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
12138 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
12139 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
12141 lt_use_gnu_ld_interface=yes
12146 lt_use_gnu_ld_interface=yes
12151 if test yes = "$lt_use_gnu_ld_interface"; then
12152 # If archive_cmds runs LD, not CC, wlarc should be empty
12155 # Set some defaults for GNU ld with shared library support. These
12156 # are reset later if shared libraries are not supported. Putting them
12157 # here allows them to be overridden if necessary.
12158 runpath_var=LD_RUN_PATH
12159 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12160 export_dynamic_flag_spec='$wl--export-dynamic'
12161 # ancient GNU ld didn't support --whole-archive et. al.
12162 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
12163 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
12165 whole_archive_flag_spec=
12167 supports_anon_versioning=no
12168 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
12169 *GNU\ gold*) supports_anon_versioning=yes ;;
12170 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12171 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12172 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12173 *\ 2.11.*) ;; # other 2.11 versions
12174 *) supports_anon_versioning=yes ;;
12177 # See if GNU ld supports shared libraries.
12180 # On AIX/PPC, the GNU linker is very broken
12181 if test ia64 != "$host_cpu"; then
12185 *** Warning: the GNU linker, at least up to release 2.19, is reported
12186 *** to be unable to reliably create shared libraries on AIX.
12187 *** Therefore, libtool is disabling shared libraries support. If you
12188 *** really care for shared libraries, you may want to install binutils
12189 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
12190 *** You will then need to restart the configuration process.
12199 # see comment about AmigaOS4 .so support
12200 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12201 archive_expsym_cmds=''
12204 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)'
12205 hardcode_libdir_flag_spec='-L$libdir'
12206 hardcode_minus_L=yes
12212 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12213 allow_undefined_flag=unsupported
12214 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12215 # support --undefined. This deserves some investigation. FIXME
12216 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12222 cygwin* | mingw* | pw32* | cegcc*)
12223 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
12224 # as there is no search path for DLLs.
12225 hardcode_libdir_flag_spec='-L$libdir'
12226 export_dynamic_flag_spec='$wl--export-all-symbols'
12227 allow_undefined_flag=unsupported
12228 always_export_symbols=no
12229 enable_shared_with_static_runtimes=yes
12230 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
12231 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
12233 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12234 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12235 # If the export-symbols file already is a .def file, use it as
12236 # is; otherwise, prepend EXPORTS...
12237 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
12238 cp $export_symbols $output_objdir/$soname.def;
12240 echo EXPORTS > $output_objdir/$soname.def;
12241 cat $export_symbols >> $output_objdir/$soname.def;
12243 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12250 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12251 link_all_deplibs=yes
12255 hardcode_libdir_flag_spec='-L$libdir'
12256 hardcode_minus_L=yes
12257 allow_undefined_flag=unsupported
12259 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12260 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12261 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12262 $ECHO EXPORTS >> $output_objdir/$libname.def~
12263 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
12264 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12265 emximp -o $lib $output_objdir/$libname.def'
12266 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12267 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12268 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12269 $ECHO EXPORTS >> $output_objdir/$libname.def~
12270 prefix_cmds="$SED"~
12271 if test EXPORTS = "`$SED 1q $export_symbols`"; then
12272 prefix_cmds="$prefix_cmds -e 1d";
12274 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
12275 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
12276 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12277 emximp -o $lib $output_objdir/$libname.def'
12278 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
12279 enable_shared_with_static_runtimes=yes
12284 hardcode_shlibpath_var=no
12285 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
12286 export_dynamic_flag_spec='$wl-E'
12287 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12288 # Instead, shared libraries are loaded at an image base (0x10000000 by
12289 # default) and relocated if they conflict, which is a slow very memory
12290 # consuming and fragmenting process. To avoid this, we pick a random,
12291 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12292 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12293 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
12294 archive_expsym_cmds='sed "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--retain-symbols-file,$output_objdir/$soname.expsym $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
12297 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
12299 if test linux-dietlibc = "$host_os"; then
12300 case $cc_basename in
12301 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
12304 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
12305 && test no = "$tmp_diet"
12307 tmp_addflag=' $pic_flag'
12308 tmp_sharedflag='-shared'
12309 case $cc_basename,$host_cpu in
12310 pgcc*) # Portland Group C compiler
12311 whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
12312 tmp_addflag=' $pic_flag'
12314 pgf77* | pgf90* | pgf95* | pgfortran*)
12315 # Portland Group f77 and f90 compilers
12316 whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
12317 tmp_addflag=' $pic_flag -Mnomain' ;;
12318 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
12319 tmp_addflag=' -i_dynamic' ;;
12320 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
12321 tmp_addflag=' -i_dynamic -nofor_main' ;;
12322 ifc* | ifort*) # Intel Fortran compiler
12323 tmp_addflag=' -nofor_main' ;;
12324 lf95*) # Lahey Fortran 8.1
12325 whole_archive_flag_spec=
12326 tmp_sharedflag='--shared' ;;
12327 nagfor*) # NAGFOR 5.3
12328 tmp_sharedflag='-Wl,-shared' ;;
12329 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
12330 tmp_sharedflag='-qmkshrobj'
12332 nvcc*) # Cuda Compiler Driver 2.2
12333 whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
12334 compiler_needs_object=yes
12337 case `$CC -V 2>&1 | sed 5q` in
12338 *Sun\ C*) # Sun C 5.9
12339 whole_archive_flag_spec='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
12340 compiler_needs_object=yes
12341 tmp_sharedflag='-G' ;;
12342 *Sun\ F*) # Sun Fortran 8.3
12343 tmp_sharedflag='-G' ;;
12345 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12347 if test yes = "$supports_anon_versioning"; then
12348 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
12349 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12350 echo "local: *; };" >> $output_objdir/$libname.ver~
12351 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
12354 case $cc_basename in
12356 export_dynamic_flag_spec='-rdynamic'
12358 xlf* | bgf* | bgxlf* | mpixlf*)
12359 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
12360 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
12361 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12362 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
12363 if test yes = "$supports_anon_versioning"; then
12364 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
12365 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12366 echo "local: *; };" >> $output_objdir/$libname.ver~
12367 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
12377 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12378 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12381 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12382 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12387 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
12391 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
12392 *** create shared libraries on Solaris systems. Therefore, libtool
12393 *** is disabling shared libraries support. We urge you to upgrade GNU
12394 *** binutils to release 2.9.1 or newer. Another option is to modify
12395 *** your PATH or compiler configuration so that the native linker is
12396 *** used, and then restart.
12399 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12400 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12401 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12407 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
12408 case `$LD -v 2>&1` in
12409 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
12413 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
12414 *** reliably create shared libraries on SCO systems. Therefore, libtool
12415 *** is disabling shared libraries support. We urge you to upgrade GNU
12416 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
12417 *** your PATH or compiler configuration so that the native linker is
12418 *** used, and then restart.
12423 # For security reasons, it is highly recommended that you always
12424 # use absolute paths for naming shared libraries, and exclude the
12425 # DT_RUNPATH tag from executables and libraries. But doing so
12426 # requires that you compile everything twice, which is a pain.
12427 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12428 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12429 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12430 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12439 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12441 hardcode_direct=yes
12442 hardcode_shlibpath_var=no
12446 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12447 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12448 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12455 if test no = "$ld_shlibs"; then
12457 hardcode_libdir_flag_spec=
12458 export_dynamic_flag_spec=
12459 whole_archive_flag_spec=
12462 # PORTME fill in a description of your system's linker (not GNU ld)
12465 allow_undefined_flag=unsupported
12466 always_export_symbols=yes
12467 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'
12468 # Note: this linker hardcodes the directories in LIBPATH if there
12469 # are no directories specified by -L.
12470 hardcode_minus_L=yes
12471 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
12472 # Neither direct hardcoding nor static linking is supported with a
12474 hardcode_direct=unsupported
12479 if test ia64 = "$host_cpu"; then
12480 # On IA64, the linker does run time linking by default, so we don't
12481 # have to do anything special.
12482 aix_use_runtimelinking=no
12483 exp_sym_flag='-Bexport'
12486 # If we're using GNU nm, then we don't want the "-C" option.
12487 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
12488 # Without the "-l" option, or with the "-B" option, AIX nm treats
12489 # weak defined symbols like other global defined symbols, whereas
12490 # GNU nm marks them as "W".
12491 # While the 'weak' keyword is ignored in the Export File, we need
12492 # it in the Import File for the 'aix-soname' feature, so we have
12493 # to replace the "-B" option with "-P" for AIX nm.
12494 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
12495 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
12497 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
12499 aix_use_runtimelinking=no
12501 # Test if we are trying to use run time linking or normal
12502 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12503 # have runtime linking enabled, and use it for executables.
12504 # For shared libraries, we enable/disable runtime linking
12505 # depending on the kind of the shared library created -
12506 # when "with_aix_soname,aix_use_runtimelinking" is:
12507 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
12508 # "aix,yes" lib.so shared, rtl:yes, for executables
12509 # lib.a static archive
12510 # "both,no" lib.so.V(shr.o) shared, rtl:yes
12511 # lib.a(lib.so.V) shared, rtl:no, for executables
12512 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
12513 # lib.a(lib.so.V) shared, rtl:no
12514 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
12515 # lib.a static archive
12516 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12517 for ld_flag in $LDFLAGS; do
12518 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
12519 aix_use_runtimelinking=yes
12523 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
12524 # With aix-soname=svr4, we create the lib.so.V shared archives only,
12525 # so we don't have lib.a shared libs to link our executables.
12526 # We have to force runtime linking in this case.
12527 aix_use_runtimelinking=yes
12528 LDFLAGS="$LDFLAGS -Wl,-brtl"
12533 exp_sym_flag='-bexport'
12534 no_entry_flag='-bnoentry'
12537 # When large executables or shared objects are built, AIX ld can
12538 # have problems creating the table of contents. If linking a library
12539 # or program results in "error TOC overflow" add -mminimal-toc to
12540 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12541 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12544 hardcode_direct=yes
12545 hardcode_direct_absolute=yes
12546 hardcode_libdir_separator=':'
12547 link_all_deplibs=yes
12548 file_list_spec='$wl-f,'
12549 case $with_aix_soname,$aix_use_runtimelinking in
12550 aix,*) ;; # traditional, no import file
12551 svr4,* | *,yes) # use import file
12552 # The Import File defines what to hardcode.
12554 hardcode_direct_absolute=no
12558 if test yes = "$GCC"; then
12559 case $host_os in aix4.[012]|aix4.[012].*)
12560 # We only want to do this on AIX 4.2 and lower, the check
12561 # below for broken collect2 doesn't work under 4.3+
12562 collect2name=`$CC -print-prog-name=collect2`
12563 if test -f "$collect2name" &&
12564 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12566 # We have reworked collect2
12569 # We have old collect2
12570 hardcode_direct=unsupported
12571 # It fails to find uninstalled libraries when the uninstalled
12572 # path is not listed in the libpath. Setting hardcode_minus_L
12573 # to unsupported forces relinking
12574 hardcode_minus_L=yes
12575 hardcode_libdir_flag_spec='-L$libdir'
12576 hardcode_libdir_separator=
12580 shared_flag='-shared'
12581 if test yes = "$aix_use_runtimelinking"; then
12582 shared_flag="$shared_flag "'$wl-G'
12584 # Need to ensure runtime linking is disabled for the traditional
12585 # shared library, or the linker may eventually find shared libraries
12586 # /with/ Import File - we do not want to mix them.
12587 shared_flag_aix='-shared'
12588 shared_flag_svr4='-shared $wl-G'
12591 if test ia64 = "$host_cpu"; then
12592 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12593 # chokes on -Wl,-G. The following line is correct:
12596 if test yes = "$aix_use_runtimelinking"; then
12597 shared_flag='$wl-G'
12599 shared_flag='$wl-bM:SRE'
12601 shared_flag_aix='$wl-bM:SRE'
12602 shared_flag_svr4='$wl-G'
12606 export_dynamic_flag_spec='$wl-bexpall'
12607 # It seems that -bexpall does not export symbols beginning with
12608 # underscore (_), so it is better to generate a list of symbols to export.
12609 always_export_symbols=yes
12610 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
12611 # Warning - without using the other runtime loading flags (-brtl),
12612 # -berok will link without error, but may produce a broken library.
12613 allow_undefined_flag='-berok'
12614 # Determine the default libpath from the value encoded in an
12615 # empty executable.
12616 if test set = "${lt_cv_aix_libpath+set}"; then
12617 aix_libpath=$lt_cv_aix_libpath
12619 if ${lt_cv_aix_libpath_+:} false; then :
12620 $as_echo_n "(cached) " >&6
12622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12623 /* end confdefs.h. */
12633 if ac_fn_c_try_link "$LINENO"; then :
12635 lt_aix_libpath_sed='
12636 /Import File Strings/,/^$/ {
12638 s/^0 *\([^ ]*\) *$/\1/
12642 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12643 # Check for a 64-bit object if we didn't find anything.
12644 if test -z "$lt_cv_aix_libpath_"; then
12645 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12648 rm -f core conftest.err conftest.$ac_objext \
12649 conftest$ac_exeext conftest.$ac_ext
12650 if test -z "$lt_cv_aix_libpath_"; then
12651 lt_cv_aix_libpath_=/usr/lib:/lib
12656 aix_libpath=$lt_cv_aix_libpath_
12659 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
12660 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
12662 if test ia64 = "$host_cpu"; then
12663 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
12664 allow_undefined_flag="-z nodefs"
12665 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\$wl$no_entry_flag"' $compiler_flags $wl$allow_undefined_flag '"\$wl$exp_sym_flag:\$export_symbols"
12667 # Determine the default libpath from the value encoded in an
12668 # empty executable.
12669 if test set = "${lt_cv_aix_libpath+set}"; then
12670 aix_libpath=$lt_cv_aix_libpath
12672 if ${lt_cv_aix_libpath_+:} false; then :
12673 $as_echo_n "(cached) " >&6
12675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12676 /* end confdefs.h. */
12686 if ac_fn_c_try_link "$LINENO"; then :
12688 lt_aix_libpath_sed='
12689 /Import File Strings/,/^$/ {
12691 s/^0 *\([^ ]*\) *$/\1/
12695 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12696 # Check for a 64-bit object if we didn't find anything.
12697 if test -z "$lt_cv_aix_libpath_"; then
12698 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12701 rm -f core conftest.err conftest.$ac_objext \
12702 conftest$ac_exeext conftest.$ac_ext
12703 if test -z "$lt_cv_aix_libpath_"; then
12704 lt_cv_aix_libpath_=/usr/lib:/lib
12709 aix_libpath=$lt_cv_aix_libpath_
12712 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
12713 # Warning - without using the other run time loading flags,
12714 # -berok will link without error, but may produce a broken library.
12715 no_undefined_flag=' $wl-bernotok'
12716 allow_undefined_flag=' $wl-berok'
12717 if test yes = "$with_gnu_ld"; then
12718 # We only use this code for GNU lds that support --whole-archive.
12719 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
12721 # Exported symbols can be pulled into shared objects from archives
12722 whole_archive_flag_spec='$convenience'
12724 archive_cmds_need_lc=yes
12725 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
12726 # -brtl affects multiple linker settings, -berok does not and is overridden later
12727 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
12728 if test svr4 != "$with_aix_soname"; then
12729 # This is similar to how AIX traditionally builds its shared libraries.
12730 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
12732 if test aix != "$with_aix_soname"; then
12733 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
12735 # used by -dlpreopen to get the symbols
12736 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
12738 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
12746 # see comment about AmigaOS4 .so support
12747 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12748 archive_expsym_cmds=''
12751 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)'
12752 hardcode_libdir_flag_spec='-L$libdir'
12753 hardcode_minus_L=yes
12759 export_dynamic_flag_spec=-rdynamic
12762 cygwin* | mingw* | pw32* | cegcc*)
12763 # When not using gcc, we currently assume that we are using
12764 # Microsoft Visual C++.
12765 # hardcode_libdir_flag_spec is actually meaningless, as there is
12766 # no search path for DLLs.
12767 case $cc_basename in
12770 hardcode_libdir_flag_spec=' '
12771 allow_undefined_flag=unsupported
12772 always_export_symbols=yes
12774 # Tell ltmain to make .lib files, not .a files.
12776 # Tell ltmain to make .dll files, not .so files.
12778 # FIXME: Setting linknames here is a bad hack.
12779 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
12780 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
12781 cp "$export_symbols" "$output_objdir/$soname.def";
12782 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
12784 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
12786 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
12788 # The linker will not automatically build a static lib if we build a DLL.
12789 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
12790 enable_shared_with_static_runtimes=yes
12791 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
12792 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
12794 old_postinstall_cmds='chmod 644 $oldlib'
12795 postlink_cmds='lt_outputfile="@OUTPUT@"~
12796 lt_tool_outputfile="@TOOL_OUTPUT@"~
12797 case $lt_outputfile in
12800 lt_outputfile=$lt_outputfile.exe
12801 lt_tool_outputfile=$lt_tool_outputfile.exe
12804 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
12805 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
12806 $RM "$lt_outputfile.manifest";
12810 # Assume MSVC wrapper
12811 hardcode_libdir_flag_spec=' '
12812 allow_undefined_flag=unsupported
12813 # Tell ltmain to make .lib files, not .a files.
12815 # Tell ltmain to make .dll files, not .so files.
12817 # FIXME: Setting linknames here is a bad hack.
12818 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
12819 # The linker will automatically build a .lib file if we build a DLL.
12820 old_archive_from_new_cmds='true'
12821 # FIXME: Should let the user specify the lib program.
12822 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
12823 enable_shared_with_static_runtimes=yes
12828 darwin* | rhapsody*)
12831 archive_cmds_need_lc=no
12833 hardcode_automatic=yes
12834 hardcode_shlibpath_var=unsupported
12835 if test yes = "$lt_cv_ld_force_load"; then
12836 whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
12839 whole_archive_flag_spec=''
12841 link_all_deplibs=yes
12842 allow_undefined_flag=$_lt_dar_allow_undefined
12843 case $cc_basename in
12844 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
12845 *) _lt_dar_can_shared=$GCC ;;
12847 if test yes = "$_lt_dar_can_shared"; then
12848 output_verbose_link_cmd=func_echo_all
12849 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
12850 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
12851 archive_expsym_cmds="sed 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dar_export_syms$_lt_dsymutil"
12852 module_expsym_cmds="sed -e 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dar_export_syms$_lt_dsymutil"
12861 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12862 hardcode_libdir_flag_spec='-L$libdir'
12863 hardcode_shlibpath_var=no
12866 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12867 # support. Future versions do this automatically, but an explicit c++rt0.o
12868 # does not break anything, and helps significantly (at the cost of a little
12871 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
12872 hardcode_libdir_flag_spec='-R$libdir'
12873 hardcode_direct=yes
12874 hardcode_shlibpath_var=no
12877 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
12879 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12880 hardcode_direct=yes
12881 hardcode_minus_L=yes
12882 hardcode_shlibpath_var=no
12885 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
12886 freebsd* | dragonfly*)
12887 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12888 hardcode_libdir_flag_spec='-R$libdir'
12889 hardcode_direct=yes
12890 hardcode_shlibpath_var=no
12894 if test yes = "$GCC"; then
12895 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
12897 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
12899 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
12900 hardcode_libdir_separator=:
12901 hardcode_direct=yes
12903 # hardcode_minus_L: Not really in the search PATH,
12904 # but as the default location of the library.
12905 hardcode_minus_L=yes
12906 export_dynamic_flag_spec='$wl-E'
12910 if test yes,no = "$GCC,$with_gnu_ld"; then
12911 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12913 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12915 if test no = "$with_gnu_ld"; then
12916 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
12917 hardcode_libdir_separator=:
12918 hardcode_direct=yes
12919 hardcode_direct_absolute=yes
12920 export_dynamic_flag_spec='$wl-E'
12921 # hardcode_minus_L: Not really in the search PATH,
12922 # but as the default location of the library.
12923 hardcode_minus_L=yes
12928 if test yes,no = "$GCC,$with_gnu_ld"; then
12931 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
12934 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12937 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12943 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
12946 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12950 # Older versions of the 11.00 compiler do not understand -b yet
12951 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
12952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
12953 $as_echo_n "checking if $CC understands -b... " >&6; }
12954 if ${lt_cv_prog_compiler__b+:} false; then :
12955 $as_echo_n "(cached) " >&6
12957 lt_cv_prog_compiler__b=no
12958 save_LDFLAGS=$LDFLAGS
12959 LDFLAGS="$LDFLAGS -b"
12960 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12961 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12962 # The linker can only warn and ignore the option if not recognized
12963 # So say no if there are warnings
12964 if test -s conftest.err; then
12965 # Append any errors to the config.log.
12966 cat conftest.err 1>&5
12967 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
12968 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12969 if diff conftest.exp conftest.er2 >/dev/null; then
12970 lt_cv_prog_compiler__b=yes
12973 lt_cv_prog_compiler__b=yes
12977 LDFLAGS=$save_LDFLAGS
12980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
12981 $as_echo "$lt_cv_prog_compiler__b" >&6; }
12983 if test yes = "$lt_cv_prog_compiler__b"; then
12984 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12986 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12992 if test no = "$with_gnu_ld"; then
12993 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
12994 hardcode_libdir_separator=:
12999 hardcode_shlibpath_var=no
13002 hardcode_direct=yes
13003 hardcode_direct_absolute=yes
13004 export_dynamic_flag_spec='$wl-E'
13006 # hardcode_minus_L: Not really in the search PATH,
13007 # but as the default location of the library.
13008 hardcode_minus_L=yes
13014 irix5* | irix6* | nonstopux*)
13015 if test yes = "$GCC"; then
13016 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
13017 # Try to use the -exported_symbol ld option, if it does not
13018 # work, assume that -exports_file does not work either and
13019 # implicitly export all symbols.
13020 # This should be the same for all languages, so no per-tag cache variable.
13021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
13022 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
13023 if ${lt_cv_irix_exported_symbol+:} false; then :
13024 $as_echo_n "(cached) " >&6
13026 save_LDFLAGS=$LDFLAGS
13027 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
13028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13029 /* end confdefs.h. */
13030 int foo (void) { return 0; }
13032 if ac_fn_c_try_link "$LINENO"; then :
13033 lt_cv_irix_exported_symbol=yes
13035 lt_cv_irix_exported_symbol=no
13037 rm -f core conftest.err conftest.$ac_objext \
13038 conftest$ac_exeext conftest.$ac_ext
13039 LDFLAGS=$save_LDFLAGS
13041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
13042 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
13043 if test yes = "$lt_cv_irix_exported_symbol"; then
13044 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations $wl-exports_file $wl$export_symbols -o $lib'
13047 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
13048 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -exports_file $export_symbols -o $lib'
13050 archive_cmds_need_lc='no'
13051 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13052 hardcode_libdir_separator=:
13054 link_all_deplibs=yes
13058 case $cc_basename in
13060 # Fabrice Bellard et al's Tiny C Compiler
13062 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13068 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13069 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13071 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13073 hardcode_libdir_flag_spec='-R$libdir'
13074 hardcode_direct=yes
13075 hardcode_shlibpath_var=no
13079 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13080 hardcode_direct=yes
13081 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13082 hardcode_libdir_separator=:
13083 hardcode_shlibpath_var=no
13089 openbsd* | bitrig*)
13090 if test -f /usr/libexec/ld.so; then
13091 hardcode_direct=yes
13092 hardcode_shlibpath_var=no
13093 hardcode_direct_absolute=yes
13094 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
13095 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13096 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
13097 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
13098 export_dynamic_flag_spec='$wl-E'
13100 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13101 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
13109 hardcode_libdir_flag_spec='-L$libdir'
13110 hardcode_minus_L=yes
13111 allow_undefined_flag=unsupported
13113 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
13114 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
13115 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
13116 $ECHO EXPORTS >> $output_objdir/$libname.def~
13117 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
13118 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
13119 emximp -o $lib $output_objdir/$libname.def'
13120 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
13121 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
13122 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
13123 $ECHO EXPORTS >> $output_objdir/$libname.def~
13124 prefix_cmds="$SED"~
13125 if test EXPORTS = "`$SED 1q $export_symbols`"; then
13126 prefix_cmds="$prefix_cmds -e 1d";
13128 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
13129 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
13130 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
13131 emximp -o $lib $output_objdir/$libname.def'
13132 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
13133 enable_shared_with_static_runtimes=yes
13137 if test yes = "$GCC"; then
13138 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
13139 archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
13141 allow_undefined_flag=' -expect_unresolved \*'
13142 archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
13144 archive_cmds_need_lc='no'
13145 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13146 hardcode_libdir_separator=:
13149 osf4* | osf5*) # as osf3* with the addition of -msym flag
13150 if test yes = "$GCC"; then
13151 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
13152 archive_cmds='$CC -shared$allow_undefined_flag $pic_flag $libobjs $deplibs $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
13153 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13155 allow_undefined_flag=' -expect_unresolved \*'
13156 archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
13157 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
13158 $CC -shared$allow_undefined_flag $wl-input $wl$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~$RM $lib.exp'
13160 # Both c and cxx compiler support -rpath directly
13161 hardcode_libdir_flag_spec='-rpath $libdir'
13163 archive_cmds_need_lc='no'
13164 hardcode_libdir_separator=:
13168 no_undefined_flag=' -z defs'
13169 if test yes = "$GCC"; then
13171 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
13172 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13173 $CC -shared $pic_flag $wl-z ${wl}text $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13175 case `$CC -V 2>&1` in
13178 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
13179 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13180 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
13184 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
13185 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13186 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13190 hardcode_libdir_flag_spec='-R$libdir'
13191 hardcode_shlibpath_var=no
13193 solaris2.[0-5] | solaris2.[0-5].*) ;;
13195 # The compiler driver will combine and reorder linker options,
13196 # but understands '-z linker_flag'. GCC discards it without '$wl',
13197 # but is careful enough not to reorder.
13198 # Supported since Solaris 2.6 (maybe 2.5.1?)
13199 if test yes = "$GCC"; then
13200 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
13202 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
13206 link_all_deplibs=yes
13210 if test sequent = "$host_vendor"; then
13211 # Use $CC to link under sequent, because it throws in some extra .o
13212 # files that make .init and .fini sections work.
13213 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13215 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13217 hardcode_libdir_flag_spec='-L$libdir'
13218 hardcode_direct=yes
13219 hardcode_minus_L=yes
13220 hardcode_shlibpath_var=no
13224 case $host_vendor in
13226 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13227 hardcode_direct=yes # is this really true???
13230 ## LD is ld it makes a PLAMLIB
13231 ## CC just makes a GrossModule.
13232 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13233 reload_cmds='$CC -r -o $output$reload_objs'
13237 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13238 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
13241 runpath_var='LD_RUN_PATH'
13242 hardcode_shlibpath_var=no
13246 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13247 hardcode_shlibpath_var=no
13248 export_dynamic_flag_spec='-Bexport'
13252 if test -d /usr/nec; then
13253 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13254 hardcode_shlibpath_var=no
13255 runpath_var=LD_RUN_PATH
13256 hardcode_runpath_var=yes
13261 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13262 no_undefined_flag='$wl-z,text'
13263 archive_cmds_need_lc=no
13264 hardcode_shlibpath_var=no
13265 runpath_var='LD_RUN_PATH'
13267 if test yes = "$GCC"; then
13268 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13269 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13271 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13272 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13276 sysv5* | sco3.2v5* | sco5v6*)
13277 # Note: We CANNOT use -z defs as we might desire, because we do not
13278 # link with -lc, and that would cause any symbols used from libc to
13279 # always be unresolved, which means just about no library would
13280 # ever link correctly. If we're not using GNU ld we use -z text
13281 # though, which does catch some bad symbols but isn't as heavy-handed
13283 no_undefined_flag='$wl-z,text'
13284 allow_undefined_flag='$wl-z,nodefs'
13285 archive_cmds_need_lc=no
13286 hardcode_shlibpath_var=no
13287 hardcode_libdir_flag_spec='$wl-R,$libdir'
13288 hardcode_libdir_separator=':'
13289 link_all_deplibs=yes
13290 export_dynamic_flag_spec='$wl-Bexport'
13291 runpath_var='LD_RUN_PATH'
13293 if test yes = "$GCC"; then
13294 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13295 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13297 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13298 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13303 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13304 hardcode_libdir_flag_spec='-L$libdir'
13305 hardcode_shlibpath_var=no
13313 if test sni = "$host_vendor"; then
13315 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13316 export_dynamic_flag_spec='$wl-Blargedynsym'
13322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
13323 $as_echo "$ld_shlibs" >&6; }
13324 test no = "$ld_shlibs" && can_build_shared=no
13326 with_gnu_ld=$with_gnu_ld
13343 # Do we need to explicitly link libc?
13345 case "x$archive_cmds_need_lc" in
13347 # Assume -lc should be added
13348 archive_cmds_need_lc=yes
13350 if test yes,yes = "$GCC,$enable_shared"; then
13351 case $archive_cmds in
13353 # FIXME: we may have to deal with multi-command sequences.
13356 # Test whether the compiler implicitly links with -lc since on some
13357 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13358 # to ld, don't add -lc before -lgcc.
13359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13360 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13361 if ${lt_cv_archive_cmds_need_lc+:} false; then :
13362 $as_echo_n "(cached) " >&6
13365 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13367 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13368 (eval $ac_compile) 2>&5
13370 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13371 test $ac_status = 0; } 2>conftest.err; then
13374 libobjs=conftest.$ac_objext
13376 wl=$lt_prog_compiler_wl
13377 pic_flag=$lt_prog_compiler_pic
13383 lt_save_allow_undefined_flag=$allow_undefined_flag
13384 allow_undefined_flag=
13385 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13386 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13388 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13389 test $ac_status = 0; }
13391 lt_cv_archive_cmds_need_lc=no
13393 lt_cv_archive_cmds_need_lc=yes
13395 allow_undefined_flag=$lt_save_allow_undefined_flag
13397 cat conftest.err 1>&5
13402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
13403 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
13404 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
13562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
13563 $as_echo_n "checking dynamic linker characteristics... " >&6; }
13565 if test yes = "$GCC"; then
13567 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
13568 *) lt_awk_arg='/^libraries:/' ;;
13571 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
13572 *) lt_sed_strip_eq='s|=/|/|g' ;;
13574 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
13575 case $lt_search_path_spec in
13577 # if the path contains ";" then we assume it to be the separator
13578 # otherwise default to the standard path separator (i.e. ":") - it is
13579 # assumed that no part of a normal pathname contains ";" but that should
13580 # okay in the real world where ";" in dirpaths is itself problematic.
13581 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
13584 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
13587 # Ok, now we have the path, separated by spaces, we can step through it
13588 # and add multilib dir if necessary...
13589 lt_tmp_lt_search_path_spec=
13590 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
13591 # ...but if some path component already ends with the multilib dir we assume
13592 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
13593 case "$lt_multi_os_dir; $lt_search_path_spec " in
13594 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
13598 for lt_sys_path in $lt_search_path_spec; do
13599 if test -d "$lt_sys_path$lt_multi_os_dir"; then
13600 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
13601 elif test -n "$lt_multi_os_dir"; then
13602 test -d "$lt_sys_path" && \
13603 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
13606 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
13607 BEGIN {RS = " "; FS = "/|\n";} {
13610 for (lt_i = NF; lt_i > 0; lt_i--) {
13611 if ($lt_i != "" && $lt_i != ".") {
13612 if ($lt_i == "..") {
13615 if (lt_count == 0) {
13616 lt_foo = "/" $lt_i lt_foo;
13623 if (lt_foo != "") { lt_freq[lt_foo]++; }
13624 if (lt_freq[lt_foo] == 1) { print lt_foo; }
13626 # AWK program above erroneously prepends '/' to C:/dos/paths
13629 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
13630 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
13632 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
13634 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13636 library_names_spec=
13637 libname_spec='lib$name'
13641 postuninstall_cmds=
13645 shlibpath_overrides_runpath=unknown
13647 dynamic_linker="$host_os ld.so"
13648 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13649 need_lib_prefix=unknown
13650 hardcode_into_libs=no
13652 # when you set need_version to no, make sure it does not cause -set_version
13653 # flags to be left without arguments
13654 need_version=unknown
13660 version_type=linux # correct to gnu/linux during the next big refactor
13661 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
13662 shlibpath_var=LIBPATH
13664 # AIX 3 has no versioning support, so we append a major version to the name.
13665 soname_spec='$libname$release$shared_ext$major'
13669 version_type=linux # correct to gnu/linux during the next big refactor
13672 hardcode_into_libs=yes
13673 if test ia64 = "$host_cpu"; then
13674 # AIX 5 supports IA64
13675 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
13676 shlibpath_var=LD_LIBRARY_PATH
13678 # With GCC up to 2.95.x, collect2 would create an import file
13679 # for dependence libraries. The import file would start with
13680 # the line '#! .'. This would cause the generated library to
13681 # depend on '.', always an invalid library. This was fixed in
13682 # development snapshots of GCC prior to 3.0.
13684 aix4 | aix4.[01] | aix4.[01].*)
13685 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13687 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
13690 can_build_shared=no
13694 # Using Import Files as archive members, it is possible to support
13695 # filename-based versioning of shared library archives on AIX. While
13696 # this would work for both with and without runtime linking, it will
13697 # prevent static linking of such archives. So we do filename-based
13698 # shared library versioning with .so extension only, which is used
13699 # when both runtime linking and shared linking is enabled.
13700 # Unfortunately, runtime linking may impact performance, so we do
13701 # not want this to be the default eventually. Also, we use the
13702 # versioned .so libs for executables only if there is the -brtl
13703 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
13704 # To allow for filename-based versioning support, we need to create
13705 # libNAME.so.V as an archive file, containing:
13706 # *) an Import File, referring to the versioned filename of the
13707 # archive as well as the shared archive member, telling the
13708 # bitwidth (32 or 64) of that shared object, and providing the
13709 # list of exported symbols of that shared object, eventually
13710 # decorated with the 'weak' keyword
13711 # *) the shared object with the F_LOADONLY flag set, to really avoid
13712 # it being seen by the linker.
13713 # At run time we better use the real file rather than another symlink,
13714 # but for link time we create the symlink libNAME.so -> libNAME.so.V
13716 case $with_aix_soname,$aix_use_runtimelinking in
13717 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
13718 # soname into executable. Probably we can add versioning support to
13719 # collect2, so additional links can be useful in future.
13720 aix,yes) # traditional libtool
13721 dynamic_linker='AIX unversionable lib.so'
13722 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13723 # instead of lib<name>.a to let people know that these are not
13724 # typical AIX shared libraries.
13725 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13727 aix,no) # traditional AIX only
13728 dynamic_linker='AIX lib.a(lib.so.V)'
13729 # We preserve .a as extension for shared libraries through AIX4.2
13730 # and later when we are not doing run time linking.
13731 library_names_spec='$libname$release.a $libname.a'
13732 soname_spec='$libname$release$shared_ext$major'
13734 svr4,*) # full svr4 only
13735 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
13736 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
13737 # We do not specify a path in Import Files, so LIBPATH fires.
13738 shlibpath_overrides_runpath=yes
13740 *,yes) # both, prefer svr4
13741 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
13742 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
13743 # unpreferred sharedlib libNAME.a needs extra handling
13744 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
13745 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
13746 # We do not specify a path in Import Files, so LIBPATH fires.
13747 shlibpath_overrides_runpath=yes
13749 *,no) # both, prefer aix
13750 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
13751 library_names_spec='$libname$release.a $libname.a'
13752 soname_spec='$libname$release$shared_ext$major'
13753 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
13754 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
13755 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
13758 shlibpath_var=LIBPATH
13765 # Since July 2007 AmigaOS4 officially supports .so libraries.
13766 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
13767 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13770 library_names_spec='$libname.ixlibrary $libname.a'
13771 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13772 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $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'
13778 library_names_spec='$libname$shared_ext'
13779 dynamic_linker="$host_os ld.so"
13780 shlibpath_var=LIBRARY_PATH
13784 version_type=linux # correct to gnu/linux during the next big refactor
13786 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13787 soname_spec='$libname$release$shared_ext$major'
13788 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13789 shlibpath_var=LD_LIBRARY_PATH
13790 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13791 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13792 # the default ld.so.conf also contains /usr/contrib/lib and
13793 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13794 # libtool to hard-code these into programs
13797 cygwin* | mingw* | pw32* | cegcc*)
13798 version_type=windows
13803 case $GCC,$cc_basename in
13806 library_names_spec='$libname.dll.a'
13807 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13808 postinstall_cmds='base_file=`basename \$file`~
13809 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
13810 dldir=$destdir/`dirname \$dlpath`~
13811 test -d \$dldir || mkdir -p \$dldir~
13812 $install_prog $dir/$dlname \$dldir/$dlname~
13813 chmod a+x \$dldir/$dlname~
13814 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13815 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13817 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13818 dlpath=$dir/\$dldll~
13820 shlibpath_overrides_runpath=yes
13824 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13825 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13827 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
13830 # MinGW DLLs use traditional 'lib' prefix
13831 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13834 # pw32 DLLs use 'pw' prefix rather than 'lib'
13835 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13838 dynamic_linker='Win32 ld.exe'
13843 libname_spec='$name'
13844 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13845 library_names_spec='$libname.dll.lib'
13849 sys_lib_search_path_spec=
13852 for lt_path in $LIB
13855 # Let DOS variable expansion print the short 8.3 style file name.
13856 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
13857 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
13860 # Convert to MSYS style.
13861 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
13864 # Convert to unix form, then to dos form, then back to unix form
13865 # but this time dos style (no spaces!) so that the unix form looks
13866 # like /cygdrive/c/PROGRA~1:/cygdr...
13867 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
13868 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
13869 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13872 sys_lib_search_path_spec=$LIB
13873 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
13874 # It is most probably a Windows format PATH.
13875 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13877 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13879 # FIXME: find the short name or the path components, as spaces are
13880 # common. (e.g. "Program Files" -> "PROGRA~1")
13884 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13885 postinstall_cmds='base_file=`basename \$file`~
13886 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
13887 dldir=$destdir/`dirname \$dlpath`~
13888 test -d \$dldir || mkdir -p \$dldir~
13889 $install_prog $dir/$dlname \$dldir/$dlname'
13890 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13891 dlpath=$dir/\$dldll~
13893 shlibpath_overrides_runpath=yes
13894 dynamic_linker='Win32 link.exe'
13898 # Assume MSVC wrapper
13899 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
13900 dynamic_linker='Win32 ld.exe'
13903 # FIXME: first we should search . and the directory the executable is in
13907 darwin* | rhapsody*)
13908 dynamic_linker="$host_os dyld"
13909 version_type=darwin
13912 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
13913 soname_spec='$libname$release$major$shared_ext'
13914 shlibpath_overrides_runpath=yes
13915 shlibpath_var=DYLD_LIBRARY_PATH
13916 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13918 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
13919 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13923 version_type=linux # correct to gnu/linux during the next big refactor
13926 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13927 soname_spec='$libname$release$shared_ext$major'
13928 shlibpath_var=LD_LIBRARY_PATH
13931 freebsd* | dragonfly*)
13932 # DragonFly does not have aout. When/if they implement a new
13933 # versioning mechanism, adjust this.
13934 if test -x /usr/bin/objformat; then
13935 objformat=`/usr/bin/objformat`
13938 freebsd[23].*) objformat=aout ;;
13939 *) objformat=elf ;;
13942 version_type=freebsd-$objformat
13943 case $version_type in
13945 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13946 soname_spec='$libname$release$shared_ext$major'
13951 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13955 shlibpath_var=LD_LIBRARY_PATH
13958 shlibpath_overrides_runpath=yes
13960 freebsd3.[01]* | freebsdelf3.[01]*)
13961 shlibpath_overrides_runpath=yes
13962 hardcode_into_libs=yes
13964 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13965 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13966 shlibpath_overrides_runpath=no
13967 hardcode_into_libs=yes
13969 *) # from 4.6 on, and DragonFly
13970 shlibpath_overrides_runpath=yes
13971 hardcode_into_libs=yes
13977 version_type=linux # correct to gnu/linux during the next big refactor
13980 dynamic_linker="$host_os runtime_loader"
13981 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13982 soname_spec='$libname$release$shared_ext$major'
13983 shlibpath_var=LIBRARY_PATH
13984 shlibpath_overrides_runpath=no
13985 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
13986 hardcode_into_libs=yes
13989 hpux9* | hpux10* | hpux11*)
13990 # Give a soname corresponding to the major version so that dld.sl refuses to
13991 # link against other versions.
13998 hardcode_into_libs=yes
13999 dynamic_linker="$host_os dld.so"
14000 shlibpath_var=LD_LIBRARY_PATH
14001 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14002 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14003 soname_spec='$libname$release$shared_ext$major'
14004 if test 32 = "$HPUX_IA64_MODE"; then
14005 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14006 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
14008 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14009 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
14014 hardcode_into_libs=yes
14015 dynamic_linker="$host_os dld.sl"
14016 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14017 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14018 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14019 soname_spec='$libname$release$shared_ext$major'
14020 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14021 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14025 dynamic_linker="$host_os dld.sl"
14026 shlibpath_var=SHLIB_PATH
14027 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14028 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14029 soname_spec='$libname$release$shared_ext$major'
14032 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14033 postinstall_cmds='chmod 555 $lib'
14034 # or fails outright, so override atomically:
14035 install_override_mode=555
14039 version_type=linux # correct to gnu/linux during the next big refactor
14042 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14043 soname_spec='$libname$release$shared_ext$major'
14044 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14045 shlibpath_var=LD_LIBRARY_PATH
14046 shlibpath_overrides_runpath=no
14047 hardcode_into_libs=yes
14050 irix5* | irix6* | nonstopux*)
14052 nonstopux*) version_type=nonstopux ;;
14054 if test yes = "$lt_cv_prog_gnu_ld"; then
14055 version_type=linux # correct to gnu/linux during the next big refactor
14062 soname_spec='$libname$release$shared_ext$major'
14063 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
14065 irix5* | nonstopux*)
14066 libsuff= shlibsuff=
14069 case $LD in # libtool.m4 will add one of these switches to LD
14070 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14071 libsuff= shlibsuff= libmagic=32-bit;;
14072 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14073 libsuff=32 shlibsuff=N32 libmagic=N32;;
14074 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14075 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14076 *) libsuff= shlibsuff= libmagic=never-match;;
14080 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14081 shlibpath_overrides_runpath=no
14082 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
14083 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
14084 hardcode_into_libs=yes
14087 # No shared lib support for Linux oldld, aout, or coff.
14088 linux*oldld* | linux*aout* | linux*coff*)
14093 version_type=none # Android doesn't support versioned libraries.
14096 library_names_spec='$libname$release$shared_ext'
14097 soname_spec='$libname$release$shared_ext'
14099 shlibpath_var=LD_LIBRARY_PATH
14100 shlibpath_overrides_runpath=yes
14102 # This implies no fast_install, which is unacceptable.
14103 # Some rework will be needed to allow for fast_install
14104 # before this can be enabled.
14105 hardcode_into_libs=yes
14107 dynamic_linker='Android linker'
14108 # Don't embed -rpath directories since the linker doesn't support them.
14109 hardcode_libdir_flag_spec='-L$libdir'
14112 # This must be glibc/ELF.
14113 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14114 version_type=linux # correct to gnu/linux during the next big refactor
14117 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14118 soname_spec='$libname$release$shared_ext$major'
14119 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14120 shlibpath_var=LD_LIBRARY_PATH
14121 shlibpath_overrides_runpath=no
14123 # Some binutils ld are patched to set DT_RUNPATH
14124 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
14125 $as_echo_n "(cached) " >&6
14127 lt_cv_shlibpath_overrides_runpath=no
14128 save_LDFLAGS=$LDFLAGS
14129 save_libdir=$libdir
14130 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
14131 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
14132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14133 /* end confdefs.h. */
14143 if ac_fn_c_try_link "$LINENO"; then :
14144 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14145 lt_cv_shlibpath_overrides_runpath=yes
14148 rm -f core conftest.err conftest.$ac_objext \
14149 conftest$ac_exeext conftest.$ac_ext
14150 LDFLAGS=$save_LDFLAGS
14151 libdir=$save_libdir
14155 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
14157 # This implies no fast_install, which is unacceptable.
14158 # Some rework will be needed to allow for fast_install
14159 # before this can be enabled.
14160 hardcode_into_libs=yes
14162 # Ideally, we could use ldconfig to report *all* directores which are
14163 # searched for libraries, however this is still not possible. Aside from not
14164 # being certain /sbin/ldconfig is available, command
14165 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
14166 # even though it is searched at run-time. Try to do the best guess by
14167 # appending ld.so.conf contents (and includes) to the search path.
14168 if test -f /etc/ld.so.conf; then
14169 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
14170 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14173 # We used to test for /lib/ld.so.1 and disable shared libraries on
14174 # powerpc, because MkLinux only supported shared libraries with the
14175 # GNU dynamic linker. Since this was broken with cross compilers,
14176 # most powerpc-linux boxes support dynamic linking these days and
14177 # people can always --disable-shared, the test was removed, and we
14178 # assume the GNU/Linux dynamic linker is in use.
14179 dynamic_linker='GNU/Linux ld.so'
14186 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14187 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
14188 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14189 dynamic_linker='NetBSD (a.out) ld.so'
14191 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14192 soname_spec='$libname$release$shared_ext$major'
14193 dynamic_linker='NetBSD ld.elf_so'
14195 shlibpath_var=LD_LIBRARY_PATH
14196 shlibpath_overrides_runpath=yes
14197 hardcode_into_libs=yes
14201 version_type=linux # correct to gnu/linux during the next big refactor
14202 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14203 shlibpath_var=LD_LIBRARY_PATH
14204 shlibpath_overrides_runpath=yes
14211 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14212 soname_spec='$libname$release$shared_ext$major'
14213 shlibpath_var=LD_LIBRARY_PATH
14214 shlibpath_overrides_runpath=no
14215 hardcode_into_libs=yes
14216 dynamic_linker='ldqnx.so'
14219 openbsd* | bitrig*)
14221 sys_lib_dlsearch_path_spec=/usr/lib
14223 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
14228 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
14229 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14230 shlibpath_var=LD_LIBRARY_PATH
14231 shlibpath_overrides_runpath=yes
14235 libname_spec='$name'
14236 version_type=windows
14240 # OS/2 can only load a DLL with a base name of 8 characters or less.
14241 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
14242 v=$($ECHO $release$versuffix | tr -d .-);
14243 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
14244 $ECHO $n$v`$shared_ext'
14245 library_names_spec='${libname}_dll.$libext'
14246 dynamic_linker='OS/2 ld.exe'
14247 shlibpath_var=BEGINLIBPATH
14248 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14249 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14250 postinstall_cmds='base_file=`basename \$file`~
14251 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
14252 dldir=$destdir/`dirname \$dlpath`~
14253 test -d \$dldir || mkdir -p \$dldir~
14254 $install_prog $dir/$dlname \$dldir/$dlname~
14255 chmod a+x \$dldir/$dlname~
14256 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14257 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14259 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
14260 dlpath=$dir/\$dldll~
14264 osf3* | osf4* | osf5*)
14268 soname_spec='$libname$release$shared_ext$major'
14269 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14270 shlibpath_var=LD_LIBRARY_PATH
14271 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14272 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14280 version_type=linux # correct to gnu/linux during the next big refactor
14283 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14284 soname_spec='$libname$release$shared_ext$major'
14285 shlibpath_var=LD_LIBRARY_PATH
14286 shlibpath_overrides_runpath=yes
14287 hardcode_into_libs=yes
14288 # ldd complains unless libraries are executable
14289 postinstall_cmds='chmod +x $lib'
14294 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
14295 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14296 shlibpath_var=LD_LIBRARY_PATH
14297 shlibpath_overrides_runpath=yes
14298 if test yes = "$with_gnu_ld"; then
14305 version_type=linux # correct to gnu/linux during the next big refactor
14306 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14307 soname_spec='$libname$release$shared_ext$major'
14308 shlibpath_var=LD_LIBRARY_PATH
14309 case $host_vendor in
14311 shlibpath_overrides_runpath=no
14313 runpath_var=LD_RUN_PATH
14321 shlibpath_overrides_runpath=no
14322 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14328 if test -d /usr/nec; then
14329 version_type=linux # correct to gnu/linux during the next big refactor
14330 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
14331 soname_spec='$libname$shared_ext.$major'
14332 shlibpath_var=LD_LIBRARY_PATH
14336 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14340 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
14341 soname_spec='$libname$release$shared_ext$major'
14342 shlibpath_var=LD_LIBRARY_PATH
14343 shlibpath_overrides_runpath=yes
14344 hardcode_into_libs=yes
14345 if test yes = "$with_gnu_ld"; then
14346 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14348 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14351 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14355 sys_lib_dlsearch_path_spec='/usr/lib'
14359 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
14360 version_type=linux # correct to gnu/linux during the next big refactor
14363 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14364 shlibpath_var=LD_LIBRARY_PATH
14365 shlibpath_overrides_runpath=no
14366 hardcode_into_libs=yes
14370 version_type=linux # correct to gnu/linux during the next big refactor
14371 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14372 soname_spec='$libname$release$shared_ext$major'
14373 shlibpath_var=LD_LIBRARY_PATH
14380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14381 $as_echo "$dynamic_linker" >&6; }
14382 test no = "$dynamic_linker" && can_build_shared=no
14384 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14385 if test yes = "$GCC"; then
14386 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14389 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
14390 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
14393 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
14394 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
14397 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
14398 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
14400 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
14401 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
14403 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
14404 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
14502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14503 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14505 if test -n "$hardcode_libdir_flag_spec" ||
14506 test -n "$runpath_var" ||
14507 test yes = "$hardcode_automatic"; then
14509 # We can hardcode non-existent directories.
14510 if test no != "$hardcode_direct" &&
14511 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14512 # have to relink, otherwise we might link with an installed library
14513 # when we should be linking with a yet-to-be-installed one
14514 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
14515 test no != "$hardcode_minus_L"; then
14516 # Linking always hardcodes the temporary library directory.
14517 hardcode_action=relink
14519 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14520 hardcode_action=immediate
14523 # We cannot hardcode anything, or else we can only hardcode existing
14525 hardcode_action=unsupported
14527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
14528 $as_echo "$hardcode_action" >&6; }
14530 if test relink = "$hardcode_action" ||
14531 test yes = "$inherit_rpath"; then
14532 # Fast installation is not supported
14533 enable_fast_install=no
14534 elif test yes = "$shlibpath_overrides_runpath" ||
14535 test no = "$enable_shared"; then
14536 # Fast installation is not necessary
14537 enable_fast_install=needless
14545 if test yes != "$enable_dlopen"; then
14546 enable_dlopen=unknown
14547 enable_dlopen_self=unknown
14548 enable_dlopen_self_static=unknown
14555 lt_cv_dlopen=load_add_on
14557 lt_cv_dlopen_self=yes
14560 mingw* | pw32* | cegcc*)
14561 lt_cv_dlopen=LoadLibrary
14566 lt_cv_dlopen=dlopen
14571 # if libdl is installed we need to link against it
14572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14573 $as_echo_n "checking for dlopen in -ldl... " >&6; }
14574 if ${ac_cv_lib_dl_dlopen+:} false; then :
14575 $as_echo_n "(cached) " >&6
14577 ac_check_lib_save_LIBS=$LIBS
14579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14580 /* end confdefs.h. */
14582 /* Override any GCC internal prototype to avoid an error.
14583 Use char because int might match the return type of a GCC
14584 builtin and then its argument prototype would still apply. */
14597 if ac_fn_c_try_link "$LINENO"; then :
14598 ac_cv_lib_dl_dlopen=yes
14600 ac_cv_lib_dl_dlopen=no
14602 rm -f core conftest.err conftest.$ac_objext \
14603 conftest$ac_exeext conftest.$ac_ext
14604 LIBS=$ac_check_lib_save_LIBS
14606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14607 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
14608 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
14609 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
14614 lt_cv_dlopen_self=yes
14621 # Don't try to run any link tests for TPF. We know it's impossible
14622 # because TPF is a cross-compiler, and we know how we open DSOs.
14623 lt_cv_dlopen=dlopen
14625 lt_cv_dlopen_self=no
14629 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
14630 if test "x$ac_cv_func_shl_load" = xyes; then :
14631 lt_cv_dlopen=shl_load
14633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
14634 $as_echo_n "checking for shl_load in -ldld... " >&6; }
14635 if ${ac_cv_lib_dld_shl_load+:} false; then :
14636 $as_echo_n "(cached) " >&6
14638 ac_check_lib_save_LIBS=$LIBS
14640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14641 /* end confdefs.h. */
14643 /* Override any GCC internal prototype to avoid an error.
14644 Use char because int might match the return type of a GCC
14645 builtin and then its argument prototype would still apply. */
14653 return shl_load ();
14658 if ac_fn_c_try_link "$LINENO"; then :
14659 ac_cv_lib_dld_shl_load=yes
14661 ac_cv_lib_dld_shl_load=no
14663 rm -f core conftest.err conftest.$ac_objext \
14664 conftest$ac_exeext conftest.$ac_ext
14665 LIBS=$ac_check_lib_save_LIBS
14667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
14668 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
14669 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
14670 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
14672 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
14673 if test "x$ac_cv_func_dlopen" = xyes; then :
14674 lt_cv_dlopen=dlopen
14676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14677 $as_echo_n "checking for dlopen in -ldl... " >&6; }
14678 if ${ac_cv_lib_dl_dlopen+:} false; then :
14679 $as_echo_n "(cached) " >&6
14681 ac_check_lib_save_LIBS=$LIBS
14683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14684 /* end confdefs.h. */
14686 /* Override any GCC internal prototype to avoid an error.
14687 Use char because int might match the return type of a GCC
14688 builtin and then its argument prototype would still apply. */
14701 if ac_fn_c_try_link "$LINENO"; then :
14702 ac_cv_lib_dl_dlopen=yes
14704 ac_cv_lib_dl_dlopen=no
14706 rm -f core conftest.err conftest.$ac_objext \
14707 conftest$ac_exeext conftest.$ac_ext
14708 LIBS=$ac_check_lib_save_LIBS
14710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14711 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
14712 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
14713 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
14715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
14716 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
14717 if ${ac_cv_lib_svld_dlopen+:} false; then :
14718 $as_echo_n "(cached) " >&6
14720 ac_check_lib_save_LIBS=$LIBS
14721 LIBS="-lsvld $LIBS"
14722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14723 /* end confdefs.h. */
14725 /* Override any GCC internal prototype to avoid an error.
14726 Use char because int might match the return type of a GCC
14727 builtin and then its argument prototype would still apply. */
14740 if ac_fn_c_try_link "$LINENO"; then :
14741 ac_cv_lib_svld_dlopen=yes
14743 ac_cv_lib_svld_dlopen=no
14745 rm -f core conftest.err conftest.$ac_objext \
14746 conftest$ac_exeext conftest.$ac_ext
14747 LIBS=$ac_check_lib_save_LIBS
14749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
14750 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
14751 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
14752 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
14754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
14755 $as_echo_n "checking for dld_link in -ldld... " >&6; }
14756 if ${ac_cv_lib_dld_dld_link+:} false; then :
14757 $as_echo_n "(cached) " >&6
14759 ac_check_lib_save_LIBS=$LIBS
14761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14762 /* end confdefs.h. */
14764 /* Override any GCC internal prototype to avoid an error.
14765 Use char because int might match the return type of a GCC
14766 builtin and then its argument prototype would still apply. */
14774 return dld_link ();
14779 if ac_fn_c_try_link "$LINENO"; then :
14780 ac_cv_lib_dld_dld_link=yes
14782 ac_cv_lib_dld_dld_link=no
14784 rm -f core conftest.err conftest.$ac_objext \
14785 conftest$ac_exeext conftest.$ac_ext
14786 LIBS=$ac_check_lib_save_LIBS
14788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
14789 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
14790 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
14791 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
14812 if test no = "$lt_cv_dlopen"; then
14818 case $lt_cv_dlopen in
14820 save_CPPFLAGS=$CPPFLAGS
14821 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
14823 save_LDFLAGS=$LDFLAGS
14824 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
14827 LIBS="$lt_cv_dlopen_libs $LIBS"
14829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
14830 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
14831 if ${lt_cv_dlopen_self+:} false; then :
14832 $as_echo_n "(cached) " >&6
14834 if test yes = "$cross_compiling"; then :
14835 lt_cv_dlopen_self=cross
14837 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14838 lt_status=$lt_dlunknown
14839 cat > conftest.$ac_ext <<_LT_EOF
14840 #line $LINENO "configure"
14841 #include "confdefs.h"
14850 # define LT_DLGLOBAL RTLD_GLOBAL
14853 # define LT_DLGLOBAL DL_GLOBAL
14855 # define LT_DLGLOBAL 0
14859 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14860 find out it does not work in some platform. */
14861 #ifndef LT_DLLAZY_OR_NOW
14863 # define LT_DLLAZY_OR_NOW RTLD_LAZY
14866 # define LT_DLLAZY_OR_NOW DL_LAZY
14869 # define LT_DLLAZY_OR_NOW RTLD_NOW
14872 # define LT_DLLAZY_OR_NOW DL_NOW
14874 # define LT_DLLAZY_OR_NOW 0
14881 /* When -fvisibility=hidden is used, assume the code has been annotated
14882 correspondingly for the symbols needed. */
14883 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
14884 int fnord () __attribute__((visibility("default")));
14887 int fnord () { return 42; }
14890 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14891 int status = $lt_dlunknown;
14895 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14898 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14899 else puts (dlerror ());
14901 /* dlclose (self); */
14909 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14910 (eval $ac_link) 2>&5
14912 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14913 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
14914 (./conftest; exit; ) >&5 2>/dev/null
14916 case x$lt_status in
14917 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
14918 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
14919 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
14922 # compilation failed
14923 lt_cv_dlopen_self=no
14930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
14931 $as_echo "$lt_cv_dlopen_self" >&6; }
14933 if test yes = "$lt_cv_dlopen_self"; then
14934 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
14935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
14936 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
14937 if ${lt_cv_dlopen_self_static+:} false; then :
14938 $as_echo_n "(cached) " >&6
14940 if test yes = "$cross_compiling"; then :
14941 lt_cv_dlopen_self_static=cross
14943 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14944 lt_status=$lt_dlunknown
14945 cat > conftest.$ac_ext <<_LT_EOF
14946 #line $LINENO "configure"
14947 #include "confdefs.h"
14956 # define LT_DLGLOBAL RTLD_GLOBAL
14959 # define LT_DLGLOBAL DL_GLOBAL
14961 # define LT_DLGLOBAL 0
14965 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14966 find out it does not work in some platform. */
14967 #ifndef LT_DLLAZY_OR_NOW
14969 # define LT_DLLAZY_OR_NOW RTLD_LAZY
14972 # define LT_DLLAZY_OR_NOW DL_LAZY
14975 # define LT_DLLAZY_OR_NOW RTLD_NOW
14978 # define LT_DLLAZY_OR_NOW DL_NOW
14980 # define LT_DLLAZY_OR_NOW 0
14987 /* When -fvisibility=hidden is used, assume the code has been annotated
14988 correspondingly for the symbols needed. */
14989 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
14990 int fnord () __attribute__((visibility("default")));
14993 int fnord () { return 42; }
14996 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14997 int status = $lt_dlunknown;
15001 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
15004 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
15005 else puts (dlerror ());
15007 /* dlclose (self); */
15015 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
15016 (eval $ac_link) 2>&5
15018 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15019 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
15020 (./conftest; exit; ) >&5 2>/dev/null
15022 case x$lt_status in
15023 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
15024 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
15025 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
15028 # compilation failed
15029 lt_cv_dlopen_self_static=no
15036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
15037 $as_echo "$lt_cv_dlopen_self_static" >&6; }
15040 CPPFLAGS=$save_CPPFLAGS
15041 LDFLAGS=$save_LDFLAGS
15046 case $lt_cv_dlopen_self in
15047 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
15048 *) enable_dlopen_self=unknown ;;
15051 case $lt_cv_dlopen_self_static in
15052 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
15053 *) enable_dlopen_self_static=unknown ;;
15075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
15076 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
15077 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
15078 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15079 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15081 $as_echo "yes" >&6; }
15083 # FIXME - insert some real tests, host_os isn't really good enough
15086 if test -n "$STRIP"; then
15087 striplib="$STRIP -x"
15088 old_striplib="$STRIP -S"
15089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15090 $as_echo "yes" >&6; }
15092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15093 $as_echo "no" >&6; }
15097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15098 $as_echo "no" >&6; }
15114 # Report what library types will actually be built
15115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
15116 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
15117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
15118 $as_echo "$can_build_shared" >&6; }
15120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
15121 $as_echo_n "checking whether to build shared libraries... " >&6; }
15122 test no = "$can_build_shared" && enable_shared=no
15124 # On AIX, shared libraries and static libraries use the same namespace, and
15125 # are all built from PIC.
15128 test yes = "$enable_shared" && enable_static=no
15129 if test -n "$RANLIB"; then
15130 archive_cmds="$archive_cmds~\$RANLIB \$lib"
15131 postinstall_cmds='$RANLIB $lib'
15136 if test ia64 != "$host_cpu"; then
15137 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
15138 yes,aix,yes) ;; # shared object as lib.so file only
15139 yes,svr4,*) ;; # shared object as lib.so archive member only
15140 yes,*) enable_static=no ;; # shared object in lib.a archive as well
15145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
15146 $as_echo "$enable_shared" >&6; }
15148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
15149 $as_echo_n "checking whether to build static libraries... " >&6; }
15150 # Make sure either enable_shared or enable_static is yes.
15151 test yes = "$enable_shared" || enable_static=yes
15152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
15153 $as_echo "$enable_static" >&6; }
15160 ac_cpp='$CPP $CPPFLAGS'
15161 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15162 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15163 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15167 if test -n "$CXX" && ( test no != "$CXX" &&
15168 ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
15169 (test g++ != "$CXX"))); then
15171 ac_cpp='$CXXCPP $CPPFLAGS'
15172 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15173 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15174 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
15176 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
15177 if test -z "$CXXCPP"; then
15178 if ${ac_cv_prog_CXXCPP+:} false; then :
15179 $as_echo_n "(cached) " >&6
15181 # Double quotes because CXXCPP needs to be expanded
15182 for CXXCPP in "$CXX -E" "/lib/cpp"
15184 ac_preproc_ok=false
15185 for ac_cxx_preproc_warn_flag in '' yes
15187 # Use a header file that comes with gcc, so configuring glibc
15188 # with a fresh cross-compiler works.
15189 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15190 # <limits.h> exists even on freestanding compilers.
15191 # On the NeXT, cc -E runs the code through the compiler's parser,
15192 # not just through cpp. "Syntax error" is here to catch this case.
15193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15194 /* end confdefs.h. */
15196 # include <limits.h>
15198 # include <assert.h>
15202 if ac_fn_cxx_try_cpp "$LINENO"; then :
15205 # Broken: fails on valid input.
15208 rm -f conftest.err conftest.i conftest.$ac_ext
15210 # OK, works on sane cases. Now check whether nonexistent headers
15211 # can be detected and how.
15212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15213 /* end confdefs.h. */
15214 #include <ac_nonexistent.h>
15216 if ac_fn_cxx_try_cpp "$LINENO"; then :
15217 # Broken: success on invalid input.
15220 # Passes both tests.
15224 rm -f conftest.err conftest.i conftest.$ac_ext
15227 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
15228 rm -f conftest.i conftest.err conftest.$ac_ext
15229 if $ac_preproc_ok; then :
15234 ac_cv_prog_CXXCPP=$CXXCPP
15237 CXXCPP=$ac_cv_prog_CXXCPP
15239 ac_cv_prog_CXXCPP=$CXXCPP
15241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
15242 $as_echo "$CXXCPP" >&6; }
15243 ac_preproc_ok=false
15244 for ac_cxx_preproc_warn_flag in '' yes
15246 # Use a header file that comes with gcc, so configuring glibc
15247 # with a fresh cross-compiler works.
15248 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15249 # <limits.h> exists even on freestanding compilers.
15250 # On the NeXT, cc -E runs the code through the compiler's parser,
15251 # not just through cpp. "Syntax error" is here to catch this case.
15252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15253 /* end confdefs.h. */
15255 # include <limits.h>
15257 # include <assert.h>
15261 if ac_fn_cxx_try_cpp "$LINENO"; then :
15264 # Broken: fails on valid input.
15267 rm -f conftest.err conftest.i conftest.$ac_ext
15269 # OK, works on sane cases. Now check whether nonexistent headers
15270 # can be detected and how.
15271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15272 /* end confdefs.h. */
15273 #include <ac_nonexistent.h>
15275 if ac_fn_cxx_try_cpp "$LINENO"; then :
15276 # Broken: success on invalid input.
15279 # Passes both tests.
15283 rm -f conftest.err conftest.i conftest.$ac_ext
15286 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
15287 rm -f conftest.i conftest.err conftest.$ac_ext
15288 if $ac_preproc_ok; then :
15291 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15292 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15293 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
15294 See \`config.log' for more details" "$LINENO" 5; }
15298 ac_cpp='$CPP $CPPFLAGS'
15299 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15300 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15301 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15304 _lt_caught_CXX_error=yes
15308 ac_cpp='$CXXCPP $CPPFLAGS'
15309 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15310 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15311 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15313 archive_cmds_need_lc_CXX=no
15314 allow_undefined_flag_CXX=
15315 always_export_symbols_CXX=no
15316 archive_expsym_cmds_CXX=
15317 compiler_needs_object_CXX=no
15318 export_dynamic_flag_spec_CXX=
15319 hardcode_direct_CXX=no
15320 hardcode_direct_absolute_CXX=no
15321 hardcode_libdir_flag_spec_CXX=
15322 hardcode_libdir_separator_CXX=
15323 hardcode_minus_L_CXX=no
15324 hardcode_shlibpath_var_CXX=unsupported
15325 hardcode_automatic_CXX=no
15326 inherit_rpath_CXX=no
15328 module_expsym_cmds_CXX=
15329 link_all_deplibs_CXX=unknown
15330 old_archive_cmds_CXX=$old_archive_cmds
15331 reload_flag_CXX=$reload_flag
15332 reload_cmds_CXX=$reload_cmds
15333 no_undefined_flag_CXX=
15334 whole_archive_flag_spec_CXX=
15335 enable_shared_with_static_runtimes_CXX=no
15337 # Source file extension for C++ test sources.
15340 # Object file extension for compiled C++ test sources.
15344 # No sense in running all these tests if we already determined that
15345 # the CXX compiler isn't working. Some variables (like enable_shared)
15346 # are currently assumed to apply to all compilers on this platform,
15347 # and will be corrupted by setting them based on a non-working compiler.
15348 if test yes != "$_lt_caught_CXX_error"; then
15349 # Code to be used in simple compile tests
15350 lt_simple_compile_test_code="int some_variable = 0;"
15352 # Code to be used in simple link tests
15353 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
15355 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15362 # If no C compiler was specified, use CC.
15365 # If no C compiler flags were specified, use CFLAGS.
15366 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15368 # Allow CC to be a program name with arguments.
15372 # save warnings/boilerplate of simple test code
15373 ac_outfile=conftest.$ac_objext
15374 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15375 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15376 _lt_compiler_boilerplate=`cat conftest.err`
15379 ac_outfile=conftest.$ac_objext
15380 echo "$lt_simple_link_test_code" >conftest.$ac_ext
15381 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15382 _lt_linker_boilerplate=`cat conftest.err`
15386 # Allow CC to be a program name with arguments.
15388 lt_save_CFLAGS=$CFLAGS
15392 lt_save_with_gnu_ld=$with_gnu_ld
15393 lt_save_path_LD=$lt_cv_path_LD
15394 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
15395 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
15397 $as_unset lt_cv_prog_gnu_ld
15399 if test -n "${lt_cv_path_LDCXX+set}"; then
15400 lt_cv_path_LD=$lt_cv_path_LDCXX
15402 $as_unset lt_cv_path_LD
15404 test -z "${LDCXX+set}" || LD=$LDCXX
15409 func_cc_basename $compiler
15410 cc_basename=$func_cc_basename_result
15413 if test -n "$compiler"; then
15414 # We don't want -fno-exception when compiling C++ code, so set the
15415 # no_builtin_flag separately
15416 if test yes = "$GXX"; then
15417 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
15419 lt_prog_compiler_no_builtin_flag_CXX=
15422 if test yes = "$GXX"; then
15423 # Set up default GNU C++ configuration
15427 # Check whether --with-gnu-ld was given.
15428 if test "${with_gnu_ld+set}" = set; then :
15429 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
15435 if test yes = "$GCC"; then
15436 # Check if gcc -print-prog-name=ld gives a path.
15437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
15438 $as_echo_n "checking for ld used by $CC... " >&6; }
15441 # gcc leaves a trailing carriage return, which upsets mingw
15442 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
15444 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
15447 # Accept absolute paths.
15449 re_direlt='/[^/][^/]*/\.\./'
15450 # Canonicalize the pathname of ld
15451 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
15452 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
15453 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
15455 test -z "$LD" && LD=$ac_prog
15458 # If it fails, then pretend we aren't using GCC.
15462 # If it is relative, then search for the first ld in PATH.
15463 with_gnu_ld=unknown
15466 elif test yes = "$with_gnu_ld"; then
15467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
15468 $as_echo_n "checking for GNU ld... " >&6; }
15470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
15471 $as_echo_n "checking for non-GNU ld... " >&6; }
15473 if ${lt_cv_path_LD+:} false; then :
15474 $as_echo_n "(cached) " >&6
15476 if test -z "$LD"; then
15477 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
15478 for ac_dir in $PATH; do
15480 test -z "$ac_dir" && ac_dir=.
15481 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
15482 lt_cv_path_LD=$ac_dir/$ac_prog
15483 # Check to see if the program is GNU ld. I'd rather use --version,
15484 # but apparently some variants of GNU ld only accept -v.
15485 # Break only if it was the GNU/non-GNU ld that we prefer.
15486 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
15487 *GNU* | *'with BFD'*)
15488 test no != "$with_gnu_ld" && break
15491 test yes != "$with_gnu_ld" && break
15498 lt_cv_path_LD=$LD # Let the user override the test with a path.
15503 if test -n "$LD"; then
15504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
15505 $as_echo "$LD" >&6; }
15507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15508 $as_echo "no" >&6; }
15510 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
15511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
15512 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
15513 if ${lt_cv_prog_gnu_ld+:} false; then :
15514 $as_echo_n "(cached) " >&6
15516 # I'd rather use --version here, but apparently some GNU lds only accept -v.
15517 case `$LD -v 2>&1 </dev/null` in
15518 *GNU* | *'with BFD'*)
15519 lt_cv_prog_gnu_ld=yes
15522 lt_cv_prog_gnu_ld=no
15526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
15527 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
15528 with_gnu_ld=$lt_cv_prog_gnu_ld
15536 # Check if GNU C++ uses GNU ld as the underlying linker, since the
15537 # archiving commands below assume that GNU ld is being used.
15538 if test yes = "$with_gnu_ld"; then
15539 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
15540 archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
15542 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
15543 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
15545 # If archive_cmds runs LD, not CC, wlarc should be empty
15546 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
15547 # investigate it a little bit more. (MM)
15550 # ancient GNU ld didn't support --whole-archive et. al.
15551 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
15552 $GREP 'no-whole-archive' > /dev/null; then
15553 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
15555 whole_archive_flag_spec_CXX=
15561 # A generic and very simple default shared library creation
15562 # command for GNU C++ for the case where it uses the native
15563 # linker, instead of GNU ld. If possible, this setting should
15564 # overridden to take advantage of the native linker features on
15565 # the platform it is being used on.
15566 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15569 # Commands to make compiler produce verbose output that lists
15570 # what "hidden" libraries, object files and flags are used when
15571 # linking a shared library.
15572 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
15580 # PORTME: fill in a description of your system's C++ link characteristics
15581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15582 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15586 # FIXME: insert proper C++ library support
15590 if test ia64 = "$host_cpu"; then
15591 # On IA64, the linker does run time linking by default, so we don't
15592 # have to do anything special.
15593 aix_use_runtimelinking=no
15594 exp_sym_flag='-Bexport'
15597 aix_use_runtimelinking=no
15599 # Test if we are trying to use run time linking or normal
15600 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15601 # have runtime linking enabled, and use it for executables.
15602 # For shared libraries, we enable/disable runtime linking
15603 # depending on the kind of the shared library created -
15604 # when "with_aix_soname,aix_use_runtimelinking" is:
15605 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
15606 # "aix,yes" lib.so shared, rtl:yes, for executables
15607 # lib.a static archive
15608 # "both,no" lib.so.V(shr.o) shared, rtl:yes
15609 # lib.a(lib.so.V) shared, rtl:no, for executables
15610 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
15611 # lib.a(lib.so.V) shared, rtl:no
15612 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
15613 # lib.a static archive
15614 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15615 for ld_flag in $LDFLAGS; do
15618 aix_use_runtimelinking=yes
15623 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
15624 # With aix-soname=svr4, we create the lib.so.V shared archives only,
15625 # so we don't have lib.a shared libs to link our executables.
15626 # We have to force runtime linking in this case.
15627 aix_use_runtimelinking=yes
15628 LDFLAGS="$LDFLAGS -Wl,-brtl"
15633 exp_sym_flag='-bexport'
15634 no_entry_flag='-bnoentry'
15637 # When large executables or shared objects are built, AIX ld can
15638 # have problems creating the table of contents. If linking a library
15639 # or program results in "error TOC overflow" add -mminimal-toc to
15640 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15641 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15643 archive_cmds_CXX=''
15644 hardcode_direct_CXX=yes
15645 hardcode_direct_absolute_CXX=yes
15646 hardcode_libdir_separator_CXX=':'
15647 link_all_deplibs_CXX=yes
15648 file_list_spec_CXX='$wl-f,'
15649 case $with_aix_soname,$aix_use_runtimelinking in
15650 aix,*) ;; # no import file
15651 svr4,* | *,yes) # use import file
15652 # The Import File defines what to hardcode.
15653 hardcode_direct_CXX=no
15654 hardcode_direct_absolute_CXX=no
15658 if test yes = "$GXX"; then
15659 case $host_os in aix4.[012]|aix4.[012].*)
15660 # We only want to do this on AIX 4.2 and lower, the check
15661 # below for broken collect2 doesn't work under 4.3+
15662 collect2name=`$CC -print-prog-name=collect2`
15663 if test -f "$collect2name" &&
15664 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
15666 # We have reworked collect2
15669 # We have old collect2
15670 hardcode_direct_CXX=unsupported
15671 # It fails to find uninstalled libraries when the uninstalled
15672 # path is not listed in the libpath. Setting hardcode_minus_L
15673 # to unsupported forces relinking
15674 hardcode_minus_L_CXX=yes
15675 hardcode_libdir_flag_spec_CXX='-L$libdir'
15676 hardcode_libdir_separator_CXX=
15679 shared_flag='-shared'
15680 if test yes = "$aix_use_runtimelinking"; then
15681 shared_flag=$shared_flag' $wl-G'
15683 # Need to ensure runtime linking is disabled for the traditional
15684 # shared library, or the linker may eventually find shared libraries
15685 # /with/ Import File - we do not want to mix them.
15686 shared_flag_aix='-shared'
15687 shared_flag_svr4='-shared $wl-G'
15690 if test ia64 = "$host_cpu"; then
15691 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15692 # chokes on -Wl,-G. The following line is correct:
15695 if test yes = "$aix_use_runtimelinking"; then
15696 shared_flag='$wl-G'
15698 shared_flag='$wl-bM:SRE'
15700 shared_flag_aix='$wl-bM:SRE'
15701 shared_flag_svr4='$wl-G'
15705 export_dynamic_flag_spec_CXX='$wl-bexpall'
15706 # It seems that -bexpall does not export symbols beginning with
15707 # underscore (_), so it is better to generate a list of symbols to
15709 always_export_symbols_CXX=yes
15710 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
15711 # Warning - without using the other runtime loading flags (-brtl),
15712 # -berok will link without error, but may produce a broken library.
15713 # The "-G" linker flag allows undefined symbols.
15714 no_undefined_flag_CXX='-bernotok'
15715 # Determine the default libpath from the value encoded in an empty
15717 if test set = "${lt_cv_aix_libpath+set}"; then
15718 aix_libpath=$lt_cv_aix_libpath
15720 if ${lt_cv_aix_libpath__CXX+:} false; then :
15721 $as_echo_n "(cached) " >&6
15723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15724 /* end confdefs.h. */
15734 if ac_fn_cxx_try_link "$LINENO"; then :
15736 lt_aix_libpath_sed='
15737 /Import File Strings/,/^$/ {
15739 s/^0 *\([^ ]*\) *$/\1/
15743 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15744 # Check for a 64-bit object if we didn't find anything.
15745 if test -z "$lt_cv_aix_libpath__CXX"; then
15746 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15749 rm -f core conftest.err conftest.$ac_objext \
15750 conftest$ac_exeext conftest.$ac_ext
15751 if test -z "$lt_cv_aix_libpath__CXX"; then
15752 lt_cv_aix_libpath__CXX=/usr/lib:/lib
15757 aix_libpath=$lt_cv_aix_libpath__CXX
15760 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
15762 archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
15764 if test ia64 = "$host_cpu"; then
15765 hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib'
15766 allow_undefined_flag_CXX="-z nodefs"
15767 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\$wl$no_entry_flag"' $compiler_flags $wl$allow_undefined_flag '"\$wl$exp_sym_flag:\$export_symbols"
15769 # Determine the default libpath from the value encoded in an
15770 # empty executable.
15771 if test set = "${lt_cv_aix_libpath+set}"; then
15772 aix_libpath=$lt_cv_aix_libpath
15774 if ${lt_cv_aix_libpath__CXX+:} false; then :
15775 $as_echo_n "(cached) " >&6
15777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15778 /* end confdefs.h. */
15788 if ac_fn_cxx_try_link "$LINENO"; then :
15790 lt_aix_libpath_sed='
15791 /Import File Strings/,/^$/ {
15793 s/^0 *\([^ ]*\) *$/\1/
15797 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15798 # Check for a 64-bit object if we didn't find anything.
15799 if test -z "$lt_cv_aix_libpath__CXX"; then
15800 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15803 rm -f core conftest.err conftest.$ac_objext \
15804 conftest$ac_exeext conftest.$ac_ext
15805 if test -z "$lt_cv_aix_libpath__CXX"; then
15806 lt_cv_aix_libpath__CXX=/usr/lib:/lib
15811 aix_libpath=$lt_cv_aix_libpath__CXX
15814 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
15815 # Warning - without using the other run time loading flags,
15816 # -berok will link without error, but may produce a broken library.
15817 no_undefined_flag_CXX=' $wl-bernotok'
15818 allow_undefined_flag_CXX=' $wl-berok'
15819 if test yes = "$with_gnu_ld"; then
15820 # We only use this code for GNU lds that support --whole-archive.
15821 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
15823 # Exported symbols can be pulled into shared objects from archives
15824 whole_archive_flag_spec_CXX='$convenience'
15826 archive_cmds_need_lc_CXX=yes
15827 archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
15828 # -brtl affects multiple linker settings, -berok does not and is overridden later
15829 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
15830 if test svr4 != "$with_aix_soname"; then
15831 # This is similar to how AIX traditionally builds its shared
15832 # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
15833 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
15835 if test aix != "$with_aix_soname"; then
15836 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
15838 # used by -dlpreopen to get the symbols
15839 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
15841 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d'
15847 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15848 allow_undefined_flag_CXX=unsupported
15849 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15850 # support --undefined. This deserves some investigation. FIXME
15851 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15858 case $cc_basename in
15860 # FIXME: insert proper C++ library support
15866 cygwin* | mingw* | pw32* | cegcc*)
15867 case $GXX,$cc_basename in
15870 # hardcode_libdir_flag_spec is actually meaningless, as there is
15871 # no search path for DLLs.
15872 hardcode_libdir_flag_spec_CXX=' '
15873 allow_undefined_flag_CXX=unsupported
15874 always_export_symbols_CXX=yes
15875 file_list_spec_CXX='@'
15876 # Tell ltmain to make .lib files, not .a files.
15878 # Tell ltmain to make .dll files, not .so files.
15880 # FIXME: Setting linknames here is a bad hack.
15881 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
15882 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
15883 cp "$export_symbols" "$output_objdir/$soname.def";
15884 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
15886 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
15888 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
15890 # The linker will not automatically build a static lib if we build a DLL.
15891 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
15892 enable_shared_with_static_runtimes_CXX=yes
15894 old_postinstall_cmds_CXX='chmod 644 $oldlib'
15895 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
15896 lt_tool_outputfile="@TOOL_OUTPUT@"~
15897 case $lt_outputfile in
15900 lt_outputfile=$lt_outputfile.exe
15901 lt_tool_outputfile=$lt_tool_outputfile.exe
15904 func_to_tool_file "$lt_outputfile"~
15905 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
15906 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
15907 $RM "$lt_outputfile.manifest";
15912 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
15913 # as there is no search path for DLLs.
15914 hardcode_libdir_flag_spec_CXX='-L$libdir'
15915 export_dynamic_flag_spec_CXX='$wl--export-all-symbols'
15916 allow_undefined_flag_CXX=unsupported
15917 always_export_symbols_CXX=no
15918 enable_shared_with_static_runtimes_CXX=yes
15920 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
15921 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15922 # If the export-symbols file already is a .def file, use it as
15923 # is; otherwise, prepend EXPORTS...
15924 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
15925 cp $export_symbols $output_objdir/$soname.def;
15927 echo EXPORTS > $output_objdir/$soname.def;
15928 cat $export_symbols >> $output_objdir/$soname.def;
15930 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15937 darwin* | rhapsody*)
15940 archive_cmds_need_lc_CXX=no
15941 hardcode_direct_CXX=no
15942 hardcode_automatic_CXX=yes
15943 hardcode_shlibpath_var_CXX=unsupported
15944 if test yes = "$lt_cv_ld_force_load"; then
15945 whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
15948 whole_archive_flag_spec_CXX=''
15950 link_all_deplibs_CXX=yes
15951 allow_undefined_flag_CXX=$_lt_dar_allow_undefined
15952 case $cc_basename in
15953 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
15954 *) _lt_dar_can_shared=$GCC ;;
15956 if test yes = "$_lt_dar_can_shared"; then
15957 output_verbose_link_cmd=func_echo_all
15958 archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
15959 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
15960 archive_expsym_cmds_CXX="sed 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dar_export_syms$_lt_dsymutil"
15961 module_expsym_cmds_CXX="sed -e 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dar_export_syms$_lt_dsymutil"
15962 if test yes != "$lt_cv_apple_cc_single_mod"; then
15963 archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \$lib-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$lib-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring$_lt_dsymutil"
15964 archive_expsym_cmds_CXX="sed 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \$lib-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$lib-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring$_lt_dar_export_syms$_lt_dsymutil"
15974 hardcode_libdir_flag_spec_CXX='-L$libdir'
15975 hardcode_minus_L_CXX=yes
15976 allow_undefined_flag_CXX=unsupported
15978 archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
15979 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
15980 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
15981 $ECHO EXPORTS >> $output_objdir/$libname.def~
15982 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
15983 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
15984 emximp -o $lib $output_objdir/$libname.def'
15985 archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
15986 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
15987 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
15988 $ECHO EXPORTS >> $output_objdir/$libname.def~
15989 prefix_cmds="$SED"~
15990 if test EXPORTS = "`$SED 1q $export_symbols`"; then
15991 prefix_cmds="$prefix_cmds -e 1d";
15993 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
15994 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
15995 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
15996 emximp -o $lib $output_objdir/$libname.def'
15997 old_archive_From_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
15998 enable_shared_with_static_runtimes_CXX=yes
16002 case $cc_basename in
16004 # FIXME: insert proper C++ library support
16008 # Green Hills C++ Compiler
16009 # FIXME: insert proper C++ library support
16013 # FIXME: insert proper C++ library support
16020 # C++ shared libraries reported to be fairly broken before
16026 archive_cmds_need_lc_CXX=no
16029 freebsd* | dragonfly*)
16030 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
16036 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16037 link_all_deplibs_CXX=yes
16041 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
16042 hardcode_libdir_separator_CXX=:
16043 export_dynamic_flag_spec_CXX='$wl-E'
16044 hardcode_direct_CXX=yes
16045 hardcode_minus_L_CXX=yes # Not in the search PATH,
16046 # but as the default
16047 # location of the library.
16049 case $cc_basename in
16051 # FIXME: insert proper C++ library support
16055 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
16056 # Commands to make compiler produce verbose output that lists
16057 # what "hidden" libraries, object files and flags are used when
16058 # linking a shared library.
16060 # There doesn't appear to be a way to prevent this compiler from
16061 # explicitly linking system object files so we need to strip them
16062 # from the output so that they don't get included in the library
16064 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
16067 if test yes = "$GXX"; then
16068 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
16070 # FIXME: insert proper C++ library support
16078 if test no = "$with_gnu_ld"; then
16079 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
16080 hardcode_libdir_separator_CXX=:
16086 export_dynamic_flag_spec_CXX='$wl-E'
16092 hardcode_direct_CXX=no
16093 hardcode_shlibpath_var_CXX=no
16096 hardcode_direct_CXX=yes
16097 hardcode_direct_absolute_CXX=yes
16098 hardcode_minus_L_CXX=yes # Not in the search PATH,
16099 # but as the default
16100 # location of the library.
16104 case $cc_basename in
16106 # FIXME: insert proper C++ library support
16112 archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16115 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16118 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16121 # Commands to make compiler produce verbose output that lists
16122 # what "hidden" libraries, object files and flags are used when
16123 # linking a shared library.
16125 # There doesn't appear to be a way to prevent this compiler from
16126 # explicitly linking system object files so we need to strip them
16127 # from the output so that they don't get included in the library
16129 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
16132 if test yes = "$GXX"; then
16133 if test no = "$with_gnu_ld"; then
16136 archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16139 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16142 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16147 # FIXME: insert proper C++ library support
16155 hardcode_direct_CXX=no
16156 hardcode_shlibpath_var_CXX=no
16157 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
16158 export_dynamic_flag_spec_CXX='$wl-E'
16159 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16160 # Instead, shared libraries are loaded at an image base (0x10000000 by
16161 # default) and relocated if they conflict, which is a slow very memory
16162 # consuming and fragmenting process. To avoid this, we pick a random,
16163 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16164 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16165 archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16166 archive_expsym_cmds_CXX='sed "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--retain-symbols-file,$output_objdir/$soname.expsym $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16169 case $cc_basename in
16172 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
16174 # Archives containing C++ object files must be created using
16175 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
16176 # necessary to make sure instantiated templates are included
16178 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
16181 if test yes = "$GXX"; then
16182 if test no = "$with_gnu_ld"; then
16183 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
16185 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` -o $lib'
16188 link_all_deplibs_CXX=yes
16191 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
16192 hardcode_libdir_separator_CXX=:
16193 inherit_rpath_CXX=yes
16196 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
16197 case $cc_basename in
16199 # Kuck and Associates, Inc. (KAI) C++ Compiler
16201 # KCC will only create a shared library if the output file
16202 # ends with ".so" (or ".sl" for HP-UX), so rename the library
16203 # to its proper name (with version) after linking.
16204 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
16205 archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib $wl-retain-symbols-file,$export_symbols; mv \$templib $lib'
16206 # Commands to make compiler produce verbose output that lists
16207 # what "hidden" libraries, object files and flags are used when
16208 # linking a shared library.
16210 # There doesn't appear to be a way to prevent this compiler from
16211 # explicitly linking system object files so we need to strip them
16212 # from the output so that they don't get included in the library
16214 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
16216 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
16217 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
16219 # Archives containing C++ object files must be created using
16220 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
16221 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
16226 # version 8.0 and above of icpc choke on multiply defined symbols
16227 # if we add $predep_objects and $postdep_objects, however 7.1 and
16228 # earlier do not add the objects themselves.
16229 case `$CC -V 2>&1` in
16231 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
16232 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
16234 *) # Version 8.0 or newer
16237 ia64*) tmp_idyn=' -i_dynamic';;
16239 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16240 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
16243 archive_cmds_need_lc_CXX=no
16244 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
16245 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
16246 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
16249 # Portland Group C++ compiler
16251 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
16252 prelink_cmds_CXX='tpldir=Template.dir~
16254 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
16255 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
16256 old_archive_cmds_CXX='tpldir=Template.dir~
16258 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
16259 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
16261 archive_cmds_CXX='tpldir=Template.dir~
16263 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
16264 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
16265 archive_expsym_cmds_CXX='tpldir=Template.dir~
16267 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
16268 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
16270 *) # Version 6 and above use weak symbols
16271 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
16272 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
16276 hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir'
16277 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
16278 whole_archive_flag_spec_CXX='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
16282 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
16283 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib $wl-retain-symbols-file $wl$export_symbols'
16285 runpath_var=LD_RUN_PATH
16286 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
16287 hardcode_libdir_separator_CXX=:
16289 # Commands to make compiler produce verbose output that lists
16290 # what "hidden" libraries, object files and flags are used when
16291 # linking a shared library.
16293 # There doesn't appear to be a way to prevent this compiler from
16294 # explicitly linking system object files so we need to strip them
16295 # from the output so that they don't get included in the library
16297 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
16299 xl* | mpixl* | bgxl*)
16300 # IBM XL 8.0 on PPC, with GNU ld
16301 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
16302 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
16303 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16304 if test yes = "$supports_anon_versioning"; then
16305 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
16306 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16307 echo "local: *; };" >> $output_objdir/$libname.ver~
16308 $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
16312 case `$CC -V 2>&1 | sed 5q` in
16315 no_undefined_flag_CXX=' -zdefs'
16316 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16317 archive_expsym_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file $wl$export_symbols'
16318 hardcode_libdir_flag_spec_CXX='-R$libdir'
16319 whole_archive_flag_spec_CXX='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
16320 compiler_needs_object_CXX=yes
16322 # Not sure whether something based on
16323 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
16325 output_verbose_link_cmd='func_echo_all'
16327 # Archives containing C++ object files must be created using
16328 # "CC -xar", where "CC" is the Sun C++ compiler. This is
16329 # necessary to make sure instantiated templates are included
16331 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
16339 # FIXME: insert proper C++ library support
16344 # FIXME: insert proper C++ library support
16349 case $cc_basename in
16351 # FIXME: insert proper C++ library support
16355 # FIXME: insert proper C++ library support
16362 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16363 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
16365 hardcode_libdir_flag_spec_CXX='-R$libdir'
16366 hardcode_direct_CXX=yes
16367 hardcode_shlibpath_var_CXX=no
16369 # Workaround some broken pre-1.5 toolchains
16370 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
16377 openbsd* | bitrig*)
16378 if test -f /usr/libexec/ld.so; then
16379 hardcode_direct_CXX=yes
16380 hardcode_shlibpath_var_CXX=no
16381 hardcode_direct_absolute_CXX=yes
16382 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
16383 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
16384 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
16385 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib'
16386 export_dynamic_flag_spec_CXX='$wl-E'
16387 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
16389 output_verbose_link_cmd=func_echo_all
16395 osf3* | osf4* | osf5*)
16396 case $cc_basename in
16398 # Kuck and Associates, Inc. (KAI) C++ Compiler
16400 # KCC will only create a shared library if the output file
16401 # ends with ".so" (or ".sl" for HP-UX), so rename the library
16402 # to its proper name (with version) after linking.
16403 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
16405 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
16406 hardcode_libdir_separator_CXX=:
16408 # Archives containing C++ object files must be created using
16409 # the KAI C++ compiler.
16411 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
16412 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
16416 # Rational C++ 2.4.1
16417 # FIXME: insert proper C++ library support
16423 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
16424 archive_cmds_CXX='$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $soname `test -n "$verstring" && func_echo_all "$wl-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
16425 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
16428 allow_undefined_flag_CXX=' -expect_unresolved \*'
16429 archive_cmds_CXX='$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
16430 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
16431 echo "-hidden">> $lib.exp~
16432 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname $wl-input $wl$lib.exp `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~
16434 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
16438 hardcode_libdir_separator_CXX=:
16440 # Commands to make compiler produce verbose output that lists
16441 # what "hidden" libraries, object files and flags are used when
16442 # linking a shared library.
16444 # There doesn't appear to be a way to prevent this compiler from
16445 # explicitly linking system object files so we need to strip them
16446 # from the output so that they don't get included in the library
16448 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
16451 if test yes,no = "$GXX,$with_gnu_ld"; then
16452 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
16455 archive_cmds_CXX='$CC -shared -nostdlib $allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
16458 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
16462 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
16463 hardcode_libdir_separator_CXX=:
16465 # Commands to make compiler produce verbose output that lists
16466 # what "hidden" libraries, object files and flags are used when
16467 # linking a shared library.
16468 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
16471 # FIXME: insert proper C++ library support
16479 # FIXME: insert proper C++ library support
16484 case $cc_basename in
16487 # FIXME: insert proper C++ library support
16492 # FIXME: insert proper C++ library support
16496 # FIXME: insert proper C++ library support
16503 case $cc_basename in
16505 # Sun C++ 4.2, 5.x and Centerline C++
16506 archive_cmds_need_lc_CXX=yes
16507 no_undefined_flag_CXX=' -zdefs'
16508 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16509 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16510 $CC -G$allow_undefined_flag $wl-M $wl$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
16512 hardcode_libdir_flag_spec_CXX='-R$libdir'
16513 hardcode_shlibpath_var_CXX=no
16515 solaris2.[0-5] | solaris2.[0-5].*) ;;
16517 # The compiler driver will combine and reorder linker options,
16518 # but understands '-z linker_flag'.
16519 # Supported since Solaris 2.6 (maybe 2.5.1?)
16520 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
16523 link_all_deplibs_CXX=yes
16525 output_verbose_link_cmd='func_echo_all'
16527 # Archives containing C++ object files must be created using
16528 # "CC -xar", where "CC" is the Sun C++ compiler. This is
16529 # necessary to make sure instantiated templates are included
16531 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
16534 # Green Hills C++ Compiler
16535 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
16537 # The C++ compiler must be used to create the archive.
16538 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
16541 # GNU C++ compiler with Solaris linker
16542 if test yes,no = "$GXX,$with_gnu_ld"; then
16543 no_undefined_flag_CXX=' $wl-z ${wl}defs'
16544 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
16545 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
16546 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16547 $CC -shared $pic_flag -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
16549 # Commands to make compiler produce verbose output that lists
16550 # what "hidden" libraries, object files and flags are used when
16551 # linking a shared library.
16552 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
16554 # g++ 2.7 appears to require '-G' NOT '-shared' on this
16556 archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
16557 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16558 $CC -G -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
16560 # Commands to make compiler produce verbose output that lists
16561 # what "hidden" libraries, object files and flags are used when
16562 # linking a shared library.
16563 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
16566 hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir'
16568 solaris2.[0-5] | solaris2.[0-5].*) ;;
16570 whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
16578 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
16579 no_undefined_flag_CXX='$wl-z,text'
16580 archive_cmds_need_lc_CXX=no
16581 hardcode_shlibpath_var_CXX=no
16582 runpath_var='LD_RUN_PATH'
16584 case $cc_basename in
16586 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16587 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16590 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16591 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16596 sysv5* | sco3.2v5* | sco5v6*)
16597 # Note: We CANNOT use -z defs as we might desire, because we do not
16598 # link with -lc, and that would cause any symbols used from libc to
16599 # always be unresolved, which means just about no library would
16600 # ever link correctly. If we're not using GNU ld we use -z text
16601 # though, which does catch some bad symbols but isn't as heavy-handed
16603 no_undefined_flag_CXX='$wl-z,text'
16604 allow_undefined_flag_CXX='$wl-z,nodefs'
16605 archive_cmds_need_lc_CXX=no
16606 hardcode_shlibpath_var_CXX=no
16607 hardcode_libdir_flag_spec_CXX='$wl-R,$libdir'
16608 hardcode_libdir_separator_CXX=':'
16609 link_all_deplibs_CXX=yes
16610 export_dynamic_flag_spec_CXX='$wl-Bexport'
16611 runpath_var='LD_RUN_PATH'
16613 case $cc_basename in
16615 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16616 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16617 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
16618 '"$old_archive_cmds_CXX"
16619 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
16620 '"$reload_cmds_CXX"
16623 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16624 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16630 case $cc_basename in
16632 # NonStop-UX NCC 3.20
16633 # FIXME: insert proper C++ library support
16637 # FIXME: insert proper C++ library support
16644 # FIXME: insert proper C++ library support
16649 # FIXME: insert proper C++ library support
16654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
16655 $as_echo "$ld_shlibs_CXX" >&6; }
16656 test no = "$ld_shlibs_CXX" && can_build_shared=no
16662 ## There is no encapsulation within the following macros, do not change
16663 ## the running order or otherwise move them around unless you know exactly
16664 ## what you are doing...
16665 # Dependencies to place before and after the object being linked:
16666 predep_objects_CXX=
16667 postdep_objects_CXX=
16670 compiler_lib_search_path_CXX=
16672 cat > conftest.$ac_ext <<_LT_EOF
16676 Foo (void) { a = 0; }
16683 _lt_libdeps_save_CFLAGS=$CFLAGS
16684 case "$CC $CFLAGS " in #(
16685 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
16686 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
16687 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
16690 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16691 (eval $ac_compile) 2>&5
16693 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16694 test $ac_status = 0; }; then
16695 # Parse the compiler output and extract the necessary
16696 # objects, libraries and library flags.
16698 # Sentinel used to keep track of whether or not we are before
16699 # the conftest object file.
16700 pre_test_object_deps_done=no
16702 for p in `eval "$output_verbose_link_cmd"`; do
16706 # Some compilers place space between "-{L,R}" and the path.
16707 # Remove the space.
16708 if test x-L = "$p" ||
16709 test x-R = "$p"; then
16714 # Expand the sysroot to ease extracting the directories later.
16715 if test -z "$prev"; then
16717 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
16718 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
16719 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
16723 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
16725 if test no = "$pre_test_object_deps_done"; then
16728 # Internal compiler library paths should come after those
16729 # provided the user. The postdeps already come after the
16730 # user supplied libs so there is no need to process them.
16731 if test -z "$compiler_lib_search_path_CXX"; then
16732 compiler_lib_search_path_CXX=$prev$p
16734 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p"
16737 # The "-l" case would never come before the object being
16738 # linked, so don't bother handling this case.
16741 if test -z "$postdeps_CXX"; then
16742 postdeps_CXX=$prev$p
16744 postdeps_CXX="${postdeps_CXX} $prev$p"
16750 *.lto.$objext) ;; # Ignore GCC LTO objects
16752 # This assumes that the test object file only shows up
16753 # once in the compiler output.
16754 if test "$p" = "conftest.$objext"; then
16755 pre_test_object_deps_done=yes
16759 if test no = "$pre_test_object_deps_done"; then
16760 if test -z "$predep_objects_CXX"; then
16761 predep_objects_CXX=$p
16763 predep_objects_CXX="$predep_objects_CXX $p"
16766 if test -z "$postdep_objects_CXX"; then
16767 postdep_objects_CXX=$p
16769 postdep_objects_CXX="$postdep_objects_CXX $p"
16774 *) ;; # Ignore the rest.
16782 echo "libtool.m4: error: problem compiling CXX test program"
16785 $RM -f confest.$objext
16786 CFLAGS=$_lt_libdeps_save_CFLAGS
16788 # PORTME: override above test on systems where it is broken
16791 # Interix 3.5 installs completely hosed .la files for C++, so rather than
16792 # hack all around it, let's just trust "g++" to DTRT.
16793 predep_objects_CXX=
16794 postdep_objects_CXX=
16800 case " $postdeps_CXX " in
16801 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
16803 compiler_lib_search_dirs_CXX=
16804 if test -n "${compiler_lib_search_path_CXX}"; then
16805 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'`
16838 lt_prog_compiler_wl_CXX=
16839 lt_prog_compiler_pic_CXX=
16840 lt_prog_compiler_static_CXX=
16843 # C++ specific cases for pic, static, wl, etc.
16844 if test yes = "$GXX"; then
16845 lt_prog_compiler_wl_CXX='-Wl,'
16846 lt_prog_compiler_static_CXX='-static'
16850 # All AIX code is PIC.
16851 if test ia64 = "$host_cpu"; then
16852 # AIX 5 now supports IA64 processor
16853 lt_prog_compiler_static_CXX='-Bstatic'
16855 lt_prog_compiler_pic_CXX='-fPIC'
16861 # see comment about AmigaOS4 .so support
16862 lt_prog_compiler_pic_CXX='-fPIC'
16865 # FIXME: we need at least 68020 code to build shared libraries, but
16866 # adding the '-m68020' flag to GCC prevents building anything better,
16868 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
16873 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16874 # PIC is the default for these OSes.
16876 mingw* | cygwin* | os2* | pw32* | cegcc*)
16877 # This hack is so that the source file can tell whether it is being
16878 # built for inclusion in a dll (and should export symbols for example).
16879 # Although the cygwin gcc ignores -fPIC, still need this for old-style
16880 # (--disable-auto-import) libraries
16881 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
16884 lt_prog_compiler_static_CXX='$wl-static'
16888 darwin* | rhapsody*)
16889 # PIC is the default on this platform
16890 # Common symbols not allowed in MH_DYLIB files
16891 lt_prog_compiler_pic_CXX='-fno-common'
16894 # DJGPP does not support shared libraries at all
16895 lt_prog_compiler_pic_CXX=
16898 # PIC is the default for Haiku.
16899 # The "-static" flag exists, but is broken.
16900 lt_prog_compiler_static_CXX=
16903 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16904 # Instead, we relocate shared libraries at runtime.
16907 if test -d /usr/nec; then
16908 lt_prog_compiler_pic_CXX=-Kconform_pic
16912 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
16913 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
16914 # sets the default TLS model and affects inlining.
16919 lt_prog_compiler_pic_CXX='-fPIC'
16924 # QNX uses GNU C++, but need to define -shared option too, otherwise
16925 # it will coredump.
16926 lt_prog_compiler_pic_CXX='-fPIC -shared'
16929 lt_prog_compiler_pic_CXX='-fPIC'
16935 # All AIX code is PIC.
16936 if test ia64 = "$host_cpu"; then
16937 # AIX 5 now supports IA64 processor
16938 lt_prog_compiler_static_CXX='-Bstatic'
16940 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
16944 case $cc_basename in
16946 # Green Hills C++ Compiler
16947 # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
16951 mingw* | cygwin* | os2* | pw32* | cegcc*)
16952 # This hack is so that the source file can tell whether it is being
16953 # built for inclusion in a dll (and should export symbols for example).
16954 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
16957 case $cc_basename in
16959 lt_prog_compiler_pic_CXX='-KPIC'
16962 # Green Hills C++ Compiler
16963 lt_prog_compiler_pic_CXX='-pic'
16969 freebsd* | dragonfly*)
16970 # FreeBSD uses GNU C++
16972 hpux9* | hpux10* | hpux11*)
16973 case $cc_basename in
16975 lt_prog_compiler_wl_CXX='-Wl,'
16976 lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
16977 if test ia64 != "$host_cpu"; then
16978 lt_prog_compiler_pic_CXX='+Z'
16982 lt_prog_compiler_wl_CXX='-Wl,'
16983 lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
16989 lt_prog_compiler_pic_CXX='+Z'
16998 # This is c89, which is MS Visual C++ (no shared libs)
16999 # Anyone wants to do a port?
17001 irix5* | irix6* | nonstopux*)
17002 case $cc_basename in
17004 lt_prog_compiler_wl_CXX='-Wl,'
17005 lt_prog_compiler_static_CXX='-non_shared'
17006 # CC pic flag -KPIC is the default.
17012 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
17013 case $cc_basename in
17016 lt_prog_compiler_wl_CXX='--backend -Wl,'
17017 lt_prog_compiler_pic_CXX='-fPIC'
17020 # old Intel C++ for x86_64, which still supported -KPIC.
17021 lt_prog_compiler_wl_CXX='-Wl,'
17022 lt_prog_compiler_pic_CXX='-KPIC'
17023 lt_prog_compiler_static_CXX='-static'
17026 # Intel C++, used to be incompatible with GCC.
17027 # ICC 10 doesn't accept -KPIC any more.
17028 lt_prog_compiler_wl_CXX='-Wl,'
17029 lt_prog_compiler_pic_CXX='-fPIC'
17030 lt_prog_compiler_static_CXX='-static'
17033 # Portland Group C++ compiler
17034 lt_prog_compiler_wl_CXX='-Wl,'
17035 lt_prog_compiler_pic_CXX='-fpic'
17036 lt_prog_compiler_static_CXX='-Bstatic'
17040 # Make sure the PIC flag is empty. It appears that all Alpha
17041 # Linux and Compaq Tru64 Unix objects are PIC.
17042 lt_prog_compiler_pic_CXX=
17043 lt_prog_compiler_static_CXX='-non_shared'
17045 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
17046 # IBM XL 8.0, 9.0 on PPC and BlueGene
17047 lt_prog_compiler_wl_CXX='-Wl,'
17048 lt_prog_compiler_pic_CXX='-qpic'
17049 lt_prog_compiler_static_CXX='-qstaticlink'
17052 case `$CC -V 2>&1 | sed 5q` in
17055 lt_prog_compiler_pic_CXX='-KPIC'
17056 lt_prog_compiler_static_CXX='-Bstatic'
17057 lt_prog_compiler_wl_CXX='-Qoption ld '
17068 case $cc_basename in
17070 lt_prog_compiler_pic_CXX='-W c,exportall'
17079 # QNX uses GNU C++, but need to define -shared option too, otherwise
17080 # it will coredump.
17081 lt_prog_compiler_pic_CXX='-fPIC -shared'
17083 osf3* | osf4* | osf5*)
17084 case $cc_basename in
17086 lt_prog_compiler_wl_CXX='--backend -Wl,'
17089 # Rational C++ 2.4.1
17090 lt_prog_compiler_pic_CXX='-pic'
17093 # Digital/Compaq C++
17094 lt_prog_compiler_wl_CXX='-Wl,'
17095 # Make sure the PIC flag is empty. It appears that all Alpha
17096 # Linux and Compaq Tru64 Unix objects are PIC.
17097 lt_prog_compiler_pic_CXX=
17098 lt_prog_compiler_static_CXX='-non_shared'
17107 case $cc_basename in
17109 # Sun C++ 4.2, 5.x and Centerline C++
17110 lt_prog_compiler_pic_CXX='-KPIC'
17111 lt_prog_compiler_static_CXX='-Bstatic'
17112 lt_prog_compiler_wl_CXX='-Qoption ld '
17115 # Green Hills C++ Compiler
17116 lt_prog_compiler_pic_CXX='-PIC'
17123 case $cc_basename in
17126 lt_prog_compiler_pic_CXX='-pic'
17127 lt_prog_compiler_static_CXX='-Bstatic'
17131 lt_prog_compiler_pic_CXX='-pic'
17137 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17138 case $cc_basename in
17140 lt_prog_compiler_wl_CXX='-Wl,'
17141 lt_prog_compiler_pic_CXX='-KPIC'
17142 lt_prog_compiler_static_CXX='-Bstatic'
17147 case $cc_basename in
17149 # NonStop-UX NCC 3.20
17150 lt_prog_compiler_pic_CXX='-KPIC'
17159 lt_prog_compiler_can_build_shared_CXX=no
17165 # For platforms that do not support PIC, -DPIC is meaningless:
17167 lt_prog_compiler_pic_CXX=
17170 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
17174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
17175 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
17176 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
17177 $as_echo_n "(cached) " >&6
17179 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
17181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
17182 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
17183 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
17186 # Check to make sure the PIC flag actually works.
17188 if test -n "$lt_prog_compiler_pic_CXX"; then
17189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
17190 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
17191 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
17192 $as_echo_n "(cached) " >&6
17194 lt_cv_prog_compiler_pic_works_CXX=no
17195 ac_outfile=conftest.$ac_objext
17196 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17197 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" ## exclude from sc_useless_quotes_in_assignment
17198 # Insert the option either (1) after the last *FLAGS variable, or
17199 # (2) before a word containing "conftest.", or (3) at the end.
17200 # Note that $ac_compile itself does not contain backslashes and begins
17201 # with a dollar sign (not a hyphen), so the echo should work correctly.
17202 # The option is referenced via a variable to avoid confusing sed.
17203 lt_compile=`echo "$ac_compile" | $SED \
17204 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17205 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17206 -e 's:$: $lt_compiler_flag:'`
17207 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
17208 (eval "$lt_compile" 2>conftest.err)
17210 cat conftest.err >&5
17211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17212 if (exit $ac_status) && test -s "$ac_outfile"; then
17213 # The compiler can only warn and ignore the option if not recognized
17214 # So say no if there are warnings other than the usual output.
17215 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
17216 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17217 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17218 lt_cv_prog_compiler_pic_works_CXX=yes
17224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
17225 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
17227 if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
17228 case $lt_prog_compiler_pic_CXX in
17230 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
17233 lt_prog_compiler_pic_CXX=
17234 lt_prog_compiler_can_build_shared_CXX=no
17244 # Check to make sure the static flag actually works.
17246 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
17247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17248 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
17249 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
17250 $as_echo_n "(cached) " >&6
17252 lt_cv_prog_compiler_static_works_CXX=no
17253 save_LDFLAGS=$LDFLAGS
17254 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17255 echo "$lt_simple_link_test_code" > conftest.$ac_ext
17256 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17257 # The linker can only warn and ignore the option if not recognized
17258 # So say no if there are warnings
17259 if test -s conftest.err; then
17260 # Append any errors to the config.log.
17261 cat conftest.err 1>&5
17262 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
17263 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17264 if diff conftest.exp conftest.er2 >/dev/null; then
17265 lt_cv_prog_compiler_static_works_CXX=yes
17268 lt_cv_prog_compiler_static_works_CXX=yes
17272 LDFLAGS=$save_LDFLAGS
17275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
17276 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
17278 if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
17281 lt_prog_compiler_static_CXX=
17287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
17288 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
17289 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
17290 $as_echo_n "(cached) " >&6
17292 lt_cv_prog_compiler_c_o_CXX=no
17293 $RM -r conftest 2>/dev/null
17297 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17299 lt_compiler_flag="-o out/conftest2.$ac_objext"
17300 # Insert the option either (1) after the last *FLAGS variable, or
17301 # (2) before a word containing "conftest.", or (3) at the end.
17302 # Note that $ac_compile itself does not contain backslashes and begins
17303 # with a dollar sign (not a hyphen), so the echo should work correctly.
17304 lt_compile=`echo "$ac_compile" | $SED \
17305 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17306 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17307 -e 's:$: $lt_compiler_flag:'`
17308 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
17309 (eval "$lt_compile" 2>out/conftest.err)
17311 cat out/conftest.err >&5
17312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17313 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17315 # The compiler can only warn and ignore the option if not recognized
17316 # So say no if there are warnings
17317 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
17318 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17319 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17320 lt_cv_prog_compiler_c_o_CXX=yes
17325 # SGI C++ compiler will create directory out/ii_files/ for
17326 # template instantiation
17327 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
17328 $RM out/* && rmdir out
17334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
17335 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
17339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
17340 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
17341 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
17342 $as_echo_n "(cached) " >&6
17344 lt_cv_prog_compiler_c_o_CXX=no
17345 $RM -r conftest 2>/dev/null
17349 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17351 lt_compiler_flag="-o out/conftest2.$ac_objext"
17352 # Insert the option either (1) after the last *FLAGS variable, or
17353 # (2) before a word containing "conftest.", or (3) at the end.
17354 # Note that $ac_compile itself does not contain backslashes and begins
17355 # with a dollar sign (not a hyphen), so the echo should work correctly.
17356 lt_compile=`echo "$ac_compile" | $SED \
17357 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17358 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17359 -e 's:$: $lt_compiler_flag:'`
17360 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
17361 (eval "$lt_compile" 2>out/conftest.err)
17363 cat out/conftest.err >&5
17364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17365 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17367 # The compiler can only warn and ignore the option if not recognized
17368 # So say no if there are warnings
17369 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
17370 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17371 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17372 lt_cv_prog_compiler_c_o_CXX=yes
17377 # SGI C++ compiler will create directory out/ii_files/ for
17378 # template instantiation
17379 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
17380 $RM out/* && rmdir out
17386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
17387 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
17392 hard_links=nottested
17393 if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then
17394 # do not overwrite the value of need_locks provided by the user
17395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
17396 $as_echo_n "checking if we can lock with hard links... " >&6; }
17399 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17401 ln conftest.a conftest.b 2>&5 || hard_links=no
17402 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
17404 $as_echo "$hard_links" >&6; }
17405 if test no = "$hard_links"; then
17406 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
17407 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
17416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17417 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
17419 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17420 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17423 # If we're using GNU nm, then we don't want the "-C" option.
17424 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
17425 # Without the "-l" option, or with the "-B" option, AIX nm treats
17426 # weak defined symbols like other global defined symbols, whereas
17427 # GNU nm marks them as "W".
17428 # While the 'weak' keyword is ignored in the Export File, we need
17429 # it in the Import File for the 'aix-soname' feature, so we have
17430 # to replace the "-B" option with "-P" for AIX nm.
17431 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
17432 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
17434 export_symbols_cmds_CXX='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
17438 export_symbols_cmds_CXX=$ltdll_cmds
17440 cygwin* | mingw* | cegcc*)
17441 case $cc_basename in
17443 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
17446 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
17447 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
17452 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
17457 $as_echo "$ld_shlibs_CXX" >&6; }
17458 test no = "$ld_shlibs_CXX" && can_build_shared=no
17460 with_gnu_ld_CXX=$with_gnu_ld
17468 # Do we need to explicitly link libc?
17470 case "x$archive_cmds_need_lc_CXX" in
17472 # Assume -lc should be added
17473 archive_cmds_need_lc_CXX=yes
17475 if test yes,yes = "$GCC,$enable_shared"; then
17476 case $archive_cmds_CXX in
17478 # FIXME: we may have to deal with multi-command sequences.
17481 # Test whether the compiler implicitly links with -lc since on some
17482 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17483 # to ld, don't add -lc before -lgcc.
17484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
17485 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
17486 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
17487 $as_echo_n "(cached) " >&6
17490 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17492 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17493 (eval $ac_compile) 2>&5
17495 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17496 test $ac_status = 0; } 2>conftest.err; then
17499 libobjs=conftest.$ac_objext
17501 wl=$lt_prog_compiler_wl_CXX
17502 pic_flag=$lt_prog_compiler_pic_CXX
17508 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
17509 allow_undefined_flag_CXX=
17510 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
17511 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
17513 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17514 test $ac_status = 0; }
17516 lt_cv_archive_cmds_need_lc_CXX=no
17518 lt_cv_archive_cmds_need_lc_CXX=yes
17520 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
17522 cat conftest.err 1>&5
17527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
17528 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
17529 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
17597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
17598 $as_echo_n "checking dynamic linker characteristics... " >&6; }
17600 library_names_spec=
17601 libname_spec='lib$name'
17605 postuninstall_cmds=
17609 shlibpath_overrides_runpath=unknown
17611 dynamic_linker="$host_os ld.so"
17612 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17613 need_lib_prefix=unknown
17614 hardcode_into_libs=no
17616 # when you set need_version to no, make sure it does not cause -set_version
17617 # flags to be left without arguments
17618 need_version=unknown
17624 version_type=linux # correct to gnu/linux during the next big refactor
17625 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
17626 shlibpath_var=LIBPATH
17628 # AIX 3 has no versioning support, so we append a major version to the name.
17629 soname_spec='$libname$release$shared_ext$major'
17633 version_type=linux # correct to gnu/linux during the next big refactor
17636 hardcode_into_libs=yes
17637 if test ia64 = "$host_cpu"; then
17638 # AIX 5 supports IA64
17639 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
17640 shlibpath_var=LD_LIBRARY_PATH
17642 # With GCC up to 2.95.x, collect2 would create an import file
17643 # for dependence libraries. The import file would start with
17644 # the line '#! .'. This would cause the generated library to
17645 # depend on '.', always an invalid library. This was fixed in
17646 # development snapshots of GCC prior to 3.0.
17648 aix4 | aix4.[01] | aix4.[01].*)
17649 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17651 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
17654 can_build_shared=no
17658 # Using Import Files as archive members, it is possible to support
17659 # filename-based versioning of shared library archives on AIX. While
17660 # this would work for both with and without runtime linking, it will
17661 # prevent static linking of such archives. So we do filename-based
17662 # shared library versioning with .so extension only, which is used
17663 # when both runtime linking and shared linking is enabled.
17664 # Unfortunately, runtime linking may impact performance, so we do
17665 # not want this to be the default eventually. Also, we use the
17666 # versioned .so libs for executables only if there is the -brtl
17667 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
17668 # To allow for filename-based versioning support, we need to create
17669 # libNAME.so.V as an archive file, containing:
17670 # *) an Import File, referring to the versioned filename of the
17671 # archive as well as the shared archive member, telling the
17672 # bitwidth (32 or 64) of that shared object, and providing the
17673 # list of exported symbols of that shared object, eventually
17674 # decorated with the 'weak' keyword
17675 # *) the shared object with the F_LOADONLY flag set, to really avoid
17676 # it being seen by the linker.
17677 # At run time we better use the real file rather than another symlink,
17678 # but for link time we create the symlink libNAME.so -> libNAME.so.V
17680 case $with_aix_soname,$aix_use_runtimelinking in
17681 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
17682 # soname into executable. Probably we can add versioning support to
17683 # collect2, so additional links can be useful in future.
17684 aix,yes) # traditional libtool
17685 dynamic_linker='AIX unversionable lib.so'
17686 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17687 # instead of lib<name>.a to let people know that these are not
17688 # typical AIX shared libraries.
17689 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17691 aix,no) # traditional AIX only
17692 dynamic_linker='AIX lib.a(lib.so.V)'
17693 # We preserve .a as extension for shared libraries through AIX4.2
17694 # and later when we are not doing run time linking.
17695 library_names_spec='$libname$release.a $libname.a'
17696 soname_spec='$libname$release$shared_ext$major'
17698 svr4,*) # full svr4 only
17699 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
17700 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
17701 # We do not specify a path in Import Files, so LIBPATH fires.
17702 shlibpath_overrides_runpath=yes
17704 *,yes) # both, prefer svr4
17705 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
17706 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
17707 # unpreferred sharedlib libNAME.a needs extra handling
17708 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
17709 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
17710 # We do not specify a path in Import Files, so LIBPATH fires.
17711 shlibpath_overrides_runpath=yes
17713 *,no) # both, prefer aix
17714 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
17715 library_names_spec='$libname$release.a $libname.a'
17716 soname_spec='$libname$release$shared_ext$major'
17717 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
17718 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
17719 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
17722 shlibpath_var=LIBPATH
17729 # Since July 2007 AmigaOS4 officially supports .so libraries.
17730 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
17731 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17734 library_names_spec='$libname.ixlibrary $libname.a'
17735 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17736 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $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'
17742 library_names_spec='$libname$shared_ext'
17743 dynamic_linker="$host_os ld.so"
17744 shlibpath_var=LIBRARY_PATH
17748 version_type=linux # correct to gnu/linux during the next big refactor
17750 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17751 soname_spec='$libname$release$shared_ext$major'
17752 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17753 shlibpath_var=LD_LIBRARY_PATH
17754 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17755 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17756 # the default ld.so.conf also contains /usr/contrib/lib and
17757 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17758 # libtool to hard-code these into programs
17761 cygwin* | mingw* | pw32* | cegcc*)
17762 version_type=windows
17767 case $GCC,$cc_basename in
17770 library_names_spec='$libname.dll.a'
17771 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17772 postinstall_cmds='base_file=`basename \$file`~
17773 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
17774 dldir=$destdir/`dirname \$dlpath`~
17775 test -d \$dldir || mkdir -p \$dldir~
17776 $install_prog $dir/$dlname \$dldir/$dlname~
17777 chmod a+x \$dldir/$dlname~
17778 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17779 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17781 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17782 dlpath=$dir/\$dldll~
17784 shlibpath_overrides_runpath=yes
17788 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17789 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17793 # MinGW DLLs use traditional 'lib' prefix
17794 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17797 # pw32 DLLs use 'pw' prefix rather than 'lib'
17798 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17801 dynamic_linker='Win32 ld.exe'
17806 libname_spec='$name'
17807 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17808 library_names_spec='$libname.dll.lib'
17812 sys_lib_search_path_spec=
17815 for lt_path in $LIB
17818 # Let DOS variable expansion print the short 8.3 style file name.
17819 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
17820 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
17823 # Convert to MSYS style.
17824 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
17827 # Convert to unix form, then to dos form, then back to unix form
17828 # but this time dos style (no spaces!) so that the unix form looks
17829 # like /cygdrive/c/PROGRA~1:/cygdr...
17830 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
17831 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
17832 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17835 sys_lib_search_path_spec=$LIB
17836 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
17837 # It is most probably a Windows format PATH.
17838 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17840 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17842 # FIXME: find the short name or the path components, as spaces are
17843 # common. (e.g. "Program Files" -> "PROGRA~1")
17847 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17848 postinstall_cmds='base_file=`basename \$file`~
17849 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
17850 dldir=$destdir/`dirname \$dlpath`~
17851 test -d \$dldir || mkdir -p \$dldir~
17852 $install_prog $dir/$dlname \$dldir/$dlname'
17853 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17854 dlpath=$dir/\$dldll~
17856 shlibpath_overrides_runpath=yes
17857 dynamic_linker='Win32 link.exe'
17861 # Assume MSVC wrapper
17862 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
17863 dynamic_linker='Win32 ld.exe'
17866 # FIXME: first we should search . and the directory the executable is in
17870 darwin* | rhapsody*)
17871 dynamic_linker="$host_os dyld"
17872 version_type=darwin
17875 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
17876 soname_spec='$libname$release$major$shared_ext'
17877 shlibpath_overrides_runpath=yes
17878 shlibpath_var=DYLD_LIBRARY_PATH
17879 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17881 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17885 version_type=linux # correct to gnu/linux during the next big refactor
17888 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17889 soname_spec='$libname$release$shared_ext$major'
17890 shlibpath_var=LD_LIBRARY_PATH
17893 freebsd* | dragonfly*)
17894 # DragonFly does not have aout. When/if they implement a new
17895 # versioning mechanism, adjust this.
17896 if test -x /usr/bin/objformat; then
17897 objformat=`/usr/bin/objformat`
17900 freebsd[23].*) objformat=aout ;;
17901 *) objformat=elf ;;
17904 version_type=freebsd-$objformat
17905 case $version_type in
17907 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17908 soname_spec='$libname$release$shared_ext$major'
17913 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
17917 shlibpath_var=LD_LIBRARY_PATH
17920 shlibpath_overrides_runpath=yes
17922 freebsd3.[01]* | freebsdelf3.[01]*)
17923 shlibpath_overrides_runpath=yes
17924 hardcode_into_libs=yes
17926 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17927 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17928 shlibpath_overrides_runpath=no
17929 hardcode_into_libs=yes
17931 *) # from 4.6 on, and DragonFly
17932 shlibpath_overrides_runpath=yes
17933 hardcode_into_libs=yes
17939 version_type=linux # correct to gnu/linux during the next big refactor
17942 dynamic_linker="$host_os runtime_loader"
17943 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17944 soname_spec='$libname$release$shared_ext$major'
17945 shlibpath_var=LIBRARY_PATH
17946 shlibpath_overrides_runpath=no
17947 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
17948 hardcode_into_libs=yes
17951 hpux9* | hpux10* | hpux11*)
17952 # Give a soname corresponding to the major version so that dld.sl refuses to
17953 # link against other versions.
17960 hardcode_into_libs=yes
17961 dynamic_linker="$host_os dld.so"
17962 shlibpath_var=LD_LIBRARY_PATH
17963 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17964 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17965 soname_spec='$libname$release$shared_ext$major'
17966 if test 32 = "$HPUX_IA64_MODE"; then
17967 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17968 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
17970 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17971 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
17976 hardcode_into_libs=yes
17977 dynamic_linker="$host_os dld.sl"
17978 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17979 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17980 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17981 soname_spec='$libname$release$shared_ext$major'
17982 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17983 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17987 dynamic_linker="$host_os dld.sl"
17988 shlibpath_var=SHLIB_PATH
17989 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17990 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17991 soname_spec='$libname$release$shared_ext$major'
17994 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
17995 postinstall_cmds='chmod 555 $lib'
17996 # or fails outright, so override atomically:
17997 install_override_mode=555
18001 version_type=linux # correct to gnu/linux during the next big refactor
18004 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18005 soname_spec='$libname$release$shared_ext$major'
18006 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18007 shlibpath_var=LD_LIBRARY_PATH
18008 shlibpath_overrides_runpath=no
18009 hardcode_into_libs=yes
18012 irix5* | irix6* | nonstopux*)
18014 nonstopux*) version_type=nonstopux ;;
18016 if test yes = "$lt_cv_prog_gnu_ld"; then
18017 version_type=linux # correct to gnu/linux during the next big refactor
18024 soname_spec='$libname$release$shared_ext$major'
18025 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
18027 irix5* | nonstopux*)
18028 libsuff= shlibsuff=
18031 case $LD in # libtool.m4 will add one of these switches to LD
18032 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18033 libsuff= shlibsuff= libmagic=32-bit;;
18034 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18035 libsuff=32 shlibsuff=N32 libmagic=N32;;
18036 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18037 libsuff=64 shlibsuff=64 libmagic=64-bit;;
18038 *) libsuff= shlibsuff= libmagic=never-match;;
18042 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18043 shlibpath_overrides_runpath=no
18044 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
18045 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
18046 hardcode_into_libs=yes
18049 # No shared lib support for Linux oldld, aout, or coff.
18050 linux*oldld* | linux*aout* | linux*coff*)
18055 version_type=none # Android doesn't support versioned libraries.
18058 library_names_spec='$libname$release$shared_ext'
18059 soname_spec='$libname$release$shared_ext'
18061 shlibpath_var=LD_LIBRARY_PATH
18062 shlibpath_overrides_runpath=yes
18064 # This implies no fast_install, which is unacceptable.
18065 # Some rework will be needed to allow for fast_install
18066 # before this can be enabled.
18067 hardcode_into_libs=yes
18069 dynamic_linker='Android linker'
18070 # Don't embed -rpath directories since the linker doesn't support them.
18071 hardcode_libdir_flag_spec_CXX='-L$libdir'
18074 # This must be glibc/ELF.
18075 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
18076 version_type=linux # correct to gnu/linux during the next big refactor
18079 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18080 soname_spec='$libname$release$shared_ext$major'
18081 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18082 shlibpath_var=LD_LIBRARY_PATH
18083 shlibpath_overrides_runpath=no
18085 # Some binutils ld are patched to set DT_RUNPATH
18086 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
18087 $as_echo_n "(cached) " >&6
18089 lt_cv_shlibpath_overrides_runpath=no
18090 save_LDFLAGS=$LDFLAGS
18091 save_libdir=$libdir
18092 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
18093 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
18094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18095 /* end confdefs.h. */
18105 if ac_fn_cxx_try_link "$LINENO"; then :
18106 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
18107 lt_cv_shlibpath_overrides_runpath=yes
18110 rm -f core conftest.err conftest.$ac_objext \
18111 conftest$ac_exeext conftest.$ac_ext
18112 LDFLAGS=$save_LDFLAGS
18113 libdir=$save_libdir
18117 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
18119 # This implies no fast_install, which is unacceptable.
18120 # Some rework will be needed to allow for fast_install
18121 # before this can be enabled.
18122 hardcode_into_libs=yes
18124 # Ideally, we could use ldconfig to report *all* directores which are
18125 # searched for libraries, however this is still not possible. Aside from not
18126 # being certain /sbin/ldconfig is available, command
18127 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
18128 # even though it is searched at run-time. Try to do the best guess by
18129 # appending ld.so.conf contents (and includes) to the search path.
18130 if test -f /etc/ld.so.conf; then
18131 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
18132 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18135 # We used to test for /lib/ld.so.1 and disable shared libraries on
18136 # powerpc, because MkLinux only supported shared libraries with the
18137 # GNU dynamic linker. Since this was broken with cross compilers,
18138 # most powerpc-linux boxes support dynamic linking these days and
18139 # people can always --disable-shared, the test was removed, and we
18140 # assume the GNU/Linux dynamic linker is in use.
18141 dynamic_linker='GNU/Linux ld.so'
18148 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
18149 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
18150 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18151 dynamic_linker='NetBSD (a.out) ld.so'
18153 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18154 soname_spec='$libname$release$shared_ext$major'
18155 dynamic_linker='NetBSD ld.elf_so'
18157 shlibpath_var=LD_LIBRARY_PATH
18158 shlibpath_overrides_runpath=yes
18159 hardcode_into_libs=yes
18163 version_type=linux # correct to gnu/linux during the next big refactor
18164 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18165 shlibpath_var=LD_LIBRARY_PATH
18166 shlibpath_overrides_runpath=yes
18173 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18174 soname_spec='$libname$release$shared_ext$major'
18175 shlibpath_var=LD_LIBRARY_PATH
18176 shlibpath_overrides_runpath=no
18177 hardcode_into_libs=yes
18178 dynamic_linker='ldqnx.so'
18181 openbsd* | bitrig*)
18183 sys_lib_dlsearch_path_spec=/usr/lib
18185 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
18190 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
18191 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18192 shlibpath_var=LD_LIBRARY_PATH
18193 shlibpath_overrides_runpath=yes
18197 libname_spec='$name'
18198 version_type=windows
18202 # OS/2 can only load a DLL with a base name of 8 characters or less.
18203 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
18204 v=$($ECHO $release$versuffix | tr -d .-);
18205 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
18206 $ECHO $n$v`$shared_ext'
18207 library_names_spec='${libname}_dll.$libext'
18208 dynamic_linker='OS/2 ld.exe'
18209 shlibpath_var=BEGINLIBPATH
18210 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
18211 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18212 postinstall_cmds='base_file=`basename \$file`~
18213 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
18214 dldir=$destdir/`dirname \$dlpath`~
18215 test -d \$dldir || mkdir -p \$dldir~
18216 $install_prog $dir/$dlname \$dldir/$dlname~
18217 chmod a+x \$dldir/$dlname~
18218 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
18219 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
18221 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
18222 dlpath=$dir/\$dldll~
18226 osf3* | osf4* | osf5*)
18230 soname_spec='$libname$release$shared_ext$major'
18231 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18232 shlibpath_var=LD_LIBRARY_PATH
18233 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18234 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18242 version_type=linux # correct to gnu/linux during the next big refactor
18245 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18246 soname_spec='$libname$release$shared_ext$major'
18247 shlibpath_var=LD_LIBRARY_PATH
18248 shlibpath_overrides_runpath=yes
18249 hardcode_into_libs=yes
18250 # ldd complains unless libraries are executable
18251 postinstall_cmds='chmod +x $lib'
18256 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
18257 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18258 shlibpath_var=LD_LIBRARY_PATH
18259 shlibpath_overrides_runpath=yes
18260 if test yes = "$with_gnu_ld"; then
18267 version_type=linux # correct to gnu/linux during the next big refactor
18268 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18269 soname_spec='$libname$release$shared_ext$major'
18270 shlibpath_var=LD_LIBRARY_PATH
18271 case $host_vendor in
18273 shlibpath_overrides_runpath=no
18275 runpath_var=LD_RUN_PATH
18283 shlibpath_overrides_runpath=no
18284 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18290 if test -d /usr/nec; then
18291 version_type=linux # correct to gnu/linux during the next big refactor
18292 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
18293 soname_spec='$libname$shared_ext.$major'
18294 shlibpath_var=LD_LIBRARY_PATH
18298 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18302 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
18303 soname_spec='$libname$release$shared_ext$major'
18304 shlibpath_var=LD_LIBRARY_PATH
18305 shlibpath_overrides_runpath=yes
18306 hardcode_into_libs=yes
18307 if test yes = "$with_gnu_ld"; then
18308 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18310 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18313 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18317 sys_lib_dlsearch_path_spec='/usr/lib'
18321 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
18322 version_type=linux # correct to gnu/linux during the next big refactor
18325 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18326 shlibpath_var=LD_LIBRARY_PATH
18327 shlibpath_overrides_runpath=no
18328 hardcode_into_libs=yes
18332 version_type=linux # correct to gnu/linux during the next big refactor
18333 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18334 soname_spec='$libname$release$shared_ext$major'
18335 shlibpath_var=LD_LIBRARY_PATH
18342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
18343 $as_echo "$dynamic_linker" >&6; }
18344 test no = "$dynamic_linker" && can_build_shared=no
18346 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18347 if test yes = "$GCC"; then
18348 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18351 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
18352 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
18355 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
18356 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
18359 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
18360 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
18362 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
18363 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
18365 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
18366 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
18407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
18408 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
18409 hardcode_action_CXX=
18410 if test -n "$hardcode_libdir_flag_spec_CXX" ||
18411 test -n "$runpath_var_CXX" ||
18412 test yes = "$hardcode_automatic_CXX"; then
18414 # We can hardcode non-existent directories.
18415 if test no != "$hardcode_direct_CXX" &&
18416 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18417 # have to relink, otherwise we might link with an installed library
18418 # when we should be linking with a yet-to-be-installed one
18419 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" &&
18420 test no != "$hardcode_minus_L_CXX"; then
18421 # Linking always hardcodes the temporary library directory.
18422 hardcode_action_CXX=relink
18424 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18425 hardcode_action_CXX=immediate
18428 # We cannot hardcode anything, or else we can only hardcode existing
18430 hardcode_action_CXX=unsupported
18432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
18433 $as_echo "$hardcode_action_CXX" >&6; }
18435 if test relink = "$hardcode_action_CXX" ||
18436 test yes = "$inherit_rpath_CXX"; then
18437 # Fast installation is not supported
18438 enable_fast_install=no
18439 elif test yes = "$shlibpath_overrides_runpath" ||
18440 test no = "$enable_shared"; then
18441 # Fast installation is not necessary
18442 enable_fast_install=needless
18451 fi # test -n "$compiler"
18454 CFLAGS=$lt_save_CFLAGS
18458 with_gnu_ld=$lt_save_with_gnu_ld
18459 lt_cv_path_LDCXX=$lt_cv_path_LD
18460 lt_cv_path_LD=$lt_save_path_LD
18461 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
18462 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
18463 fi # test yes != "$_lt_caught_CXX_error"
18466 ac_cpp='$CPP $CPPFLAGS'
18467 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18468 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18469 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18485 ac_config_commands="$ac_config_commands libtool"
18490 # Only expand once:
18493 # Check whether --enable-experimental-libtool was given.
18494 if test "${enable_experimental_libtool+set}" = set; then :
18495 enableval=$enable_experimental_libtool; experimental_libtool=$enableval
18497 experimental_libtool=no
18501 if test "$experimental_libtool" = "yes"; then
18502 echo "using APR's libtool"
18503 sh_libtool="`$apr_config --apr-libtool`"
18504 LIBTOOL="$sh_libtool"
18505 SVN_LIBTOOL="$sh_libtool"
18507 sh_libtool="$abs_builddir/libtool"
18508 SVN_LIBTOOL="\$(SHELL) \"$sh_libtool\""
18512 lt_pversion=`$LIBTOOL --version 2>/dev/null|$SED -e 's/([^)]*)//g;s/^[^0-9]*//;s/[- ].*//g;q'`
18513 lt_version=`echo $lt_pversion|$SED -e 's/\([a-z]*\)$/.\1/'`
18514 lt_major_version=`echo $lt_version | cut -d'.' -f 1`
18516 svn_enable_static=yes
18517 svn_enable_shared=yes
18519 # Check whether --enable-static was given.
18520 if test "${enable_static+set}" = set; then :
18521 enableval=$enable_static; svn_enable_static="$enableval"
18523 svn_enable_static="yes"
18527 # Check whether --enable-shared was given.
18528 if test "${enable_shared+set}" = set; then :
18529 enableval=$enable_shared; svn_enable_shared="$enableval"
18531 svn_enable_shared="yes"
18535 if test "$svn_enable_static" = "yes" && test "$svn_enable_shared" = "yes" ; then
18536 { $as_echo "$as_me:${as_lineno-$LINENO}: building both shared and static libraries" >&5
18537 $as_echo "$as_me: building both shared and static libraries" >&6;}
18538 elif test "$svn_enable_static" = "yes" ; then
18539 { $as_echo "$as_me:${as_lineno-$LINENO}: building static libraries only" >&5
18540 $as_echo "$as_me: building static libraries only" >&6;}
18541 LT_CFLAGS="-static $LT_CFLAGS"
18542 LT_LDFLAGS="-static $LT_LDFLAGS"
18543 elif test "$svn_enable_shared" = "yes" ; then
18544 { $as_echo "$as_me:${as_lineno-$LINENO}: building shared libraries only" >&5
18545 $as_echo "$as_me: building shared libraries only" >&6;}
18546 if test "$lt_major_version" = "1" ; then
18547 LT_CFLAGS="-prefer-pic $LT_CFLAGS"
18548 elif test "$lt_major_version" = "2" ; then
18549 LT_CFLAGS="-shared $LT_CFLAGS"
18551 LT_LDFLAGS="-shared $LT_LDFLAGS"
18553 as_fn_error $? "cannot disable both shared and static libraries" "$LINENO" 5
18556 # Check whether --enable-all-static was given.
18557 if test "${enable_all_static+set}" = set; then :
18558 enableval=$enable_all_static;
18559 if test "$enableval" = "yes" ; then
18560 LT_LDFLAGS="-all-static $LT_LDFLAGS"
18561 elif test "$enableval" != "no" ; then
18562 as_fn_error $? "--enable-all-static doesn't accept argument" "$LINENO" 5
18571 # Check whether --enable-local-library-preloading was given.
18572 if test "${enable_local_library_preloading+set}" = set; then :
18573 enableval=$enable_local_library_preloading;
18574 if test "$enableval" != "no"; then
18575 if test "$svn_enable_shared" = "yes"; then
18576 TRANSFORM_LIBTOOL_SCRIPTS="transform-libtool-scripts"
18578 as_fn_error $? "--enable-local-library-preloading conflicts with --disable-shared" "$LINENO" 5
18581 TRANSFORM_LIBTOOL_SCRIPTS=""
18586 TRANSFORM_LIBTOOL_SCRIPTS=""
18592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libtool needs -no-undefined" >&5
18593 $as_echo_n "checking whether libtool needs -no-undefined... " >&6; }
18596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18597 $as_echo "yes" >&6; }
18598 LT_NO_UNDEFINED="-no-undefined"
18601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18602 $as_echo "no" >&6; }
18610 # Check whether --with-trang was given.
18611 if test "${with_trang+set}" = set; then :
18612 withval=$with_trang;
18617 if test "$trang" = "yes"; then
18618 # Extract the first word of "trang", so it can be a program name with args.
18619 set dummy trang; ac_word=$2
18620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18621 $as_echo_n "checking for $ac_word... " >&6; }
18622 if ${ac_cv_path_TRANG+:} false; then :
18623 $as_echo_n "(cached) " >&6
18627 ac_cv_path_TRANG="$TRANG" # Let the user override the test with a path.
18630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18631 for as_dir in $PATH
18634 test -z "$as_dir" && as_dir=.
18635 for ac_exec_ext in '' $ac_executable_extensions; do
18636 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18637 ac_cv_path_TRANG="$as_dir/$ac_word$ac_exec_ext"
18638 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18645 test -z "$ac_cv_path_TRANG" && ac_cv_path_TRANG="none"
18649 TRANG=$ac_cv_path_TRANG
18650 if test -n "$TRANG"; then
18651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TRANG" >&5
18652 $as_echo "$TRANG" >&6; }
18654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18655 $as_echo "no" >&6; }
18666 # Check whether --with-doxygen was given.
18667 if test "${with_doxygen+set}" = set; then :
18668 withval=$with_doxygen;
18673 if test "$doxygen" = "yes"; then
18674 # Extract the first word of "doxygen", so it can be a program name with args.
18675 set dummy doxygen; ac_word=$2
18676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18677 $as_echo_n "checking for $ac_word... " >&6; }
18678 if ${ac_cv_path_DOXYGEN+:} false; then :
18679 $as_echo_n "(cached) " >&6
18683 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
18686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18687 for as_dir in $PATH
18690 test -z "$as_dir" && as_dir=.
18691 for ac_exec_ext in '' $ac_executable_extensions; do
18692 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18693 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
18694 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18701 test -z "$ac_cv_path_DOXYGEN" && ac_cv_path_DOXYGEN="none"
18705 DOXYGEN=$ac_cv_path_DOXYGEN
18706 if test -n "$DOXYGEN"; then
18707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOXYGEN" >&5
18708 $as_echo "$DOXYGEN" >&6; }
18710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18711 $as_echo "no" >&6; }
18724 # Check whether --with-expat was given.
18725 if test "${with_expat+set}" = set; then :
18726 withval=$with_expat; svn_lib_expat="$withval"
18728 svn_lib_expat="::expat"
18732 # APR-util accepts "builtin" as an argument to this option so if the user
18733 # passed "builtin" pretend the user didn't specify the --with-expat option
18734 # at all. Expat will (hopefully) be found in apr-util.
18735 test "_$svn_lib_expat" = "_builtin" && svn_lib_expat="::expat"
18737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Expat" >&5
18738 $as_echo_n "checking for Expat... " >&6; }
18739 if test -n "`echo "$svn_lib_expat" | $EGREP ":.*:"`"; then
18740 SVN_XML_INCLUDES=""
18741 for i in `echo "$svn_lib_expat" | $SED -e "s/\([^:]*\):.*/\1/"`; do
18742 SVN_XML_INCLUDES="$SVN_XML_INCLUDES -I$i"
18744 SVN_XML_INCLUDES="${SVN_XML_INCLUDES## }"
18745 for l in `echo "$svn_lib_expat" | $SED -e "s/.*:\([^:]*\):.*/\1/"`; do
18746 LDFLAGS="$LDFLAGS -L$l"
18748 for l in `echo "$svn_lib_expat" | $SED -e "s/.*:\([^:]*\)/\1/"`; do
18749 SVN_XML_LIBS="$SVN_XML_LIBS -l$l"
18751 SVN_XML_LIBS="${SVN_XML_LIBS## }"
18752 old_CPPFLAGS="$CPPFLAGS"
18754 CPPFLAGS="$CPPFLAGS $SVN_XML_INCLUDES"
18755 LIBS="$LIBS $SVN_XML_LIBS"
18756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18757 /* end confdefs.h. */
18761 {XML_ParserCreate(NULL);}
18763 if ac_fn_c_try_link "$LINENO"; then :
18764 svn_lib_expat="yes"
18768 rm -f core conftest.err conftest.$ac_objext \
18769 conftest$ac_exeext conftest.$ac_ext
18771 if test "$svn_lib_expat" = "yes"; then
18772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18773 $as_echo "yes" >&6; }
18775 SVN_XML_INCLUDES=""
18777 CPPFLAGS="$CPPFLAGS $SVN_APRUTIL_INCLUDES"
18778 if test "$enable_all_static" != "yes"; then
18779 SVN_APRUTIL_LIBS="$SVN_APRUTIL_LIBS `$apu_config --libs`"
18781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18782 /* end confdefs.h. */
18786 {XML_ParserCreate(NULL);}
18788 if ac_fn_c_try_compile "$LINENO"; then :
18789 svn_lib_expat="yes"
18793 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18794 if test "$svn_lib_expat" = "yes"; then
18795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18796 $as_echo "yes" >&6; }
18797 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Expat found amongst libraries used by APR-Util, but Subversion libraries might be needlessly linked against additional unused libraries. It can be avoided by specifying exact location of Expat in argument of --with-expat option." >&5
18798 $as_echo "$as_me: WARNING: Expat found amongst libraries used by APR-Util, but Subversion libraries might be needlessly linked against additional unused libraries. It can be avoided by specifying exact location of Expat in argument of --with-expat option." >&2;}
18800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18801 $as_echo "no" >&6; }
18802 as_fn_error $? "Expat not found" "$LINENO" 5
18805 CPPFLAGS="$old_CPPFLAGS"
18807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18808 $as_echo "no" >&6; }
18809 if test "$svn_lib_expat" = "yes"; then
18810 as_fn_error $? "--with-expat option requires argument" "$LINENO" 5
18811 elif test "$svn_lib_expat" = "no"; then
18812 as_fn_error $? "Expat is required" "$LINENO" 5
18814 as_fn_error $? "Invalid syntax of argument of --with-expat option" "$LINENO" 5
18821 # Berkeley DB on SCO OpenServer needs -lsocket
18822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
18823 $as_echo_n "checking for socket in -lsocket... " >&6; }
18824 if ${ac_cv_lib_socket_socket+:} false; then :
18825 $as_echo_n "(cached) " >&6
18827 ac_check_lib_save_LIBS=$LIBS
18828 LIBS="-lsocket $LIBS"
18829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18830 /* end confdefs.h. */
18832 /* Override any GCC internal prototype to avoid an error.
18833 Use char because int might match the return type of a GCC
18834 builtin and then its argument prototype would still apply. */
18847 if ac_fn_c_try_link "$LINENO"; then :
18848 ac_cv_lib_socket_socket=yes
18850 ac_cv_lib_socket_socket=no
18852 rm -f core conftest.err conftest.$ac_objext \
18853 conftest$ac_exeext conftest.$ac_ext
18854 LIBS=$ac_check_lib_save_LIBS
18856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
18857 $as_echo "$ac_cv_lib_socket_socket" >&6; }
18858 if test "x$ac_cv_lib_socket_socket" = xyes; then :
18859 cat >>confdefs.h <<_ACEOF
18860 #define HAVE_LIBSOCKET 1
18863 LIBS="-lsocket $LIBS"
18868 # Build the BDB filesystem library only if we have an appropriate
18869 # version of Berkeley DB.
18871 powerpc-apple-darwin*)
18872 # Berkeley DB 4.0 does not work on OS X.
18873 SVN_FS_WANT_DB_MAJOR=4
18874 SVN_FS_WANT_DB_MINOR=1
18875 SVN_FS_WANT_DB_PATCH=25
18878 SVN_FS_WANT_DB_MAJOR=4
18879 SVN_FS_WANT_DB_MINOR=0
18880 SVN_FS_WANT_DB_PATCH=14
18883 db_alt_version="5.x"
18884 # Look for libdb4.so first:
18886 db_version=$SVN_FS_WANT_DB_MAJOR.$SVN_FS_WANT_DB_MINOR.$SVN_FS_WANT_DB_PATCH
18889 # Check whether --with-berkeley-db was given.
18890 if test "${with_berkeley_db+set}" = set; then :
18891 withval=$with_berkeley_db;
18892 if test "$withval" = "no"; then
18894 elif test "$withval" = "yes"; then
18895 apu_db_version="`$apu_config --db-version`"
18896 if test $? -ne 0; then
18897 as_fn_error $? "Can't determine whether apr-util is linked against a
18898 proper version of Berkeley DB." "$LINENO" 5
18901 if test "$withval" = "yes"; then
18902 if test "$apu_db_version" -lt "4"; then
18903 as_fn_error $? "APR-UTIL was linked against Berkeley DB version $apu_db_version,
18904 while version 4 or higher is required. Reinstall
18905 APR-UTIL with the appropriate options." "$LINENO" 5
18908 bdb_status=required
18910 elif test "$apu_found" != "reconfig"; then
18911 if test "$apu_db_version" -lt 4; then
18912 as_fn_error $? "APR-UTIL was installed independently, it won't be
18913 possible to use the specified Berkeley DB: $withval" "$LINENO" 5
18916 bdb_status=required
18919 if echo "$withval" | $EGREP ":.*:.*:" > /dev/null; then
18920 svn_berkeley_db_header="`echo "$withval" | $SED -e "s/\([^:]*\):.*/\1/"`"
18922 for i in `echo "$withval" | $SED -e "s/.*:\([^:]*\):[^:]*:.*/\1/"`; do
18923 SVN_DB_INCLUDES="$SVN_DB_INCLUDES -I$i"
18925 SVN_DB_INCLUDES="${SVN_DB_INCLUDES## }"
18926 for l in `echo "$withval" | $SED -e "s/.*:[^:]*:\([^:]*\):.*/\1/"`; do
18927 LDFLAGS="$LDFLAGS `
18930 filtered_dirs="/lib /lib64 /usr/lib /usr/lib64"
18931 for flag in $input_flags; do
18933 for dir in $filtered_dirs; do
18934 if test "$flag" = "-L$dir" || test "$flag" = "-L$dir/"; then
18939 if test "$filter" = "no"; then
18940 output_flags="$output_flags $flag"
18943 if test -n "$output_flags"; then
18944 printf "%s" "${output_flags# }"
18949 for l in `echo "$withval" | $SED -e "s/.*:\([^:]*\)/\1/"`; do
18950 SVN_DB_LIBS="$SVN_DB_LIBS -l$l"
18952 SVN_DB_LIBS="${SVN_DB_LIBS## }"
18954 bdb_status=required
18956 as_fn_error $? "Invalid syntax of argument of --with-berkeley-db option" "$LINENO" 5
18962 # No --with-berkeley-db option:
18964 # Check if APR-UTIL is providing the correct Berkeley DB version
18967 apu_db_version="`$apu_config --db-version`"
18968 if test $? -ne 0; then
18969 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Detected older version of APR-UTIL, trying to determine
18970 whether apr-util is linked against Berkeley DB
18972 $as_echo "$as_me: WARNING: Detected older version of APR-UTIL, trying to determine
18973 whether apr-util is linked against Berkeley DB
18975 bdb_status=try-link
18976 elif test "$apu_db_version" -lt "4"; then
18979 bdb_status=try-link
18985 if test "$bdb_status" = "skip"; then
18986 svn_lib_berkeley_db=no
18988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for availability of Berkeley DB" >&5
18989 $as_echo_n "checking for availability of Berkeley DB... " >&6; }
18990 # Check whether --enable-bdb6 was given.
18991 if test "${enable_bdb6+set}" = set; then :
18992 enableval=$enable_bdb6; enable_bdb6=$enableval
18994 enable_bdb6=unspecified
18999 svn_lib_berkeley_db_try_save_cppflags="$CPPFLAGS"
19000 svn_lib_berkeley_db_try_save_libs="$LIBS"
19002 svn_check_berkeley_db_major=$SVN_FS_WANT_DB_MAJOR
19003 svn_check_berkeley_db_minor=$SVN_FS_WANT_DB_MINOR
19004 svn_check_berkeley_db_patch=$SVN_FS_WANT_DB_PATCH
19005 enable_bdb6=$enable_bdb6
19007 if test -z "$SVN_DB_LIBS"; then
19008 # We pass --dbm-libs here since Debian has modified apu-config not
19009 # to return -ldb unless --dbm-libs is passed. This may also produce
19010 # extra output beyond -ldb but since we're only filtering for -ldb
19011 # it won't matter to us. However, --dbm-libs was added to apu-config
19012 # in 1.3.8 so it's possible the version we have doesn't support it
19013 # so fallback without it if we get an error.
19014 svn_db_libs_prefiltered="`$apu_config --libs --dbm-libs`"
19015 if test $? -ne 0; then
19016 svn_db_libs_prefiltered="`$apu_config --libs`"
19019 # Extract only the -ldb.* flag from the libs supplied by apu-config
19020 # Otherwise we get bit by the fact that expat might not be built yet
19021 # Or that it resides in a non-standard location which we would have
19022 # to compensate with using something like -R`$apu_config --prefix`/lib.
19024 SVN_DB_LIBS="`echo \"$svn_db_libs_prefiltered\" | $SED -e 's/.*\(-ldb[^[:space:]]*\).*/\1/' | $EGREP -- '-ldb[^[:space:]]*'`"
19027 CPPFLAGS="$SVN_DB_INCLUDES $SVN_APRUTIL_INCLUDES $CPPFLAGS"
19028 LIBS="`$apu_config --ldflags` $SVN_DB_LIBS $LIBS"
19030 if test -n "$svn_berkeley_db_header"; then
19031 SVN_DB_HEADER="#include <$svn_berkeley_db_header>"
19032 svn_db_header="#include <$svn_berkeley_db_header>"
19034 SVN_DB_HEADER="#include <apu_want.h>"
19035 svn_db_header="#define APU_WANT_DB
19036 #include <apu_want.h>"
19041 if test "$cross_compiling" = yes; then :
19042 svn_have_berkeley_db=yes
19045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19046 /* end confdefs.h. */
19048 #include <string.h>
19049 #include <stdlib.h>
19054 int major, minor, patch;
19056 db_version (&major, &minor, &patch);
19058 /* Sanity check: ensure that db.h constants actually match the db library */
19059 if (major != DB_VERSION_MAJOR
19060 || minor != DB_VERSION_MINOR
19061 || patch != DB_VERSION_PATCH)
19064 /* Block Berkeley DB 6, because (a) we haven't tested with it, (b) 6.0.20
19065 and newer are under the AGPL, and we want use of AGPL dependencies to be
19067 if (major >= 6 && strcmp("$enable_bdb6", "yes"))
19070 /* Run-time check: ensure the library claims to be the correct version. */
19072 if (major < $svn_check_berkeley_db_major)
19074 if (major > $svn_check_berkeley_db_major)
19077 if (minor < $svn_check_berkeley_db_minor)
19079 if (minor > $svn_check_berkeley_db_minor)
19082 if (patch >= $svn_check_berkeley_db_patch)
19089 if ac_fn_c_try_run "$LINENO"; then :
19090 svn_have_berkeley_db=yes
19093 svn_have_berkeley_db=no
19094 if test $rc = 2; then
19095 svn_have_berkeley_db=no6
19098 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19099 conftest.$ac_objext conftest.beam conftest.$ac_ext
19103 CPPFLAGS="$svn_lib_berkeley_db_try_save_cppflags"
19104 LIBS="$svn_lib_berkeley_db_try_save_libs"
19107 if test "$svn_have_berkeley_db" = "yes"; then
19108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19109 $as_echo "yes" >&6; }
19110 svn_lib_berkeley_db=yes
19112 if test "$svn_have_berkeley_db" = "no6"; then
19113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (found version 6, but --enable-bdb6 not specified)" >&5
19114 $as_echo "no (found version 6, but --enable-bdb6 not specified)" >&6; }
19115 # A warning will be printed at the end of configure.ac.
19117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19118 $as_echo "no" >&6; }
19120 svn_lib_berkeley_db=no
19121 if test "$bdb_status" = "required"; then
19122 as_fn_error $? "Berkeley DB $db_version or $db_alt_version wasn't found." "$LINENO" 5
19129 cat >>confdefs.h <<_ACEOF
19130 #define SVN_FS_WANT_DB_MAJOR $SVN_FS_WANT_DB_MAJOR
19134 cat >>confdefs.h <<_ACEOF
19135 #define SVN_FS_WANT_DB_MINOR $SVN_FS_WANT_DB_MINOR
19139 cat >>confdefs.h <<_ACEOF
19140 #define SVN_FS_WANT_DB_PATCH $SVN_FS_WANT_DB_PATCH
19149 # Check whether --with-sasl was given.
19150 if test "${with_sasl+set}" = set; then :
19151 withval=$with_sasl;
19152 with_sasl="$withval"
19163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to look for SASL" >&5
19164 $as_echo_n "checking whether to look for SASL... " >&6; }
19166 if test "${with_sasl}" = "no"; then
19167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19168 $as_echo "no" >&6; }
19171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19172 $as_echo "yes" >&6; }
19173 saved_LDFLAGS="$LDFLAGS"
19174 saved_CPPFLAGS="$CPPFLAGS"
19176 if test "$with_sasl" = "yes"; then
19177 { $as_echo "$as_me:${as_lineno-$LINENO}: Looking in default locations" >&5
19178 $as_echo "$as_me: Looking in default locations" >&6;}
19179 ac_fn_c_check_header_mongrel "$LINENO" "sasl/sasl.h" "ac_cv_header_sasl_sasl_h" "$ac_includes_default"
19180 if test "x$ac_cv_header_sasl_sasl_h" = xyes; then :
19181 ac_fn_c_check_header_mongrel "$LINENO" "sasl/saslutil.h" "ac_cv_header_sasl_saslutil_h" "$ac_includes_default"
19182 if test "x$ac_cv_header_sasl_saslutil_h" = xyes; then :
19183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prop_get in -lsasl2" >&5
19184 $as_echo_n "checking for prop_get in -lsasl2... " >&6; }
19185 if ${ac_cv_lib_sasl2_prop_get+:} false; then :
19186 $as_echo_n "(cached) " >&6
19188 ac_check_lib_save_LIBS=$LIBS
19189 LIBS="-lsasl2 $LIBS"
19190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19191 /* end confdefs.h. */
19193 /* Override any GCC internal prototype to avoid an error.
19194 Use char because int might match the return type of a GCC
19195 builtin and then its argument prototype would still apply. */
19203 return prop_get ();
19208 if ac_fn_c_try_link "$LINENO"; then :
19209 ac_cv_lib_sasl2_prop_get=yes
19211 ac_cv_lib_sasl2_prop_get=no
19213 rm -f core conftest.err conftest.$ac_objext \
19214 conftest$ac_exeext conftest.$ac_ext
19215 LIBS=$ac_check_lib_save_LIBS
19217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sasl2_prop_get" >&5
19218 $as_echo "$ac_cv_lib_sasl2_prop_get" >&6; }
19219 if test "x$ac_cv_lib_sasl2_prop_get" = xyes; then :
19235 if test "$svn_lib_sasl" = "no"; then
19236 with_sasl="/usr/local"
19242 if test "$svn_lib_sasl" = "no"; then
19243 SVN_SASL_INCLUDES="-I${with_sasl}/include"
19244 CPPFLAGS="$CPPFLAGS $SVN_SASL_INCLUDES"
19245 LDFLAGS="$LDFLAGS `
19246 input_flags="-L${with_sasl}/lib"
19248 filtered_dirs="/lib /lib64 /usr/lib /usr/lib64"
19249 for flag in $input_flags; do
19251 for dir in $filtered_dirs; do
19252 if test "$flag" = "-L$dir" || test "$flag" = "-L$dir/"; then
19257 if test "$filter" = "no"; then
19258 output_flags="$output_flags $flag"
19261 if test -n "$output_flags"; then
19262 printf "%s" "${output_flags# }"
19266 ac_fn_c_check_header_mongrel "$LINENO" "sasl/sasl.h" "ac_cv_header_sasl_sasl_h" "$ac_includes_default"
19267 if test "x$ac_cv_header_sasl_sasl_h" = xyes; then :
19268 ac_fn_c_check_header_mongrel "$LINENO" "sasl/saslutil.h" "ac_cv_header_sasl_saslutil_h" "$ac_includes_default"
19269 if test "x$ac_cv_header_sasl_saslutil_h" = xyes; then :
19270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prop_get in -lsasl2" >&5
19271 $as_echo_n "checking for prop_get in -lsasl2... " >&6; }
19272 if ${ac_cv_lib_sasl2_prop_get+:} false; then :
19273 $as_echo_n "(cached) " >&6
19275 ac_check_lib_save_LIBS=$LIBS
19276 LIBS="-lsasl2 $LIBS"
19277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19278 /* end confdefs.h. */
19280 /* Override any GCC internal prototype to avoid an error.
19281 Use char because int might match the return type of a GCC
19282 builtin and then its argument prototype would still apply. */
19290 return prop_get ();
19295 if ac_fn_c_try_link "$LINENO"; then :
19296 ac_cv_lib_sasl2_prop_get=yes
19298 ac_cv_lib_sasl2_prop_get=no
19300 rm -f core conftest.err conftest.$ac_objext \
19301 conftest$ac_exeext conftest.$ac_ext
19302 LIBS=$ac_check_lib_save_LIBS
19304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sasl2_prop_get" >&5
19305 $as_echo "$ac_cv_lib_sasl2_prop_get" >&6; }
19306 if test "x$ac_cv_lib_sasl2_prop_get" = xyes; then :
19324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for availability of Cyrus SASL v2" >&5
19325 $as_echo_n "checking for availability of Cyrus SASL v2... " >&6; }
19326 if test "$svn_lib_sasl" = "yes"; then
19327 SVN_SASL_LIBS="-lsasl2"
19328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19329 $as_echo "yes" >&6; }
19331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19332 $as_echo "no" >&6; }
19334 if test "$required" = "yes"; then
19335 as_fn_error $? "Could not find Cyrus SASL v2" "$LINENO" 5
19338 SVN_SASL_INCLUDES=""
19339 LDFLAGS="$saved_LDFLAGS"
19342 CPPFLAGS="$saved_CPPFLAGS"
19349 if test "$svn_lib_sasl" = "yes"; then
19351 $as_echo "#define SVN_HAVE_SASL 1" >>confdefs.h
19357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Mach-O dynamic module iteration functions" >&5
19358 $as_echo_n "checking for Mach-O dynamic module iteration functions... " >&6; }
19359 if test "$cross_compiling" = yes; then :
19360 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19361 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19362 as_fn_error $? "cannot run test program while cross compiling
19363 See \`config.log' for more details" "$LINENO" 5; }
19365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19366 /* end confdefs.h. */
19368 #include <mach-o/dyld.h>
19369 #include <mach-o/loader.h>
19375 const struct mach_header *header = _dyld_get_image_header(0);
19376 const char *name = _dyld_get_image_name(0);
19377 if (name && header) return 0;
19384 if ac_fn_c_try_run "$LINENO"; then :
19387 $as_echo "#define SVN_HAVE_MACHO_ITERATE 1" >>confdefs.h
19389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19390 $as_echo "yes" >&6; }
19394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19395 $as_echo "no" >&6; }
19398 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19399 conftest.$ac_objext conftest.beam conftest.$ac_ext
19404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Mac OS property list utilities" >&5
19405 $as_echo_n "checking for Mac OS property list utilities... " >&6; }
19407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19408 /* end confdefs.h. */
19410 #include <AvailabilityMacros.h>
19411 #if !defined(MAC_OS_X_VERSION_MAX_ALLOWED) \
19412 || !defined(MAC_OS_X_VERSION_10_0) \
19413 || (MAC_OS_X_VERSION_MAX_ALLOWED <= MAC_OS_X_VERSION_10_0)
19414 #error ProperyList API unavailable.
19425 if ac_fn_c_try_compile "$LINENO"; then :
19427 SVN_MACOS_PLIST_LIBS="-framework CoreFoundation"
19430 $as_echo "#define SVN_HAVE_MACOS_PLIST 1" >>confdefs.h
19432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19433 $as_echo "yes" >&6; }
19437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19438 $as_echo "no" >&6; }
19441 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19444 # Check whether --enable-keychain was given.
19445 if test "${enable_keychain+set}" = set; then :
19446 enableval=$enable_keychain; enable_keychain=$enableval
19448 enable_keychain=yes
19452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Mac OS KeyChain Services" >&5
19453 $as_echo_n "checking for Mac OS KeyChain Services... " >&6; }
19455 if test "$enable_keychain" = "yes"; then
19456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19457 /* end confdefs.h. */
19459 #include <AvailabilityMacros.h>
19460 #if !defined(MAC_OS_X_VERSION_MAX_ALLOWED) \
19461 || !defined(MAC_OS_X_VERSION_10_2) \
19462 || (MAC_OS_X_VERSION_MAX_ALLOWED <= MAC_OS_X_VERSION_10_2)
19463 #error KeyChain API unavailable.
19474 if ac_fn_c_try_compile "$LINENO"; then :
19476 SVN_MACOS_KEYCHAIN_LIBS="-framework Security -framework CoreServices"
19479 $as_echo "#define SVN_HAVE_KEYCHAIN_SERVICES 1" >>confdefs.h
19481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19482 $as_echo "yes" >&6; }
19487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19488 $as_echo "no" >&6; }
19491 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether APR has support for DSOs" >&5
19497 $as_echo_n "checking whether APR has support for DSOs... " >&6; }
19498 old_CPPFLAGS="$CPPFLAGS"
19499 CPPFLAGS="$CPPFLAGS $SVN_APR_INCLUDES"
19500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19501 /* end confdefs.h. */
19508 if ac_fn_c_try_cpp "$LINENO"; then :
19510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19511 $as_echo "yes" >&6; }
19514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19515 $as_echo "no" >&6; }
19517 rm -f conftest.err conftest.i conftest.$ac_ext
19518 CPPFLAGS="$old_CPPFLAGS"
19522 if test -n "$PKG_CONFIG"; then
19523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for D-Bus .pc file" >&5
19524 $as_echo_n "checking for D-Bus .pc file... " >&6; }
19525 if $PKG_CONFIG --exists dbus-1; then
19526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19527 $as_echo "yes" >&6; }
19528 old_CPPFLAGS="$CPPFLAGS"
19530 DBUS_CPPFLAGS="`$PKG_CONFIG --cflags dbus-1`"
19531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking D-Bus version" >&5
19532 $as_echo_n "checking D-Bus version... " >&6; }
19533 DBUS_VERSION="`$PKG_CONFIG --modversion dbus-1`"
19534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBUS_VERSION" >&5
19535 $as_echo "$DBUS_VERSION" >&6; }
19536 # D-Bus 0.* requires DBUS_API_SUBJECT_TO_CHANGE
19537 if test -n "`echo "$DBUS_VERSION" | $EGREP '^0\.[[:digit:]]+'`"; then
19538 DBUS_CPPFLAGS="$DBUS_CPPFLAGS -DDBUS_API_SUBJECT_TO_CHANGE"
19540 DBUS_LIBS="`$PKG_CONFIG --libs dbus-1`"
19541 CPPFLAGS="$CPPFLAGS $DBUS_CPPFLAGS"
19542 LIBS="$LIBS $DBUS_LIBS"
19543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for D-Bus" >&5
19544 $as_echo_n "checking for D-Bus... " >&6; }
19545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19546 /* end confdefs.h. */
19548 #include <dbus/dbus.h>
19550 {dbus_bus_get(DBUS_BUS_SESSION, NULL);}
19552 if ac_fn_c_try_link "$LINENO"; then :
19557 rm -f core conftest.err conftest.$ac_objext \
19558 conftest$ac_exeext conftest.$ac_ext
19559 if test "$HAVE_DBUS" = "yes"; then
19560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19561 $as_echo "yes" >&6; }
19563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19564 $as_echo "no" >&6; }
19566 CPPFLAGS="$old_CPPFLAGS"
19569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19570 $as_echo "no" >&6; }
19576 # Check whether --with-gpg_agent was given.
19577 if test "${with_gpg_agent+set}" = set; then :
19578 withval=$with_gpg_agent;
19583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support GPG-Agent" >&5
19584 $as_echo_n "checking whether to support GPG-Agent... " >&6; }
19585 if test "$with_gpg_agent" = "yes"; then
19586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19587 $as_echo "yes" >&6; }
19589 $as_echo "#define SVN_HAVE_GPG_AGENT 1" >>confdefs.h
19592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19593 $as_echo "no" >&6; }
19600 # Check whether --with-old_gnome_keyring was given.
19601 if test "${with_old_gnome_keyring+set}" = set; then :
19602 withval=$with_old_gnome_keyring; with_old_gnome_keyring="$withval"
19604 with_old_gnome_keyring=no
19608 found_old_gnome_keyring=no
19609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to look for old GNOME Keyring" >&5
19610 $as_echo_n "checking whether to look for old GNOME Keyring... " >&6; }
19611 if test "$with_old_gnome_keyring" != "no"; then
19612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19613 $as_echo "yes" >&6; }
19616 if test "$with_old_gnome_keyring" = "yes"; then
19617 as_fn_error $? "--with-old-gnome-keyring is not supported on Mac OS X." "$LINENO" 5
19619 with_old_gnome_keyring=no
19623 if test "$svn_enable_shared" = "yes"; then
19624 if test "$APR_HAS_DSO" = "yes"; then
19625 if test -n "$PKG_CONFIG"; then
19626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLib and GNOME Keyring .pc files" >&5
19627 $as_echo_n "checking for GLib and GNOME Keyring .pc files... " >&6; }
19628 if $PKG_CONFIG --exists glib-2.0 gnome-keyring-1; then
19629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19630 $as_echo "yes" >&6; }
19631 old_CPPFLAGS="$CPPFLAGS"
19632 SVN_GNOME_KEYRING_INCLUDES="`$PKG_CONFIG --cflags glib-2.0 gnome-keyring-1`"
19633 CPPFLAGS="$CPPFLAGS $SVN_GNOME_KEYRING_INCLUDES"
19634 ac_fn_c_check_header_mongrel "$LINENO" "gnome-keyring.h" "ac_cv_header_gnome_keyring_h" "$ac_includes_default"
19635 if test "x$ac_cv_header_gnome_keyring_h" = xyes; then :
19636 found_old_gnome_keyring=yes
19638 found_old_gnome_keyring=no
19642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNOME Keyring" >&5
19643 $as_echo_n "checking for GNOME Keyring... " >&6; }
19644 if test "$found_old_gnome_keyring" = "yes"; then
19645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19646 $as_echo "yes" >&6; }
19648 $as_echo "#define SVN_HAVE_GNOME_KEYRING 1" >>confdefs.h
19650 CPPFLAGS="$old_CPPFLAGS"
19651 SVN_GNOME_KEYRING_LIBS="`$PKG_CONFIG --libs glib-2.0 gnome-keyring-1`"
19652 SVN_GNOME_KEYRING_PCLIBS="glib-2.0, gnome-keyring-1"
19654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19655 $as_echo "no" >&6; }
19656 if test "$with_old_gnome_keyring" = "yes"; then
19657 as_fn_error $? "cannot find GNOME Keyring" "$LINENO" 5
19661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19662 $as_echo "no" >&6; }
19663 if test "$with_old_gnome_keyring" = "yes"; then
19664 as_fn_error $? "cannot find GLib and GNOME Keyring .pc files." "$LINENO" 5
19666 with_old_gnome_keyring=no
19670 if test "$with_old_gnome_keyring" = "yes"; then
19671 as_fn_error $? "cannot find pkg-config. GNOME Keyring requires this." "$LINENO" 5
19673 with_old_gnome_keyring=no
19677 if test "$with_old_gnome_keyring" = "yes"; then
19678 as_fn_error $? "APR does not have support for DSOs. GNOME Keyring requires this." "$LINENO" 5
19680 with_old_gnome_keyring=no
19684 if test "$with_old_gnome_keyring" = "yes"; then
19685 as_fn_error $? "--with-old-gnome-keyring conflicts with --disable-shared" "$LINENO" 5
19687 with_old_gnome_keyring=no
19693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19694 $as_echo "no" >&6; }
19701 # Check whether --with-gnome_keyring was given.
19702 if test "${with_gnome_keyring+set}" = set; then :
19703 withval=$with_gnome_keyring; with_gnome_keyring="$withval"
19705 with_gnome_keyring=auto
19709 found_gnome_keyring="no"
19710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to look for GNOME Keyring" >&5
19711 $as_echo_n "checking whether to look for GNOME Keyring... " >&6; }
19712 if test "$found_old_gnome_keyring" = "yes" && test "$with_gnome_keyring" = "auto"; then
19713 with_gnome_keyring="no"
19715 if test "$with_gnome_keyring" != "no"; then
19716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19717 $as_echo "yes" >&6; }
19720 if test "$with_gnome_keyring" = "yes"; then
19721 as_fn_error $? "--with-gnome-keyring is not supported on Mac OS X." "$LINENO" 5
19725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNOME Keyring" >&5
19726 $as_echo_n "checking for GNOME Keyring... " >&6; }
19727 if test "$found_old_gnome_keyring" = "no"; then
19728 if test "$svn_enable_shared" = "yes"; then
19729 if test "$APR_HAS_DSO" = "yes"; then
19730 if test -n "$PKG_CONFIG"; then
19731 if $PKG_CONFIG --exists libsecret-1; then
19732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19733 $as_echo "yes" >&6; }
19735 $as_echo "#define SVN_HAVE_LIBSECRET 1" >>confdefs.h
19737 SVN_GNOME_KEYRING_INCLUDES="`$PKG_CONFIG --cflags libsecret-1`"
19738 SVN_GNOME_KEYRING_LIBS="`$PKG_CONFIG --libs libsecret-1`"
19739 SVN_GNOME_KEYRING_PCLIBS="libsecret-1"
19740 found_gnome_keyring="yes"
19742 if test "$with_gnome_keyring" = "yes"; then
19743 as_fn_error $? "cannot find libsecret" "$LINENO" 5
19747 if test "$with_gnome_keyring" = "yes"; then
19748 as_fn_error $? "cannot find pkg-config" "$LINENO" 5
19752 if test "$with_gnome_keyring" = "yes"; then
19753 as_fn_error $? "APR does not support DSOs" "$LINENO" 5
19757 if test "$with_gnome_keyring" = "yes"; then
19758 as_fn_error $? "--with-gnome-keyring conflicts with --disable-shared" "$LINENO" 5
19762 if test "$with_gnome_keyring" = "yes"; then
19763 as_fn_error $? "--with-gnome-keyring conflicts with --with-old-gnome-keyring" "$LINENO" 5
19766 if test "$found_gnome_keyring" = "no"; then
19767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19768 $as_echo "no" >&6; }
19773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19774 $as_echo "no" >&6; }
19781 # Check whether --enable-ev2-impl was given.
19782 if test "${enable_ev2_impl+set}" = set; then :
19783 enableval=$enable_ev2_impl; enable_ev2_impl=$enableval
19788 if test "$enable_ev2_impl" = "yes"; then
19790 $as_echo "#define ENABLE_EV2_IMPL 1" >>confdefs.h
19796 # Check whether --enable-nls was given.
19797 if test "${enable_nls+set}" = set; then :
19798 enableval=$enable_nls; enable_nls=$enableval
19806 if test "$enable_nls" = "yes"; then
19807 # Extract the first word of "msgfmt", so it can be a program name with args.
19808 set dummy msgfmt; ac_word=$2
19809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19810 $as_echo_n "checking for $ac_word... " >&6; }
19811 if ${ac_cv_path_MSGFMT+:} false; then :
19812 $as_echo_n "(cached) " >&6
19816 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
19819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19820 for as_dir in $PATH
19823 test -z "$as_dir" && as_dir=.
19824 for ac_exec_ext in '' $ac_executable_extensions; do
19825 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19826 ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
19827 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19834 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="none"
19838 MSGFMT=$ac_cv_path_MSGFMT
19839 if test -n "$MSGFMT"; then
19840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
19841 $as_echo "$MSGFMT" >&6; }
19843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19844 $as_echo "no" >&6; }
19848 # Extract the first word of "msgmerge", so it can be a program name with args.
19849 set dummy msgmerge; ac_word=$2
19850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19851 $as_echo_n "checking for $ac_word... " >&6; }
19852 if ${ac_cv_path_MSGMERGE+:} false; then :
19853 $as_echo_n "(cached) " >&6
19857 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
19860 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19861 for as_dir in $PATH
19864 test -z "$as_dir" && as_dir=.
19865 for ac_exec_ext in '' $ac_executable_extensions; do
19866 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19867 ac_cv_path_MSGMERGE="$as_dir/$ac_word$ac_exec_ext"
19868 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19875 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE="none"
19879 MSGMERGE=$ac_cv_path_MSGMERGE
19880 if test -n "$MSGMERGE"; then
19881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
19882 $as_echo "$MSGMERGE" >&6; }
19884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19885 $as_echo "no" >&6; }
19889 # Extract the first word of "xgettext", so it can be a program name with args.
19890 set dummy xgettext; ac_word=$2
19891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19892 $as_echo_n "checking for $ac_word... " >&6; }
19893 if ${ac_cv_path_XGETTEXT+:} false; then :
19894 $as_echo_n "(cached) " >&6
19898 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
19901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19902 for as_dir in $PATH
19905 test -z "$as_dir" && as_dir=.
19906 for ac_exec_ext in '' $ac_executable_extensions; do
19907 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19908 ac_cv_path_XGETTEXT="$as_dir/$ac_word$ac_exec_ext"
19909 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19916 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT="none"
19920 XGETTEXT=$ac_cv_path_XGETTEXT
19921 if test -n "$XGETTEXT"; then
19922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
19923 $as_echo "$XGETTEXT" >&6; }
19925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19926 $as_echo "no" >&6; }
19930 if test "$MSGFMT" != "none"; then
19931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing bindtextdomain" >&5
19932 $as_echo_n "checking for library containing bindtextdomain... " >&6; }
19933 if ${ac_cv_search_bindtextdomain+:} false; then :
19934 $as_echo_n "(cached) " >&6
19936 ac_func_search_save_LIBS=$LIBS
19937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19938 /* end confdefs.h. */
19940 /* Override any GCC internal prototype to avoid an error.
19941 Use char because int might match the return type of a GCC
19942 builtin and then its argument prototype would still apply. */
19946 char bindtextdomain ();
19950 return bindtextdomain ();
19955 for ac_lib in '' intl; do
19956 if test -z "$ac_lib"; then
19957 ac_res="none required"
19960 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19962 if ac_fn_c_try_link "$LINENO"; then :
19963 ac_cv_search_bindtextdomain=$ac_res
19965 rm -f core conftest.err conftest.$ac_objext \
19967 if ${ac_cv_search_bindtextdomain+:} false; then :
19971 if ${ac_cv_search_bindtextdomain+:} false; then :
19974 ac_cv_search_bindtextdomain=no
19976 rm conftest.$ac_ext
19977 LIBS=$ac_func_search_save_LIBS
19979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_bindtextdomain" >&5
19980 $as_echo "$ac_cv_search_bindtextdomain" >&6; }
19981 ac_res=$ac_cv_search_bindtextdomain
19982 if test "$ac_res" != no; then :
19983 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19985 # in case libintl needs to be linked explicitly,
19986 # $ac_cv_search_bindtextdomain contains -l linker flags
19987 if echo "$ac_cv_search_bindtextdomain" | grep '^-l' >/dev/null
19989 SVN_INTL_LIBS="$ac_cv_search_bindtextdomain"
19998 if test "$enable_nls" = "no"; then
19999 # Destroy the cached result so we can test again
20000 unset ac_cv_search_bindtextdomain
20001 # On some systems, libintl needs libiconv to link properly,
20002 # so try again with -liconv.
20003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing bindtextdomain" >&5
20004 $as_echo_n "checking for library containing bindtextdomain... " >&6; }
20005 if ${ac_cv_search_bindtextdomain+:} false; then :
20006 $as_echo_n "(cached) " >&6
20008 ac_func_search_save_LIBS=$LIBS
20009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20010 /* end confdefs.h. */
20012 /* Override any GCC internal prototype to avoid an error.
20013 Use char because int might match the return type of a GCC
20014 builtin and then its argument prototype would still apply. */
20018 char bindtextdomain ();
20022 return bindtextdomain ();
20027 for ac_lib in '' intl; do
20028 if test -z "$ac_lib"; then
20029 ac_res="none required"
20032 LIBS="-l$ac_lib -liconv $ac_func_search_save_LIBS"
20034 if ac_fn_c_try_link "$LINENO"; then :
20035 ac_cv_search_bindtextdomain=$ac_res
20037 rm -f core conftest.err conftest.$ac_objext \
20039 if ${ac_cv_search_bindtextdomain+:} false; then :
20043 if ${ac_cv_search_bindtextdomain+:} false; then :
20046 ac_cv_search_bindtextdomain=no
20048 rm conftest.$ac_ext
20049 LIBS=$ac_func_search_save_LIBS
20051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_bindtextdomain" >&5
20052 $as_echo "$ac_cv_search_bindtextdomain" >&6; }
20053 ac_res=$ac_cv_search_bindtextdomain
20054 if test "$ac_res" != no; then :
20055 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20058 if echo "$ac_cv_search_bindtextdomain" | grep '^-l' >/dev/null
20060 SVN_INTL_LIBS="$ac_cv_search_bindtextdomain"
20062 # This is here so that -liconv ends up in LIBS
20063 # if it worked with -liconv.
20064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libiconv_open in -liconv" >&5
20065 $as_echo_n "checking for libiconv_open in -liconv... " >&6; }
20066 if ${ac_cv_lib_iconv_libiconv_open+:} false; then :
20067 $as_echo_n "(cached) " >&6
20069 ac_check_lib_save_LIBS=$LIBS
20070 LIBS="-liconv $LIBS"
20071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20072 /* end confdefs.h. */
20074 /* Override any GCC internal prototype to avoid an error.
20075 Use char because int might match the return type of a GCC
20076 builtin and then its argument prototype would still apply. */
20080 char libiconv_open ();
20084 return libiconv_open ();
20089 if ac_fn_c_try_link "$LINENO"; then :
20090 ac_cv_lib_iconv_libiconv_open=yes
20092 ac_cv_lib_iconv_libiconv_open=no
20094 rm -f core conftest.err conftest.$ac_objext \
20095 conftest$ac_exeext conftest.$ac_ext
20096 LIBS=$ac_check_lib_save_LIBS
20098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_iconv_libiconv_open" >&5
20099 $as_echo "$ac_cv_lib_iconv_libiconv_open" >&6; }
20100 if test "x$ac_cv_lib_iconv_libiconv_open" = xyes; then :
20101 cat >>confdefs.h <<_ACEOF
20102 #define HAVE_LIBICONV 1
20105 LIBS="-liconv $LIBS"
20112 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: bindtextdomain() not found. Disabling NLS." >&5
20113 $as_echo "$as_me: WARNING: bindtextdomain() not found. Disabling NLS." >&2;}
20119 if test "$enable_nls" = "yes"; then
20121 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
20133 NO_GETTEXT_CODESET=\#
20134 if test $USE_NLS = "yes"; then
20135 for ac_func in bind_textdomain_codeset
20137 ac_fn_c_check_func "$LINENO" "bind_textdomain_codeset" "ac_cv_func_bind_textdomain_codeset"
20138 if test "x$ac_cv_func_bind_textdomain_codeset" = xyes; then :
20139 cat >>confdefs.h <<_ACEOF
20140 #define HAVE_BIND_TEXTDOMAIN_CODESET 1
20144 NO_GETTEXT_CODESET=""
20152 # Check if we are using GNU gettext.
20155 if test $USE_NLS = "yes"; then
20156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we are using GNU gettext" >&5
20157 $as_echo_n "checking if we are using GNU gettext... " >&6; }
20158 if $MSGFMT --version 2>&1 | $EGREP GNU > /dev/null; then
20162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNU_GETTEXT" >&5
20163 $as_echo "$GNU_GETTEXT" >&6; }
20171 # Check whether --with-libmagic was given.
20172 if test "${with_libmagic+set}" = set; then :
20173 withval=$with_libmagic;
20174 if test "$withval" = "yes" ; then
20175 ac_fn_c_check_header_mongrel "$LINENO" "magic.h" "ac_cv_header_magic_h" "$ac_includes_default"
20176 if test "x$ac_cv_header_magic_h" = xyes; then :
20178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for magic_open in -lmagic" >&5
20179 $as_echo_n "checking for magic_open in -lmagic... " >&6; }
20180 if ${ac_cv_lib_magic_magic_open+:} false; then :
20181 $as_echo_n "(cached) " >&6
20183 ac_check_lib_save_LIBS=$LIBS
20184 LIBS="-lmagic $LIBS"
20185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20186 /* end confdefs.h. */
20188 /* Override any GCC internal prototype to avoid an error.
20189 Use char because int might match the return type of a GCC
20190 builtin and then its argument prototype would still apply. */
20194 char magic_open ();
20198 return magic_open ();
20203 if ac_fn_c_try_link "$LINENO"; then :
20204 ac_cv_lib_magic_magic_open=yes
20206 ac_cv_lib_magic_magic_open=no
20208 rm -f core conftest.err conftest.$ac_objext \
20209 conftest$ac_exeext conftest.$ac_ext
20210 LIBS=$ac_check_lib_save_LIBS
20212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_magic_magic_open" >&5
20213 $as_echo "$ac_cv_lib_magic_magic_open" >&6; }
20214 if test "x$ac_cv_lib_magic_magic_open" = xyes; then :
20215 libmagic_found="builtin"
20222 libmagic_prefix="the default locations"
20223 elif test "$withval" != "no"; then
20224 libmagic_prefix=$withval
20225 save_cppflags="$CPPFLAGS"
20226 CPPFLAGS="$CPPFLAGS -I$libmagic_prefix/include"
20227 for ac_header in magic.h
20229 ac_fn_c_check_header_mongrel "$LINENO" "magic.h" "ac_cv_header_magic_h" "$ac_includes_default"
20230 if test "x$ac_cv_header_magic_h" = xyes; then :
20231 cat >>confdefs.h <<_ACEOF
20232 #define HAVE_MAGIC_H 1
20235 save_ldflags="$LDFLAGS"
20236 LDFLAGS="-L$libmagic_prefix/lib $LDFLAGS"
20237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for magic_open in -lmagic" >&5
20238 $as_echo_n "checking for magic_open in -lmagic... " >&6; }
20239 if ${ac_cv_lib_magic_magic_open+:} false; then :
20240 $as_echo_n "(cached) " >&6
20242 ac_check_lib_save_LIBS=$LIBS
20243 LIBS="-lmagic $LIBS"
20244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20245 /* end confdefs.h. */
20247 /* Override any GCC internal prototype to avoid an error.
20248 Use char because int might match the return type of a GCC
20249 builtin and then its argument prototype would still apply. */
20253 char magic_open ();
20257 return magic_open ();
20262 if ac_fn_c_try_link "$LINENO"; then :
20263 ac_cv_lib_magic_magic_open=yes
20265 ac_cv_lib_magic_magic_open=no
20267 rm -f core conftest.err conftest.$ac_objext \
20268 conftest$ac_exeext conftest.$ac_ext
20269 LIBS=$ac_check_lib_save_LIBS
20271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_magic_magic_open" >&5
20272 $as_echo "$ac_cv_lib_magic_magic_open" >&6; }
20273 if test "x$ac_cv_lib_magic_magic_open" = xyes; then :
20274 libmagic_found="yes"
20277 LDFLAGS="$save_ldflags"
20283 CPPFLAGS="$save_cppflags"
20285 if test "$withval" != "no" && test "$libmagic_found" = "no"; then
20286 as_fn_error $? "--with-libmagic requested, but libmagic not found at $libmagic_prefix" "$LINENO" 5
20291 ac_fn_c_check_header_mongrel "$LINENO" "magic.h" "ac_cv_header_magic_h" "$ac_includes_default"
20292 if test "x$ac_cv_header_magic_h" = xyes; then :
20294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for magic_open in -lmagic" >&5
20295 $as_echo_n "checking for magic_open in -lmagic... " >&6; }
20296 if ${ac_cv_lib_magic_magic_open+:} false; then :
20297 $as_echo_n "(cached) " >&6
20299 ac_check_lib_save_LIBS=$LIBS
20300 LIBS="-lmagic $LIBS"
20301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20302 /* end confdefs.h. */
20304 /* Override any GCC internal prototype to avoid an error.
20305 Use char because int might match the return type of a GCC
20306 builtin and then its argument prototype would still apply. */
20310 char magic_open ();
20314 return magic_open ();
20319 if ac_fn_c_try_link "$LINENO"; then :
20320 ac_cv_lib_magic_magic_open=yes
20322 ac_cv_lib_magic_magic_open=no
20324 rm -f core conftest.err conftest.$ac_objext \
20325 conftest$ac_exeext conftest.$ac_ext
20326 LIBS=$ac_check_lib_save_LIBS
20328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_magic_magic_open" >&5
20329 $as_echo "$ac_cv_lib_magic_magic_open" >&6; }
20330 if test "x$ac_cv_lib_magic_magic_open" = xyes; then :
20331 libmagic_found="builtin"
20342 if test "$libmagic_found" != "no"; then
20344 $as_echo "#define SVN_HAVE_LIBMAGIC 1" >>confdefs.h
20346 SVN_MAGIC_LIBS="-lmagic"
20349 if test "$libmagic_found" = "yes"; then
20350 SVN_MAGIC_INCLUDES="-I$libmagic_prefix/include"
20351 LDFLAGS="$LDFLAGS `
20352 input_flags="-L$libmagic_prefix/lib"
20354 filtered_dirs="/lib /lib64 /usr/lib /usr/lib64"
20355 for flag in $input_flags; do
20357 for dir in $filtered_dirs; do
20358 if test "$flag" = "-L$dir" || test "$flag" = "-L$dir/"; then
20363 if test "$filter" = "no"; then
20364 output_flags="$output_flags $flag"
20367 if test -n "$output_flags"; then
20368 printf "%s" "${output_flags# }"
20378 # Check whether --with-kwallet was given.
20379 if test "${with_kwallet+set}" = set; then :
20380 withval=$with_kwallet; svn_lib_kwallet="$withval"
20386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to look for KWallet" >&5
20387 $as_echo_n "checking whether to look for KWallet... " >&6; }
20388 if test "$svn_lib_kwallet" != "no"; then
20389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20390 $as_echo "yes" >&6; }
20393 as_fn_error $? "--with-kwallet is not supported on Mac OS X." "$LINENO" 5
20396 if test "$svn_enable_shared" = "yes"; then
20397 if test "$APR_HAS_DSO" = "yes"; then
20398 if test -n "$PKG_CONFIG"; then
20399 if test "$HAVE_DBUS" = "yes"; then
20400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Qt" >&5
20401 $as_echo_n "checking for Qt... " >&6; }
20402 if $PKG_CONFIG --exists Qt5Core Qt5DBus Qt5Gui; then
20403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, Qt5" >&5
20404 $as_echo "yes, Qt5" >&6; }
20405 qt_pkg_config_names="Qt5Core Qt5DBus Qt5Gui"
20406 kde_config_name="kf5-config"
20407 kde_inc_names="KF5/KWallet KF5/KCoreAddons KF5/KI18n"
20408 kde_lib_names="-lKF5Wallet -lKF5I18n -lKF5CoreAddons -lQt5Gui -lQt5DBus -lQt5Core"
20409 elif $PKG_CONFIG --exists QtCore QtDBus QtGui; then
20410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, Qt4" >&5
20411 $as_echo "yes, Qt4" >&6; }
20412 qt_pkg_config_names="QtCore QtDBus QtGui"
20413 kde_config_name="kde4-config"
20415 kde_lib_names="-lkdeui -lkdecore -lQtGui -lQtDBus -lQtCore"
20417 if test -n "$qt_pkg_config_names"; then
20418 if test "$svn_lib_kwallet" != "yes"; then
20419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $kde_config_name" >&5
20420 $as_echo_n "checking for $kde_config_name... " >&6; }
20421 KDE_CONFIG="$svn_lib_kwallet/bin/$kde_config_name"
20422 if test -f "$KDE_CONFIG" && test -x "$KDE_CONFIG"; then
20423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20424 $as_echo "yes" >&6; }
20426 if echo "$svn_lib_kwallet" | $EGREP ":" > /dev/null; then
20427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unneeded" >&5
20428 $as_echo "unneeded" >&6; }
20429 KDE_CONFIG="unneeded"
20430 kde_incdir="`echo "$svn_lib_kwallet" | $SED -e "s/:.*//"`"
20431 kde_libdir="`echo "$svn_lib_kwallet" | $SED -e "s/.*://"`"
20433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20434 $as_echo "no" >&6; }
20439 # Extract the first word of "$kde_config_name", so it can be a program name with args.
20440 set dummy $kde_config_name; ac_word=$2
20441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20442 $as_echo_n "checking for $ac_word... " >&6; }
20443 if ${ac_cv_path_KDE_CONFIG+:} false; then :
20444 $as_echo_n "(cached) " >&6
20446 case $KDE_CONFIG in
20448 ac_cv_path_KDE_CONFIG="$KDE_CONFIG" # Let the user override the test with a path.
20451 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20452 for as_dir in $PATH
20455 test -z "$as_dir" && as_dir=.
20456 for ac_exec_ext in '' $ac_executable_extensions; do
20457 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20458 ac_cv_path_KDE_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20459 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20469 KDE_CONFIG=$ac_cv_path_KDE_CONFIG
20470 if test -n "$KDE_CONFIG"; then
20471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $KDE_CONFIG" >&5
20472 $as_echo "$KDE_CONFIG" >&6; }
20474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20475 $as_echo "no" >&6; }
20479 if test -n "$KDE_CONFIG"; then
20480 kde_incdir="`$KDE_CONFIG --install include`"
20481 kde_libdir="`$KDE_CONFIG --install lib`"
20484 if test -n "$KDE_CONFIG"; then
20485 old_CXXFLAGS="$CXXFLAGS"
20486 old_LDFLAGS="$LDFLAGS"
20488 CXXFLAGS="$CXXFLAGS $CXXMODEFLAGS"
20489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for KWallet" >&5
20490 $as_echo_n "checking for KWallet... " >&6; }
20491 for d in `$PKG_CONFIG --cflags $qt_pkg_config_names`; do
20492 if test -n "`echo "$d" | $EGREP -- '^-D[^[:space:]]*'`"; then
20493 CPPFLAGS="$CPPFLAGS $d"
20496 qt_include_dirs="`$PKG_CONFIG --cflags-only-I $qt_pkg_config_names`"
20497 for kde_inc_name in $kde_inc_names; do
20498 kde_kwallet_includes="$kde_kwallet_includes -I$kde_incdir/$kde_inc_name"
20500 SVN_KWALLET_INCLUDES="$DBUS_CPPFLAGS $qt_include_dirs $kde_kwallet_includes"
20501 qt_libs_other_options="`$PKG_CONFIG --libs-only-other $qt_pkg_config_names`"
20502 SVN_KWALLET_LIBS="$DBUS_LIBS $kde_lib_names $qt_libs_other_options"
20503 CXXFLAGS="$CXXFLAGS $SVN_KWALLET_INCLUDES -fPIC"
20504 LIBS="$LIBS $SVN_KWALLET_LIBS"
20505 qt_lib_dirs="`$PKG_CONFIG --libs-only-L $qt_pkg_config_names`"
20506 LDFLAGS="$old_LDFLAGS `
20507 input_flags="$qt_lib_dirs -L$kde_libdir"
20509 filtered_dirs="/lib /lib64 /usr/lib /usr/lib64"
20510 for flag in $input_flags; do
20512 for dir in $filtered_dirs; do
20513 if test "$flag" = "-L$dir" || test "$flag" = "-L$dir/"; then
20518 if test "$filter" = "no"; then
20519 output_flags="$output_flags $flag"
20522 if test -n "$output_flags"; then
20523 printf "%s" "${output_flags# }"
20527 ac_cpp='$CXXCPP $CPPFLAGS'
20528 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20529 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20530 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20533 /* end confdefs.h. */
20535 #include <kwallet.h>
20537 {KWallet::Wallet::walletList();}
20539 if ac_fn_cxx_try_link "$LINENO"; then :
20540 svn_lib_kwallet="yes"
20542 svn_lib_kwallet="no"
20544 rm -f core conftest.err conftest.$ac_objext \
20545 conftest$ac_exeext conftest.$ac_ext
20547 ac_cpp='$CPP $CPPFLAGS'
20548 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20549 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20550 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20552 if test "$svn_lib_kwallet" = "yes"; then
20553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20554 $as_echo "yes" >&6; }
20555 CXXFLAGS="$old_CXXFLAGS"
20557 if test "$kde_config_name" = "kf5-config"; then
20559 $as_echo "#define SVN_HAVE_KF5 1" >>confdefs.h
20563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20564 $as_echo "no" >&6; }
20565 as_fn_error $? "cannot find KWallet" "$LINENO" 5
20568 as_fn_error $? "cannot find $kde_config_name" "$LINENO" 5
20571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20572 $as_echo "no" >&6; }
20573 as_fn_error $? "cannot find Qt" "$LINENO" 5
20576 as_fn_error $? "cannot find D-Bus" "$LINENO" 5
20579 as_fn_error $? "cannot find pkg-config" "$LINENO" 5
20582 as_fn_error $? "APR does not have support for DSOs" "$LINENO" 5
20585 as_fn_error $? "--with-kwallet conflicts with --disable-shared" "$LINENO" 5
20590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20591 $as_echo "no" >&6; }
20597 if test "$svn_lib_kwallet" = "yes"; then
20599 $as_echo "#define SVN_HAVE_KWALLET 1" >>confdefs.h
20603 # Check whether --enable-plaintext-password-storage was given.
20604 if test "${enable_plaintext_password_storage+set}" = set; then :
20605 enableval=$enable_plaintext_password_storage; plaintext_passwordd_storage="$enableval"
20607 plaintext_passwordd_storage="no"
20611 if test "$plaintext_passwordd_storage" = "yes"; then
20612 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Enabling plaintext password/passphrase storage" >&5
20613 $as_echo "$as_me: WARNING: Enabling plaintext password/passphrase storage" >&2;}
20615 { $as_echo "$as_me:${as_lineno-$LINENO}: Disabling plaintext password/passphrase storage" >&5
20616 $as_echo "$as_me: Disabling plaintext password/passphrase storage" >&6;}
20618 $as_echo "#define SVN_DISABLE_PLAINTEXT_PASSWORD_STORAGE 1" >>confdefs.h
20623 INSTALL_STATIC_RULES="install-bin install-docs"
20624 INSTALL_RULES="install-fsmod-lib install-ramod-lib install-lib install-include install-static"
20625 INSTALL_RULES="$INSTALL_RULES $INSTALL_APACHE_RULE"
20626 BUILD_RULES="fsmod-lib ramod-lib lib bin test sub-test $BUILD_APACHE_RULE tools"
20628 if test "$svn_lib_berkeley_db" = "yes"; then
20629 BUILD_RULES="$BUILD_RULES bdb-lib bdb-test"
20630 INSTALL_RULES="`echo $INSTALL_RULES | $SED 's/install-fsmod-lib/install-fsmod-lib install-bdb-lib/'`"
20631 INSTALL_STATIC_RULES="$INSTALL_STATIC_RULES install-bdb-lib"
20632 BDB_TEST_DEPS="\$(BDB_TEST_DEPS)"
20633 BDB_TEST_PROGRAMS="\$(BDB_TEST_PROGRAMS)"
20636 if test "$svn_lib_serf" = "yes"; then
20637 BUILD_RULES="$BUILD_RULES serf-lib"
20638 INSTALL_RULES="`echo $INSTALL_RULES | $SED 's/install-ramod-lib/install-ramod-lib install-serf-lib/'`"
20639 INSTALL_STATIC_RULES="$INSTALL_STATIC_RULES install-serf-lib"
20642 if test "$svn_lib_kwallet" = "yes"; then
20643 BUILD_RULES="$BUILD_RULES kwallet-lib"
20644 INSTALL_RULES="`echo $INSTALL_RULES | $SED 's/install-lib/install-lib install-kwallet-lib/'`"
20645 INSTALL_STATIC_RULES="$INSTALL_STATIC_RULES install-kwallet-lib"
20648 if test "$found_old_gnome_keyring" = "yes" || test "$found_gnome_keyring" = "yes"; then
20649 BUILD_RULES="$BUILD_RULES gnome-keyring-lib"
20650 INSTALL_RULES="`echo $INSTALL_RULES | $SED 's/install-lib/install-lib install-gnome-keyring-lib/'`"
20651 INSTALL_STATIC_RULES="$INSTALL_STATIC_RULES install-gnome-keyring-lib"
20654 if test "$USE_NLS" = "yes"; then
20655 BUILD_RULES="$BUILD_RULES locale"
20656 INSTALL_RULES="$INSTALL_RULES install-locale"
20666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
20667 $as_echo_n "checking for ANSI C header files... " >&6; }
20668 if ${ac_cv_header_stdc+:} false; then :
20669 $as_echo_n "(cached) " >&6
20671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20672 /* end confdefs.h. */
20673 #include <stdlib.h>
20674 #include <stdarg.h>
20675 #include <string.h>
20686 if ac_fn_c_try_compile "$LINENO"; then :
20687 ac_cv_header_stdc=yes
20689 ac_cv_header_stdc=no
20691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20693 if test $ac_cv_header_stdc = yes; then
20694 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
20695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20696 /* end confdefs.h. */
20697 #include <string.h>
20700 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20701 $EGREP "memchr" >/dev/null 2>&1; then :
20704 ac_cv_header_stdc=no
20710 if test $ac_cv_header_stdc = yes; then
20711 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
20712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20713 /* end confdefs.h. */
20714 #include <stdlib.h>
20717 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20718 $EGREP "free" >/dev/null 2>&1; then :
20721 ac_cv_header_stdc=no
20727 if test $ac_cv_header_stdc = yes; then
20728 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
20729 if test "$cross_compiling" = yes; then :
20732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20733 /* end confdefs.h. */
20735 #include <stdlib.h>
20736 #if ((' ' & 0x0FF) == 0x020)
20737 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
20738 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
20740 # define ISLOWER(c) \
20741 (('a' <= (c) && (c) <= 'i') \
20742 || ('j' <= (c) && (c) <= 'r') \
20743 || ('s' <= (c) && (c) <= 'z'))
20744 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
20747 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
20752 for (i = 0; i < 256; i++)
20753 if (XOR (islower (i), ISLOWER (i))
20754 || toupper (i) != TOUPPER (i))
20759 if ac_fn_c_try_run "$LINENO"; then :
20762 ac_cv_header_stdc=no
20764 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20765 conftest.$ac_objext conftest.beam conftest.$ac_ext
20770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
20771 $as_echo "$ac_cv_header_stdc" >&6; }
20772 if test $ac_cv_header_stdc = yes; then
20774 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
20780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
20781 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
20782 if ${ac_cv_c_const+:} false; then :
20783 $as_echo_n "(cached) " >&6
20785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20786 /* end confdefs.h. */
20792 #ifndef __cplusplus
20793 /* Ultrix mips cc rejects this sort of thing. */
20794 typedef int charset[2];
20795 const charset cs = { 0, 0 };
20796 /* SunOS 4.1.1 cc rejects this. */
20797 char const *const *pcpcc;
20799 /* NEC SVR4.0.2 mips cc rejects this. */
20800 struct point {int x, y;};
20801 static struct point const zero = {0,0};
20802 /* AIX XL C 1.02.0.0 rejects this.
20803 It does not let you subtract one const X* pointer from another in
20804 an arm of an if-expression whose if-part is not a constant
20806 const char *g = "string";
20807 pcpcc = &g + (g ? g-g : 0);
20808 /* HPUX 7.0 cc rejects these. */
20810 ppc = (char**) pcpcc;
20811 pcpcc = (char const *const *) ppc;
20812 { /* SCO 3.2v4 cc rejects this sort of thing. */
20815 char const *s = 0 ? (char *) 0 : (char const *) 0;
20820 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
20821 int x[] = {25, 17};
20822 const int *foo = &x[0];
20825 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
20826 typedef const int *iptr;
20830 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
20831 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
20832 struct s { int j; const int *ap[3]; } bx;
20833 struct s *b = &bx; b->j = 5;
20835 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
20836 const int foo = 10;
20837 if (!foo) return 0;
20839 return !cs[0] && !zero.x;
20846 if ac_fn_c_try_compile "$LINENO"; then :
20851 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
20854 $as_echo "$ac_cv_c_const" >&6; }
20855 if test $ac_cv_c_const = no; then
20857 $as_echo "#define const /**/" >>confdefs.h
20862 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
20863 if test "x$ac_cv_type_size_t" = xyes; then :
20867 cat >>confdefs.h <<_ACEOF
20868 #define size_t unsigned int
20876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
20877 $as_echo_n "checking for working memcmp... " >&6; }
20878 if ${ac_cv_func_memcmp_working+:} false; then :
20879 $as_echo_n "(cached) " >&6
20881 if test "$cross_compiling" = yes; then :
20882 ac_cv_func_memcmp_working=no
20884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20885 /* end confdefs.h. */
20886 $ac_includes_default
20891 /* Some versions of memcmp are not 8-bit clean. */
20892 char c0 = '\100', c1 = '\200', c2 = '\201';
20893 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
20896 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
20897 or more and with at least one buffer not starting on a 4-byte boundary.
20898 William Lewis provided this test program. */
20903 for (i = 0; i < 4; i++)
20907 strcpy (a, "--------01111111");
20908 strcpy (b, "--------10000000");
20909 if (memcmp (a, b, 16) >= 0)
20919 if ac_fn_c_try_run "$LINENO"; then :
20920 ac_cv_func_memcmp_working=yes
20922 ac_cv_func_memcmp_working=no
20924 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20925 conftest.$ac_objext conftest.beam conftest.$ac_ext
20929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
20930 $as_echo "$ac_cv_func_memcmp_working" >&6; }
20931 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
20932 *" memcmp.$ac_objext "* ) ;;
20933 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
20939 for ac_func in vprintf
20941 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
20942 if test "x$ac_cv_func_vprintf" = xyes; then :
20943 cat >>confdefs.h <<_ACEOF
20944 #define HAVE_VPRINTF 1
20947 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
20948 if test "x$ac_cv_func__doprnt" = xyes; then :
20950 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
20959 for ac_func in symlink readlink
20961 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20962 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20963 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
20964 cat >>confdefs.h <<_ACEOF
20965 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20972 for ac_header in sys/utsname.h
20974 ac_fn_c_check_header_mongrel "$LINENO" "sys/utsname.h" "ac_cv_header_sys_utsname_h" "$ac_includes_default"
20975 if test "x$ac_cv_header_sys_utsname_h" = xyes; then :
20976 cat >>confdefs.h <<_ACEOF
20977 #define HAVE_SYS_UTSNAME_H 1
20979 for ac_func in uname
20981 ac_fn_c_check_func "$LINENO" "uname" "ac_cv_func_uname"
20982 if test "x$ac_cv_func_uname" = xyes; then :
20983 cat >>confdefs.h <<_ACEOF
20984 #define HAVE_UNAME 1
20994 for ac_header in elf.h
20996 ac_fn_c_check_header_mongrel "$LINENO" "elf.h" "ac_cv_header_elf_h" "$ac_includes_default"
20997 if test "x$ac_cv_header_elf_h" = xyes; then :
20998 cat >>confdefs.h <<_ACEOF
20999 #define HAVE_ELF_H 1
21007 ac_fn_c_check_header_mongrel "$LINENO" "termios.h" "ac_cv_header_termios_h" "$ac_includes_default"
21008 if test "x$ac_cv_header_termios_h" = xyes; then :
21010 for ac_func in tcgetattr tcsetattr
21012 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21013 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21014 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
21015 cat >>confdefs.h <<_ACEOF
21016 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21020 $as_echo "#define HAVE_TERMIOS_H 1" >>confdefs.h
21032 # Check whether --enable-debug was given.
21033 if test "${enable_debug+set}" = set; then :
21034 enableval=$enable_debug;
21035 if test "$enableval" = "yes" ; then
21036 enable_debugging="yes"
21038 enable_debugging="no"
21043 # Neither --enable-debug nor --disable-debug was passed.
21044 enable_debugging="maybe"
21049 # Check whether --enable-optimize was given.
21050 if test "${enable_optimize+set}" = set; then :
21051 enableval=$enable_optimize;
21052 if test "$enableval" = "yes" ; then
21053 enable_optimization="yes"
21055 enable_optimization="no"
21060 # Neither --enable-optimize nor --disable-optimize was passed.
21061 enable_optimization="maybe"
21066 # Check whether --enable-disallowing-of-undefined-references was given.
21067 if test "${enable_disallowing_of_undefined_references+set}" = set; then :
21068 enableval=$enable_disallowing_of_undefined_references;
21071 if test "$enable_disallowing_of_undefined_references" != "yes" && test "`uname`" != "Linux"; then
21072 enable_disallowing_of_undefined_references="no"
21074 if test "$enable_disallowing_of_undefined_references" != "no"; then
21075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -Wl,--no-undefined" >&5
21076 $as_echo_n "checking for -Wl,--no-undefined... " >&6; }
21077 old_LDFLAGS="$LDFLAGS"
21078 LDFLAGS="$LDFLAGS -Wl,--no-undefined"
21079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21080 /* end confdefs.h. */
21083 if ac_fn_c_try_link "$LINENO"; then :
21084 svn_wl_no_undefined="yes"
21086 svn_wl_no_undefined="no"
21088 rm -f core conftest.err conftest.$ac_objext \
21089 conftest$ac_exeext conftest.$ac_ext
21090 LDFLAGS="$old_LDFLAGS"
21091 if test "$svn_wl_no_undefined" = "yes"; then
21092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21093 $as_echo "yes" >&6; }
21094 for library_dir in "$abs_srcdir/subversion/libsvn_"*; do
21095 eval "`basename $library_dir`_LDFLAGS=-Wl,--no-undefined"
21097 shared_only_LDFLAGS="-Wl,--no-undefined"
21099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21100 $as_echo "no" >&6; }
21101 if test "$enable_disallowing_of_undefined_references" = "yes"; then
21102 as_fn_error $? "--enable-disallowing-of-undefined-references explicitly requested, but -Wl,--no-undefined not supported" "$LINENO" 5
21123 # Check whether --enable-maintainer-mode was given.
21124 if test "${enable_maintainer_mode+set}" = set; then :
21125 enableval=$enable_maintainer_mode;
21126 if test "$enableval" = "yes" ; then
21127 if test "$enable_debugging" = "no" ; then
21128 as_fn_error $? "Can't have --disable-debug and --enable-maintainer-mode" "$LINENO" 5
21130 enable_debugging=yes
21132 if test "$GCC" = "yes"; then
21133 { $as_echo "$as_me:${as_lineno-$LINENO}: maintainer-mode: adding GCC warning flags" >&5
21134 $as_echo "$as_me: maintainer-mode: adding GCC warning flags" >&6;}
21137 CFLAGS_KEEP="$CFLAGS"
21141 _svn_xxflags__save="$CFLAGS"
21143 ac_cpp='$CPP $CPPFLAGS'
21144 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21145 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21146 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -Werror=implicit-function-declaration" >&5
21149 $as_echo_n "checking if $CC accepts -Werror=implicit-function-declaration... " >&6; }
21150 CFLAGS="-Werror=implicit-function-declaration $CFLAGS"
21151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21152 /* end confdefs.h. */
21153 int main(void){return 0;}
21155 if ac_fn_c_try_link "$LINENO"; then :
21157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21158 $as_echo "yes" >&6; }
21163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21164 $as_echo "no" >&6; }
21165 CFLAGS="$_svn_xxflags__save"
21169 rm -f core conftest.err conftest.$ac_objext \
21170 conftest$ac_exeext conftest.$ac_ext
21172 ac_cpp='$CPP $CPPFLAGS'
21173 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21174 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21175 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21179 _svn_xxflags__save="$CFLAGS"
21181 ac_cpp='$CPP $CPPFLAGS'
21182 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21183 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21184 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -Werror=declaration-after-statement" >&5
21187 $as_echo_n "checking if $CC accepts -Werror=declaration-after-statement... " >&6; }
21188 CFLAGS="-Werror=declaration-after-statement $CFLAGS"
21189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21190 /* end confdefs.h. */
21191 int main(void){return 0;}
21193 if ac_fn_c_try_link "$LINENO"; then :
21195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21196 $as_echo "yes" >&6; }
21201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21202 $as_echo "no" >&6; }
21203 CFLAGS="$_svn_xxflags__save"
21207 rm -f core conftest.err conftest.$ac_objext \
21208 conftest$ac_exeext conftest.$ac_ext
21210 ac_cpp='$CPP $CPPFLAGS'
21211 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21212 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21213 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21217 _svn_xxflags__save="$CFLAGS"
21219 ac_cpp='$CPP $CPPFLAGS'
21220 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21221 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21222 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -Wextra-tokens" >&5
21225 $as_echo_n "checking if $CC accepts -Wextra-tokens... " >&6; }
21226 CFLAGS="-Wextra-tokens $CFLAGS"
21227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21228 /* end confdefs.h. */
21229 int main(void){return 0;}
21231 if ac_fn_c_try_link "$LINENO"; then :
21233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21234 $as_echo "yes" >&6; }
21239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21240 $as_echo "no" >&6; }
21241 CFLAGS="$_svn_xxflags__save"
21245 rm -f core conftest.err conftest.$ac_objext \
21246 conftest$ac_exeext conftest.$ac_ext
21248 ac_cpp='$CPP $CPPFLAGS'
21249 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21250 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21251 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21255 _svn_xxflags__save="$CFLAGS"
21257 ac_cpp='$CPP $CPPFLAGS'
21258 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21259 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21260 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -Wnewline-eof" >&5
21263 $as_echo_n "checking if $CC accepts -Wnewline-eof... " >&6; }
21264 CFLAGS="-Wnewline-eof $CFLAGS"
21265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21266 /* end confdefs.h. */
21267 int main(void){return 0;}
21269 if ac_fn_c_try_link "$LINENO"; then :
21271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21272 $as_echo "yes" >&6; }
21277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21278 $as_echo "no" >&6; }
21279 CFLAGS="$_svn_xxflags__save"
21283 rm -f core conftest.err conftest.$ac_objext \
21284 conftest$ac_exeext conftest.$ac_ext
21286 ac_cpp='$CPP $CPPFLAGS'
21287 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21288 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21289 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21293 _svn_xxflags__save="$CFLAGS"
21295 ac_cpp='$CPP $CPPFLAGS'
21296 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21297 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21298 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -Wshorten-64-to-32" >&5
21301 $as_echo_n "checking if $CC accepts -Wshorten-64-to-32... " >&6; }
21302 CFLAGS="-Wshorten-64-to-32 $CFLAGS"
21303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21304 /* end confdefs.h. */
21305 int main(void){return 0;}
21307 if ac_fn_c_try_link "$LINENO"; then :
21309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21310 $as_echo "yes" >&6; }
21315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21316 $as_echo "no" >&6; }
21317 CFLAGS="$_svn_xxflags__save"
21321 rm -f core conftest.err conftest.$ac_objext \
21322 conftest$ac_exeext conftest.$ac_ext
21324 ac_cpp='$CPP $CPPFLAGS'
21325 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21326 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21327 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21331 _svn_xxflags__save="$CFLAGS"
21333 ac_cpp='$CPP $CPPFLAGS'
21334 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21335 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21336 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -Wold-style-definition" >&5
21339 $as_echo_n "checking if $CC accepts -Wold-style-definition... " >&6; }
21340 CFLAGS="-Wold-style-definition $CFLAGS"
21341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21342 /* end confdefs.h. */
21343 int main(void){return 0;}
21345 if ac_fn_c_try_link "$LINENO"; then :
21347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21348 $as_echo "yes" >&6; }
21353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21354 $as_echo "no" >&6; }
21355 CFLAGS="$_svn_xxflags__save"
21359 rm -f core conftest.err conftest.$ac_objext \
21360 conftest$ac_exeext conftest.$ac_ext
21362 ac_cpp='$CPP $CPPFLAGS'
21363 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21364 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21365 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21369 _svn_xxflags__save="$CFLAGS"
21371 ac_cpp='$CPP $CPPFLAGS'
21372 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21373 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21374 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -Wno-system-headers" >&5
21377 $as_echo_n "checking if $CC accepts -Wno-system-headers... " >&6; }
21378 CFLAGS="-Wno-system-headers $CFLAGS"
21379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21380 /* end confdefs.h. */
21381 int main(void){return 0;}
21383 if ac_fn_c_try_link "$LINENO"; then :
21385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21386 $as_echo "yes" >&6; }
21391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21392 $as_echo "no" >&6; }
21393 CFLAGS="$_svn_xxflags__save"
21397 rm -f core conftest.err conftest.$ac_objext \
21398 conftest$ac_exeext conftest.$ac_ext
21400 ac_cpp='$CPP $CPPFLAGS'
21401 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21402 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21403 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21407 _svn_xxflags__save="$CFLAGS"
21409 ac_cpp='$CPP $CPPFLAGS'
21410 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21411 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21412 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -Wno-format-nonliteral" >&5
21415 $as_echo_n "checking if $CC accepts -Wno-format-nonliteral... " >&6; }
21416 CFLAGS="-Wno-format-nonliteral $CFLAGS"
21417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21418 /* end confdefs.h. */
21419 int main(void){return 0;}
21421 if ac_fn_c_try_link "$LINENO"; then :
21423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21424 $as_echo "yes" >&6; }
21429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21430 $as_echo "no" >&6; }
21431 CFLAGS="$_svn_xxflags__save"
21435 rm -f core conftest.err conftest.$ac_objext \
21436 conftest$ac_exeext conftest.$ac_ext
21438 ac_cpp='$CPP $CPPFLAGS'
21439 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21440 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21441 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21445 _svn_xxflags__save="$CFLAGS"
21447 ac_cpp='$CPP $CPPFLAGS'
21448 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21449 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21450 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -Wmissing-variable-declarations" >&5
21453 $as_echo_n "checking if $CC accepts -Wmissing-variable-declarations... " >&6; }
21454 CFLAGS="-Wmissing-variable-declarations $CFLAGS"
21455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21456 /* end confdefs.h. */
21457 int main(void){return 0;}
21459 if ac_fn_c_try_link "$LINENO"; then :
21461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21462 $as_echo "yes" >&6; }
21467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21468 $as_echo "no" >&6; }
21469 CFLAGS="$_svn_xxflags__save"
21473 rm -f core conftest.err conftest.$ac_objext \
21474 conftest$ac_exeext conftest.$ac_ext
21476 ac_cpp='$CPP $CPPFLAGS'
21477 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21478 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21479 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21483 _svn_xxflags__save="$CFLAGS"
21485 ac_cpp='$CPP $CPPFLAGS'
21486 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21487 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21488 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -Wno-unused-const-variable" >&5
21491 $as_echo_n "checking if $CC accepts -Wno-unused-const-variable... " >&6; }
21492 CFLAGS="-Wno-unused-const-variable $CFLAGS"
21493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21494 /* end confdefs.h. */
21495 int main(void){return 0;}
21497 if ac_fn_c_try_link "$LINENO"; then :
21499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21500 $as_echo "yes" >&6; }
21505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21506 $as_echo "no" >&6; }
21507 CFLAGS="$_svn_xxflags__save"
21511 rm -f core conftest.err conftest.$ac_objext \
21512 conftest$ac_exeext conftest.$ac_ext
21514 ac_cpp='$CPP $CPPFLAGS'
21515 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21516 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21517 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21521 CMAINTAINERFLAGS="$CFLAGS"
21522 CFLAGS="$CFLAGS_KEEP"
21524 CMAINTAINERFLAGS="-Wall -Wpointer-arith -Wwrite-strings -Wshadow -Wformat=2 -Wunused -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wno-multichar -Wredundant-decls -Wnested-externs -Winline -Wno-long-long -Wbad-function-cast $CMAINTAINERFLAGS"
21526 if test "$GXX" = "yes"; then
21527 { $as_echo "$as_me:${as_lineno-$LINENO}: maintainer-mode: adding G++ warning flags" >&5
21528 $as_echo "$as_me: maintainer-mode: adding G++ warning flags" >&6;}
21530 CXXFLAGS_KEEP="$CXXFLAGS"
21534 _svn_xxflags__save="$CXXFLAGS"
21536 ac_cpp='$CXXCPP $CPPFLAGS'
21537 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21538 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21539 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CXX accepts -Wextra-tokens" >&5
21542 $as_echo_n "checking if $CXX accepts -Wextra-tokens... " >&6; }
21543 CXXFLAGS="-Wextra-tokens $CXXFLAGS"
21544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21545 /* end confdefs.h. */
21548 if ac_fn_cxx_try_link "$LINENO"; then :
21550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21551 $as_echo "yes" >&6; }
21556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21557 $as_echo "no" >&6; }
21558 CXXFLAGS="$_svn_xxflags__save"
21562 rm -f core conftest.err conftest.$ac_objext \
21563 conftest$ac_exeext conftest.$ac_ext
21565 ac_cpp='$CPP $CPPFLAGS'
21566 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21567 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21568 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21572 _svn_xxflags__save="$CXXFLAGS"
21574 ac_cpp='$CXXCPP $CPPFLAGS'
21575 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21576 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21577 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CXX accepts -Wnewline-eof" >&5
21580 $as_echo_n "checking if $CXX accepts -Wnewline-eof... " >&6; }
21581 CXXFLAGS="-Wnewline-eof $CXXFLAGS"
21582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21583 /* end confdefs.h. */
21586 if ac_fn_cxx_try_link "$LINENO"; then :
21588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21589 $as_echo "yes" >&6; }
21594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21595 $as_echo "no" >&6; }
21596 CXXFLAGS="$_svn_xxflags__save"
21600 rm -f core conftest.err conftest.$ac_objext \
21601 conftest$ac_exeext conftest.$ac_ext
21603 ac_cpp='$CPP $CPPFLAGS'
21604 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21605 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21606 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21610 _svn_xxflags__save="$CXXFLAGS"
21612 ac_cpp='$CXXCPP $CPPFLAGS'
21613 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21614 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21615 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CXX accepts -Wshorten-64-to-32" >&5
21618 $as_echo_n "checking if $CXX accepts -Wshorten-64-to-32... " >&6; }
21619 CXXFLAGS="-Wshorten-64-to-32 $CXXFLAGS"
21620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21621 /* end confdefs.h. */
21624 if ac_fn_cxx_try_link "$LINENO"; then :
21626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21627 $as_echo "yes" >&6; }
21632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21633 $as_echo "no" >&6; }
21634 CXXFLAGS="$_svn_xxflags__save"
21638 rm -f core conftest.err conftest.$ac_objext \
21639 conftest$ac_exeext conftest.$ac_ext
21641 ac_cpp='$CPP $CPPFLAGS'
21642 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21643 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21644 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21648 _svn_xxflags__save="$CXXFLAGS"
21650 ac_cpp='$CXXCPP $CPPFLAGS'
21651 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21652 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21653 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CXX accepts -Wno-system-headers" >&5
21656 $as_echo_n "checking if $CXX accepts -Wno-system-headers... " >&6; }
21657 CXXFLAGS="-Wno-system-headers $CXXFLAGS"
21658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21659 /* end confdefs.h. */
21662 if ac_fn_cxx_try_link "$LINENO"; then :
21664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21665 $as_echo "yes" >&6; }
21670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21671 $as_echo "no" >&6; }
21672 CXXFLAGS="$_svn_xxflags__save"
21676 rm -f core conftest.err conftest.$ac_objext \
21677 conftest$ac_exeext conftest.$ac_ext
21679 ac_cpp='$CPP $CPPFLAGS'
21680 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21681 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21682 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21686 CXXMAINTAINERFLAGS="$CXXFLAGS"
21687 CXXFLAGS="$CXXFLAGS_KEEP"
21689 CXXMAINTAINERFLAGS="-Wall -Wpointer-arith -Wwrite-strings -Wshadow -Wunused -Wunreachable-code $CXXMAINTAINERFLAGS"
21696 if test "$enable_debugging" = "yes" ; then
21697 if test "$enable_optimization" != "yes"; then
21698 { $as_echo "$as_me:${as_lineno-$LINENO}: Disabling optimizations for debugging" >&5
21699 $as_echo "$as_me: Disabling optimizations for debugging" >&6;}
21700 CFLAGS="`echo $CFLAGS' ' | $SED -e 's/-O[^ ]* //g'`"
21701 CXXFLAGS="`echo $CXXFLAGS' ' | $SED -e 's/-O[^ ]* //g'`"
21703 if test -z "`echo $CUSERFLAGS' ' | $EGREP -- '-g[0-9]? '`"; then
21704 { $as_echo "$as_me:${as_lineno-$LINENO}: Enabling debugging for C" >&5
21705 $as_echo "$as_me: Enabling debugging for C" >&6;}
21706 CFLAGS="`echo $CFLAGS' ' | $SED -e 's/-g[0-9] //g' -e 's/-g //g'`"
21708 _svn_xxflags__save="$CFLAGS"
21710 ac_cpp='$CPP $CPPFLAGS'
21711 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21712 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21713 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -fno-inline" >&5
21716 $as_echo_n "checking if $CC accepts -fno-inline... " >&6; }
21717 CFLAGS="-fno-inline $CFLAGS"
21718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21719 /* end confdefs.h. */
21720 int main(void){return 0;}
21722 if ac_fn_c_try_link "$LINENO"; then :
21724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21725 $as_echo "yes" >&6; }
21730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21731 $as_echo "no" >&6; }
21732 CFLAGS="$_svn_xxflags__save"
21736 rm -f core conftest.err conftest.$ac_objext \
21737 conftest$ac_exeext conftest.$ac_ext
21739 ac_cpp='$CPP $CPPFLAGS'
21740 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21741 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21742 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21746 _svn_xxflags__save="$CFLAGS"
21748 ac_cpp='$CPP $CPPFLAGS'
21749 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21750 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21751 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -fno-omit-frame-pointer" >&5
21754 $as_echo_n "checking if $CC accepts -fno-omit-frame-pointer... " >&6; }
21755 CFLAGS="-fno-omit-frame-pointer $CFLAGS"
21756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21757 /* end confdefs.h. */
21758 int main(void){return 0;}
21760 if ac_fn_c_try_link "$LINENO"; then :
21762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21763 $as_echo "yes" >&6; }
21768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21769 $as_echo "no" >&6; }
21770 CFLAGS="$_svn_xxflags__save"
21774 rm -f core conftest.err conftest.$ac_objext \
21775 conftest$ac_exeext conftest.$ac_ext
21777 ac_cpp='$CPP $CPPFLAGS'
21778 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21779 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21780 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21784 _svn_xxflags__save="$CFLAGS"
21786 ac_cpp='$CPP $CPPFLAGS'
21787 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21788 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21789 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -g3" >&5
21792 $as_echo_n "checking if $CC accepts -g3... " >&6; }
21793 CFLAGS="-g3 $CFLAGS"
21794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21795 /* end confdefs.h. */
21796 int main(void){return 0;}
21798 if ac_fn_c_try_link "$LINENO"; then :
21800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21801 $as_echo "yes" >&6; }
21806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21807 $as_echo "no" >&6; }
21808 CFLAGS="$_svn_xxflags__save"
21811 _svn_xxflags__save="$CFLAGS"
21813 ac_cpp='$CPP $CPPFLAGS'
21814 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21815 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21816 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -g2" >&5
21819 $as_echo_n "checking if $CC accepts -g2... " >&6; }
21820 CFLAGS="-g2 $CFLAGS"
21821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21822 /* end confdefs.h. */
21823 int main(void){return 0;}
21825 if ac_fn_c_try_link "$LINENO"; then :
21827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21828 $as_echo "yes" >&6; }
21833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21834 $as_echo "no" >&6; }
21835 CFLAGS="$_svn_xxflags__save"
21838 _svn_xxflags__save="$CFLAGS"
21840 ac_cpp='$CPP $CPPFLAGS'
21841 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21842 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21843 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -g" >&5
21846 $as_echo_n "checking if $CC accepts -g... " >&6; }
21847 CFLAGS="-g $CFLAGS"
21848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21849 /* end confdefs.h. */
21850 int main(void){return 0;}
21852 if ac_fn_c_try_link "$LINENO"; then :
21854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21855 $as_echo "yes" >&6; }
21860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21861 $as_echo "no" >&6; }
21862 CFLAGS="$_svn_xxflags__save"
21866 rm -f core conftest.err conftest.$ac_objext \
21867 conftest$ac_exeext conftest.$ac_ext
21869 ac_cpp='$CPP $CPPFLAGS'
21870 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21871 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21872 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21877 rm -f core conftest.err conftest.$ac_objext \
21878 conftest$ac_exeext conftest.$ac_ext
21880 ac_cpp='$CPP $CPPFLAGS'
21881 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21882 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21883 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21888 rm -f core conftest.err conftest.$ac_objext \
21889 conftest$ac_exeext conftest.$ac_ext
21891 ac_cpp='$CPP $CPPFLAGS'
21892 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21893 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21894 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21898 if test -z "`echo $CXXUSERFLAGS' ' | $EGREP -- '-g[0-9]? '`"; then
21899 { $as_echo "$as_me:${as_lineno-$LINENO}: Enabling debugging for C++" >&5
21900 $as_echo "$as_me: Enabling debugging for C++" >&6;}
21901 CXXFLAGS="`echo $CXXFLAGS' ' | $SED -e 's/-g[0-9] //g' -e 's/-g //g'`"
21903 _svn_xxflags__save="$CXXFLAGS"
21905 ac_cpp='$CXXCPP $CPPFLAGS'
21906 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21907 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21908 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CXX accepts -fno-inline" >&5
21911 $as_echo_n "checking if $CXX accepts -fno-inline... " >&6; }
21912 CXXFLAGS="-fno-inline $CXXFLAGS"
21913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21914 /* end confdefs.h. */
21917 if ac_fn_cxx_try_link "$LINENO"; then :
21919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21920 $as_echo "yes" >&6; }
21925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21926 $as_echo "no" >&6; }
21927 CXXFLAGS="$_svn_xxflags__save"
21931 rm -f core conftest.err conftest.$ac_objext \
21932 conftest$ac_exeext conftest.$ac_ext
21934 ac_cpp='$CPP $CPPFLAGS'
21935 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21936 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21937 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21941 _svn_xxflags__save="$CXXFLAGS"
21943 ac_cpp='$CXXCPP $CPPFLAGS'
21944 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21945 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21946 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CXX accepts -fno-omit-frame-pointer" >&5
21949 $as_echo_n "checking if $CXX accepts -fno-omit-frame-pointer... " >&6; }
21950 CXXFLAGS="-fno-omit-frame-pointer $CXXFLAGS"
21951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21952 /* end confdefs.h. */
21955 if ac_fn_cxx_try_link "$LINENO"; then :
21957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21958 $as_echo "yes" >&6; }
21963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21964 $as_echo "no" >&6; }
21965 CXXFLAGS="$_svn_xxflags__save"
21969 rm -f core conftest.err conftest.$ac_objext \
21970 conftest$ac_exeext conftest.$ac_ext
21972 ac_cpp='$CPP $CPPFLAGS'
21973 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21974 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21975 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21979 _svn_xxflags__save="$CXXFLAGS"
21981 ac_cpp='$CXXCPP $CPPFLAGS'
21982 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21983 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21984 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CXX accepts -g3" >&5
21987 $as_echo_n "checking if $CXX accepts -g3... " >&6; }
21988 CXXFLAGS="-g3 $CXXFLAGS"
21989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21990 /* end confdefs.h. */
21993 if ac_fn_cxx_try_link "$LINENO"; then :
21995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21996 $as_echo "yes" >&6; }
22001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22002 $as_echo "no" >&6; }
22003 CXXFLAGS="$_svn_xxflags__save"
22006 _svn_xxflags__save="$CXXFLAGS"
22008 ac_cpp='$CXXCPP $CPPFLAGS'
22009 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22010 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22011 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CXX accepts -g2" >&5
22014 $as_echo_n "checking if $CXX accepts -g2... " >&6; }
22015 CXXFLAGS="-g2 $CXXFLAGS"
22016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22017 /* end confdefs.h. */
22020 if ac_fn_cxx_try_link "$LINENO"; then :
22022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22023 $as_echo "yes" >&6; }
22028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22029 $as_echo "no" >&6; }
22030 CXXFLAGS="$_svn_xxflags__save"
22033 _svn_xxflags__save="$CXXFLAGS"
22035 ac_cpp='$CXXCPP $CPPFLAGS'
22036 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22037 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22038 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CXX accepts -g" >&5
22041 $as_echo_n "checking if $CXX accepts -g... " >&6; }
22042 CXXFLAGS="-g $CXXFLAGS"
22043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22044 /* end confdefs.h. */
22047 if ac_fn_cxx_try_link "$LINENO"; then :
22049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22050 $as_echo "yes" >&6; }
22055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22056 $as_echo "no" >&6; }
22057 CXXFLAGS="$_svn_xxflags__save"
22061 rm -f core conftest.err conftest.$ac_objext \
22062 conftest$ac_exeext conftest.$ac_ext
22064 ac_cpp='$CXXCPP $CPPFLAGS'
22065 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22066 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22067 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22072 rm -f core conftest.err conftest.$ac_objext \
22073 conftest$ac_exeext conftest.$ac_ext
22075 ac_cpp='$CXXCPP $CPPFLAGS'
22076 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22077 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22078 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22083 rm -f core conftest.err conftest.$ac_objext \
22084 conftest$ac_exeext conftest.$ac_ext
22086 ac_cpp='$CPP $CPPFLAGS'
22087 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22088 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22089 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22093 CFLAGS="$CFLAGS -DSVN_DEBUG -DAP_DEBUG"
22094 CXXFLAGS="$CXXFLAGS -DSVN_DEBUG -DAP_DEBUG"
22095 elif test "$enable_debugging" = "no" ; then
22096 { $as_echo "$as_me:${as_lineno-$LINENO}: Disabling debugging" >&5
22097 $as_echo "$as_me: Disabling debugging" >&6;}
22098 CFLAGS="`echo $CFLAGS' ' | $SED -e 's/-g[0-9] //g' -e 's/-g //g'`"
22099 CXXFLAGS="`echo $CXXFLAGS' ' | $SED -e 's/-g[0-9] //g' -e 's/-g //g'`"
22100 CFLAGS="$CFLAGS -DNDEBUG"
22101 CXXFLAGS="$CXXFLAGS -DNDEBUG"
22102 # elif test "$enable_debugging" = "maybe" ; then
22106 if test "$enable_optimization" = "yes"; then
22107 if test -z "`echo $CUSERFLAGS' ' | $EGREP -- '-O[^ ]* '`"; then
22108 CFLAGS="`echo $CFLAGS' ' | $SED -e 's/-O[^ ]* //g'`"
22109 if test "$enable_debugging" = "yes"; then
22110 { $as_echo "$as_me:${as_lineno-$LINENO}: Enabling optimizations for C (with debugging enabled)" >&5
22111 $as_echo "$as_me: Enabling optimizations for C (with debugging enabled)" >&6;}
22113 _svn_xxflags__save="$CFLAGS"
22115 ac_cpp='$CPP $CPPFLAGS'
22116 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22117 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22118 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -O1" >&5
22121 $as_echo_n "checking if $CC accepts -O1... " >&6; }
22122 CFLAGS="-O1 $CFLAGS"
22123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22124 /* end confdefs.h. */
22125 int main(void){return 0;}
22127 if ac_fn_c_try_link "$LINENO"; then :
22129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22130 $as_echo "yes" >&6; }
22135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22136 $as_echo "no" >&6; }
22137 CFLAGS="$_svn_xxflags__save"
22140 _svn_xxflags__save="$CFLAGS"
22142 ac_cpp='$CPP $CPPFLAGS'
22143 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22144 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22145 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -O" >&5
22148 $as_echo_n "checking if $CC accepts -O... " >&6; }
22149 CFLAGS="-O $CFLAGS"
22150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22151 /* end confdefs.h. */
22152 int main(void){return 0;}
22154 if ac_fn_c_try_link "$LINENO"; then :
22156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22157 $as_echo "yes" >&6; }
22162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22163 $as_echo "no" >&6; }
22164 CFLAGS="$_svn_xxflags__save"
22168 rm -f core conftest.err conftest.$ac_objext \
22169 conftest$ac_exeext conftest.$ac_ext
22171 ac_cpp='$CPP $CPPFLAGS'
22172 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22173 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22174 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22179 rm -f core conftest.err conftest.$ac_objext \
22180 conftest$ac_exeext conftest.$ac_ext
22182 ac_cpp='$CPP $CPPFLAGS'
22183 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22184 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22185 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22189 { $as_echo "$as_me:${as_lineno-$LINENO}: Enabling optimizations for C" >&5
22190 $as_echo "$as_me: Enabling optimizations for C" >&6;}
22192 _svn_xxflags__save="$CFLAGS"
22194 ac_cpp='$CPP $CPPFLAGS'
22195 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22196 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22197 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -O3" >&5
22200 $as_echo_n "checking if $CC accepts -O3... " >&6; }
22201 CFLAGS="-O3 $CFLAGS"
22202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22203 /* end confdefs.h. */
22204 int main(void){return 0;}
22206 if ac_fn_c_try_link "$LINENO"; then :
22208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22209 $as_echo "yes" >&6; }
22214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22215 $as_echo "no" >&6; }
22216 CFLAGS="$_svn_xxflags__save"
22219 _svn_xxflags__save="$CFLAGS"
22221 ac_cpp='$CPP $CPPFLAGS'
22222 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22223 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22224 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -O2" >&5
22227 $as_echo_n "checking if $CC accepts -O2... " >&6; }
22228 CFLAGS="-O2 $CFLAGS"
22229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22230 /* end confdefs.h. */
22231 int main(void){return 0;}
22233 if ac_fn_c_try_link "$LINENO"; then :
22235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22236 $as_echo "yes" >&6; }
22241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22242 $as_echo "no" >&6; }
22243 CFLAGS="$_svn_xxflags__save"
22246 _svn_xxflags__save="$CFLAGS"
22248 ac_cpp='$CPP $CPPFLAGS'
22249 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22250 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22251 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -O1" >&5
22254 $as_echo_n "checking if $CC accepts -O1... " >&6; }
22255 CFLAGS="-O1 $CFLAGS"
22256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22257 /* end confdefs.h. */
22258 int main(void){return 0;}
22260 if ac_fn_c_try_link "$LINENO"; then :
22262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22263 $as_echo "yes" >&6; }
22268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22269 $as_echo "no" >&6; }
22270 CFLAGS="$_svn_xxflags__save"
22273 _svn_xxflags__save="$CFLAGS"
22275 ac_cpp='$CPP $CPPFLAGS'
22276 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22277 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22278 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -O" >&5
22281 $as_echo_n "checking if $CC accepts -O... " >&6; }
22282 CFLAGS="-O $CFLAGS"
22283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22284 /* end confdefs.h. */
22285 int main(void){return 0;}
22287 if ac_fn_c_try_link "$LINENO"; then :
22289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22290 $as_echo "yes" >&6; }
22295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22296 $as_echo "no" >&6; }
22297 CFLAGS="$_svn_xxflags__save"
22301 rm -f core conftest.err conftest.$ac_objext \
22302 conftest$ac_exeext conftest.$ac_ext
22304 ac_cpp='$CPP $CPPFLAGS'
22305 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22306 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22307 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22312 rm -f core conftest.err conftest.$ac_objext \
22313 conftest$ac_exeext conftest.$ac_ext
22315 ac_cpp='$CPP $CPPFLAGS'
22316 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22317 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22318 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22323 rm -f core conftest.err conftest.$ac_objext \
22324 conftest$ac_exeext conftest.$ac_ext
22326 ac_cpp='$CPP $CPPFLAGS'
22327 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22328 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22329 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22334 rm -f core conftest.err conftest.$ac_objext \
22335 conftest$ac_exeext conftest.$ac_ext
22337 ac_cpp='$CPP $CPPFLAGS'
22338 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22339 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22340 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22344 _svn_xxflags__save="$CFLAGS"
22346 ac_cpp='$CPP $CPPFLAGS'
22347 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22348 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22349 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -Wno-clobbered" >&5
22352 $as_echo_n "checking if $CC accepts -Wno-clobbered... " >&6; }
22353 CFLAGS="-Wno-clobbered $CFLAGS"
22354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22355 /* end confdefs.h. */
22356 int main(void){return 0;}
22358 if ac_fn_c_try_link "$LINENO"; then :
22360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22361 $as_echo "yes" >&6; }
22366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22367 $as_echo "no" >&6; }
22368 CFLAGS="$_svn_xxflags__save"
22372 rm -f core conftest.err conftest.$ac_objext \
22373 conftest$ac_exeext conftest.$ac_ext
22375 ac_cpp='$CPP $CPPFLAGS'
22376 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22377 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22378 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22383 if test -z "`echo $CXXUSERFLAGS' ' | $EGREP -- '-O[^ ]* '`"; then
22384 CXXFLAGS="`echo $CXXFLAGS' ' | $SED -e 's/-O[^ ]* //g'`"
22385 if test "$enable_debugging" = "yes"; then
22386 { $as_echo "$as_me:${as_lineno-$LINENO}: Enabling optimizations for C++ (with debugging enabled)" >&5
22387 $as_echo "$as_me: Enabling optimizations for C++ (with debugging enabled)" >&6;}
22389 _svn_xxflags__save="$CXXFLAGS"
22391 ac_cpp='$CXXCPP $CPPFLAGS'
22392 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22393 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22394 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CXX accepts -O1" >&5
22397 $as_echo_n "checking if $CXX accepts -O1... " >&6; }
22398 CXXFLAGS="-O1 $CXXFLAGS"
22399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22400 /* end confdefs.h. */
22403 if ac_fn_cxx_try_link "$LINENO"; then :
22405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22406 $as_echo "yes" >&6; }
22411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22412 $as_echo "no" >&6; }
22413 CXXFLAGS="$_svn_xxflags__save"
22416 _svn_xxflags__save="$CXXFLAGS"
22418 ac_cpp='$CXXCPP $CPPFLAGS'
22419 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22420 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22421 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CXX accepts -O" >&5
22424 $as_echo_n "checking if $CXX accepts -O... " >&6; }
22425 CXXFLAGS="-O $CXXFLAGS"
22426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22427 /* end confdefs.h. */
22430 if ac_fn_cxx_try_link "$LINENO"; then :
22432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22433 $as_echo "yes" >&6; }
22438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22439 $as_echo "no" >&6; }
22440 CXXFLAGS="$_svn_xxflags__save"
22444 rm -f core conftest.err conftest.$ac_objext \
22445 conftest$ac_exeext conftest.$ac_ext
22447 ac_cpp='$CXXCPP $CPPFLAGS'
22448 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22449 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22450 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22455 rm -f core conftest.err conftest.$ac_objext \
22456 conftest$ac_exeext conftest.$ac_ext
22458 ac_cpp='$CPP $CPPFLAGS'
22459 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22460 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22461 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22465 { $as_echo "$as_me:${as_lineno-$LINENO}: Enabling optimizations for C++" >&5
22466 $as_echo "$as_me: Enabling optimizations for C++" >&6;}
22468 _svn_xxflags__save="$CXXFLAGS"
22470 ac_cpp='$CXXCPP $CPPFLAGS'
22471 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22472 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22473 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CXX accepts -O3" >&5
22476 $as_echo_n "checking if $CXX accepts -O3... " >&6; }
22477 CXXFLAGS="-O3 $CXXFLAGS"
22478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22479 /* end confdefs.h. */
22482 if ac_fn_cxx_try_link "$LINENO"; then :
22484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22485 $as_echo "yes" >&6; }
22490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22491 $as_echo "no" >&6; }
22492 CXXFLAGS="$_svn_xxflags__save"
22495 _svn_xxflags__save="$CXXFLAGS"
22497 ac_cpp='$CXXCPP $CPPFLAGS'
22498 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22499 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22500 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CXX accepts -O2" >&5
22503 $as_echo_n "checking if $CXX accepts -O2... " >&6; }
22504 CXXFLAGS="-O2 $CXXFLAGS"
22505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22506 /* end confdefs.h. */
22509 if ac_fn_cxx_try_link "$LINENO"; then :
22511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22512 $as_echo "yes" >&6; }
22517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22518 $as_echo "no" >&6; }
22519 CXXFLAGS="$_svn_xxflags__save"
22522 _svn_xxflags__save="$CXXFLAGS"
22524 ac_cpp='$CXXCPP $CPPFLAGS'
22525 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22526 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22527 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CXX accepts -O1" >&5
22530 $as_echo_n "checking if $CXX accepts -O1... " >&6; }
22531 CXXFLAGS="-O1 $CXXFLAGS"
22532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22533 /* end confdefs.h. */
22536 if ac_fn_cxx_try_link "$LINENO"; then :
22538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22539 $as_echo "yes" >&6; }
22544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22545 $as_echo "no" >&6; }
22546 CXXFLAGS="$_svn_xxflags__save"
22549 _svn_xxflags__save="$CXXFLAGS"
22551 ac_cpp='$CXXCPP $CPPFLAGS'
22552 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22553 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22554 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CXX accepts -O" >&5
22557 $as_echo_n "checking if $CXX accepts -O... " >&6; }
22558 CXXFLAGS="-O $CXXFLAGS"
22559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22560 /* end confdefs.h. */
22563 if ac_fn_cxx_try_link "$LINENO"; then :
22565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22566 $as_echo "yes" >&6; }
22571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22572 $as_echo "no" >&6; }
22573 CXXFLAGS="$_svn_xxflags__save"
22577 rm -f core conftest.err conftest.$ac_objext \
22578 conftest$ac_exeext conftest.$ac_ext
22580 ac_cpp='$CXXCPP $CPPFLAGS'
22581 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22582 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22583 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22588 rm -f core conftest.err conftest.$ac_objext \
22589 conftest$ac_exeext conftest.$ac_ext
22591 ac_cpp='$CXXCPP $CPPFLAGS'
22592 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22593 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22594 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22599 rm -f core conftest.err conftest.$ac_objext \
22600 conftest$ac_exeext conftest.$ac_ext
22602 ac_cpp='$CXXCPP $CPPFLAGS'
22603 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22604 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22605 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22610 rm -f core conftest.err conftest.$ac_objext \
22611 conftest$ac_exeext conftest.$ac_ext
22613 ac_cpp='$CPP $CPPFLAGS'
22614 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22615 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22616 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22620 _svn_xxflags__save="$CXXFLAGS"
22622 ac_cpp='$CXXCPP $CPPFLAGS'
22623 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22624 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22625 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CXX accepts -Wno-clobbered" >&5
22628 $as_echo_n "checking if $CXX accepts -Wno-clobbered... " >&6; }
22629 CXXFLAGS="-Wno-clobbered $CXXFLAGS"
22630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22631 /* end confdefs.h. */
22634 if ac_fn_cxx_try_link "$LINENO"; then :
22636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22637 $as_echo "yes" >&6; }
22642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22643 $as_echo "no" >&6; }
22644 CXXFLAGS="$_svn_xxflags__save"
22648 rm -f core conftest.err conftest.$ac_objext \
22649 conftest$ac_exeext conftest.$ac_ext
22651 ac_cpp='$CPP $CPPFLAGS'
22652 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22653 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22654 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22659 elif test "$enable_optimization" = "no"; then
22660 { $as_echo "$as_me:${as_lineno-$LINENO}: Disabling optimizations" >&5
22661 $as_echo "$as_me: Disabling optimizations" >&6;}
22662 CFLAGS="`echo $CFLAGS' ' | $SED -e 's/-O[^ ]* //g'`"
22663 CXXFLAGS="`echo $CXXFLAGS' ' | $SED -e 's/-O[^ ]* //g'`"
22664 # elif test "$enable_optimization" = "maybe" ; then
22668 { $as_echo "$as_me:${as_lineno-$LINENO}: C compiler flags: $CFLAGS" >&5
22669 $as_echo "$as_me: C compiler flags: $CFLAGS" >&6;}
22670 { $as_echo "$as_me:${as_lineno-$LINENO}: language-level: $CMODEFLAGS" >&5
22671 $as_echo "$as_me: language-level: $CMODEFLAGS" >&6;}
22672 { $as_echo "$as_me:${as_lineno-$LINENO}: user-defined: $CUSERFLAGS" >&5
22673 $as_echo "$as_me: user-defined: $CUSERFLAGS" >&6;}
22674 { $as_echo "$as_me:${as_lineno-$LINENO}: maintainer-mode: $CMAINTAINERFLAGS" >&5
22675 $as_echo "$as_me: maintainer-mode: $CMAINTAINERFLAGS" >&6;}
22676 { $as_echo "$as_me:${as_lineno-$LINENO}: C++ compiler flags: $CXXFLAGS" >&5
22677 $as_echo "$as_me: C++ compiler flags: $CXXFLAGS" >&6;}
22678 { $as_echo "$as_me:${as_lineno-$LINENO}: language-level: $CXXMODEFLAGS" >&5
22679 $as_echo "$as_me: language-level: $CXXMODEFLAGS" >&6;}
22680 { $as_echo "$as_me:${as_lineno-$LINENO}: user-defined: $CXXUSERFLAGS" >&5
22681 $as_echo "$as_me: user-defined: $CXXUSERFLAGS" >&6;}
22682 { $as_echo "$as_me:${as_lineno-$LINENO}: maintainer-mode: $CXXMAINTAINERFLAGS" >&5
22683 $as_echo "$as_me: maintainer-mode: $CXXMAINTAINERFLAGS" >&6;}
22685 # Check whether --enable-full-version-match was given.
22686 if test "${enable_full_version_match+set}" = set; then :
22687 enableval=$enable_full_version_match;
22688 if test "$enableval" = "no" ; then
22689 { $as_echo "$as_me:${as_lineno-$LINENO}: Disabling svn full version matching" >&5
22690 $as_echo "$as_me: Disabling svn full version matching" >&6;}
22692 $as_echo "#define SVN_DISABLE_FULL_VERSION_MATCH 1" >>confdefs.h
22700 # Check whether --with-editor was given.
22701 if test "${with_editor+set}" = set; then :
22702 withval=$with_editor;
22704 if test "$withval" = "yes" ; then
22705 as_fn_error $? "--with-editor requires an argument." "$LINENO" 5
22707 SVN_CLIENT_EDITOR=$withval
22709 cat >>confdefs.h <<_ACEOF
22710 #define SVN_CLIENT_EDITOR "$SVN_CLIENT_EDITOR"
22725 # Check whether --with-zlib was given.
22726 if test "${with_zlib+set}" = set; then :
22727 withval=$with_zlib;
22728 if test "$withval" = "yes"; then
22730 elif test "$withval" = "no"; then
22734 zlib_prefix="$withval"
22740 if test "$zlib_skip" = "yes"; then
22741 as_fn_error $? "subversion requires zlib" "$LINENO" 5
22744 if test -n "$zlib_prefix"; then
22745 { $as_echo "$as_me:${as_lineno-$LINENO}: zlib library configuration via prefix" >&5
22746 $as_echo "$as_me: zlib library configuration via prefix" >&6;}
22747 save_cppflags="$CPPFLAGS"
22748 CPPFLAGS="$CPPFLAGS -I$zlib_prefix/include"
22749 for ac_header in zlib.h
22751 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
22752 if test "x$ac_cv_header_zlib_h" = xyes; then :
22753 cat >>confdefs.h <<_ACEOF
22754 #define HAVE_ZLIB_H 1
22757 save_ldflags="$LDFLAGS"
22758 LDFLAGS="$LDFLAGS -L$zlib_prefix/lib"
22759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
22760 $as_echo_n "checking for inflate in -lz... " >&6; }
22761 if ${ac_cv_lib_z_inflate+:} false; then :
22762 $as_echo_n "(cached) " >&6
22764 ac_check_lib_save_LIBS=$LIBS
22766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22767 /* end confdefs.h. */
22769 /* Override any GCC internal prototype to avoid an error.
22770 Use char because int might match the return type of a GCC
22771 builtin and then its argument prototype would still apply. */
22784 if ac_fn_c_try_link "$LINENO"; then :
22785 ac_cv_lib_z_inflate=yes
22787 ac_cv_lib_z_inflate=no
22789 rm -f core conftest.err conftest.$ac_objext \
22790 conftest$ac_exeext conftest.$ac_ext
22791 LIBS=$ac_check_lib_save_LIBS
22793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
22794 $as_echo "$ac_cv_lib_z_inflate" >&6; }
22795 if test "x$ac_cv_lib_z_inflate" = xyes; then :
22798 SVN_ZLIB_INCLUDES="-I$zlib_prefix/include"
22800 input_flags="-L$zlib_prefix/lib"
22802 filtered_dirs="/lib /lib64 /usr/lib /usr/lib64"
22803 for flag in $input_flags; do
22805 for dir in $filtered_dirs; do
22806 if test "$flag" = "-L$dir" || test "$flag" = "-L$dir/"; then
22811 if test "$filter" = "no"; then
22812 output_flags="$output_flags $flag"
22815 if test -n "$output_flags"; then
22816 printf "%s" "${output_flags# }"
22822 LDFLAGS="$save_ldflags"
22828 CPPFLAGS="$save_cppflags"
22831 { $as_echo "$as_me:${as_lineno-$LINENO}: zlib library configuration via pkg-config" >&5
22832 $as_echo "$as_me: zlib library configuration via pkg-config" >&6;}
22833 if test -n "$PKG_CONFIG"; then
22834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for zlib library" >&5
22835 $as_echo_n "checking for zlib library... " >&6; }
22836 if $PKG_CONFIG zlib --exists; then
22837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22838 $as_echo "yes" >&6; }
22840 SVN_ZLIB_INCLUDES=`$PKG_CONFIG zlib --cflags`
22841 SVN_ZLIB_LIBS=`$PKG_CONFIG zlib --libs`
22843 input_flags="$SVN_ZLIB_LIBS"
22845 filtered_dirs="/lib /lib64 /usr/lib /usr/lib64"
22846 for flag in $input_flags; do
22848 for dir in $filtered_dirs; do
22849 if test "$flag" = "-L$dir" || test "$flag" = "-L$dir/"; then
22854 if test "$filter" = "no"; then
22855 output_flags="$output_flags $flag"
22858 if test -n "$output_flags"; then
22859 printf "%s" "${output_flags# }"
22863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22864 $as_echo "no" >&6; }
22869 if test "$zlib_found" = "no"; then
22870 { $as_echo "$as_me:${as_lineno-$LINENO}: zlib library configuration" >&5
22871 $as_echo "$as_me: zlib library configuration" >&6;}
22872 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
22873 if test "x$ac_cv_header_zlib_h" = xyes; then :
22875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
22876 $as_echo_n "checking for inflate in -lz... " >&6; }
22877 if ${ac_cv_lib_z_inflate+:} false; then :
22878 $as_echo_n "(cached) " >&6
22880 ac_check_lib_save_LIBS=$LIBS
22882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22883 /* end confdefs.h. */
22885 /* Override any GCC internal prototype to avoid an error.
22886 Use char because int might match the return type of a GCC
22887 builtin and then its argument prototype would still apply. */
22900 if ac_fn_c_try_link "$LINENO"; then :
22901 ac_cv_lib_z_inflate=yes
22903 ac_cv_lib_z_inflate=no
22905 rm -f core conftest.err conftest.$ac_objext \
22906 conftest$ac_exeext conftest.$ac_ext
22907 LIBS=$ac_check_lib_save_LIBS
22909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
22910 $as_echo "$ac_cv_lib_z_inflate" >&6; }
22911 if test "x$ac_cv_lib_z_inflate" = xyes; then :
22913 zlib_found="builtin"
22914 SVN_ZLIB_LIBS="-lz"
22925 if test "$zlib_found" = "no"; then
22926 as_fn_error $? "subversion requires zlib" "$LINENO" 5
22935 # Check whether --with-lz4 was given.
22936 if test "${with_lz4+set}" = set; then :
22938 if test "$withval" = internal; then
22939 lz4_prefix=internal
22940 elif test "$withval" = yes; then
22943 lz4_prefix="$withval"
22951 if test "$lz4_prefix" = "no"; then
22952 as_fn_error $? "Subversion requires LZ4" "$LINENO" 5
22954 if test "$lz4_prefix" = "internal"; then
22955 { $as_echo "$as_me:${as_lineno-$LINENO}: using internal lz4" >&5
22956 $as_echo "$as_me: using internal lz4" >&6;}
22958 $as_echo "#define SVN_INTERNAL_LZ4 1" >>confdefs.h
22961 if test "$lz4_prefix" = "std"; then
22963 if test -n "$PKG_CONFIG"; then
22964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lz4 library via pkg-config" >&5
22965 $as_echo_n "checking for lz4 library via pkg-config... " >&6; }
22966 if $PKG_CONFIG liblz4 --atleast-version=129 || $PKG_CONFIG liblz4 --max-version=3; then
22967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22968 $as_echo "yes" >&6; }
22970 SVN_LZ4_INCLUDES=`$PKG_CONFIG liblz4 --cflags`
22971 SVN_LZ4_LIBS=`$PKG_CONFIG liblz4 --libs`
22973 input_flags="$SVN_LZ4_LIBS"
22975 filtered_dirs="/lib /lib64 /usr/lib /usr/lib64"
22976 for flag in $input_flags; do
22978 for dir in $filtered_dirs; do
22979 if test "$flag" = "-L$dir" || test "$flag" = "-L$dir/"; then
22984 if test "$filter" = "no"; then
22985 output_flags="$output_flags $flag"
22988 if test -n "$output_flags"; then
22989 printf "%s" "${output_flags# }"
22993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22994 $as_echo "no" >&6; }
22997 if test "$lz4_found" != "yes"; then
22998 { $as_echo "$as_me:${as_lineno-$LINENO}: lz4 configuration without pkg-config" >&5
22999 $as_echo "$as_me: lz4 configuration without pkg-config" >&6;}
23000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LZ4_compress_default in -llz4" >&5
23001 $as_echo_n "checking for LZ4_compress_default in -llz4... " >&6; }
23002 if ${ac_cv_lib_lz4_LZ4_compress_default+:} false; then :
23003 $as_echo_n "(cached) " >&6
23005 ac_check_lib_save_LIBS=$LIBS
23007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23008 /* end confdefs.h. */
23010 /* Override any GCC internal prototype to avoid an error.
23011 Use char because int might match the return type of a GCC
23012 builtin and then its argument prototype would still apply. */
23016 char LZ4_compress_default ();
23020 return LZ4_compress_default ();
23025 if ac_fn_c_try_link "$LINENO"; then :
23026 ac_cv_lib_lz4_LZ4_compress_default=yes
23028 ac_cv_lib_lz4_LZ4_compress_default=no
23030 rm -f core conftest.err conftest.$ac_objext \
23031 conftest$ac_exeext conftest.$ac_ext
23032 LIBS=$ac_check_lib_save_LIBS
23034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lz4_LZ4_compress_default" >&5
23035 $as_echo "$ac_cv_lib_lz4_LZ4_compress_default" >&6; }
23036 if test "x$ac_cv_lib_lz4_LZ4_compress_default" = xyes; then :
23039 SVN_LZ4_LIBS="-llz4"
23047 { $as_echo "$as_me:${as_lineno-$LINENO}: lz4 configuration via prefix" >&5
23048 $as_echo "$as_me: lz4 configuration via prefix" >&6;}
23049 save_cppflags="$CPPFLAGS"
23050 CPPFLAGS="$CPPFLAGS -I$lz4_prefix/include"
23051 save_ldflags="$LDFLAGS"
23052 LDFLAGS="$LDFLAGS -L$lz4_prefix/lib"
23053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LZ4_compress_default in -llz4" >&5
23054 $as_echo_n "checking for LZ4_compress_default in -llz4... " >&6; }
23055 if ${ac_cv_lib_lz4_LZ4_compress_default+:} false; then :
23056 $as_echo_n "(cached) " >&6
23058 ac_check_lib_save_LIBS=$LIBS
23060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23061 /* end confdefs.h. */
23063 /* Override any GCC internal prototype to avoid an error.
23064 Use char because int might match the return type of a GCC
23065 builtin and then its argument prototype would still apply. */
23069 char LZ4_compress_default ();
23073 return LZ4_compress_default ();
23078 if ac_fn_c_try_link "$LINENO"; then :
23079 ac_cv_lib_lz4_LZ4_compress_default=yes
23081 ac_cv_lib_lz4_LZ4_compress_default=no
23083 rm -f core conftest.err conftest.$ac_objext \
23084 conftest$ac_exeext conftest.$ac_ext
23085 LIBS=$ac_check_lib_save_LIBS
23087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lz4_LZ4_compress_default" >&5
23088 $as_echo "$ac_cv_lib_lz4_LZ4_compress_default" >&6; }
23089 if test "x$ac_cv_lib_lz4_LZ4_compress_default" = xyes; then :
23092 SVN_LZ4_INCLUDES="-I$lz4_prefix/include"
23094 input_flags="-L$lz4_prefix/lib"
23096 filtered_dirs="/lib /lib64 /usr/lib /usr/lib64"
23097 for flag in $input_flags; do
23099 for dir in $filtered_dirs; do
23100 if test "$flag" = "-L$dir" || test "$flag" = "-L$dir/"; then
23105 if test "$filter" = "no"; then
23106 output_flags="$output_flags $flag"
23109 if test -n "$output_flags"; then
23110 printf "%s" "${output_flags# }"
23116 LDFLAGS="$save_ldflags"
23117 CPPFLAGS="$save_cppflags"
23120 if test "$lz4_found" != "yes"; then
23121 as_fn_error $? "Subversion requires LZ4 >= r129, or use --with-lz4=internal" "$LINENO" 5
23130 # Check whether --with-utf8proc was given.
23131 if test "${with_utf8proc+set}" = set; then :
23132 withval=$with_utf8proc;
23133 if test "$withval" = internal; then
23134 utf8proc_prefix=internal
23135 elif test "$withval" = yes; then
23136 utf8proc_prefix=std
23138 utf8proc_prefix="$withval"
23142 utf8proc_prefix=std
23146 if test "$utf8proc_prefix" = "no"; then
23147 as_fn_error $? "Subversion requires UTF8PROC" "$LINENO" 5
23149 if test "$utf8proc_prefix" = "internal"; then
23150 { $as_echo "$as_me:${as_lineno-$LINENO}: using internal utf8proc" >&5
23151 $as_echo "$as_me: using internal utf8proc" >&6;}
23153 $as_echo "#define SVN_INTERNAL_UTF8PROC 1" >>confdefs.h
23156 if test "$utf8proc_prefix" = "std"; then
23158 { $as_echo "$as_me:${as_lineno-$LINENO}: utf8proc configuration without pkg-config" >&5
23159 $as_echo "$as_me: utf8proc configuration without pkg-config" >&6;}
23160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for utf8proc_version in -lutf8proc" >&5
23161 $as_echo_n "checking for utf8proc_version in -lutf8proc... " >&6; }
23162 if ${ac_cv_lib_utf8proc_utf8proc_version+:} false; then :
23163 $as_echo_n "(cached) " >&6
23165 ac_check_lib_save_LIBS=$LIBS
23166 LIBS="-lutf8proc $LIBS"
23167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23168 /* end confdefs.h. */
23170 /* Override any GCC internal prototype to avoid an error.
23171 Use char because int might match the return type of a GCC
23172 builtin and then its argument prototype would still apply. */
23176 char utf8proc_version ();
23180 return utf8proc_version ();
23185 if ac_fn_c_try_link "$LINENO"; then :
23186 ac_cv_lib_utf8proc_utf8proc_version=yes
23188 ac_cv_lib_utf8proc_utf8proc_version=no
23190 rm -f core conftest.err conftest.$ac_objext \
23191 conftest$ac_exeext conftest.$ac_ext
23192 LIBS=$ac_check_lib_save_LIBS
23194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_utf8proc_utf8proc_version" >&5
23195 $as_echo "$ac_cv_lib_utf8proc_utf8proc_version" >&6; }
23196 if test "x$ac_cv_lib_utf8proc_utf8proc_version" = xyes; then :
23199 SVN_UTF8PROC_LIBS="-lutf8proc"
23206 { $as_echo "$as_me:${as_lineno-$LINENO}: utf8proc configuration via prefix" >&5
23207 $as_echo "$as_me: utf8proc configuration via prefix" >&6;}
23208 save_cppflags="$CPPFLAGS"
23209 CPPFLAGS="$CPPFLAGS -I$utf8proc_prefix/include"
23210 save_ldflags="$LDFLAGS"
23211 LDFLAGS="$LDFLAGS -L$utf8proc_prefix/lib"
23212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for utf8proc_version in -lutf8proc" >&5
23213 $as_echo_n "checking for utf8proc_version in -lutf8proc... " >&6; }
23214 if ${ac_cv_lib_utf8proc_utf8proc_version+:} false; then :
23215 $as_echo_n "(cached) " >&6
23217 ac_check_lib_save_LIBS=$LIBS
23218 LIBS="-lutf8proc $LIBS"
23219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23220 /* end confdefs.h. */
23222 /* Override any GCC internal prototype to avoid an error.
23223 Use char because int might match the return type of a GCC
23224 builtin and then its argument prototype would still apply. */
23228 char utf8proc_version ();
23232 return utf8proc_version ();
23237 if ac_fn_c_try_link "$LINENO"; then :
23238 ac_cv_lib_utf8proc_utf8proc_version=yes
23240 ac_cv_lib_utf8proc_utf8proc_version=no
23242 rm -f core conftest.err conftest.$ac_objext \
23243 conftest$ac_exeext conftest.$ac_ext
23244 LIBS=$ac_check_lib_save_LIBS
23246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_utf8proc_utf8proc_version" >&5
23247 $as_echo "$ac_cv_lib_utf8proc_utf8proc_version" >&6; }
23248 if test "x$ac_cv_lib_utf8proc_utf8proc_version" = xyes; then :
23251 SVN_UTF8PROC_INCLUDES="-I$utf8proc_prefix/include"
23252 SVN_UTF8PROC_LIBS="`
23253 input_flags="-L$utf8proc_prefix/lib"
23255 filtered_dirs="/lib /lib64 /usr/lib /usr/lib64"
23256 for flag in $input_flags; do
23258 for dir in $filtered_dirs; do
23259 if test "$flag" = "-L$dir" || test "$flag" = "-L$dir/"; then
23264 if test "$filter" = "no"; then
23265 output_flags="$output_flags $flag"
23268 if test -n "$output_flags"; then
23269 printf "%s" "${output_flags# }"
23275 LDFLAGS="$save_ldflags"
23276 CPPFLAGS="$save_cppflags"
23279 if test "$utf8proc_found" != "yes"; then
23280 as_fn_error $? "Subversion requires UTF8PROC; install it or re-run configure with \"--with-utf8proc=internal\"" "$LINENO" 5
23288 # Check whether --enable-mod-activation was given.
23289 if test "${enable_mod_activation+set}" = set; then :
23290 enableval=$enable_mod_activation;
23291 if test "$enableval" = "yes" ; then
23292 MOD_ACTIVATION="-a"
23293 { $as_echo "$as_me:${as_lineno-$LINENO}: Enabling apache module activation" >&5
23294 $as_echo "$as_me: Enabling apache module activation" >&6;}
23296 { $as_echo "$as_me:${as_lineno-$LINENO}: Disabling apache module activation" >&5
23297 $as_echo "$as_me: Disabling apache module activation" >&6;}
23306 # Check whether --enable-gcov was given.
23307 if test "${enable_gcov+set}" = set; then :
23308 enableval=$enable_gcov;
23309 if test "$enableval" = "yes" ; then
23310 if test "$GCC" = "yes"; then
23311 if test "$svn_enable_shared" = "yes" ; then
23312 as_fn_error $? "Can't have --enable-gcov without --disable-shared (we
23313 recommend also using --enable-all-static)." "$LINENO" 5
23315 if test ! "$enable_all_static" = "yes" ; then
23316 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: We recommend --enable-all-static with --enable-gcov." >&5
23317 $as_echo "$as_me: WARNING: We recommend --enable-all-static with --enable-gcov." >&2;}
23319 { $as_echo "$as_me:${as_lineno-$LINENO}: Enabling gcov coverage testing." >&5
23320 $as_echo "$as_me: Enabling gcov coverage testing." >&6;}
23321 CFLAGS="$CFLAGS -fprofile-arcs -ftest-coverage"
23322 CXXFLAGS="$CXXFLAGS -fprofile-arcs -ftest-coverage"
23324 as_fn_error $? "We only support --enable-gcov with GCC right now." "$LINENO" 5
23331 # Check whether --enable-gprof was given.
23332 if test "${enable_gprof+set}" = set; then :
23333 enableval=$enable_gprof;
23334 if test "$enableval" = "yes" ; then
23335 if test "$GCC" = "yes"; then
23336 if test "$svn_enable_shared" = "yes" ; then
23337 as_fn_error $? "Can't have --enable-gprof without --disable-shared (we
23338 recommend also using --enable-all-static)." "$LINENO" 5
23340 if test ! "$enable_all_static" = "yes" ; then
23341 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: We recommend --enable-all-static with --enable-gprof." >&5
23342 $as_echo "$as_me: WARNING: We recommend --enable-all-static with --enable-gprof." >&2;}
23344 { $as_echo "$as_me:${as_lineno-$LINENO}: Enabling gprof profiling data (to gmon.out)." >&5
23345 $as_echo "$as_me: Enabling gprof profiling data (to gmon.out)." >&6;}
23346 CFLAGS="$CFLAGS -pg"
23347 CXXFLAGS="$CXXFLAGS -pg"
23348 LT_LDFLAGS="$LT_LDFLAGS -pg"
23350 as_fn_error $? "We only support --enable-gprof with GCC right now." "$LINENO" 5
23358 # Scripting and Bindings languages
23360 # Python: Used for testsuite, and bindings
23363 PYTHON="`$abs_srcdir/build/find_python.sh`"
23364 if test -z "$PYTHON"; then
23365 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Python 2.7 or later is required to run the testsuite" >&5
23366 $as_echo "$as_me: WARNING: Python 2.7 or later is required to run the testsuite" >&2;}
23367 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: or to use the Subversion Python bindings" >&5
23368 $as_echo "$as_me: WARNING: or to use the Subversion Python bindings" >&2;}
23369 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: " >&5
23370 $as_echo "$as_me: WARNING: " >&2;}
23371 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: If you have a suitable Python installed, but not on the" >&5
23372 $as_echo "$as_me: WARNING: If you have a suitable Python installed, but not on the" >&2;}
23373 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PATH, set the environment variable PYTHON to the full path" >&5
23374 $as_echo "$as_me: WARNING: PATH, set the environment variable PYTHON to the full path" >&2;}
23375 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: to the Python executable, and re-run configure" >&5
23376 $as_echo "$as_me: WARNING: to the Python executable, and re-run configure" >&2;}
23378 for ac_prog in "$PYTHON"
23380 # Extract the first word of "$ac_prog", so it can be a program name with args.
23381 set dummy $ac_prog; ac_word=$2
23382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23383 $as_echo_n "checking for $ac_word... " >&6; }
23384 if ${ac_cv_path_PYTHON+:} false; then :
23385 $as_echo_n "(cached) " >&6
23389 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
23392 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23393 for as_dir in $PATH
23396 test -z "$as_dir" && as_dir=.
23397 for ac_exec_ext in '' $ac_executable_extensions; do
23398 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23399 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
23400 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23410 PYTHON=$ac_cv_path_PYTHON
23411 if test -n "$PYTHON"; then
23412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
23413 $as_echo "$PYTHON" >&6; }
23415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23416 $as_echo "no" >&6; }
23420 test -n "$PYTHON" && break
23422 test -n "$PYTHON" || PYTHON="none"
23425 # The minimum version for the JVM runtime for our Java bytecode.
23426 JAVA_OLDEST_WORKING_VER='1.8'
23427 # SVN_CHECK_JDK sets $JAVA_CLASSPATH
23429 JAVA_OLDEST_WORKING_VER="$JAVA_OLDEST_WORKING_VER"
23431 # Check whether --with-jdk was given.
23432 if test "${with_jdk+set}" = set; then :
23441 JAVA_OLDEST_WORKING_VER="$JAVA_OLDEST_WORKING_VER"
23452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JDK" >&5
23453 $as_echo_n "checking for JDK... " >&6; }
23454 if test $where = check; then
23455 if test -x "$JAVA_HOME/bin/java"; then
23457 elif test -x "/usr/libexec/java_home"; then
23458 JDK=`/usr/libexec/java_home`
23459 elif test -x "/Library/Java/Home/bin/java"; then
23460 JDK="/Library/Java/Home"
23461 elif test -x "/usr/bin/java"; then
23463 elif test -x "/usr/local/bin/java"; then
23471 if test "$os_arch" = "Darwin"; then
23472 OSX_VER=`/usr/bin/sw_vers | grep ProductVersion | cut -f2 | cut -d"." -f1,2`
23474 if test "$OSX_VER" = "10.4"; then
23478 OSX_SYS_JAVA_FRAMEWORK="/System/Library/Frameworks/JavaVM.framework"
23479 OSX_SDK_JAVA_FRAMEWORK="/Developer/SDKs/MacOSX$OSX_VER.sdk/System/Library"
23480 OSX_SDK_JAVA_FRAMEWORK="$OSX_SDK_JAVA_FRAMEWORK/Frameworks/JavaVM.framework"
23483 if test "$os_arch" = "Darwin" && test "$JDK" = "/usr" &&
23484 test -d "/Library/Java/Home"; then
23485 JDK="/Library/Java/Home"
23488 if test "$os_arch" = "Darwin" && test "$JDK" = "/Library/Java/Home"; then
23489 JRE_LIB_DIR="$OSX_SYS_JAVA_FRAMEWORK/Classes"
23491 JRE_LIB_DIR="$JDK/jre/lib"
23494 if test -f "$JDK/include/jni.h"; then
23495 JNI_INCLUDEDIR="$JDK/include"
23497 elif test "$os_arch" = "Darwin" && test -e "$JDK/Headers/jni.h"; then
23498 JNI_INCLUDEDIR="$JDK/Headers"
23500 elif test "$os_arch" = "Darwin" &&
23501 test -e "$OSX_SYS_JAVA_FRAMEWORK/Headers/jni.h"; then
23502 JNI_INCLUDEDIR="$OSX_SYS_JAVA_FRAMEWORK/Headers"
23504 elif test "$os_arch" = "Darwin" &&
23505 test -e "$OSX_SDK_JAVA_FRAMEWORK/Headers/jni.h"; then
23506 JNI_INCLUDEDIR="$OSX_SDK_JAVA_FRAMEWORK/Headers"
23511 if test "$JDK_SUITABLE" = "yes"; then
23512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JNI_INCLUDEDIR/jni.h" >&5
23513 $as_echo "$JNI_INCLUDEDIR/jni.h" >&6; }
23515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23516 $as_echo "no" >&6; }
23517 if test "$where" != "check"; then
23518 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no JNI header files found." >&5
23519 $as_echo "$as_me: WARNING: no JNI header files found." >&2;}
23520 if test "$os_arch" = "Darwin"; then
23521 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You may need to install the latest Java Development package from http://connect.apple.com/. Apple no longer includes the JNI header files by default on Java updates." >&5
23522 $as_echo "$as_me: WARNING: You may need to install the latest Java Development package from http://connect.apple.com/. Apple no longer includes the JNI header files by default on Java updates." >&2;}
23527 if test "$JDK_SUITABLE" = "yes"; then
23528 JAVA_BIN='$(JDK)/bin'
23530 JAVA="$JAVA_BIN/java"
23531 JAVAC="$JAVA_BIN/javac"
23532 JAVAH="$JAVA_BIN/javah"
23533 JAVADOC="$JAVA_BIN/javadoc"
23534 JAR="$JAVA_BIN/jar"
23537 # Check whether --with-jikes was given.
23538 if test "${with_jikes+set}" = set; then :
23539 withval=$with_jikes;
23540 if test "$withval" != "no"; then
23541 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The --with-jikes option was ignored" >&5
23542 $as_echo "$as_me: WARNING: The --with-jikes option was ignored" >&2;}
23548 # The release for "-source" could actually be greater than that
23549 # of "-target", if we want to cross-compile for lesser JVMs.
23550 if test -z "$JAVAC_FLAGS"; then
23551 JAVAC_FLAGS="-target $JAVA_OLDEST_WORKING_VER -source 1.8"
23552 if test "$enable_debugging" = "yes"; then
23553 JAVAC_FLAGS="-g -Xlint -Xlint:unchecked -Xlint:serial -Xlint:path $JAVAC_FLAGS"
23554 if test -z "$JAVAC_COMPAT_FLAGS"; then
23555 JAVAC_COMPAT_FLAGS="$JAVAC_FLAGS -Xlint:-unchecked -Xlint:-deprecation -Xlint:-dep-ann -Xlint:-rawtypes"
23560 JNI_INCLUDES="-I$JNI_INCLUDEDIR"
23561 list="`find "$JNI_INCLUDEDIR" -type d -print`"
23562 for dir in $list; do
23563 JNI_INCLUDES="$JNI_INCLUDES -I$dir"
23581 JAVA_OLDEST_WORKING_VER="$JAVA_OLDEST_WORKING_VER"
23592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JDK" >&5
23593 $as_echo_n "checking for JDK... " >&6; }
23594 if test $where = check; then
23595 if test -x "$JAVA_HOME/bin/java"; then
23597 elif test -x "/usr/libexec/java_home"; then
23598 JDK=`/usr/libexec/java_home`
23599 elif test -x "/Library/Java/Home/bin/java"; then
23600 JDK="/Library/Java/Home"
23601 elif test -x "/usr/bin/java"; then
23603 elif test -x "/usr/local/bin/java"; then
23611 if test "$os_arch" = "Darwin"; then
23612 OSX_VER=`/usr/bin/sw_vers | grep ProductVersion | cut -f2 | cut -d"." -f1,2`
23614 if test "$OSX_VER" = "10.4"; then
23618 OSX_SYS_JAVA_FRAMEWORK="/System/Library/Frameworks/JavaVM.framework"
23619 OSX_SDK_JAVA_FRAMEWORK="/Developer/SDKs/MacOSX$OSX_VER.sdk/System/Library"
23620 OSX_SDK_JAVA_FRAMEWORK="$OSX_SDK_JAVA_FRAMEWORK/Frameworks/JavaVM.framework"
23623 if test "$os_arch" = "Darwin" && test "$JDK" = "/usr" &&
23624 test -d "/Library/Java/Home"; then
23625 JDK="/Library/Java/Home"
23628 if test "$os_arch" = "Darwin" && test "$JDK" = "/Library/Java/Home"; then
23629 JRE_LIB_DIR="$OSX_SYS_JAVA_FRAMEWORK/Classes"
23631 JRE_LIB_DIR="$JDK/jre/lib"
23634 if test -f "$JDK/include/jni.h"; then
23635 JNI_INCLUDEDIR="$JDK/include"
23637 elif test "$os_arch" = "Darwin" && test -e "$JDK/Headers/jni.h"; then
23638 JNI_INCLUDEDIR="$JDK/Headers"
23640 elif test "$os_arch" = "Darwin" &&
23641 test -e "$OSX_SYS_JAVA_FRAMEWORK/Headers/jni.h"; then
23642 JNI_INCLUDEDIR="$OSX_SYS_JAVA_FRAMEWORK/Headers"
23644 elif test "$os_arch" = "Darwin" &&
23645 test -e "$OSX_SDK_JAVA_FRAMEWORK/Headers/jni.h"; then
23646 JNI_INCLUDEDIR="$OSX_SDK_JAVA_FRAMEWORK/Headers"
23651 if test "$JDK_SUITABLE" = "yes"; then
23652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JNI_INCLUDEDIR/jni.h" >&5
23653 $as_echo "$JNI_INCLUDEDIR/jni.h" >&6; }
23655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23656 $as_echo "no" >&6; }
23657 if test "$where" != "check"; then
23658 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no JNI header files found." >&5
23659 $as_echo "$as_me: WARNING: no JNI header files found." >&2;}
23660 if test "$os_arch" = "Darwin"; then
23661 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You may need to install the latest Java Development package from http://connect.apple.com/. Apple no longer includes the JNI header files by default on Java updates." >&5
23662 $as_echo "$as_me: WARNING: You may need to install the latest Java Development package from http://connect.apple.com/. Apple no longer includes the JNI header files by default on Java updates." >&2;}
23667 if test "$JDK_SUITABLE" = "yes"; then
23668 JAVA_BIN='$(JDK)/bin'
23670 JAVA="$JAVA_BIN/java"
23671 JAVAC="$JAVA_BIN/javac"
23672 JAVAH="$JAVA_BIN/javah"
23673 JAVADOC="$JAVA_BIN/javadoc"
23674 JAR="$JAVA_BIN/jar"
23677 # Check whether --with-jikes was given.
23678 if test "${with_jikes+set}" = set; then :
23679 withval=$with_jikes;
23680 if test "$withval" != "no"; then
23681 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The --with-jikes option was ignored" >&5
23682 $as_echo "$as_me: WARNING: The --with-jikes option was ignored" >&2;}
23688 # The release for "-source" could actually be greater than that
23689 # of "-target", if we want to cross-compile for lesser JVMs.
23690 if test -z "$JAVAC_FLAGS"; then
23691 JAVAC_FLAGS="-target $JAVA_OLDEST_WORKING_VER -source 1.8"
23692 if test "$enable_debugging" = "yes"; then
23693 JAVAC_FLAGS="-g -Xlint -Xlint:unchecked -Xlint:serial -Xlint:path $JAVAC_FLAGS"
23694 if test -z "$JAVAC_COMPAT_FLAGS"; then
23695 JAVAC_COMPAT_FLAGS="$JAVAC_FLAGS -Xlint:-unchecked -Xlint:-deprecation -Xlint:-dep-ann -Xlint:-rawtypes"
23700 JNI_INCLUDES="-I$JNI_INCLUDEDIR"
23701 list="`find "$JNI_INCLUDEDIR" -type d -print`"
23702 for dir in $list; do
23703 JNI_INCLUDES="$JNI_INCLUDES -I$dir"
23724 JAVA_OLDEST_WORKING_VER="$JAVA_OLDEST_WORKING_VER"
23735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JDK" >&5
23736 $as_echo_n "checking for JDK... " >&6; }
23737 if test $where = check; then
23738 if test -x "$JAVA_HOME/bin/java"; then
23740 elif test -x "/usr/libexec/java_home"; then
23741 JDK=`/usr/libexec/java_home`
23742 elif test -x "/Library/Java/Home/bin/java"; then
23743 JDK="/Library/Java/Home"
23744 elif test -x "/usr/bin/java"; then
23746 elif test -x "/usr/local/bin/java"; then
23754 if test "$os_arch" = "Darwin"; then
23755 OSX_VER=`/usr/bin/sw_vers | grep ProductVersion | cut -f2 | cut -d"." -f1,2`
23757 if test "$OSX_VER" = "10.4"; then
23761 OSX_SYS_JAVA_FRAMEWORK="/System/Library/Frameworks/JavaVM.framework"
23762 OSX_SDK_JAVA_FRAMEWORK="/Developer/SDKs/MacOSX$OSX_VER.sdk/System/Library"
23763 OSX_SDK_JAVA_FRAMEWORK="$OSX_SDK_JAVA_FRAMEWORK/Frameworks/JavaVM.framework"
23766 if test "$os_arch" = "Darwin" && test "$JDK" = "/usr" &&
23767 test -d "/Library/Java/Home"; then
23768 JDK="/Library/Java/Home"
23771 if test "$os_arch" = "Darwin" && test "$JDK" = "/Library/Java/Home"; then
23772 JRE_LIB_DIR="$OSX_SYS_JAVA_FRAMEWORK/Classes"
23774 JRE_LIB_DIR="$JDK/jre/lib"
23777 if test -f "$JDK/include/jni.h"; then
23778 JNI_INCLUDEDIR="$JDK/include"
23780 elif test "$os_arch" = "Darwin" && test -e "$JDK/Headers/jni.h"; then
23781 JNI_INCLUDEDIR="$JDK/Headers"
23783 elif test "$os_arch" = "Darwin" &&
23784 test -e "$OSX_SYS_JAVA_FRAMEWORK/Headers/jni.h"; then
23785 JNI_INCLUDEDIR="$OSX_SYS_JAVA_FRAMEWORK/Headers"
23787 elif test "$os_arch" = "Darwin" &&
23788 test -e "$OSX_SDK_JAVA_FRAMEWORK/Headers/jni.h"; then
23789 JNI_INCLUDEDIR="$OSX_SDK_JAVA_FRAMEWORK/Headers"
23794 if test "$JDK_SUITABLE" = "yes"; then
23795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JNI_INCLUDEDIR/jni.h" >&5
23796 $as_echo "$JNI_INCLUDEDIR/jni.h" >&6; }
23798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23799 $as_echo "no" >&6; }
23800 if test "$where" != "check"; then
23801 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no JNI header files found." >&5
23802 $as_echo "$as_me: WARNING: no JNI header files found." >&2;}
23803 if test "$os_arch" = "Darwin"; then
23804 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You may need to install the latest Java Development package from http://connect.apple.com/. Apple no longer includes the JNI header files by default on Java updates." >&5
23805 $as_echo "$as_me: WARNING: You may need to install the latest Java Development package from http://connect.apple.com/. Apple no longer includes the JNI header files by default on Java updates." >&2;}
23810 if test "$JDK_SUITABLE" = "yes"; then
23811 JAVA_BIN='$(JDK)/bin'
23813 JAVA="$JAVA_BIN/java"
23814 JAVAC="$JAVA_BIN/javac"
23815 JAVAH="$JAVA_BIN/javah"
23816 JAVADOC="$JAVA_BIN/javadoc"
23817 JAR="$JAVA_BIN/jar"
23820 # Check whether --with-jikes was given.
23821 if test "${with_jikes+set}" = set; then :
23822 withval=$with_jikes;
23823 if test "$withval" != "no"; then
23824 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The --with-jikes option was ignored" >&5
23825 $as_echo "$as_me: WARNING: The --with-jikes option was ignored" >&2;}
23831 # The release for "-source" could actually be greater than that
23832 # of "-target", if we want to cross-compile for lesser JVMs.
23833 if test -z "$JAVAC_FLAGS"; then
23834 JAVAC_FLAGS="-target $JAVA_OLDEST_WORKING_VER -source 1.8"
23835 if test "$enable_debugging" = "yes"; then
23836 JAVAC_FLAGS="-g -Xlint -Xlint:unchecked -Xlint:serial -Xlint:path $JAVAC_FLAGS"
23837 if test -z "$JAVAC_COMPAT_FLAGS"; then
23838 JAVAC_COMPAT_FLAGS="$JAVAC_FLAGS -Xlint:-unchecked -Xlint:-deprecation -Xlint:-dep-ann -Xlint:-rawtypes"
23843 JNI_INCLUDES="-I$JNI_INCLUDEDIR"
23844 list="`find "$JNI_INCLUDEDIR" -type d -print`"
23845 for dir in $list; do
23846 JNI_INCLUDES="$JNI_INCLUDES -I$dir"
23865 # Extract the first word of "perl", so it can be a program name with args.
23866 set dummy perl; ac_word=$2
23867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23868 $as_echo_n "checking for $ac_word... " >&6; }
23869 if ${ac_cv_path_PERL+:} false; then :
23870 $as_echo_n "(cached) " >&6
23874 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
23877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23878 for as_dir in $PATH
23881 test -z "$as_dir" && as_dir=.
23882 for ac_exec_ext in '' $ac_executable_extensions; do
23883 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23884 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
23885 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23892 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
23896 PERL=$ac_cv_path_PERL
23897 if test -n "$PERL"; then
23898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
23899 $as_echo "$PERL" >&6; }
23901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23902 $as_echo "no" >&6; }
23907 if test -n "$RUBY"; then
23908 # Extract the first word of ""$RUBY"", so it can be a program name with args.
23909 set dummy "$RUBY"; ac_word=$2
23910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23911 $as_echo_n "checking for $ac_word... " >&6; }
23912 if ${ac_cv_path_RUBY+:} false; then :
23913 $as_echo_n "(cached) " >&6
23917 ac_cv_path_RUBY="$RUBY" # Let the user override the test with a path.
23920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23921 for as_dir in $PATH
23924 test -z "$as_dir" && as_dir=.
23925 for ac_exec_ext in '' $ac_executable_extensions; do
23926 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23927 ac_cv_path_RUBY="$as_dir/$ac_word$ac_exec_ext"
23928 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23935 test -z "$ac_cv_path_RUBY" && ac_cv_path_RUBY="none"
23939 RUBY=$ac_cv_path_RUBY
23940 if test -n "$RUBY"; then
23941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUBY" >&5
23942 $as_echo "$RUBY" >&6; }
23944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23945 $as_echo "no" >&6; }
23950 for ac_prog in ruby ruby1 ruby1.8 ruby18 ruby1.9 ruby19 ruby1.9.3 ruby193 ruby2 ruby2.0 ruby20 ruby2.1 ruby21 ruby2.2 ruby22 ruby2.3 ruby23 ruby2.4 ruby24
23952 # Extract the first word of "$ac_prog", so it can be a program name with args.
23953 set dummy $ac_prog; ac_word=$2
23954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23955 $as_echo_n "checking for $ac_word... " >&6; }
23956 if ${ac_cv_path_RUBY+:} false; then :
23957 $as_echo_n "(cached) " >&6
23961 ac_cv_path_RUBY="$RUBY" # Let the user override the test with a path.
23964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23965 for as_dir in $PATH
23968 test -z "$as_dir" && as_dir=.
23969 for ac_exec_ext in '' $ac_executable_extensions; do
23970 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23971 ac_cv_path_RUBY="$as_dir/$ac_word$ac_exec_ext"
23972 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23982 RUBY=$ac_cv_path_RUBY
23983 if test -n "$RUBY"; then
23984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUBY" >&5
23985 $as_echo "$RUBY" >&6; }
23987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23988 $as_echo "no" >&6; }
23992 test -n "$RUBY" && break
23994 test -n "$RUBY" || RUBY="none"
23997 if test "$RUBY" != "none"; then
23998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking rb_hash_foreach" >&5
23999 $as_echo_n "checking rb_hash_foreach... " >&6; }
24000 if "$RUBY" -r mkmf -e 'exit(have_func("rb_hash_foreach") ? 0 : 1)' >/dev/null; then
24001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24002 $as_echo "yes" >&6; }
24003 if test -n "$RDOC"; then
24004 # Extract the first word of ""$RDOC"", so it can be a program name with args.
24005 set dummy "$RDOC"; ac_word=$2
24006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24007 $as_echo_n "checking for $ac_word... " >&6; }
24008 if ${ac_cv_path_RDOC+:} false; then :
24009 $as_echo_n "(cached) " >&6
24013 ac_cv_path_RDOC="$RDOC" # Let the user override the test with a path.
24016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24017 for as_dir in $PATH
24020 test -z "$as_dir" && as_dir=.
24021 for ac_exec_ext in '' $ac_executable_extensions; do
24022 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24023 ac_cv_path_RDOC="$as_dir/$ac_word$ac_exec_ext"
24024 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24031 test -z "$ac_cv_path_RDOC" && ac_cv_path_RDOC="none"
24035 RDOC=$ac_cv_path_RDOC
24036 if test -n "$RDOC"; then
24037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RDOC" >&5
24038 $as_echo "$RDOC" >&6; }
24040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24041 $as_echo "no" >&6; }
24046 for ac_prog in rdoc rdoc1 rdoc1.8 rdoc18 rdoc1.9 rdoc19 rdoc1.9.3 rdoc193 rdoc2 rdoc2.0 rdoc20 rdoc2.1 rdoc21 rdoc2.2 rdoc22 rdoc2.3 rdoc23 rdoc2.4 rdoc24
24048 # Extract the first word of "$ac_prog", so it can be a program name with args.
24049 set dummy $ac_prog; ac_word=$2
24050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24051 $as_echo_n "checking for $ac_word... " >&6; }
24052 if ${ac_cv_path_RDOC+:} false; then :
24053 $as_echo_n "(cached) " >&6
24057 ac_cv_path_RDOC="$RDOC" # Let the user override the test with a path.
24060 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24061 for as_dir in $PATH
24064 test -z "$as_dir" && as_dir=.
24065 for ac_exec_ext in '' $ac_executable_extensions; do
24066 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24067 ac_cv_path_RDOC="$as_dir/$ac_word$ac_exec_ext"
24068 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24078 RDOC=$ac_cv_path_RDOC
24079 if test -n "$RDOC"; then
24080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RDOC" >&5
24081 $as_echo "$RDOC" >&6; }
24083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24084 $as_echo "no" >&6; }
24088 test -n "$RDOC" && break
24090 test -n "$RDOC" || RDOC="none"
24093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ruby major version" >&5
24094 $as_echo_n "checking for Ruby major version... " >&6; }
24095 if ${svn_cv_ruby_major+:} false; then :
24096 $as_echo_n "(cached) " >&6
24099 svn_cv_ruby_major="`$RUBY -rrbconfig -e 'print RbConfig::CONFIG.fetch(%q(MAJOR))'`"
24102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $svn_cv_ruby_major" >&5
24103 $as_echo "$svn_cv_ruby_major" >&6; }
24104 RUBY_MAJOR="$svn_cv_ruby_major"
24106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ruby minor version" >&5
24107 $as_echo_n "checking for Ruby minor version... " >&6; }
24108 if ${svn_cv_ruby_minor+:} false; then :
24109 $as_echo_n "(cached) " >&6
24112 svn_cv_ruby_minor="`$RUBY -rrbconfig -e 'print RbConfig::CONFIG.fetch(%q(MINOR))'`"
24115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $svn_cv_ruby_minor" >&5
24116 $as_echo "$svn_cv_ruby_minor" >&6; }
24117 RUBY_MINOR="$svn_cv_ruby_minor"
24119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ruby teeny version" >&5
24120 $as_echo_n "checking for Ruby teeny version... " >&6; }
24121 if ${svn_cv_ruby_teeny+:} false; then :
24122 $as_echo_n "(cached) " >&6
24125 svn_cv_ruby_teeny="`$RUBY -rrbconfig -e 'major, minor, teeny = RUBY_VERSION.split("."); print teeny;'`"
24128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $svn_cv_ruby_teeny" >&5
24129 $as_echo "$svn_cv_ruby_teeny" >&6; }
24130 RUBY_TEENY="$svn_cv_ruby_teeny"
24135 if test \( "$RUBY_MAJOR" -eq "1" -a "$RUBY_MINOR" -gt "8" -a "$RUBY_TEENY" -lt "3" \); then
24136 # Disallow Ruby between 1.8.7 and 1.9.3
24138 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The detected Ruby is between 1.9 and 1.9.3" >&5
24139 $as_echo "$as_me: WARNING: The detected Ruby is between 1.9 and 1.9.3" >&2;}
24140 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Only 1.8.x and 1.9.3 or later are supported at this time" >&5
24141 $as_echo "$as_me: WARNING: Only 1.8.x and 1.9.3 or later are supported at this time" >&2;}
24144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24145 $as_echo "no" >&6; }
24147 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The detected Ruby is too old for Subversion to use" >&5
24148 $as_echo "$as_me: WARNING: The detected Ruby is too old for Subversion to use" >&2;}
24149 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: A Ruby which has rb_hash_foreach is required to use the" >&5
24150 $as_echo "$as_me: WARNING: A Ruby which has rb_hash_foreach is required to use the" >&2;}
24151 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Subversion Ruby bindings" >&5
24152 $as_echo "$as_me: WARNING: Subversion Ruby bindings" >&2;}
24153 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Upgrade to the official 1.8.2 release, or later" >&5
24154 $as_echo "$as_me: WARNING: Upgrade to the official 1.8.2 release, or later" >&2;}
24160 # Check whether --with-swig was given.
24161 if test "${with_swig+set}" = set; then :
24162 withval=$with_swig;
24169 if test $where = no; then
24171 elif test $where = required || test $where = check; then
24172 # Extract the first word of "swig", so it can be a program name with args.
24173 set dummy swig; ac_word=$2
24174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24175 $as_echo_n "checking for $ac_word... " >&6; }
24176 if ${ac_cv_path_SWIG+:} false; then :
24177 $as_echo_n "(cached) " >&6
24181 ac_cv_path_SWIG="$SWIG" # Let the user override the test with a path.
24184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24185 for as_dir in $PATH
24188 test -z "$as_dir" && as_dir=.
24189 for ac_exec_ext in '' $ac_executable_extensions; do
24190 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24191 ac_cv_path_SWIG="$as_dir/$ac_word$ac_exec_ext"
24192 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24199 test -z "$ac_cv_path_SWIG" && ac_cv_path_SWIG="none"
24203 SWIG=$ac_cv_path_SWIG
24204 if test -n "$SWIG"; then
24205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG" >&5
24206 $as_echo "$SWIG" >&6; }
24208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24209 $as_echo "no" >&6; }
24213 if test "$SWIG" = "none" && test $where = required; then
24214 as_fn_error $? "SWIG required, but not found" "$LINENO" 5
24217 if test -f "$where"; then
24220 SWIG="$where/bin/swig"
24222 if test ! -f "$SWIG" || test ! -x "$SWIG"; then
24223 as_fn_error $? "Could not find swig binary at $SWIG" "$LINENO" 5
24227 if test "$SWIG" != "none"; then
24228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking swig version" >&5
24229 $as_echo_n "checking swig version... " >&6; }
24230 SWIG_VERSION_RAW="`$SWIG -version 2>&1 | \
24231 $SED -ne 's/^.*Version \(.*\)$/\1/p'`"
24232 # We want the version as an integer so we can test against
24233 # which version we're using. SWIG doesn't provide this
24234 # to us so we have to come up with it on our own.
24235 # The major is passed straight through,
24236 # the minor is zero padded to two places,
24237 # and the patch level is zero padded to three places.
24238 # e.g. 1.3.24 becomes 103024
24239 SWIG_VERSION="`echo \"$SWIG_VERSION_RAW\" | \
24240 $SED -e 's/[^0-9\.].*$//' \
24241 -e 's/\.\([0-9]\)$/.0\1/' \
24242 -e 's/\.\([0-9][0-9]\)$/.0\1/' \
24243 -e 's/\.\([0-9]\)\./0\1/; s/\.//g;'`"
24244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG_VERSION_RAW" >&5
24245 $as_echo "$SWIG_VERSION_RAW" >&6; }
24246 # If you change the required swig version number, don't forget to update:
24247 # subversion/bindings/swig/INSTALL
24248 if test -n "$SWIG_VERSION" && test "$SWIG_VERSION" -ge "103024"; then
24252 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Detected SWIG version $SWIG_VERSION_RAW" >&5
24253 $as_echo "$as_me: WARNING: Detected SWIG version $SWIG_VERSION_RAW" >&2;}
24254 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Subversion requires SWIG >= 1.3.24" >&5
24255 $as_echo "$as_me: WARNING: Subversion requires SWIG >= 1.3.24" >&2;}
24259 SWIG_PY_COMPILE="none"
24260 SWIG_PY_LINK="none"
24261 SWIG_PY_OPTS="none"
24262 SWIG_PY_ERRMSG="check config.log for details"
24263 if test "$PYTHON" != "none"; then
24264 { $as_echo "$as_me:${as_lineno-$LINENO}: Configuring python swig binding" >&5
24265 $as_echo "$as_me: Configuring python swig binding" >&6;}
24267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python includes" >&5
24268 $as_echo_n "checking for Python includes... " >&6; }
24269 if ${ac_cv_python_includes+:} false; then :
24270 $as_echo_n "(cached) " >&6
24273 ac_cv_python_includes="`$PYTHON ${abs_srcdir}/build/get-py-info.py --includes`"
24276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_python_includes" >&5
24277 $as_echo "$ac_cv_python_includes" >&6; }
24278 SWIG_PY_INCLUDES="\$(SWIG_INCLUDES) $ac_cv_python_includes"
24280 if test "$ac_cv_python_includes" = "none"; then
24281 SWIG_PY_ERRMSG="no distutils found"
24282 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: python bindings cannot be built without distutils module" >&5
24283 $as_echo "$as_me: WARNING: python bindings cannot be built without distutils module" >&2;}
24286 python_header_found="no"
24288 save_cppflags="$CPPFLAGS"
24289 CPPFLAGS="$CPPFLAGS $ac_cv_python_includes"
24290 ac_fn_c_check_header_mongrel "$LINENO" "Python.h" "ac_cv_header_Python_h" "$ac_includes_default"
24291 if test "x$ac_cv_header_Python_h" = xyes; then :
24293 python_header_found="yes"
24298 CPPFLAGS="$save_cppflags"
24300 if test "$python_header_found" = "no"; then
24301 SWIG_PY_ERRMSG="no Python.h found"
24302 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Python.h not found; disabling python swig bindings" >&5
24303 $as_echo "$as_me: WARNING: Python.h not found; disabling python swig bindings" >&2;}
24310 # Check whether --with-py3c was given.
24311 if test "${with_py3c+set}" = set; then :
24312 withval=$with_py3c;
24313 if test "$withval" = "yes"; then
24315 elif test "$withval" = "no"; then
24319 py3c_prefix="$withval"
24325 if test "$py3c_skip" = "yes"; then
24326 { $as_echo "$as_me:${as_lineno-$LINENO}: Skipping configure of py3c" >&5
24327 $as_echo "$as_me: Skipping configure of py3c" >&6;}
24329 if test -n "$py3c_prefix"; then
24330 { $as_echo "$as_me:${as_lineno-$LINENO}: py3c library configuration via prefix $py3c_prefix" >&5
24331 $as_echo "$as_me: py3c library configuration via prefix $py3c_prefix" >&6;}
24333 if test "$ac_cv_python_includes" = "none"; then
24334 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: py3c cannot be used without distutils module" >&5
24335 $as_echo "$as_me: WARNING: py3c cannot be used without distutils module" >&2;}
24338 save_cppflags="$CPPFLAGS"
24339 CPPFLAGS="$CPPFLAGS $ac_cv_python_includes -I$py3c_prefix/include"
24340 for ac_header in py3c.h
24342 ac_fn_c_check_header_mongrel "$LINENO" "py3c.h" "ac_cv_header_py3c_h" "$ac_includes_default"
24343 if test "x$ac_cv_header_py3c_h" = xyes; then :
24344 cat >>confdefs.h <<_ACEOF
24345 #define HAVE_PY3C_H 1
24349 SVN_PY3C_INCLUDES="-I$py3c_prefix/include"
24355 CPPFLAGS="$save_cppflags"
24358 { $as_echo "$as_me:${as_lineno-$LINENO}: py3c library configuration via pkg-config" >&5
24359 $as_echo "$as_me: py3c library configuration via pkg-config" >&6;}
24360 if test -n "$PKG_CONFIG"; then
24361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for py3c library" >&5
24362 $as_echo_n "checking for py3c library... " >&6; }
24363 if $PKG_CONFIG py3c --exists; then
24364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24365 $as_echo "yes" >&6; }
24367 SVN_PY3C_INCLUDES=`$PKG_CONFIG py3c --cflags`
24369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24370 $as_echo "no" >&6; }
24375 if test "$py3c_found" = "no"; then
24376 { $as_echo "$as_me:${as_lineno-$LINENO}: py3c library configuration without pkg-config" >&5
24377 $as_echo "$as_me: py3c library configuration without pkg-config" >&6;}
24379 if test "$ac_cv_python_includes" = "none"; then
24380 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: py3c cannot be used without distutils module" >&5
24381 $as_echo "$as_me: WARNING: py3c cannot be used without distutils module" >&2;}
24384 save_cppflags="$CPPFLAGS"
24385 CPPFLAGS="$CPPFLAGS $ac_cv_python_includes"
24386 ac_fn_c_check_header_mongrel "$LINENO" "py3c.h" "ac_cv_header_py3c_h" "$ac_includes_default"
24387 if test "x$ac_cv_header_py3c_h" = xyes; then :
24394 CPPFLAGS="$save_cppflags"
24402 if test "$py3c_found" = "no"; then
24403 SWIG_PY_ERRMSG="py3c library not found"
24404 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: py3c library not found; disabling python swig bindings" >&5
24405 $as_echo "$as_me: WARNING: py3c library not found; disabling python swig bindings" >&2;}
24407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiling Python extensions" >&5
24408 $as_echo_n "checking for compiling Python extensions... " >&6; }
24409 if ${ac_cv_python_compile+:} false; then :
24410 $as_echo_n "(cached) " >&6
24413 ac_cv_python_compile="`$PYTHON ${abs_srcdir}/build/get-py-info.py --compile`"
24416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_python_compile" >&5
24417 $as_echo "$ac_cv_python_compile" >&6; }
24418 SWIG_PY_COMPILE="$ac_cv_python_compile $CFLAGS"
24420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linking Python extensions" >&5
24421 $as_echo_n "checking for linking Python extensions... " >&6; }
24422 if ${ac_cv_python_link+:} false; then :
24423 $as_echo_n "(cached) " >&6
24426 ac_cv_python_link="`$PYTHON ${abs_srcdir}/build/get-py-info.py --link`"
24429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_python_link" >&5
24430 $as_echo "$ac_cv_python_link" >&6; }
24431 SWIG_PY_LINK="$ac_cv_python_link"
24433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linking Python libraries" >&5
24434 $as_echo_n "checking for linking Python libraries... " >&6; }
24435 if ${ac_cv_python_libs+:} false; then :
24436 $as_echo_n "(cached) " >&6
24439 ac_cv_python_libs="`$PYTHON ${abs_srcdir}/build/get-py-info.py --libs`"
24442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_python_libs" >&5
24443 $as_echo "$ac_cv_python_libs" >&6; }
24445 input_flags="$ac_cv_python_libs"
24447 filtered_dirs="/lib /lib64 /usr/lib /usr/lib64"
24448 for flag in $input_flags; do
24450 for dir in $filtered_dirs; do
24451 if test "$flag" = "-L$dir" || test "$flag" = "-L$dir/"; then
24456 if test "$filter" = "no"; then
24457 output_flags="$output_flags $flag"
24460 if test -n "$output_flags"; then
24461 printf "%s" "${output_flags# }"
24465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python >= 3" >&5
24466 $as_echo_n "checking for Python >= 3... " >&6; }
24467 if ${ac_cv_python_is_py3+:} false; then :
24468 $as_echo_n "(cached) " >&6
24471 ac_cv_python_is_py3="no"
24472 $PYTHON -c 'import sys; sys.exit(0x3000000 > sys.hexversion)' && \
24473 ac_cv_python_is_py3="yes"
24476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_python_is_py3" >&5
24477 $as_echo "$ac_cv_python_is_py3" >&6; }
24479 if test "$ac_cv_python_is_py3" = "yes"; then
24480 if test "$SWIG_VERSION" -ge "300010"; then
24483 SWIG_PY_ERRMSG="SWIG version is not suitable"
24484 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Subversion Python bindings for Python 3 require SWIG 3.0.10 or newer" >&5
24485 $as_echo "$as_me: WARNING: Subversion Python bindings for Python 3 require SWIG 3.0.10 or newer" >&2;}
24487 if test "$SWIG_VERSION" -lt "400000"; then
24488 SWIG_PY_OPTS="-python -py3 -nofastunpack -modern"
24490 SWIG_PY_OPTS="-python -py3 -nofastunpack"
24493 if test "$SWIG_VERSION" -lt "400000"; then
24494 SWIG_PY_OPTS="-python -classic"
24497 SWIG_PY_OPTS="-python -nofastunpack"
24498 SWIG_PY_ERRMSG="SWIG version is not suitable"
24499 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Subversion Python bindings for Python 2 require 1.3.24 <= SWIG < 4.0.0" >&5
24500 $as_echo "$as_me: WARNING: Subversion Python bindings for Python 2 require 1.3.24 <= SWIG < 4.0.0" >&2;}
24510 SWIG_PL_ERRMSG="check config.log for details"
24511 if test "$PERL" != "none"; then
24512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking perl version" >&5
24513 $as_echo_n "checking perl version... " >&6; }
24514 PERL_VERSION="`$PERL -e 'q([); print $] * 1000000,$/;'`"
24515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL_VERSION" >&5
24516 $as_echo "$PERL_VERSION" >&6; }
24517 if test "$PERL_VERSION" -ge "5008000"; then
24518 SWIG_PL_INCLUDES="\$(SWIG_INCLUDES) `$PERL -MExtUtils::Embed -e ccopts`"
24519 SWIG_PL_LINK="`$PERL -MExtUtils::Embed -e ldopts`"
24521 input_flags="$SWIG_PL_LINK"
24523 filtered_dirs="/lib /lib64 /usr/lib /usr/lib64"
24524 for flag in $input_flags; do
24526 for dir in $filtered_dirs; do
24527 if test "$flag" = "-L$dir" || test "$flag" = "-L$dir/"; then
24532 if test "$filter" = "no"; then
24533 output_flags="$output_flags $flag"
24536 if test -n "$output_flags"; then
24537 printf "%s" "${output_flags# }"
24543 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: perl bindings require perl 5.8.0 or newer." >&5
24544 $as_echo "$as_me: WARNING: perl bindings require perl 5.8.0 or newer." >&2;}
24548 SWIG_RB_COMPILE="none"
24549 SWIG_RB_LINK="none"
24550 SWIG_RB_ERRMSG="check config.log for details"
24551 if test "$RUBY" != "none"; then
24552 if test x"$SWIG_VERSION" = x"3""00""008"; then
24553 # Use a local variable to escape the '#' sign.
24554 ruby_swig_issue_602='https://subversion.apache.org/docs/release-notes/1.11#ruby-swig-issue-602'
24555 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ruby bindings are known not to support swig 3.0.8; see $ruby_swig_issue_602" >&5
24556 $as_echo "$as_me: WARNING: Ruby bindings are known not to support swig 3.0.8; see $ruby_swig_issue_602" >&2;}
24558 rbconfig="$RUBY -rrbconfig -e "
24560 for var_name in arch archdir CC LDSHARED DLEXT LIBS LIBRUBYARG \
24561 rubyhdrdir rubyarchhdrdir sitedir sitelibdir sitearchdir libdir
24563 rbconfig_tmp=`$rbconfig "print RbConfig::CONFIG['$var_name']"`
24564 eval "rbconfig_$var_name=\"$rbconfig_tmp\""
24567 { $as_echo "$as_me:${as_lineno-$LINENO}: Configuring Ruby SWIG binding" >&5
24568 $as_echo "$as_me: Configuring Ruby SWIG binding" >&6;}
24570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ruby include path" >&5
24571 $as_echo_n "checking for Ruby include path... " >&6; }
24572 if ${svn_cv_ruby_includes+:} false; then :
24573 $as_echo_n "(cached) " >&6
24576 if test -d "$rbconfig_rubyhdrdir"; then
24577 svn_cv_ruby_includes="-I. -I$rbconfig_rubyhdrdir"
24578 if test -d "$rbconfig_rubyarchhdrdir"; then
24579 svn_cv_ruby_includes="$svn_cv_ruby_includes -I$rbconfig_rubyarchhdrdir"
24581 svn_cv_ruby_includes="$svn_cv_ruby_includes -I$rbconfig_rubyhdrdir/$rbconfig_arch"
24584 svn_cv_ruby_includes="-I. -I$rbconfig_archdir"
24588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $svn_cv_ruby_includes" >&5
24589 $as_echo "$svn_cv_ruby_includes" >&6; }
24590 SWIG_RB_INCLUDES="\$(SWIG_INCLUDES) $svn_cv_ruby_includes"
24592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compile Ruby extensions" >&5
24593 $as_echo_n "checking how to compile Ruby extensions... " >&6; }
24594 if ${svn_cv_ruby_compile+:} false; then :
24595 $as_echo_n "(cached) " >&6
24598 svn_cv_ruby_compile="$rbconfig_CC $CFLAGS"
24601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $svn_cv_ruby_compile" >&5
24602 $as_echo "$svn_cv_ruby_compile" >&6; }
24603 SWIG_RB_COMPILE="$svn_cv_ruby_compile"
24605 SWIG_RB_COMPILE=`echo "$SWIG_RB_COMPILE" | $SED -e 's/-ansi//'`
24608 SWIG_RB_COMPILE=`echo "$SWIG_RB_COMPILE" | $SED -e 's/-std=c89//'`
24611 SWIG_RB_COMPILE=`echo "$SWIG_RB_COMPILE" | $SED -e 's/-std=c90//'`
24613 SWIG_RB_COMPILE="$SWIG_RB_COMPILE -Wno-int-to-pointer-cast"
24615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link Ruby extensions" >&5
24616 $as_echo_n "checking how to link Ruby extensions... " >&6; }
24617 if ${svn_cv_ruby_link+:} false; then :
24618 $as_echo_n "(cached) " >&6
24621 svn_cv_ruby_link="`$RUBY -e 'ARGV.shift; print ARGV.join(%q( ))' \
24622 $rbconfig_LDSHARED`"
24623 svn_cv_ruby_link="$rbconfig_CC $svn_cv_ruby_link"
24624 svn_cv_ruby_link="$svn_cv_ruby_link -shrext .$rbconfig_DLEXT"
24627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $svn_cv_ruby_link" >&5
24628 $as_echo "$svn_cv_ruby_link" >&6; }
24629 SWIG_RB_LINK="$svn_cv_ruby_link"
24631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link Ruby libraries" >&5
24632 $as_echo_n "checking how to link Ruby libraries... " >&6; }
24633 if ${ac_cv_ruby_libs+:} false; then :
24634 $as_echo_n "(cached) " >&6
24637 ac_cv_ruby_libs="$rbconfig_LIBRUBYARG $rbconfig_LIBS"
24640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_ruby_libs" >&5
24641 $as_echo "$ac_cv_ruby_libs" >&6; }
24643 input_flags="$ac_cv_ruby_libs"
24645 filtered_dirs="/lib /lib64 /usr/lib /usr/lib64"
24646 for flag in $input_flags; do
24648 for dir in $filtered_dirs; do
24649 if test "$flag" = "-L$dir" || test "$flag" = "-L$dir/"; then
24654 if test "$filter" = "no"; then
24655 output_flags="$output_flags $flag"
24658 if test -n "$output_flags"; then
24659 printf "%s" "${output_flags# }"
24663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rb_errinfo" >&5
24664 $as_echo_n "checking for rb_errinfo... " >&6; }
24665 old_CFLAGS="$CFLAGS"
24667 CFLAGS="$CFLAGS $svn_cv_ruby_includes"
24669 CFLAGS=`echo "$CFLAGS" | $SED -e 's/-ansi//'`
24672 CFLAGS=`echo "$CFLAGS" | $SED -e 's/-std=c89//'`
24675 CFLAGS=`echo "$CFLAGS" | $SED -e 's/-std=c90//'`
24677 LIBS="$SWIG_RB_LIBS"
24678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24679 /* end confdefs.h. */
24685 if ac_fn_c_try_link "$LINENO"; then :
24686 have_rb_errinfo="yes"
24688 have_rb_errinfo="no"
24690 rm -f core conftest.err conftest.$ac_objext \
24691 conftest$ac_exeext conftest.$ac_ext
24692 if test "$have_rb_errinfo" = "yes"; then
24693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24694 $as_echo "yes" >&6; }
24696 $as_echo "#define HAVE_RB_ERRINFO 1" >>confdefs.h
24699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24700 $as_echo "no" >&6; }
24702 CFLAGS="$old_CFLAGS"
24705 if ${svn_cv_ruby_sitedir+:} false; then :
24706 $as_echo_n "(cached) " >&6
24709 svn_cv_ruby_sitedir="$rbconfig_sitedir"
24714 # Check whether --with-ruby-sitedir was given.
24715 if test "${with_ruby_sitedir+set}" = set; then :
24716 withval=$with_ruby_sitedir; svn_ruby_installdir="$withval"
24718 svn_ruby_installdir="$svn_cv_ruby_sitedir"
24722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to install Ruby scripts" >&5
24723 $as_echo_n "checking where to install Ruby scripts... " >&6; }
24724 if ${svn_cv_ruby_sitedir_libsuffix+:} false; then :
24725 $as_echo_n "(cached) " >&6
24728 svn_cv_ruby_sitedir_libsuffix="`echo "$rbconfig_sitelibdir" | \
24729 $SED -e "s,^$rbconfig_sitedir,,"`"
24733 SWIG_RB_SITE_LIB_DIR="${svn_ruby_installdir}${svn_cv_ruby_sitedir_libsuffix}"
24734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG_RB_SITE_LIB_DIR" >&5
24735 $as_echo "$SWIG_RB_SITE_LIB_DIR" >&6; }
24737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to install Ruby extensions" >&5
24738 $as_echo_n "checking where to install Ruby extensions... " >&6; }
24739 if ${svn_cv_ruby_sitedir_archsuffix+:} false; then :
24740 $as_echo_n "(cached) " >&6
24743 svn_cv_ruby_sitedir_archsuffix="`echo "$rbconfig_sitearchdir" | \
24744 $SED -e "s,^$rbconfig_sitedir,,"`"
24748 SWIG_RB_SITE_ARCH_DIR="${svn_ruby_installdir}${svn_cv_ruby_sitedir_archsuffix}"
24749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG_RB_SITE_ARCH_DIR" >&5
24750 $as_echo "$SWIG_RB_SITE_ARCH_DIR" >&6; }
24752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to use output level for Ruby bindings tests" >&5
24753 $as_echo_n "checking how to use output level for Ruby bindings tests... " >&6; }
24754 if ${svn_cv_ruby_test_verbose+:} false; then :
24755 $as_echo_n "(cached) " >&6
24758 svn_cv_ruby_test_verbose="normal"
24763 # Check whether --with-ruby-test-verbose was given.
24764 if test "${with_ruby_test_verbose+set}" = set; then :
24765 withval=$with_ruby_test_verbose; svn_ruby_test_verbose="$withval"
24767 svn_ruby_test_verbose="$svn_cv_ruby_test_verbose"
24770 SWIG_RB_TEST_VERBOSE="$svn_ruby_test_verbose"
24771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG_RB_TEST_VERBOSE" >&5
24772 $as_echo "$SWIG_RB_TEST_VERBOSE" >&6; }
24800 if test $where = no; then
24802 elif test $where = required || test $where = check; then
24803 # Extract the first word of "swig", so it can be a program name with args.
24804 set dummy swig; ac_word=$2
24805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24806 $as_echo_n "checking for $ac_word... " >&6; }
24807 if ${ac_cv_path_SWIG+:} false; then :
24808 $as_echo_n "(cached) " >&6
24812 ac_cv_path_SWIG="$SWIG" # Let the user override the test with a path.
24815 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24816 for as_dir in $PATH
24819 test -z "$as_dir" && as_dir=.
24820 for ac_exec_ext in '' $ac_executable_extensions; do
24821 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24822 ac_cv_path_SWIG="$as_dir/$ac_word$ac_exec_ext"
24823 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24830 test -z "$ac_cv_path_SWIG" && ac_cv_path_SWIG="none"
24834 SWIG=$ac_cv_path_SWIG
24835 if test -n "$SWIG"; then
24836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG" >&5
24837 $as_echo "$SWIG" >&6; }
24839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24840 $as_echo "no" >&6; }
24844 if test "$SWIG" = "none" && test $where = required; then
24845 as_fn_error $? "SWIG required, but not found" "$LINENO" 5
24848 if test -f "$where"; then
24851 SWIG="$where/bin/swig"
24853 if test ! -f "$SWIG" || test ! -x "$SWIG"; then
24854 as_fn_error $? "Could not find swig binary at $SWIG" "$LINENO" 5
24858 if test "$SWIG" != "none"; then
24859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking swig version" >&5
24860 $as_echo_n "checking swig version... " >&6; }
24861 SWIG_VERSION_RAW="`$SWIG -version 2>&1 | \
24862 $SED -ne 's/^.*Version \(.*\)$/\1/p'`"
24863 # We want the version as an integer so we can test against
24864 # which version we're using. SWIG doesn't provide this
24865 # to us so we have to come up with it on our own.
24866 # The major is passed straight through,
24867 # the minor is zero padded to two places,
24868 # and the patch level is zero padded to three places.
24869 # e.g. 1.3.24 becomes 103024
24870 SWIG_VERSION="`echo \"$SWIG_VERSION_RAW\" | \
24871 $SED -e 's/[^0-9\.].*$//' \
24872 -e 's/\.\([0-9]\)$/.0\1/' \
24873 -e 's/\.\([0-9][0-9]\)$/.0\1/' \
24874 -e 's/\.\([0-9]\)\./0\1/; s/\.//g;'`"
24875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG_VERSION_RAW" >&5
24876 $as_echo "$SWIG_VERSION_RAW" >&6; }
24877 # If you change the required swig version number, don't forget to update:
24878 # subversion/bindings/swig/INSTALL
24879 if test -n "$SWIG_VERSION" && test "$SWIG_VERSION" -ge "103024"; then
24883 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Detected SWIG version $SWIG_VERSION_RAW" >&5
24884 $as_echo "$as_me: WARNING: Detected SWIG version $SWIG_VERSION_RAW" >&2;}
24885 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Subversion requires SWIG >= 1.3.24" >&5
24886 $as_echo "$as_me: WARNING: Subversion requires SWIG >= 1.3.24" >&2;}
24890 SWIG_PY_COMPILE="none"
24891 SWIG_PY_LINK="none"
24892 SWIG_PY_OPTS="none"
24893 SWIG_PY_ERRMSG="check config.log for details"
24894 if test "$PYTHON" != "none"; then
24895 { $as_echo "$as_me:${as_lineno-$LINENO}: Configuring python swig binding" >&5
24896 $as_echo "$as_me: Configuring python swig binding" >&6;}
24898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python includes" >&5
24899 $as_echo_n "checking for Python includes... " >&6; }
24900 if ${ac_cv_python_includes+:} false; then :
24901 $as_echo_n "(cached) " >&6
24904 ac_cv_python_includes="`$PYTHON ${abs_srcdir}/build/get-py-info.py --includes`"
24907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_python_includes" >&5
24908 $as_echo "$ac_cv_python_includes" >&6; }
24909 SWIG_PY_INCLUDES="\$(SWIG_INCLUDES) $ac_cv_python_includes"
24911 if test "$ac_cv_python_includes" = "none"; then
24912 SWIG_PY_ERRMSG="no distutils found"
24913 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: python bindings cannot be built without distutils module" >&5
24914 $as_echo "$as_me: WARNING: python bindings cannot be built without distutils module" >&2;}
24917 python_header_found="no"
24919 save_cppflags="$CPPFLAGS"
24920 CPPFLAGS="$CPPFLAGS $ac_cv_python_includes"
24921 ac_fn_c_check_header_mongrel "$LINENO" "Python.h" "ac_cv_header_Python_h" "$ac_includes_default"
24922 if test "x$ac_cv_header_Python_h" = xyes; then :
24924 python_header_found="yes"
24929 CPPFLAGS="$save_cppflags"
24931 if test "$python_header_found" = "no"; then
24932 SWIG_PY_ERRMSG="no Python.h found"
24933 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Python.h not found; disabling python swig bindings" >&5
24934 $as_echo "$as_me: WARNING: Python.h not found; disabling python swig bindings" >&2;}
24941 # Check whether --with-py3c was given.
24942 if test "${with_py3c+set}" = set; then :
24943 withval=$with_py3c;
24944 if test "$withval" = "yes"; then
24946 elif test "$withval" = "no"; then
24950 py3c_prefix="$withval"
24956 if test "$py3c_skip" = "yes"; then
24957 { $as_echo "$as_me:${as_lineno-$LINENO}: Skipping configure of py3c" >&5
24958 $as_echo "$as_me: Skipping configure of py3c" >&6;}
24960 if test -n "$py3c_prefix"; then
24961 { $as_echo "$as_me:${as_lineno-$LINENO}: py3c library configuration via prefix $py3c_prefix" >&5
24962 $as_echo "$as_me: py3c library configuration via prefix $py3c_prefix" >&6;}
24964 if test "$ac_cv_python_includes" = "none"; then
24965 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: py3c cannot be used without distutils module" >&5
24966 $as_echo "$as_me: WARNING: py3c cannot be used without distutils module" >&2;}
24969 save_cppflags="$CPPFLAGS"
24970 CPPFLAGS="$CPPFLAGS $ac_cv_python_includes -I$py3c_prefix/include"
24971 for ac_header in py3c.h
24973 ac_fn_c_check_header_mongrel "$LINENO" "py3c.h" "ac_cv_header_py3c_h" "$ac_includes_default"
24974 if test "x$ac_cv_header_py3c_h" = xyes; then :
24975 cat >>confdefs.h <<_ACEOF
24976 #define HAVE_PY3C_H 1
24980 SVN_PY3C_INCLUDES="-I$py3c_prefix/include"
24986 CPPFLAGS="$save_cppflags"
24989 { $as_echo "$as_me:${as_lineno-$LINENO}: py3c library configuration via pkg-config" >&5
24990 $as_echo "$as_me: py3c library configuration via pkg-config" >&6;}
24991 if test -n "$PKG_CONFIG"; then
24992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for py3c library" >&5
24993 $as_echo_n "checking for py3c library... " >&6; }
24994 if $PKG_CONFIG py3c --exists; then
24995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24996 $as_echo "yes" >&6; }
24998 SVN_PY3C_INCLUDES=`$PKG_CONFIG py3c --cflags`
25000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25001 $as_echo "no" >&6; }
25006 if test "$py3c_found" = "no"; then
25007 { $as_echo "$as_me:${as_lineno-$LINENO}: py3c library configuration without pkg-config" >&5
25008 $as_echo "$as_me: py3c library configuration without pkg-config" >&6;}
25010 if test "$ac_cv_python_includes" = "none"; then
25011 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: py3c cannot be used without distutils module" >&5
25012 $as_echo "$as_me: WARNING: py3c cannot be used without distutils module" >&2;}
25015 save_cppflags="$CPPFLAGS"
25016 CPPFLAGS="$CPPFLAGS $ac_cv_python_includes"
25017 ac_fn_c_check_header_mongrel "$LINENO" "py3c.h" "ac_cv_header_py3c_h" "$ac_includes_default"
25018 if test "x$ac_cv_header_py3c_h" = xyes; then :
25025 CPPFLAGS="$save_cppflags"
25033 if test "$py3c_found" = "no"; then
25034 SWIG_PY_ERRMSG="py3c library not found"
25035 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: py3c library not found; disabling python swig bindings" >&5
25036 $as_echo "$as_me: WARNING: py3c library not found; disabling python swig bindings" >&2;}
25038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiling Python extensions" >&5
25039 $as_echo_n "checking for compiling Python extensions... " >&6; }
25040 if ${ac_cv_python_compile+:} false; then :
25041 $as_echo_n "(cached) " >&6
25044 ac_cv_python_compile="`$PYTHON ${abs_srcdir}/build/get-py-info.py --compile`"
25047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_python_compile" >&5
25048 $as_echo "$ac_cv_python_compile" >&6; }
25049 SWIG_PY_COMPILE="$ac_cv_python_compile $CFLAGS"
25051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linking Python extensions" >&5
25052 $as_echo_n "checking for linking Python extensions... " >&6; }
25053 if ${ac_cv_python_link+:} false; then :
25054 $as_echo_n "(cached) " >&6
25057 ac_cv_python_link="`$PYTHON ${abs_srcdir}/build/get-py-info.py --link`"
25060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_python_link" >&5
25061 $as_echo "$ac_cv_python_link" >&6; }
25062 SWIG_PY_LINK="$ac_cv_python_link"
25064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linking Python libraries" >&5
25065 $as_echo_n "checking for linking Python libraries... " >&6; }
25066 if ${ac_cv_python_libs+:} false; then :
25067 $as_echo_n "(cached) " >&6
25070 ac_cv_python_libs="`$PYTHON ${abs_srcdir}/build/get-py-info.py --libs`"
25073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_python_libs" >&5
25074 $as_echo "$ac_cv_python_libs" >&6; }
25076 input_flags="$ac_cv_python_libs"
25078 filtered_dirs="/lib /lib64 /usr/lib /usr/lib64"
25079 for flag in $input_flags; do
25081 for dir in $filtered_dirs; do
25082 if test "$flag" = "-L$dir" || test "$flag" = "-L$dir/"; then
25087 if test "$filter" = "no"; then
25088 output_flags="$output_flags $flag"
25091 if test -n "$output_flags"; then
25092 printf "%s" "${output_flags# }"
25096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python >= 3" >&5
25097 $as_echo_n "checking for Python >= 3... " >&6; }
25098 if ${ac_cv_python_is_py3+:} false; then :
25099 $as_echo_n "(cached) " >&6
25102 ac_cv_python_is_py3="no"
25103 $PYTHON -c 'import sys; sys.exit(0x3000000 > sys.hexversion)' && \
25104 ac_cv_python_is_py3="yes"
25107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_python_is_py3" >&5
25108 $as_echo "$ac_cv_python_is_py3" >&6; }
25110 if test "$ac_cv_python_is_py3" = "yes"; then
25111 if test "$SWIG_VERSION" -ge "300010"; then
25114 SWIG_PY_ERRMSG="SWIG version is not suitable"
25115 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Subversion Python bindings for Python 3 require SWIG 3.0.10 or newer" >&5
25116 $as_echo "$as_me: WARNING: Subversion Python bindings for Python 3 require SWIG 3.0.10 or newer" >&2;}
25118 if test "$SWIG_VERSION" -lt "400000"; then
25119 SWIG_PY_OPTS="-python -py3 -nofastunpack -modern"
25121 SWIG_PY_OPTS="-python -py3 -nofastunpack"
25124 if test "$SWIG_VERSION" -lt "400000"; then
25125 SWIG_PY_OPTS="-python -classic"
25128 SWIG_PY_OPTS="-python -nofastunpack"
25129 SWIG_PY_ERRMSG="SWIG version is not suitable"
25130 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Subversion Python bindings for Python 2 require 1.3.24 <= SWIG < 4.0.0" >&5
25131 $as_echo "$as_me: WARNING: Subversion Python bindings for Python 2 require 1.3.24 <= SWIG < 4.0.0" >&2;}
25141 SWIG_PL_ERRMSG="check config.log for details"
25142 if test "$PERL" != "none"; then
25143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking perl version" >&5
25144 $as_echo_n "checking perl version... " >&6; }
25145 PERL_VERSION="`$PERL -e 'q([); print $] * 1000000,$/;'`"
25146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL_VERSION" >&5
25147 $as_echo "$PERL_VERSION" >&6; }
25148 if test "$PERL_VERSION" -ge "5008000"; then
25149 SWIG_PL_INCLUDES="\$(SWIG_INCLUDES) `$PERL -MExtUtils::Embed -e ccopts`"
25150 SWIG_PL_LINK="`$PERL -MExtUtils::Embed -e ldopts`"
25152 input_flags="$SWIG_PL_LINK"
25154 filtered_dirs="/lib /lib64 /usr/lib /usr/lib64"
25155 for flag in $input_flags; do
25157 for dir in $filtered_dirs; do
25158 if test "$flag" = "-L$dir" || test "$flag" = "-L$dir/"; then
25163 if test "$filter" = "no"; then
25164 output_flags="$output_flags $flag"
25167 if test -n "$output_flags"; then
25168 printf "%s" "${output_flags# }"
25174 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: perl bindings require perl 5.8.0 or newer." >&5
25175 $as_echo "$as_me: WARNING: perl bindings require perl 5.8.0 or newer." >&2;}
25179 SWIG_RB_COMPILE="none"
25180 SWIG_RB_LINK="none"
25181 SWIG_RB_ERRMSG="check config.log for details"
25182 if test "$RUBY" != "none"; then
25183 if test x"$SWIG_VERSION" = x"3""00""008"; then
25184 # Use a local variable to escape the '#' sign.
25185 ruby_swig_issue_602='https://subversion.apache.org/docs/release-notes/1.11#ruby-swig-issue-602'
25186 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ruby bindings are known not to support swig 3.0.8; see $ruby_swig_issue_602" >&5
25187 $as_echo "$as_me: WARNING: Ruby bindings are known not to support swig 3.0.8; see $ruby_swig_issue_602" >&2;}
25189 rbconfig="$RUBY -rrbconfig -e "
25191 for var_name in arch archdir CC LDSHARED DLEXT LIBS LIBRUBYARG \
25192 rubyhdrdir rubyarchhdrdir sitedir sitelibdir sitearchdir libdir
25194 rbconfig_tmp=`$rbconfig "print RbConfig::CONFIG['$var_name']"`
25195 eval "rbconfig_$var_name=\"$rbconfig_tmp\""
25198 { $as_echo "$as_me:${as_lineno-$LINENO}: Configuring Ruby SWIG binding" >&5
25199 $as_echo "$as_me: Configuring Ruby SWIG binding" >&6;}
25201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ruby include path" >&5
25202 $as_echo_n "checking for Ruby include path... " >&6; }
25203 if ${svn_cv_ruby_includes+:} false; then :
25204 $as_echo_n "(cached) " >&6
25207 if test -d "$rbconfig_rubyhdrdir"; then
25208 svn_cv_ruby_includes="-I. -I$rbconfig_rubyhdrdir"
25209 if test -d "$rbconfig_rubyarchhdrdir"; then
25210 svn_cv_ruby_includes="$svn_cv_ruby_includes -I$rbconfig_rubyarchhdrdir"
25212 svn_cv_ruby_includes="$svn_cv_ruby_includes -I$rbconfig_rubyhdrdir/$rbconfig_arch"
25215 svn_cv_ruby_includes="-I. -I$rbconfig_archdir"
25219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $svn_cv_ruby_includes" >&5
25220 $as_echo "$svn_cv_ruby_includes" >&6; }
25221 SWIG_RB_INCLUDES="\$(SWIG_INCLUDES) $svn_cv_ruby_includes"
25223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compile Ruby extensions" >&5
25224 $as_echo_n "checking how to compile Ruby extensions... " >&6; }
25225 if ${svn_cv_ruby_compile+:} false; then :
25226 $as_echo_n "(cached) " >&6
25229 svn_cv_ruby_compile="$rbconfig_CC $CFLAGS"
25232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $svn_cv_ruby_compile" >&5
25233 $as_echo "$svn_cv_ruby_compile" >&6; }
25234 SWIG_RB_COMPILE="$svn_cv_ruby_compile"
25236 SWIG_RB_COMPILE=`echo "$SWIG_RB_COMPILE" | $SED -e 's/-ansi//'`
25239 SWIG_RB_COMPILE=`echo "$SWIG_RB_COMPILE" | $SED -e 's/-std=c89//'`
25242 SWIG_RB_COMPILE=`echo "$SWIG_RB_COMPILE" | $SED -e 's/-std=c90//'`
25244 SWIG_RB_COMPILE="$SWIG_RB_COMPILE -Wno-int-to-pointer-cast"
25246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link Ruby extensions" >&5
25247 $as_echo_n "checking how to link Ruby extensions... " >&6; }
25248 if ${svn_cv_ruby_link+:} false; then :
25249 $as_echo_n "(cached) " >&6
25252 svn_cv_ruby_link="`$RUBY -e 'ARGV.shift; print ARGV.join(%q( ))' \
25253 $rbconfig_LDSHARED`"
25254 svn_cv_ruby_link="$rbconfig_CC $svn_cv_ruby_link"
25255 svn_cv_ruby_link="$svn_cv_ruby_link -shrext .$rbconfig_DLEXT"
25258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $svn_cv_ruby_link" >&5
25259 $as_echo "$svn_cv_ruby_link" >&6; }
25260 SWIG_RB_LINK="$svn_cv_ruby_link"
25262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link Ruby libraries" >&5
25263 $as_echo_n "checking how to link Ruby libraries... " >&6; }
25264 if ${ac_cv_ruby_libs+:} false; then :
25265 $as_echo_n "(cached) " >&6
25268 ac_cv_ruby_libs="$rbconfig_LIBRUBYARG $rbconfig_LIBS"
25271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_ruby_libs" >&5
25272 $as_echo "$ac_cv_ruby_libs" >&6; }
25274 input_flags="$ac_cv_ruby_libs"
25276 filtered_dirs="/lib /lib64 /usr/lib /usr/lib64"
25277 for flag in $input_flags; do
25279 for dir in $filtered_dirs; do
25280 if test "$flag" = "-L$dir" || test "$flag" = "-L$dir/"; then
25285 if test "$filter" = "no"; then
25286 output_flags="$output_flags $flag"
25289 if test -n "$output_flags"; then
25290 printf "%s" "${output_flags# }"
25294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rb_errinfo" >&5
25295 $as_echo_n "checking for rb_errinfo... " >&6; }
25296 old_CFLAGS="$CFLAGS"
25298 CFLAGS="$CFLAGS $svn_cv_ruby_includes"
25300 CFLAGS=`echo "$CFLAGS" | $SED -e 's/-ansi//'`
25303 CFLAGS=`echo "$CFLAGS" | $SED -e 's/-std=c89//'`
25306 CFLAGS=`echo "$CFLAGS" | $SED -e 's/-std=c90//'`
25308 LIBS="$SWIG_RB_LIBS"
25309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25310 /* end confdefs.h. */
25316 if ac_fn_c_try_link "$LINENO"; then :
25317 have_rb_errinfo="yes"
25319 have_rb_errinfo="no"
25321 rm -f core conftest.err conftest.$ac_objext \
25322 conftest$ac_exeext conftest.$ac_ext
25323 if test "$have_rb_errinfo" = "yes"; then
25324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25325 $as_echo "yes" >&6; }
25327 $as_echo "#define HAVE_RB_ERRINFO 1" >>confdefs.h
25330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25331 $as_echo "no" >&6; }
25333 CFLAGS="$old_CFLAGS"
25336 if ${svn_cv_ruby_sitedir+:} false; then :
25337 $as_echo_n "(cached) " >&6
25340 svn_cv_ruby_sitedir="$rbconfig_sitedir"
25345 # Check whether --with-ruby-sitedir was given.
25346 if test "${with_ruby_sitedir+set}" = set; then :
25347 withval=$with_ruby_sitedir; svn_ruby_installdir="$withval"
25349 svn_ruby_installdir="$svn_cv_ruby_sitedir"
25353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to install Ruby scripts" >&5
25354 $as_echo_n "checking where to install Ruby scripts... " >&6; }
25355 if ${svn_cv_ruby_sitedir_libsuffix+:} false; then :
25356 $as_echo_n "(cached) " >&6
25359 svn_cv_ruby_sitedir_libsuffix="`echo "$rbconfig_sitelibdir" | \
25360 $SED -e "s,^$rbconfig_sitedir,,"`"
25364 SWIG_RB_SITE_LIB_DIR="${svn_ruby_installdir}${svn_cv_ruby_sitedir_libsuffix}"
25365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG_RB_SITE_LIB_DIR" >&5
25366 $as_echo "$SWIG_RB_SITE_LIB_DIR" >&6; }
25368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to install Ruby extensions" >&5
25369 $as_echo_n "checking where to install Ruby extensions... " >&6; }
25370 if ${svn_cv_ruby_sitedir_archsuffix+:} false; then :
25371 $as_echo_n "(cached) " >&6
25374 svn_cv_ruby_sitedir_archsuffix="`echo "$rbconfig_sitearchdir" | \
25375 $SED -e "s,^$rbconfig_sitedir,,"`"
25379 SWIG_RB_SITE_ARCH_DIR="${svn_ruby_installdir}${svn_cv_ruby_sitedir_archsuffix}"
25380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG_RB_SITE_ARCH_DIR" >&5
25381 $as_echo "$SWIG_RB_SITE_ARCH_DIR" >&6; }
25383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to use output level for Ruby bindings tests" >&5
25384 $as_echo_n "checking how to use output level for Ruby bindings tests... " >&6; }
25385 if ${svn_cv_ruby_test_verbose+:} false; then :
25386 $as_echo_n "(cached) " >&6
25389 svn_cv_ruby_test_verbose="normal"
25394 # Check whether --with-ruby-test-verbose was given.
25395 if test "${with_ruby_test_verbose+set}" = set; then :
25396 withval=$with_ruby_test_verbose; svn_ruby_test_verbose="$withval"
25398 svn_ruby_test_verbose="$svn_cv_ruby_test_verbose"
25401 SWIG_RB_TEST_VERBOSE="$svn_ruby_test_verbose"
25402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG_RB_TEST_VERBOSE" >&5
25403 $as_echo "$SWIG_RB_TEST_VERBOSE" >&6; }
25431 if test $where = no; then
25433 elif test $where = required || test $where = check; then
25434 # Extract the first word of "swig", so it can be a program name with args.
25435 set dummy swig; ac_word=$2
25436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25437 $as_echo_n "checking for $ac_word... " >&6; }
25438 if ${ac_cv_path_SWIG+:} false; then :
25439 $as_echo_n "(cached) " >&6
25443 ac_cv_path_SWIG="$SWIG" # Let the user override the test with a path.
25446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25447 for as_dir in $PATH
25450 test -z "$as_dir" && as_dir=.
25451 for ac_exec_ext in '' $ac_executable_extensions; do
25452 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25453 ac_cv_path_SWIG="$as_dir/$ac_word$ac_exec_ext"
25454 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25461 test -z "$ac_cv_path_SWIG" && ac_cv_path_SWIG="none"
25465 SWIG=$ac_cv_path_SWIG
25466 if test -n "$SWIG"; then
25467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG" >&5
25468 $as_echo "$SWIG" >&6; }
25470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25471 $as_echo "no" >&6; }
25475 if test "$SWIG" = "none" && test $where = required; then
25476 as_fn_error $? "SWIG required, but not found" "$LINENO" 5
25479 if test -f "$where"; then
25482 SWIG="$where/bin/swig"
25484 if test ! -f "$SWIG" || test ! -x "$SWIG"; then
25485 as_fn_error $? "Could not find swig binary at $SWIG" "$LINENO" 5
25489 if test "$SWIG" != "none"; then
25490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking swig version" >&5
25491 $as_echo_n "checking swig version... " >&6; }
25492 SWIG_VERSION_RAW="`$SWIG -version 2>&1 | \
25493 $SED -ne 's/^.*Version \(.*\)$/\1/p'`"
25494 # We want the version as an integer so we can test against
25495 # which version we're using. SWIG doesn't provide this
25496 # to us so we have to come up with it on our own.
25497 # The major is passed straight through,
25498 # the minor is zero padded to two places,
25499 # and the patch level is zero padded to three places.
25500 # e.g. 1.3.24 becomes 103024
25501 SWIG_VERSION="`echo \"$SWIG_VERSION_RAW\" | \
25502 $SED -e 's/[^0-9\.].*$//' \
25503 -e 's/\.\([0-9]\)$/.0\1/' \
25504 -e 's/\.\([0-9][0-9]\)$/.0\1/' \
25505 -e 's/\.\([0-9]\)\./0\1/; s/\.//g;'`"
25506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG_VERSION_RAW" >&5
25507 $as_echo "$SWIG_VERSION_RAW" >&6; }
25508 # If you change the required swig version number, don't forget to update:
25509 # subversion/bindings/swig/INSTALL
25510 if test -n "$SWIG_VERSION" && test "$SWIG_VERSION" -ge "103024"; then
25514 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Detected SWIG version $SWIG_VERSION_RAW" >&5
25515 $as_echo "$as_me: WARNING: Detected SWIG version $SWIG_VERSION_RAW" >&2;}
25516 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Subversion requires SWIG >= 1.3.24" >&5
25517 $as_echo "$as_me: WARNING: Subversion requires SWIG >= 1.3.24" >&2;}
25521 SWIG_PY_COMPILE="none"
25522 SWIG_PY_LINK="none"
25523 SWIG_PY_OPTS="none"
25524 SWIG_PY_ERRMSG="check config.log for details"
25525 if test "$PYTHON" != "none"; then
25526 { $as_echo "$as_me:${as_lineno-$LINENO}: Configuring python swig binding" >&5
25527 $as_echo "$as_me: Configuring python swig binding" >&6;}
25529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python includes" >&5
25530 $as_echo_n "checking for Python includes... " >&6; }
25531 if ${ac_cv_python_includes+:} false; then :
25532 $as_echo_n "(cached) " >&6
25535 ac_cv_python_includes="`$PYTHON ${abs_srcdir}/build/get-py-info.py --includes`"
25538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_python_includes" >&5
25539 $as_echo "$ac_cv_python_includes" >&6; }
25540 SWIG_PY_INCLUDES="\$(SWIG_INCLUDES) $ac_cv_python_includes"
25542 if test "$ac_cv_python_includes" = "none"; then
25543 SWIG_PY_ERRMSG="no distutils found"
25544 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: python bindings cannot be built without distutils module" >&5
25545 $as_echo "$as_me: WARNING: python bindings cannot be built without distutils module" >&2;}
25548 python_header_found="no"
25550 save_cppflags="$CPPFLAGS"
25551 CPPFLAGS="$CPPFLAGS $ac_cv_python_includes"
25552 ac_fn_c_check_header_mongrel "$LINENO" "Python.h" "ac_cv_header_Python_h" "$ac_includes_default"
25553 if test "x$ac_cv_header_Python_h" = xyes; then :
25555 python_header_found="yes"
25560 CPPFLAGS="$save_cppflags"
25562 if test "$python_header_found" = "no"; then
25563 SWIG_PY_ERRMSG="no Python.h found"
25564 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Python.h not found; disabling python swig bindings" >&5
25565 $as_echo "$as_me: WARNING: Python.h not found; disabling python swig bindings" >&2;}
25572 # Check whether --with-py3c was given.
25573 if test "${with_py3c+set}" = set; then :
25574 withval=$with_py3c;
25575 if test "$withval" = "yes"; then
25577 elif test "$withval" = "no"; then
25581 py3c_prefix="$withval"
25587 if test "$py3c_skip" = "yes"; then
25588 { $as_echo "$as_me:${as_lineno-$LINENO}: Skipping configure of py3c" >&5
25589 $as_echo "$as_me: Skipping configure of py3c" >&6;}
25591 if test -n "$py3c_prefix"; then
25592 { $as_echo "$as_me:${as_lineno-$LINENO}: py3c library configuration via prefix $py3c_prefix" >&5
25593 $as_echo "$as_me: py3c library configuration via prefix $py3c_prefix" >&6;}
25595 if test "$ac_cv_python_includes" = "none"; then
25596 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: py3c cannot be used without distutils module" >&5
25597 $as_echo "$as_me: WARNING: py3c cannot be used without distutils module" >&2;}
25600 save_cppflags="$CPPFLAGS"
25601 CPPFLAGS="$CPPFLAGS $ac_cv_python_includes -I$py3c_prefix/include"
25602 for ac_header in py3c.h
25604 ac_fn_c_check_header_mongrel "$LINENO" "py3c.h" "ac_cv_header_py3c_h" "$ac_includes_default"
25605 if test "x$ac_cv_header_py3c_h" = xyes; then :
25606 cat >>confdefs.h <<_ACEOF
25607 #define HAVE_PY3C_H 1
25611 SVN_PY3C_INCLUDES="-I$py3c_prefix/include"
25617 CPPFLAGS="$save_cppflags"
25620 { $as_echo "$as_me:${as_lineno-$LINENO}: py3c library configuration via pkg-config" >&5
25621 $as_echo "$as_me: py3c library configuration via pkg-config" >&6;}
25622 if test -n "$PKG_CONFIG"; then
25623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for py3c library" >&5
25624 $as_echo_n "checking for py3c library... " >&6; }
25625 if $PKG_CONFIG py3c --exists; then
25626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25627 $as_echo "yes" >&6; }
25629 SVN_PY3C_INCLUDES=`$PKG_CONFIG py3c --cflags`
25631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25632 $as_echo "no" >&6; }
25637 if test "$py3c_found" = "no"; then
25638 { $as_echo "$as_me:${as_lineno-$LINENO}: py3c library configuration without pkg-config" >&5
25639 $as_echo "$as_me: py3c library configuration without pkg-config" >&6;}
25641 if test "$ac_cv_python_includes" = "none"; then
25642 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: py3c cannot be used without distutils module" >&5
25643 $as_echo "$as_me: WARNING: py3c cannot be used without distutils module" >&2;}
25646 save_cppflags="$CPPFLAGS"
25647 CPPFLAGS="$CPPFLAGS $ac_cv_python_includes"
25648 ac_fn_c_check_header_mongrel "$LINENO" "py3c.h" "ac_cv_header_py3c_h" "$ac_includes_default"
25649 if test "x$ac_cv_header_py3c_h" = xyes; then :
25656 CPPFLAGS="$save_cppflags"
25664 if test "$py3c_found" = "no"; then
25665 SWIG_PY_ERRMSG="py3c library not found"
25666 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: py3c library not found; disabling python swig bindings" >&5
25667 $as_echo "$as_me: WARNING: py3c library not found; disabling python swig bindings" >&2;}
25669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiling Python extensions" >&5
25670 $as_echo_n "checking for compiling Python extensions... " >&6; }
25671 if ${ac_cv_python_compile+:} false; then :
25672 $as_echo_n "(cached) " >&6
25675 ac_cv_python_compile="`$PYTHON ${abs_srcdir}/build/get-py-info.py --compile`"
25678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_python_compile" >&5
25679 $as_echo "$ac_cv_python_compile" >&6; }
25680 SWIG_PY_COMPILE="$ac_cv_python_compile $CFLAGS"
25682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linking Python extensions" >&5
25683 $as_echo_n "checking for linking Python extensions... " >&6; }
25684 if ${ac_cv_python_link+:} false; then :
25685 $as_echo_n "(cached) " >&6
25688 ac_cv_python_link="`$PYTHON ${abs_srcdir}/build/get-py-info.py --link`"
25691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_python_link" >&5
25692 $as_echo "$ac_cv_python_link" >&6; }
25693 SWIG_PY_LINK="$ac_cv_python_link"
25695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linking Python libraries" >&5
25696 $as_echo_n "checking for linking Python libraries... " >&6; }
25697 if ${ac_cv_python_libs+:} false; then :
25698 $as_echo_n "(cached) " >&6
25701 ac_cv_python_libs="`$PYTHON ${abs_srcdir}/build/get-py-info.py --libs`"
25704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_python_libs" >&5
25705 $as_echo "$ac_cv_python_libs" >&6; }
25707 input_flags="$ac_cv_python_libs"
25709 filtered_dirs="/lib /lib64 /usr/lib /usr/lib64"
25710 for flag in $input_flags; do
25712 for dir in $filtered_dirs; do
25713 if test "$flag" = "-L$dir" || test "$flag" = "-L$dir/"; then
25718 if test "$filter" = "no"; then
25719 output_flags="$output_flags $flag"
25722 if test -n "$output_flags"; then
25723 printf "%s" "${output_flags# }"
25727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python >= 3" >&5
25728 $as_echo_n "checking for Python >= 3... " >&6; }
25729 if ${ac_cv_python_is_py3+:} false; then :
25730 $as_echo_n "(cached) " >&6
25733 ac_cv_python_is_py3="no"
25734 $PYTHON -c 'import sys; sys.exit(0x3000000 > sys.hexversion)' && \
25735 ac_cv_python_is_py3="yes"
25738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_python_is_py3" >&5
25739 $as_echo "$ac_cv_python_is_py3" >&6; }
25741 if test "$ac_cv_python_is_py3" = "yes"; then
25742 if test "$SWIG_VERSION" -ge "300010"; then
25745 SWIG_PY_ERRMSG="SWIG version is not suitable"
25746 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Subversion Python bindings for Python 3 require SWIG 3.0.10 or newer" >&5
25747 $as_echo "$as_me: WARNING: Subversion Python bindings for Python 3 require SWIG 3.0.10 or newer" >&2;}
25749 if test "$SWIG_VERSION" -lt "400000"; then
25750 SWIG_PY_OPTS="-python -py3 -nofastunpack -modern"
25752 SWIG_PY_OPTS="-python -py3 -nofastunpack"
25755 if test "$SWIG_VERSION" -lt "400000"; then
25756 SWIG_PY_OPTS="-python -classic"
25759 SWIG_PY_OPTS="-python -nofastunpack"
25760 SWIG_PY_ERRMSG="SWIG version is not suitable"
25761 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Subversion Python bindings for Python 2 require 1.3.24 <= SWIG < 4.0.0" >&5
25762 $as_echo "$as_me: WARNING: Subversion Python bindings for Python 2 require 1.3.24 <= SWIG < 4.0.0" >&2;}
25772 SWIG_PL_ERRMSG="check config.log for details"
25773 if test "$PERL" != "none"; then
25774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking perl version" >&5
25775 $as_echo_n "checking perl version... " >&6; }
25776 PERL_VERSION="`$PERL -e 'q([); print $] * 1000000,$/;'`"
25777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL_VERSION" >&5
25778 $as_echo "$PERL_VERSION" >&6; }
25779 if test "$PERL_VERSION" -ge "5008000"; then
25780 SWIG_PL_INCLUDES="\$(SWIG_INCLUDES) `$PERL -MExtUtils::Embed -e ccopts`"
25781 SWIG_PL_LINK="`$PERL -MExtUtils::Embed -e ldopts`"
25783 input_flags="$SWIG_PL_LINK"
25785 filtered_dirs="/lib /lib64 /usr/lib /usr/lib64"
25786 for flag in $input_flags; do
25788 for dir in $filtered_dirs; do
25789 if test "$flag" = "-L$dir" || test "$flag" = "-L$dir/"; then
25794 if test "$filter" = "no"; then
25795 output_flags="$output_flags $flag"
25798 if test -n "$output_flags"; then
25799 printf "%s" "${output_flags# }"
25805 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: perl bindings require perl 5.8.0 or newer." >&5
25806 $as_echo "$as_me: WARNING: perl bindings require perl 5.8.0 or newer." >&2;}
25810 SWIG_RB_COMPILE="none"
25811 SWIG_RB_LINK="none"
25812 SWIG_RB_ERRMSG="check config.log for details"
25813 if test "$RUBY" != "none"; then
25814 if test x"$SWIG_VERSION" = x"3""00""008"; then
25815 # Use a local variable to escape the '#' sign.
25816 ruby_swig_issue_602='https://subversion.apache.org/docs/release-notes/1.11#ruby-swig-issue-602'
25817 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ruby bindings are known not to support swig 3.0.8; see $ruby_swig_issue_602" >&5
25818 $as_echo "$as_me: WARNING: Ruby bindings are known not to support swig 3.0.8; see $ruby_swig_issue_602" >&2;}
25820 rbconfig="$RUBY -rrbconfig -e "
25822 for var_name in arch archdir CC LDSHARED DLEXT LIBS LIBRUBYARG \
25823 rubyhdrdir rubyarchhdrdir sitedir sitelibdir sitearchdir libdir
25825 rbconfig_tmp=`$rbconfig "print RbConfig::CONFIG['$var_name']"`
25826 eval "rbconfig_$var_name=\"$rbconfig_tmp\""
25829 { $as_echo "$as_me:${as_lineno-$LINENO}: Configuring Ruby SWIG binding" >&5
25830 $as_echo "$as_me: Configuring Ruby SWIG binding" >&6;}
25832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ruby include path" >&5
25833 $as_echo_n "checking for Ruby include path... " >&6; }
25834 if ${svn_cv_ruby_includes+:} false; then :
25835 $as_echo_n "(cached) " >&6
25838 if test -d "$rbconfig_rubyhdrdir"; then
25839 svn_cv_ruby_includes="-I. -I$rbconfig_rubyhdrdir"
25840 if test -d "$rbconfig_rubyarchhdrdir"; then
25841 svn_cv_ruby_includes="$svn_cv_ruby_includes -I$rbconfig_rubyarchhdrdir"
25843 svn_cv_ruby_includes="$svn_cv_ruby_includes -I$rbconfig_rubyhdrdir/$rbconfig_arch"
25846 svn_cv_ruby_includes="-I. -I$rbconfig_archdir"
25850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $svn_cv_ruby_includes" >&5
25851 $as_echo "$svn_cv_ruby_includes" >&6; }
25852 SWIG_RB_INCLUDES="\$(SWIG_INCLUDES) $svn_cv_ruby_includes"
25854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compile Ruby extensions" >&5
25855 $as_echo_n "checking how to compile Ruby extensions... " >&6; }
25856 if ${svn_cv_ruby_compile+:} false; then :
25857 $as_echo_n "(cached) " >&6
25860 svn_cv_ruby_compile="$rbconfig_CC $CFLAGS"
25863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $svn_cv_ruby_compile" >&5
25864 $as_echo "$svn_cv_ruby_compile" >&6; }
25865 SWIG_RB_COMPILE="$svn_cv_ruby_compile"
25867 SWIG_RB_COMPILE=`echo "$SWIG_RB_COMPILE" | $SED -e 's/-ansi//'`
25870 SWIG_RB_COMPILE=`echo "$SWIG_RB_COMPILE" | $SED -e 's/-std=c89//'`
25873 SWIG_RB_COMPILE=`echo "$SWIG_RB_COMPILE" | $SED -e 's/-std=c90//'`
25875 SWIG_RB_COMPILE="$SWIG_RB_COMPILE -Wno-int-to-pointer-cast"
25877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link Ruby extensions" >&5
25878 $as_echo_n "checking how to link Ruby extensions... " >&6; }
25879 if ${svn_cv_ruby_link+:} false; then :
25880 $as_echo_n "(cached) " >&6
25883 svn_cv_ruby_link="`$RUBY -e 'ARGV.shift; print ARGV.join(%q( ))' \
25884 $rbconfig_LDSHARED`"
25885 svn_cv_ruby_link="$rbconfig_CC $svn_cv_ruby_link"
25886 svn_cv_ruby_link="$svn_cv_ruby_link -shrext .$rbconfig_DLEXT"
25889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $svn_cv_ruby_link" >&5
25890 $as_echo "$svn_cv_ruby_link" >&6; }
25891 SWIG_RB_LINK="$svn_cv_ruby_link"
25893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link Ruby libraries" >&5
25894 $as_echo_n "checking how to link Ruby libraries... " >&6; }
25895 if ${ac_cv_ruby_libs+:} false; then :
25896 $as_echo_n "(cached) " >&6
25899 ac_cv_ruby_libs="$rbconfig_LIBRUBYARG $rbconfig_LIBS"
25902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_ruby_libs" >&5
25903 $as_echo "$ac_cv_ruby_libs" >&6; }
25905 input_flags="$ac_cv_ruby_libs"
25907 filtered_dirs="/lib /lib64 /usr/lib /usr/lib64"
25908 for flag in $input_flags; do
25910 for dir in $filtered_dirs; do
25911 if test "$flag" = "-L$dir" || test "$flag" = "-L$dir/"; then
25916 if test "$filter" = "no"; then
25917 output_flags="$output_flags $flag"
25920 if test -n "$output_flags"; then
25921 printf "%s" "${output_flags# }"
25925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rb_errinfo" >&5
25926 $as_echo_n "checking for rb_errinfo... " >&6; }
25927 old_CFLAGS="$CFLAGS"
25929 CFLAGS="$CFLAGS $svn_cv_ruby_includes"
25931 CFLAGS=`echo "$CFLAGS" | $SED -e 's/-ansi//'`
25934 CFLAGS=`echo "$CFLAGS" | $SED -e 's/-std=c89//'`
25937 CFLAGS=`echo "$CFLAGS" | $SED -e 's/-std=c90//'`
25939 LIBS="$SWIG_RB_LIBS"
25940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25941 /* end confdefs.h. */
25947 if ac_fn_c_try_link "$LINENO"; then :
25948 have_rb_errinfo="yes"
25950 have_rb_errinfo="no"
25952 rm -f core conftest.err conftest.$ac_objext \
25953 conftest$ac_exeext conftest.$ac_ext
25954 if test "$have_rb_errinfo" = "yes"; then
25955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25956 $as_echo "yes" >&6; }
25958 $as_echo "#define HAVE_RB_ERRINFO 1" >>confdefs.h
25961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25962 $as_echo "no" >&6; }
25964 CFLAGS="$old_CFLAGS"
25967 if ${svn_cv_ruby_sitedir+:} false; then :
25968 $as_echo_n "(cached) " >&6
25971 svn_cv_ruby_sitedir="$rbconfig_sitedir"
25976 # Check whether --with-ruby-sitedir was given.
25977 if test "${with_ruby_sitedir+set}" = set; then :
25978 withval=$with_ruby_sitedir; svn_ruby_installdir="$withval"
25980 svn_ruby_installdir="$svn_cv_ruby_sitedir"
25984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to install Ruby scripts" >&5
25985 $as_echo_n "checking where to install Ruby scripts... " >&6; }
25986 if ${svn_cv_ruby_sitedir_libsuffix+:} false; then :
25987 $as_echo_n "(cached) " >&6
25990 svn_cv_ruby_sitedir_libsuffix="`echo "$rbconfig_sitelibdir" | \
25991 $SED -e "s,^$rbconfig_sitedir,,"`"
25995 SWIG_RB_SITE_LIB_DIR="${svn_ruby_installdir}${svn_cv_ruby_sitedir_libsuffix}"
25996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG_RB_SITE_LIB_DIR" >&5
25997 $as_echo "$SWIG_RB_SITE_LIB_DIR" >&6; }
25999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to install Ruby extensions" >&5
26000 $as_echo_n "checking where to install Ruby extensions... " >&6; }
26001 if ${svn_cv_ruby_sitedir_archsuffix+:} false; then :
26002 $as_echo_n "(cached) " >&6
26005 svn_cv_ruby_sitedir_archsuffix="`echo "$rbconfig_sitearchdir" | \
26006 $SED -e "s,^$rbconfig_sitedir,,"`"
26010 SWIG_RB_SITE_ARCH_DIR="${svn_ruby_installdir}${svn_cv_ruby_sitedir_archsuffix}"
26011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG_RB_SITE_ARCH_DIR" >&5
26012 $as_echo "$SWIG_RB_SITE_ARCH_DIR" >&6; }
26014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to use output level for Ruby bindings tests" >&5
26015 $as_echo_n "checking how to use output level for Ruby bindings tests... " >&6; }
26016 if ${svn_cv_ruby_test_verbose+:} false; then :
26017 $as_echo_n "(cached) " >&6
26020 svn_cv_ruby_test_verbose="normal"
26025 # Check whether --with-ruby-test-verbose was given.
26026 if test "${with_ruby_test_verbose+set}" = set; then :
26027 withval=$with_ruby_test_verbose; svn_ruby_test_verbose="$withval"
26029 svn_ruby_test_verbose="$svn_cv_ruby_test_verbose"
26032 SWIG_RB_TEST_VERBOSE="$svn_ruby_test_verbose"
26033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG_RB_TEST_VERBOSE" >&5
26034 $as_echo "$SWIG_RB_TEST_VERBOSE" >&6; }
26065 if test $where = no; then
26067 elif test $where = required || test $where = check; then
26068 # Extract the first word of "swig", so it can be a program name with args.
26069 set dummy swig; ac_word=$2
26070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26071 $as_echo_n "checking for $ac_word... " >&6; }
26072 if ${ac_cv_path_SWIG+:} false; then :
26073 $as_echo_n "(cached) " >&6
26077 ac_cv_path_SWIG="$SWIG" # Let the user override the test with a path.
26080 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26081 for as_dir in $PATH
26084 test -z "$as_dir" && as_dir=.
26085 for ac_exec_ext in '' $ac_executable_extensions; do
26086 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26087 ac_cv_path_SWIG="$as_dir/$ac_word$ac_exec_ext"
26088 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26095 test -z "$ac_cv_path_SWIG" && ac_cv_path_SWIG="none"
26099 SWIG=$ac_cv_path_SWIG
26100 if test -n "$SWIG"; then
26101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG" >&5
26102 $as_echo "$SWIG" >&6; }
26104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26105 $as_echo "no" >&6; }
26109 if test "$SWIG" = "none" && test $where = required; then
26110 as_fn_error $? "SWIG required, but not found" "$LINENO" 5
26113 if test -f "$where"; then
26116 SWIG="$where/bin/swig"
26118 if test ! -f "$SWIG" || test ! -x "$SWIG"; then
26119 as_fn_error $? "Could not find swig binary at $SWIG" "$LINENO" 5
26123 if test "$SWIG" != "none"; then
26124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking swig version" >&5
26125 $as_echo_n "checking swig version... " >&6; }
26126 SWIG_VERSION_RAW="`$SWIG -version 2>&1 | \
26127 $SED -ne 's/^.*Version \(.*\)$/\1/p'`"
26128 # We want the version as an integer so we can test against
26129 # which version we're using. SWIG doesn't provide this
26130 # to us so we have to come up with it on our own.
26131 # The major is passed straight through,
26132 # the minor is zero padded to two places,
26133 # and the patch level is zero padded to three places.
26134 # e.g. 1.3.24 becomes 103024
26135 SWIG_VERSION="`echo \"$SWIG_VERSION_RAW\" | \
26136 $SED -e 's/[^0-9\.].*$//' \
26137 -e 's/\.\([0-9]\)$/.0\1/' \
26138 -e 's/\.\([0-9][0-9]\)$/.0\1/' \
26139 -e 's/\.\([0-9]\)\./0\1/; s/\.//g;'`"
26140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG_VERSION_RAW" >&5
26141 $as_echo "$SWIG_VERSION_RAW" >&6; }
26142 # If you change the required swig version number, don't forget to update:
26143 # subversion/bindings/swig/INSTALL
26144 if test -n "$SWIG_VERSION" && test "$SWIG_VERSION" -ge "103024"; then
26148 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Detected SWIG version $SWIG_VERSION_RAW" >&5
26149 $as_echo "$as_me: WARNING: Detected SWIG version $SWIG_VERSION_RAW" >&2;}
26150 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Subversion requires SWIG >= 1.3.24" >&5
26151 $as_echo "$as_me: WARNING: Subversion requires SWIG >= 1.3.24" >&2;}
26155 SWIG_PY_COMPILE="none"
26156 SWIG_PY_LINK="none"
26157 SWIG_PY_OPTS="none"
26158 SWIG_PY_ERRMSG="check config.log for details"
26159 if test "$PYTHON" != "none"; then
26160 { $as_echo "$as_me:${as_lineno-$LINENO}: Configuring python swig binding" >&5
26161 $as_echo "$as_me: Configuring python swig binding" >&6;}
26163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python includes" >&5
26164 $as_echo_n "checking for Python includes... " >&6; }
26165 if ${ac_cv_python_includes+:} false; then :
26166 $as_echo_n "(cached) " >&6
26169 ac_cv_python_includes="`$PYTHON ${abs_srcdir}/build/get-py-info.py --includes`"
26172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_python_includes" >&5
26173 $as_echo "$ac_cv_python_includes" >&6; }
26174 SWIG_PY_INCLUDES="\$(SWIG_INCLUDES) $ac_cv_python_includes"
26176 if test "$ac_cv_python_includes" = "none"; then
26177 SWIG_PY_ERRMSG="no distutils found"
26178 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: python bindings cannot be built without distutils module" >&5
26179 $as_echo "$as_me: WARNING: python bindings cannot be built without distutils module" >&2;}
26182 python_header_found="no"
26184 save_cppflags="$CPPFLAGS"
26185 CPPFLAGS="$CPPFLAGS $ac_cv_python_includes"
26186 ac_fn_c_check_header_mongrel "$LINENO" "Python.h" "ac_cv_header_Python_h" "$ac_includes_default"
26187 if test "x$ac_cv_header_Python_h" = xyes; then :
26189 python_header_found="yes"
26194 CPPFLAGS="$save_cppflags"
26196 if test "$python_header_found" = "no"; then
26197 SWIG_PY_ERRMSG="no Python.h found"
26198 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Python.h not found; disabling python swig bindings" >&5
26199 $as_echo "$as_me: WARNING: Python.h not found; disabling python swig bindings" >&2;}
26206 # Check whether --with-py3c was given.
26207 if test "${with_py3c+set}" = set; then :
26208 withval=$with_py3c;
26209 if test "$withval" = "yes"; then
26211 elif test "$withval" = "no"; then
26215 py3c_prefix="$withval"
26221 if test "$py3c_skip" = "yes"; then
26222 { $as_echo "$as_me:${as_lineno-$LINENO}: Skipping configure of py3c" >&5
26223 $as_echo "$as_me: Skipping configure of py3c" >&6;}
26225 if test -n "$py3c_prefix"; then
26226 { $as_echo "$as_me:${as_lineno-$LINENO}: py3c library configuration via prefix $py3c_prefix" >&5
26227 $as_echo "$as_me: py3c library configuration via prefix $py3c_prefix" >&6;}
26229 if test "$ac_cv_python_includes" = "none"; then
26230 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: py3c cannot be used without distutils module" >&5
26231 $as_echo "$as_me: WARNING: py3c cannot be used without distutils module" >&2;}
26234 save_cppflags="$CPPFLAGS"
26235 CPPFLAGS="$CPPFLAGS $ac_cv_python_includes -I$py3c_prefix/include"
26236 for ac_header in py3c.h
26238 ac_fn_c_check_header_mongrel "$LINENO" "py3c.h" "ac_cv_header_py3c_h" "$ac_includes_default"
26239 if test "x$ac_cv_header_py3c_h" = xyes; then :
26240 cat >>confdefs.h <<_ACEOF
26241 #define HAVE_PY3C_H 1
26245 SVN_PY3C_INCLUDES="-I$py3c_prefix/include"
26251 CPPFLAGS="$save_cppflags"
26254 { $as_echo "$as_me:${as_lineno-$LINENO}: py3c library configuration via pkg-config" >&5
26255 $as_echo "$as_me: py3c library configuration via pkg-config" >&6;}
26256 if test -n "$PKG_CONFIG"; then
26257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for py3c library" >&5
26258 $as_echo_n "checking for py3c library... " >&6; }
26259 if $PKG_CONFIG py3c --exists; then
26260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26261 $as_echo "yes" >&6; }
26263 SVN_PY3C_INCLUDES=`$PKG_CONFIG py3c --cflags`
26265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26266 $as_echo "no" >&6; }
26271 if test "$py3c_found" = "no"; then
26272 { $as_echo "$as_me:${as_lineno-$LINENO}: py3c library configuration without pkg-config" >&5
26273 $as_echo "$as_me: py3c library configuration without pkg-config" >&6;}
26275 if test "$ac_cv_python_includes" = "none"; then
26276 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: py3c cannot be used without distutils module" >&5
26277 $as_echo "$as_me: WARNING: py3c cannot be used without distutils module" >&2;}
26280 save_cppflags="$CPPFLAGS"
26281 CPPFLAGS="$CPPFLAGS $ac_cv_python_includes"
26282 ac_fn_c_check_header_mongrel "$LINENO" "py3c.h" "ac_cv_header_py3c_h" "$ac_includes_default"
26283 if test "x$ac_cv_header_py3c_h" = xyes; then :
26290 CPPFLAGS="$save_cppflags"
26298 if test "$py3c_found" = "no"; then
26299 SWIG_PY_ERRMSG="py3c library not found"
26300 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: py3c library not found; disabling python swig bindings" >&5
26301 $as_echo "$as_me: WARNING: py3c library not found; disabling python swig bindings" >&2;}
26303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiling Python extensions" >&5
26304 $as_echo_n "checking for compiling Python extensions... " >&6; }
26305 if ${ac_cv_python_compile+:} false; then :
26306 $as_echo_n "(cached) " >&6
26309 ac_cv_python_compile="`$PYTHON ${abs_srcdir}/build/get-py-info.py --compile`"
26312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_python_compile" >&5
26313 $as_echo "$ac_cv_python_compile" >&6; }
26314 SWIG_PY_COMPILE="$ac_cv_python_compile $CFLAGS"
26316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linking Python extensions" >&5
26317 $as_echo_n "checking for linking Python extensions... " >&6; }
26318 if ${ac_cv_python_link+:} false; then :
26319 $as_echo_n "(cached) " >&6
26322 ac_cv_python_link="`$PYTHON ${abs_srcdir}/build/get-py-info.py --link`"
26325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_python_link" >&5
26326 $as_echo "$ac_cv_python_link" >&6; }
26327 SWIG_PY_LINK="$ac_cv_python_link"
26329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linking Python libraries" >&5
26330 $as_echo_n "checking for linking Python libraries... " >&6; }
26331 if ${ac_cv_python_libs+:} false; then :
26332 $as_echo_n "(cached) " >&6
26335 ac_cv_python_libs="`$PYTHON ${abs_srcdir}/build/get-py-info.py --libs`"
26338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_python_libs" >&5
26339 $as_echo "$ac_cv_python_libs" >&6; }
26341 input_flags="$ac_cv_python_libs"
26343 filtered_dirs="/lib /lib64 /usr/lib /usr/lib64"
26344 for flag in $input_flags; do
26346 for dir in $filtered_dirs; do
26347 if test "$flag" = "-L$dir" || test "$flag" = "-L$dir/"; then
26352 if test "$filter" = "no"; then
26353 output_flags="$output_flags $flag"
26356 if test -n "$output_flags"; then
26357 printf "%s" "${output_flags# }"
26361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python >= 3" >&5
26362 $as_echo_n "checking for Python >= 3... " >&6; }
26363 if ${ac_cv_python_is_py3+:} false; then :
26364 $as_echo_n "(cached) " >&6
26367 ac_cv_python_is_py3="no"
26368 $PYTHON -c 'import sys; sys.exit(0x3000000 > sys.hexversion)' && \
26369 ac_cv_python_is_py3="yes"
26372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_python_is_py3" >&5
26373 $as_echo "$ac_cv_python_is_py3" >&6; }
26375 if test "$ac_cv_python_is_py3" = "yes"; then
26376 if test "$SWIG_VERSION" -ge "300010"; then
26379 SWIG_PY_ERRMSG="SWIG version is not suitable"
26380 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Subversion Python bindings for Python 3 require SWIG 3.0.10 or newer" >&5
26381 $as_echo "$as_me: WARNING: Subversion Python bindings for Python 3 require SWIG 3.0.10 or newer" >&2;}
26383 if test "$SWIG_VERSION" -lt "400000"; then
26384 SWIG_PY_OPTS="-python -py3 -nofastunpack -modern"
26386 SWIG_PY_OPTS="-python -py3 -nofastunpack"
26389 if test "$SWIG_VERSION" -lt "400000"; then
26390 SWIG_PY_OPTS="-python -classic"
26393 SWIG_PY_OPTS="-python -nofastunpack"
26394 SWIG_PY_ERRMSG="SWIG version is not suitable"
26395 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Subversion Python bindings for Python 2 require 1.3.24 <= SWIG < 4.0.0" >&5
26396 $as_echo "$as_me: WARNING: Subversion Python bindings for Python 2 require 1.3.24 <= SWIG < 4.0.0" >&2;}
26406 SWIG_PL_ERRMSG="check config.log for details"
26407 if test "$PERL" != "none"; then
26408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking perl version" >&5
26409 $as_echo_n "checking perl version... " >&6; }
26410 PERL_VERSION="`$PERL -e 'q([); print $] * 1000000,$/;'`"
26411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL_VERSION" >&5
26412 $as_echo "$PERL_VERSION" >&6; }
26413 if test "$PERL_VERSION" -ge "5008000"; then
26414 SWIG_PL_INCLUDES="\$(SWIG_INCLUDES) `$PERL -MExtUtils::Embed -e ccopts`"
26415 SWIG_PL_LINK="`$PERL -MExtUtils::Embed -e ldopts`"
26417 input_flags="$SWIG_PL_LINK"
26419 filtered_dirs="/lib /lib64 /usr/lib /usr/lib64"
26420 for flag in $input_flags; do
26422 for dir in $filtered_dirs; do
26423 if test "$flag" = "-L$dir" || test "$flag" = "-L$dir/"; then
26428 if test "$filter" = "no"; then
26429 output_flags="$output_flags $flag"
26432 if test -n "$output_flags"; then
26433 printf "%s" "${output_flags# }"
26439 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: perl bindings require perl 5.8.0 or newer." >&5
26440 $as_echo "$as_me: WARNING: perl bindings require perl 5.8.0 or newer." >&2;}
26444 SWIG_RB_COMPILE="none"
26445 SWIG_RB_LINK="none"
26446 SWIG_RB_ERRMSG="check config.log for details"
26447 if test "$RUBY" != "none"; then
26448 if test x"$SWIG_VERSION" = x"3""00""008"; then
26449 # Use a local variable to escape the '#' sign.
26450 ruby_swig_issue_602='https://subversion.apache.org/docs/release-notes/1.11#ruby-swig-issue-602'
26451 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ruby bindings are known not to support swig 3.0.8; see $ruby_swig_issue_602" >&5
26452 $as_echo "$as_me: WARNING: Ruby bindings are known not to support swig 3.0.8; see $ruby_swig_issue_602" >&2;}
26454 rbconfig="$RUBY -rrbconfig -e "
26456 for var_name in arch archdir CC LDSHARED DLEXT LIBS LIBRUBYARG \
26457 rubyhdrdir rubyarchhdrdir sitedir sitelibdir sitearchdir libdir
26459 rbconfig_tmp=`$rbconfig "print RbConfig::CONFIG['$var_name']"`
26460 eval "rbconfig_$var_name=\"$rbconfig_tmp\""
26463 { $as_echo "$as_me:${as_lineno-$LINENO}: Configuring Ruby SWIG binding" >&5
26464 $as_echo "$as_me: Configuring Ruby SWIG binding" >&6;}
26466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ruby include path" >&5
26467 $as_echo_n "checking for Ruby include path... " >&6; }
26468 if ${svn_cv_ruby_includes+:} false; then :
26469 $as_echo_n "(cached) " >&6
26472 if test -d "$rbconfig_rubyhdrdir"; then
26473 svn_cv_ruby_includes="-I. -I$rbconfig_rubyhdrdir"
26474 if test -d "$rbconfig_rubyarchhdrdir"; then
26475 svn_cv_ruby_includes="$svn_cv_ruby_includes -I$rbconfig_rubyarchhdrdir"
26477 svn_cv_ruby_includes="$svn_cv_ruby_includes -I$rbconfig_rubyhdrdir/$rbconfig_arch"
26480 svn_cv_ruby_includes="-I. -I$rbconfig_archdir"
26484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $svn_cv_ruby_includes" >&5
26485 $as_echo "$svn_cv_ruby_includes" >&6; }
26486 SWIG_RB_INCLUDES="\$(SWIG_INCLUDES) $svn_cv_ruby_includes"
26488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compile Ruby extensions" >&5
26489 $as_echo_n "checking how to compile Ruby extensions... " >&6; }
26490 if ${svn_cv_ruby_compile+:} false; then :
26491 $as_echo_n "(cached) " >&6
26494 svn_cv_ruby_compile="$rbconfig_CC $CFLAGS"
26497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $svn_cv_ruby_compile" >&5
26498 $as_echo "$svn_cv_ruby_compile" >&6; }
26499 SWIG_RB_COMPILE="$svn_cv_ruby_compile"
26501 SWIG_RB_COMPILE=`echo "$SWIG_RB_COMPILE" | $SED -e 's/-ansi//'`
26504 SWIG_RB_COMPILE=`echo "$SWIG_RB_COMPILE" | $SED -e 's/-std=c89//'`
26507 SWIG_RB_COMPILE=`echo "$SWIG_RB_COMPILE" | $SED -e 's/-std=c90//'`
26509 SWIG_RB_COMPILE="$SWIG_RB_COMPILE -Wno-int-to-pointer-cast"
26511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link Ruby extensions" >&5
26512 $as_echo_n "checking how to link Ruby extensions... " >&6; }
26513 if ${svn_cv_ruby_link+:} false; then :
26514 $as_echo_n "(cached) " >&6
26517 svn_cv_ruby_link="`$RUBY -e 'ARGV.shift; print ARGV.join(%q( ))' \
26518 $rbconfig_LDSHARED`"
26519 svn_cv_ruby_link="$rbconfig_CC $svn_cv_ruby_link"
26520 svn_cv_ruby_link="$svn_cv_ruby_link -shrext .$rbconfig_DLEXT"
26523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $svn_cv_ruby_link" >&5
26524 $as_echo "$svn_cv_ruby_link" >&6; }
26525 SWIG_RB_LINK="$svn_cv_ruby_link"
26527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link Ruby libraries" >&5
26528 $as_echo_n "checking how to link Ruby libraries... " >&6; }
26529 if ${ac_cv_ruby_libs+:} false; then :
26530 $as_echo_n "(cached) " >&6
26533 ac_cv_ruby_libs="$rbconfig_LIBRUBYARG $rbconfig_LIBS"
26536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_ruby_libs" >&5
26537 $as_echo "$ac_cv_ruby_libs" >&6; }
26539 input_flags="$ac_cv_ruby_libs"
26541 filtered_dirs="/lib /lib64 /usr/lib /usr/lib64"
26542 for flag in $input_flags; do
26544 for dir in $filtered_dirs; do
26545 if test "$flag" = "-L$dir" || test "$flag" = "-L$dir/"; then
26550 if test "$filter" = "no"; then
26551 output_flags="$output_flags $flag"
26554 if test -n "$output_flags"; then
26555 printf "%s" "${output_flags# }"
26559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rb_errinfo" >&5
26560 $as_echo_n "checking for rb_errinfo... " >&6; }
26561 old_CFLAGS="$CFLAGS"
26563 CFLAGS="$CFLAGS $svn_cv_ruby_includes"
26565 CFLAGS=`echo "$CFLAGS" | $SED -e 's/-ansi//'`
26568 CFLAGS=`echo "$CFLAGS" | $SED -e 's/-std=c89//'`
26571 CFLAGS=`echo "$CFLAGS" | $SED -e 's/-std=c90//'`
26573 LIBS="$SWIG_RB_LIBS"
26574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26575 /* end confdefs.h. */
26581 if ac_fn_c_try_link "$LINENO"; then :
26582 have_rb_errinfo="yes"
26584 have_rb_errinfo="no"
26586 rm -f core conftest.err conftest.$ac_objext \
26587 conftest$ac_exeext conftest.$ac_ext
26588 if test "$have_rb_errinfo" = "yes"; then
26589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26590 $as_echo "yes" >&6; }
26592 $as_echo "#define HAVE_RB_ERRINFO 1" >>confdefs.h
26595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26596 $as_echo "no" >&6; }
26598 CFLAGS="$old_CFLAGS"
26601 if ${svn_cv_ruby_sitedir+:} false; then :
26602 $as_echo_n "(cached) " >&6
26605 svn_cv_ruby_sitedir="$rbconfig_sitedir"
26610 # Check whether --with-ruby-sitedir was given.
26611 if test "${with_ruby_sitedir+set}" = set; then :
26612 withval=$with_ruby_sitedir; svn_ruby_installdir="$withval"
26614 svn_ruby_installdir="$svn_cv_ruby_sitedir"
26618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to install Ruby scripts" >&5
26619 $as_echo_n "checking where to install Ruby scripts... " >&6; }
26620 if ${svn_cv_ruby_sitedir_libsuffix+:} false; then :
26621 $as_echo_n "(cached) " >&6
26624 svn_cv_ruby_sitedir_libsuffix="`echo "$rbconfig_sitelibdir" | \
26625 $SED -e "s,^$rbconfig_sitedir,,"`"
26629 SWIG_RB_SITE_LIB_DIR="${svn_ruby_installdir}${svn_cv_ruby_sitedir_libsuffix}"
26630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG_RB_SITE_LIB_DIR" >&5
26631 $as_echo "$SWIG_RB_SITE_LIB_DIR" >&6; }
26633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to install Ruby extensions" >&5
26634 $as_echo_n "checking where to install Ruby extensions... " >&6; }
26635 if ${svn_cv_ruby_sitedir_archsuffix+:} false; then :
26636 $as_echo_n "(cached) " >&6
26639 svn_cv_ruby_sitedir_archsuffix="`echo "$rbconfig_sitearchdir" | \
26640 $SED -e "s,^$rbconfig_sitedir,,"`"
26644 SWIG_RB_SITE_ARCH_DIR="${svn_ruby_installdir}${svn_cv_ruby_sitedir_archsuffix}"
26645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG_RB_SITE_ARCH_DIR" >&5
26646 $as_echo "$SWIG_RB_SITE_ARCH_DIR" >&6; }
26648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to use output level for Ruby bindings tests" >&5
26649 $as_echo_n "checking how to use output level for Ruby bindings tests... " >&6; }
26650 if ${svn_cv_ruby_test_verbose+:} false; then :
26651 $as_echo_n "(cached) " >&6
26654 svn_cv_ruby_test_verbose="normal"
26659 # Check whether --with-ruby-test-verbose was given.
26660 if test "${with_ruby_test_verbose+set}" = set; then :
26661 withval=$with_ruby_test_verbose; svn_ruby_test_verbose="$withval"
26663 svn_ruby_test_verbose="$svn_cv_ruby_test_verbose"
26666 SWIG_RB_TEST_VERBOSE="$svn_ruby_test_verbose"
26667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG_RB_TEST_VERBOSE" >&5
26668 $as_echo "$SWIG_RB_TEST_VERBOSE" >&6; }
26702 # Check whether --with-ctypesgen was given.
26703 if test "${with_ctypesgen+set}" = set; then :
26704 withval=$with_ctypesgen;
26712 if test $where = check; then
26713 # Extract the first word of ""ctypesgen.py"", so it can be a program name with args.
26714 set dummy "ctypesgen.py"; ac_word=$2
26715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26716 $as_echo_n "checking for $ac_word... " >&6; }
26717 if ${ac_cv_path_CTYPESGEN+:} false; then :
26718 $as_echo_n "(cached) " >&6
26722 ac_cv_path_CTYPESGEN="$CTYPESGEN" # Let the user override the test with a path.
26725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26726 for as_dir in $PATH
26729 test -z "$as_dir" && as_dir=.
26730 for ac_exec_ext in '' $ac_executable_extensions; do
26731 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26732 ac_cv_path_CTYPESGEN="$as_dir/$ac_word$ac_exec_ext"
26733 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26740 test -z "$ac_cv_path_CTYPESGEN" && ac_cv_path_CTYPESGEN="none"
26744 CTYPESGEN=$ac_cv_path_CTYPESGEN
26745 if test -n "$CTYPESGEN"; then
26746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CTYPESGEN" >&5
26747 $as_echo "$CTYPESGEN" >&6; }
26749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26750 $as_echo "no" >&6; }
26754 elif test $where != no; then
26755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctypesgen.py" >&5
26756 $as_echo_n "checking for ctypesgen.py... " >&6; }
26758 if test -f "$where"; then
26760 elif test -f "$where/bin/ctypesgen.py"; then
26761 CTYPESGEN="$where/bin/ctypesgen.py"
26763 CTYPESGEN="$where/ctypesgen.py"
26766 if test ! -f "$CTYPESGEN" || test ! -x "$CTYPESGEN"; then
26767 as_fn_error $? "Could not find ctypesgen at $where/ctypesgen.py or at
26768 $where/bin/ctypesgen.py" "$LINENO" 5
26770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CTYPESGEN" >&5
26771 $as_echo "$CTYPESGEN" >&6; }
26784 if test $where = check; then
26785 # Extract the first word of ""ctypesgen.py"", so it can be a program name with args.
26786 set dummy "ctypesgen.py"; ac_word=$2
26787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26788 $as_echo_n "checking for $ac_word... " >&6; }
26789 if ${ac_cv_path_CTYPESGEN+:} false; then :
26790 $as_echo_n "(cached) " >&6
26794 ac_cv_path_CTYPESGEN="$CTYPESGEN" # Let the user override the test with a path.
26797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26798 for as_dir in $PATH
26801 test -z "$as_dir" && as_dir=.
26802 for ac_exec_ext in '' $ac_executable_extensions; do
26803 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26804 ac_cv_path_CTYPESGEN="$as_dir/$ac_word$ac_exec_ext"
26805 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26812 test -z "$ac_cv_path_CTYPESGEN" && ac_cv_path_CTYPESGEN="none"
26816 CTYPESGEN=$ac_cv_path_CTYPESGEN
26817 if test -n "$CTYPESGEN"; then
26818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CTYPESGEN" >&5
26819 $as_echo "$CTYPESGEN" >&6; }
26821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26822 $as_echo "no" >&6; }
26826 elif test $where != no; then
26827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctypesgen.py" >&5
26828 $as_echo_n "checking for ctypesgen.py... " >&6; }
26830 if test -f "$where"; then
26832 elif test -f "$where/bin/ctypesgen.py"; then
26833 CTYPESGEN="$where/bin/ctypesgen.py"
26835 CTYPESGEN="$where/ctypesgen.py"
26838 if test ! -f "$CTYPESGEN" || test ! -x "$CTYPESGEN"; then
26839 as_fn_error $? "Could not find ctypesgen at $where/ctypesgen.py or at
26840 $where/bin/ctypesgen.py" "$LINENO" 5
26842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CTYPESGEN" >&5
26843 $as_echo "$CTYPESGEN" >&6; }
26856 if test $where = check; then
26857 # Extract the first word of ""ctypesgen.py"", so it can be a program name with args.
26858 set dummy "ctypesgen.py"; ac_word=$2
26859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26860 $as_echo_n "checking for $ac_word... " >&6; }
26861 if ${ac_cv_path_CTYPESGEN+:} false; then :
26862 $as_echo_n "(cached) " >&6
26866 ac_cv_path_CTYPESGEN="$CTYPESGEN" # Let the user override the test with a path.
26869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26870 for as_dir in $PATH
26873 test -z "$as_dir" && as_dir=.
26874 for ac_exec_ext in '' $ac_executable_extensions; do
26875 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26876 ac_cv_path_CTYPESGEN="$as_dir/$ac_word$ac_exec_ext"
26877 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26884 test -z "$ac_cv_path_CTYPESGEN" && ac_cv_path_CTYPESGEN="none"
26888 CTYPESGEN=$ac_cv_path_CTYPESGEN
26889 if test -n "$CTYPESGEN"; then
26890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CTYPESGEN" >&5
26891 $as_echo "$CTYPESGEN" >&6; }
26893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26894 $as_echo "no" >&6; }
26898 elif test $where != no; then
26899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctypesgen.py" >&5
26900 $as_echo_n "checking for ctypesgen.py... " >&6; }
26902 if test -f "$where"; then
26904 elif test -f "$where/bin/ctypesgen.py"; then
26905 CTYPESGEN="$where/bin/ctypesgen.py"
26907 CTYPESGEN="$where/ctypesgen.py"
26910 if test ! -f "$CTYPESGEN" || test ! -x "$CTYPESGEN"; then
26911 as_fn_error $? "Could not find ctypesgen at $where/ctypesgen.py or at
26912 $where/bin/ctypesgen.py" "$LINENO" 5
26914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CTYPESGEN" >&5
26915 $as_echo "$CTYPESGEN" >&6; }
26931 if test $where = check; then
26932 # Extract the first word of ""ctypesgen.py"", so it can be a program name with args.
26933 set dummy "ctypesgen.py"; ac_word=$2
26934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26935 $as_echo_n "checking for $ac_word... " >&6; }
26936 if ${ac_cv_path_CTYPESGEN+:} false; then :
26937 $as_echo_n "(cached) " >&6
26941 ac_cv_path_CTYPESGEN="$CTYPESGEN" # Let the user override the test with a path.
26944 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26945 for as_dir in $PATH
26948 test -z "$as_dir" && as_dir=.
26949 for ac_exec_ext in '' $ac_executable_extensions; do
26950 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26951 ac_cv_path_CTYPESGEN="$as_dir/$ac_word$ac_exec_ext"
26952 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26959 test -z "$ac_cv_path_CTYPESGEN" && ac_cv_path_CTYPESGEN="none"
26963 CTYPESGEN=$ac_cv_path_CTYPESGEN
26964 if test -n "$CTYPESGEN"; then
26965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CTYPESGEN" >&5
26966 $as_echo "$CTYPESGEN" >&6; }
26968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26969 $as_echo "no" >&6; }
26973 elif test $where != no; then
26974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctypesgen.py" >&5
26975 $as_echo_n "checking for ctypesgen.py... " >&6; }
26977 if test -f "$where"; then
26979 elif test -f "$where/bin/ctypesgen.py"; then
26980 CTYPESGEN="$where/bin/ctypesgen.py"
26982 CTYPESGEN="$where/ctypesgen.py"
26985 if test ! -f "$CTYPESGEN" || test ! -x "$CTYPESGEN"; then
26986 as_fn_error $? "Could not find ctypesgen at $where/ctypesgen.py or at
26987 $where/bin/ctypesgen.py" "$LINENO" 5
26989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CTYPESGEN" >&5
26990 $as_echo "$CTYPESGEN" >&6; }
27001 # Check whether --enable-runtime-module-search was given.
27002 if test "${enable_runtime_module_search+set}" = set; then :
27003 enableval=$enable_runtime_module_search;
27004 if test "$enableval" = "yes"; then
27006 if test "$svn_enable_shared" = "no"; then
27007 as_fn_error $? "--enable-runtime-module-search conflicts with --disable-shared" "$LINENO" 5
27010 $as_echo "#define SVN_USE_DSO 1" >>confdefs.h
27016 $as_echo "#define SVN_DSO_SUFFIX_FMT \"%d.%d.dylib\"" >>confdefs.h
27021 $as_echo "#define SVN_DSO_SUFFIX_FMT \"%d.so.%d\"" >>confdefs.h
27030 if test "$svn_enable_shared" = "no" || test "$use_dso" != "yes"; then
27032 $as_echo "#define SVN_LIBSVN_RA_LINKS_RA_LOCAL 1" >>confdefs.h
27034 svn_ra_lib_deps="\$(RA_LOCAL_DEPS)"
27035 svn_ra_lib_install_deps="install-ramod-lib"
27036 svn_ra_lib_link="\$(RA_LOCAL_LINK)"
27039 $as_echo "#define SVN_LIBSVN_RA_LINKS_RA_SVN 1" >>confdefs.h
27041 svn_ra_lib_deps="$svn_ra_lib_deps \$(RA_SVN_DEPS)"
27042 svn_ra_lib_link="$svn_ra_lib_link \$(RA_SVN_LINK)"
27044 if test "$svn_lib_serf" = "yes"; then
27046 $as_echo "#define SVN_LIBSVN_RA_LINKS_RA_SERF 1" >>confdefs.h
27048 svn_ra_lib_deps="$svn_ra_lib_deps \$(RA_SERF_DEPS)"
27049 svn_ra_lib_install_deps="$svn_ra_lib_install_deps install-serf-lib"
27050 svn_ra_lib_link="$svn_ra_lib_link \$(RA_SERF_LINK)"
27053 SVN_RA_LIB_DEPS=$svn_ra_lib_deps
27054 SVN_RA_LIB_INSTALL_DEPS=$svn_ra_lib_install_deps
27055 SVN_RA_LIB_LINK=$svn_ra_lib_link
27058 $as_echo "#define SVN_LIBSVN_FS_LINKS_FS_FS 1" >>confdefs.h
27060 svn_fs_lib_deps="\$(FS_FS_DEPS)"
27061 svn_fs_lib_install_deps="install-fsmod-lib"
27062 svn_fs_lib_link="\$(FS_FS_LINK)"
27065 $as_echo "#define SVN_LIBSVN_FS_LINKS_FS_X 1" >>confdefs.h
27067 svn_fs_lib_deps="$svn_fs_lib_deps \$(FS_X_DEPS)"
27068 svn_fs_lib_link="$svn_fs_lib_link \$(FS_X_LINK)"
27070 if test "$svn_lib_berkeley_db" = "yes"; then
27072 $as_echo "#define SVN_LIBSVN_FS_LINKS_FS_BASE 1" >>confdefs.h
27074 svn_fs_lib_deps="$svn_fs_lib_deps \$(FS_BASE_DEPS)"
27075 svn_fs_lib_install_deps="$svn_fs_lib_install_deps install-bdb-lib"
27076 svn_fs_lib_link="$svn_fs_lib_link \$(FS_BASE_LINK)"
27079 SVN_FS_LIB_DEPS=$svn_fs_lib_deps
27080 SVN_FS_LIB_INSTALL_DEPS=$svn_fs_lib_install_deps
27081 SVN_FS_LIB_LINK=$svn_fs_lib_link
27091 # ==== SVN++ =================================================================
27094 # Check whether --enable-svnxx was given.
27095 if test "${enable_svnxx+set}" = set; then :
27096 enableval=$enable_svnxx; if test "$enableval" = "yes" ; then
27097 { $as_echo "$as_me:${as_lineno-$LINENO}: Enabling the C++ bindings" >&5
27098 $as_echo "$as_me: Enabling the C++ bindings" >&6;}
27105 do_svnxx_test_build=no
27106 # Check whether --enable-svnxx-tests was given.
27107 if test "${enable_svnxx_tests+set}" = set; then :
27108 enableval=$enable_svnxx_tests; if test "$enableval" = "yes" ; then
27109 { $as_echo "$as_me:${as_lineno-$LINENO}: Enabling tests for the C++ bindings" >&5
27110 $as_echo "$as_me: Enabling tests for the C++ bindings" >&6;}
27111 do_svnxx_test_build=yes
27119 # Check whether --with-boost was given.
27120 if test "${with_boost+set}" = set; then :
27121 withval=$with_boost;
27122 case $withval in #(
27124 want_boost="no";_AX_BOOST_BASE_boost_path="" ;; #(
27126 want_boost="yes";_AX_BOOST_BASE_boost_path="" ;; #(
27128 want_boost="yes";_AX_BOOST_BASE_boost_path="$withval" ;;
27138 # Check whether --with-boost-libdir was given.
27139 if test "${with_boost_libdir+set}" = set; then :
27140 withval=$with_boost_libdir;
27141 if test -d "$withval"; then :
27142 _AX_BOOST_BASE_boost_lib_path="$withval"
27144 as_fn_error $? "--with-boost-libdir expected directory name" "$LINENO" 5
27148 _AX_BOOST_BASE_boost_lib_path=""
27154 if test "x$want_boost" = "xyes"; then :
27157 if test "x1.58" = "x"; then :
27158 _AX_BOOST_BASE_TONUMERICVERSION_req="1.20.0"
27160 _AX_BOOST_BASE_TONUMERICVERSION_req="1.58"
27162 _AX_BOOST_BASE_TONUMERICVERSION_req_shorten=`expr $_AX_BOOST_BASE_TONUMERICVERSION_req : '\([0-9]*\.[0-9]*\)'`
27163 _AX_BOOST_BASE_TONUMERICVERSION_req_major=`expr $_AX_BOOST_BASE_TONUMERICVERSION_req : '\([0-9]*\)'`
27164 if test "x$_AX_BOOST_BASE_TONUMERICVERSION_req_major" = "x"; then :
27165 as_fn_error $? "You should at least specify libboost major version" "$LINENO" 5
27167 _AX_BOOST_BASE_TONUMERICVERSION_req_minor=`expr $_AX_BOOST_BASE_TONUMERICVERSION_req : '[0-9]*\.\([0-9]*\)'`
27168 if test "x$_AX_BOOST_BASE_TONUMERICVERSION_req_minor" = "x"; then :
27169 _AX_BOOST_BASE_TONUMERICVERSION_req_minor="0"
27171 _AX_BOOST_BASE_TONUMERICVERSION_req_sub_minor=`expr $_AX_BOOST_BASE_TONUMERICVERSION_req : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
27172 if test "X$_AX_BOOST_BASE_TONUMERICVERSION_req_sub_minor" = "X"; then :
27173 _AX_BOOST_BASE_TONUMERICVERSION_req_sub_minor="0"
27175 _AX_BOOST_BASE_TONUMERICVERSION_RET=`expr $_AX_BOOST_BASE_TONUMERICVERSION_req_major \* 100000 \+ $_AX_BOOST_BASE_TONUMERICVERSION_req_minor \* 100 \+ $_AX_BOOST_BASE_TONUMERICVERSION_req_sub_minor`
27176 WANT_BOOST_VERSION=$_AX_BOOST_BASE_TONUMERICVERSION_RET
27182 case ${host_cpu} in #(
27184 libsubdirs="lib64 libx32 lib lib64" ;; #(
27185 ppc64|powerpc64|s390x|sparc64|aarch64|ppc64le|powerpc64le|riscv64) :
27186 libsubdirs="lib64 lib lib64" ;; #(
27192 case ${host_cpu} in #(
27194 multiarch_libsubdir="lib/i386-${host_os}" ;; #(
27196 multiarch_libsubdir="lib/${host_cpu}-${host_os}"
27200 if test "x$_AX_BOOST_BASE_boost_path" != "x"; then :
27202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for boostlib >= 1.58 ($WANT_BOOST_VERSION) includes in \"$_AX_BOOST_BASE_boost_path/include\"" >&5
27203 $as_echo_n "checking for boostlib >= 1.58 ($WANT_BOOST_VERSION) includes in \"$_AX_BOOST_BASE_boost_path/include\"... " >&6; }
27204 if test -d "$_AX_BOOST_BASE_boost_path/include" && test -r "$_AX_BOOST_BASE_boost_path/include"; then :
27206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27207 $as_echo "yes" >&6; }
27208 BOOST_CPPFLAGS="-I$_AX_BOOST_BASE_boost_path/include"
27209 for _AX_BOOST_BASE_boost_path_tmp in $multiarch_libsubdir $libsubdirs; do
27210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for boostlib >= 1.58 ($WANT_BOOST_VERSION) lib path in \"$_AX_BOOST_BASE_boost_path/$_AX_BOOST_BASE_boost_path_tmp\"" >&5
27211 $as_echo_n "checking for boostlib >= 1.58 ($WANT_BOOST_VERSION) lib path in \"$_AX_BOOST_BASE_boost_path/$_AX_BOOST_BASE_boost_path_tmp\"... " >&6; }
27212 if test -d "$_AX_BOOST_BASE_boost_path/$_AX_BOOST_BASE_boost_path_tmp" && test -r "$_AX_BOOST_BASE_boost_path/$_AX_BOOST_BASE_boost_path_tmp" ; then :
27214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27215 $as_echo "yes" >&6; }
27216 BOOST_LDFLAGS="-L$_AX_BOOST_BASE_boost_path/$_AX_BOOST_BASE_boost_path_tmp";
27220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27221 $as_echo "no" >&6; }
27226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27227 $as_echo "no" >&6; }
27232 if test X"$cross_compiling" = Xyes; then
27233 search_libsubdirs=$multiarch_libsubdir
27235 search_libsubdirs="$multiarch_libsubdir $libsubdirs"
27237 for _AX_BOOST_BASE_boost_path_tmp in /usr /usr/local /opt /opt/local ; do
27238 if test -d "$_AX_BOOST_BASE_boost_path_tmp/include/boost" && test -r "$_AX_BOOST_BASE_boost_path_tmp/include/boost" ; then
27239 for libsubdir in $search_libsubdirs ; do
27240 if ls "$_AX_BOOST_BASE_boost_path_tmp/$libsubdir/libboost_"* >/dev/null 2>&1 ; then break; fi
27242 BOOST_LDFLAGS="-L$_AX_BOOST_BASE_boost_path_tmp/$libsubdir"
27243 BOOST_CPPFLAGS="-I$_AX_BOOST_BASE_boost_path_tmp/include"
27250 if test "x$_AX_BOOST_BASE_boost_lib_path" != "x"; then :
27251 BOOST_LDFLAGS="-L$_AX_BOOST_BASE_boost_lib_path"
27254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for boostlib >= 1.58 ($WANT_BOOST_VERSION)" >&5
27255 $as_echo_n "checking for boostlib >= 1.58 ($WANT_BOOST_VERSION)... " >&6; }
27256 CPPFLAGS_SAVED="$CPPFLAGS"
27257 CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
27260 LDFLAGS_SAVED="$LDFLAGS"
27261 LDFLAGS="$LDFLAGS $BOOST_LDFLAGS"
27266 ac_cpp='$CXXCPP $CPPFLAGS'
27267 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27268 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27269 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27272 /* end confdefs.h. */
27274 #include <boost/version.hpp>
27280 (void) ((void)sizeof(char[1 - 2*!!((BOOST_VERSION) < ($WANT_BOOST_VERSION))]));
27286 if ac_fn_cxx_try_compile "$LINENO"; then :
27288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27289 $as_echo "yes" >&6; }
27294 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27296 ac_cpp='$CPP $CPPFLAGS'
27297 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27298 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27299 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27304 if test "x$succeeded" != "xyes" ; then
27305 CPPFLAGS="$CPPFLAGS_SAVED"
27306 LDFLAGS="$LDFLAGS_SAVED"
27308 if test -z "$_AX_BOOST_BASE_boost_lib_path" ; then
27312 if test -n "$_AX_BOOST_BASE_boost_path" ; then
27313 if test -d "$_AX_BOOST_BASE_boost_path" && test -r "$_AX_BOOST_BASE_boost_path"; then
27314 for i in `ls -d $_AX_BOOST_BASE_boost_path/include/boost-* 2>/dev/null`; do
27315 _version_tmp=`echo $i | sed "s#$_AX_BOOST_BASE_boost_path##" | sed 's/\/include\/boost-//' | sed 's/_/./'`
27316 V_CHECK=`expr $_version_tmp \> $_version`
27317 if test "x$V_CHECK" = "x1" ; then
27318 _version=$_version_tmp
27320 VERSION_UNDERSCORE=`echo $_version | sed 's/\./_/'`
27321 BOOST_CPPFLAGS="-I$_AX_BOOST_BASE_boost_path/include/boost-$VERSION_UNDERSCORE"
27323 if test -z "$BOOST_CPPFLAGS"; then
27324 if test -d "$_AX_BOOST_BASE_boost_path/boost" && test -r "$_AX_BOOST_BASE_boost_path/boost"; then
27325 BOOST_CPPFLAGS="-I$_AX_BOOST_BASE_boost_path"
27328 if test -n "$BOOST_CPPFLAGS" && test -z "$BOOST_LDFLAGS"; then
27329 for libsubdir in $libsubdirs ; do
27330 if ls "$_AX_BOOST_BASE_boost_path/$libsubdir/libboost_"* >/dev/null 2>&1 ; then break; fi
27332 BOOST_LDFLAGS="-L$_AX_BOOST_BASE_boost_path/$libsubdir"
27336 if test "x$cross_compiling" != "xyes" ; then
27337 for _AX_BOOST_BASE_boost_path in /usr /usr/local /opt /opt/local ; do
27338 if test -d "$_AX_BOOST_BASE_boost_path" && test -r "$_AX_BOOST_BASE_boost_path" ; then
27339 for i in `ls -d $_AX_BOOST_BASE_boost_path/include/boost-* 2>/dev/null`; do
27340 _version_tmp=`echo $i | sed "s#$_AX_BOOST_BASE_boost_path##" | sed 's/\/include\/boost-//' | sed 's/_/./'`
27341 V_CHECK=`expr $_version_tmp \> $_version`
27342 if test "x$V_CHECK" = "x1" ; then
27343 _version=$_version_tmp
27344 best_path=$_AX_BOOST_BASE_boost_path
27350 VERSION_UNDERSCORE=`echo $_version | sed 's/\./_/'`
27351 BOOST_CPPFLAGS="-I$best_path/include/boost-$VERSION_UNDERSCORE"
27352 if test -z "$_AX_BOOST_BASE_boost_lib_path" ; then
27353 for libsubdir in $libsubdirs ; do
27354 if ls "$best_path/$libsubdir/libboost_"* >/dev/null 2>&1 ; then break; fi
27356 BOOST_LDFLAGS="-L$best_path/$libsubdir"
27360 if test -n "$BOOST_ROOT" ; then
27361 for libsubdir in $libsubdirs ; do
27362 if ls "$BOOST_ROOT/stage/$libsubdir/libboost_"* >/dev/null 2>&1 ; then break; fi
27364 if test -d "$BOOST_ROOT" && test -r "$BOOST_ROOT" && test -d "$BOOST_ROOT/stage/$libsubdir" && test -r "$BOOST_ROOT/stage/$libsubdir"; then
27365 version_dir=`expr //$BOOST_ROOT : '.*/\(.*\)'`
27366 stage_version=`echo $version_dir | sed 's/boost_//' | sed 's/_/./g'`
27367 stage_version_shorten=`expr $stage_version : '\([0-9]*\.[0-9]*\)'`
27368 V_CHECK=`expr $stage_version_shorten \>\= $_version`
27369 if test "x$V_CHECK" = "x1" && test -z "$_AX_BOOST_BASE_boost_lib_path" ; then
27370 { $as_echo "$as_me:${as_lineno-$LINENO}: We will use a staged boost library from $BOOST_ROOT" >&5
27371 $as_echo "$as_me: We will use a staged boost library from $BOOST_ROOT" >&6;}
27372 BOOST_CPPFLAGS="-I$BOOST_ROOT"
27373 BOOST_LDFLAGS="-L$BOOST_ROOT/stage/$libsubdir"
27379 CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
27381 LDFLAGS="$LDFLAGS $BOOST_LDFLAGS"
27385 ac_cpp='$CXXCPP $CPPFLAGS'
27386 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27387 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27388 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27391 /* end confdefs.h. */
27393 #include <boost/version.hpp>
27399 (void) ((void)sizeof(char[1 - 2*!!((BOOST_VERSION) < ($WANT_BOOST_VERSION))]));
27405 if ac_fn_cxx_try_compile "$LINENO"; then :
27407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27408 $as_echo "yes" >&6; }
27413 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27415 ac_cpp='$CPP $CPPFLAGS'
27416 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27417 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27418 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27422 if test "x$succeeded" != "xyes" ; then
27423 if test "x$_version" = "x0" ; then
27424 { $as_echo "$as_me:${as_lineno-$LINENO}: We could not detect the boost libraries (version 1.58 or higher). If you have a staged boost library (still not installed) please specify \$BOOST_ROOT in your environment and do not give a PATH to --with-boost option. If you are sure you have boost installed, then check your version number looking in <boost/version.hpp>. See http://randspringer.de/boost for more documentation." >&5
27425 $as_echo "$as_me: We could not detect the boost libraries (version 1.58 or higher). If you have a staged boost library (still not installed) please specify \$BOOST_ROOT in your environment and do not give a PATH to --with-boost option. If you are sure you have boost installed, then check your version number looking in <boost/version.hpp>. See http://randspringer.de/boost for more documentation." >&6;}
27427 { $as_echo "$as_me:${as_lineno-$LINENO}: Your boost libraries seems to old (version $_version)." >&5
27428 $as_echo "$as_me: Your boost libraries seems to old (version $_version)." >&6;}
27430 # execute ACTION-IF-NOT-FOUND (if present):
27432 if test "$do_svnxx_test_build" = "yes"; then
27433 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Tests for the C++ bindings require Boost and Boost.Test" >&5
27434 $as_echo "$as_me: WARNING: Tests for the C++ bindings require Boost and Boost.Test" >&2;}
27435 do_svnxx_test_build=no
27440 $as_echo "#define HAVE_BOOST /**/" >>confdefs.h
27442 # execute ACTION-IF-FOUND (if present):
27444 if test "$do_svnxx_test_build" = "yes"; then
27447 # Check whether --with-boost-unit-test-framework was given.
27448 if test "${with_boost_unit_test_framework+set}" = set; then :
27449 withval=$with_boost_unit_test_framework;
27450 if test "$withval" = "no"; then
27452 elif test "$withval" = "yes"; then
27454 ax_boost_user_unit_test_framework_lib=""
27457 ax_boost_user_unit_test_framework_lib="$withval"
27466 if test "x$want_boost" = "xyes"; then
27468 CPPFLAGS_SAVED="$CPPFLAGS"
27469 CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
27472 LDFLAGS_SAVED="$LDFLAGS"
27473 LDFLAGS="$LDFLAGS $BOOST_LDFLAGS"
27476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the Boost::Unit_Test_Framework library is available" >&5
27477 $as_echo_n "checking whether the Boost::Unit_Test_Framework library is available... " >&6; }
27478 if ${ax_cv_boost_unit_test_framework+:} false; then :
27479 $as_echo_n "(cached) " >&6
27482 ac_cpp='$CXXCPP $CPPFLAGS'
27483 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27484 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27485 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27488 /* end confdefs.h. */
27489 #include <boost/test/unit_test.hpp>
27493 using boost::unit_test::test_suite;
27494 test_suite* test= BOOST_TEST_SUITE( "Unit test example 1" ); if (test == NULL) { return 1; } else { return 0; }
27499 if ac_fn_cxx_try_compile "$LINENO"; then :
27500 ax_cv_boost_unit_test_framework=yes
27502 ax_cv_boost_unit_test_framework=no
27504 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27506 ac_cpp='$CPP $CPPFLAGS'
27507 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27508 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27509 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_boost_unit_test_framework" >&5
27514 $as_echo "$ax_cv_boost_unit_test_framework" >&6; }
27515 if test "x$ax_cv_boost_unit_test_framework" = "xyes"; then
27517 $as_echo "#define HAVE_BOOST_UNIT_TEST_FRAMEWORK /**/" >>confdefs.h
27519 BOOSTLIBDIR=`echo $BOOST_LDFLAGS | sed -e 's/[^\/]*//'`
27521 if test "x$ax_boost_user_unit_test_framework_lib" = "x"; then
27522 saved_ldflags="${LDFLAGS}"
27523 for monitor_library in `ls $BOOSTLIBDIR/libboost_unit_test_framework*.so* $BOOSTLIBDIR/libboost_unit_test_framework*.dylib* $BOOSTLIBDIR/libboost_unit_test_framework*.a* 2>/dev/null` ; do
27524 if test -r $monitor_library ; then
27525 libextension=`echo $monitor_library | sed 's,.*/,,' | sed -e 's;^lib\(boost_unit_test_framework.*\)\.so.*$;\1;' -e 's;^lib\(boost_unit_test_framework.*\)\.dylib.*$;\1;' -e 's;^lib\(boost_unit_test_framework.*\)\.a.*$;\1;'`
27526 ax_lib=${libextension}
27527 link_unit_test_framework="yes"
27529 link_unit_test_framework="no"
27532 if test "x$link_unit_test_framework" = "xyes"; then
27533 BOOST_UNIT_TEST_FRAMEWORK_LIB="-l$ax_lib"
27538 if test "x$link_unit_test_framework" != "xyes"; then
27539 for libextension in `ls $BOOSTLIBDIR/boost_unit_test_framework*.dll* $BOOSTLIBDIR/boost_unit_test_framework*.a* 2>/dev/null | sed 's,.*/,,' | sed -e 's;^\(boost_unit_test_framework.*\)\.dll.*$;\1;' -e 's;^\(boost_unit_test_framework.*\)\.a.*$;\1;'` ; do
27540 ax_lib=${libextension}
27541 as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_exit" | $as_tr_sh`
27542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exit in -l$ax_lib" >&5
27543 $as_echo_n "checking for exit in -l$ax_lib... " >&6; }
27544 if eval \${$as_ac_Lib+:} false; then :
27545 $as_echo_n "(cached) " >&6
27547 ac_check_lib_save_LIBS=$LIBS
27548 LIBS="-l$ax_lib $LIBS"
27549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27550 /* end confdefs.h. */
27552 /* Override any GCC internal prototype to avoid an error.
27553 Use char because int might match the return type of a GCC
27554 builtin and then its argument prototype would still apply. */
27567 if ac_fn_c_try_link "$LINENO"; then :
27568 eval "$as_ac_Lib=yes"
27570 eval "$as_ac_Lib=no"
27572 rm -f core conftest.err conftest.$ac_objext \
27573 conftest$ac_exeext conftest.$ac_ext
27574 LIBS=$ac_check_lib_save_LIBS
27576 eval ac_res=\$$as_ac_Lib
27577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
27578 $as_echo "$ac_res" >&6; }
27579 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
27580 BOOST_UNIT_TEST_FRAMEWORK_LIB="-l$ax_lib"; link_unit_test_framework="yes"; break
27582 link_unit_test_framework="no"
27588 link_unit_test_framework="no"
27589 saved_ldflags="${LDFLAGS}"
27590 for ax_lib in boost_unit_test_framework-$ax_boost_user_unit_test_framework_lib $ax_boost_user_unit_test_framework_lib ; do
27591 if test "x$link_unit_test_framework" = "xyes"; then
27594 for unittest_library in `ls $BOOSTLIBDIR/lib${ax_lib}.so* $BOOSTLIBDIR/lib${ax_lib}.a* 2>/dev/null` ; do
27595 if test -r $unittest_library ; then
27596 libextension=`echo $unittest_library | sed 's,.*/,,' | sed -e 's;^lib\(boost_unit_test_framework.*\)\.so.*$;\1;' -e 's;^lib\(boost_unit_test_framework.*\)\.a*$;\1;'`
27597 ax_lib=${libextension}
27598 link_unit_test_framework="yes"
27600 link_unit_test_framework="no"
27603 if test "x$link_unit_test_framework" = "xyes"; then
27604 BOOST_UNIT_TEST_FRAMEWORK_LIB="-l$ax_lib"
27611 if test "x$ax_lib" = "x"; then
27612 as_fn_error $? "Could not find a version of the library!" "$LINENO" 5
27614 if test "x$link_unit_test_framework" != "xyes"; then
27615 as_fn_error $? "Could not link against $ax_lib !" "$LINENO" 5
27619 CPPFLAGS="$CPPFLAGS_SAVED"
27620 LDFLAGS="$LDFLAGS_SAVED"
27627 CPPFLAGS="$CPPFLAGS_SAVED"
27628 LDFLAGS="$LDFLAGS_SAVED"
27636 if test "$do_svnxx_test_build" = "yes"; then
27637 if test "$want_boost" != "yes"; then
27638 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Tests for the C++ bindings require Boost and Boost.Test" >&5
27639 $as_echo "$as_me: WARNING: Tests for the C++ bindings require Boost and Boost.Test" >&2;}
27640 do_svnxx_test_build=no
27641 SVN_BUILD_SVNXX_TESTS=false
27643 if test "$do_svnxx_build" != "yes"; then
27644 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Enabling the C++ bindings because their tests are enabled" >&5
27645 $as_echo "$as_me: WARNING: Enabling the C++ bindings because their tests are enabled" >&2;}
27648 SVN_BUILD_SVNXX_TESTS=true
27651 SVN_BUILD_SVNXX_TESTS=false
27654 if test "$do_svnxx_build" = "yes"; then
27655 SVN_BUILD_SVNXX=true
27657 SVN_BUILD_SVNXX=false
27663 # ==== JavaHL ================================================================
27666 # Check whether --enable-javahl was given.
27667 if test "${enable_javahl+set}" = set; then :
27668 enableval=$enable_javahl; if test "$enableval" = "yes" ; then
27669 do_javahl_build="yes"
27676 INSTALL_EXTRA_JAVAHL_LIB=""
27678 JAVAHL_TESTS_TARGET=""
27679 JAVAHL_COMPAT_TESTS_TARGET=""
27681 if test "$do_javahl_build" = "yes"; then
27682 if test "$JDK_SUITABLE" = "no"; then
27683 as_fn_error $? "Cannot compile JavaHL without a suitable JDK.
27684 Please specify a suitable JDK using the --with-jdk option." "$LINENO" 5
27687 JAVAHL_OBJDIR='$(libsvnjavahl_PATH)/.libs'
27690 if test "$os_arch" = "Darwin"; then
27691 INSTALL_EXTRA_JAVAHL_LIB='ln -sf $(libdir)/libsvnjavahl-1.dylib $(libdir)/libsvnjavahl-1.jnilib'
27692 FIX_JAVAHL_LIB="ln -sf libsvnjavahl-1.dylib $JAVAHL_OBJDIR/libsvnjavahl-1.jnilib"
27694 # This segment (and the rest of r10800) is very likely unnecessary
27695 # with libtool 1.5, which automatically adds libstdc++ as a
27696 # dependency to the C++ libraries it builds. So at some future time
27697 # when autogen.sh requires libtool 1.5 or higher, we can get rid of
27699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for additional flags to link C++ libraries" >&5
27700 $as_echo_n "checking for additional flags to link C++ libraries... " >&6; }
27701 if test "x$ac_compiler_gnu" = "xyes"; then
27704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
27705 $as_echo "none needed" >&6; }
27708 LT_CXX_LIBADD="-lstdc++"
27709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LT_CXX_LIBADD" >&5
27710 $as_echo "$LT_CXX_LIBADD" >&6; }
27714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
27715 $as_echo "none needed" >&6; }
27724 # Check whether --with-junit was given.
27725 if test "${with_junit+set}" = set; then :
27726 withval=$with_junit;
27727 if test "$withval" != "no"; then
27728 if test -n "$JAVA_CLASSPATH"; then
27729 JAVA_CLASSPATH="$withval:$JAVA_CLASSPATH"
27731 JAVA_CLASSPATH="$withval"
27733 JAVAHL_TESTS_TARGET="javahl-tests"
27734 JAVAHL_COMPAT_TESTS_TARGET="javahl-compat-tests"
27743 # ==== Miscellaneous bits ====================================================
27745 for ac_header in stdbool.h stdint.h
27747 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
27748 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
27749 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
27750 cat >>confdefs.h <<_ACEOF
27751 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
27759 # Strip '-no-cpp-precomp' from CPPFLAGS for the clang compiler
27760 ### I think we get this flag from APR, so the fix probably belongs there
27761 if test "$CC" = "clang"; then
27763 CPPFLAGS=`echo "$CPPFLAGS" | $SED -e 's/-no-cpp-precomp //'`
27768 cat >>confdefs.h <<_ACEOF
27769 #define SVN_PATH_LOCAL_SEPARATOR '/'
27774 cat >>confdefs.h <<_ACEOF
27775 #define SVN_NULL_DEVICE_NAME "/dev/null"
27779 DEFAULT_FS_TYPE="fsfs"
27781 cat >>confdefs.h <<_ACEOF
27782 #define DEFAULT_FS_TYPE "$DEFAULT_FS_TYPE"
27786 DEFAULT_HTTP_LIBRARY="serf"
27788 cat >>confdefs.h <<_ACEOF
27789 #define DEFAULT_HTTP_LIBRARY "$DEFAULT_HTTP_LIBRARY"
27793 # BSD/OS (BSDi) needs to use a different include syntax in Makefile
27794 INCLUDE_OUTPUTS="include \$(top_srcdir)/build-outputs.mk"
27797 # Check whether they've installed GNU make
27798 if ! make --version > /dev/null 2>&1; then
27800 INCLUDE_OUTPUTS=".include \"\$(top_srcdir)/build-outputs.mk\""
27806 # ==== Detection complete - output and run config.status =====================
27808 ac_config_headers="$ac_config_headers subversion/svn_private_config.h.tmp:subversion/svn_private_config.h.in"
27810 ac_config_commands="$ac_config_commands svn_private_config.h.tmp"
27812 ac_config_files="$ac_config_files Makefile"
27815 # Create pkg-config .pc files from .pc.in files
27816 for pc_in_file in "${abs_srcdir}"/subversion/libsvn_*/*.pc.in; do
27817 pc_file=${pc_in_file#${abs_srcdir}/}
27818 pc_file=${pc_file%.in}
27819 ac_config_files="$ac_config_files ${pc_file}"
27824 SVN_CONFIG_SCRIPT_FILES="$SVN_CONFIG_SCRIPT_FILES tools/backup/hot-backup.py"
27825 ac_config_files="$ac_config_files tools/backup/hot-backup.py"
27828 SVN_CONFIG_SCRIPT_FILES="$SVN_CONFIG_SCRIPT_FILES tools/hook-scripts/commit-access-control.pl"
27829 ac_config_files="$ac_config_files tools/hook-scripts/commit-access-control.pl"
27832 SVN_CONFIG_SCRIPT_FILES="$SVN_CONFIG_SCRIPT_FILES subversion/bindings/swig/perl/native/Makefile.PL"
27833 ac_config_files="$ac_config_files subversion/bindings/swig/perl/native/Makefile.PL"
27835 if test -e packages/solaris/pkginfo.in; then
27837 SVN_CONFIG_SCRIPT_FILES="$SVN_CONFIG_SCRIPT_FILES packages/solaris/pkginfo"
27838 ac_config_files="$ac_config_files packages/solaris/pkginfo"
27843 # Ensure that SWIG is checked after reconfiguration.
27844 rm -f .swig_checked .swig_pl_checked .swig_py_checked .swig_rb_checked
27847 cat >>confdefs.h <<_ACEOF
27848 #define SVN_BUILD_HOST "${host}"
27853 cat >>confdefs.h <<_ACEOF
27854 #define SVN_BUILD_TARGET "${target}"
27858 cat >confcache <<\_ACEOF
27859 # This file is a shell script that caches the results of configure
27860 # tests run on this system so they can be shared between configure
27861 # scripts and configure runs, see configure's option --config-cache.
27862 # It is not useful on other systems. If it contains results you don't
27863 # want to keep, you may remove or edit it.
27865 # config.status only pays attention to the cache file if you give it
27866 # the --recheck option to rerun configure.
27868 # `ac_cv_env_foo' variables (set or unset) will be overridden when
27869 # loading this file, other *unset* `ac_cv_foo' will be assigned the
27870 # following values.
27874 # The following way of writing the cache mishandles newlines in values,
27875 # but we know of no workaround that is simple, portable, and efficient.
27876 # So, we kill variables containing newlines.
27877 # Ultrix sh set writes to stderr and can't be redirected directly,
27878 # and sets the high bit in the cache file unless we assign to the vars.
27880 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
27881 eval ac_val=\$$ac_var
27885 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
27886 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
27889 _ | IFS | as_nl) ;; #(
27890 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
27891 *) { eval $ac_var=; unset $ac_var;} ;;
27897 case $as_nl`(ac_space=' '; set) 2>&1` in #(
27898 *${as_nl}ac_space=\ *)
27899 # `set' does not quote correctly, so add quotes: double-quote
27900 # substitution turns \\\\ into \\, and sed turns \\ into \.
27903 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
27906 # `set' quotes correctly as required by POSIX, so do not add quotes.
27907 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
27916 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
27918 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
27920 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
27921 if test -w "$cache_file"; then
27922 if test "x$cache_file" != "x/dev/null"; then
27923 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
27924 $as_echo "$as_me: updating cache $cache_file" >&6;}
27925 if test ! -f "$cache_file" || test -h "$cache_file"; then
27926 cat confcache >"$cache_file"
27928 case $cache_file in #(
27930 mv -f confcache "$cache_file"$$ &&
27931 mv -f "$cache_file"$$ "$cache_file" ;; #(
27933 mv -f confcache "$cache_file" ;;
27938 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
27939 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
27944 test "x$prefix" = xNONE && prefix=$ac_default_prefix
27945 # Let make expand exec_prefix.
27946 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
27948 DEFS=-DHAVE_CONFIG_H
27953 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
27954 # 1. Remove the extension, and $U if already installed.
27955 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
27956 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
27957 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
27958 # will be set to the directory where LIBOBJS objects are built.
27959 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
27960 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
27962 LIBOBJS=$ac_libobjs
27964 LTLIBOBJS=$ac_ltlibobjs
27968 : "${CONFIG_STATUS=./config.status}"
27970 ac_clean_files_save=$ac_clean_files
27971 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
27972 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
27973 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
27975 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
27977 # Generated by $as_me.
27978 # Run this file to recreate the current configuration.
27979 # Compiler output produced by configure, useful for debugging
27980 # configure, is in config.log if it exists.
27983 ac_cs_recheck=false
27986 SHELL=\${CONFIG_SHELL-$SHELL}
27989 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
27990 ## -------------------- ##
27991 ## M4sh Initialization. ##
27992 ## -------------------- ##
27994 # Be more Bourne compatible
27995 DUALCASE=1; export DUALCASE # for MKS sh
27996 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
27999 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
28000 # is contrary to our usage. Disable this feature.
28001 alias -g '${1+"$@"}'='"$@"'
28002 setopt NO_GLOB_SUBST
28004 case `(set -o) 2>/dev/null` in #(
28016 # Printing a long string crashes Solaris 7 /usr/bin/printf.
28017 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
28018 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
28019 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
28020 # Prefer a ksh shell builtin over an external printf program on Solaris,
28021 # but without wasting forks for bash or zsh.
28022 if test -z "$BASH_VERSION$ZSH_VERSION" \
28023 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
28024 as_echo='print -r --'
28025 as_echo_n='print -rn --'
28026 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
28027 as_echo='printf %s\n'
28028 as_echo_n='printf %s'
28030 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
28031 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
28032 as_echo_n='/usr/ucb/echo -n'
28034 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
28035 as_echo_n_body='eval
28039 expr "X$arg" : "X\\(.*\\)$as_nl";
28040 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
28042 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
28044 export as_echo_n_body
28045 as_echo_n='sh -c $as_echo_n_body as_echo'
28047 export as_echo_body
28048 as_echo='sh -c $as_echo_body as_echo'
28051 # The user is always right.
28052 if test "${PATH_SEPARATOR+set}" != set; then
28054 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
28055 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
28062 # We need space, tab and new line, in precisely that order. Quoting is
28063 # there to prevent editors from complaining about space-tab.
28064 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
28065 # splitting by setting IFS to empty value.)
28068 # Find who we are. Look in the path if we contain no directory separator.
28071 *[\\/]* ) as_myself=$0 ;;
28072 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28073 for as_dir in $PATH
28076 test -z "$as_dir" && as_dir=.
28077 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
28083 # We did not find ourselves, most probably we were run as `sh COMMAND'
28084 # in which case we are not to be found in the path.
28085 if test "x$as_myself" = x; then
28088 if test ! -f "$as_myself"; then
28089 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
28093 # Unset variables that we do not need and which cause bugs (e.g. in
28094 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
28095 # suppresses any "Segmentation fault" message there. '((' could
28096 # trigger a bug in pdksh 5.2.14.
28097 for as_var in BASH_ENV ENV MAIL MAILPATH
28098 do eval test x\${$as_var+set} = xset \
28099 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
28112 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
28115 # as_fn_error STATUS ERROR [LINENO LOG_FD]
28116 # ----------------------------------------
28117 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
28118 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
28119 # script with STATUS, using 1 if that was 0.
28122 as_status=$1; test $as_status -eq 0 && as_status=1
28124 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
28125 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
28127 $as_echo "$as_me: error: $2" >&2
28128 as_fn_exit $as_status
28132 # as_fn_set_status STATUS
28133 # -----------------------
28134 # Set $? to STATUS, without forking.
28135 as_fn_set_status ()
28138 } # as_fn_set_status
28140 # as_fn_exit STATUS
28141 # -----------------
28142 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
28146 as_fn_set_status $1
28152 # Portably unset VAR.
28155 { eval $1=; unset $1;}
28157 as_unset=as_fn_unset
28158 # as_fn_append VAR VALUE
28159 # ----------------------
28160 # Append the text in VALUE to the end of the definition contained in VAR. Take
28161 # advantage of any shell optimizations that allow amortized linear growth over
28162 # repeated appends, instead of the typical quadratic growth present in naive
28164 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
28165 eval 'as_fn_append ()
28176 # as_fn_arith ARG...
28177 # ------------------
28178 # Perform arithmetic evaluation on the ARGs, and store the result in the
28179 # global $as_val. Take advantage of shells that can avoid forks. The arguments
28180 # must be portable across $(()) and expr.
28181 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
28182 eval 'as_fn_arith ()
28189 as_val=`expr "$@" || test $? -eq 1`
28194 if expr a : '\(a\)' >/dev/null 2>&1 &&
28195 test "X`expr 00001 : '.*\(...\)'`" = X001; then
28201 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
28202 as_basename=basename
28207 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
28213 as_me=`$as_basename -- "$0" ||
28214 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
28215 X"$0" : 'X\(//\)$' \| \
28216 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
28218 sed '/^.*\/\([^/][^/]*\)\/*$/{
28232 # Avoid depending upon Character Ranges.
28233 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
28234 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
28235 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
28236 as_cr_digits='0123456789'
28237 as_cr_alnum=$as_cr_Letters$as_cr_digits
28239 ECHO_C= ECHO_N= ECHO_T=
28240 case `echo -n x` in #(((((
28242 case `echo 'xy\c'` in
28243 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
28245 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
28252 rm -f conf$$ conf$$.exe conf$$.file
28253 if test -d conf$$.dir; then
28254 rm -f conf$$.dir/conf$$.file
28257 mkdir conf$$.dir 2>/dev/null
28259 if (echo >conf$$.file) 2>/dev/null; then
28260 if ln -s conf$$.file conf$$ 2>/dev/null; then
28262 # ... but there are two gotchas:
28263 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
28264 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
28265 # In both cases, we have to default to `cp -pR'.
28266 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
28268 elif ln conf$$.file conf$$ 2>/dev/null; then
28276 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
28277 rmdir conf$$.dir 2>/dev/null
28282 # Create "$as_dir" as a directory, including parents if necessary.
28287 -*) as_dir=./$as_dir;;
28289 test -d "$as_dir" || eval $as_mkdir_p || {
28293 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
28294 *) as_qdir=$as_dir;;
28296 as_dirs="'$as_qdir' $as_dirs"
28297 as_dir=`$as_dirname -- "$as_dir" ||
28298 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28299 X"$as_dir" : 'X\(//\)[^/]' \| \
28300 X"$as_dir" : 'X\(//\)$' \| \
28301 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
28302 $as_echo X"$as_dir" |
28303 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28307 /^X\(\/\/\)[^/].*/{
28320 test -d "$as_dir" && break
28322 test -z "$as_dirs" || eval "mkdir $as_dirs"
28323 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
28327 if mkdir -p . 2>/dev/null; then
28328 as_mkdir_p='mkdir -p "$as_dir"'
28330 test -d ./-p && rmdir ./-p
28335 # as_fn_executable_p FILE
28336 # -----------------------
28337 # Test if FILE is an executable regular file.
28338 as_fn_executable_p ()
28340 test -f "$1" && test -x "$1"
28341 } # as_fn_executable_p
28342 as_test_x='test -x'
28343 as_executable_p=as_fn_executable_p
28345 # Sed expression to map a string onto a valid CPP name.
28346 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
28348 # Sed expression to map a string onto a valid variable name.
28349 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
28353 ## ----------------------------------- ##
28354 ## Main body of $CONFIG_STATUS script. ##
28355 ## ----------------------------------- ##
28357 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
28359 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28360 # Save the log message, to keep $0 and so on meaningful, and to
28361 # report actual input values of CONFIG_FILES etc. instead of their
28362 # values after options handling.
28364 This file was extended by subversion $as_me 1.14.0, which was
28365 generated by GNU Autoconf 2.69. Invocation command line was
28367 CONFIG_FILES = $CONFIG_FILES
28368 CONFIG_HEADERS = $CONFIG_HEADERS
28369 CONFIG_LINKS = $CONFIG_LINKS
28370 CONFIG_COMMANDS = $CONFIG_COMMANDS
28373 on `(hostname || uname -n) 2>/dev/null | sed 1q`
28378 case $ac_config_files in *"
28379 "*) set x $ac_config_files; shift; ac_config_files=$*;;
28382 case $ac_config_headers in *"
28383 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
28387 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28388 # Files that config.status was made for.
28389 config_files="$ac_config_files"
28390 config_headers="$ac_config_headers"
28391 config_commands="$ac_config_commands"
28395 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28397 \`$as_me' instantiates files and other configuration actions
28398 from templates according to the current configuration. Unless the files
28399 and actions are specified as TAGs, all are instantiated by default.
28401 Usage: $0 [OPTION]... [TAG]...
28403 -h, --help print this help, then exit
28404 -V, --version print version number and configuration settings, then exit
28405 --config print configuration, then exit
28406 -q, --quiet, --silent
28407 do not print progress messages
28408 -d, --debug don't remove temporary files
28409 --recheck update $as_me by reconfiguring in the same conditions
28410 --file=FILE[:TEMPLATE]
28411 instantiate the configuration file FILE
28412 --header=FILE[:TEMPLATE]
28413 instantiate the configuration header FILE
28415 Configuration files:
28418 Configuration headers:
28421 Configuration commands:
28424 Report bugs to <http://subversion.apache.org/>."
28427 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28428 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
28430 subversion config.status 1.14.0
28431 configured by $0, generated by GNU Autoconf 2.69,
28432 with options \\"\$ac_cs_config\\"
28434 Copyright (C) 2012 Free Software Foundation, Inc.
28435 This config.status script is free software; the Free Software Foundation
28436 gives unlimited permission to copy, distribute and modify it."
28442 test -n "\$AWK" || AWK=awk
28445 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28446 # The default lists apply if the user does not specify any file.
28452 ac_option=`expr "X$1" : 'X\([^=]*\)='`
28453 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
28457 ac_option=`expr "X$1" : 'X\([^=]*\)='`
28469 # Handling of the options.
28470 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
28472 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
28473 $as_echo "$ac_cs_version"; exit ;;
28474 --config | --confi | --conf | --con | --co | --c )
28475 $as_echo "$ac_cs_config"; exit ;;
28476 --debug | --debu | --deb | --de | --d | -d )
28478 --file | --fil | --fi | --f )
28481 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
28482 '') as_fn_error $? "missing file argument" ;;
28484 as_fn_append CONFIG_FILES " '$ac_optarg'"
28485 ac_need_defaults=false;;
28486 --header | --heade | --head | --hea )
28489 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
28491 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
28492 ac_need_defaults=false;;
28494 # Conflict between --help and --header
28495 as_fn_error $? "ambiguous option: \`$1'
28496 Try \`$0 --help' for more information.";;
28497 --help | --hel | -h )
28498 $as_echo "$ac_cs_usage"; exit ;;
28499 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
28500 | -silent | --silent | --silen | --sile | --sil | --si | --s)
28503 # This is an error.
28504 -*) as_fn_error $? "unrecognized option: \`$1'
28505 Try \`$0 --help' for more information." ;;
28507 *) as_fn_append ac_config_targets " $1"
28508 ac_need_defaults=false ;;
28514 ac_configure_extra_args=
28516 if $ac_cs_silent; then
28518 ac_configure_extra_args="$ac_configure_extra_args --silent"
28522 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28523 if \$ac_cs_recheck; then
28524 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
28526 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
28527 CONFIG_SHELL='$SHELL'
28528 export CONFIG_SHELL
28533 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28537 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
28538 ## Running $as_me. ##
28544 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28550 # The HP-UX ksh and POSIX shell print the target directory to stdout
28551 # if CDPATH is set.
28552 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
28554 sed_quote_subst='$sed_quote_subst'
28555 double_quote_subst='$double_quote_subst'
28556 delay_variable_subst='$delay_variable_subst'
28557 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
28558 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
28559 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
28560 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
28561 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
28562 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
28563 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
28564 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
28565 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
28566 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
28567 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
28568 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
28569 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
28570 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
28571 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
28572 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
28573 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
28574 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
28575 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
28576 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
28577 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
28578 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
28579 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
28580 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
28581 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
28582 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
28583 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
28584 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
28585 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
28586 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
28587 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
28588 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
28589 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
28590 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
28591 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
28592 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
28593 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
28594 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
28595 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
28596 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
28597 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
28598 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
28599 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
28600 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
28601 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
28602 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
28603 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
28604 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
28605 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
28606 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
28607 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
28608 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
28609 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
28610 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
28611 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
28612 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
28613 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
28614 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
28615 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
28616 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
28617 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
28618 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
28619 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
28620 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
28621 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
28622 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
28623 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
28624 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
28625 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
28626 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
28627 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
28628 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
28629 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
28630 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
28631 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
28632 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
28633 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
28634 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
28635 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
28636 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
28637 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
28638 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
28639 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
28640 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
28641 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
28642 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
28643 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
28644 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
28645 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
28646 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
28647 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
28648 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
28649 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
28650 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
28651 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
28652 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
28653 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
28654 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
28655 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
28656 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
28657 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
28658 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
28659 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
28660 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
28661 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
28662 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
28663 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
28664 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
28665 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
28666 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
28667 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
28668 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
28669 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
28670 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
28671 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
28672 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
28673 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
28674 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
28675 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
28676 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
28677 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
28678 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
28679 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
28680 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
28681 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
28682 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
28683 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
28684 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
28685 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
28686 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
28687 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
28688 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
28689 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
28690 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
28691 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
28692 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
28693 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
28694 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
28695 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
28696 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
28697 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
28698 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
28699 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
28700 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
28701 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
28702 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
28703 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
28704 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
28705 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
28706 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
28707 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
28708 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
28709 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
28710 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
28711 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
28712 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
28713 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
28714 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
28715 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
28716 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
28717 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
28718 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
28719 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
28720 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
28721 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
28722 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
28723 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
28724 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
28725 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
28726 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
28727 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
28728 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
28729 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
28730 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
28731 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
28732 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
28733 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
28734 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
28735 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
28736 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
28737 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
28738 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
28739 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
28740 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
28741 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
28742 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
28743 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
28744 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
28745 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
28748 LTCFLAGS='$LTCFLAGS'
28749 compiler='$compiler_DEFAULT'
28751 # A function that is used when there is no print builtin or printf.
28752 func_fallback_echo ()
28754 eval 'cat <<_LTECHO_EOF
28759 # Quote evaled strings.
28774 deplibs_check_method \
28779 sharedlib_from_linklib_cmd \
28782 archiver_list_spec \
28788 lt_cv_sys_global_symbol_pipe \
28789 lt_cv_sys_global_symbol_to_cdecl \
28790 lt_cv_sys_global_symbol_to_import \
28791 lt_cv_sys_global_symbol_to_c_name_address \
28792 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
28793 lt_cv_nm_interface \
28794 nm_file_list_spec \
28795 lt_cv_truncate_bin \
28796 lt_prog_compiler_no_builtin_flag \
28797 lt_prog_compiler_pic \
28798 lt_prog_compiler_wl \
28799 lt_prog_compiler_static \
28800 lt_cv_prog_compiler_c_o \
28809 export_dynamic_flag_spec \
28810 whole_archive_flag_spec \
28811 compiler_needs_object \
28813 allow_undefined_flag \
28814 no_undefined_flag \
28815 hardcode_libdir_flag_spec \
28816 hardcode_libdir_separator \
28820 variables_saved_for_relink \
28822 library_names_spec \
28824 install_override_mode \
28828 compiler_lib_search_dirs \
28833 compiler_lib_search_path \
28837 lt_prog_compiler_no_builtin_flag_CXX \
28838 lt_prog_compiler_pic_CXX \
28839 lt_prog_compiler_wl_CXX \
28840 lt_prog_compiler_static_CXX \
28841 lt_cv_prog_compiler_c_o_CXX \
28842 export_dynamic_flag_spec_CXX \
28843 whole_archive_flag_spec_CXX \
28844 compiler_needs_object_CXX \
28846 allow_undefined_flag_CXX \
28847 no_undefined_flag_CXX \
28848 hardcode_libdir_flag_spec_CXX \
28849 hardcode_libdir_separator_CXX \
28850 exclude_expsyms_CXX \
28851 include_expsyms_CXX \
28852 file_list_spec_CXX \
28853 compiler_lib_search_dirs_CXX \
28854 predep_objects_CXX \
28855 postdep_objects_CXX \
28858 compiler_lib_search_path_CXX; do
28859 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
28860 *[\\\\\\\`\\"\\\$]*)
28861 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
28864 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
28869 # Double-quote double-evaled strings.
28870 for var in reload_cmds \
28871 old_postinstall_cmds \
28872 old_postuninstall_cmds \
28874 extract_expsyms_cmds \
28875 old_archive_from_new_cmds \
28876 old_archive_from_expsyms_cmds \
28878 archive_expsym_cmds \
28880 module_expsym_cmds \
28881 export_symbols_cmds \
28885 postuninstall_cmds \
28887 sys_lib_search_path_spec \
28888 configure_time_dlsearch_path \
28889 configure_time_lt_sys_library_path \
28891 old_archive_cmds_CXX \
28892 old_archive_from_new_cmds_CXX \
28893 old_archive_from_expsyms_cmds_CXX \
28895 archive_expsym_cmds_CXX \
28897 module_expsym_cmds_CXX \
28898 export_symbols_cmds_CXX \
28900 postlink_cmds_CXX; do
28901 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
28902 *[\\\\\\\`\\"\\\$]*)
28903 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
28906 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
28911 ac_aux_dir='$ac_aux_dir'
28913 # See if we are running on zsh, and set the options that allow our
28914 # commands through without removal of \ escapes INIT.
28915 if test -n "\${ZSH_VERSION+set}"; then
28916 setopt NO_GLOB_SUBST
28930 SVN_DB_HEADER="$SVN_DB_HEADER"
28934 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28936 # Handling of arguments.
28937 for ac_config_target in $ac_config_targets
28939 case $ac_config_target in
28940 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
28941 "subversion/svn_private_config.h.tmp") CONFIG_HEADERS="$CONFIG_HEADERS subversion/svn_private_config.h.tmp:subversion/svn_private_config.h.in" ;;
28942 "svn_private_config.h.tmp") CONFIG_COMMANDS="$CONFIG_COMMANDS svn_private_config.h.tmp" ;;
28943 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
28944 "${pc_file}") CONFIG_FILES="$CONFIG_FILES ${pc_file}" ;;
28945 "tools/backup/hot-backup.py") CONFIG_FILES="$CONFIG_FILES tools/backup/hot-backup.py" ;;
28946 "tools/hook-scripts/commit-access-control.pl") CONFIG_FILES="$CONFIG_FILES tools/hook-scripts/commit-access-control.pl" ;;
28947 "subversion/bindings/swig/perl/native/Makefile.PL") CONFIG_FILES="$CONFIG_FILES subversion/bindings/swig/perl/native/Makefile.PL" ;;
28948 "packages/solaris/pkginfo") CONFIG_FILES="$CONFIG_FILES packages/solaris/pkginfo" ;;
28950 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
28955 # If the user did not use the arguments to specify the items to instantiate,
28956 # then the envvar interface is used. Set only those that are not.
28957 # We use the long form for the default assignment because of an extremely
28958 # bizarre bug on SunOS 4.1.3.
28959 if $ac_need_defaults; then
28960 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
28961 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
28962 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
28965 # Have a temporary directory for convenience. Make it in the build tree
28966 # simply because there is no reason against having it here, and in addition,
28967 # creating and moving files from /tmp can sometimes cause problems.
28968 # Hook for its removal unless debugging.
28969 # Note that there is a small window in which the directory will not be cleaned:
28970 # after its creation but before its name has been assigned to `$tmp'.
28974 trap 'exit_status=$?
28975 : "${ac_tmp:=$tmp}"
28976 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
28978 trap 'as_fn_exit 1' 1 2 13 15
28980 # Create a (secure) tmp directory for tmp files.
28983 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
28987 tmp=./conf$$-$RANDOM
28988 (umask 077 && mkdir "$tmp")
28989 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
28992 # Set up the scripts for CONFIG_FILES section.
28993 # No need to generate them if there are no CONFIG_FILES.
28994 # This happens for instance with `./config.status config.h'.
28995 if test -n "$CONFIG_FILES"; then
28998 ac_cr=`echo X | tr X '\015'`
28999 # On cygwin, bash can eat \r inside `` if the user requested igncr.
29000 # But we know of no other shell where ac_cr would be empty at this
29001 # point, so we can use a bashism as a fallback.
29002 if test "x$ac_cr" = x; then
29003 eval ac_cr=\$\'\\r\'
29005 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
29006 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
29009 ac_cs_awk_cr=$ac_cr
29012 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
29017 echo "cat >conf$$subs.awk <<_ACEOF" &&
29018 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
29020 } >conf$$subs.sh ||
29021 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
29022 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
29024 for ac_last_try in false false false false false :; do
29025 . ./conf$$subs.sh ||
29026 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
29028 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
29029 if test $ac_delim_n = $ac_delim_num; then
29031 elif $ac_last_try; then
29032 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
29034 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
29037 rm -f conf$$subs.sh
29039 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29040 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
29044 s/^/S["/; s/!.*/"]=/
29054 s/\(.\{148\}\)..*/\1/
29056 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
29061 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
29068 s/\(.\{148\}\)..*/\1/
29070 s/["\\]/\\&/g; s/^/"/; s/$/"/
29074 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
29079 ' <conf$$subs.awk | sed '
29084 ' >>$CONFIG_STATUS || ac_write_fail=1
29085 rm -f conf$$subs.awk
29086 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29088 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
29089 for (key in S) S_is_set[key] = 1
29095 nfields = split(line, field, "@")
29097 len = length(field[1])
29098 for (i = 2; i < nfields; i++) {
29100 keylen = length(key)
29101 if (S_is_set[key]) {
29103 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
29104 len += length(value) + length(field[++i])
29115 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29116 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
29117 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
29120 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
29121 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
29124 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
29125 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
29126 # trailing colons and then remove the whole line if VPATH becomes empty
29127 # (actually we leave an empty line to preserve line numbers).
29128 if test "x$srcdir" = x.; then
29129 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
29147 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29148 fi # test -n "$CONFIG_FILES"
29150 # Set up the scripts for CONFIG_HEADERS section.
29151 # No need to generate them if there are no CONFIG_HEADERS.
29152 # This happens for instance with `./config.status Makefile'.
29153 if test -n "$CONFIG_HEADERS"; then
29154 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
29158 # Transform confdefs.h into an awk script `defines.awk', embedded as
29159 # here-document in config.status, that substitutes the proper values into
29160 # config.h.in to produce config.h.
29162 # Create a delimiter string that does not exist in confdefs.h, to ease
29163 # handling of long lines.
29165 for ac_last_try in false false :; do
29166 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
29167 if test -z "$ac_tt"; then
29169 elif $ac_last_try; then
29170 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
29172 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
29176 # For the awk script, D is an array of macro values keyed by name,
29177 # likewise P contains macro parameters if any. Preserve backslash
29178 # newline sequences.
29180 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
29182 s/.\{148\}/&'"$ac_delim"'/g
29185 s/^[ ]*#[ ]*define[ ][ ]*/ /
29192 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
29194 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
29198 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
29199 D["\1"]=" \3\\\\\\n"\\/p
29201 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
29206 s/.\{148\}/&'"$ac_delim"'/g
29211 s/["\\]/\\&/g; s/^/"/; s/$/"/p
29214 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
29216 ' <confdefs.h | sed '
29217 s/'"$ac_delim"'/"\\\
29218 "/g' >>$CONFIG_STATUS || ac_write_fail=1
29220 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29221 for (key in D) D_is_set[key] = 1
29224 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
29226 split(line, arg, " ")
29227 if (arg[1] == "#") {
29231 defundef = substr(arg[1], 2)
29234 split(mac1, mac2, "(") #)
29236 prefix = substr(line, 1, index(line, defundef) - 1)
29237 if (D_is_set[macro]) {
29238 # Preserve the white space surrounding the "#".
29239 print prefix "define", macro P[macro] D[macro]
29242 # Replace #undef with comments. This is necessary, for example,
29243 # in the case of _POSIX_SOURCE, which is predefined and required
29244 # on some systems where configure will not decide to define it.
29245 if (defundef == "undef") {
29246 print "/*", prefix defundef, macro, "*/"
29254 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29255 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
29256 fi # test -n "$CONFIG_HEADERS"
29259 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
29264 :[FHLC]) ac_mode=$ac_tag; continue;;
29266 case $ac_mode$ac_tag in
29268 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
29269 :[FH]-) ac_tag=-:-;;
29270 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
29287 -) ac_f="$ac_tmp/stdin";;
29288 *) # Look for the file first in the build tree, then in the source tree
29289 # (if the path is not absolute). The absolute path cannot be DOS-style,
29290 # because $ac_f cannot contain `:'.
29294 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
29296 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
29298 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
29299 as_fn_append ac_file_inputs " '$ac_f'"
29302 # Let's still pretend it is `configure' which instantiates (i.e., don't
29303 # use $as_me), people would be surprised to read:
29304 # /* config.h. Generated by config.status. */
29305 configure_input='Generated from '`
29306 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
29308 if test x"$ac_file" != x-; then
29309 configure_input="$ac_file. $configure_input"
29310 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
29311 $as_echo "$as_me: creating $ac_file" >&6;}
29313 # Neutralize special characters interpreted by sed in replacement strings.
29314 case $configure_input in #(
29315 *\&* | *\|* | *\\* )
29316 ac_sed_conf_input=`$as_echo "$configure_input" |
29317 sed 's/[\\\\&|]/\\\\&/g'`;; #(
29318 *) ac_sed_conf_input=$configure_input;;
29322 *:-:* | *:-) cat >"$ac_tmp/stdin" \
29323 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
29328 ac_dir=`$as_dirname -- "$ac_file" ||
29329 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29330 X"$ac_file" : 'X\(//\)[^/]' \| \
29331 X"$ac_file" : 'X\(//\)$' \| \
29332 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
29333 $as_echo X"$ac_file" |
29334 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29338 /^X\(\/\/\)[^/].*/{
29351 as_dir="$ac_dir"; as_fn_mkdir_p
29355 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
29357 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
29358 # A ".." for each directory in $ac_dir_suffix.
29359 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
29360 case $ac_top_builddir_sub in
29361 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
29362 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
29365 ac_abs_top_builddir=$ac_pwd
29366 ac_abs_builddir=$ac_pwd$ac_dir_suffix
29367 # for backward compatibility:
29368 ac_top_builddir=$ac_top_build_prefix
29371 .) # We are building in place.
29373 ac_top_srcdir=$ac_top_builddir_sub
29374 ac_abs_top_srcdir=$ac_pwd ;;
29375 [\\/]* | ?:[\\/]* ) # Absolute name.
29376 ac_srcdir=$srcdir$ac_dir_suffix;
29377 ac_top_srcdir=$srcdir
29378 ac_abs_top_srcdir=$srcdir ;;
29379 *) # Relative name.
29380 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
29381 ac_top_srcdir=$ac_top_build_prefix$srcdir
29382 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
29384 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
29394 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
29395 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
29399 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29400 # If the template does not know about datarootdir, expand it.
29401 # FIXME: This hack should be removed a few years after 2.60.
29402 ac_datarootdir_hack=; ac_datarootdir_seen=
29413 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
29414 *datarootdir*) ac_datarootdir_seen=yes;;
29415 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
29416 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
29417 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
29419 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29420 ac_datarootdir_hack='
29421 s&@datadir@&$datadir&g
29422 s&@docdir@&$docdir&g
29423 s&@infodir@&$infodir&g
29424 s&@localedir@&$localedir&g
29425 s&@mandir@&$mandir&g
29426 s&\\\${datarootdir}&$datarootdir&g' ;;
29430 # Neutralize VPATH when `$srcdir' = `.'.
29431 # Shell code in configure.ac might set extrasub.
29432 # FIXME: do we really want to maintain this feature?
29433 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29434 ac_sed_extra="$ac_vpsub
29437 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29439 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
29440 s|@configure_input@|$ac_sed_conf_input|;t t
29441 s&@top_builddir@&$ac_top_builddir_sub&;t t
29442 s&@top_build_prefix@&$ac_top_build_prefix&;t t
29443 s&@srcdir@&$ac_srcdir&;t t
29444 s&@abs_srcdir@&$ac_abs_srcdir&;t t
29445 s&@top_srcdir@&$ac_top_srcdir&;t t
29446 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
29447 s&@builddir@&$ac_builddir&;t t
29448 s&@abs_builddir@&$ac_abs_builddir&;t t
29449 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
29450 s&@INSTALL@&$ac_INSTALL&;t t
29451 $ac_datarootdir_hack
29453 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
29454 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
29456 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
29457 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
29458 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
29459 "$ac_tmp/out"`; test -z "$ac_out"; } &&
29460 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
29461 which seems to be undefined. Please make sure it is defined" >&5
29462 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
29463 which seems to be undefined. Please make sure it is defined" >&2;}
29465 rm -f "$ac_tmp/stdin"
29467 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
29468 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
29470 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
29476 if test x"$ac_file" != x-; then
29478 $as_echo "/* $configure_input */" \
29479 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
29480 } >"$ac_tmp/config.h" \
29481 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
29482 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
29483 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
29484 $as_echo "$as_me: $ac_file is unchanged" >&6;}
29487 mv "$ac_tmp/config.h" "$ac_file" \
29488 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
29491 $as_echo "/* $configure_input */" \
29492 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
29493 || as_fn_error $? "could not create -" "$LINENO" 5
29497 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
29498 $as_echo "$as_me: executing $ac_file commands" >&6;}
29503 case $ac_file$ac_mode in
29506 # See if we are running on zsh, and set the options that allow our
29507 # commands through without removal of \ escapes.
29508 if test -n "${ZSH_VERSION+set}"; then
29509 setopt NO_GLOB_SUBST
29513 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
29516 cat <<_LT_EOF >> "$cfgfile"
29518 # Generated automatically by $as_me ($PACKAGE) $VERSION
29519 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
29520 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
29522 # Provide generalized library-building support services.
29523 # Written by Gordon Matzigkeit, 1996
29525 # Copyright (C) 2014 Free Software Foundation, Inc.
29526 # This is free software; see the source for copying conditions. There is NO
29527 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
29529 # GNU Libtool is free software; you can redistribute it and/or modify
29530 # it under the terms of the GNU General Public License as published by
29531 # the Free Software Foundation; either version 2 of of the License, or
29532 # (at your option) any later version.
29534 # As a special exception to the GNU General Public License, if you
29535 # distribute this file as part of a program or library that is built
29536 # using GNU Libtool, you may include this file under the same
29537 # distribution terms that you use for the rest of that program.
29539 # GNU Libtool is distributed in the hope that it will be useful, but
29540 # WITHOUT ANY WARRANTY; without even the implied warranty of
29541 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
29542 # GNU General Public License for more details.
29544 # You should have received a copy of the GNU General Public License
29545 # along with this program. If not, see <http://www.gnu.org/licenses/>.
29548 # The names of the tagged configurations supported by this script.
29549 available_tags='CXX '
29551 # Configured defaults for sys_lib_dlsearch_path munging.
29552 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
29554 # ### BEGIN LIBTOOL CONFIG
29556 # Which release of libtool.m4 was used?
29557 macro_version=$macro_version
29558 macro_revision=$macro_revision
29560 # Whether or not to build shared libraries.
29561 build_libtool_libs=$enable_shared
29563 # Whether or not to build static libraries.
29564 build_old_libs=$enable_static
29566 # What type of objects to build.
29569 # Whether or not to optimize for fast installation.
29570 fast_install=$enable_fast_install
29572 # Shared archive member basename,for filename based shared library versioning on AIX.
29573 shared_archive_member_spec=$shared_archive_member_spec
29575 # Shell to use when invoking shell scripts.
29578 # An echo program that protects backslashes.
29581 # The PATH separator for the build system.
29582 PATH_SEPARATOR=$lt_PATH_SEPARATOR
29585 host_alias=$host_alias
29589 # The build system.
29590 build_alias=$build_alias
29594 # A sed program that does not truncate output.
29597 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
29598 Xsed="\$SED -e 1s/^X//"
29600 # A grep program that handles long lines.
29606 # A literal string matcher.
29609 # A BSD- or MS-compatible name lister.
29612 # Whether we need soft or hard links.
29615 # What is the maximum length of a command?
29616 max_cmd_len=$max_cmd_len
29618 # Object file suffix (normally "o").
29621 # Executable file suffix (normally "").
29624 # whether the shell understands "unset".
29627 # turn spaces into newlines.
29630 # turn newlines into spaces.
29633 # convert \$build file names to \$host format.
29634 to_host_file_cmd=$lt_cv_to_host_file_cmd
29636 # convert \$build files to toolchain format.
29637 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
29639 # An object symbol dumper.
29640 OBJDUMP=$lt_OBJDUMP
29642 # Method to check whether dependent libraries are shared objects.
29643 deplibs_check_method=$lt_deplibs_check_method
29645 # Command to use when deplibs_check_method = "file_magic".
29646 file_magic_cmd=$lt_file_magic_cmd
29648 # How to find potential files when deplibs_check_method = "file_magic".
29649 file_magic_glob=$lt_file_magic_glob
29651 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
29652 want_nocaseglob=$lt_want_nocaseglob
29654 # DLL creation program.
29655 DLLTOOL=$lt_DLLTOOL
29657 # Command to associate shared and link libraries.
29658 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
29663 # Flags to create an archive.
29664 AR_FLAGS=$lt_AR_FLAGS
29666 # How to feed a file listing to the archiver.
29667 archiver_list_spec=$lt_archiver_list_spec
29669 # A symbol stripping program.
29672 # Commands used to install an old-style archive.
29674 old_postinstall_cmds=$lt_old_postinstall_cmds
29675 old_postuninstall_cmds=$lt_old_postuninstall_cmds
29677 # Whether to use a lock for old archive extraction.
29678 lock_old_archive_extraction=$lock_old_archive_extraction
29683 # LTCC compiler flags.
29684 LTCFLAGS=$lt_CFLAGS
29686 # Take the output of nm and produce a listing of raw symbols and C names.
29687 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
29689 # Transform the output of nm in a proper C declaration.
29690 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
29692 # Transform the output of nm into a list of symbols to manually relocate.
29693 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
29695 # Transform the output of nm in a C name address pair.
29696 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
29698 # Transform the output of nm in a C name address pair when lib prefix is needed.
29699 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
29701 # The name lister interface.
29702 nm_interface=$lt_lt_cv_nm_interface
29704 # Specify filename containing input files for \$NM.
29705 nm_file_list_spec=$lt_nm_file_list_spec
29707 # The root where to search for dependent libraries,and where our libraries should be installed.
29708 lt_sysroot=$lt_sysroot
29710 # Command to truncate a binary pipe.
29711 lt_truncate_bin=$lt_lt_cv_truncate_bin
29713 # The name of the directory that contains temporary libtool files.
29716 # Used to examine libraries when file_magic_cmd begins with "file".
29717 MAGIC_CMD=$MAGIC_CMD
29719 # Must we lock files when doing compilation?
29720 need_locks=$lt_need_locks
29723 MANIFEST_TOOL=$lt_MANIFEST_TOOL
29725 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
29726 DSYMUTIL=$lt_DSYMUTIL
29728 # Tool to change global to local symbols on Mac OS X.
29731 # Tool to manipulate fat objects and archives on Mac OS X.
29734 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
29737 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
29738 OTOOL64=$lt_OTOOL64
29740 # Old archive suffix (normally "a").
29743 # Shared library suffix (normally ".so").
29744 shrext_cmds=$lt_shrext_cmds
29746 # The commands to extract the exported symbol list from a shared archive.
29747 extract_expsyms_cmds=$lt_extract_expsyms_cmds
29749 # Variables whose values should be saved in libtool wrapper scripts and
29750 # restored at link time.
29751 variables_saved_for_relink=$lt_variables_saved_for_relink
29753 # Do we need the "lib" prefix for modules?
29754 need_lib_prefix=$need_lib_prefix
29756 # Do we need a version for libraries?
29757 need_version=$need_version
29759 # Library versioning type.
29760 version_type=$version_type
29762 # Shared library runtime path variable.
29763 runpath_var=$runpath_var
29765 # Shared library path variable.
29766 shlibpath_var=$shlibpath_var
29768 # Is shlibpath searched before the hard-coded library search path?
29769 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
29771 # Format of library name prefix.
29772 libname_spec=$lt_libname_spec
29774 # List of archive names. First name is the real one, the rest are links.
29775 # The last name is the one that the linker finds with -lNAME
29776 library_names_spec=$lt_library_names_spec
29778 # The coded name of the library, if different from the real name.
29779 soname_spec=$lt_soname_spec
29781 # Permission mode override for installation of shared libraries.
29782 install_override_mode=$lt_install_override_mode
29784 # Command to use after installation of a shared archive.
29785 postinstall_cmds=$lt_postinstall_cmds
29787 # Command to use after uninstallation of a shared archive.
29788 postuninstall_cmds=$lt_postuninstall_cmds
29790 # Commands used to finish a libtool library installation in a directory.
29791 finish_cmds=$lt_finish_cmds
29793 # As "finish_cmds", except a single script fragment to be evaled but
29795 finish_eval=$lt_finish_eval
29797 # Whether we should hardcode library paths into libraries.
29798 hardcode_into_libs=$hardcode_into_libs
29800 # Compile-time system search path for libraries.
29801 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
29803 # Detected run-time system search path for libraries.
29804 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
29806 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
29807 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
29809 # Whether dlopen is supported.
29810 dlopen_support=$enable_dlopen
29812 # Whether dlopen of programs is supported.
29813 dlopen_self=$enable_dlopen_self
29815 # Whether dlopen of statically linked programs is supported.
29816 dlopen_self_static=$enable_dlopen_self_static
29818 # Commands to strip libraries.
29819 old_striplib=$lt_old_striplib
29820 striplib=$lt_striplib
29823 # The linker used to build libraries.
29826 # How to create reloadable object files.
29827 reload_flag=$lt_reload_flag
29828 reload_cmds=$lt_reload_cmds
29830 # Commands used to build an old-style archive.
29831 old_archive_cmds=$lt_old_archive_cmds
29833 # A language specific compiler.
29836 # Is the compiler the GNU compiler?
29839 # Compiler flag to turn off builtin functions.
29840 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
29842 # Additional compiler flags for building library objects.
29843 pic_flag=$lt_lt_prog_compiler_pic
29845 # How to pass a linker flag through the compiler.
29846 wl=$lt_lt_prog_compiler_wl
29848 # Compiler flag to prevent dynamic linking.
29849 link_static_flag=$lt_lt_prog_compiler_static
29851 # Does compiler simultaneously support -c and -o options?
29852 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
29854 # Whether or not to add -lc for building shared libraries.
29855 build_libtool_need_lc=$archive_cmds_need_lc
29857 # Whether or not to disallow shared libs when runtime libs are static.
29858 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
29860 # Compiler flag to allow reflexive dlopens.
29861 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
29863 # Compiler flag to generate shared objects directly from archives.
29864 whole_archive_flag_spec=$lt_whole_archive_flag_spec
29866 # Whether the compiler copes with passing no objects directly.
29867 compiler_needs_object=$lt_compiler_needs_object
29869 # Create an old-style archive from a shared archive.
29870 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
29872 # Create a temporary old-style archive to link instead of a shared archive.
29873 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
29875 # Commands used to build a shared archive.
29876 archive_cmds=$lt_archive_cmds
29877 archive_expsym_cmds=$lt_archive_expsym_cmds
29879 # Commands used to build a loadable module if different from building
29880 # a shared archive.
29881 module_cmds=$lt_module_cmds
29882 module_expsym_cmds=$lt_module_expsym_cmds
29884 # Whether we are building with GNU ld or not.
29885 with_gnu_ld=$lt_with_gnu_ld
29887 # Flag that allows shared libraries with undefined symbols to be built.
29888 allow_undefined_flag=$lt_allow_undefined_flag
29890 # Flag that enforces no undefined symbols.
29891 no_undefined_flag=$lt_no_undefined_flag
29893 # Flag to hardcode \$libdir into a binary during linking.
29894 # This must work even if \$libdir does not exist
29895 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
29897 # Whether we need a single "-rpath" flag with a separated argument.
29898 hardcode_libdir_separator=$lt_hardcode_libdir_separator
29900 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
29901 # DIR into the resulting binary.
29902 hardcode_direct=$hardcode_direct
29904 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
29905 # DIR into the resulting binary and the resulting library dependency is
29906 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
29907 # library is relocated.
29908 hardcode_direct_absolute=$hardcode_direct_absolute
29910 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
29911 # into the resulting binary.
29912 hardcode_minus_L=$hardcode_minus_L
29914 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
29915 # into the resulting binary.
29916 hardcode_shlibpath_var=$hardcode_shlibpath_var
29918 # Set to "yes" if building a shared library automatically hardcodes DIR
29919 # into the library and all subsequent libraries and executables linked
29921 hardcode_automatic=$hardcode_automatic
29923 # Set to yes if linker adds runtime paths of dependent libraries
29924 # to runtime path list.
29925 inherit_rpath=$inherit_rpath
29927 # Whether libtool must link a program against all its dependency libraries.
29928 link_all_deplibs=$link_all_deplibs
29930 # Set to "yes" if exported symbols are required.
29931 always_export_symbols=$always_export_symbols
29933 # The commands to list exported symbols.
29934 export_symbols_cmds=$lt_export_symbols_cmds
29936 # Symbols that should not be listed in the preloaded symbols.
29937 exclude_expsyms=$lt_exclude_expsyms
29939 # Symbols that must always be exported.
29940 include_expsyms=$lt_include_expsyms
29942 # Commands necessary for linking programs (against libraries) with templates.
29943 prelink_cmds=$lt_prelink_cmds
29945 # Commands necessary for finishing linking programs.
29946 postlink_cmds=$lt_postlink_cmds
29948 # Specify filename containing input files.
29949 file_list_spec=$lt_file_list_spec
29951 # How to hardcode a shared library path into an executable.
29952 hardcode_action=$hardcode_action
29954 # The directories searched by this compiler when creating a shared library.
29955 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
29957 # Dependencies to place before and after the objects being linked to
29958 # create a shared library.
29959 predep_objects=$lt_predep_objects
29960 postdep_objects=$lt_postdep_objects
29961 predeps=$lt_predeps
29962 postdeps=$lt_postdeps
29964 # The library search path used internally by the compiler when linking
29965 # a shared library.
29966 compiler_lib_search_path=$lt_compiler_lib_search_path
29968 # ### END LIBTOOL CONFIG
29972 cat <<'_LT_EOF' >> "$cfgfile"
29974 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
29976 # func_munge_path_list VARIABLE PATH
29977 # -----------------------------------
29978 # VARIABLE is name of variable containing _space_ separated list of
29979 # directories to be munged by the contents of PATH, which is string
29982 # string "DIR[ DIR]" will be prepended to VARIABLE
29984 # string "DIR[ DIR]" will be appended to VARIABLE
29985 # "DIRP[:DIRP]::[DIRA:]DIRA"
29986 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
29987 # "DIRA[ DIRA]" will be appended to VARIABLE
29989 # VARIABLE will be replaced by "DIR[ DIR]"
29990 func_munge_path_list ()
29996 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
29999 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
30002 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
30003 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
30006 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
30012 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
30013 func_cc_basename ()
30015 for cc_temp in $*""; do
30017 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
30018 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
30023 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
30027 # ### END FUNCTIONS SHARED WITH CONFIGURE
30033 cat <<\_LT_EOF >> "$cfgfile"
30034 # AIX sometimes has problems with the GCC collect2 program. For some
30035 # reason, if we set the COLLECT_NAMES environment variable, the problems
30036 # vanish in a puff of smoke.
30037 if test set != "${COLLECT_NAMES+set}"; then
30039 export COLLECT_NAMES
30046 ltmain=$ac_aux_dir/ltmain.sh
30049 # We use sed instead of cat because bash on DJGPP gets confused if
30050 # if finds mixed CR/LF and LF-only lines. Since sed operates in
30051 # text mode, it properly converts lines to CR/LF. This bash problem
30052 # is reportedly fixed, but why not run on old versions too?
30053 sed '$q' "$ltmain" >> "$cfgfile" \
30054 || (rm -f "$cfgfile"; exit 1)
30056 mv -f "$cfgfile" "$ofile" ||
30057 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
30061 cat <<_LT_EOF >> "$ofile"
30063 # ### BEGIN LIBTOOL TAG CONFIG: CXX
30065 # The linker used to build libraries.
30068 # How to create reloadable object files.
30069 reload_flag=$lt_reload_flag_CXX
30070 reload_cmds=$lt_reload_cmds_CXX
30072 # Commands used to build an old-style archive.
30073 old_archive_cmds=$lt_old_archive_cmds_CXX
30075 # A language specific compiler.
30076 CC=$lt_compiler_CXX
30078 # Is the compiler the GNU compiler?
30081 # Compiler flag to turn off builtin functions.
30082 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
30084 # Additional compiler flags for building library objects.
30085 pic_flag=$lt_lt_prog_compiler_pic_CXX
30087 # How to pass a linker flag through the compiler.
30088 wl=$lt_lt_prog_compiler_wl_CXX
30090 # Compiler flag to prevent dynamic linking.
30091 link_static_flag=$lt_lt_prog_compiler_static_CXX
30093 # Does compiler simultaneously support -c and -o options?
30094 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
30096 # Whether or not to add -lc for building shared libraries.
30097 build_libtool_need_lc=$archive_cmds_need_lc_CXX
30099 # Whether or not to disallow shared libs when runtime libs are static.
30100 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
30102 # Compiler flag to allow reflexive dlopens.
30103 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
30105 # Compiler flag to generate shared objects directly from archives.
30106 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
30108 # Whether the compiler copes with passing no objects directly.
30109 compiler_needs_object=$lt_compiler_needs_object_CXX
30111 # Create an old-style archive from a shared archive.
30112 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
30114 # Create a temporary old-style archive to link instead of a shared archive.
30115 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
30117 # Commands used to build a shared archive.
30118 archive_cmds=$lt_archive_cmds_CXX
30119 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
30121 # Commands used to build a loadable module if different from building
30122 # a shared archive.
30123 module_cmds=$lt_module_cmds_CXX
30124 module_expsym_cmds=$lt_module_expsym_cmds_CXX
30126 # Whether we are building with GNU ld or not.
30127 with_gnu_ld=$lt_with_gnu_ld_CXX
30129 # Flag that allows shared libraries with undefined symbols to be built.
30130 allow_undefined_flag=$lt_allow_undefined_flag_CXX
30132 # Flag that enforces no undefined symbols.
30133 no_undefined_flag=$lt_no_undefined_flag_CXX
30135 # Flag to hardcode \$libdir into a binary during linking.
30136 # This must work even if \$libdir does not exist
30137 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
30139 # Whether we need a single "-rpath" flag with a separated argument.
30140 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
30142 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
30143 # DIR into the resulting binary.
30144 hardcode_direct=$hardcode_direct_CXX
30146 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
30147 # DIR into the resulting binary and the resulting library dependency is
30148 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
30149 # library is relocated.
30150 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
30152 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
30153 # into the resulting binary.
30154 hardcode_minus_L=$hardcode_minus_L_CXX
30156 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
30157 # into the resulting binary.
30158 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
30160 # Set to "yes" if building a shared library automatically hardcodes DIR
30161 # into the library and all subsequent libraries and executables linked
30163 hardcode_automatic=$hardcode_automatic_CXX
30165 # Set to yes if linker adds runtime paths of dependent libraries
30166 # to runtime path list.
30167 inherit_rpath=$inherit_rpath_CXX
30169 # Whether libtool must link a program against all its dependency libraries.
30170 link_all_deplibs=$link_all_deplibs_CXX
30172 # Set to "yes" if exported symbols are required.
30173 always_export_symbols=$always_export_symbols_CXX
30175 # The commands to list exported symbols.
30176 export_symbols_cmds=$lt_export_symbols_cmds_CXX
30178 # Symbols that should not be listed in the preloaded symbols.
30179 exclude_expsyms=$lt_exclude_expsyms_CXX
30181 # Symbols that must always be exported.
30182 include_expsyms=$lt_include_expsyms_CXX
30184 # Commands necessary for linking programs (against libraries) with templates.
30185 prelink_cmds=$lt_prelink_cmds_CXX
30187 # Commands necessary for finishing linking programs.
30188 postlink_cmds=$lt_postlink_cmds_CXX
30190 # Specify filename containing input files.
30191 file_list_spec=$lt_file_list_spec_CXX
30193 # How to hardcode a shared library path into an executable.
30194 hardcode_action=$hardcode_action_CXX
30196 # The directories searched by this compiler when creating a shared library.
30197 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
30199 # Dependencies to place before and after the objects being linked to
30200 # create a shared library.
30201 predep_objects=$lt_predep_objects_CXX
30202 postdep_objects=$lt_postdep_objects_CXX
30203 predeps=$lt_predeps_CXX
30204 postdeps=$lt_postdeps_CXX
30206 # The library search path used internally by the compiler when linking
30207 # a shared library.
30208 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
30210 # ### END LIBTOOL TAG CONFIG: CXX
30214 "svn_private_config.h.tmp":C) svn_cf=subversion/svn_private_config.h;
30215 $SED -e "s/@SVN_DB_HEADER@/$SVN_DB_HEADER/" $svn_cf.tmp > $svn_cf.tmp.new
30216 cmp -s $svn_cf.tmp.new $svn_cf || mv -f $svn_cf.tmp.new $svn_cf
30217 rm -f $svn_cf.tmp.new $svn_cf.tmp ;;
30218 "tools/backup/hot-backup.py":F) chmod +x tools/backup/hot-backup.py ;;
30219 "tools/hook-scripts/commit-access-control.pl":F) chmod +x tools/hook-scripts/commit-access-control.pl ;;
30220 "subversion/bindings/swig/perl/native/Makefile.PL":F) chmod +x subversion/bindings/swig/perl/native/Makefile.PL ;;
30221 "packages/solaris/pkginfo":F) chmod +x packages/solaris/pkginfo ;;
30229 ac_clean_files=$ac_clean_files_save
30231 test $ac_write_fail = 0 ||
30232 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
30235 # configure is writing to config.log, and then calls config.status.
30236 # config.status does its own redirection, appending to config.log.
30237 # Unfortunately, on DOS this fails, as config.log is still kept open
30238 # by configure, so config.status won't be able to write to it; its
30239 # output is simply discarded. So we exec the FD to /dev/null,
30240 # effectively closing config.log, so it can be properly (re)opened and
30241 # appended to by config.status. When coming back to configure, we
30242 # need to make the FD available again.
30243 if test "$no_create" != yes; then
30245 ac_config_status_args=
30246 test "$silent" = yes &&
30247 ac_config_status_args="$ac_config_status_args --quiet"
30249 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
30251 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
30252 # would make configure fail if this is the last instruction.
30253 $ac_cs_success || as_fn_exit 1
30255 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
30256 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
30257 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
30261 # ==== Print final messages to user ==========================================
30264 if test "$svn_have_berkeley_db" = "no6" && test "$enable_bdb6" != "no"; then
30265 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: We have configured without BDB filesystem support
30268 Berkeley DB 6 was found, but not used. Please re-run configure (see
30269 ./config.nice) with the '--enable-bdb6' flag to use it,
30270 or explicitly specify '--disable-bdb6' or '--without-berkeley-db'
30271 to silence this warning.
30273 Please note that some versions of Berkeley DB 6+ are under the GNU Affero
30274 General Public License, version 3:
30275 https://oss.oracle.com/pipermail/bdb/2013-June/000056.html
30277 The AGPL-3.0 licence may impose special requirements for making available
30278 source code of server-side software. The text of the licence is:
30279 https://www.gnu.org/licenses/agpl-3.0.html
30280 http://opensource.org/licenses/AGPL-3.0
30282 The Berkeley DB backend to Subversion is deprecated; see
30283 http://subversion.apache.org/docs/release-notes/1.8#bdb-deprecated
30285 The Subversion developers have not tested Subversion with Berkeley DB 6 for
30286 technical problems or bugs.
30288 $as_echo "$as_me: WARNING: We have configured without BDB filesystem support
30291 Berkeley DB 6 was found, but not used. Please re-run configure (see
30292 ./config.nice) with the '--enable-bdb6' flag to use it,
30293 or explicitly specify '--disable-bdb6' or '--without-berkeley-db'
30294 to silence this warning.
30296 Please note that some versions of Berkeley DB 6+ are under the GNU Affero
30297 General Public License, version 3:
30298 https://oss.oracle.com/pipermail/bdb/2013-June/000056.html
30300 The AGPL-3.0 licence may impose special requirements for making available
30301 source code of server-side software. The text of the licence is:
30302 https://www.gnu.org/licenses/agpl-3.0.html
30303 http://opensource.org/licenses/AGPL-3.0
30305 The Berkeley DB backend to Subversion is deprecated; see
30306 http://subversion.apache.org/docs/release-notes/1.8#bdb-deprecated
30308 The Subversion developers have not tested Subversion with Berkeley DB 6 for
30309 technical problems or bugs.