2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for subversion 1.8.5.
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.8.5'
594 PACKAGE_STRING='subversion 1.8.5'
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
646 SVN_FS_LIB_INSTALL_DEPS
649 SVN_RA_LIB_INSTALL_DEPS
653 SWIG_RB_SITE_ARCH_DIR
686 libsvn_ra_svn_LDFLAGS
687 libsvn_ra_serf_LDFLAGS
688 libsvn_ra_local_LDFLAGS
690 libsvn_fs_util_LDFLAGS
692 libsvn_fs_base_LDFLAGS
696 libsvn_client_LDFLAGS
697 libsvn_auth_kwallet_LDFLAGS
698 libsvn_auth_gnome_keyring_LDFLAGS
716 SVN_GNOME_KEYRING_LIBS
717 SVN_GNOME_KEYRING_INCLUDES
728 TRANSFORM_LIBTOOL_SCRIPTS
760 SVN_APR_MEMCACHE_LIBS
761 SVN_APR_MEMCACHE_INCLUDES
769 SVN_APR_SHLIB_PATH_VAR
839 program_transform_name
852 enable_option_checking
858 with_apache_libexecdir
860 enable_sqlite_compatibility_version
868 enable_experimental_libtool
870 enable_local_library_preloading
884 enable_plaintext_password_storage
888 enable_disallowing_of_undefined_references
889 enable_maintainer_mode
890 enable_full_version_match
893 enable_mod_activation
900 with_ruby_test_verbose
902 enable_runtime_module_search
906 ac_precious_vars='build_alias
921 # Initialize some variables set by options.
923 ac_init_version=false
924 ac_unrecognized_opts=
926 # The variables have the same names as the options, with
927 # dashes changed to underlines.
935 program_transform_name=s,x,x,
943 # Installation directory options.
944 # These are left unexpanded so users can "make install exec_prefix=/foo"
945 # and all the variables that are supposed to be based on exec_prefix
946 # by default will actually change.
947 # Use braces instead of parens because sh, perl, etc. also accept them.
948 # (The list follows the same order as the GNU Coding Standards.)
949 bindir='${exec_prefix}/bin'
950 sbindir='${exec_prefix}/sbin'
951 libexecdir='${exec_prefix}/libexec'
952 datarootdir='${prefix}/share'
953 datadir='${datarootdir}'
954 sysconfdir='${prefix}/etc'
955 sharedstatedir='${prefix}/com'
956 localstatedir='${prefix}/var'
957 includedir='${prefix}/include'
958 oldincludedir='/usr/include'
959 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
960 infodir='${datarootdir}/info'
965 libdir='${exec_prefix}/lib'
966 localedir='${datarootdir}/locale'
967 mandir='${datarootdir}/man'
973 # If the previous option needs an argument, assign it.
974 if test -n "$ac_prev"; then
975 eval $ac_prev=\$ac_option
981 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
986 # Accept the important Cygnus configure options, so we can diagnose typos.
988 case $ac_dashdash$ac_option in
992 -bindir | --bindir | --bindi | --bind | --bin | --bi)
994 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
997 -build | --build | --buil | --bui | --bu)
998 ac_prev=build_alias ;;
999 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1000 build_alias=$ac_optarg ;;
1002 -cache-file | --cache-file | --cache-fil | --cache-fi \
1003 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1004 ac_prev=cache_file ;;
1005 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1006 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1007 cache_file=$ac_optarg ;;
1009 --config-cache | -C)
1010 cache_file=config.cache ;;
1012 -datadir | --datadir | --datadi | --datad)
1014 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1015 datadir=$ac_optarg ;;
1017 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1018 | --dataroo | --dataro | --datar)
1019 ac_prev=datarootdir ;;
1020 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1021 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1022 datarootdir=$ac_optarg ;;
1024 -disable-* | --disable-*)
1025 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1026 # Reject names that are not valid shell variable names.
1027 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1028 as_fn_error $? "invalid feature name: $ac_useropt"
1029 ac_useropt_orig=$ac_useropt
1030 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1031 case $ac_user_opts in
1033 "enable_$ac_useropt"
1035 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1036 ac_unrecognized_sep=', ';;
1038 eval enable_$ac_useropt=no ;;
1040 -docdir | --docdir | --docdi | --doc | --do)
1042 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1043 docdir=$ac_optarg ;;
1045 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1047 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1048 dvidir=$ac_optarg ;;
1050 -enable-* | --enable-*)
1051 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1052 # Reject names that are not valid shell variable names.
1053 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1054 as_fn_error $? "invalid feature name: $ac_useropt"
1055 ac_useropt_orig=$ac_useropt
1056 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1057 case $ac_user_opts in
1059 "enable_$ac_useropt"
1061 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1062 ac_unrecognized_sep=', ';;
1064 eval enable_$ac_useropt=\$ac_optarg ;;
1066 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1067 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1068 | --exec | --exe | --ex)
1069 ac_prev=exec_prefix ;;
1070 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1071 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1072 | --exec=* | --exe=* | --ex=*)
1073 exec_prefix=$ac_optarg ;;
1075 -gas | --gas | --ga | --g)
1076 # Obsolete; use --with-gas.
1079 -help | --help | --hel | --he | -h)
1080 ac_init_help=long ;;
1081 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1082 ac_init_help=recursive ;;
1083 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1084 ac_init_help=short ;;
1086 -host | --host | --hos | --ho)
1087 ac_prev=host_alias ;;
1088 -host=* | --host=* | --hos=* | --ho=*)
1089 host_alias=$ac_optarg ;;
1091 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1093 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1095 htmldir=$ac_optarg ;;
1097 -includedir | --includedir | --includedi | --included | --include \
1098 | --includ | --inclu | --incl | --inc)
1099 ac_prev=includedir ;;
1100 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1101 | --includ=* | --inclu=* | --incl=* | --inc=*)
1102 includedir=$ac_optarg ;;
1104 -infodir | --infodir | --infodi | --infod | --info | --inf)
1106 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1107 infodir=$ac_optarg ;;
1109 -libdir | --libdir | --libdi | --libd)
1111 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1112 libdir=$ac_optarg ;;
1114 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1115 | --libexe | --libex | --libe)
1116 ac_prev=libexecdir ;;
1117 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1118 | --libexe=* | --libex=* | --libe=*)
1119 libexecdir=$ac_optarg ;;
1121 -localedir | --localedir | --localedi | --localed | --locale)
1122 ac_prev=localedir ;;
1123 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1124 localedir=$ac_optarg ;;
1126 -localstatedir | --localstatedir | --localstatedi | --localstated \
1127 | --localstate | --localstat | --localsta | --localst | --locals)
1128 ac_prev=localstatedir ;;
1129 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1130 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1131 localstatedir=$ac_optarg ;;
1133 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1135 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1136 mandir=$ac_optarg ;;
1138 -nfp | --nfp | --nf)
1139 # Obsolete; use --without-fp.
1142 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1143 | --no-cr | --no-c | -n)
1146 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1147 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1150 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1151 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1152 | --oldin | --oldi | --old | --ol | --o)
1153 ac_prev=oldincludedir ;;
1154 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1155 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1156 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1157 oldincludedir=$ac_optarg ;;
1159 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1161 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1162 prefix=$ac_optarg ;;
1164 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1165 | --program-pre | --program-pr | --program-p)
1166 ac_prev=program_prefix ;;
1167 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1168 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1169 program_prefix=$ac_optarg ;;
1171 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1172 | --program-suf | --program-su | --program-s)
1173 ac_prev=program_suffix ;;
1174 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1175 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1176 program_suffix=$ac_optarg ;;
1178 -program-transform-name | --program-transform-name \
1179 | --program-transform-nam | --program-transform-na \
1180 | --program-transform-n | --program-transform- \
1181 | --program-transform | --program-transfor \
1182 | --program-transfo | --program-transf \
1183 | --program-trans | --program-tran \
1184 | --progr-tra | --program-tr | --program-t)
1185 ac_prev=program_transform_name ;;
1186 -program-transform-name=* | --program-transform-name=* \
1187 | --program-transform-nam=* | --program-transform-na=* \
1188 | --program-transform-n=* | --program-transform-=* \
1189 | --program-transform=* | --program-transfor=* \
1190 | --program-transfo=* | --program-transf=* \
1191 | --program-trans=* | --program-tran=* \
1192 | --progr-tra=* | --program-tr=* | --program-t=*)
1193 program_transform_name=$ac_optarg ;;
1195 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1197 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1198 pdfdir=$ac_optarg ;;
1200 -psdir | --psdir | --psdi | --psd | --ps)
1202 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1205 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1206 | -silent | --silent | --silen | --sile | --sil)
1209 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1211 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1213 sbindir=$ac_optarg ;;
1215 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1216 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1217 | --sharedst | --shareds | --shared | --share | --shar \
1219 ac_prev=sharedstatedir ;;
1220 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1221 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1222 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1224 sharedstatedir=$ac_optarg ;;
1226 -site | --site | --sit)
1228 -site=* | --site=* | --sit=*)
1231 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1233 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1234 srcdir=$ac_optarg ;;
1236 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1237 | --syscon | --sysco | --sysc | --sys | --sy)
1238 ac_prev=sysconfdir ;;
1239 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1240 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1241 sysconfdir=$ac_optarg ;;
1243 -target | --target | --targe | --targ | --tar | --ta | --t)
1244 ac_prev=target_alias ;;
1245 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1246 target_alias=$ac_optarg ;;
1248 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1251 -version | --version | --versio | --versi | --vers | -V)
1252 ac_init_version=: ;;
1255 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1256 # Reject names that are not valid shell variable names.
1257 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1258 as_fn_error $? "invalid package name: $ac_useropt"
1259 ac_useropt_orig=$ac_useropt
1260 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1261 case $ac_user_opts in
1265 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1266 ac_unrecognized_sep=', ';;
1268 eval with_$ac_useropt=\$ac_optarg ;;
1270 -without-* | --without-*)
1271 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1272 # Reject names that are not valid shell variable names.
1273 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1274 as_fn_error $? "invalid package name: $ac_useropt"
1275 ac_useropt_orig=$ac_useropt
1276 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1277 case $ac_user_opts in
1281 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1282 ac_unrecognized_sep=', ';;
1284 eval with_$ac_useropt=no ;;
1287 # Obsolete; use --with-x.
1290 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1291 | --x-incl | --x-inc | --x-in | --x-i)
1292 ac_prev=x_includes ;;
1293 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1294 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1295 x_includes=$ac_optarg ;;
1297 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1298 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1299 ac_prev=x_libraries ;;
1300 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1301 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1302 x_libraries=$ac_optarg ;;
1304 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1305 Try \`$0 --help' for more information"
1309 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1310 # Reject names that are not valid shell variable names.
1311 case $ac_envvar in #(
1312 '' | [0-9]* | *[!_$as_cr_alnum]* )
1313 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1315 eval $ac_envvar=\$ac_optarg
1316 export $ac_envvar ;;
1319 # FIXME: should be removed in autoconf 3.0.
1320 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1321 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1322 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1323 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1329 if test -n "$ac_prev"; then
1330 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1331 as_fn_error $? "missing argument to $ac_option"
1334 if test -n "$ac_unrecognized_opts"; then
1335 case $enable_option_checking in
1337 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1338 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1342 # Check all directory arguments for consistency.
1343 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1344 datadir sysconfdir sharedstatedir localstatedir includedir \
1345 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1346 libdir localedir mandir
1348 eval ac_val=\$$ac_var
1349 # Remove trailing slashes.
1352 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1353 eval $ac_var=\$ac_val;;
1355 # Be sure to have absolute directory names.
1357 [\\/$]* | ?:[\\/]* ) continue;;
1358 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1360 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1363 # There might be people who depend on the old broken behavior: `$host'
1364 # used to hold the argument of --host etc.
1365 # FIXME: To remove some day.
1368 target=$target_alias
1370 # FIXME: To remove some day.
1371 if test "x$host_alias" != x; then
1372 if test "x$build_alias" = x; then
1373 cross_compiling=maybe
1374 elif test "x$build_alias" != "x$host_alias"; then
1380 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1382 test "$silent" = yes && exec 6>/dev/null
1385 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1386 ac_ls_di=`ls -di .` &&
1387 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1388 as_fn_error $? "working directory cannot be determined"
1389 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1390 as_fn_error $? "pwd does not report name of working directory"
1393 # Find the source files, if location was not specified.
1394 if test -z "$srcdir"; then
1395 ac_srcdir_defaulted=yes
1396 # Try the directory containing this script, then the parent directory.
1397 ac_confdir=`$as_dirname -- "$as_myself" ||
1398 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1399 X"$as_myself" : 'X\(//\)[^/]' \| \
1400 X"$as_myself" : 'X\(//\)$' \| \
1401 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1402 $as_echo X"$as_myself" |
1403 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1421 if test ! -r "$srcdir/$ac_unique_file"; then
1425 ac_srcdir_defaulted=no
1427 if test ! -r "$srcdir/$ac_unique_file"; then
1428 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1429 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1431 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1433 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1435 # When building in place, set srcdir=.
1436 if test "$ac_abs_confdir" = "$ac_pwd"; then
1439 # Remove unnecessary trailing slashes from srcdir.
1440 # Double slashes in file names in object file debugging info
1441 # mess up M-x gdb in Emacs.
1443 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1445 for ac_var in $ac_precious_vars; do
1446 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1447 eval ac_env_${ac_var}_value=\$${ac_var}
1448 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1449 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1453 # Report the --help message.
1455 if test "$ac_init_help" = "long"; then
1456 # Omit some internal or obsolete options to make the list less imposing.
1457 # This message is too long to be a string in the A/UX 3.1 sh.
1459 \`configure' configures subversion 1.8.5 to adapt to many kinds of systems.
1461 Usage: $0 [OPTION]... [VAR=VALUE]...
1463 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1464 VAR=VALUE. See below for descriptions of some of the useful variables.
1466 Defaults for the options are specified in brackets.
1469 -h, --help display this help and exit
1470 --help=short display options specific to this package
1471 --help=recursive display the short help of all the included packages
1472 -V, --version display version information and exit
1473 -q, --quiet, --silent do not print \`checking ...' messages
1474 --cache-file=FILE cache test results in FILE [disabled]
1475 -C, --config-cache alias for \`--cache-file=config.cache'
1476 -n, --no-create do not create output files
1477 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1479 Installation directories:
1480 --prefix=PREFIX install architecture-independent files in PREFIX
1481 [$ac_default_prefix]
1482 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1485 By default, \`make install' will install all the files in
1486 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1487 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1488 for instance \`--prefix=\$HOME'.
1490 For better control, use the options below.
1492 Fine tuning of the installation directories:
1493 --bindir=DIR user executables [EPREFIX/bin]
1494 --sbindir=DIR system admin executables [EPREFIX/sbin]
1495 --libexecdir=DIR program executables [EPREFIX/libexec]
1496 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1497 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1498 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1499 --libdir=DIR object code libraries [EPREFIX/lib]
1500 --includedir=DIR C header files [PREFIX/include]
1501 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1502 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1503 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1504 --infodir=DIR info documentation [DATAROOTDIR/info]
1505 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1506 --mandir=DIR man documentation [DATAROOTDIR/man]
1507 --docdir=DIR documentation root [DATAROOTDIR/doc/subversion]
1508 --htmldir=DIR html documentation [DOCDIR]
1509 --dvidir=DIR dvi documentation [DOCDIR]
1510 --pdfdir=DIR pdf documentation [DOCDIR]
1511 --psdir=DIR ps documentation [DOCDIR]
1517 --build=BUILD configure for building on BUILD [guessed]
1518 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1519 --target=TARGET configure for building compilers for TARGET [HOST]
1523 if test -n "$ac_init_help"; then
1524 case $ac_init_help in
1525 short | recursive ) echo "Configuration of subversion 1.8.5:";;
1530 --disable-option-checking ignore unrecognized --enable/--with options
1531 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1532 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1533 --enable-sqlite-compatibility-version=X.Y.Z
1534 Allow binary to run against SQLite as old as ARG
1535 --enable-shared[=PKGS] build shared libraries [default=yes]
1536 --enable-static[=PKGS] build static libraries [default=yes]
1537 --enable-fast-install[=PKGS]
1538 optimize for fast installation [default=yes]
1539 --disable-libtool-lock avoid locking (might break parallel builds)
1540 --enable-experimental-libtool
1542 --enable-static Build static libraries
1543 --enable-shared Build shared libraries
1544 --enable-all-static Build completely static (standalone) binaries.
1545 --enable-local-library-preloading
1546 Enable preloading of locally built libraries in
1547 locally built executables. This may be necessary for
1548 testing prior to installation on some platforms. It
1549 does not work on some platforms (Darwin, OpenBSD,
1551 --enable-bdb6 Allow building against BDB 6+. See
1552 --with-berkeley-db for specifying the location of
1553 the Berkeley DB installation. Using BDB 6 will fail
1554 if this option is not used.
1555 --disable-keychain Disable use of Mac OS KeyChain for auth credentials
1556 --enable-ev2-impl Use Ev2 implementations, where available
1558 --disable-nls Disable gettext functionality
1559 --disable-plaintext-password-storage
1560 Disable on-disk caching of plaintext passwords and
1561 passphrases. (Leaving this functionality enabled
1562 will not force Subversion to store passwords in
1563 plaintext, but does permit users to explicitly allow
1564 that behavior via runtime configuration.)
1565 --enable-debug Turn on debugging
1566 --enable-optimize Turn on optimizations
1567 --enable-disallowing-of-undefined-references
1568 Use -Wl,--no-undefined flag during linking of some
1569 libraries to disallow undefined references
1570 --enable-maintainer-mode
1571 Turn on debugging and very strict compile-time
1573 --disable-full-version-match
1574 Disable the full version match rules when checking
1575 Subversion library compatibility.
1576 --enable-mod-activation Enable mod_dav_svn in httpd.conf
1577 --enable-gcov Turn on gcov coverage testing (GCC only).
1578 --enable-gprof Produce gprof profiling data in 'gmon.out' (GCC
1580 --enable-runtime-module-search
1581 Turn on dynamic loading of RA/FS libraries including
1582 third-party FS libraries
1583 --enable-javahl Enable compilation of Java high-level bindings
1587 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1588 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1589 --with-apr=PATH prefix for installed APR, path to APR build tree,
1590 or the full path to apr-config
1591 --with-apr-util=PATH prefix for installed APU, path to APU build tree,
1592 or the full path to apu-config
1593 --with-serf=PREFIX Serf HTTP client library (enabled by default if
1595 --with-apr_memcache=PREFIX
1596 Standalone apr_memcache client library
1597 --with-apxs[=FILE] Build shared Apache modules. FILE is the optional
1598 pathname to the Apache apxs tool; defaults to
1600 --with-apache-libexecdir[=PATH]
1601 Install Apache modules to Apache's configured
1602 modules directory instead of LIBEXECDIR; if PATH is
1603 given, install to PATH.
1604 --with-sqlite=PREFIX Use installed SQLite library or amalgamation file.
1605 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1607 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1608 --with-sysroot=DIR Search for dependent libraries within DIR
1609 (or the compiler's sysroot if not specified).
1610 --with-trang=PATH Specify the command to run the trang schema
1612 --with-doxygen=PATH Specify the command to run doxygen
1613 --with-expat=INCLUDES:LIB_SEARCH_DIRS:LIBS
1614 Specify location of Expat
1615 --with-berkeley-db[=HEADER:INCLUDES:LIB_SEARCH_DIRS:LIBS]
1616 The Subversion Berkeley DB based filesystem library
1617 requires Berkeley DB $db_version or $db_alt_version.
1618 If you specify `--without-berkeley-db', that library
1619 will not be built. If you omit the argument of this
1620 option completely, the configure script will use
1621 Berkeley DB used by APR-UTIL.
1622 --with-sasl=PATH Compile with libsasl2 in PATH
1623 --without-gpg-agent Disable support for GPG-Agent
1624 --with-gnome-keyring Enable use of GNOME Keyring for auth credentials
1625 (enabled by default if found)
1626 --with-libmagic=PREFIX libmagic filetype detection library
1627 --with-kwallet[=PATH] Enable use of KWallet (KDE 4) for auth credentials
1628 --with-openssl This option does NOT affect the Subversion build
1629 process in any way. It tells an integrated Serf HTTP
1630 client library build process where to locate the
1631 OpenSSL library when (and only when) building Serf
1632 as an integrated part of the Subversion build
1633 process. When linking to a previously installed
1634 version of Serf instead, you do not need to use this
1636 --with-editor=PATH Specify a default editor for the subversion client.
1637 --with-zlib=PREFIX zlib compression library
1638 --with-jdk=PATH Try to use 'PATH/include' to find the JNI headers.
1639 If PATH is not specified, look for a Java
1640 Development Kit at JAVA_HOME.
1641 --with-jikes=PATH Specify the path to a jikes binary to use it as your
1642 Java compiler. The default is to look for jikes
1643 (PATH optional). This behavior can be switched off
1645 --with-swig=PATH Try to use 'PATH/bin/swig' to build the swig
1646 bindings. If PATH is not specified, look for a
1647 'swig' binary in your PATH.
1648 --with-ruby-sitedir=SITEDIR
1649 install Ruby bindings in SITEDIR (default is same as
1651 --with-ruby-test-verbose=LEVEL
1652 how to use output level for Ruby bindings tests
1654 --with-ctypesgen=PATH Specify the path to ctypesgen. This can either be
1655 the full path to a ctypesgen installation, the full
1656 path to a ctypesgen source tree or the full path to
1658 --with-junit=PATH Specify a path to the junit JAR file.
1660 Some influential environment variables:
1661 CC C compiler command
1662 CFLAGS C compiler flags
1663 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1664 nonstandard directory <lib dir>
1665 LIBS libraries to pass to the linker, e.g. -l<library>
1666 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1667 you have headers in a nonstandard directory <include dir>
1668 CXX C++ compiler command
1669 CXXFLAGS C++ compiler flags
1671 CXXCPP C++ preprocessor
1673 Use these variables to override the choices made by `configure' or to help
1674 it to find libraries and programs with nonstandard names/locations.
1676 Report bugs to <http://subversion.apache.org/>.
1681 if test "$ac_init_help" = "recursive"; then
1682 # If there are subdirs, report their specific --help.
1683 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1684 test -d "$ac_dir" ||
1685 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1690 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1692 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1693 # A ".." for each directory in $ac_dir_suffix.
1694 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1695 case $ac_top_builddir_sub in
1696 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1697 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1700 ac_abs_top_builddir=$ac_pwd
1701 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1702 # for backward compatibility:
1703 ac_top_builddir=$ac_top_build_prefix
1706 .) # We are building in place.
1708 ac_top_srcdir=$ac_top_builddir_sub
1709 ac_abs_top_srcdir=$ac_pwd ;;
1710 [\\/]* | ?:[\\/]* ) # Absolute name.
1711 ac_srcdir=$srcdir$ac_dir_suffix;
1712 ac_top_srcdir=$srcdir
1713 ac_abs_top_srcdir=$srcdir ;;
1715 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1716 ac_top_srcdir=$ac_top_build_prefix$srcdir
1717 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1719 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1721 cd "$ac_dir" || { ac_status=$?; continue; }
1722 # Check for guested configure.
1723 if test -f "$ac_srcdir/configure.gnu"; then
1725 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1726 elif test -f "$ac_srcdir/configure"; then
1728 $SHELL "$ac_srcdir/configure" --help=recursive
1730 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1732 cd "$ac_pwd" || { ac_status=$?; break; }
1736 test -n "$ac_init_help" && exit $ac_status
1737 if $ac_init_version; then
1739 subversion configure 1.8.5
1740 generated by GNU Autoconf 2.69
1742 Copyright (C) 2012 Free Software Foundation, Inc.
1743 This configure script is free software; the Free Software Foundation
1744 gives unlimited permission to copy, distribute and modify it.
1749 ## ------------------------ ##
1750 ## Autoconf initialization. ##
1751 ## ------------------------ ##
1753 # ac_fn_c_try_compile LINENO
1754 # --------------------------
1755 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1756 ac_fn_c_try_compile ()
1758 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1759 rm -f conftest.$ac_objext
1760 if { { ac_try="$ac_compile"
1762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1763 *) ac_try_echo=$ac_try;;
1765 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1766 $as_echo "$ac_try_echo"; } >&5
1767 (eval "$ac_compile") 2>conftest.err
1769 if test -s conftest.err; then
1770 grep -v '^ *+' conftest.err >conftest.er1
1771 cat conftest.er1 >&5
1772 mv -f conftest.er1 conftest.err
1774 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1775 test $ac_status = 0; } && {
1776 test -z "$ac_c_werror_flag" ||
1777 test ! -s conftest.err
1778 } && test -s conftest.$ac_objext; then :
1781 $as_echo "$as_me: failed program was:" >&5
1782 sed 's/^/| /' conftest.$ac_ext >&5
1786 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1787 as_fn_set_status $ac_retval
1789 } # ac_fn_c_try_compile
1791 # ac_fn_cxx_try_compile LINENO
1792 # ----------------------------
1793 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1794 ac_fn_cxx_try_compile ()
1796 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1797 rm -f conftest.$ac_objext
1798 if { { ac_try="$ac_compile"
1800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1801 *) ac_try_echo=$ac_try;;
1803 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1804 $as_echo "$ac_try_echo"; } >&5
1805 (eval "$ac_compile") 2>conftest.err
1807 if test -s conftest.err; then
1808 grep -v '^ *+' conftest.err >conftest.er1
1809 cat conftest.er1 >&5
1810 mv -f conftest.er1 conftest.err
1812 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1813 test $ac_status = 0; } && {
1814 test -z "$ac_cxx_werror_flag" ||
1815 test ! -s conftest.err
1816 } && test -s conftest.$ac_objext; then :
1819 $as_echo "$as_me: failed program was:" >&5
1820 sed 's/^/| /' conftest.$ac_ext >&5
1824 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1825 as_fn_set_status $ac_retval
1827 } # ac_fn_cxx_try_compile
1829 # ac_fn_c_try_cpp LINENO
1830 # ----------------------
1831 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1834 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1835 if { { ac_try="$ac_cpp conftest.$ac_ext"
1837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1838 *) ac_try_echo=$ac_try;;
1840 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1841 $as_echo "$ac_try_echo"; } >&5
1842 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1844 if test -s conftest.err; then
1845 grep -v '^ *+' conftest.err >conftest.er1
1846 cat conftest.er1 >&5
1847 mv -f conftest.er1 conftest.err
1849 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1850 test $ac_status = 0; } > conftest.i && {
1851 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1852 test ! -s conftest.err
1856 $as_echo "$as_me: failed program was:" >&5
1857 sed 's/^/| /' conftest.$ac_ext >&5
1861 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1862 as_fn_set_status $ac_retval
1866 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1867 # -------------------------------------------------------
1868 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1869 # the include files in INCLUDES and setting the cache variable VAR
1871 ac_fn_c_check_header_mongrel ()
1873 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1874 if eval \${$3+:} false; then :
1875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1876 $as_echo_n "checking for $2... " >&6; }
1877 if eval \${$3+:} false; then :
1878 $as_echo_n "(cached) " >&6
1881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1882 $as_echo "$ac_res" >&6; }
1884 # Is the header compilable?
1885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1886 $as_echo_n "checking $2 usability... " >&6; }
1887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1888 /* end confdefs.h. */
1892 if ac_fn_c_try_compile "$LINENO"; then :
1893 ac_header_compiler=yes
1895 ac_header_compiler=no
1897 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1899 $as_echo "$ac_header_compiler" >&6; }
1901 # Is the header present?
1902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1903 $as_echo_n "checking $2 presence... " >&6; }
1904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1905 /* end confdefs.h. */
1908 if ac_fn_c_try_cpp "$LINENO"; then :
1909 ac_header_preproc=yes
1911 ac_header_preproc=no
1913 rm -f conftest.err conftest.i conftest.$ac_ext
1914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1915 $as_echo "$ac_header_preproc" >&6; }
1917 # So? What about this header?
1918 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1920 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1921 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1922 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1923 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1926 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1927 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1928 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1929 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1930 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1931 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1932 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1933 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1934 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1935 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1936 ( $as_echo "## -------------------------------------------- ##
1937 ## Report this to http://subversion.apache.org/ ##
1938 ## -------------------------------------------- ##"
1939 ) | sed "s/^/$as_me: WARNING: /" >&2
1942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1943 $as_echo_n "checking for $2... " >&6; }
1944 if eval \${$3+:} false; then :
1945 $as_echo_n "(cached) " >&6
1947 eval "$3=\$ac_header_compiler"
1950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1951 $as_echo "$ac_res" >&6; }
1953 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1955 } # ac_fn_c_check_header_mongrel
1957 # ac_fn_c_try_run LINENO
1958 # ----------------------
1959 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1960 # that executables *can* be run.
1963 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1964 if { { ac_try="$ac_link"
1966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1967 *) ac_try_echo=$ac_try;;
1969 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1970 $as_echo "$ac_try_echo"; } >&5
1971 (eval "$ac_link") 2>&5
1973 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1974 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1975 { { case "(($ac_try" in
1976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1977 *) ac_try_echo=$ac_try;;
1979 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1980 $as_echo "$ac_try_echo"; } >&5
1981 (eval "$ac_try") 2>&5
1983 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1984 test $ac_status = 0; }; }; then :
1987 $as_echo "$as_me: program exited with status $ac_status" >&5
1988 $as_echo "$as_me: failed program was:" >&5
1989 sed 's/^/| /' conftest.$ac_ext >&5
1991 ac_retval=$ac_status
1993 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1994 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1995 as_fn_set_status $ac_retval
1999 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2000 # -------------------------------------------------------
2001 # Tests whether HEADER exists and can be compiled using the include files in
2002 # INCLUDES, setting the cache variable VAR accordingly.
2003 ac_fn_c_check_header_compile ()
2005 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2007 $as_echo_n "checking for $2... " >&6; }
2008 if eval \${$3+:} false; then :
2009 $as_echo_n "(cached) " >&6
2011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2012 /* end confdefs.h. */
2016 if ac_fn_c_try_compile "$LINENO"; then :
2021 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2025 $as_echo "$ac_res" >&6; }
2026 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2028 } # ac_fn_c_check_header_compile
2030 # ac_fn_c_try_link LINENO
2031 # -----------------------
2032 # Try to link conftest.$ac_ext, and return whether this succeeded.
2035 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2036 rm -f conftest.$ac_objext conftest$ac_exeext
2037 if { { ac_try="$ac_link"
2039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2040 *) ac_try_echo=$ac_try;;
2042 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2043 $as_echo "$ac_try_echo"; } >&5
2044 (eval "$ac_link") 2>conftest.err
2046 if test -s conftest.err; then
2047 grep -v '^ *+' conftest.err >conftest.er1
2048 cat conftest.er1 >&5
2049 mv -f conftest.er1 conftest.err
2051 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2052 test $ac_status = 0; } && {
2053 test -z "$ac_c_werror_flag" ||
2054 test ! -s conftest.err
2055 } && test -s conftest$ac_exeext && {
2056 test "$cross_compiling" = yes ||
2057 test -x conftest$ac_exeext
2061 $as_echo "$as_me: failed program was:" >&5
2062 sed 's/^/| /' conftest.$ac_ext >&5
2066 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2067 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2068 # interfere with the next link command; also delete a directory that is
2069 # left behind by Apple's compiler. We do this before executing the actions.
2070 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2071 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2072 as_fn_set_status $ac_retval
2074 } # ac_fn_c_try_link
2076 # ac_fn_c_check_func LINENO FUNC VAR
2077 # ----------------------------------
2078 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2079 ac_fn_c_check_func ()
2081 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2083 $as_echo_n "checking for $2... " >&6; }
2084 if eval \${$3+:} false; then :
2085 $as_echo_n "(cached) " >&6
2087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2088 /* end confdefs.h. */
2089 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2090 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2091 #define $2 innocuous_$2
2093 /* System header to define __stub macros and hopefully few prototypes,
2094 which can conflict with char $2 (); below.
2095 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2096 <limits.h> exists even on freestanding compilers. */
2099 # include <limits.h>
2101 # include <assert.h>
2106 /* Override any GCC internal prototype to avoid an error.
2107 Use char because int might match the return type of a GCC
2108 builtin and then its argument prototype would still apply. */
2113 /* The GNU C library defines this for functions which it implements
2114 to always fail with ENOSYS. Some functions are actually named
2115 something starting with __ and the normal name is an alias. */
2116 #if defined __stub_$2 || defined __stub___$2
2128 if ac_fn_c_try_link "$LINENO"; then :
2133 rm -f core conftest.err conftest.$ac_objext \
2134 conftest$ac_exeext conftest.$ac_ext
2137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2138 $as_echo "$ac_res" >&6; }
2139 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2141 } # ac_fn_c_check_func
2143 # ac_fn_cxx_try_cpp LINENO
2144 # ------------------------
2145 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2146 ac_fn_cxx_try_cpp ()
2148 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2149 if { { ac_try="$ac_cpp conftest.$ac_ext"
2151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2152 *) ac_try_echo=$ac_try;;
2154 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2155 $as_echo "$ac_try_echo"; } >&5
2156 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2158 if test -s conftest.err; then
2159 grep -v '^ *+' conftest.err >conftest.er1
2160 cat conftest.er1 >&5
2161 mv -f conftest.er1 conftest.err
2163 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2164 test $ac_status = 0; } > conftest.i && {
2165 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2166 test ! -s conftest.err
2170 $as_echo "$as_me: failed program was:" >&5
2171 sed 's/^/| /' conftest.$ac_ext >&5
2175 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2176 as_fn_set_status $ac_retval
2178 } # ac_fn_cxx_try_cpp
2180 # ac_fn_cxx_try_link LINENO
2181 # -------------------------
2182 # Try to link conftest.$ac_ext, and return whether this succeeded.
2183 ac_fn_cxx_try_link ()
2185 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2186 rm -f conftest.$ac_objext conftest$ac_exeext
2187 if { { ac_try="$ac_link"
2189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2190 *) ac_try_echo=$ac_try;;
2192 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2193 $as_echo "$ac_try_echo"; } >&5
2194 (eval "$ac_link") 2>conftest.err
2196 if test -s conftest.err; then
2197 grep -v '^ *+' conftest.err >conftest.er1
2198 cat conftest.er1 >&5
2199 mv -f conftest.er1 conftest.err
2201 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2202 test $ac_status = 0; } && {
2203 test -z "$ac_cxx_werror_flag" ||
2204 test ! -s conftest.err
2205 } && test -s conftest$ac_exeext && {
2206 test "$cross_compiling" = yes ||
2207 test -x conftest$ac_exeext
2211 $as_echo "$as_me: failed program was:" >&5
2212 sed 's/^/| /' conftest.$ac_ext >&5
2216 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2217 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2218 # interfere with the next link command; also delete a directory that is
2219 # left behind by Apple's compiler. We do this before executing the actions.
2220 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2221 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2222 as_fn_set_status $ac_retval
2224 } # ac_fn_cxx_try_link
2226 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2227 # -------------------------------------------
2228 # Tests whether TYPE exists after having included INCLUDES, setting cache
2229 # variable VAR accordingly.
2230 ac_fn_c_check_type ()
2232 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2234 $as_echo_n "checking for $2... " >&6; }
2235 if eval \${$3+:} false; then :
2236 $as_echo_n "(cached) " >&6
2239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2240 /* end confdefs.h. */
2251 if ac_fn_c_try_compile "$LINENO"; then :
2252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2253 /* end confdefs.h. */
2264 if ac_fn_c_try_compile "$LINENO"; then :
2269 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2271 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2275 $as_echo "$ac_res" >&6; }
2276 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2278 } # ac_fn_c_check_type
2279 cat >config.log <<_ACEOF
2280 This file contains any messages produced by compilers while
2281 running configure, to aid debugging if configure makes a mistake.
2283 It was created by subversion $as_me 1.8.5, which was
2284 generated by GNU Autoconf 2.69. Invocation command line was
2296 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2297 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2298 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2299 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2300 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2302 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2303 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2305 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2306 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2307 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2308 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2309 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2310 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2311 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2319 test -z "$as_dir" && as_dir=.
2320 $as_echo "PATH: $as_dir"
2336 # Keep a trace of the command line.
2337 # Strip out --no-create and --no-recursion so they do not pile up.
2338 # Strip out --silent because we don't want to record it for future runs.
2339 # Also quote any args containing shell meta-characters.
2340 # Make two passes to allow for proper duplicate-argument suppression.
2344 ac_must_keep_next=false
2350 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2351 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2352 | -silent | --silent | --silen | --sile | --sil)
2355 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2358 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2360 as_fn_append ac_configure_args1 " '$ac_arg'"
2361 if test $ac_must_keep_next = true; then
2362 ac_must_keep_next=false # Got value, back to normal.
2365 *=* | --config-cache | -C | -disable-* | --disable-* \
2366 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2367 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2368 | -with-* | --with-* | -without-* | --without-* | --x)
2369 case "$ac_configure_args0 " in
2370 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2373 -* ) ac_must_keep_next=true ;;
2376 as_fn_append ac_configure_args " '$ac_arg'"
2381 { ac_configure_args0=; unset ac_configure_args0;}
2382 { ac_configure_args1=; unset ac_configure_args1;}
2384 # When interrupted or exit'd, cleanup temporary files, and complete
2385 # config.log. We remove comments because anyway the quotes in there
2386 # would cause problems or look ugly.
2387 # WARNING: Use '\'' to represent an apostrophe within the trap.
2388 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2389 trap 'exit_status=$?
2390 # Save into config.log some information that might help in debugging.
2394 $as_echo "## ---------------- ##
2395 ## Cache variables. ##
2396 ## ---------------- ##"
2398 # The following way of writing the cache mishandles newlines in values,
2400 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2401 eval ac_val=\$$ac_var
2405 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2406 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2409 _ | IFS | as_nl) ;; #(
2410 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2411 *) { eval $ac_var=; unset $ac_var;} ;;
2416 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2417 *${as_nl}ac_space=\ *)
2419 "s/'\''/'\''\\\\'\'''\''/g;
2420 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2423 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2430 $as_echo "## ----------------- ##
2431 ## Output variables. ##
2432 ## ----------------- ##"
2434 for ac_var in $ac_subst_vars
2436 eval ac_val=\$$ac_var
2438 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2440 $as_echo "$ac_var='\''$ac_val'\''"
2444 if test -n "$ac_subst_files"; then
2445 $as_echo "## ------------------- ##
2446 ## File substitutions. ##
2447 ## ------------------- ##"
2449 for ac_var in $ac_subst_files
2451 eval ac_val=\$$ac_var
2453 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2455 $as_echo "$ac_var='\''$ac_val'\''"
2460 if test -s confdefs.h; then
2461 $as_echo "## ----------- ##
2468 test "$ac_signal" != 0 &&
2469 $as_echo "$as_me: caught signal $ac_signal"
2470 $as_echo "$as_me: exit $exit_status"
2472 rm -f core *.core core.conftest.* &&
2473 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2476 for ac_signal in 1 2 13 15; do
2477 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2481 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2482 rm -f -r conftest* confdefs.h
2484 $as_echo "/* confdefs.h */" > confdefs.h
2486 # Predefined preprocessor variables.
2488 cat >>confdefs.h <<_ACEOF
2489 #define PACKAGE_NAME "$PACKAGE_NAME"
2492 cat >>confdefs.h <<_ACEOF
2493 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2496 cat >>confdefs.h <<_ACEOF
2497 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2500 cat >>confdefs.h <<_ACEOF
2501 #define PACKAGE_STRING "$PACKAGE_STRING"
2504 cat >>confdefs.h <<_ACEOF
2505 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2508 cat >>confdefs.h <<_ACEOF
2509 #define PACKAGE_URL "$PACKAGE_URL"
2513 # Let the site file select an alternate cache file if it wants to.
2514 # Prefer an explicitly selected file to automatically selected ones.
2517 if test -n "$CONFIG_SITE"; then
2518 # We do not want a PATH search for config.site.
2519 case $CONFIG_SITE in #((
2520 -*) ac_site_file1=./$CONFIG_SITE;;
2521 */*) ac_site_file1=$CONFIG_SITE;;
2522 *) ac_site_file1=./$CONFIG_SITE;;
2524 elif test "x$prefix" != xNONE; then
2525 ac_site_file1=$prefix/share/config.site
2526 ac_site_file2=$prefix/etc/config.site
2528 ac_site_file1=$ac_default_prefix/share/config.site
2529 ac_site_file2=$ac_default_prefix/etc/config.site
2531 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2533 test "x$ac_site_file" = xNONE && continue
2534 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2535 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2536 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2537 sed 's/^/| /' "$ac_site_file" >&5
2539 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2540 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2541 as_fn_error $? "failed to load site script $ac_site_file
2542 See \`config.log' for more details" "$LINENO" 5; }
2546 if test -r "$cache_file"; then
2547 # Some versions of bash will fail to source /dev/null (special files
2548 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2549 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2550 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2551 $as_echo "$as_me: loading cache $cache_file" >&6;}
2553 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2554 *) . "./$cache_file";;
2558 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2559 $as_echo "$as_me: creating cache $cache_file" >&6;}
2563 # Check that the precious variables saved in the cache have kept the same
2565 ac_cache_corrupted=false
2566 for ac_var in $ac_precious_vars; do
2567 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2568 eval ac_new_set=\$ac_env_${ac_var}_set
2569 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2570 eval ac_new_val=\$ac_env_${ac_var}_value
2571 case $ac_old_set,$ac_new_set in
2573 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2574 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2575 ac_cache_corrupted=: ;;
2577 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2578 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2579 ac_cache_corrupted=: ;;
2582 if test "x$ac_old_val" != "x$ac_new_val"; then
2583 # differences in whitespace do not lead to failure.
2584 ac_old_val_w=`echo x $ac_old_val`
2585 ac_new_val_w=`echo x $ac_new_val`
2586 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2587 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2588 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2589 ac_cache_corrupted=:
2591 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2592 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2593 eval $ac_var=\$ac_old_val
2595 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2596 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2597 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2598 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2601 # Pass precious variables to config.status.
2602 if test "$ac_new_set" = set; then
2604 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2605 *) ac_arg=$ac_var=$ac_new_val ;;
2607 case " $ac_configure_args " in
2608 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2609 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2613 if $ac_cache_corrupted; then
2614 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2615 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2616 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2617 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2618 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2620 ## -------------------- ##
2621 ## Main body of script. ##
2622 ## -------------------- ##
2625 ac_cpp='$CPP $CPPFLAGS'
2626 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2627 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2628 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2634 for ac_dir in build "$srcdir"/build; do
2635 if test -f "$ac_dir/install-sh"; then
2637 ac_install_sh="$ac_aux_dir/install-sh -c"
2639 elif test -f "$ac_dir/install.sh"; then
2641 ac_install_sh="$ac_aux_dir/install.sh -c"
2643 elif test -f "$ac_dir/shtool"; then
2645 ac_install_sh="$ac_aux_dir/shtool install -c"
2649 if test -z "$ac_aux_dir"; then
2650 as_fn_error $? "cannot find install-sh, install.sh, or shtool in build \"$srcdir\"/build" "$LINENO" 5
2653 # These three variables are undocumented and unsupported,
2654 # and are intended to be withdrawn in a future Autoconf release.
2655 # They can cause serious problems if a builder's source tree is in a directory
2656 # whose full name contains unusual characters.
2657 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2658 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2659 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2663 { $as_echo "$as_me:${as_lineno-$LINENO}: Configuring Subversion 1.8.5" >&5
2664 $as_echo "$as_me: Configuring Subversion 1.8.5" >&6;}
2666 abs_srcdir="`cd $srcdir && pwd`"
2668 abs_builddir="`pwd`"
2670 if test "$abs_srcdir" = "$abs_builddir"; then
2671 canonicalized_srcdir=""
2673 canonicalized_srcdir="$srcdir/"
2677 SWIG_LDFLAGS="$LDFLAGS"
2680 # Generate config.nice early (before the arguments are munged)
2682 { $as_echo "$as_me:${as_lineno-$LINENO}: creating config.nice" >&5
2683 $as_echo "$as_me: creating config.nice" >&6;}
2684 # This little dance satisfies Cygwin, which cannot overwrite in-use files.
2685 if test -f "config.nice"; then
2686 mv "config.nice" "config.nice.old"
2689 cat >"config.nice" <<EOF
2692 # Created by configure
2694 '$0' $ac_configure_args "\$@"
2697 chmod +x "config.nice"
2698 rm -f "config.nice.old"
2701 # ==== Check for programs ====================================================
2703 # Look for a C compiler (before anything can set CFLAGS)
2704 CMAINTAINERFLAGS="$CUSERFLAGS"
2705 CUSERFLAGS="$CFLAGS"
2707 ac_cpp='$CPP $CPPFLAGS'
2708 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2709 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2710 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2711 if test -n "$ac_tool_prefix"; then
2712 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2713 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2715 $as_echo_n "checking for $ac_word... " >&6; }
2716 if ${ac_cv_prog_CC+:} false; then :
2717 $as_echo_n "(cached) " >&6
2719 if test -n "$CC"; then
2720 ac_cv_prog_CC="$CC" # Let the user override the test.
2722 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2726 test -z "$as_dir" && as_dir=.
2727 for ac_exec_ext in '' $ac_executable_extensions; do
2728 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2729 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2730 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2740 if test -n "$CC"; then
2741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2742 $as_echo "$CC" >&6; }
2744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2745 $as_echo "no" >&6; }
2750 if test -z "$ac_cv_prog_CC"; then
2752 # Extract the first word of "gcc", so it can be a program name with args.
2753 set dummy gcc; ac_word=$2
2754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2755 $as_echo_n "checking for $ac_word... " >&6; }
2756 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2757 $as_echo_n "(cached) " >&6
2759 if test -n "$ac_ct_CC"; then
2760 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2766 test -z "$as_dir" && as_dir=.
2767 for ac_exec_ext in '' $ac_executable_extensions; do
2768 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2769 ac_cv_prog_ac_ct_CC="gcc"
2770 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2779 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2780 if test -n "$ac_ct_CC"; then
2781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2782 $as_echo "$ac_ct_CC" >&6; }
2784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2785 $as_echo "no" >&6; }
2788 if test "x$ac_ct_CC" = x; then
2791 case $cross_compiling:$ac_tool_warned in
2793 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2794 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2795 ac_tool_warned=yes ;;
2803 if test -z "$CC"; then
2804 if test -n "$ac_tool_prefix"; then
2805 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2806 set dummy ${ac_tool_prefix}cc; ac_word=$2
2807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2808 $as_echo_n "checking for $ac_word... " >&6; }
2809 if ${ac_cv_prog_CC+:} false; then :
2810 $as_echo_n "(cached) " >&6
2812 if test -n "$CC"; then
2813 ac_cv_prog_CC="$CC" # Let the user override the test.
2815 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2819 test -z "$as_dir" && as_dir=.
2820 for ac_exec_ext in '' $ac_executable_extensions; do
2821 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2822 ac_cv_prog_CC="${ac_tool_prefix}cc"
2823 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2833 if test -n "$CC"; then
2834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2835 $as_echo "$CC" >&6; }
2837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2838 $as_echo "no" >&6; }
2844 if test -z "$CC"; then
2845 # Extract the first word of "cc", so it can be a program name with args.
2846 set dummy cc; ac_word=$2
2847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2848 $as_echo_n "checking for $ac_word... " >&6; }
2849 if ${ac_cv_prog_CC+:} false; then :
2850 $as_echo_n "(cached) " >&6
2852 if test -n "$CC"; then
2853 ac_cv_prog_CC="$CC" # Let the user override the test.
2856 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2860 test -z "$as_dir" && as_dir=.
2861 for ac_exec_ext in '' $ac_executable_extensions; do
2862 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2863 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2864 ac_prog_rejected=yes
2868 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2875 if test $ac_prog_rejected = yes; then
2876 # We found a bogon in the path, so make sure we never use it.
2877 set dummy $ac_cv_prog_CC
2879 if test $# != 0; then
2880 # We chose a different compiler from the bogus one.
2881 # However, it has the same basename, so the bogon will be chosen
2882 # first if we set CC to just the basename; use the full file name.
2884 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2890 if test -n "$CC"; then
2891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2892 $as_echo "$CC" >&6; }
2894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2895 $as_echo "no" >&6; }
2900 if test -z "$CC"; then
2901 if test -n "$ac_tool_prefix"; then
2902 for ac_prog in cl.exe
2904 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2905 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2907 $as_echo_n "checking for $ac_word... " >&6; }
2908 if ${ac_cv_prog_CC+:} false; then :
2909 $as_echo_n "(cached) " >&6
2911 if test -n "$CC"; then
2912 ac_cv_prog_CC="$CC" # Let the user override the test.
2914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2918 test -z "$as_dir" && as_dir=.
2919 for ac_exec_ext in '' $ac_executable_extensions; do
2920 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2921 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2922 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2932 if test -n "$CC"; then
2933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2934 $as_echo "$CC" >&6; }
2936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2937 $as_echo "no" >&6; }
2941 test -n "$CC" && break
2944 if test -z "$CC"; then
2946 for ac_prog in cl.exe
2948 # Extract the first word of "$ac_prog", so it can be a program name with args.
2949 set dummy $ac_prog; ac_word=$2
2950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2951 $as_echo_n "checking for $ac_word... " >&6; }
2952 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2953 $as_echo_n "(cached) " >&6
2955 if test -n "$ac_ct_CC"; then
2956 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2962 test -z "$as_dir" && as_dir=.
2963 for ac_exec_ext in '' $ac_executable_extensions; do
2964 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2965 ac_cv_prog_ac_ct_CC="$ac_prog"
2966 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2975 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2976 if test -n "$ac_ct_CC"; then
2977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2978 $as_echo "$ac_ct_CC" >&6; }
2980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2981 $as_echo "no" >&6; }
2985 test -n "$ac_ct_CC" && break
2988 if test "x$ac_ct_CC" = x; then
2991 case $cross_compiling:$ac_tool_warned in
2993 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2994 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2995 ac_tool_warned=yes ;;
3004 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3005 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3006 as_fn_error $? "no acceptable C compiler found in \$PATH
3007 See \`config.log' for more details" "$LINENO" 5; }
3009 # Provide some information about the compiler.
3010 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3013 for ac_option in --version -v -V -qversion; do
3014 { { ac_try="$ac_compiler $ac_option >&5"
3016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3017 *) ac_try_echo=$ac_try;;
3019 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3020 $as_echo "$ac_try_echo"; } >&5
3021 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3023 if test -s conftest.err; then
3025 ... rest of stderr output deleted ...
3026 10q' conftest.err >conftest.er1
3027 cat conftest.er1 >&5
3029 rm -f conftest.er1 conftest.err
3030 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3031 test $ac_status = 0; }
3034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3035 /* end confdefs.h. */
3045 ac_clean_files_save=$ac_clean_files
3046 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3047 # Try to create an executable without -o first, disregard a.out.
3048 # It will help us diagnose broken compilers, and finding out an intuition
3050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3051 $as_echo_n "checking whether the C compiler works... " >&6; }
3052 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3054 # The possible output files:
3055 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3058 for ac_file in $ac_files
3061 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3062 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3067 if { { ac_try="$ac_link_default"
3069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3070 *) ac_try_echo=$ac_try;;
3072 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3073 $as_echo "$ac_try_echo"; } >&5
3074 (eval "$ac_link_default") 2>&5
3076 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3077 test $ac_status = 0; }; then :
3078 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3079 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3080 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3081 # so that the user can short-circuit this test for compilers unknown to
3083 for ac_file in $ac_files ''
3085 test -f "$ac_file" || continue
3087 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3090 # We found the default executable, but exeext='' is most
3094 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3096 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3098 # We set ac_cv_exeext here because the later test for it is not
3099 # safe: cross compilers may not add the suffix if given an `-o'
3100 # argument, so we may need to know it at that point already.
3101 # Even if this section looks crufty: it has the advantage of
3108 test "$ac_cv_exeext" = no && ac_cv_exeext=
3113 if test -z "$ac_file"; then :
3114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3115 $as_echo "no" >&6; }
3116 $as_echo "$as_me: failed program was:" >&5
3117 sed 's/^/| /' conftest.$ac_ext >&5
3119 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3120 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3121 as_fn_error 77 "C compiler cannot create executables
3122 See \`config.log' for more details" "$LINENO" 5; }
3124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3125 $as_echo "yes" >&6; }
3127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3128 $as_echo_n "checking for C compiler default output file name... " >&6; }
3129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3130 $as_echo "$ac_file" >&6; }
3131 ac_exeext=$ac_cv_exeext
3133 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3134 ac_clean_files=$ac_clean_files_save
3135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3136 $as_echo_n "checking for suffix of executables... " >&6; }
3137 if { { ac_try="$ac_link"
3139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3140 *) ac_try_echo=$ac_try;;
3142 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3143 $as_echo "$ac_try_echo"; } >&5
3144 (eval "$ac_link") 2>&5
3146 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3147 test $ac_status = 0; }; then :
3148 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3149 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3150 # work properly (i.e., refer to `conftest.exe'), while it won't with
3152 for ac_file in conftest.exe conftest conftest.*; do
3153 test -f "$ac_file" || continue
3155 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3156 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3162 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3163 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3164 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3165 See \`config.log' for more details" "$LINENO" 5; }
3167 rm -f conftest conftest$ac_cv_exeext
3168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3169 $as_echo "$ac_cv_exeext" >&6; }
3171 rm -f conftest.$ac_ext
3172 EXEEXT=$ac_cv_exeext
3174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3175 /* end confdefs.h. */
3180 FILE *f = fopen ("conftest.out", "w");
3181 return ferror (f) || fclose (f) != 0;
3187 ac_clean_files="$ac_clean_files conftest.out"
3188 # Check that the compiler produces executables we can run. If not, either
3189 # the compiler is broken, or we cross compile.
3190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3191 $as_echo_n "checking whether we are cross compiling... " >&6; }
3192 if test "$cross_compiling" != yes; then
3193 { { ac_try="$ac_link"
3195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3196 *) ac_try_echo=$ac_try;;
3198 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3199 $as_echo "$ac_try_echo"; } >&5
3200 (eval "$ac_link") 2>&5
3202 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3203 test $ac_status = 0; }
3204 if { ac_try='./conftest$ac_cv_exeext'
3205 { { case "(($ac_try" in
3206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3207 *) ac_try_echo=$ac_try;;
3209 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3210 $as_echo "$ac_try_echo"; } >&5
3211 (eval "$ac_try") 2>&5
3213 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3214 test $ac_status = 0; }; }; then
3217 if test "$cross_compiling" = maybe; then
3220 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3221 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3222 as_fn_error $? "cannot run C compiled programs.
3223 If you meant to cross compile, use \`--host'.
3224 See \`config.log' for more details" "$LINENO" 5; }
3228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3229 $as_echo "$cross_compiling" >&6; }
3231 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3232 ac_clean_files=$ac_clean_files_save
3233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3234 $as_echo_n "checking for suffix of object files... " >&6; }
3235 if ${ac_cv_objext+:} false; then :
3236 $as_echo_n "(cached) " >&6
3238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3239 /* end confdefs.h. */
3249 rm -f conftest.o conftest.obj
3250 if { { ac_try="$ac_compile"
3252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3253 *) ac_try_echo=$ac_try;;
3255 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3256 $as_echo "$ac_try_echo"; } >&5
3257 (eval "$ac_compile") 2>&5
3259 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3260 test $ac_status = 0; }; then :
3261 for ac_file in conftest.o conftest.obj conftest.*; do
3262 test -f "$ac_file" || continue;
3264 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3265 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3270 $as_echo "$as_me: failed program was:" >&5
3271 sed 's/^/| /' conftest.$ac_ext >&5
3273 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3274 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3275 as_fn_error $? "cannot compute suffix of object files: cannot compile
3276 See \`config.log' for more details" "$LINENO" 5; }
3278 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3281 $as_echo "$ac_cv_objext" >&6; }
3282 OBJEXT=$ac_cv_objext
3284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3285 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3286 if ${ac_cv_c_compiler_gnu+:} false; then :
3287 $as_echo_n "(cached) " >&6
3289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3290 /* end confdefs.h. */
3303 if ac_fn_c_try_compile "$LINENO"; then :
3308 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3309 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3313 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3314 if test $ac_compiler_gnu = yes; then
3319 ac_test_CFLAGS=${CFLAGS+set}
3320 ac_save_CFLAGS=$CFLAGS
3321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3322 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3323 if ${ac_cv_prog_cc_g+:} false; then :
3324 $as_echo_n "(cached) " >&6
3326 ac_save_c_werror_flag=$ac_c_werror_flag
3327 ac_c_werror_flag=yes
3330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3331 /* end confdefs.h. */
3341 if ac_fn_c_try_compile "$LINENO"; then :
3345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3346 /* end confdefs.h. */
3356 if ac_fn_c_try_compile "$LINENO"; then :
3359 ac_c_werror_flag=$ac_save_c_werror_flag
3361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3362 /* end confdefs.h. */
3372 if ac_fn_c_try_compile "$LINENO"; then :
3375 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3377 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3379 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3380 ac_c_werror_flag=$ac_save_c_werror_flag
3382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3383 $as_echo "$ac_cv_prog_cc_g" >&6; }
3384 if test "$ac_test_CFLAGS" = set; then
3385 CFLAGS=$ac_save_CFLAGS
3386 elif test $ac_cv_prog_cc_g = yes; then
3387 if test "$GCC" = yes; then
3393 if test "$GCC" = yes; then
3399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3400 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3401 if ${ac_cv_prog_cc_c89+:} false; then :
3402 $as_echo_n "(cached) " >&6
3404 ac_cv_prog_cc_c89=no
3406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3407 /* end confdefs.h. */
3411 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3412 struct buf { int x; };
3413 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3414 static char *e (p, i)
3420 static char *f (char * (*g) (char **, int), char **p, ...)
3425 s = g (p, va_arg (v,int));
3430 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3431 function prototypes and stuff, but not '\xHH' hex character constants.
3432 These don't provoke an error unfortunately, instead are silently treated
3433 as 'x'. The following induces an error, until -std is added to get
3434 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3435 array size at least. It's necessary to write '\x00'==0 to get something
3436 that's true only with -std. */
3437 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3439 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3440 inside strings and character constants. */
3442 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3444 int test (int i, double x);
3445 struct s1 {int (*f) (int a);};
3446 struct s2 {int (*f) (double a);};
3447 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3453 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3458 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3459 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3461 CC="$ac_save_CC $ac_arg"
3462 if ac_fn_c_try_compile "$LINENO"; then :
3463 ac_cv_prog_cc_c89=$ac_arg
3465 rm -f core conftest.err conftest.$ac_objext
3466 test "x$ac_cv_prog_cc_c89" != "xno" && break
3468 rm -f conftest.$ac_ext
3473 case "x$ac_cv_prog_cc_c89" in
3475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3476 $as_echo "none needed" >&6; } ;;
3478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3479 $as_echo "unsupported" >&6; } ;;
3481 CC="$CC $ac_cv_prog_cc_c89"
3482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3483 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3485 if test "x$ac_cv_prog_cc_c89" != xno; then :
3490 ac_cpp='$CPP $CPPFLAGS'
3491 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3492 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3493 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3497 CFLAGS_KEEP="$CFLAGS"
3501 _svn_xxflags__save="$CFLAGS"
3503 ac_cpp='$CPP $CPPFLAGS'
3504 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3505 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3506 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -std=c90" >&5
3509 $as_echo_n "checking if $CC accepts -std=c90... " >&6; }
3510 CFLAGS="-std=c90 $CFLAGS"
3511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3512 /* end confdefs.h. */
3515 if ac_fn_c_try_compile "$LINENO"; then :
3517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3518 $as_echo "yes" >&6; }
3523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3524 $as_echo "no" >&6; }
3525 CFLAGS="$_svn_xxflags__save"
3528 _svn_xxflags__save="$CFLAGS"
3530 ac_cpp='$CPP $CPPFLAGS'
3531 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3532 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3533 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -std=c89" >&5
3536 $as_echo_n "checking if $CC accepts -std=c89... " >&6; }
3537 CFLAGS="-std=c89 $CFLAGS"
3538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3539 /* end confdefs.h. */
3542 if ac_fn_c_try_compile "$LINENO"; then :
3544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3545 $as_echo "yes" >&6; }
3550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3551 $as_echo "no" >&6; }
3552 CFLAGS="$_svn_xxflags__save"
3555 _svn_xxflags__save="$CFLAGS"
3557 ac_cpp='$CPP $CPPFLAGS'
3558 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3559 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3560 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -ansi" >&5
3563 $as_echo_n "checking if $CC accepts -ansi... " >&6; }
3564 CFLAGS="-ansi $CFLAGS"
3565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3566 /* end confdefs.h. */
3569 if ac_fn_c_try_compile "$LINENO"; then :
3571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3572 $as_echo "yes" >&6; }
3577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3578 $as_echo "no" >&6; }
3579 CFLAGS="$_svn_xxflags__save"
3583 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3585 ac_cpp='$CPP $CPPFLAGS'
3586 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3587 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3588 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3594 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3596 ac_cpp='$CPP $CPPFLAGS'
3597 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3598 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3599 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3607 ac_cpp='$CPP $CPPFLAGS'
3608 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3609 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3610 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3614 CMODEFLAGS="$CFLAGS"
3615 CFLAGS="$CFLAGS_KEEP"
3620 _svn_xxflags__save="$CFLAGS"
3622 ac_cpp='$CPP $CPPFLAGS'
3623 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3624 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3625 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -Werror=unknown-warning-option" >&5
3628 $as_echo_n "checking if $CC accepts -Werror=unknown-warning-option... " >&6; }
3629 CFLAGS="-Werror=unknown-warning-option $CFLAGS"
3630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3631 /* end confdefs.h. */
3634 if ac_fn_c_try_compile "$LINENO"; then :
3636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3637 $as_echo "yes" >&6; }
3642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3643 $as_echo "no" >&6; }
3644 CFLAGS="$_svn_xxflags__save"
3648 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3650 ac_cpp='$CPP $CPPFLAGS'
3651 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3652 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3653 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3658 # Look for a C++ compiler (before anything can set CXXFLAGS)
3659 CXXMAINTAINERFLAGS="$CXXUSERFLAGS"
3660 CXXUSERFLAGS="$CXXFLAGS"
3662 ac_cpp='$CXXCPP $CPPFLAGS'
3663 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3664 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3665 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3666 if test -z "$CXX"; then
3667 if test -n "$CCC"; then
3670 if test -n "$ac_tool_prefix"; then
3671 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3673 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3674 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3676 $as_echo_n "checking for $ac_word... " >&6; }
3677 if ${ac_cv_prog_CXX+:} false; then :
3678 $as_echo_n "(cached) " >&6
3680 if test -n "$CXX"; then
3681 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3687 test -z "$as_dir" && as_dir=.
3688 for ac_exec_ext in '' $ac_executable_extensions; do
3689 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3690 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3691 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3701 if test -n "$CXX"; then
3702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3703 $as_echo "$CXX" >&6; }
3705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3706 $as_echo "no" >&6; }
3710 test -n "$CXX" && break
3713 if test -z "$CXX"; then
3715 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3717 # Extract the first word of "$ac_prog", so it can be a program name with args.
3718 set dummy $ac_prog; ac_word=$2
3719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3720 $as_echo_n "checking for $ac_word... " >&6; }
3721 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
3722 $as_echo_n "(cached) " >&6
3724 if test -n "$ac_ct_CXX"; then
3725 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3731 test -z "$as_dir" && as_dir=.
3732 for ac_exec_ext in '' $ac_executable_extensions; do
3733 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3734 ac_cv_prog_ac_ct_CXX="$ac_prog"
3735 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3744 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3745 if test -n "$ac_ct_CXX"; then
3746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3747 $as_echo "$ac_ct_CXX" >&6; }
3749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3750 $as_echo "no" >&6; }
3754 test -n "$ac_ct_CXX" && break
3757 if test "x$ac_ct_CXX" = x; then
3760 case $cross_compiling:$ac_tool_warned in
3762 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3763 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3764 ac_tool_warned=yes ;;
3772 # Provide some information about the compiler.
3773 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3776 for ac_option in --version -v -V -qversion; do
3777 { { ac_try="$ac_compiler $ac_option >&5"
3779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3780 *) ac_try_echo=$ac_try;;
3782 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3783 $as_echo "$ac_try_echo"; } >&5
3784 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3786 if test -s conftest.err; then
3788 ... rest of stderr output deleted ...
3789 10q' conftest.err >conftest.er1
3790 cat conftest.er1 >&5
3792 rm -f conftest.er1 conftest.err
3793 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3794 test $ac_status = 0; }
3797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3798 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3799 if ${ac_cv_cxx_compiler_gnu+:} false; then :
3800 $as_echo_n "(cached) " >&6
3802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3803 /* end confdefs.h. */
3816 if ac_fn_cxx_try_compile "$LINENO"; then :
3821 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3822 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3826 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3827 if test $ac_compiler_gnu = yes; then
3832 ac_test_CXXFLAGS=${CXXFLAGS+set}
3833 ac_save_CXXFLAGS=$CXXFLAGS
3834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3835 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3836 if ${ac_cv_prog_cxx_g+:} false; then :
3837 $as_echo_n "(cached) " >&6
3839 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3840 ac_cxx_werror_flag=yes
3843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3844 /* end confdefs.h. */
3854 if ac_fn_cxx_try_compile "$LINENO"; then :
3855 ac_cv_prog_cxx_g=yes
3858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3859 /* end confdefs.h. */
3869 if ac_fn_cxx_try_compile "$LINENO"; then :
3872 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3875 /* end confdefs.h. */
3885 if ac_fn_cxx_try_compile "$LINENO"; then :
3886 ac_cv_prog_cxx_g=yes
3888 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3890 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3892 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3893 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3896 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3897 if test "$ac_test_CXXFLAGS" = set; then
3898 CXXFLAGS=$ac_save_CXXFLAGS
3899 elif test $ac_cv_prog_cxx_g = yes; then
3900 if test "$GXX" = yes; then
3906 if test "$GXX" = yes; then
3913 ac_cpp='$CPP $CPPFLAGS'
3914 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3915 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3916 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3920 CXXFLAGS_KEEP="$CXXFLAGS"
3924 _svn_xxflags__save="$CXXFLAGS"
3926 ac_cpp='$CXXCPP $CPPFLAGS'
3927 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3928 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3929 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CXX accepts -std=c++98" >&5
3932 $as_echo_n "checking if $CXX accepts -std=c++98... " >&6; }
3933 CXXFLAGS="-std=c++98 $CXXFLAGS"
3934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3935 /* end confdefs.h. */
3938 if ac_fn_cxx_try_compile "$LINENO"; then :
3940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3941 $as_echo "yes" >&6; }
3946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3947 $as_echo "no" >&6; }
3948 CXXFLAGS="$_svn_xxflags__save"
3952 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3954 ac_cpp='$CPP $CPPFLAGS'
3955 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3956 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3957 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3961 CXXMODEFLAGS="$CXXFLAGS"
3962 CXXFLAGS="$CXXFLAGS_KEEP"
3967 _svn_xxflags__save="$CXXFLAGS"
3969 ac_cpp='$CXXCPP $CPPFLAGS'
3970 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3971 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3972 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CXX accepts -Werror=unknown-warning-option" >&5
3975 $as_echo_n "checking if $CXX accepts -Werror=unknown-warning-option... " >&6; }
3976 CXXFLAGS="-Werror=unknown-warning-option $CXXFLAGS"
3977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3978 /* end confdefs.h. */
3981 if ac_fn_cxx_try_compile "$LINENO"; then :
3983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3984 $as_echo "yes" >&6; }
3989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3990 $as_echo "no" >&6; }
3991 CXXFLAGS="$_svn_xxflags__save"
3995 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3997 ac_cpp='$CPP $CPPFLAGS'
3998 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3999 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4000 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4005 # Look for a C pre-processor
4007 ac_cpp='$CPP $CPPFLAGS'
4008 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4009 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4010 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4012 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4013 # On Suns, sometimes $CPP names a directory.
4014 if test -n "$CPP" && test -d "$CPP"; then
4017 if test -z "$CPP"; then
4018 if ${ac_cv_prog_CPP+:} false; then :
4019 $as_echo_n "(cached) " >&6
4021 # Double quotes because CPP needs to be expanded
4022 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4025 for ac_c_preproc_warn_flag in '' yes
4027 # Use a header file that comes with gcc, so configuring glibc
4028 # with a fresh cross-compiler works.
4029 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4030 # <limits.h> exists even on freestanding compilers.
4031 # On the NeXT, cc -E runs the code through the compiler's parser,
4032 # not just through cpp. "Syntax error" is here to catch this case.
4033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4034 /* end confdefs.h. */
4036 # include <limits.h>
4038 # include <assert.h>
4042 if ac_fn_c_try_cpp "$LINENO"; then :
4045 # Broken: fails on valid input.
4048 rm -f conftest.err conftest.i conftest.$ac_ext
4050 # OK, works on sane cases. Now check whether nonexistent headers
4051 # can be detected and how.
4052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4053 /* end confdefs.h. */
4054 #include <ac_nonexistent.h>
4056 if ac_fn_c_try_cpp "$LINENO"; then :
4057 # Broken: success on invalid input.
4060 # Passes both tests.
4064 rm -f conftest.err conftest.i conftest.$ac_ext
4067 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4068 rm -f conftest.i conftest.err conftest.$ac_ext
4069 if $ac_preproc_ok; then :
4081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4082 $as_echo "$CPP" >&6; }
4084 for ac_c_preproc_warn_flag in '' yes
4086 # Use a header file that comes with gcc, so configuring glibc
4087 # with a fresh cross-compiler works.
4088 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4089 # <limits.h> exists even on freestanding compilers.
4090 # On the NeXT, cc -E runs the code through the compiler's parser,
4091 # not just through cpp. "Syntax error" is here to catch this case.
4092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4093 /* end confdefs.h. */
4095 # include <limits.h>
4097 # include <assert.h>
4101 if ac_fn_c_try_cpp "$LINENO"; then :
4104 # Broken: fails on valid input.
4107 rm -f conftest.err conftest.i conftest.$ac_ext
4109 # OK, works on sane cases. Now check whether nonexistent headers
4110 # can be detected and how.
4111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4112 /* end confdefs.h. */
4113 #include <ac_nonexistent.h>
4115 if ac_fn_c_try_cpp "$LINENO"; then :
4116 # Broken: success on invalid input.
4119 # Passes both tests.
4123 rm -f conftest.err conftest.i conftest.$ac_ext
4126 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4127 rm -f conftest.i conftest.err conftest.$ac_ext
4128 if $ac_preproc_ok; then :
4131 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4132 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4133 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4134 See \`config.log' for more details" "$LINENO" 5; }
4138 ac_cpp='$CPP $CPPFLAGS'
4139 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4140 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4141 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4144 # Look for a good sed
4145 # AC_PROG_SED was introduced in Autoconf 2.59b
4146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4147 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4148 if ${ac_cv_path_SED+:} false; then :
4149 $as_echo_n "(cached) " >&6
4151 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4152 for ac_i in 1 2 3 4 5 6 7; do
4153 ac_script="$ac_script$as_nl$ac_script"
4155 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4156 { ac_script=; unset ac_script;}
4157 if test -z "$SED"; then
4158 ac_path_SED_found=false
4159 # Loop through the user's path and test for each of PROGNAME-LIST
4160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4164 test -z "$as_dir" && as_dir=.
4165 for ac_prog in sed gsed; do
4166 for ac_exec_ext in '' $ac_executable_extensions; do
4167 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4168 as_fn_executable_p "$ac_path_SED" || continue
4169 # Check for GNU ac_path_SED and select it if it is found.
4170 # Check for GNU $ac_path_SED
4171 case `"$ac_path_SED" --version 2>&1` in
4173 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4176 $as_echo_n 0123456789 >"conftest.in"
4179 cat "conftest.in" "conftest.in" >"conftest.tmp"
4180 mv "conftest.tmp" "conftest.in"
4181 cp "conftest.in" "conftest.nl"
4182 $as_echo '' >> "conftest.nl"
4183 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4184 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4185 as_fn_arith $ac_count + 1 && ac_count=$as_val
4186 if test $ac_count -gt ${ac_path_SED_max-0}; then
4187 # Best one so far, save it but keep looking for a better one
4188 ac_cv_path_SED="$ac_path_SED"
4189 ac_path_SED_max=$ac_count
4191 # 10*(2^10) chars as input seems more than enough
4192 test $ac_count -gt 10 && break
4194 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4197 $ac_path_SED_found && break 3
4202 if test -z "$ac_cv_path_SED"; then
4203 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4211 $as_echo "$ac_cv_path_SED" >&6; }
4212 SED="$ac_cv_path_SED"
4216 # Grab target_cpu, so we can use it in the Solaris pkginfo file
4217 # Make sure we can run config.sub.
4218 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4219 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4222 $as_echo_n "checking build system type... " >&6; }
4223 if ${ac_cv_build+:} false; then :
4224 $as_echo_n "(cached) " >&6
4226 ac_build_alias=$build_alias
4227 test "x$ac_build_alias" = x &&
4228 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4229 test "x$ac_build_alias" = x &&
4230 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4231 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4232 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4236 $as_echo "$ac_cv_build" >&6; }
4237 case $ac_cv_build in
4239 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4242 ac_save_IFS=$IFS; IFS='-'
4248 # Remember, the first character of IFS is used to create $*,
4249 # except with old shells:
4252 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4256 $as_echo_n "checking host system type... " >&6; }
4257 if ${ac_cv_host+:} false; then :
4258 $as_echo_n "(cached) " >&6
4260 if test "x$host_alias" = x; then
4261 ac_cv_host=$ac_cv_build
4263 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4264 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4269 $as_echo "$ac_cv_host" >&6; }
4272 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4275 ac_save_IFS=$IFS; IFS='-'
4281 # Remember, the first character of IFS is used to create $*,
4282 # except with old shells:
4285 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
4289 $as_echo_n "checking target system type... " >&6; }
4290 if ${ac_cv_target+:} false; then :
4291 $as_echo_n "(cached) " >&6
4293 if test "x$target_alias" = x; then
4294 ac_cv_target=$ac_cv_host
4296 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
4297 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
4301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
4302 $as_echo "$ac_cv_target" >&6; }
4303 case $ac_cv_target in
4305 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
4307 target=$ac_cv_target
4308 ac_save_IFS=$IFS; IFS='-'
4314 # Remember, the first character of IFS is used to create $*,
4315 # except with old shells:
4318 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
4321 # The aliases save the names the user supplied, while $host etc.
4322 # will get canonicalized.
4323 test -n "$target_alias" &&
4324 test "$program_prefix$program_suffix$program_transform_name" = \
4326 program_prefix=${target_alias}-
4328 # Look for an extended grep
4329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4330 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4331 if ${ac_cv_path_GREP+:} false; then :
4332 $as_echo_n "(cached) " >&6
4334 if test -z "$GREP"; then
4335 ac_path_GREP_found=false
4336 # Loop through the user's path and test for each of PROGNAME-LIST
4337 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4338 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4341 test -z "$as_dir" && as_dir=.
4342 for ac_prog in grep ggrep; do
4343 for ac_exec_ext in '' $ac_executable_extensions; do
4344 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4345 as_fn_executable_p "$ac_path_GREP" || continue
4346 # Check for GNU ac_path_GREP and select it if it is found.
4347 # Check for GNU $ac_path_GREP
4348 case `"$ac_path_GREP" --version 2>&1` in
4350 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4353 $as_echo_n 0123456789 >"conftest.in"
4356 cat "conftest.in" "conftest.in" >"conftest.tmp"
4357 mv "conftest.tmp" "conftest.in"
4358 cp "conftest.in" "conftest.nl"
4359 $as_echo 'GREP' >> "conftest.nl"
4360 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4361 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4362 as_fn_arith $ac_count + 1 && ac_count=$as_val
4363 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4364 # Best one so far, save it but keep looking for a better one
4365 ac_cv_path_GREP="$ac_path_GREP"
4366 ac_path_GREP_max=$ac_count
4368 # 10*(2^10) chars as input seems more than enough
4369 test $ac_count -gt 10 && break
4371 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4374 $ac_path_GREP_found && break 3
4379 if test -z "$ac_cv_path_GREP"; then
4380 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4383 ac_cv_path_GREP=$GREP
4387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4388 $as_echo "$ac_cv_path_GREP" >&6; }
4389 GREP="$ac_cv_path_GREP"
4392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4393 $as_echo_n "checking for egrep... " >&6; }
4394 if ${ac_cv_path_EGREP+:} false; then :
4395 $as_echo_n "(cached) " >&6
4397 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4398 then ac_cv_path_EGREP="$GREP -E"
4400 if test -z "$EGREP"; then
4401 ac_path_EGREP_found=false
4402 # Loop through the user's path and test for each of PROGNAME-LIST
4403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4404 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4407 test -z "$as_dir" && as_dir=.
4408 for ac_prog in egrep; do
4409 for ac_exec_ext in '' $ac_executable_extensions; do
4410 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4411 as_fn_executable_p "$ac_path_EGREP" || continue
4412 # Check for GNU ac_path_EGREP and select it if it is found.
4413 # Check for GNU $ac_path_EGREP
4414 case `"$ac_path_EGREP" --version 2>&1` in
4416 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4419 $as_echo_n 0123456789 >"conftest.in"
4422 cat "conftest.in" "conftest.in" >"conftest.tmp"
4423 mv "conftest.tmp" "conftest.in"
4424 cp "conftest.in" "conftest.nl"
4425 $as_echo 'EGREP' >> "conftest.nl"
4426 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4427 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4428 as_fn_arith $ac_count + 1 && ac_count=$as_val
4429 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4430 # Best one so far, save it but keep looking for a better one
4431 ac_cv_path_EGREP="$ac_path_EGREP"
4432 ac_path_EGREP_max=$ac_count
4434 # 10*(2^10) chars as input seems more than enough
4435 test $ac_count -gt 10 && break
4437 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4440 $ac_path_EGREP_found && break 3
4445 if test -z "$ac_cv_path_EGREP"; then
4446 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4449 ac_cv_path_EGREP=$EGREP
4454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4455 $as_echo "$ac_cv_path_EGREP" >&6; }
4456 EGREP="$ac_cv_path_EGREP"
4460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4461 $as_echo_n "checking whether ln -s works... " >&6; }
4463 if test "$LN_S" = "ln -s"; then
4464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4465 $as_echo "yes" >&6; }
4467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4468 $as_echo "no, using $LN_S" >&6; }
4472 # Find a good install program. We prefer a C program (faster),
4473 # so one script is as good as another. But avoid the broken or
4474 # incompatible versions:
4475 # SysV /etc/install, /usr/sbin/install
4476 # SunOS /usr/etc/install
4477 # IRIX /sbin/install
4479 # AmigaOS /C/install, which installs bootblocks on floppy discs
4480 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4481 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4482 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4483 # OS/2's system install, which has a completely different semantic
4484 # ./install, which can be erroneously created by make from ./install.sh.
4485 # Reject install programs that cannot install multiple files.
4486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4487 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4488 if test -z "$INSTALL"; then
4489 if ${ac_cv_path_install+:} false; then :
4490 $as_echo_n "(cached) " >&6
4492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4496 test -z "$as_dir" && as_dir=.
4497 # Account for people who put trailing slashes in PATH elements.
4498 case $as_dir/ in #((
4499 ./ | .// | /[cC]/* | \
4500 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4501 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4504 # OSF1 and SCO ODT 3.0 have their own names for install.
4505 # Don't use installbsd from OSF since it installs stuff as root
4507 for ac_prog in ginstall scoinst install; do
4508 for ac_exec_ext in '' $ac_executable_extensions; do
4509 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4510 if test $ac_prog = install &&
4511 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4512 # AIX install. It has an incompatible calling convention.
4514 elif test $ac_prog = install &&
4515 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4516 # program-specific install script used by HP pwplus--don't use.
4519 rm -rf conftest.one conftest.two conftest.dir
4520 echo one > conftest.one
4521 echo two > conftest.two
4523 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4524 test -s conftest.one && test -s conftest.two &&
4525 test -s conftest.dir/conftest.one &&
4526 test -s conftest.dir/conftest.two
4528 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4541 rm -rf conftest.one conftest.two conftest.dir
4544 if test "${ac_cv_path_install+set}" = set; then
4545 INSTALL=$ac_cv_path_install
4547 # As a last resort, use the slow shell script. Don't cache a
4548 # value for INSTALL within a source directory, because that will
4549 # break other packages using the cache if that directory is
4550 # removed, or if the value is a relative name.
4551 INSTALL=$ac_install_sh
4554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4555 $as_echo "$INSTALL" >&6; }
4557 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4558 # It thinks the first close brace ends the variable substitution.
4559 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4561 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4563 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4565 # If $INSTALL is relative path to our fallback install-sh, then convert
4566 # to an absolute path, as in some cases (e.g. Solaris VPATH build), libtool
4567 # may try to use it from a changed working directory.
4568 if test "$INSTALL" = "build/install-sh -c"; then
4569 INSTALL="$abs_srcdir/$INSTALL"
4572 if test -z "$MKDIR"; then
4577 # ==== Libraries, for which we may have source to build ======================
4580 APR_VER_REGEXES="0\.9\.[7-9] 0\.9\.1[0-9] 1\. 2\."
4583 APR_WANTED_REGEXES="$APR_VER_REGEXES"
4585 { $as_echo "$as_me:${as_lineno-$LINENO}: Apache Portable Runtime (APR) library configuration" >&5
4586 $as_echo "$as_me: Apache Portable Runtime (APR) library configuration" >&6;}
4591 if test "$ac_cv_emxos2" = "yes"; then
4592 # Scripts don't pass test -x on OS/2
4598 acceptable_majors="1 0"
4600 apr_temp_acceptable_apr_config=""
4601 for apr_temp_major in $acceptable_majors
4603 case $apr_temp_major in
4605 apr_temp_acceptable_apr_config="$apr_temp_acceptable_apr_config apr-config"
4608 apr_temp_acceptable_apr_config="$apr_temp_acceptable_apr_config apr-$apr_temp_major-config"
4613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for APR" >&5
4614 $as_echo_n "checking for APR... " >&6; }
4616 # Check whether --with-apr was given.
4617 if test "${with_apr+set}" = set; then :
4619 if test "$withval" = "no" || test "$withval" = "yes"; then
4620 as_fn_error $? "--with-apr requires a directory or file to be provided" "$LINENO" 5
4623 for apr_temp_apr_config_file in $apr_temp_acceptable_apr_config
4625 for lookdir in "$withval/bin" "$withval"
4627 if $TEST_X "$lookdir/$apr_temp_apr_config_file"; then
4629 apr_config="$lookdir/$apr_temp_apr_config_file"
4635 if test "$apr_found" != "yes" && $TEST_X "$withval" && $withval --help > /dev/null 2>&1 ; then
4637 apr_config="$withval"
4640 if test "$apr_found" != "yes"; then
4641 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
4646 if test -d """"; then
4647 apr_temp_abs_srcdir="`cd "" && pwd`"
4648 apr_found="reconfig"
4649 apr_bundled_major="`sed -n '/#define.*APR_MAJOR_VERSION/s/^[^0-9]*\([0-9]*\).*$/\1/p' \"""/include/apr_version.h\"`"
4650 case $apr_bundled_major in
4652 as_fn_error $? "failed to find major version of bundled APR" "$LINENO" 5
4655 apr_temp_apr_config_file="apr-config"
4658 apr_temp_apr_config_file="apr-$apr_bundled_major-config"
4661 if test -n """"; then
4662 apr_config="""/$apr_temp_apr_config_file"
4664 apr_config="""/$apr_temp_apr_config_file"
4667 if test "$apr_found" = "no" && test -n "1" && test "1" = "1"; then
4668 for apr_temp_apr_config_file in $apr_temp_acceptable_apr_config
4670 if $apr_temp_apr_config_file --help > /dev/null 2>&1 ; then
4672 apr_config="$apr_temp_apr_config_file"
4675 for lookdir in /usr /usr/local /opt/apr /usr/local/apache2 ; do
4676 if $TEST_X "$lookdir/bin/$apr_temp_apr_config_file"; then
4678 apr_config="$lookdir/bin/$apr_temp_apr_config_file"
4689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_found" >&5
4690 $as_echo "$apr_found" >&6; }
4693 if test $apr_found = "no"; then
4694 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: APR not found" >&5
4695 $as_echo "$as_me: WARNING: APR not found" >&2;}
4697 echo "The Apache Portable Runtime (APR) library cannot be found."
4698 echo "Please install APR on this system and configure Subversion"
4699 echo "with the appropriate --with-apr option."
4701 echo "You probably need to do something similar with the Apache"
4702 echo "Portable Runtime Utility (APRUTIL) library and then configure"
4703 echo "Subversion with both the --with-apr and --with-apr-util options."
4705 as_fn_error $? "no suitable APR found" "$LINENO" 5
4709 if test $apr_found = "reconfig"; then
4710 as_fn_error $? "Unexpected APR reconfig" "$LINENO" 5
4714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking APR version" >&5
4715 $as_echo_n "checking APR version... " >&6; }
4716 apr_version="`$apr_config --version`"
4717 if test $? -ne 0; then
4718 as_fn_error $? "apr-config --version failed" "$LINENO" 5
4720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_version" >&5
4721 $as_echo "$apr_version" >&6; }
4723 APR_WANTED_REGEX_MATCH=0
4724 for apr_wanted_regex in $APR_WANTED_REGEXES; do
4725 if test `expr $apr_version : $apr_wanted_regex` -ne 0; then
4726 APR_WANTED_REGEX_MATCH=1
4731 if test $APR_WANTED_REGEX_MATCH -eq 0; then
4732 echo "wanted regexes are $APR_WANTED_REGEXES"
4733 as_fn_error $? "invalid apr version found" "$LINENO" 5
4737 CPPFLAGS="$CPPFLAGS `$apr_config --cppflags`"
4738 if test $? -ne 0; then
4739 as_fn_error $? "apr-config --cppflags failed" "$LINENO" 5
4742 CFLAGS="$CFLAGS `$apr_config --cflags`"
4743 if test $? -ne 0; then
4744 as_fn_error $? "apr-config --cflags failed" "$LINENO" 5
4747 apr_ldflags="`$apr_config --ldflags`"
4748 if test $? -ne 0; then
4749 as_fn_error $? "apr-config --ldflags failed" "$LINENO" 5
4752 input_flags="$apr_ldflags"
4754 filtered_dirs="/lib /lib64 /usr/lib /usr/lib64"
4755 for flag in $input_flags; do
4757 for dir in $filtered_dirs; do
4758 if test "$flag" = "-L$dir" || test "$flag" = "-L$dir/"; then
4763 if test "$filter" = "no"; then
4764 output_flags="$output_flags $flag"
4767 if test -n "$output_flags"; then
4768 printf "%s" "${output_flags# }"
4772 SVN_APR_INCLUDES="`$apr_config --includes`"
4773 if test $? -ne 0; then
4774 as_fn_error $? "apr-config --includes failed" "$LINENO" 5
4777 if test "$enable_all_static" = "yes"; then
4778 SVN_APR_LIBS="`$apr_config --link-ld --libs`"
4779 if test $? -ne 0; then
4780 as_fn_error $? "apr-config --link-ld --libs failed" "$LINENO" 5
4783 SVN_APR_LIBS="`$apr_config --link-ld`"
4784 if test $? -ne 0; then
4785 as_fn_error $? "apr-config --link-ld failed" "$LINENO" 5
4789 input_flags="$SVN_APR_LIBS"
4791 filtered_dirs="/lib /lib64 /usr/lib /usr/lib64"
4792 for flag in $input_flags; do
4794 for dir in $filtered_dirs; do
4795 if test "$flag" = "-L$dir" || test "$flag" = "-L$dir/"; then
4800 if test "$filter" = "no"; then
4801 output_flags="$output_flags $flag"
4804 if test -n "$output_flags"; then
4805 printf "%s" "${output_flags# }"
4809 SVN_APR_SHLIB_PATH_VAR="`$apr_config --shlib-path-var`"
4810 if test $? -ne 0; then
4811 as_fn_error $? "apr-config --shlib-path-var failed" "$LINENO" 5
4814 SVN_APR_CONFIG="$apr_config"
4821 if test `expr $apr_version : 2` -ne 0; then
4823 apu_config=$apr_config
4825 SVN_APRUTIL_CONFIG="$apu_config"
4830 APU_VER_REGEXES="0\.9\.[7-9] 0\.9\.1[0-9] 1\."
4832 APRUTIL_WANTED_REGEXES="$APU_VER_REGEXES"
4834 { $as_echo "$as_me:${as_lineno-$LINENO}: Apache Portable Runtime Utility (APRUTIL) library configuration" >&5
4835 $as_echo "$as_me: Apache Portable Runtime Utility (APRUTIL) library configuration" >&6;}
4840 if test "$ac_cv_emxos2" = "yes"; then
4841 # Scripts don't pass test -x on OS/2
4847 acceptable_majors="1 0"
4849 apu_temp_acceptable_apu_config=""
4850 for apu_temp_major in $acceptable_majors
4852 case $apu_temp_major in
4854 apu_temp_acceptable_apu_config="$apu_temp_acceptable_apu_config apu-config"
4857 apu_temp_acceptable_apu_config="$apu_temp_acceptable_apu_config apu-$apu_temp_major-config"
4862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for APR-util" >&5
4863 $as_echo_n "checking for APR-util... " >&6; }
4865 # Check whether --with-apr-util was given.
4866 if test "${with_apr_util+set}" = set; then :
4867 withval=$with_apr_util;
4868 if test "$withval" = "no" || test "$withval" = "yes"; then
4869 as_fn_error $? "--with-apr-util requires a directory or file to be provided" "$LINENO" 5
4872 for apu_temp_apu_config_file in $apu_temp_acceptable_apu_config
4874 for lookdir in "$withval/bin" "$withval"
4876 if $TEST_X "$lookdir/$apu_temp_apu_config_file"; then
4878 apu_config="$lookdir/$apu_temp_apu_config_file"
4884 if test "$apu_found" != "yes" && $TEST_X "$withval" && $withval --help > /dev/null 2>&1 ; then
4886 apu_config="$withval"
4889 if test "$apu_found" != "yes"; then
4890 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
4895 if test -d """"; then
4896 apu_temp_abs_srcdir="`cd "" && pwd`"
4897 apu_found="reconfig"
4898 apu_bundled_major="`sed -n '/#define.*APU_MAJOR_VERSION/s/^[^0-9]*\([0-9]*\).*$/\1/p' \"""/include/apu_version.h\"`"
4899 case $apu_bundled_major in
4901 as_fn_error $? "failed to find major version of bundled APU" "$LINENO" 5
4904 apu_temp_apu_config_file="apu-config"
4907 apu_temp_apu_config_file="apu-$apu_bundled_major-config"
4910 if test -n """"; then
4911 apu_config="""/$apu_temp_apu_config_file"
4913 apu_config="""/$apu_temp_apu_config_file"
4916 if test "$apu_found" = "no" && test -n "1" && test "1" = "1"; then
4917 for apu_temp_apu_config_file in $apu_temp_acceptable_apu_config
4919 if $apu_temp_apu_config_file --help > /dev/null 2>&1 ; then
4921 apu_config="$apu_temp_apu_config_file"
4924 for lookdir in /usr /usr/local /opt/apr /usr/local/apache2 ; do
4925 if $TEST_X "$lookdir/bin/$apu_temp_apu_config_file"; then
4927 apu_config="$lookdir/bin/$apu_temp_apu_config_file"
4938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apu_found" >&5
4939 $as_echo "$apu_found" >&6; }
4942 if test $apu_found = "no"; then
4943 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: APRUTIL not found" >&5
4944 $as_echo "$as_me: WARNING: APRUTIL not found" >&2;}
4946 echo "The Apache Portable Runtime Utility (APRUTIL) library cannot be found."
4947 echo "Install APRUTIL on this system and configure Subversion with the"
4948 echo " appropriate --with-apr-util option."
4950 as_fn_error $? "no suitable APRUTIL found" "$LINENO" 5
4954 if test $apu_found = "reconfig"; then
4955 as_fn_error $? "Unexpected APRUTIL reconfig" "$LINENO" 5
4959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking APRUTIL version" >&5
4960 $as_echo_n "checking APRUTIL version... " >&6; }
4961 apu_version="`$apu_config --version`"
4962 if test $? -ne 0; then
4963 # This is a hack as suggested by Ben Collins-Sussman. It can be
4964 # removed after apache 2.0.44 has been released. (The apu-config
4965 # shipped in 2.0.43 contains a correct version number, but
4966 # stupidly doesn't understand the --version switch.)
4967 apu_version=`grep "APRUTIL_DOTTED_VERSION=" $(which $apu_config) | tr -d "APRUTIL_DOTTED_VERSION="| tr -d '"'`
4969 # apu-config --version failed.
4970 # Your apu-config doesn't support the --version switch, please upgrade
4971 # to APR-UTIL more recent than 2002-Nov-05.])
4973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apu_version" >&5
4974 $as_echo "$apu_version" >&6; }
4976 APU_WANTED_REGEX_MATCH=0
4977 for apu_wanted_regex in $APRUTIL_WANTED_REGEXES; do
4978 if test `expr $apu_version : $apu_wanted_regex` -ne 0; then
4979 APU_WANTED_REGEX_MATCH=1
4984 if test $APU_WANTED_REGEX_MATCH -eq 0; then
4985 echo "wanted regexes are $APRUTIL_WANTED_REGEXES"
4986 as_fn_error $? "invalid APRUTIL version found" "$LINENO" 5
4990 apu_ldflags="`$apu_config --ldflags`"
4991 if test $? -ne 0; then
4992 as_fn_error $? "apu-config --ldflags failed" "$LINENO" 5
4995 input_flags="$apu_ldflags"
4997 filtered_dirs="/lib /lib64 /usr/lib /usr/lib64"
4998 for flag in $input_flags; do
5000 for dir in $filtered_dirs; do
5001 if test "$flag" = "-L$dir" || test "$flag" = "-L$dir/"; then
5006 if test "$filter" = "no"; then
5007 output_flags="$output_flags $flag"
5010 if test -n "$output_flags"; then
5011 printf "%s" "${output_flags# }"
5015 SVN_APRUTIL_INCLUDES="`$apu_config --includes`"
5016 if test $? -ne 0; then
5017 as_fn_error $? "apu-config --includes failed" "$LINENO" 5
5020 if test "$enable_all_static" = "yes"; then
5021 SVN_APRUTIL_LIBS="`$apu_config --link-ld --libs`"
5022 if test $? -ne 0; then
5023 as_fn_error $? "apu-config --link-ld --libs failed" "$LINENO" 5
5026 SVN_APRUTIL_LIBS="`$apu_config --link-ld`"
5027 if test $? -ne 0; then
5028 as_fn_error $? "apu-config --link-ld failed" "$LINENO" 5
5032 input_flags="$SVN_APRUTIL_LIBS"
5034 filtered_dirs="/lib /lib64 /usr/lib /usr/lib64"
5035 for flag in $input_flags; do
5037 for dir in $filtered_dirs; do
5038 if test "$flag" = "-L$dir" || test "$flag" = "-L$dir/"; then
5043 if test "$filter" = "no"; then
5044 output_flags="$output_flags $flag"
5047 if test -n "$output_flags"; then
5048 printf "%s" "${output_flags# }"
5053 SVN_APRUTIL_CONFIG="$apu_config"
5057 SVN_HAVE_OLD_EXPAT="`$apu_config --old-expat`"
5058 if test "$SVN_HAVE_OLD_EXPAT" = "yes"; then
5060 $as_echo "#define SVN_HAVE_OLD_EXPAT 1" >>confdefs.h
5065 SVN_LT_SOVERSION="-version-info $svn_lib_ver"
5068 cat >>confdefs.h <<_ACEOF
5069 #define SVN_SOVERSION $svn_lib_ver
5073 # Extract the first word of "pkg-config", so it can be a program name with args.
5074 set dummy pkg-config; ac_word=$2
5075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5076 $as_echo_n "checking for $ac_word... " >&6; }
5077 if ${ac_cv_path_PKG_CONFIG+:} false; then :
5078 $as_echo_n "(cached) " >&6
5082 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5089 test -z "$as_dir" && as_dir=.
5090 for ac_exec_ext in '' $ac_executable_extensions; do
5091 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5092 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5093 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5103 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5104 if test -n "$PKG_CONFIG"; then
5105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5106 $as_echo "$PKG_CONFIG" >&6; }
5108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5109 $as_echo "no" >&6; }
5115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5116 $as_echo_n "checking for ANSI C header files... " >&6; }
5117 if ${ac_cv_header_stdc+:} false; then :
5118 $as_echo_n "(cached) " >&6
5120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5121 /* end confdefs.h. */
5135 if ac_fn_c_try_compile "$LINENO"; then :
5136 ac_cv_header_stdc=yes
5138 ac_cv_header_stdc=no
5140 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5142 if test $ac_cv_header_stdc = yes; then
5143 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5145 /* end confdefs.h. */
5149 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5150 $EGREP "memchr" >/dev/null 2>&1; then :
5153 ac_cv_header_stdc=no
5159 if test $ac_cv_header_stdc = yes; then
5160 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5162 /* end confdefs.h. */
5166 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5167 $EGREP "free" >/dev/null 2>&1; then :
5170 ac_cv_header_stdc=no
5176 if test $ac_cv_header_stdc = yes; then
5177 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5178 if test "$cross_compiling" = yes; then :
5181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5182 /* end confdefs.h. */
5185 #if ((' ' & 0x0FF) == 0x020)
5186 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5187 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5189 # define ISLOWER(c) \
5190 (('a' <= (c) && (c) <= 'i') \
5191 || ('j' <= (c) && (c) <= 'r') \
5192 || ('s' <= (c) && (c) <= 'z'))
5193 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5196 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5201 for (i = 0; i < 256; i++)
5202 if (XOR (islower (i), ISLOWER (i))
5203 || toupper (i) != TOUPPER (i))
5208 if ac_fn_c_try_run "$LINENO"; then :
5211 ac_cv_header_stdc=no
5213 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5214 conftest.$ac_objext conftest.beam conftest.$ac_ext
5219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5220 $as_echo "$ac_cv_header_stdc" >&6; }
5221 if test $ac_cv_header_stdc = yes; then
5223 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5227 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5228 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5229 inttypes.h stdint.h unistd.h
5231 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5232 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5234 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5235 cat >>confdefs.h <<_ACEOF
5236 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5249 serf_check_major="1"
5250 serf_check_minor="2"
5251 serf_check_patch="1"
5252 serf_check_version="1.2.1"
5255 # Check whether --with-serf was given.
5256 if test "${with_serf+set}" = set; then :
5258 if test "$withval" = "yes" ; then
5260 elif test "$withval" = "no" ; then
5264 { $as_echo "$as_me:${as_lineno-$LINENO}: serf library configuration via prefix" >&5
5265 $as_echo "$as_me: serf library configuration via prefix" >&6;}
5267 serf_prefix=$withval
5268 for serf_major in serf-2 serf-1; do
5269 if ! test -d $serf_prefix/include/$serf_major; then continue; fi
5270 save_cppflags="$CPPFLAGS"
5271 CPPFLAGS="$CPPFLAGS $SVN_APR_INCLUDES $SVN_APRUTIL_INCLUDES -I$serf_prefix/include/$serf_major"
5272 for ac_header in serf.h
5274 ac_fn_c_check_header_mongrel "$LINENO" "serf.h" "ac_cv_header_serf_h" "$ac_includes_default"
5275 if test "x$ac_cv_header_serf_h" = xyes; then :
5276 cat >>confdefs.h <<_ACEOF
5277 #define HAVE_SERF_H 1
5280 save_ldflags="$LDFLAGS"
5281 LDFLAGS="$LDFLAGS -L$serf_prefix/lib"
5282 as_ac_Lib=`$as_echo "ac_cv_lib_$serf_major''_serf_context_create" | $as_tr_sh`
5283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for serf_context_create in -l$serf_major" >&5
5284 $as_echo_n "checking for serf_context_create in -l$serf_major... " >&6; }
5285 if eval \${$as_ac_Lib+:} false; then :
5286 $as_echo_n "(cached) " >&6
5288 ac_check_lib_save_LIBS=$LIBS
5289 LIBS="-l$serf_major $SVN_APRUTIL_LIBS $SVN_APR_LIBS -lz $LIBS"
5290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5291 /* end confdefs.h. */
5293 /* Override any GCC internal prototype to avoid an error.
5294 Use char because int might match the return type of a GCC
5295 builtin and then its argument prototype would still apply. */
5299 char serf_context_create ();
5303 return serf_context_create ();
5308 if ac_fn_c_try_link "$LINENO"; then :
5309 eval "$as_ac_Lib=yes"
5311 eval "$as_ac_Lib=no"
5313 rm -f core conftest.err conftest.$ac_objext \
5314 conftest$ac_exeext conftest.$ac_ext
5315 LIBS=$ac_check_lib_save_LIBS
5317 eval ac_res=\$$as_ac_Lib
5318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5319 $as_echo "$ac_res" >&6; }
5320 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
5322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5323 /* end confdefs.h. */
5332 #if ! SERF_VERSION_AT_LEAST($serf_check_major, $serf_check_minor, $serf_check_patch)
5333 #error Serf version too old: need $serf_check_version
5340 if ac_fn_c_try_compile "$LINENO"; then :
5343 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Serf version too old: need $serf_check_version" >&5
5344 $as_echo "$as_me: WARNING: Serf version too old: need $serf_check_version" >&2;}
5347 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5350 LDFLAGS="$save_ldflags"
5355 CPPFLAGS="$save_cppflags"
5356 test $serf_found = yes && break
5359 if test $serf_found = "yes"; then
5360 SVN_SERF_INCLUDES="-I$serf_prefix/include/$serf_major"
5361 if test -e "$serf_prefix/lib/lib$serf_major.la"; then
5362 SVN_SERF_LIBS="$serf_prefix/lib/lib$serf_major.la"
5364 SVN_SERF_LIBS="-l$serf_major"
5365 LDFLAGS="$LDFLAGS -L$serf_prefix/lib"
5374 if test "$serf_skip" = "no" ; then
5375 if test "$serf_found" = "no" ; then
5377 { $as_echo "$as_me:${as_lineno-$LINENO}: serf library configuration via pkg-config" >&5
5378 $as_echo "$as_me: serf library configuration via pkg-config" >&6;}
5379 if test -n "$PKG_CONFIG"; then
5380 for serf_major in serf-2 serf-1; do
5381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $serf_major library" >&5
5382 $as_echo_n "checking for $serf_major library... " >&6; }
5383 if $PKG_CONFIG $serf_major --exists; then
5384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5385 $as_echo "yes" >&6; }
5386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking serf library version" >&5
5387 $as_echo_n "checking serf library version... " >&6; }
5388 SERF_VERSION=`$PKG_CONFIG $serf_major --modversion`
5389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SERF_VERSION" >&5
5390 $as_echo "$SERF_VERSION" >&6; }
5391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking serf version is suitable" >&5
5392 $as_echo_n "checking serf version is suitable... " >&6; }
5393 if $PKG_CONFIG $serf_major --atleast-version=$serf_check_version; then
5394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5395 $as_echo "yes" >&6; }
5397 SVN_SERF_INCLUDES=`$PKG_CONFIG $serf_major --cflags | $SED -e 's/-D[^ ]*//g'`
5398 SVN_SERF_LIBS=`$PKG_CONFIG $serf_major --libs`
5401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5402 $as_echo "no" >&6; }
5403 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Serf version too old: need $serf_check_version" >&5
5404 $as_echo "$as_me: WARNING: Serf version too old: need $serf_check_version" >&2;}
5407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5408 $as_echo "no" >&6; }
5415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking was serf enabled" >&5
5416 $as_echo_n "checking was serf enabled... " >&6; }
5417 if test "$serf_found" = "yes"; then
5418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5419 $as_echo "yes" >&6; }
5421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5422 $as_echo "no" >&6; }
5425 echo "An appropriate version of serf could not be found, so libsvn_ra_serf"
5426 echo "will not be built. If you want to build libsvn_ra_serf, please"
5427 echo "install serf $serf_check_version or newer."
5430 if test "$serf_required" = "yes"; then
5431 as_fn_error $? "Serf was explicitly enabled but an appropriate version was not found." "$LINENO" 5
5436 svn_lib_serf=$serf_found
5442 if test "$svn_lib_serf" = "yes"; then
5444 $as_echo "#define SVN_HAVE_SERF 1" >>confdefs.h
5449 apr_memcache_found=no
5452 # Check whether --with-apr_memcache was given.
5453 if test "${with_apr_memcache+set}" = set; then :
5454 withval=$with_apr_memcache;
5455 if test "$withval" = "yes" ; then
5456 as_fn_error $? "--with-apr_memcache requires an argument." "$LINENO" 5
5458 { $as_echo "$as_me:${as_lineno-$LINENO}: looking for separate apr_memcache package" >&5
5459 $as_echo "$as_me: looking for separate apr_memcache package" >&6;}
5460 apr_memcache_prefix=$withval
5461 save_cppflags="$CPPFLAGS"
5462 CPPFLAGS="$CPPFLAGS $SVN_APR_INCLUDES $SVN_APRUTIL_INCLUDES -I$apr_memcache_prefix/include/apr_memcache-0"
5463 ac_fn_c_check_header_mongrel "$LINENO" "apr_memcache.h" "ac_cv_header_apr_memcache_h" "$ac_includes_default"
5464 if test "x$ac_cv_header_apr_memcache_h" = xyes; then :
5466 save_ldflags="$LDFLAGS"
5467 LDFLAGS="$LDFLAGS -L$apr_memcache_prefix/lib"
5468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for apr_memcache_create in -lapr_memcache" >&5
5469 $as_echo_n "checking for apr_memcache_create in -lapr_memcache... " >&6; }
5470 if ${ac_cv_lib_apr_memcache_apr_memcache_create+:} false; then :
5471 $as_echo_n "(cached) " >&6
5473 ac_check_lib_save_LIBS=$LIBS
5474 LIBS="-lapr_memcache $LIBS"
5475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5476 /* end confdefs.h. */
5478 /* Override any GCC internal prototype to avoid an error.
5479 Use char because int might match the return type of a GCC
5480 builtin and then its argument prototype would still apply. */
5484 char apr_memcache_create ();
5488 return apr_memcache_create ();
5493 if ac_fn_c_try_link "$LINENO"; then :
5494 ac_cv_lib_apr_memcache_apr_memcache_create=yes
5496 ac_cv_lib_apr_memcache_apr_memcache_create=no
5498 rm -f core conftest.err conftest.$ac_objext \
5499 conftest$ac_exeext conftest.$ac_ext
5500 LIBS=$ac_check_lib_save_LIBS
5502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_apr_memcache_apr_memcache_create" >&5
5503 $as_echo "$ac_cv_lib_apr_memcache_apr_memcache_create" >&6; }
5504 if test "x$ac_cv_lib_apr_memcache_apr_memcache_create" = xyes; then :
5505 apr_memcache_found="standalone"
5508 LDFLAGS="$save_ldflags"
5512 CPPFLAGS="$save_cppflags"
5517 { $as_echo "$as_me:${as_lineno-$LINENO}: looking for apr_memcache as part of apr-util" >&5
5518 $as_echo "$as_me: looking for apr_memcache as part of apr-util" >&6;}
5519 save_cppflags="$CPPFLAGS"
5520 CPPFLAGS="$CPPFLAGS $SVN_APR_INCLUDES $SVN_APRUTIL_INCLUDES"
5521 ac_fn_c_check_header_mongrel "$LINENO" "apr_memcache.h" "ac_cv_header_apr_memcache_h" "$ac_includes_default"
5522 if test "x$ac_cv_header_apr_memcache_h" = xyes; then :
5524 save_ldflags="$LDFLAGS"
5525 LDFLAGS="$LDFLAGS $SVN_APRUTIL_LIBS"
5526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for apr_memcache_create in -laprutil-1" >&5
5527 $as_echo_n "checking for apr_memcache_create in -laprutil-1... " >&6; }
5528 if ${ac_cv_lib_aprutil_1_apr_memcache_create+:} false; then :
5529 $as_echo_n "(cached) " >&6
5531 ac_check_lib_save_LIBS=$LIBS
5532 LIBS="-laprutil-1 $LIBS"
5533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5534 /* end confdefs.h. */
5536 /* Override any GCC internal prototype to avoid an error.
5537 Use char because int might match the return type of a GCC
5538 builtin and then its argument prototype would still apply. */
5542 char apr_memcache_create ();
5546 return apr_memcache_create ();
5551 if ac_fn_c_try_link "$LINENO"; then :
5552 ac_cv_lib_aprutil_1_apr_memcache_create=yes
5554 ac_cv_lib_aprutil_1_apr_memcache_create=no
5556 rm -f core conftest.err conftest.$ac_objext \
5557 conftest$ac_exeext conftest.$ac_ext
5558 LIBS=$ac_check_lib_save_LIBS
5560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_aprutil_1_apr_memcache_create" >&5
5561 $as_echo "$ac_cv_lib_aprutil_1_apr_memcache_create" >&6; }
5562 if test "x$ac_cv_lib_aprutil_1_apr_memcache_create" = xyes; then :
5563 apr_memcache_found="aprutil"
5566 LDFLAGS="$save_ldflags"
5570 CPPFLAGS="$save_cppflags"
5576 if test $apr_memcache_found = "standalone"; then
5577 SVN_APR_MEMCACHE_INCLUDES="-I$apr_memcache_prefix/include/apr_memcache-0"
5578 SVN_APR_MEMCACHE_LIBS="$apr_memcache_prefix/lib/libapr_memcache.la"
5579 svn_lib_apr_memcache=yes
5580 elif test $apr_memcache_found = "aprutil"; then
5581 SVN_APR_MEMCACHE_INCLUDES=""
5582 SVN_APR_MEMCACHE_LIBS=""
5583 svn_lib_apr_memcache=yes
5584 elif test $apr_memcache_found = "reconfig"; then
5585 svn_lib_apr_memcache=yes
5587 svn_lib_apr_memcache=no
5594 if test "$svn_lib_apr_memcache" = "yes"; then
5596 $as_echo "#define SVN_HAVE_MEMCACHE 1" >>confdefs.h
5604 HTTPD_WANTED_MMN="20020903"
5606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Apache module support via DSO through APXS" >&5
5607 $as_echo_n "checking for Apache module support via DSO through APXS... " >&6; }
5609 # Check whether --with-apxs was given.
5610 if test "${with_apxs+set}" = set; then :
5612 if test "$withval" = "yes"; then
5622 if test -z "$APXS"; then
5623 for i in /usr/sbin /usr/local/apache/bin /usr/local/apache2/bin /usr/bin ; do
5624 if test -f "$i/apxs2"; then
5628 if test -f "$i/apxs"; then
5635 if test -n "$APXS" && test "$APXS" != "no"; then
5636 APXS_INCLUDE="`$APXS -q INCLUDEDIR`"
5637 if test -r $APXS_INCLUDE/mod_dav.h; then
5638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found at $APXS" >&5
5639 $as_echo "found at $APXS" >&6; }
5641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking httpd version" >&5
5642 $as_echo_n "checking httpd version... " >&6; }
5643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5644 /* end confdefs.h. */
5646 #include "$APXS_INCLUDE/ap_mmn.h"
5647 #if AP_MODULE_MAGIC_AT_LEAST($HTTPD_WANTED_MMN,0)
5651 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5652 $EGREP "VERSION_OKAY" >/dev/null 2>&1; then :
5653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: recent enough" >&5
5654 $as_echo "recent enough" >&6; }
5656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: apache too old: mmn must be at least $HTTPD_WANTED_MMN" >&5
5657 $as_echo "apache too old: mmn must be at least $HTTPD_WANTED_MMN" >&6; }
5658 if test "$APXS_EXPLICIT" != ""; then
5659 as_fn_error $? "Apache APXS build explicitly requested, but apache version is too old" "$LINENO" 5
5667 elif test "$APXS_EXPLICIT" != ""; then
5668 as_fn_error $? "no - APXS refers to an old version of Apache
5669 Unable to locate $APXS_INCLUDE/mod_dav.h" "$LINENO" 5
5671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no - Unable to locate $APXS_INCLUDE/mod_dav.h" >&5
5672 $as_echo "no - Unable to locate $APXS_INCLUDE/mod_dav.h" >&6; }
5676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5677 $as_echo "no" >&6; }
5680 if test -n "$APXS" && test "$APXS" != "no"; then
5681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Apache version is compatible with APR version" >&5
5682 $as_echo_n "checking whether Apache version is compatible with APR version... " >&6; }
5683 apr_major_version="${apr_version%%.*}"
5684 case "$apr_major_version" in
5686 apache_minor_version_wanted_regex="0"
5689 apache_minor_version_wanted_regex="[1-5]"
5692 apache_minor_version_wanted_regex="[3-5]"
5695 as_fn_error $? "unknown APR version" "$LINENO" 5
5698 old_CPPFLAGS="$CPPFLAGS"
5699 CPPFLAGS="$CPPFLAGS $SVN_APR_INCLUDES"
5700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5701 /* end confdefs.h. */
5703 #include "$APXS_INCLUDE/ap_release.h"
5704 apache_minor_version=AP_SERVER_MINORVERSION
5706 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5707 $EGREP "apache_minor_version= *\"$apache_minor_version_wanted_regex\"" >/dev/null 2>&1; then :
5708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5709 $as_echo "yes" >&6; }
5711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5712 $as_echo "no" >&6; }
5713 as_fn_error $? "Apache version incompatible with APR version" "$LINENO" 5
5717 CPPFLAGS="$old_CPPFLAGS"
5721 # Check whether --with-apache-libexecdir was given.
5722 if test "${with_apache_libexecdir+set}" = set; then :
5723 withval=$with_apache_libexecdir; APACHE_LIBEXECDIR="$withval"
5725 APACHE_LIBEXECDIR='no'
5729 INSTALL_APACHE_MODS=false
5730 if test -n "$APXS" && test "$APXS" != "no"; then
5731 APXS_CC="`$APXS -q CC`"
5732 APACHE_INCLUDES="$APACHE_INCLUDES -I$APXS_INCLUDE"
5734 if test "$APACHE_LIBEXECDIR" = 'no'; then
5735 APACHE_LIBEXECDIR="$libexecdir"
5736 elif test "$APACHE_LIBEXECDIR" = 'yes'; then
5737 APACHE_LIBEXECDIR="`$APXS -q libexecdir`"
5740 BUILD_APACHE_RULE=apache-mod
5741 INSTALL_APACHE_RULE=install-mods-shared
5742 INSTALL_APACHE_MODS=true
5746 APACHE_LDFLAGS="-shrext .so"
5749 elif test x"$APXS" != x"no"; then
5750 echo "=================================================================="
5751 echo "WARNING: skipping the build of mod_dav_svn"
5752 echo " try using --with-apxs"
5753 echo "=================================================================="
5762 # there aren't any flags that interest us ...
5763 #if test -n "$APXS" && test "$APXS" != "no"; then
5764 # CFLAGS="$CFLAGS `$APXS -q CFLAGS CFLAGS_SHLIB`"
5767 if test -n "$APXS_CC" && test "$APXS_CC" != "$CC" ; then
5768 echo "=================================================================="
5769 echo "WARNING: You have chosen to compile Subversion with a different"
5770 echo " compiler than the one used to compile Apache."
5772 echo " Current compiler: $CC"
5773 echo " Apache's compiler: $APXS_CC"
5775 echo "This could cause some problems."
5776 echo "=================================================================="
5781 SQLITE_MINIMUM_VER="3.7.12"
5782 SQLITE_RECOMMENDED_VER="3.7.15.1"
5783 SQLITE_URL="http://www.sqlite.org/sqlite-amalgamation-$(printf %d%02d%02d%02d $(echo ${SQLITE_RECOMMENDED_VER} | sed -e 's/\./ /g')).zip"
5786 SQLITE_MINIMUM_VER="${SQLITE_MINIMUM_VER}"
5787 SQLITE_RECOMMENDED_VER="${SQLITE_RECOMMENDED_VER}"
5788 SQLITE_URL="${SQLITE_URL}"
5789 SQLITE_PKGNAME="sqlite3"
5793 version_string="$SQLITE_MINIMUM_VER"
5795 major=`expr $version_string : '\([0-9]*\)'`
5796 minor=`expr $version_string : '[0-9]*\.\([0-9]*\)'`
5797 micro=`expr $version_string : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
5798 if test -z "$micro"; then
5801 sqlite_min_ver_num=`expr $major \* 1000000 \
5807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sqlite library" >&5
5808 $as_echo "$as_me: checking sqlite library" >&6;}
5811 # Check whether --with-sqlite was given.
5812 if test "${with_sqlite+set}" = set; then :
5813 withval=$with_sqlite;
5814 if test "$withval" = "yes" ; then
5815 as_fn_error $? "--with-sqlite requires an argument." "$LINENO" 5
5817 sqlite_dir="$withval"
5820 if test -d $sqlite_dir; then
5822 if test -z "$sqlite_dir"; then
5824 sqlite_include="sqlite3.h"
5826 sqlite_dir="$sqlite_dir"
5827 sqlite_include="$sqlite_dir/include/sqlite3.h"
5830 save_CPPFLAGS="$CPPFLAGS"
5831 save_LDFLAGS="$LDFLAGS"
5833 if test ! -z "$sqlite_dir"; then
5834 CPPFLAGS="$CPPFLAGS -I$sqlite_dir/include"
5835 LDFLAGS="$LDFLAGS -L$sqlite_dir/lib"
5838 ac_fn_c_check_header_mongrel "$LINENO" "sqlite3.h" "ac_cv_header_sqlite3_h" "$ac_includes_default"
5839 if test "x$ac_cv_header_sqlite3_h" = xyes; then :
5841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sqlite library version (via header)" >&5
5842 $as_echo_n "checking sqlite library version (via header)... " >&6; }
5843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5844 /* end confdefs.h. */
5846 #include "$sqlite_include"
5847 #if SQLITE_VERSION_NUMBER >= $sqlite_min_ver_num
5851 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5852 $EGREP "SQLITE_VERSION_OKAY" >/dev/null 2>&1; then :
5853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: okay" >&5
5854 $as_echo "okay" >&6; }
5855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite3_close in -lsqlite3" >&5
5856 $as_echo_n "checking for sqlite3_close in -lsqlite3... " >&6; }
5857 if ${ac_cv_lib_sqlite3_sqlite3_close+:} false; then :
5858 $as_echo_n "(cached) " >&6
5860 ac_check_lib_save_LIBS=$LIBS
5861 LIBS="-lsqlite3 $LIBS"
5862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5863 /* end confdefs.h. */
5865 /* Override any GCC internal prototype to avoid an error.
5866 Use char because int might match the return type of a GCC
5867 builtin and then its argument prototype would still apply. */
5871 char sqlite3_close ();
5875 return sqlite3_close ();
5880 if ac_fn_c_try_link "$LINENO"; then :
5881 ac_cv_lib_sqlite3_sqlite3_close=yes
5883 ac_cv_lib_sqlite3_sqlite3_close=no
5885 rm -f core conftest.err conftest.$ac_objext \
5886 conftest$ac_exeext conftest.$ac_ext
5887 LIBS=$ac_check_lib_save_LIBS
5889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_close" >&5
5890 $as_echo "$ac_cv_lib_sqlite3_sqlite3_close" >&6; }
5891 if test "x$ac_cv_lib_sqlite3_sqlite3_close" = xyes; then :
5893 svn_lib_sqlite="yes"
5894 if test -z "$sqlite_dir" -o ! -d "$sqlite_dir"; then
5895 SVN_SQLITE_LIBS="-lsqlite3"
5897 SVN_SQLITE_INCLUDES="-I$sqlite_dir/include"
5899 input_flags="-L$sqlite_dir/lib -lsqlite3"
5901 filtered_dirs="/lib /lib64 /usr/lib /usr/lib64"
5902 for flag in $input_flags; do
5904 for dir in $filtered_dirs; do
5905 if test "$flag" = "-L$dir" || test "$flag" = "-L$dir/"; then
5910 if test "$filter" = "no"; then
5911 output_flags="$output_flags $flag"
5914 if test -n "$output_flags"; then
5915 printf "%s" "${output_flags# }"
5923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported SQLite version" >&5
5924 $as_echo "unsupported SQLite version" >&6; }
5933 CPPFLAGS="$save_CPPFLAGS"
5934 LDFLAGS="$save_LDFLAGS"
5938 sqlite_amalg="$sqlite_dir"
5939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sqlite amalgamation" >&5
5940 $as_echo_n "checking sqlite amalgamation... " >&6; }
5941 if test ! -e $sqlite_amalg; then
5942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5943 $as_echo "no" >&6; }
5945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5946 $as_echo "yes" >&6; }
5947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sqlite amalgamation file version" >&5
5948 $as_echo_n "checking sqlite amalgamation file version... " >&6; }
5949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5950 /* end confdefs.h. */
5952 #include "$sqlite_amalg"
5953 #if SQLITE_VERSION_NUMBER >= $sqlite_min_ver_num
5957 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5958 $EGREP "SQLITE_VERSION_OKAY" >/dev/null 2>&1; then :
5959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: amalgamation found and is okay" >&5
5960 $as_echo "amalgamation found and is okay" >&6; }
5963 beos* | mingw* | pw32* | cegcc* | cygwin*)
5964 svn_sqlite_dso_ldflags=
5968 # if libdl is installed we need to link against it
5969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
5970 $as_echo_n "checking for dlopen in -ldl... " >&6; }
5971 if ${ac_cv_lib_dl_dlopen+:} false; then :
5972 $as_echo_n "(cached) " >&6
5974 ac_check_lib_save_LIBS=$LIBS
5976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5977 /* end confdefs.h. */
5979 /* Override any GCC internal prototype to avoid an error.
5980 Use char because int might match the return type of a GCC
5981 builtin and then its argument prototype would still apply. */
5994 if ac_fn_c_try_link "$LINENO"; then :
5995 ac_cv_lib_dl_dlopen=yes
5997 ac_cv_lib_dl_dlopen=no
5999 rm -f core conftest.err conftest.$ac_objext \
6000 conftest$ac_exeext conftest.$ac_ext
6001 LIBS=$ac_check_lib_save_LIBS
6003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
6004 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
6005 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
6006 lt_cv_dlopen="dlopen" svn_sqlite_dso_ldflags="-ldl"
6009 svn_sqlite_dso_ldflags=
6016 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
6017 if test "x$ac_cv_func_shl_load" = xyes; then :
6018 svn_sqlite_dso_ldflags=
6020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
6021 $as_echo_n "checking for shl_load in -ldld... " >&6; }
6022 if ${ac_cv_lib_dld_shl_load+:} false; then :
6023 $as_echo_n "(cached) " >&6
6025 ac_check_lib_save_LIBS=$LIBS
6027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6028 /* end confdefs.h. */
6030 /* Override any GCC internal prototype to avoid an error.
6031 Use char because int might match the return type of a GCC
6032 builtin and then its argument prototype would still apply. */
6045 if ac_fn_c_try_link "$LINENO"; then :
6046 ac_cv_lib_dld_shl_load=yes
6048 ac_cv_lib_dld_shl_load=no
6050 rm -f core conftest.err conftest.$ac_objext \
6051 conftest$ac_exeext conftest.$ac_ext
6052 LIBS=$ac_check_lib_save_LIBS
6054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
6055 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
6056 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
6057 svn_sqlite_dso_ldflags="-ldld"
6059 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
6060 if test "x$ac_cv_func_dlopen" = xyes; then :
6061 svn_sqlite_dso_ldflags=
6063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
6064 $as_echo_n "checking for dlopen in -ldl... " >&6; }
6065 if ${ac_cv_lib_dl_dlopen+:} false; then :
6066 $as_echo_n "(cached) " >&6
6068 ac_check_lib_save_LIBS=$LIBS
6070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6071 /* end confdefs.h. */
6073 /* Override any GCC internal prototype to avoid an error.
6074 Use char because int might match the return type of a GCC
6075 builtin and then its argument prototype would still apply. */
6088 if ac_fn_c_try_link "$LINENO"; then :
6089 ac_cv_lib_dl_dlopen=yes
6091 ac_cv_lib_dl_dlopen=no
6093 rm -f core conftest.err conftest.$ac_objext \
6094 conftest$ac_exeext conftest.$ac_ext
6095 LIBS=$ac_check_lib_save_LIBS
6097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
6098 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
6099 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
6100 svn_sqlite_dso_ldflags="-ldl"
6102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
6103 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
6104 if ${ac_cv_lib_svld_dlopen+:} false; then :
6105 $as_echo_n "(cached) " >&6
6107 ac_check_lib_save_LIBS=$LIBS
6109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6110 /* end confdefs.h. */
6112 /* Override any GCC internal prototype to avoid an error.
6113 Use char because int might match the return type of a GCC
6114 builtin and then its argument prototype would still apply. */
6127 if ac_fn_c_try_link "$LINENO"; then :
6128 ac_cv_lib_svld_dlopen=yes
6130 ac_cv_lib_svld_dlopen=no
6132 rm -f core conftest.err conftest.$ac_objext \
6133 conftest$ac_exeext conftest.$ac_ext
6134 LIBS=$ac_check_lib_save_LIBS
6136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
6137 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
6138 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
6139 svn_sqlite_dso_ldflags="-lsvld"
6141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
6142 $as_echo_n "checking for dld_link in -ldld... " >&6; }
6143 if ${ac_cv_lib_dld_dld_link+:} false; then :
6144 $as_echo_n "(cached) " >&6
6146 ac_check_lib_save_LIBS=$LIBS
6148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6149 /* end confdefs.h. */
6151 /* Override any GCC internal prototype to avoid an error.
6152 Use char because int might match the return type of a GCC
6153 builtin and then its argument prototype would still apply. */
6166 if ac_fn_c_try_link "$LINENO"; then :
6167 ac_cv_lib_dld_dld_link=yes
6169 ac_cv_lib_dld_dld_link=no
6171 rm -f core conftest.err conftest.$ac_objext \
6172 conftest$ac_exeext conftest.$ac_ext
6173 LIBS=$ac_check_lib_save_LIBS
6175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
6176 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
6177 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
6178 svn_sqlite_dso_ldflags="-ldld"
6199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking additional libraries for sqlite" >&5
6200 $as_echo_n "checking additional libraries for sqlite... " >&6; }
6201 if test -n "$svn_sqlite_dso_ldflags"; then
6202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${svn_sqlite_dso_ldflags}" >&5
6203 $as_echo "${svn_sqlite_dso_ldflags}" >&6; }
6205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6206 $as_echo "none" >&6; }
6210 $as_echo "#define SVN_SQLITE_INLINE 1" >>confdefs.h
6212 SVN_SQLITE_INCLUDES="-I`dirname $sqlite_amalg`"
6213 if test -n "$svn_sqlite_dso_ldflags"; then
6214 SVN_SQLITE_LIBS="$svn_sqlite_dso_ldflags -lpthread"
6216 SVN_SQLITE_LIBS="-lpthread"
6218 svn_lib_sqlite="yes"
6220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported amalgamation SQLite version" >&5
6221 $as_echo "unsupported amalgamation SQLite version" >&6; }
6229 if test -z "$svn_lib_sqlite"; then
6230 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no suitable sqlite found in $sqlite_dir" >&5
6231 $as_echo "$as_me: WARNING: no suitable sqlite found in $sqlite_dir" >&2;}
6234 echo "An appropriate version of sqlite could not be found. We recommmend"
6235 echo "${SQLITE_RECOMMENDED_VER}, but require at least ${SQLITE_MINIMUM_VER}."
6236 echo "Please either install a newer sqlite on this system"
6240 echo "get the sqlite ${SQLITE_RECOMMENDED_VER} amalgamation from:"
6241 echo " ${SQLITE_URL}"
6242 echo "unpack the archive using unzip and rename the resulting"
6243 echo "directory to:"
6244 echo "$abs_srcdir/sqlite-amalgamation"
6245 if test x"$abs_srcdir" != x"$abs_builddir"; then
6247 echo "$abs_builddir/sqlite-amalgamation"
6250 as_fn_error $? "Subversion requires SQLite" "$LINENO" 5
6257 sqlite_amalg="$abs_srcdir/sqlite-amalgamation/sqlite3.c"
6258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sqlite amalgamation" >&5
6259 $as_echo_n "checking sqlite amalgamation... " >&6; }
6260 if test ! -e $sqlite_amalg; then
6261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6262 $as_echo "no" >&6; }
6264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6265 $as_echo "yes" >&6; }
6266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sqlite amalgamation file version" >&5
6267 $as_echo_n "checking sqlite amalgamation file version... " >&6; }
6268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6269 /* end confdefs.h. */
6271 #include "$sqlite_amalg"
6272 #if SQLITE_VERSION_NUMBER >= $sqlite_min_ver_num
6276 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6277 $EGREP "SQLITE_VERSION_OKAY" >/dev/null 2>&1; then :
6278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: amalgamation found and is okay" >&5
6279 $as_echo "amalgamation found and is okay" >&6; }
6282 beos* | mingw* | pw32* | cegcc* | cygwin*)
6283 svn_sqlite_dso_ldflags=
6287 # if libdl is installed we need to link against it
6288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
6289 $as_echo_n "checking for dlopen in -ldl... " >&6; }
6290 if ${ac_cv_lib_dl_dlopen+:} false; then :
6291 $as_echo_n "(cached) " >&6
6293 ac_check_lib_save_LIBS=$LIBS
6295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6296 /* end confdefs.h. */
6298 /* Override any GCC internal prototype to avoid an error.
6299 Use char because int might match the return type of a GCC
6300 builtin and then its argument prototype would still apply. */
6313 if ac_fn_c_try_link "$LINENO"; then :
6314 ac_cv_lib_dl_dlopen=yes
6316 ac_cv_lib_dl_dlopen=no
6318 rm -f core conftest.err conftest.$ac_objext \
6319 conftest$ac_exeext conftest.$ac_ext
6320 LIBS=$ac_check_lib_save_LIBS
6322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
6323 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
6324 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
6325 lt_cv_dlopen="dlopen" svn_sqlite_dso_ldflags="-ldl"
6328 svn_sqlite_dso_ldflags=
6335 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
6336 if test "x$ac_cv_func_shl_load" = xyes; then :
6337 svn_sqlite_dso_ldflags=
6339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
6340 $as_echo_n "checking for shl_load in -ldld... " >&6; }
6341 if ${ac_cv_lib_dld_shl_load+:} false; then :
6342 $as_echo_n "(cached) " >&6
6344 ac_check_lib_save_LIBS=$LIBS
6346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6347 /* end confdefs.h. */
6349 /* Override any GCC internal prototype to avoid an error.
6350 Use char because int might match the return type of a GCC
6351 builtin and then its argument prototype would still apply. */
6364 if ac_fn_c_try_link "$LINENO"; then :
6365 ac_cv_lib_dld_shl_load=yes
6367 ac_cv_lib_dld_shl_load=no
6369 rm -f core conftest.err conftest.$ac_objext \
6370 conftest$ac_exeext conftest.$ac_ext
6371 LIBS=$ac_check_lib_save_LIBS
6373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
6374 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
6375 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
6376 svn_sqlite_dso_ldflags="-ldld"
6378 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
6379 if test "x$ac_cv_func_dlopen" = xyes; then :
6380 svn_sqlite_dso_ldflags=
6382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
6383 $as_echo_n "checking for dlopen in -ldl... " >&6; }
6384 if ${ac_cv_lib_dl_dlopen+:} false; then :
6385 $as_echo_n "(cached) " >&6
6387 ac_check_lib_save_LIBS=$LIBS
6389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6390 /* end confdefs.h. */
6392 /* Override any GCC internal prototype to avoid an error.
6393 Use char because int might match the return type of a GCC
6394 builtin and then its argument prototype would still apply. */
6407 if ac_fn_c_try_link "$LINENO"; then :
6408 ac_cv_lib_dl_dlopen=yes
6410 ac_cv_lib_dl_dlopen=no
6412 rm -f core conftest.err conftest.$ac_objext \
6413 conftest$ac_exeext conftest.$ac_ext
6414 LIBS=$ac_check_lib_save_LIBS
6416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
6417 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
6418 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
6419 svn_sqlite_dso_ldflags="-ldl"
6421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
6422 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
6423 if ${ac_cv_lib_svld_dlopen+:} false; then :
6424 $as_echo_n "(cached) " >&6
6426 ac_check_lib_save_LIBS=$LIBS
6428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6429 /* end confdefs.h. */
6431 /* Override any GCC internal prototype to avoid an error.
6432 Use char because int might match the return type of a GCC
6433 builtin and then its argument prototype would still apply. */
6446 if ac_fn_c_try_link "$LINENO"; then :
6447 ac_cv_lib_svld_dlopen=yes
6449 ac_cv_lib_svld_dlopen=no
6451 rm -f core conftest.err conftest.$ac_objext \
6452 conftest$ac_exeext conftest.$ac_ext
6453 LIBS=$ac_check_lib_save_LIBS
6455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
6456 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
6457 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
6458 svn_sqlite_dso_ldflags="-lsvld"
6460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
6461 $as_echo_n "checking for dld_link in -ldld... " >&6; }
6462 if ${ac_cv_lib_dld_dld_link+:} false; then :
6463 $as_echo_n "(cached) " >&6
6465 ac_check_lib_save_LIBS=$LIBS
6467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6468 /* end confdefs.h. */
6470 /* Override any GCC internal prototype to avoid an error.
6471 Use char because int might match the return type of a GCC
6472 builtin and then its argument prototype would still apply. */
6485 if ac_fn_c_try_link "$LINENO"; then :
6486 ac_cv_lib_dld_dld_link=yes
6488 ac_cv_lib_dld_dld_link=no
6490 rm -f core conftest.err conftest.$ac_objext \
6491 conftest$ac_exeext conftest.$ac_ext
6492 LIBS=$ac_check_lib_save_LIBS
6494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
6495 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
6496 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
6497 svn_sqlite_dso_ldflags="-ldld"
6518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking additional libraries for sqlite" >&5
6519 $as_echo_n "checking additional libraries for sqlite... " >&6; }
6520 if test -n "$svn_sqlite_dso_ldflags"; then
6521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${svn_sqlite_dso_ldflags}" >&5
6522 $as_echo "${svn_sqlite_dso_ldflags}" >&6; }
6524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6525 $as_echo "none" >&6; }
6529 $as_echo "#define SVN_SQLITE_INLINE 1" >>confdefs.h
6531 SVN_SQLITE_INCLUDES="-I`dirname $sqlite_amalg`"
6532 if test -n "$svn_sqlite_dso_ldflags"; then
6533 SVN_SQLITE_LIBS="$svn_sqlite_dso_ldflags -lpthread"
6535 SVN_SQLITE_LIBS="-lpthread"
6537 svn_lib_sqlite="yes"
6539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported amalgamation SQLite version" >&5
6540 $as_echo "unsupported amalgamation SQLite version" >&6; }
6547 if test -z "$svn_lib_sqlite"; then
6549 sqlite_amalg="$abs_builddir/sqlite-amalgamation/sqlite3.c"
6550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sqlite amalgamation" >&5
6551 $as_echo_n "checking sqlite amalgamation... " >&6; }
6552 if test ! -e $sqlite_amalg; then
6553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6554 $as_echo "no" >&6; }
6556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6557 $as_echo "yes" >&6; }
6558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sqlite amalgamation file version" >&5
6559 $as_echo_n "checking sqlite amalgamation file version... " >&6; }
6560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6561 /* end confdefs.h. */
6563 #include "$sqlite_amalg"
6564 #if SQLITE_VERSION_NUMBER >= $sqlite_min_ver_num
6568 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6569 $EGREP "SQLITE_VERSION_OKAY" >/dev/null 2>&1; then :
6570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: amalgamation found and is okay" >&5
6571 $as_echo "amalgamation found and is okay" >&6; }
6574 beos* | mingw* | pw32* | cegcc* | cygwin*)
6575 svn_sqlite_dso_ldflags=
6579 # if libdl is installed we need to link against it
6580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
6581 $as_echo_n "checking for dlopen in -ldl... " >&6; }
6582 if ${ac_cv_lib_dl_dlopen+:} false; then :
6583 $as_echo_n "(cached) " >&6
6585 ac_check_lib_save_LIBS=$LIBS
6587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6588 /* end confdefs.h. */
6590 /* Override any GCC internal prototype to avoid an error.
6591 Use char because int might match the return type of a GCC
6592 builtin and then its argument prototype would still apply. */
6605 if ac_fn_c_try_link "$LINENO"; then :
6606 ac_cv_lib_dl_dlopen=yes
6608 ac_cv_lib_dl_dlopen=no
6610 rm -f core conftest.err conftest.$ac_objext \
6611 conftest$ac_exeext conftest.$ac_ext
6612 LIBS=$ac_check_lib_save_LIBS
6614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
6615 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
6616 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
6617 lt_cv_dlopen="dlopen" svn_sqlite_dso_ldflags="-ldl"
6620 svn_sqlite_dso_ldflags=
6627 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
6628 if test "x$ac_cv_func_shl_load" = xyes; then :
6629 svn_sqlite_dso_ldflags=
6631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
6632 $as_echo_n "checking for shl_load in -ldld... " >&6; }
6633 if ${ac_cv_lib_dld_shl_load+:} false; then :
6634 $as_echo_n "(cached) " >&6
6636 ac_check_lib_save_LIBS=$LIBS
6638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6639 /* end confdefs.h. */
6641 /* Override any GCC internal prototype to avoid an error.
6642 Use char because int might match the return type of a GCC
6643 builtin and then its argument prototype would still apply. */
6656 if ac_fn_c_try_link "$LINENO"; then :
6657 ac_cv_lib_dld_shl_load=yes
6659 ac_cv_lib_dld_shl_load=no
6661 rm -f core conftest.err conftest.$ac_objext \
6662 conftest$ac_exeext conftest.$ac_ext
6663 LIBS=$ac_check_lib_save_LIBS
6665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
6666 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
6667 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
6668 svn_sqlite_dso_ldflags="-ldld"
6670 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
6671 if test "x$ac_cv_func_dlopen" = xyes; then :
6672 svn_sqlite_dso_ldflags=
6674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
6675 $as_echo_n "checking for dlopen in -ldl... " >&6; }
6676 if ${ac_cv_lib_dl_dlopen+:} false; then :
6677 $as_echo_n "(cached) " >&6
6679 ac_check_lib_save_LIBS=$LIBS
6681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6682 /* end confdefs.h. */
6684 /* Override any GCC internal prototype to avoid an error.
6685 Use char because int might match the return type of a GCC
6686 builtin and then its argument prototype would still apply. */
6699 if ac_fn_c_try_link "$LINENO"; then :
6700 ac_cv_lib_dl_dlopen=yes
6702 ac_cv_lib_dl_dlopen=no
6704 rm -f core conftest.err conftest.$ac_objext \
6705 conftest$ac_exeext conftest.$ac_ext
6706 LIBS=$ac_check_lib_save_LIBS
6708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
6709 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
6710 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
6711 svn_sqlite_dso_ldflags="-ldl"
6713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
6714 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
6715 if ${ac_cv_lib_svld_dlopen+:} false; then :
6716 $as_echo_n "(cached) " >&6
6718 ac_check_lib_save_LIBS=$LIBS
6720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6721 /* end confdefs.h. */
6723 /* Override any GCC internal prototype to avoid an error.
6724 Use char because int might match the return type of a GCC
6725 builtin and then its argument prototype would still apply. */
6738 if ac_fn_c_try_link "$LINENO"; then :
6739 ac_cv_lib_svld_dlopen=yes
6741 ac_cv_lib_svld_dlopen=no
6743 rm -f core conftest.err conftest.$ac_objext \
6744 conftest$ac_exeext conftest.$ac_ext
6745 LIBS=$ac_check_lib_save_LIBS
6747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
6748 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
6749 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
6750 svn_sqlite_dso_ldflags="-lsvld"
6752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
6753 $as_echo_n "checking for dld_link in -ldld... " >&6; }
6754 if ${ac_cv_lib_dld_dld_link+:} false; then :
6755 $as_echo_n "(cached) " >&6
6757 ac_check_lib_save_LIBS=$LIBS
6759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6760 /* end confdefs.h. */
6762 /* Override any GCC internal prototype to avoid an error.
6763 Use char because int might match the return type of a GCC
6764 builtin and then its argument prototype would still apply. */
6777 if ac_fn_c_try_link "$LINENO"; then :
6778 ac_cv_lib_dld_dld_link=yes
6780 ac_cv_lib_dld_dld_link=no
6782 rm -f core conftest.err conftest.$ac_objext \
6783 conftest$ac_exeext conftest.$ac_ext
6784 LIBS=$ac_check_lib_save_LIBS
6786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
6787 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
6788 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
6789 svn_sqlite_dso_ldflags="-ldld"
6810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking additional libraries for sqlite" >&5
6811 $as_echo_n "checking additional libraries for sqlite... " >&6; }
6812 if test -n "$svn_sqlite_dso_ldflags"; then
6813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${svn_sqlite_dso_ldflags}" >&5
6814 $as_echo "${svn_sqlite_dso_ldflags}" >&6; }
6816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6817 $as_echo "none" >&6; }
6821 $as_echo "#define SVN_SQLITE_INLINE 1" >>confdefs.h
6823 SVN_SQLITE_INCLUDES="-I`dirname $sqlite_amalg`"
6824 if test -n "$svn_sqlite_dso_ldflags"; then
6825 SVN_SQLITE_LIBS="$svn_sqlite_dso_ldflags -lpthread"
6827 SVN_SQLITE_LIBS="-lpthread"
6829 svn_lib_sqlite="yes"
6831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported amalgamation SQLite version" >&5
6832 $as_echo "unsupported amalgamation SQLite version" >&6; }
6840 if test -z "$svn_lib_sqlite"; then
6844 sqlite_include="sqlite3.h"
6847 sqlite_include="/include/sqlite3.h"
6850 save_CPPFLAGS="$CPPFLAGS"
6851 save_LDFLAGS="$LDFLAGS"
6853 if test ! -z ""; then
6854 CPPFLAGS="$CPPFLAGS -I$sqlite_dir/include"
6855 LDFLAGS="$LDFLAGS -L$sqlite_dir/lib"
6858 ac_fn_c_check_header_mongrel "$LINENO" "sqlite3.h" "ac_cv_header_sqlite3_h" "$ac_includes_default"
6859 if test "x$ac_cv_header_sqlite3_h" = xyes; then :
6861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sqlite library version (via header)" >&5
6862 $as_echo_n "checking sqlite library version (via header)... " >&6; }
6863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6864 /* end confdefs.h. */
6866 #include "$sqlite_include"
6867 #if SQLITE_VERSION_NUMBER >= $sqlite_min_ver_num
6871 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6872 $EGREP "SQLITE_VERSION_OKAY" >/dev/null 2>&1; then :
6873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: okay" >&5
6874 $as_echo "okay" >&6; }
6875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite3_close in -lsqlite3" >&5
6876 $as_echo_n "checking for sqlite3_close in -lsqlite3... " >&6; }
6877 if ${ac_cv_lib_sqlite3_sqlite3_close+:} false; then :
6878 $as_echo_n "(cached) " >&6
6880 ac_check_lib_save_LIBS=$LIBS
6881 LIBS="-lsqlite3 $LIBS"
6882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6883 /* end confdefs.h. */
6885 /* Override any GCC internal prototype to avoid an error.
6886 Use char because int might match the return type of a GCC
6887 builtin and then its argument prototype would still apply. */
6891 char sqlite3_close ();
6895 return sqlite3_close ();
6900 if ac_fn_c_try_link "$LINENO"; then :
6901 ac_cv_lib_sqlite3_sqlite3_close=yes
6903 ac_cv_lib_sqlite3_sqlite3_close=no
6905 rm -f core conftest.err conftest.$ac_objext \
6906 conftest$ac_exeext conftest.$ac_ext
6907 LIBS=$ac_check_lib_save_LIBS
6909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_close" >&5
6910 $as_echo "$ac_cv_lib_sqlite3_sqlite3_close" >&6; }
6911 if test "x$ac_cv_lib_sqlite3_sqlite3_close" = xyes; then :
6913 svn_lib_sqlite="yes"
6914 if test -z "$sqlite_dir" -o ! -d "$sqlite_dir"; then
6915 SVN_SQLITE_LIBS="-lsqlite3"
6917 SVN_SQLITE_INCLUDES="-I$sqlite_dir/include"
6919 input_flags="-L$sqlite_dir/lib -lsqlite3"
6921 filtered_dirs="/lib /lib64 /usr/lib /usr/lib64"
6922 for flag in $input_flags; do
6924 for dir in $filtered_dirs; do
6925 if test "$flag" = "-L$dir" || test "$flag" = "-L$dir/"; then
6930 if test "$filter" = "no"; then
6931 output_flags="$output_flags $flag"
6934 if test -n "$output_flags"; then
6935 printf "%s" "${output_flags# }"
6943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported SQLite version" >&5
6944 $as_echo "unsupported SQLite version" >&6; }
6953 CPPFLAGS="$save_CPPFLAGS"
6954 LDFLAGS="$save_LDFLAGS"
6958 if test -z "$svn_lib_sqlite"; then
6960 if test -n "$PKG_CONFIG"; then
6961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sqlite library version (via pkg-config)" >&5
6962 $as_echo_n "checking sqlite library version (via pkg-config)... " >&6; }
6963 sqlite_version=`$PKG_CONFIG $SQLITE_PKGNAME --modversion --silence-errors`
6965 if test -n "$sqlite_version"; then
6967 version_string="$sqlite_version"
6969 major=`expr $version_string : '\([0-9]*\)'`
6970 minor=`expr $version_string : '[0-9]*\.\([0-9]*\)'`
6971 micro=`expr $version_string : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
6972 if test -z "$micro"; then
6975 sqlite_ver_num=`expr $major \* 1000000 \
6980 if test "$sqlite_ver_num" -ge "$sqlite_min_ver_num"; then
6981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sqlite_version" >&5
6982 $as_echo "$sqlite_version" >&6; }
6983 svn_lib_sqlite="yes"
6984 SVN_SQLITE_INCLUDES="`$PKG_CONFIG $SQLITE_PKGNAME --cflags`"
6985 SVN_SQLITE_LIBS="`$PKG_CONFIG $SQLITE_PKGNAME --libs`"
6987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none or unsupported $sqlite_version" >&5
6988 $as_echo "none or unsupported $sqlite_version" >&6; }
6993 if test -z "$svn_lib_sqlite"; then
6994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6995 $as_echo "no" >&6; }
7000 if test -z "$svn_lib_sqlite"; then
7003 echo "An appropriate version of sqlite could not be found. We recommmend"
7004 echo "${SQLITE_RECOMMENDED_VER}, but require at least ${SQLITE_MINIMUM_VER}."
7005 echo "Please either install a newer sqlite on this system"
7009 echo "get the sqlite ${SQLITE_RECOMMENDED_VER} amalgamation from:"
7010 echo " ${SQLITE_URL}"
7011 echo "unpack the archive using unzip and rename the resulting"
7012 echo "directory to:"
7013 echo "$abs_srcdir/sqlite-amalgamation"
7014 if test x"$abs_srcdir" != x"$abs_builddir"; then
7016 echo "$abs_builddir/sqlite-amalgamation"
7019 as_fn_error $? "Subversion requires SQLite" "$LINENO" 5
7030 # Check whether --enable-sqlite-compatibility-version was given.
7031 if test "${enable_sqlite_compatibility_version+set}" = set; then :
7032 enableval=$enable_sqlite_compatibility_version; sqlite_compat_ver=$enableval
7034 sqlite_compat_ver=no
7038 if test -n "$sqlite_compat_ver" && test "$sqlite_compat_ver" != no; then
7040 version_string="$sqlite_compat_ver"
7042 major=`expr $version_string : '\([0-9]*\)'`
7043 minor=`expr $version_string : '[0-9]*\.\([0-9]*\)'`
7044 micro=`expr $version_string : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
7045 if test -z "$micro"; then
7048 sqlite_compat_ver_num=`expr $major \* 1000000 \
7052 CFLAGS="-DSVN_SQLITE_MIN_VERSION='\"$sqlite_compat_ver\"' $CFLAGS"
7053 CFLAGS="-DSVN_SQLITE_MIN_VERSION_NUMBER=$sqlite_compat_ver_num $CFLAGS"
7057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler provides atomic builtins" >&5
7058 $as_echo_n "checking whether the compiler provides atomic builtins... " >&6; }
7059 if ${svn_cv_atomic_builtins+:} false; then :
7060 $as_echo_n "(cached) " >&6
7062 if test "$cross_compiling" = yes; then :
7063 svn_cv_atomic_builtins=no
7065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7066 /* end confdefs.h. */
7070 unsigned long long val = 1010, tmp, *mem = &val;
7072 if (__sync_fetch_and_add(&val, 1010) != 1010 || val != 2020)
7077 if (__sync_fetch_and_sub(mem, 1010) != tmp || val != 1010)
7080 if (__sync_sub_and_fetch(&val, 1010) != 0 || val != 0)
7085 if (__sync_val_compare_and_swap(mem, 0, tmp) != 0 || val != tmp)
7088 if (__sync_lock_test_and_set(&val, 4040) != 3030)
7093 if (__sync_val_compare_and_swap(&mem, &tmp, &val) != &tmp)
7096 __sync_synchronize();
7104 if ac_fn_c_try_run "$LINENO"; then :
7105 svn_cv_atomic_builtins=yes
7107 svn_cv_atomic_builtins=no
7109 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7110 conftest.$ac_objext conftest.beam conftest.$ac_ext
7114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $svn_cv_atomic_builtins" >&5
7115 $as_echo "$svn_cv_atomic_builtins" >&6; }
7118 if test "$svn_cv_atomic_builtins" = "yes"; then
7120 $as_echo "#define SVN_HAS_ATOMIC_BUILTINS 1" >>confdefs.h
7125 if test "${bindir}" = '${exec_prefix}/bin'; then
7126 if test "${exec_prefix}" = "NONE"; then
7127 if test "${prefix}" = "NONE"; then
7128 SVN_BINDIR="${ac_default_prefix}/bin"
7130 SVN_BINDIR="${prefix}/bin"
7133 SVN_BINDIR="${exec_prefix}/bin"
7136 SVN_BINDIR="${bindir}"
7139 SVN_BINDIR="`eval echo ${SVN_BINDIR}`"
7143 cat >>confdefs.h <<_ACEOF
7144 #define SVN_BINDIR "${SVN_BINDIR}"
7148 localedir='${datadir}/locale'
7151 if test "${datadir}" = '${prefix}/share' && test "${prefix}" = "NONE"; then
7152 exp_localedir='${ac_default_prefix}/share/locale'
7154 exp_localedir=$localedir
7158 svn_cur=""${exp_localedir}""
7159 while test "x${svn_cur}" != "x${svn_last}";
7161 svn_last="${svn_cur}"
7162 svn_cur=`eval "echo ${svn_cur}"`
7164 svn_localedir="${svn_cur}"
7167 cat >>confdefs.h <<_ACEOF
7168 #define SVN_LOCALE_DIR "${svn_localedir}"
7172 { $as_echo "$as_me:${as_lineno-$LINENO}: configuring libtool now" >&5
7173 $as_echo "$as_me: configuring libtool now" >&6;}
7176 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
7177 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
7182 macro_version='2.4.2'
7183 macro_revision='1.3337'
7197 ltmain="$ac_aux_dir/ltmain.sh"
7199 # Backslashify metacharacters that are still active within
7200 # double-quoted strings.
7201 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7203 # Same as above, but do not quote variable references.
7204 double_quote_subst='s/\(["`\\]\)/\\\1/g'
7206 # Sed substitution to delay expansion of an escaped shell variable in a
7207 # double_quote_subst'ed string.
7208 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7210 # Sed substitution to delay expansion of an escaped single quote.
7211 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7213 # Sed substitution to avoid accidental globbing in evaled expressions
7214 no_glob_subst='s/\*/\\\*/g'
7216 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7217 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
7218 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
7220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
7221 $as_echo_n "checking how to print strings... " >&6; }
7222 # Test print first, because it will be a builtin if present.
7223 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
7224 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
7226 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
7229 # Use this function as a fallback that always works.
7230 func_fallback_echo ()
7232 eval 'cat <<_LTECHO_EOF
7236 ECHO='func_fallback_echo'
7239 # func_echo_all arg...
7240 # Invoke $ECHO with all args, space-separated.
7247 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
7248 $as_echo "printf" >&6; } ;;
7249 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
7250 $as_echo "print -r" >&6; } ;;
7251 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
7252 $as_echo "cat" >&6; } ;;
7268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
7269 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
7270 if ${ac_cv_path_SED+:} false; then :
7271 $as_echo_n "(cached) " >&6
7273 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
7274 for ac_i in 1 2 3 4 5 6 7; do
7275 ac_script="$ac_script$as_nl$ac_script"
7277 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
7278 { ac_script=; unset ac_script;}
7279 if test -z "$SED"; then
7280 ac_path_SED_found=false
7281 # Loop through the user's path and test for each of PROGNAME-LIST
7282 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7286 test -z "$as_dir" && as_dir=.
7287 for ac_prog in sed gsed; do
7288 for ac_exec_ext in '' $ac_executable_extensions; do
7289 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
7290 as_fn_executable_p "$ac_path_SED" || continue
7291 # Check for GNU ac_path_SED and select it if it is found.
7292 # Check for GNU $ac_path_SED
7293 case `"$ac_path_SED" --version 2>&1` in
7295 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
7298 $as_echo_n 0123456789 >"conftest.in"
7301 cat "conftest.in" "conftest.in" >"conftest.tmp"
7302 mv "conftest.tmp" "conftest.in"
7303 cp "conftest.in" "conftest.nl"
7304 $as_echo '' >> "conftest.nl"
7305 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
7306 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7307 as_fn_arith $ac_count + 1 && ac_count=$as_val
7308 if test $ac_count -gt ${ac_path_SED_max-0}; then
7309 # Best one so far, save it but keep looking for a better one
7310 ac_cv_path_SED="$ac_path_SED"
7311 ac_path_SED_max=$ac_count
7313 # 10*(2^10) chars as input seems more than enough
7314 test $ac_count -gt 10 && break
7316 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7319 $ac_path_SED_found && break 3
7324 if test -z "$ac_cv_path_SED"; then
7325 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
7332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
7333 $as_echo "$ac_cv_path_SED" >&6; }
7334 SED="$ac_cv_path_SED"
7337 test -z "$SED" && SED=sed
7338 Xsed="$SED -e 1s/^X//"
7350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
7351 $as_echo_n "checking for fgrep... " >&6; }
7352 if ${ac_cv_path_FGREP+:} false; then :
7353 $as_echo_n "(cached) " >&6
7355 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
7356 then ac_cv_path_FGREP="$GREP -F"
7358 if test -z "$FGREP"; then
7359 ac_path_FGREP_found=false
7360 # Loop through the user's path and test for each of PROGNAME-LIST
7361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7362 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7365 test -z "$as_dir" && as_dir=.
7366 for ac_prog in fgrep; do
7367 for ac_exec_ext in '' $ac_executable_extensions; do
7368 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
7369 as_fn_executable_p "$ac_path_FGREP" || continue
7370 # Check for GNU ac_path_FGREP and select it if it is found.
7371 # Check for GNU $ac_path_FGREP
7372 case `"$ac_path_FGREP" --version 2>&1` in
7374 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
7377 $as_echo_n 0123456789 >"conftest.in"
7380 cat "conftest.in" "conftest.in" >"conftest.tmp"
7381 mv "conftest.tmp" "conftest.in"
7382 cp "conftest.in" "conftest.nl"
7383 $as_echo 'FGREP' >> "conftest.nl"
7384 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
7385 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7386 as_fn_arith $ac_count + 1 && ac_count=$as_val
7387 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
7388 # Best one so far, save it but keep looking for a better one
7389 ac_cv_path_FGREP="$ac_path_FGREP"
7390 ac_path_FGREP_max=$ac_count
7392 # 10*(2^10) chars as input seems more than enough
7393 test $ac_count -gt 10 && break
7395 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7398 $ac_path_FGREP_found && break 3
7403 if test -z "$ac_cv_path_FGREP"; then
7404 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7407 ac_cv_path_FGREP=$FGREP
7412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
7413 $as_echo "$ac_cv_path_FGREP" >&6; }
7414 FGREP="$ac_cv_path_FGREP"
7417 test -z "$GREP" && GREP=grep
7437 # Check whether --with-gnu-ld was given.
7438 if test "${with_gnu_ld+set}" = set; then :
7439 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7445 if test "$GCC" = yes; then
7446 # Check if gcc -print-prog-name=ld gives a path.
7447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7448 $as_echo_n "checking for ld used by $CC... " >&6; }
7451 # gcc leaves a trailing carriage return which upsets mingw
7452 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7454 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7457 # Accept absolute paths.
7459 re_direlt='/[^/][^/]*/\.\./'
7460 # Canonicalize the pathname of ld
7461 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
7462 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
7463 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
7465 test -z "$LD" && LD="$ac_prog"
7468 # If it fails, then pretend we aren't using GCC.
7472 # If it is relative, then search for the first ld in PATH.
7476 elif test "$with_gnu_ld" = yes; then
7477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7478 $as_echo_n "checking for GNU ld... " >&6; }
7480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7481 $as_echo_n "checking for non-GNU ld... " >&6; }
7483 if ${lt_cv_path_LD+:} false; then :
7484 $as_echo_n "(cached) " >&6
7486 if test -z "$LD"; then
7487 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7488 for ac_dir in $PATH; do
7490 test -z "$ac_dir" && ac_dir=.
7491 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7492 lt_cv_path_LD="$ac_dir/$ac_prog"
7493 # Check to see if the program is GNU ld. I'd rather use --version,
7494 # but apparently some variants of GNU ld only accept -v.
7495 # Break only if it was the GNU/non-GNU ld that we prefer.
7496 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7497 *GNU* | *'with BFD'*)
7498 test "$with_gnu_ld" != no && break
7501 test "$with_gnu_ld" != yes && break
7508 lt_cv_path_LD="$LD" # Let the user override the test with a path.
7513 if test -n "$LD"; then
7514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7515 $as_echo "$LD" >&6; }
7517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7518 $as_echo "no" >&6; }
7520 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
7521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7522 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7523 if ${lt_cv_prog_gnu_ld+:} false; then :
7524 $as_echo_n "(cached) " >&6
7526 # I'd rather use --version here, but apparently some GNU lds only accept -v.
7527 case `$LD -v 2>&1 </dev/null` in
7528 *GNU* | *'with BFD'*)
7529 lt_cv_prog_gnu_ld=yes
7532 lt_cv_prog_gnu_ld=no
7536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
7537 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
7538 with_gnu_ld=$lt_cv_prog_gnu_ld
7548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
7549 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
7550 if ${lt_cv_path_NM+:} false; then :
7551 $as_echo_n "(cached) " >&6
7553 if test -n "$NM"; then
7554 # Let the user override the test.
7557 lt_nm_to_check="${ac_tool_prefix}nm"
7558 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
7559 lt_nm_to_check="$lt_nm_to_check nm"
7561 for lt_tmp_nm in $lt_nm_to_check; do
7562 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7563 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
7565 test -z "$ac_dir" && ac_dir=.
7566 tmp_nm="$ac_dir/$lt_tmp_nm"
7567 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
7568 # Check to see if the nm accepts a BSD-compat flag.
7569 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
7570 # nm: unknown option "B" ignored
7571 # Tru64's nm complains that /dev/null is an invalid object file
7572 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
7573 */dev/null* | *'Invalid file or object type'*)
7574 lt_cv_path_NM="$tmp_nm -B"
7578 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
7580 lt_cv_path_NM="$tmp_nm -p"
7584 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
7585 continue # so that we can try to find one that supports BSD flags
7594 : ${lt_cv_path_NM=no}
7597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
7598 $as_echo "$lt_cv_path_NM" >&6; }
7599 if test "$lt_cv_path_NM" != "no"; then
7602 # Didn't find any BSD compatible name lister, look for dumpbin.
7603 if test -n "$DUMPBIN"; then :
7604 # Let the user override the test.
7606 if test -n "$ac_tool_prefix"; then
7607 for ac_prog in dumpbin "link -dump"
7609 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7610 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7612 $as_echo_n "checking for $ac_word... " >&6; }
7613 if ${ac_cv_prog_DUMPBIN+:} false; then :
7614 $as_echo_n "(cached) " >&6
7616 if test -n "$DUMPBIN"; then
7617 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
7619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7623 test -z "$as_dir" && as_dir=.
7624 for ac_exec_ext in '' $ac_executable_extensions; do
7625 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7626 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
7627 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7636 DUMPBIN=$ac_cv_prog_DUMPBIN
7637 if test -n "$DUMPBIN"; then
7638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
7639 $as_echo "$DUMPBIN" >&6; }
7641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7642 $as_echo "no" >&6; }
7646 test -n "$DUMPBIN" && break
7649 if test -z "$DUMPBIN"; then
7650 ac_ct_DUMPBIN=$DUMPBIN
7651 for ac_prog in dumpbin "link -dump"
7653 # Extract the first word of "$ac_prog", so it can be a program name with args.
7654 set dummy $ac_prog; ac_word=$2
7655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7656 $as_echo_n "checking for $ac_word... " >&6; }
7657 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
7658 $as_echo_n "(cached) " >&6
7660 if test -n "$ac_ct_DUMPBIN"; then
7661 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
7663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7667 test -z "$as_dir" && as_dir=.
7668 for ac_exec_ext in '' $ac_executable_extensions; do
7669 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7670 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
7671 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7680 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
7681 if test -n "$ac_ct_DUMPBIN"; then
7682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
7683 $as_echo "$ac_ct_DUMPBIN" >&6; }
7685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7686 $as_echo "no" >&6; }
7690 test -n "$ac_ct_DUMPBIN" && break
7693 if test "x$ac_ct_DUMPBIN" = x; then
7696 case $cross_compiling:$ac_tool_warned in
7698 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7699 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7700 ac_tool_warned=yes ;;
7702 DUMPBIN=$ac_ct_DUMPBIN
7706 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
7708 DUMPBIN="$DUMPBIN -symbols"
7716 if test "$DUMPBIN" != ":"; then
7720 test -z "$NM" && NM=nm
7727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
7728 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
7729 if ${lt_cv_nm_interface+:} false; then :
7730 $as_echo_n "(cached) " >&6
7732 lt_cv_nm_interface="BSD nm"
7733 echo "int some_variable = 0;" > conftest.$ac_ext
7734 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
7735 (eval "$ac_compile" 2>conftest.err)
7736 cat conftest.err >&5
7737 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
7738 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
7739 cat conftest.err >&5
7740 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
7741 cat conftest.out >&5
7742 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
7743 lt_cv_nm_interface="MS dumpbin"
7747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
7748 $as_echo "$lt_cv_nm_interface" >&6; }
7750 # find the maximum length of command line arguments
7751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
7752 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
7753 if ${lt_cv_sys_max_cmd_len+:} false; then :
7754 $as_echo_n "(cached) " >&6
7761 # On DJGPP, this test can blow up pretty badly due to problems in libc
7762 # (any single argument exceeding 2000 bytes causes a buffer overrun
7763 # during glob expansion). Even if it were fixed, the result of this
7764 # check would be larger than it should be.
7765 lt_cv_sys_max_cmd_len=12288; # 12K is about right
7769 # Under GNU Hurd, this test is not required because there is
7770 # no limit to the length of command line arguments.
7771 # Libtool will interpret -1 as no limit whatsoever
7772 lt_cv_sys_max_cmd_len=-1;
7775 cygwin* | mingw* | cegcc*)
7776 # On Win9x/ME, this test blows up -- it succeeds, but takes
7777 # about 5 minutes as the teststring grows exponentially.
7778 # Worse, since 9x/ME are not pre-emptively multitasking,
7779 # you end up with a "frozen" computer, even though with patience
7780 # the test eventually succeeds (with a max line length of 256k).
7781 # Instead, let's just punt: use the minimum linelength reported by
7782 # all of the supported platforms: 8192 (on NT/2K/XP).
7783 lt_cv_sys_max_cmd_len=8192;
7787 # On MiNT this can take a long time and run out of memory.
7788 lt_cv_sys_max_cmd_len=8192;
7792 # On AmigaOS with pdksh, this test takes hours, literally.
7793 # So we just punt and use a minimum line length of 8192.
7794 lt_cv_sys_max_cmd_len=8192;
7797 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7798 # This has been around since 386BSD, at least. Likely further.
7799 if test -x /sbin/sysctl; then
7800 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7801 elif test -x /usr/sbin/sysctl; then
7802 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7804 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
7806 # And add a safety zone
7807 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7808 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7812 # We know the value 262144 and hardcode it with a safety zone (like BSD)
7813 lt_cv_sys_max_cmd_len=196608
7817 # The test takes a long time on OS/2.
7818 lt_cv_sys_max_cmd_len=8192
7822 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7823 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7824 # nice to cause kernel panics so lets avoid the loop below.
7825 # First set a reasonable default.
7826 lt_cv_sys_max_cmd_len=16384
7828 if test -x /sbin/sysconfig; then
7829 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7830 *1*) lt_cv_sys_max_cmd_len=-1 ;;
7835 lt_cv_sys_max_cmd_len=102400
7837 sysv5* | sco5v6* | sysv4.2uw2*)
7838 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7839 if test -n "$kargmax"; then
7840 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
7842 lt_cv_sys_max_cmd_len=32768
7846 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
7847 if test -n "$lt_cv_sys_max_cmd_len"; then
7848 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7849 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7851 # Make teststring a little bigger before we do anything with it.
7852 # a 1K string should be a reasonable start.
7853 for i in 1 2 3 4 5 6 7 8 ; do
7854 teststring=$teststring$teststring
7856 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7857 # If test is not a shell built-in, we'll probably end up computing a
7858 # maximum length that is only half of the actual maximum length, but
7860 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
7861 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
7862 test $i != 17 # 1/2 MB should be enough
7865 teststring=$teststring$teststring
7867 # Only check the string length outside the loop.
7868 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
7870 # Add a significant safety factor because C++ compilers can tack on
7871 # massive amounts of additional arguments before passing them to the
7872 # linker. It appears as though 1/2 is a usable value.
7873 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7880 if test -n $lt_cv_sys_max_cmd_len ; then
7881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
7882 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
7884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
7885 $as_echo "none" >&6; }
7887 max_cmd_len=$lt_cv_sys_max_cmd_len
7898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
7899 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
7900 # Try some XSI features
7903 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
7905 && eval 'test $(( 1 + 1 )) -eq 2 \
7906 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
7908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
7909 $as_echo "$xsi_shell" >&6; }
7912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
7913 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
7915 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
7917 && lt_shell_append=yes
7918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
7919 $as_echo "$lt_shell_append" >&6; }
7922 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7932 # test EBCDIC or ASCII
7933 case `echo X|tr X '\101'` in
7934 A) # ASCII based system
7935 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
7936 lt_SP2NL='tr \040 \012'
7937 lt_NL2SP='tr \015\012 \040\040'
7939 *) # EBCDIC based system
7940 lt_SP2NL='tr \100 \n'
7941 lt_NL2SP='tr \r\n \100\100'
7953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
7954 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
7955 if ${lt_cv_to_host_file_cmd+:} false; then :
7956 $as_echo_n "(cached) " >&6
7961 *-*-mingw* ) # actually msys
7962 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
7965 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
7967 * ) # otherwise, assume *nix
7968 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
7974 *-*-mingw* ) # actually msys
7975 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
7978 lt_cv_to_host_file_cmd=func_convert_file_noop
7980 * ) # otherwise, assume *nix
7981 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
7985 * ) # unhandled hosts (and "normal" native builds)
7986 lt_cv_to_host_file_cmd=func_convert_file_noop
7992 to_host_file_cmd=$lt_cv_to_host_file_cmd
7993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
7994 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
8000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
8001 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
8002 if ${lt_cv_to_tool_file_cmd+:} false; then :
8003 $as_echo_n "(cached) " >&6
8005 #assume ordinary cross tools, or native build.
8006 lt_cv_to_tool_file_cmd=func_convert_file_noop
8010 *-*-mingw* ) # actually msys
8011 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
8019 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
8020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
8021 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
8027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
8028 $as_echo_n "checking for $LD option to reload object files... " >&6; }
8029 if ${lt_cv_ld_reload_flag+:} false; then :
8030 $as_echo_n "(cached) " >&6
8032 lt_cv_ld_reload_flag='-r'
8034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
8035 $as_echo "$lt_cv_ld_reload_flag" >&6; }
8036 reload_flag=$lt_cv_ld_reload_flag
8037 case $reload_flag in
8039 *) reload_flag=" $reload_flag" ;;
8041 reload_cmds='$LD$reload_flag -o $output$reload_objs'
8043 cygwin* | mingw* | pw32* | cegcc*)
8044 if test "$GCC" != yes; then
8049 if test "$GCC" = yes; then
8050 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
8052 reload_cmds='$LD$reload_flag -o $output$reload_objs'
8065 if test -n "$ac_tool_prefix"; then
8066 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
8067 set dummy ${ac_tool_prefix}objdump; ac_word=$2
8068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8069 $as_echo_n "checking for $ac_word... " >&6; }
8070 if ${ac_cv_prog_OBJDUMP+:} false; then :
8071 $as_echo_n "(cached) " >&6
8073 if test -n "$OBJDUMP"; then
8074 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
8076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8080 test -z "$as_dir" && as_dir=.
8081 for ac_exec_ext in '' $ac_executable_extensions; do
8082 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8083 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
8084 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8093 OBJDUMP=$ac_cv_prog_OBJDUMP
8094 if test -n "$OBJDUMP"; then
8095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
8096 $as_echo "$OBJDUMP" >&6; }
8098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8099 $as_echo "no" >&6; }
8104 if test -z "$ac_cv_prog_OBJDUMP"; then
8105 ac_ct_OBJDUMP=$OBJDUMP
8106 # Extract the first word of "objdump", so it can be a program name with args.
8107 set dummy objdump; ac_word=$2
8108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8109 $as_echo_n "checking for $ac_word... " >&6; }
8110 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
8111 $as_echo_n "(cached) " >&6
8113 if test -n "$ac_ct_OBJDUMP"; then
8114 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
8116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8120 test -z "$as_dir" && as_dir=.
8121 for ac_exec_ext in '' $ac_executable_extensions; do
8122 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8123 ac_cv_prog_ac_ct_OBJDUMP="objdump"
8124 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8133 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
8134 if test -n "$ac_ct_OBJDUMP"; then
8135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
8136 $as_echo "$ac_ct_OBJDUMP" >&6; }
8138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8139 $as_echo "no" >&6; }
8142 if test "x$ac_ct_OBJDUMP" = x; then
8145 case $cross_compiling:$ac_tool_warned in
8147 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8148 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8149 ac_tool_warned=yes ;;
8151 OBJDUMP=$ac_ct_OBJDUMP
8154 OBJDUMP="$ac_cv_prog_OBJDUMP"
8157 test -z "$OBJDUMP" && OBJDUMP=objdump
8167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
8168 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
8169 if ${lt_cv_deplibs_check_method+:} false; then :
8170 $as_echo_n "(cached) " >&6
8172 lt_cv_file_magic_cmd='$MAGIC_CMD'
8173 lt_cv_file_magic_test_file=
8174 lt_cv_deplibs_check_method='unknown'
8175 # Need to set the preceding variable on all platforms that support
8176 # interlibrary dependencies.
8177 # 'none' -- dependencies not supported.
8178 # `unknown' -- same as none, but documents that we really don't know.
8179 # 'pass_all' -- all dependencies passed with no checks.
8180 # 'test_compile' -- check by making test program.
8181 # 'file_magic [[regex]]' -- check by looking for files in library path
8182 # which responds to the $file_magic_cmd with a given extended regex.
8183 # If you have `file' or equivalent on your system and you're not sure
8184 # whether `pass_all' will *always* work, you probably want this one.
8188 lt_cv_deplibs_check_method=pass_all
8192 lt_cv_deplibs_check_method=pass_all
8196 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
8197 lt_cv_file_magic_cmd='/usr/bin/file -L'
8198 lt_cv_file_magic_test_file=/shlib/libc.so
8202 # func_win32_libid is a shell function defined in ltmain.sh
8203 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
8204 lt_cv_file_magic_cmd='func_win32_libid'
8208 # Base MSYS/MinGW do not provide the 'file' command needed by
8209 # func_win32_libid shell function, so use a weaker test based on 'objdump',
8210 # unless we find 'file', for example because we are cross-compiling.
8211 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
8212 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
8213 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
8214 lt_cv_file_magic_cmd='func_win32_libid'
8216 # Keep this pattern in sync with the one in func_win32_libid.
8217 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
8218 lt_cv_file_magic_cmd='$OBJDUMP -f'
8223 # use the weaker test based on 'objdump'. See mingw*.
8224 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
8225 lt_cv_file_magic_cmd='$OBJDUMP -f'
8228 darwin* | rhapsody*)
8229 lt_cv_deplibs_check_method=pass_all
8232 freebsd* | dragonfly*)
8233 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8236 # Not sure whether the presence of OpenBSD here was a mistake.
8237 # Let's accept both of them until this is cleared up.
8238 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
8239 lt_cv_file_magic_cmd=/usr/bin/file
8240 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
8244 lt_cv_deplibs_check_method=pass_all
8249 lt_cv_deplibs_check_method=pass_all
8253 lt_cv_deplibs_check_method=pass_all
8256 hpux10.20* | hpux11*)
8257 lt_cv_file_magic_cmd=/usr/bin/file
8260 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
8261 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
8264 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]'
8265 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
8268 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
8269 lt_cv_file_magic_test_file=/usr/lib/libc.sl
8275 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
8276 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
8279 irix5* | irix6* | nonstopux*)
8281 *-32|*"-32 ") libmagic=32-bit;;
8282 *-n32|*"-n32 ") libmagic=N32;;
8283 *-64|*"-64 ") libmagic=64-bit;;
8284 *) libmagic=never-match;;
8286 lt_cv_deplibs_check_method=pass_all
8289 # This must be glibc/ELF.
8290 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8291 lt_cv_deplibs_check_method=pass_all
8295 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8296 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8298 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
8303 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
8304 lt_cv_file_magic_cmd=/usr/bin/file
8305 lt_cv_file_magic_test_file=/usr/lib/libnls.so
8309 lt_cv_deplibs_check_method=pass_all
8313 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8314 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
8316 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8320 osf3* | osf4* | osf5*)
8321 lt_cv_deplibs_check_method=pass_all
8325 lt_cv_deplibs_check_method=pass_all
8329 lt_cv_deplibs_check_method=pass_all
8332 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8333 lt_cv_deplibs_check_method=pass_all
8337 case $host_vendor in
8339 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]'
8340 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
8343 lt_cv_deplibs_check_method=pass_all
8346 lt_cv_file_magic_cmd='/bin/file'
8347 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
8350 lt_cv_file_magic_cmd='/bin/file'
8351 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
8352 lt_cv_file_magic_test_file=/lib/libc.so
8355 lt_cv_deplibs_check_method=pass_all
8358 lt_cv_deplibs_check_method=pass_all
8364 lt_cv_deplibs_check_method=pass_all
8369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
8370 $as_echo "$lt_cv_deplibs_check_method" >&6; }
8374 if test "$build" = "$host"; then
8377 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
8380 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
8386 file_magic_cmd=$lt_cv_file_magic_cmd
8387 deplibs_check_method=$lt_cv_deplibs_check_method
8388 test -z "$deplibs_check_method" && deplibs_check_method=unknown
8411 if test -n "$ac_tool_prefix"; then
8412 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
8413 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
8414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8415 $as_echo_n "checking for $ac_word... " >&6; }
8416 if ${ac_cv_prog_DLLTOOL+:} false; then :
8417 $as_echo_n "(cached) " >&6
8419 if test -n "$DLLTOOL"; then
8420 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8426 test -z "$as_dir" && as_dir=.
8427 for ac_exec_ext in '' $ac_executable_extensions; do
8428 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8429 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
8430 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8439 DLLTOOL=$ac_cv_prog_DLLTOOL
8440 if test -n "$DLLTOOL"; then
8441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8442 $as_echo "$DLLTOOL" >&6; }
8444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8445 $as_echo "no" >&6; }
8450 if test -z "$ac_cv_prog_DLLTOOL"; then
8451 ac_ct_DLLTOOL=$DLLTOOL
8452 # Extract the first word of "dlltool", so it can be a program name with args.
8453 set dummy dlltool; ac_word=$2
8454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8455 $as_echo_n "checking for $ac_word... " >&6; }
8456 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
8457 $as_echo_n "(cached) " >&6
8459 if test -n "$ac_ct_DLLTOOL"; then
8460 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
8462 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8466 test -z "$as_dir" && as_dir=.
8467 for ac_exec_ext in '' $ac_executable_extensions; do
8468 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8469 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
8470 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8479 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
8480 if test -n "$ac_ct_DLLTOOL"; then
8481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
8482 $as_echo "$ac_ct_DLLTOOL" >&6; }
8484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8485 $as_echo "no" >&6; }
8488 if test "x$ac_ct_DLLTOOL" = x; then
8491 case $cross_compiling:$ac_tool_warned in
8493 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8494 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8495 ac_tool_warned=yes ;;
8497 DLLTOOL=$ac_ct_DLLTOOL
8500 DLLTOOL="$ac_cv_prog_DLLTOOL"
8503 test -z "$DLLTOOL" && DLLTOOL=dlltool
8514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
8515 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
8516 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
8517 $as_echo_n "(cached) " >&6
8519 lt_cv_sharedlib_from_linklib_cmd='unknown'
8522 cygwin* | mingw* | pw32* | cegcc*)
8523 # two different shell functions defined in ltmain.sh
8524 # decide which to use based on capabilities of $DLLTOOL
8525 case `$DLLTOOL --help 2>&1` in
8526 *--identify-strict*)
8527 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
8530 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
8535 # fallback: assume linklib IS sharedlib
8536 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
8541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
8542 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
8543 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
8544 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
8552 if test -n "$ac_tool_prefix"; then
8555 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8556 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8558 $as_echo_n "checking for $ac_word... " >&6; }
8559 if ${ac_cv_prog_AR+:} false; then :
8560 $as_echo_n "(cached) " >&6
8562 if test -n "$AR"; then
8563 ac_cv_prog_AR="$AR" # Let the user override the test.
8565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8569 test -z "$as_dir" && as_dir=.
8570 for ac_exec_ext in '' $ac_executable_extensions; do
8571 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8572 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
8573 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8583 if test -n "$AR"; then
8584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8585 $as_echo "$AR" >&6; }
8587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8588 $as_echo "no" >&6; }
8592 test -n "$AR" && break
8595 if test -z "$AR"; then
8599 # Extract the first word of "$ac_prog", so it can be a program name with args.
8600 set dummy $ac_prog; ac_word=$2
8601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8602 $as_echo_n "checking for $ac_word... " >&6; }
8603 if ${ac_cv_prog_ac_ct_AR+:} false; then :
8604 $as_echo_n "(cached) " >&6
8606 if test -n "$ac_ct_AR"; then
8607 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8613 test -z "$as_dir" && as_dir=.
8614 for ac_exec_ext in '' $ac_executable_extensions; do
8615 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8616 ac_cv_prog_ac_ct_AR="$ac_prog"
8617 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8626 ac_ct_AR=$ac_cv_prog_ac_ct_AR
8627 if test -n "$ac_ct_AR"; then
8628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
8629 $as_echo "$ac_ct_AR" >&6; }
8631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8632 $as_echo "no" >&6; }
8636 test -n "$ac_ct_AR" && break
8639 if test "x$ac_ct_AR" = x; then
8642 case $cross_compiling:$ac_tool_warned in
8644 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8645 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8646 ac_tool_warned=yes ;;
8665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
8666 $as_echo_n "checking for archiver @FILE support... " >&6; }
8667 if ${lt_cv_ar_at_file+:} false; then :
8668 $as_echo_n "(cached) " >&6
8671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8672 /* end confdefs.h. */
8682 if ac_fn_c_try_compile "$LINENO"; then :
8683 echo conftest.$ac_objext > conftest.lst
8684 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
8685 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
8686 (eval $lt_ar_try) 2>&5
8688 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8689 test $ac_status = 0; }
8690 if test "$ac_status" -eq 0; then
8691 # Ensure the archiver fails upon bogus file names.
8692 rm -f conftest.$ac_objext libconftest.a
8693 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
8694 (eval $lt_ar_try) 2>&5
8696 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8697 test $ac_status = 0; }
8698 if test "$ac_status" -ne 0; then
8702 rm -f conftest.* libconftest.a
8705 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
8709 $as_echo "$lt_cv_ar_at_file" >&6; }
8711 if test "x$lt_cv_ar_at_file" = xno; then
8714 archiver_list_spec=$lt_cv_ar_at_file
8723 if test -n "$ac_tool_prefix"; then
8724 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8725 set dummy ${ac_tool_prefix}strip; ac_word=$2
8726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8727 $as_echo_n "checking for $ac_word... " >&6; }
8728 if ${ac_cv_prog_STRIP+:} false; then :
8729 $as_echo_n "(cached) " >&6
8731 if test -n "$STRIP"; then
8732 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8738 test -z "$as_dir" && as_dir=.
8739 for ac_exec_ext in '' $ac_executable_extensions; do
8740 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8741 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8742 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8751 STRIP=$ac_cv_prog_STRIP
8752 if test -n "$STRIP"; then
8753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8754 $as_echo "$STRIP" >&6; }
8756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8757 $as_echo "no" >&6; }
8762 if test -z "$ac_cv_prog_STRIP"; then
8764 # Extract the first word of "strip", so it can be a program name with args.
8765 set dummy strip; ac_word=$2
8766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8767 $as_echo_n "checking for $ac_word... " >&6; }
8768 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
8769 $as_echo_n "(cached) " >&6
8771 if test -n "$ac_ct_STRIP"; then
8772 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8778 test -z "$as_dir" && as_dir=.
8779 for ac_exec_ext in '' $ac_executable_extensions; do
8780 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8781 ac_cv_prog_ac_ct_STRIP="strip"
8782 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8791 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8792 if test -n "$ac_ct_STRIP"; then
8793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
8794 $as_echo "$ac_ct_STRIP" >&6; }
8796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8797 $as_echo "no" >&6; }
8800 if test "x$ac_ct_STRIP" = x; then
8803 case $cross_compiling:$ac_tool_warned in
8805 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8806 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8807 ac_tool_warned=yes ;;
8812 STRIP="$ac_cv_prog_STRIP"
8815 test -z "$STRIP" && STRIP=:
8822 if test -n "$ac_tool_prefix"; then
8823 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8824 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8826 $as_echo_n "checking for $ac_word... " >&6; }
8827 if ${ac_cv_prog_RANLIB+:} false; then :
8828 $as_echo_n "(cached) " >&6
8830 if test -n "$RANLIB"; then
8831 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8837 test -z "$as_dir" && as_dir=.
8838 for ac_exec_ext in '' $ac_executable_extensions; do
8839 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8840 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8841 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8850 RANLIB=$ac_cv_prog_RANLIB
8851 if test -n "$RANLIB"; then
8852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8853 $as_echo "$RANLIB" >&6; }
8855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8856 $as_echo "no" >&6; }
8861 if test -z "$ac_cv_prog_RANLIB"; then
8862 ac_ct_RANLIB=$RANLIB
8863 # Extract the first word of "ranlib", so it can be a program name with args.
8864 set dummy ranlib; ac_word=$2
8865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8866 $as_echo_n "checking for $ac_word... " >&6; }
8867 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
8868 $as_echo_n "(cached) " >&6
8870 if test -n "$ac_ct_RANLIB"; then
8871 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8877 test -z "$as_dir" && as_dir=.
8878 for ac_exec_ext in '' $ac_executable_extensions; do
8879 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8880 ac_cv_prog_ac_ct_RANLIB="ranlib"
8881 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8890 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8891 if test -n "$ac_ct_RANLIB"; then
8892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8893 $as_echo "$ac_ct_RANLIB" >&6; }
8895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8896 $as_echo "no" >&6; }
8899 if test "x$ac_ct_RANLIB" = x; then
8902 case $cross_compiling:$ac_tool_warned in
8904 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8905 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8906 ac_tool_warned=yes ;;
8908 RANLIB=$ac_ct_RANLIB
8911 RANLIB="$ac_cv_prog_RANLIB"
8914 test -z "$RANLIB" && RANLIB=:
8921 # Determine commands to create old-style static archives.
8922 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
8923 old_postinstall_cmds='chmod 644 $oldlib'
8924 old_postuninstall_cmds=
8926 if test -n "$RANLIB"; then
8929 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
8932 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
8935 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
8940 lock_old_archive_extraction=yes ;;
8942 lock_old_archive_extraction=no ;;
8965 for ac_prog in gawk mawk nawk awk
8967 # Extract the first word of "$ac_prog", so it can be a program name with args.
8968 set dummy $ac_prog; ac_word=$2
8969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8970 $as_echo_n "checking for $ac_word... " >&6; }
8971 if ${ac_cv_prog_AWK+:} false; then :
8972 $as_echo_n "(cached) " >&6
8974 if test -n "$AWK"; then
8975 ac_cv_prog_AWK="$AWK" # Let the user override the test.
8977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8981 test -z "$as_dir" && as_dir=.
8982 for ac_exec_ext in '' $ac_executable_extensions; do
8983 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8984 ac_cv_prog_AWK="$ac_prog"
8985 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8995 if test -n "$AWK"; then
8996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
8997 $as_echo "$AWK" >&6; }
8999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9000 $as_echo "no" >&6; }
9004 test -n "$AWK" && break
9025 # If no C compiler was specified, use CC.
9028 # If no C compiler flags were specified, use CFLAGS.
9029 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9031 # Allow CC to be a program name with arguments.
9035 # Check for command to grab the raw symbol name followed by C symbol from nm.
9036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
9037 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
9038 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
9039 $as_echo_n "(cached) " >&6
9042 # These are sane defaults that work on at least a few old systems.
9043 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
9045 # Character class describing NM global symbol codes.
9046 symcode='[BCDEGRST]'
9048 # Regexp to match symbols that can be accessed directly from C.
9049 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9051 # Define system-specific variables.
9056 cygwin* | mingw* | pw32* | cegcc*)
9057 symcode='[ABCDGISTW]'
9060 if test "$host_cpu" = ia64; then
9061 symcode='[ABCDEGRST]'
9065 symcode='[BCDEGRST]'
9068 symcode='[BCDEGQRST]'
9079 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9087 # If we're using GNU nm, then use its standard symbol codes.
9088 case `$NM -V 2>&1` in
9089 *GNU* | *'with BFD'*)
9090 symcode='[ABCDGIRSTW]' ;;
9093 # Transform an extracted symbol line into a proper C declaration.
9094 # Some systems (esp. on ia64) link data and code symbols differently,
9095 # so use this general approach.
9096 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9098 # Transform an extracted symbol line into symbol name and symbol address
9099 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
9100 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
9102 # Handle CRLF in mingw tool chain
9106 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9110 # Try without a prefix underscore, then with it.
9111 for ac_symprfx in "" "_"; do
9113 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9114 symxfrm="\\1 $ac_symprfx\\2 \\2"
9116 # Write the raw and C identifiers.
9117 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9118 # Fake it for dumpbin and say T for any non-static function
9119 # and D for any global variable.
9120 # Also find C++ and __fastcall symbols from MSVC++,
9121 # which start with @ or ?.
9122 lt_cv_sys_global_symbol_pipe="$AWK '"\
9123 " {last_section=section; section=\$ 3};"\
9124 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
9125 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
9126 " \$ 0!~/External *\|/{next};"\
9127 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
9128 " {if(hide[section]) next};"\
9129 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
9130 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
9131 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
9132 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
9133 " ' prfx=^$ac_symprfx"
9135 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9137 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
9139 # Check to see that the pipe works correctly.
9143 cat > conftest.$ac_ext <<_LT_EOF
9148 void nm_test_func(void);
9149 void nm_test_func(void){}
9153 int main(){nm_test_var='a';nm_test_func();return(0);}
9156 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9157 (eval $ac_compile) 2>&5
9159 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9160 test $ac_status = 0; }; then
9161 # Now try to grab the symbols.
9163 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
9164 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
9166 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9167 test $ac_status = 0; } && test -s "$nlist"; then
9168 # Try sorting and uniquifying the output.
9169 if sort "$nlist" | uniq > "$nlist"T; then
9170 mv -f "$nlist"T "$nlist"
9175 # Make sure that we snagged all the symbols we need.
9176 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
9177 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
9178 cat <<_LT_EOF > conftest.$ac_ext
9179 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
9180 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
9181 /* DATA imports from DLLs on WIN32 con't be const, because runtime
9182 relocations are performed -- see ld's documentation on pseudo-relocs. */
9183 # define LT_DLSYM_CONST
9184 #elif defined(__osf__)
9185 /* This system does not cope well with relocations in const data. */
9186 # define LT_DLSYM_CONST
9188 # define LT_DLSYM_CONST const
9196 # Now generate the symbol file.
9197 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
9199 cat <<_LT_EOF >> conftest.$ac_ext
9201 /* The mapping between symbol names and symbols. */
9202 LT_DLSYM_CONST struct {
9206 lt__PROGRAM__LTX_preloaded_symbols[] =
9208 { "@PROGRAM@", (void *) 0 },
9210 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
9211 cat <<\_LT_EOF >> conftest.$ac_ext
9215 /* This works around a problem in FreeBSD linker */
9216 #ifdef FREEBSD_WORKAROUND
9217 static const void *lt_preloaded_setup() {
9218 return lt__PROGRAM__LTX_preloaded_symbols;
9226 # Now try linking the two files.
9227 mv conftest.$ac_objext conftstm.$ac_objext
9228 lt_globsym_save_LIBS=$LIBS
9229 lt_globsym_save_CFLAGS=$CFLAGS
9230 LIBS="conftstm.$ac_objext"
9231 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9232 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
9233 (eval $ac_link) 2>&5
9235 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9236 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
9239 LIBS=$lt_globsym_save_LIBS
9240 CFLAGS=$lt_globsym_save_CFLAGS
9242 echo "cannot find nm_test_func in $nlist" >&5
9245 echo "cannot find nm_test_var in $nlist" >&5
9248 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9251 echo "$progname: failed program was:" >&5
9252 cat conftest.$ac_ext >&5
9254 rm -rf conftest* conftst*
9256 # Do not use the global_symbol_pipe unless it works.
9257 if test "$pipe_works" = yes; then
9260 lt_cv_sys_global_symbol_pipe=
9266 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9267 lt_cv_sys_global_symbol_to_cdecl=
9269 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
9271 $as_echo "failed" >&6; }
9273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
9274 $as_echo "ok" >&6; }
9277 # Response file support.
9278 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9279 nm_file_list_spec='@'
9280 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
9281 nm_file_list_spec='@'
9310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
9311 $as_echo_n "checking for sysroot... " >&6; }
9313 # Check whether --with-sysroot was given.
9314 if test "${with_sysroot+set}" = set; then :
9315 withval=$with_sysroot;
9322 case ${with_sysroot} in #(
9324 if test "$GCC" = yes; then
9325 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
9329 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
9334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
9335 $as_echo "${with_sysroot}" >&6; }
9336 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
9340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
9341 $as_echo "${lt_sysroot:-no}" >&6; }
9347 # Check whether --enable-libtool-lock was given.
9348 if test "${enable_libtool_lock+set}" = set; then :
9349 enableval=$enable_libtool_lock;
9352 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
9354 # Some flags need to be propagated to the compiler or linker for good
9358 # Find out which ABI we are using.
9359 echo 'int i;' > conftest.$ac_ext
9360 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9361 (eval $ac_compile) 2>&5
9363 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9364 test $ac_status = 0; }; then
9365 case `/usr/bin/file conftest.$ac_objext` in
9377 # Find out which ABI we are using.
9378 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
9379 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9380 (eval $ac_compile) 2>&5
9382 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9383 test $ac_status = 0; }; then
9384 if test "$lt_cv_prog_gnu_ld" = yes; then
9385 case `/usr/bin/file conftest.$ac_objext` in
9387 LD="${LD-ld} -melf32bsmip"
9390 LD="${LD-ld} -melf32bmipn32"
9393 LD="${LD-ld} -melf64bmip"
9397 case `/usr/bin/file conftest.$ac_objext` in
9413 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
9414 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
9415 # Find out which ABI we are using.
9416 echo 'int i;' > conftest.$ac_ext
9417 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9418 (eval $ac_compile) 2>&5
9420 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9421 test $ac_status = 0; }; then
9422 case `/usr/bin/file conftest.o` in
9425 x86_64-*kfreebsd*-gnu)
9426 LD="${LD-ld} -m elf_i386_fbsd"
9429 LD="${LD-ld} -m elf_i386"
9431 ppc64-*linux*|powerpc64-*linux*)
9432 LD="${LD-ld} -m elf32ppclinux"
9435 LD="${LD-ld} -m elf_s390"
9438 LD="${LD-ld} -m elf32_sparc"
9444 x86_64-*kfreebsd*-gnu)
9445 LD="${LD-ld} -m elf_x86_64_fbsd"
9448 LD="${LD-ld} -m elf_x86_64"
9450 ppc*-*linux*|powerpc*-*linux*)
9451 LD="${LD-ld} -m elf64ppc"
9453 s390*-*linux*|s390*-*tpf*)
9454 LD="${LD-ld} -m elf64_s390"
9457 LD="${LD-ld} -m elf64_sparc"
9467 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
9468 SAVE_CFLAGS="$CFLAGS"
9469 CFLAGS="$CFLAGS -belf"
9470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
9471 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
9472 if ${lt_cv_cc_needs_belf+:} false; then :
9473 $as_echo_n "(cached) " >&6
9476 ac_cpp='$CPP $CPPFLAGS'
9477 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9478 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9479 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9482 /* end confdefs.h. */
9492 if ac_fn_c_try_link "$LINENO"; then :
9493 lt_cv_cc_needs_belf=yes
9495 lt_cv_cc_needs_belf=no
9497 rm -f core conftest.err conftest.$ac_objext \
9498 conftest$ac_exeext conftest.$ac_ext
9500 ac_cpp='$CPP $CPPFLAGS'
9501 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9502 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9503 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
9507 $as_echo "$lt_cv_cc_needs_belf" >&6; }
9508 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
9509 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
9510 CFLAGS="$SAVE_CFLAGS"
9514 # Find out which ABI we are using.
9515 echo 'int i;' > conftest.$ac_ext
9516 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9517 (eval $ac_compile) 2>&5
9519 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9520 test $ac_status = 0; }; then
9521 case `/usr/bin/file conftest.o` in
9523 case $lt_cv_prog_gnu_ld in
9527 LD="${LD-ld} -m elf_x86_64"
9530 LD="${LD-ld} -m elf64_sparc"
9533 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
9534 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
9539 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
9551 need_locks="$enable_libtool_lock"
9553 if test -n "$ac_tool_prefix"; then
9554 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
9555 set dummy ${ac_tool_prefix}mt; ac_word=$2
9556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9557 $as_echo_n "checking for $ac_word... " >&6; }
9558 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
9559 $as_echo_n "(cached) " >&6
9561 if test -n "$MANIFEST_TOOL"; then
9562 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
9564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9568 test -z "$as_dir" && as_dir=.
9569 for ac_exec_ext in '' $ac_executable_extensions; do
9570 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9571 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
9572 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9581 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
9582 if test -n "$MANIFEST_TOOL"; then
9583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
9584 $as_echo "$MANIFEST_TOOL" >&6; }
9586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9587 $as_echo "no" >&6; }
9592 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
9593 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
9594 # Extract the first word of "mt", so it can be a program name with args.
9595 set dummy mt; ac_word=$2
9596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9597 $as_echo_n "checking for $ac_word... " >&6; }
9598 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
9599 $as_echo_n "(cached) " >&6
9601 if test -n "$ac_ct_MANIFEST_TOOL"; then
9602 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
9604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9608 test -z "$as_dir" && as_dir=.
9609 for ac_exec_ext in '' $ac_executable_extensions; do
9610 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9611 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
9612 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9621 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
9622 if test -n "$ac_ct_MANIFEST_TOOL"; then
9623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
9624 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
9626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9627 $as_echo "no" >&6; }
9630 if test "x$ac_ct_MANIFEST_TOOL" = x; then
9633 case $cross_compiling:$ac_tool_warned in
9635 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9636 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9637 ac_tool_warned=yes ;;
9639 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
9642 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
9645 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
9646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
9647 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
9648 if ${lt_cv_path_mainfest_tool+:} false; then :
9649 $as_echo_n "(cached) " >&6
9651 lt_cv_path_mainfest_tool=no
9652 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
9653 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
9654 cat conftest.err >&5
9655 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
9656 lt_cv_path_mainfest_tool=yes
9660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
9661 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
9662 if test "x$lt_cv_path_mainfest_tool" != xyes; then
9672 rhapsody* | darwin*)
9673 if test -n "$ac_tool_prefix"; then
9674 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
9675 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
9676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9677 $as_echo_n "checking for $ac_word... " >&6; }
9678 if ${ac_cv_prog_DSYMUTIL+:} false; then :
9679 $as_echo_n "(cached) " >&6
9681 if test -n "$DSYMUTIL"; then
9682 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
9684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9688 test -z "$as_dir" && as_dir=.
9689 for ac_exec_ext in '' $ac_executable_extensions; do
9690 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9691 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
9692 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9701 DSYMUTIL=$ac_cv_prog_DSYMUTIL
9702 if test -n "$DSYMUTIL"; then
9703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
9704 $as_echo "$DSYMUTIL" >&6; }
9706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9707 $as_echo "no" >&6; }
9712 if test -z "$ac_cv_prog_DSYMUTIL"; then
9713 ac_ct_DSYMUTIL=$DSYMUTIL
9714 # Extract the first word of "dsymutil", so it can be a program name with args.
9715 set dummy dsymutil; ac_word=$2
9716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9717 $as_echo_n "checking for $ac_word... " >&6; }
9718 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
9719 $as_echo_n "(cached) " >&6
9721 if test -n "$ac_ct_DSYMUTIL"; then
9722 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
9724 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9728 test -z "$as_dir" && as_dir=.
9729 for ac_exec_ext in '' $ac_executable_extensions; do
9730 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9731 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
9732 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9741 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
9742 if test -n "$ac_ct_DSYMUTIL"; then
9743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
9744 $as_echo "$ac_ct_DSYMUTIL" >&6; }
9746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9747 $as_echo "no" >&6; }
9750 if test "x$ac_ct_DSYMUTIL" = x; then
9753 case $cross_compiling:$ac_tool_warned in
9755 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9756 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9757 ac_tool_warned=yes ;;
9759 DSYMUTIL=$ac_ct_DSYMUTIL
9762 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
9765 if test -n "$ac_tool_prefix"; then
9766 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
9767 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
9768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9769 $as_echo_n "checking for $ac_word... " >&6; }
9770 if ${ac_cv_prog_NMEDIT+:} false; then :
9771 $as_echo_n "(cached) " >&6
9773 if test -n "$NMEDIT"; then
9774 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
9776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9780 test -z "$as_dir" && as_dir=.
9781 for ac_exec_ext in '' $ac_executable_extensions; do
9782 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9783 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
9784 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9793 NMEDIT=$ac_cv_prog_NMEDIT
9794 if test -n "$NMEDIT"; then
9795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
9796 $as_echo "$NMEDIT" >&6; }
9798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9799 $as_echo "no" >&6; }
9804 if test -z "$ac_cv_prog_NMEDIT"; then
9805 ac_ct_NMEDIT=$NMEDIT
9806 # Extract the first word of "nmedit", so it can be a program name with args.
9807 set dummy nmedit; ac_word=$2
9808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9809 $as_echo_n "checking for $ac_word... " >&6; }
9810 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
9811 $as_echo_n "(cached) " >&6
9813 if test -n "$ac_ct_NMEDIT"; then
9814 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
9816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9820 test -z "$as_dir" && as_dir=.
9821 for ac_exec_ext in '' $ac_executable_extensions; do
9822 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9823 ac_cv_prog_ac_ct_NMEDIT="nmedit"
9824 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9833 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
9834 if test -n "$ac_ct_NMEDIT"; then
9835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
9836 $as_echo "$ac_ct_NMEDIT" >&6; }
9838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9839 $as_echo "no" >&6; }
9842 if test "x$ac_ct_NMEDIT" = x; then
9845 case $cross_compiling:$ac_tool_warned in
9847 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9848 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9849 ac_tool_warned=yes ;;
9851 NMEDIT=$ac_ct_NMEDIT
9854 NMEDIT="$ac_cv_prog_NMEDIT"
9857 if test -n "$ac_tool_prefix"; then
9858 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
9859 set dummy ${ac_tool_prefix}lipo; ac_word=$2
9860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9861 $as_echo_n "checking for $ac_word... " >&6; }
9862 if ${ac_cv_prog_LIPO+:} false; then :
9863 $as_echo_n "(cached) " >&6
9865 if test -n "$LIPO"; then
9866 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
9868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9872 test -z "$as_dir" && as_dir=.
9873 for ac_exec_ext in '' $ac_executable_extensions; do
9874 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9875 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
9876 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9885 LIPO=$ac_cv_prog_LIPO
9886 if test -n "$LIPO"; then
9887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
9888 $as_echo "$LIPO" >&6; }
9890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9891 $as_echo "no" >&6; }
9896 if test -z "$ac_cv_prog_LIPO"; then
9898 # Extract the first word of "lipo", so it can be a program name with args.
9899 set dummy lipo; ac_word=$2
9900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9901 $as_echo_n "checking for $ac_word... " >&6; }
9902 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
9903 $as_echo_n "(cached) " >&6
9905 if test -n "$ac_ct_LIPO"; then
9906 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
9908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9912 test -z "$as_dir" && as_dir=.
9913 for ac_exec_ext in '' $ac_executable_extensions; do
9914 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9915 ac_cv_prog_ac_ct_LIPO="lipo"
9916 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9925 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
9926 if test -n "$ac_ct_LIPO"; then
9927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
9928 $as_echo "$ac_ct_LIPO" >&6; }
9930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9931 $as_echo "no" >&6; }
9934 if test "x$ac_ct_LIPO" = x; then
9937 case $cross_compiling:$ac_tool_warned in
9939 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9940 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9941 ac_tool_warned=yes ;;
9946 LIPO="$ac_cv_prog_LIPO"
9949 if test -n "$ac_tool_prefix"; then
9950 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
9951 set dummy ${ac_tool_prefix}otool; ac_word=$2
9952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9953 $as_echo_n "checking for $ac_word... " >&6; }
9954 if ${ac_cv_prog_OTOOL+:} false; then :
9955 $as_echo_n "(cached) " >&6
9957 if test -n "$OTOOL"; then
9958 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
9960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9964 test -z "$as_dir" && as_dir=.
9965 for ac_exec_ext in '' $ac_executable_extensions; do
9966 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9967 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
9968 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9977 OTOOL=$ac_cv_prog_OTOOL
9978 if test -n "$OTOOL"; then
9979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
9980 $as_echo "$OTOOL" >&6; }
9982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9983 $as_echo "no" >&6; }
9988 if test -z "$ac_cv_prog_OTOOL"; then
9990 # Extract the first word of "otool", so it can be a program name with args.
9991 set dummy otool; ac_word=$2
9992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9993 $as_echo_n "checking for $ac_word... " >&6; }
9994 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
9995 $as_echo_n "(cached) " >&6
9997 if test -n "$ac_ct_OTOOL"; then
9998 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
10000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10001 for as_dir in $PATH
10004 test -z "$as_dir" && as_dir=.
10005 for ac_exec_ext in '' $ac_executable_extensions; do
10006 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10007 ac_cv_prog_ac_ct_OTOOL="otool"
10008 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10017 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
10018 if test -n "$ac_ct_OTOOL"; then
10019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
10020 $as_echo "$ac_ct_OTOOL" >&6; }
10022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10023 $as_echo "no" >&6; }
10026 if test "x$ac_ct_OTOOL" = x; then
10029 case $cross_compiling:$ac_tool_warned in
10031 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10032 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10033 ac_tool_warned=yes ;;
10038 OTOOL="$ac_cv_prog_OTOOL"
10041 if test -n "$ac_tool_prefix"; then
10042 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
10043 set dummy ${ac_tool_prefix}otool64; ac_word=$2
10044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10045 $as_echo_n "checking for $ac_word... " >&6; }
10046 if ${ac_cv_prog_OTOOL64+:} false; then :
10047 $as_echo_n "(cached) " >&6
10049 if test -n "$OTOOL64"; then
10050 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
10052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10053 for as_dir in $PATH
10056 test -z "$as_dir" && as_dir=.
10057 for ac_exec_ext in '' $ac_executable_extensions; do
10058 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10059 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
10060 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10069 OTOOL64=$ac_cv_prog_OTOOL64
10070 if test -n "$OTOOL64"; then
10071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
10072 $as_echo "$OTOOL64" >&6; }
10074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10075 $as_echo "no" >&6; }
10080 if test -z "$ac_cv_prog_OTOOL64"; then
10081 ac_ct_OTOOL64=$OTOOL64
10082 # Extract the first word of "otool64", so it can be a program name with args.
10083 set dummy otool64; ac_word=$2
10084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10085 $as_echo_n "checking for $ac_word... " >&6; }
10086 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
10087 $as_echo_n "(cached) " >&6
10089 if test -n "$ac_ct_OTOOL64"; then
10090 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
10092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10093 for as_dir in $PATH
10096 test -z "$as_dir" && as_dir=.
10097 for ac_exec_ext in '' $ac_executable_extensions; do
10098 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10099 ac_cv_prog_ac_ct_OTOOL64="otool64"
10100 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10109 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
10110 if test -n "$ac_ct_OTOOL64"; then
10111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
10112 $as_echo "$ac_ct_OTOOL64" >&6; }
10114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10115 $as_echo "no" >&6; }
10118 if test "x$ac_ct_OTOOL64" = x; then
10121 case $cross_compiling:$ac_tool_warned in
10123 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10124 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10125 ac_tool_warned=yes ;;
10127 OTOOL64=$ac_ct_OTOOL64
10130 OTOOL64="$ac_cv_prog_OTOOL64"
10159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
10160 $as_echo_n "checking for -single_module linker flag... " >&6; }
10161 if ${lt_cv_apple_cc_single_mod+:} false; then :
10162 $as_echo_n "(cached) " >&6
10164 lt_cv_apple_cc_single_mod=no
10165 if test -z "${LT_MULTI_MODULE}"; then
10166 # By default we will add the -single_module flag. You can override
10167 # by either setting the environment variable LT_MULTI_MODULE
10168 # non-empty at configure time, or by adding -multi_module to the
10170 rm -rf libconftest.dylib*
10171 echo "int foo(void){return 1;}" > conftest.c
10172 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
10173 -dynamiclib -Wl,-single_module conftest.c" >&5
10174 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
10175 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
10177 # If there is a non-empty error log, and "single_module"
10178 # appears in it, assume the flag caused a linker warning
10179 if test -s conftest.err && $GREP single_module conftest.err; then
10180 cat conftest.err >&5
10181 # Otherwise, if the output was created with a 0 exit code from
10182 # the compiler, it worked.
10183 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
10184 lt_cv_apple_cc_single_mod=yes
10186 cat conftest.err >&5
10188 rm -rf libconftest.dylib*
10192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
10193 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
10195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
10196 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
10197 if ${lt_cv_ld_exported_symbols_list+:} false; then :
10198 $as_echo_n "(cached) " >&6
10200 lt_cv_ld_exported_symbols_list=no
10201 save_LDFLAGS=$LDFLAGS
10202 echo "_main" > conftest.sym
10203 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
10204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10205 /* end confdefs.h. */
10215 if ac_fn_c_try_link "$LINENO"; then :
10216 lt_cv_ld_exported_symbols_list=yes
10218 lt_cv_ld_exported_symbols_list=no
10220 rm -f core conftest.err conftest.$ac_objext \
10221 conftest$ac_exeext conftest.$ac_ext
10222 LDFLAGS="$save_LDFLAGS"
10225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
10226 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
10228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
10229 $as_echo_n "checking for -force_load linker flag... " >&6; }
10230 if ${lt_cv_ld_force_load+:} false; then :
10231 $as_echo_n "(cached) " >&6
10233 lt_cv_ld_force_load=no
10234 cat > conftest.c << _LT_EOF
10235 int forced_loaded() { return 2;}
10237 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
10238 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
10239 echo "$AR cru libconftest.a conftest.o" >&5
10240 $AR cru libconftest.a conftest.o 2>&5
10241 echo "$RANLIB libconftest.a" >&5
10242 $RANLIB libconftest.a 2>&5
10243 cat > conftest.c << _LT_EOF
10244 int main() { return 0;}
10246 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
10247 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
10249 if test -s conftest.err && $GREP force_load conftest.err; then
10250 cat conftest.err >&5
10251 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
10252 lt_cv_ld_force_load=yes
10254 cat conftest.err >&5
10256 rm -f conftest.err libconftest.a conftest conftest.c
10257 rm -rf conftest.dSYM
10260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
10261 $as_echo "$lt_cv_ld_force_load" >&6; }
10263 rhapsody* | darwin1.[012])
10264 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
10266 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
10267 darwin*) # darwin 5.x on
10268 # if running on 10.5 or later, the deployment target defaults
10269 # to the OS version, if on x86, and 10.4, the deployment
10270 # target defaults to 10.4. Don't you love it?
10271 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
10272 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
10273 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
10275 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
10277 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
10281 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
10282 _lt_dar_single_mod='$single_module'
10284 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
10285 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
10287 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
10289 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
10290 _lt_dsymutil='~$DSYMUTIL $lib || :'
10297 for ac_header in dlfcn.h
10299 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
10301 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
10302 cat >>confdefs.h <<_ACEOF
10303 #define HAVE_DLFCN_H 1
10312 func_stripname_cnf ()
10315 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
10316 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
10318 } # func_stripname_cnf
10331 enable_win32_dll=no
10334 # Check whether --enable-shared was given.
10335 if test "${enable_shared+set}" = set; then :
10336 enableval=$enable_shared; p=${PACKAGE-default}
10338 yes) enable_shared=yes ;;
10339 no) enable_shared=no ;;
10342 # Look at the argument we got. We use all the common list separators.
10343 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10344 for pkg in $enableval; do
10346 if test "X$pkg" = "X$p"; then
10365 # Check whether --enable-static was given.
10366 if test "${enable_static+set}" = set; then :
10367 enableval=$enable_static; p=${PACKAGE-default}
10369 yes) enable_static=yes ;;
10370 no) enable_static=no ;;
10373 # Look at the argument we got. We use all the common list separators.
10374 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10375 for pkg in $enableval; do
10377 if test "X$pkg" = "X$p"; then
10397 # Check whether --with-pic was given.
10398 if test "${with_pic+set}" = set; then :
10399 withval=$with_pic; lt_p=${PACKAGE-default}
10401 yes|no) pic_mode=$withval ;;
10404 # Look at the argument we got. We use all the common list separators.
10405 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10406 for lt_pkg in $withval; do
10408 if test "X$lt_pkg" = "X$lt_p"; then
10420 test -z "$pic_mode" && pic_mode=default
10428 # Check whether --enable-fast-install was given.
10429 if test "${enable_fast_install+set}" = set; then :
10430 enableval=$enable_fast_install; p=${PACKAGE-default}
10432 yes) enable_fast_install=yes ;;
10433 no) enable_fast_install=no ;;
10435 enable_fast_install=no
10436 # Look at the argument we got. We use all the common list separators.
10437 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10438 for pkg in $enableval; do
10440 if test "X$pkg" = "X$p"; then
10441 enable_fast_install=yes
10448 enable_fast_install=yes
10461 # This can be used to rebuild libtool when needed
10462 LIBTOOL_DEPS="$ltmain"
10464 # Always use our own libtool.
10465 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
10496 test -z "$LN_S" && LN_S="ln -s"
10511 if test -n "${ZSH_VERSION+set}" ; then
10512 setopt NO_GLOB_SUBST
10515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
10516 $as_echo_n "checking for objdir... " >&6; }
10517 if ${lt_cv_objdir+:} false; then :
10518 $as_echo_n "(cached) " >&6
10520 rm -f .libs 2>/dev/null
10521 mkdir .libs 2>/dev/null
10522 if test -d .libs; then
10525 # MS-DOS does not allow filenames that begin with a dot.
10528 rmdir .libs 2>/dev/null
10530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
10531 $as_echo "$lt_cv_objdir" >&6; }
10532 objdir=$lt_cv_objdir
10538 cat >>confdefs.h <<_ACEOF
10539 #define LT_OBJDIR "$lt_cv_objdir/"
10547 # AIX sometimes has problems with the GCC collect2 program. For some
10548 # reason, if we set the COLLECT_NAMES environment variable, the problems
10549 # vanish in a puff of smoke.
10550 if test "X${COLLECT_NAMES+set}" != Xset; then
10552 export COLLECT_NAMES
10557 # Global variables:
10559 can_build_shared=yes
10561 # All known linkers require a `.a' archive for static linking (except MSVC,
10562 # which needs '.lib').
10565 with_gnu_ld="$lt_cv_prog_gnu_ld"
10568 old_CFLAGS="$CFLAGS"
10570 # Set sane defaults for various variables
10571 test -z "$CC" && CC=cc
10572 test -z "$LTCC" && LTCC=$CC
10573 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
10574 test -z "$LD" && LD=ld
10575 test -z "$ac_objext" && ac_objext=o
10577 for cc_temp in $compiler""; do
10579 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10580 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10585 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
10588 # Only perform the check for file, if the check method requires it
10589 test -z "$MAGIC_CMD" && MAGIC_CMD=file
10590 case $deplibs_check_method in
10592 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
10593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
10594 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
10595 if ${lt_cv_path_MAGIC_CMD+:} false; then :
10596 $as_echo_n "(cached) " >&6
10600 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
10603 lt_save_MAGIC_CMD="$MAGIC_CMD"
10604 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10605 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10606 for ac_dir in $ac_dummy; do
10608 test -z "$ac_dir" && ac_dir=.
10609 if test -f $ac_dir/${ac_tool_prefix}file; then
10610 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
10611 if test -n "$file_magic_test_file"; then
10612 case $deplibs_check_method in
10614 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10615 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10616 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10617 $EGREP "$file_magic_regex" > /dev/null; then
10622 *** Warning: the command libtool uses to detect shared libraries,
10623 *** $file_magic_cmd, produces output that libtool cannot recognize.
10624 *** The result is that libtool may fail to recognize shared libraries
10625 *** as such. This will affect the creation of libtool libraries that
10626 *** depend on shared libraries, but programs linked with such libtool
10627 *** libraries will work regardless of this problem. Nevertheless, you
10628 *** may want to report the problem to your system manager and/or to
10629 *** bug-libtool@gnu.org
10639 MAGIC_CMD="$lt_save_MAGIC_CMD"
10644 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10645 if test -n "$MAGIC_CMD"; then
10646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10647 $as_echo "$MAGIC_CMD" >&6; }
10649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10650 $as_echo "no" >&6; }
10657 if test -z "$lt_cv_path_MAGIC_CMD"; then
10658 if test -n "$ac_tool_prefix"; then
10659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
10660 $as_echo_n "checking for file... " >&6; }
10661 if ${lt_cv_path_MAGIC_CMD+:} false; then :
10662 $as_echo_n "(cached) " >&6
10666 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
10669 lt_save_MAGIC_CMD="$MAGIC_CMD"
10670 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10671 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10672 for ac_dir in $ac_dummy; do
10674 test -z "$ac_dir" && ac_dir=.
10675 if test -f $ac_dir/file; then
10676 lt_cv_path_MAGIC_CMD="$ac_dir/file"
10677 if test -n "$file_magic_test_file"; then
10678 case $deplibs_check_method in
10680 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10681 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10682 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10683 $EGREP "$file_magic_regex" > /dev/null; then
10688 *** Warning: the command libtool uses to detect shared libraries,
10689 *** $file_magic_cmd, produces output that libtool cannot recognize.
10690 *** The result is that libtool may fail to recognize shared libraries
10691 *** as such. This will affect the creation of libtool libraries that
10692 *** depend on shared libraries, but programs linked with such libtool
10693 *** libraries will work regardless of this problem. Nevertheless, you
10694 *** may want to report the problem to your system manager and/or to
10695 *** bug-libtool@gnu.org
10705 MAGIC_CMD="$lt_save_MAGIC_CMD"
10710 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10711 if test -n "$MAGIC_CMD"; then
10712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10713 $as_echo "$MAGIC_CMD" >&6; }
10715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10716 $as_echo "no" >&6; }
10729 # Use C for the default configuration in the libtool script
10733 ac_cpp='$CPP $CPPFLAGS'
10734 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10735 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10736 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10739 # Source file extension for C test sources.
10742 # Object file extension for compiled C test sources.
10746 # Code to be used in simple compile tests
10747 lt_simple_compile_test_code="int some_variable = 0;"
10749 # Code to be used in simple link tests
10750 lt_simple_link_test_code='int main(){return(0);}'
10758 # If no C compiler was specified, use CC.
10761 # If no C compiler flags were specified, use CFLAGS.
10762 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10764 # Allow CC to be a program name with arguments.
10767 # Save the default compiler, since it gets overwritten when the other
10768 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
10769 compiler_DEFAULT=$CC
10771 # save warnings/boilerplate of simple test code
10772 ac_outfile=conftest.$ac_objext
10773 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10774 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10775 _lt_compiler_boilerplate=`cat conftest.err`
10778 ac_outfile=conftest.$ac_objext
10779 echo "$lt_simple_link_test_code" >conftest.$ac_ext
10780 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10781 _lt_linker_boilerplate=`cat conftest.err`
10786 ## There is no encapsulation within the following macros, do not change
10787 ## the running order or otherwise move them around unless you know exactly
10788 ## what you are doing...
10789 if test -n "$compiler"; then
10791 lt_prog_compiler_no_builtin_flag=
10793 if test "$GCC" = yes; then
10794 case $cc_basename in
10796 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
10798 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
10801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
10802 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
10803 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
10804 $as_echo_n "(cached) " >&6
10806 lt_cv_prog_compiler_rtti_exceptions=no
10807 ac_outfile=conftest.$ac_objext
10808 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10809 lt_compiler_flag="-fno-rtti -fno-exceptions"
10810 # Insert the option either (1) after the last *FLAGS variable, or
10811 # (2) before a word containing "conftest.", or (3) at the end.
10812 # Note that $ac_compile itself does not contain backslashes and begins
10813 # with a dollar sign (not a hyphen), so the echo should work correctly.
10814 # The option is referenced via a variable to avoid confusing sed.
10815 lt_compile=`echo "$ac_compile" | $SED \
10816 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10817 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10818 -e 's:$: $lt_compiler_flag:'`
10819 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10820 (eval "$lt_compile" 2>conftest.err)
10822 cat conftest.err >&5
10823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10824 if (exit $ac_status) && test -s "$ac_outfile"; then
10825 # The compiler can only warn and ignore the option if not recognized
10826 # So say no if there are warnings other than the usual output.
10827 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10828 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10829 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10830 lt_cv_prog_compiler_rtti_exceptions=yes
10836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
10837 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
10839 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
10840 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
10852 lt_prog_compiler_wl=
10853 lt_prog_compiler_pic=
10854 lt_prog_compiler_static=
10857 if test "$GCC" = yes; then
10858 lt_prog_compiler_wl='-Wl,'
10859 lt_prog_compiler_static='-static'
10863 # All AIX code is PIC.
10864 if test "$host_cpu" = ia64; then
10865 # AIX 5 now supports IA64 processor
10866 lt_prog_compiler_static='-Bstatic'
10873 # see comment about AmigaOS4 .so support
10874 lt_prog_compiler_pic='-fPIC'
10877 # FIXME: we need at least 68020 code to build shared libraries, but
10878 # adding the `-m68020' flag to GCC prevents building anything better,
10880 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
10885 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10886 # PIC is the default for these OSes.
10889 mingw* | cygwin* | pw32* | os2* | cegcc*)
10890 # This hack is so that the source file can tell whether it is being
10891 # built for inclusion in a dll (and should export symbols for example).
10892 # Although the cygwin gcc ignores -fPIC, still need this for old-style
10893 # (--disable-auto-import) libraries
10894 lt_prog_compiler_pic='-DDLL_EXPORT'
10897 darwin* | rhapsody*)
10898 # PIC is the default on this platform
10899 # Common symbols not allowed in MH_DYLIB files
10900 lt_prog_compiler_pic='-fno-common'
10904 # PIC is the default for Haiku.
10905 # The "-static" flag exists, but is broken.
10906 lt_prog_compiler_static=
10910 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
10911 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
10912 # sets the default TLS model and affects inlining.
10918 lt_prog_compiler_pic='-fPIC'
10924 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
10925 # Instead, we relocate shared libraries at runtime.
10929 # Just because we use GCC doesn't mean we suddenly get shared libraries
10930 # on systems that don't support them.
10931 lt_prog_compiler_can_build_shared=no
10936 # QNX uses GNU C++, but need to define -shared option too, otherwise
10937 # it will coredump.
10938 lt_prog_compiler_pic='-fPIC -shared'
10942 if test -d /usr/nec; then
10943 lt_prog_compiler_pic=-Kconform_pic
10948 lt_prog_compiler_pic='-fPIC'
10952 case $cc_basename in
10953 nvcc*) # Cuda Compiler Driver 2.2
10954 lt_prog_compiler_wl='-Xlinker '
10955 if test -n "$lt_prog_compiler_pic"; then
10956 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
10961 # PORTME Check for flag to pass linker flags through the system compiler.
10964 lt_prog_compiler_wl='-Wl,'
10965 if test "$host_cpu" = ia64; then
10966 # AIX 5 now supports IA64 processor
10967 lt_prog_compiler_static='-Bstatic'
10969 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
10973 mingw* | cygwin* | pw32* | os2* | cegcc*)
10974 # This hack is so that the source file can tell whether it is being
10975 # built for inclusion in a dll (and should export symbols for example).
10976 lt_prog_compiler_pic='-DDLL_EXPORT'
10979 hpux9* | hpux10* | hpux11*)
10980 lt_prog_compiler_wl='-Wl,'
10981 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10982 # not for PA HP-UX.
10988 lt_prog_compiler_pic='+Z'
10991 # Is there a better lt_prog_compiler_static that works with the bundled CC?
10992 lt_prog_compiler_static='${wl}-a ${wl}archive'
10995 irix5* | irix6* | nonstopux*)
10996 lt_prog_compiler_wl='-Wl,'
10997 # PIC (with -KPIC) is the default.
10998 lt_prog_compiler_static='-non_shared'
11001 linux* | k*bsd*-gnu | kopensolaris*-gnu)
11002 case $cc_basename in
11003 # old Intel for x86_64 which still supported -KPIC.
11005 lt_prog_compiler_wl='-Wl,'
11006 lt_prog_compiler_pic='-KPIC'
11007 lt_prog_compiler_static='-static'
11009 # icc used to be incompatible with GCC.
11010 # ICC 10 doesn't accept -KPIC any more.
11012 lt_prog_compiler_wl='-Wl,'
11013 lt_prog_compiler_pic='-fPIC'
11014 lt_prog_compiler_static='-static'
11016 # Lahey Fortran 8.1.
11018 lt_prog_compiler_wl='-Wl,'
11019 lt_prog_compiler_pic='--shared'
11020 lt_prog_compiler_static='--static'
11023 # NAG Fortran compiler
11024 lt_prog_compiler_wl='-Wl,-Wl,,'
11025 lt_prog_compiler_pic='-PIC'
11026 lt_prog_compiler_static='-Bstatic'
11028 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
11029 # Portland Group compilers (*not* the Pentium gcc compiler,
11030 # which looks to be a dead project)
11031 lt_prog_compiler_wl='-Wl,'
11032 lt_prog_compiler_pic='-fpic'
11033 lt_prog_compiler_static='-Bstatic'
11036 lt_prog_compiler_wl='-Wl,'
11037 # All Alpha code is PIC.
11038 lt_prog_compiler_static='-non_shared'
11040 xl* | bgxl* | bgf* | mpixl*)
11041 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
11042 lt_prog_compiler_wl='-Wl,'
11043 lt_prog_compiler_pic='-qpic'
11044 lt_prog_compiler_static='-qstaticlink'
11047 case `$CC -V 2>&1 | sed 5q` in
11048 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
11049 # Sun Fortran 8.3 passes all unrecognized flags to the linker
11050 lt_prog_compiler_pic='-KPIC'
11051 lt_prog_compiler_static='-Bstatic'
11052 lt_prog_compiler_wl=''
11054 *Sun\ F* | *Sun*Fortran*)
11055 lt_prog_compiler_pic='-KPIC'
11056 lt_prog_compiler_static='-Bstatic'
11057 lt_prog_compiler_wl='-Qoption ld '
11061 lt_prog_compiler_pic='-KPIC'
11062 lt_prog_compiler_static='-Bstatic'
11063 lt_prog_compiler_wl='-Wl,'
11065 *Intel*\ [CF]*Compiler*)
11066 lt_prog_compiler_wl='-Wl,'
11067 lt_prog_compiler_pic='-fPIC'
11068 lt_prog_compiler_static='-static'
11071 lt_prog_compiler_wl='-Wl,'
11072 lt_prog_compiler_pic='-fpic'
11073 lt_prog_compiler_static='-Bstatic'
11081 lt_prog_compiler_pic='-KPIC'
11082 lt_prog_compiler_static='-Bstatic'
11086 # QNX uses GNU C++, but need to define -shared option too, otherwise
11087 # it will coredump.
11088 lt_prog_compiler_pic='-fPIC -shared'
11091 osf3* | osf4* | osf5*)
11092 lt_prog_compiler_wl='-Wl,'
11093 # All OSF/1 code is PIC.
11094 lt_prog_compiler_static='-non_shared'
11098 lt_prog_compiler_static='-non_shared'
11102 lt_prog_compiler_pic='-KPIC'
11103 lt_prog_compiler_static='-Bstatic'
11104 case $cc_basename in
11105 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
11106 lt_prog_compiler_wl='-Qoption ld ';;
11108 lt_prog_compiler_wl='-Wl,';;
11113 lt_prog_compiler_wl='-Qoption ld '
11114 lt_prog_compiler_pic='-PIC'
11115 lt_prog_compiler_static='-Bstatic'
11118 sysv4 | sysv4.2uw2* | sysv4.3*)
11119 lt_prog_compiler_wl='-Wl,'
11120 lt_prog_compiler_pic='-KPIC'
11121 lt_prog_compiler_static='-Bstatic'
11125 if test -d /usr/nec ;then
11126 lt_prog_compiler_pic='-Kconform_pic'
11127 lt_prog_compiler_static='-Bstatic'
11131 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11132 lt_prog_compiler_wl='-Wl,'
11133 lt_prog_compiler_pic='-KPIC'
11134 lt_prog_compiler_static='-Bstatic'
11138 lt_prog_compiler_wl='-Wl,'
11139 lt_prog_compiler_can_build_shared=no
11143 lt_prog_compiler_pic='-pic'
11144 lt_prog_compiler_static='-Bstatic'
11148 lt_prog_compiler_can_build_shared=no
11154 # For platforms which do not support PIC, -DPIC is meaningless:
11156 lt_prog_compiler_pic=
11159 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
11163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
11164 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
11165 if ${lt_cv_prog_compiler_pic+:} false; then :
11166 $as_echo_n "(cached) " >&6
11168 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
11170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
11171 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
11172 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
11175 # Check to make sure the PIC flag actually works.
11177 if test -n "$lt_prog_compiler_pic"; then
11178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
11179 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
11180 if ${lt_cv_prog_compiler_pic_works+:} false; then :
11181 $as_echo_n "(cached) " >&6
11183 lt_cv_prog_compiler_pic_works=no
11184 ac_outfile=conftest.$ac_objext
11185 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11186 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
11187 # Insert the option either (1) after the last *FLAGS variable, or
11188 # (2) before a word containing "conftest.", or (3) at the end.
11189 # Note that $ac_compile itself does not contain backslashes and begins
11190 # with a dollar sign (not a hyphen), so the echo should work correctly.
11191 # The option is referenced via a variable to avoid confusing sed.
11192 lt_compile=`echo "$ac_compile" | $SED \
11193 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11194 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11195 -e 's:$: $lt_compiler_flag:'`
11196 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11197 (eval "$lt_compile" 2>conftest.err)
11199 cat conftest.err >&5
11200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11201 if (exit $ac_status) && test -s "$ac_outfile"; then
11202 # The compiler can only warn and ignore the option if not recognized
11203 # So say no if there are warnings other than the usual output.
11204 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11205 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11206 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11207 lt_cv_prog_compiler_pic_works=yes
11213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
11214 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
11216 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
11217 case $lt_prog_compiler_pic in
11219 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
11222 lt_prog_compiler_pic=
11223 lt_prog_compiler_can_build_shared=no
11239 # Check to make sure the static flag actually works.
11241 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
11242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11243 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
11244 if ${lt_cv_prog_compiler_static_works+:} false; then :
11245 $as_echo_n "(cached) " >&6
11247 lt_cv_prog_compiler_static_works=no
11248 save_LDFLAGS="$LDFLAGS"
11249 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11250 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11251 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11252 # The linker can only warn and ignore the option if not recognized
11253 # So say no if there are warnings
11254 if test -s conftest.err; then
11255 # Append any errors to the config.log.
11256 cat conftest.err 1>&5
11257 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11258 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11259 if diff conftest.exp conftest.er2 >/dev/null; then
11260 lt_cv_prog_compiler_static_works=yes
11263 lt_cv_prog_compiler_static_works=yes
11267 LDFLAGS="$save_LDFLAGS"
11270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
11271 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
11273 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
11276 lt_prog_compiler_static=
11285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11286 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11287 if ${lt_cv_prog_compiler_c_o+:} false; then :
11288 $as_echo_n "(cached) " >&6
11290 lt_cv_prog_compiler_c_o=no
11291 $RM -r conftest 2>/dev/null
11295 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11297 lt_compiler_flag="-o out/conftest2.$ac_objext"
11298 # Insert the option either (1) after the last *FLAGS variable, or
11299 # (2) before a word containing "conftest.", or (3) at the end.
11300 # Note that $ac_compile itself does not contain backslashes and begins
11301 # with a dollar sign (not a hyphen), so the echo should work correctly.
11302 lt_compile=`echo "$ac_compile" | $SED \
11303 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11304 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11305 -e 's:$: $lt_compiler_flag:'`
11306 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11307 (eval "$lt_compile" 2>out/conftest.err)
11309 cat out/conftest.err >&5
11310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11311 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11313 # The compiler can only warn and ignore the option if not recognized
11314 # So say no if there are warnings
11315 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
11316 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11317 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11318 lt_cv_prog_compiler_c_o=yes
11323 # SGI C++ compiler will create directory out/ii_files/ for
11324 # template instantiation
11325 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11326 $RM out/* && rmdir out
11332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
11333 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
11340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11341 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11342 if ${lt_cv_prog_compiler_c_o+:} false; then :
11343 $as_echo_n "(cached) " >&6
11345 lt_cv_prog_compiler_c_o=no
11346 $RM -r conftest 2>/dev/null
11350 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11352 lt_compiler_flag="-o out/conftest2.$ac_objext"
11353 # Insert the option either (1) after the last *FLAGS variable, or
11354 # (2) before a word containing "conftest.", or (3) at the end.
11355 # Note that $ac_compile itself does not contain backslashes and begins
11356 # with a dollar sign (not a hyphen), so the echo should work correctly.
11357 lt_compile=`echo "$ac_compile" | $SED \
11358 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11359 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11360 -e 's:$: $lt_compiler_flag:'`
11361 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11362 (eval "$lt_compile" 2>out/conftest.err)
11364 cat out/conftest.err >&5
11365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11366 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11368 # The compiler can only warn and ignore the option if not recognized
11369 # So say no if there are warnings
11370 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
11371 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11372 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11373 lt_cv_prog_compiler_c_o=yes
11378 # SGI C++ compiler will create directory out/ii_files/ for
11379 # template instantiation
11380 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11381 $RM out/* && rmdir out
11387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
11388 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
11393 hard_links="nottested"
11394 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
11395 # do not overwrite the value of need_locks provided by the user
11396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
11397 $as_echo_n "checking if we can lock with hard links... " >&6; }
11400 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11402 ln conftest.a conftest.b 2>&5 || hard_links=no
11403 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
11405 $as_echo "$hard_links" >&6; }
11406 if test "$hard_links" = no; then
11407 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11408 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11421 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11424 allow_undefined_flag=
11425 always_export_symbols=no
11427 archive_expsym_cmds=
11428 compiler_needs_object=no
11429 enable_shared_with_static_runtimes=no
11430 export_dynamic_flag_spec=
11431 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11432 hardcode_automatic=no
11434 hardcode_direct_absolute=no
11435 hardcode_libdir_flag_spec=
11436 hardcode_libdir_separator=
11437 hardcode_minus_L=no
11438 hardcode_shlibpath_var=unsupported
11440 link_all_deplibs=unknown
11442 module_expsym_cmds=
11443 old_archive_from_new_cmds=
11444 old_archive_from_expsyms_cmds=
11445 thread_safe_flag_spec=
11446 whole_archive_flag_spec=
11447 # include_expsyms should be a list of space-separated symbols to be *always*
11448 # included in the symbol list
11450 # exclude_expsyms can be an extended regexp of symbols to exclude
11451 # it will be wrapped by ` (' and `)$', so one must not match beginning or
11452 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
11453 # as well as any symbol that contains `d'.
11454 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
11455 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
11456 # platforms (ab)use it in PIC code, but their linkers get confused if
11457 # the symbol is explicitly referenced. Since portable code cannot
11458 # rely on this symbol name, it's probably fine to never include it in
11459 # preloaded symbol tables.
11460 # Exclude shared library initialization/finalization symbols.
11461 extract_expsyms_cmds=
11464 cygwin* | mingw* | pw32* | cegcc*)
11465 # FIXME: the MSVC++ port hasn't been tested in a loooong time
11466 # When not using gcc, we currently assume that we are using
11467 # Microsoft Visual C++.
11468 if test "$GCC" != yes; then
11473 # we just hope/assume this is gcc and not c89 (= MSVC++)
11483 # On some targets, GNU ld is compatible enough with the native linker
11484 # that we're better off using the native interface for both.
11485 lt_use_gnu_ld_interface=no
11486 if test "$with_gnu_ld" = yes; then
11489 # The AIX port of GNU ld has always aspired to compatibility
11490 # with the native linker. However, as the warning in the GNU ld
11491 # block says, versions before 2.19.5* couldn't really create working
11492 # shared libraries, regardless of the interface used.
11493 case `$LD -v 2>&1` in
11494 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
11495 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
11496 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
11498 lt_use_gnu_ld_interface=yes
11503 lt_use_gnu_ld_interface=yes
11508 if test "$lt_use_gnu_ld_interface" = yes; then
11509 # If archive_cmds runs LD, not CC, wlarc should be empty
11512 # Set some defaults for GNU ld with shared library support. These
11513 # are reset later if shared libraries are not supported. Putting them
11514 # here allows them to be overridden if necessary.
11515 runpath_var=LD_RUN_PATH
11516 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11517 export_dynamic_flag_spec='${wl}--export-dynamic'
11518 # ancient GNU ld didn't support --whole-archive et. al.
11519 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
11520 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11522 whole_archive_flag_spec=
11524 supports_anon_versioning=no
11525 case `$LD -v 2>&1` in
11526 *GNU\ gold*) supports_anon_versioning=yes ;;
11527 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
11528 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
11529 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
11530 *\ 2.11.*) ;; # other 2.11 versions
11531 *) supports_anon_versioning=yes ;;
11534 # See if GNU ld supports shared libraries.
11537 # On AIX/PPC, the GNU linker is very broken
11538 if test "$host_cpu" != ia64; then
11542 *** Warning: the GNU linker, at least up to release 2.19, is reported
11543 *** to be unable to reliably create shared libraries on AIX.
11544 *** Therefore, libtool is disabling shared libraries support. If you
11545 *** really care for shared libraries, you may want to install binutils
11546 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
11547 *** You will then need to restart the configuration process.
11556 # see comment about AmigaOS4 .so support
11557 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11558 archive_expsym_cmds=''
11561 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)'
11562 hardcode_libdir_flag_spec='-L$libdir'
11563 hardcode_minus_L=yes
11569 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11570 allow_undefined_flag=unsupported
11571 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11572 # support --undefined. This deserves some investigation. FIXME
11573 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11579 cygwin* | mingw* | pw32* | cegcc*)
11580 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
11581 # as there is no search path for DLLs.
11582 hardcode_libdir_flag_spec='-L$libdir'
11583 export_dynamic_flag_spec='${wl}--export-all-symbols'
11584 allow_undefined_flag=unsupported
11585 always_export_symbols=no
11586 enable_shared_with_static_runtimes=yes
11587 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'
11588 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
11590 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
11591 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11592 # If the export-symbols file already is a .def file (1st line
11593 # is EXPORTS), use it as is; otherwise, prepend...
11594 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11595 cp $export_symbols $output_objdir/$soname.def;
11597 echo EXPORTS > $output_objdir/$soname.def;
11598 cat $export_symbols >> $output_objdir/$soname.def;
11600 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11607 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11608 link_all_deplibs=yes
11613 hardcode_shlibpath_var=no
11614 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11615 export_dynamic_flag_spec='${wl}-E'
11616 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11617 # Instead, shared libraries are loaded at an image base (0x10000000 by
11618 # default) and relocated if they conflict, which is a slow very memory
11619 # consuming and fragmenting process. To avoid this, we pick a random,
11620 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11621 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11622 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11623 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'
11626 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
11628 if test "$host_os" = linux-dietlibc; then
11629 case $cc_basename in
11630 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
11633 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
11634 && test "$tmp_diet" = no
11636 tmp_addflag=' $pic_flag'
11637 tmp_sharedflag='-shared'
11638 case $cc_basename,$host_cpu in
11639 pgcc*) # Portland Group C compiler
11640 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'
11641 tmp_addflag=' $pic_flag'
11643 pgf77* | pgf90* | pgf95* | pgfortran*)
11644 # Portland Group f77 and f90 compilers
11645 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'
11646 tmp_addflag=' $pic_flag -Mnomain' ;;
11647 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
11648 tmp_addflag=' -i_dynamic' ;;
11649 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
11650 tmp_addflag=' -i_dynamic -nofor_main' ;;
11651 ifc* | ifort*) # Intel Fortran compiler
11652 tmp_addflag=' -nofor_main' ;;
11653 lf95*) # Lahey Fortran 8.1
11654 whole_archive_flag_spec=
11655 tmp_sharedflag='--shared' ;;
11656 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
11657 tmp_sharedflag='-qmkshrobj'
11659 nvcc*) # Cuda Compiler Driver 2.2
11660 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'
11661 compiler_needs_object=yes
11664 case `$CC -V 2>&1 | sed 5q` in
11665 *Sun\ C*) # Sun C 5.9
11666 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'
11667 compiler_needs_object=yes
11668 tmp_sharedflag='-G' ;;
11669 *Sun\ F*) # Sun Fortran 8.3
11670 tmp_sharedflag='-G' ;;
11672 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11674 if test "x$supports_anon_versioning" = xyes; then
11675 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11676 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11677 echo "local: *; };" >> $output_objdir/$libname.ver~
11678 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
11681 case $cc_basename in
11682 xlf* | bgf* | bgxlf* | mpixlf*)
11683 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
11684 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
11685 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11686 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
11687 if test "x$supports_anon_versioning" = xyes; then
11688 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11689 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11690 echo "local: *; };" >> $output_objdir/$libname.ver~
11691 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
11701 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11702 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
11705 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11706 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11711 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
11715 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
11716 *** create shared libraries on Solaris systems. Therefore, libtool
11717 *** is disabling shared libraries support. We urge you to upgrade GNU
11718 *** binutils to release 2.9.1 or newer. Another option is to modify
11719 *** your PATH or compiler configuration so that the native linker is
11720 *** used, and then restart.
11723 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11724 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11725 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11731 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
11732 case `$LD -v 2>&1` in
11733 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
11737 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
11738 *** reliably create shared libraries on SCO systems. Therefore, libtool
11739 *** is disabling shared libraries support. We urge you to upgrade GNU
11740 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
11741 *** your PATH or compiler configuration so that the native linker is
11742 *** used, and then restart.
11747 # For security reasons, it is highly recommended that you always
11748 # use absolute paths for naming shared libraries, and exclude the
11749 # DT_RUNPATH tag from executables and libraries. But doing so
11750 # requires that you compile everything twice, which is a pain.
11751 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11752 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11753 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11754 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11763 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11765 hardcode_direct=yes
11766 hardcode_shlibpath_var=no
11770 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11771 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11772 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11779 if test "$ld_shlibs" = no; then
11781 hardcode_libdir_flag_spec=
11782 export_dynamic_flag_spec=
11783 whole_archive_flag_spec=
11786 # PORTME fill in a description of your system's linker (not GNU ld)
11789 allow_undefined_flag=unsupported
11790 always_export_symbols=yes
11791 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'
11792 # Note: this linker hardcodes the directories in LIBPATH if there
11793 # are no directories specified by -L.
11794 hardcode_minus_L=yes
11795 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
11796 # Neither direct hardcoding nor static linking is supported with a
11798 hardcode_direct=unsupported
11803 if test "$host_cpu" = ia64; then
11804 # On IA64, the linker does run time linking by default, so we don't
11805 # have to do anything special.
11806 aix_use_runtimelinking=no
11807 exp_sym_flag='-Bexport'
11810 # If we're using GNU nm, then we don't want the "-C" option.
11811 # -C means demangle to AIX nm, but means don't demangle with GNU nm
11812 # Also, AIX nm treats weak defined symbols like other global
11813 # defined symbols, whereas GNU nm marks them as "W".
11814 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
11815 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
11817 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
11819 aix_use_runtimelinking=no
11821 # Test if we are trying to use run time linking or normal
11822 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11823 # need to do runtime linking.
11824 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11825 for ld_flag in $LDFLAGS; do
11826 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
11827 aix_use_runtimelinking=yes
11834 exp_sym_flag='-bexport'
11835 no_entry_flag='-bnoentry'
11838 # When large executables or shared objects are built, AIX ld can
11839 # have problems creating the table of contents. If linking a library
11840 # or program results in "error TOC overflow" add -mminimal-toc to
11841 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11842 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11845 hardcode_direct=yes
11846 hardcode_direct_absolute=yes
11847 hardcode_libdir_separator=':'
11848 link_all_deplibs=yes
11849 file_list_spec='${wl}-f,'
11851 if test "$GCC" = yes; then
11852 case $host_os in aix4.[012]|aix4.[012].*)
11853 # We only want to do this on AIX 4.2 and lower, the check
11854 # below for broken collect2 doesn't work under 4.3+
11855 collect2name=`${CC} -print-prog-name=collect2`
11856 if test -f "$collect2name" &&
11857 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11859 # We have reworked collect2
11862 # We have old collect2
11863 hardcode_direct=unsupported
11864 # It fails to find uninstalled libraries when the uninstalled
11865 # path is not listed in the libpath. Setting hardcode_minus_L
11866 # to unsupported forces relinking
11867 hardcode_minus_L=yes
11868 hardcode_libdir_flag_spec='-L$libdir'
11869 hardcode_libdir_separator=
11873 shared_flag='-shared'
11874 if test "$aix_use_runtimelinking" = yes; then
11875 shared_flag="$shared_flag "'${wl}-G'
11879 if test "$host_cpu" = ia64; then
11880 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11881 # chokes on -Wl,-G. The following line is correct:
11884 if test "$aix_use_runtimelinking" = yes; then
11885 shared_flag='${wl}-G'
11887 shared_flag='${wl}-bM:SRE'
11892 export_dynamic_flag_spec='${wl}-bexpall'
11893 # It seems that -bexpall does not export symbols beginning with
11894 # underscore (_), so it is better to generate a list of symbols to export.
11895 always_export_symbols=yes
11896 if test "$aix_use_runtimelinking" = yes; then
11897 # Warning - without using the other runtime loading flags (-brtl),
11898 # -berok will link without error, but may produce a broken library.
11899 allow_undefined_flag='-berok'
11900 # Determine the default libpath from the value encoded in an
11901 # empty executable.
11902 if test "${lt_cv_aix_libpath+set}" = set; then
11903 aix_libpath=$lt_cv_aix_libpath
11905 if ${lt_cv_aix_libpath_+:} false; then :
11906 $as_echo_n "(cached) " >&6
11908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11909 /* end confdefs.h. */
11919 if ac_fn_c_try_link "$LINENO"; then :
11921 lt_aix_libpath_sed='
11922 /Import File Strings/,/^$/ {
11924 s/^0 *\([^ ]*\) *$/\1/
11928 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11929 # Check for a 64-bit object if we didn't find anything.
11930 if test -z "$lt_cv_aix_libpath_"; then
11931 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11934 rm -f core conftest.err conftest.$ac_objext \
11935 conftest$ac_exeext conftest.$ac_ext
11936 if test -z "$lt_cv_aix_libpath_"; then
11937 lt_cv_aix_libpath_="/usr/lib:/lib"
11942 aix_libpath=$lt_cv_aix_libpath_
11945 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
11946 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
11948 if test "$host_cpu" = ia64; then
11949 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
11950 allow_undefined_flag="-z nodefs"
11951 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"
11953 # Determine the default libpath from the value encoded in an
11954 # empty executable.
11955 if test "${lt_cv_aix_libpath+set}" = set; then
11956 aix_libpath=$lt_cv_aix_libpath
11958 if ${lt_cv_aix_libpath_+:} false; then :
11959 $as_echo_n "(cached) " >&6
11961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11962 /* end confdefs.h. */
11972 if ac_fn_c_try_link "$LINENO"; then :
11974 lt_aix_libpath_sed='
11975 /Import File Strings/,/^$/ {
11977 s/^0 *\([^ ]*\) *$/\1/
11981 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11982 # Check for a 64-bit object if we didn't find anything.
11983 if test -z "$lt_cv_aix_libpath_"; then
11984 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11987 rm -f core conftest.err conftest.$ac_objext \
11988 conftest$ac_exeext conftest.$ac_ext
11989 if test -z "$lt_cv_aix_libpath_"; then
11990 lt_cv_aix_libpath_="/usr/lib:/lib"
11995 aix_libpath=$lt_cv_aix_libpath_
11998 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
11999 # Warning - without using the other run time loading flags,
12000 # -berok will link without error, but may produce a broken library.
12001 no_undefined_flag=' ${wl}-bernotok'
12002 allow_undefined_flag=' ${wl}-berok'
12003 if test "$with_gnu_ld" = yes; then
12004 # We only use this code for GNU lds that support --whole-archive.
12005 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12007 # Exported symbols can be pulled into shared objects from archives
12008 whole_archive_flag_spec='$convenience'
12010 archive_cmds_need_lc=yes
12011 # This is similar to how AIX traditionally builds its shared libraries.
12012 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
12020 # see comment about AmigaOS4 .so support
12021 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12022 archive_expsym_cmds=''
12025 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)'
12026 hardcode_libdir_flag_spec='-L$libdir'
12027 hardcode_minus_L=yes
12033 export_dynamic_flag_spec=-rdynamic
12036 cygwin* | mingw* | pw32* | cegcc*)
12037 # When not using gcc, we currently assume that we are using
12038 # Microsoft Visual C++.
12039 # hardcode_libdir_flag_spec is actually meaningless, as there is
12040 # no search path for DLLs.
12041 case $cc_basename in
12044 hardcode_libdir_flag_spec=' '
12045 allow_undefined_flag=unsupported
12046 always_export_symbols=yes
12048 # Tell ltmain to make .lib files, not .a files.
12050 # Tell ltmain to make .dll files, not .so files.
12052 # FIXME: Setting linknames here is a bad hack.
12053 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
12054 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12055 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
12057 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
12059 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
12061 # The linker will not automatically build a static lib if we build a DLL.
12062 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
12063 enable_shared_with_static_runtimes=yes
12064 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
12065 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
12067 old_postinstall_cmds='chmod 644 $oldlib'
12068 postlink_cmds='lt_outputfile="@OUTPUT@"~
12069 lt_tool_outputfile="@TOOL_OUTPUT@"~
12070 case $lt_outputfile in
12073 lt_outputfile="$lt_outputfile.exe"
12074 lt_tool_outputfile="$lt_tool_outputfile.exe"
12077 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
12078 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
12079 $RM "$lt_outputfile.manifest";
12083 # Assume MSVC wrapper
12084 hardcode_libdir_flag_spec=' '
12085 allow_undefined_flag=unsupported
12086 # Tell ltmain to make .lib files, not .a files.
12088 # Tell ltmain to make .dll files, not .so files.
12090 # FIXME: Setting linknames here is a bad hack.
12091 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
12092 # The linker will automatically build a .lib file if we build a DLL.
12093 old_archive_from_new_cmds='true'
12094 # FIXME: Should let the user specify the lib program.
12095 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
12096 enable_shared_with_static_runtimes=yes
12101 darwin* | rhapsody*)
12104 archive_cmds_need_lc=no
12106 hardcode_automatic=yes
12107 hardcode_shlibpath_var=unsupported
12108 if test "$lt_cv_ld_force_load" = "yes"; then
12109 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\"`'
12112 whole_archive_flag_spec=''
12114 link_all_deplibs=yes
12115 allow_undefined_flag="$_lt_dar_allow_undefined"
12116 case $cc_basename in
12117 ifort*) _lt_dar_can_shared=yes ;;
12118 *) _lt_dar_can_shared=$GCC ;;
12120 if test "$_lt_dar_can_shared" = "yes"; then
12121 output_verbose_link_cmd=func_echo_all
12122 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
12123 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12124 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}"
12125 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}"
12134 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12135 hardcode_libdir_flag_spec='-L$libdir'
12136 hardcode_shlibpath_var=no
12139 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12140 # support. Future versions do this automatically, but an explicit c++rt0.o
12141 # does not break anything, and helps significantly (at the cost of a little
12144 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
12145 hardcode_libdir_flag_spec='-R$libdir'
12146 hardcode_direct=yes
12147 hardcode_shlibpath_var=no
12150 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
12152 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12153 hardcode_direct=yes
12154 hardcode_minus_L=yes
12155 hardcode_shlibpath_var=no
12158 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
12159 freebsd* | dragonfly*)
12160 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12161 hardcode_libdir_flag_spec='-R$libdir'
12162 hardcode_direct=yes
12163 hardcode_shlibpath_var=no
12167 if test "$GCC" = yes; then
12168 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
12170 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
12172 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12173 hardcode_libdir_separator=:
12174 hardcode_direct=yes
12176 # hardcode_minus_L: Not really in the search PATH,
12177 # but as the default location of the library.
12178 hardcode_minus_L=yes
12179 export_dynamic_flag_spec='${wl}-E'
12183 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
12184 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12186 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12188 if test "$with_gnu_ld" = no; then
12189 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12190 hardcode_libdir_separator=:
12191 hardcode_direct=yes
12192 hardcode_direct_absolute=yes
12193 export_dynamic_flag_spec='${wl}-E'
12194 # hardcode_minus_L: Not really in the search PATH,
12195 # but as the default location of the library.
12196 hardcode_minus_L=yes
12201 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
12204 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12207 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12210 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12216 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12219 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12223 # Older versions of the 11.00 compiler do not understand -b yet
12224 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
12225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
12226 $as_echo_n "checking if $CC understands -b... " >&6; }
12227 if ${lt_cv_prog_compiler__b+:} false; then :
12228 $as_echo_n "(cached) " >&6
12230 lt_cv_prog_compiler__b=no
12231 save_LDFLAGS="$LDFLAGS"
12232 LDFLAGS="$LDFLAGS -b"
12233 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12234 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12235 # The linker can only warn and ignore the option if not recognized
12236 # So say no if there are warnings
12237 if test -s conftest.err; then
12238 # Append any errors to the config.log.
12239 cat conftest.err 1>&5
12240 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
12241 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12242 if diff conftest.exp conftest.er2 >/dev/null; then
12243 lt_cv_prog_compiler__b=yes
12246 lt_cv_prog_compiler__b=yes
12250 LDFLAGS="$save_LDFLAGS"
12253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
12254 $as_echo "$lt_cv_prog_compiler__b" >&6; }
12256 if test x"$lt_cv_prog_compiler__b" = xyes; then
12257 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12259 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12265 if test "$with_gnu_ld" = no; then
12266 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12267 hardcode_libdir_separator=:
12272 hardcode_shlibpath_var=no
12275 hardcode_direct=yes
12276 hardcode_direct_absolute=yes
12277 export_dynamic_flag_spec='${wl}-E'
12279 # hardcode_minus_L: Not really in the search PATH,
12280 # but as the default location of the library.
12281 hardcode_minus_L=yes
12287 irix5* | irix6* | nonstopux*)
12288 if test "$GCC" = yes; then
12289 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'
12290 # Try to use the -exported_symbol ld option, if it does not
12291 # work, assume that -exports_file does not work either and
12292 # implicitly export all symbols.
12293 # This should be the same for all languages, so no per-tag cache variable.
12294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
12295 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
12296 if ${lt_cv_irix_exported_symbol+:} false; then :
12297 $as_echo_n "(cached) " >&6
12299 save_LDFLAGS="$LDFLAGS"
12300 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
12301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12302 /* end confdefs.h. */
12303 int foo (void) { return 0; }
12305 if ac_fn_c_try_link "$LINENO"; then :
12306 lt_cv_irix_exported_symbol=yes
12308 lt_cv_irix_exported_symbol=no
12310 rm -f core conftest.err conftest.$ac_objext \
12311 conftest$ac_exeext conftest.$ac_ext
12312 LDFLAGS="$save_LDFLAGS"
12314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
12315 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
12316 if test "$lt_cv_irix_exported_symbol" = yes; then
12317 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'
12320 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'
12321 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'
12323 archive_cmds_need_lc='no'
12324 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12325 hardcode_libdir_separator=:
12327 link_all_deplibs=yes
12331 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12332 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
12334 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
12336 hardcode_libdir_flag_spec='-R$libdir'
12337 hardcode_direct=yes
12338 hardcode_shlibpath_var=no
12342 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12343 hardcode_direct=yes
12344 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12345 hardcode_libdir_separator=:
12346 hardcode_shlibpath_var=no
12353 if test -f /usr/libexec/ld.so; then
12354 hardcode_direct=yes
12355 hardcode_shlibpath_var=no
12356 hardcode_direct_absolute=yes
12357 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12358 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12359 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
12360 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
12361 export_dynamic_flag_spec='${wl}-E'
12364 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
12365 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12366 hardcode_libdir_flag_spec='-R$libdir'
12369 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12370 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
12380 hardcode_libdir_flag_spec='-L$libdir'
12381 hardcode_minus_L=yes
12382 allow_undefined_flag=unsupported
12383 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
12384 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
12388 if test "$GCC" = yes; then
12389 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
12390 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'
12392 allow_undefined_flag=' -expect_unresolved \*'
12393 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'
12395 archive_cmds_need_lc='no'
12396 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12397 hardcode_libdir_separator=:
12400 osf4* | osf5*) # as osf3* with the addition of -msym flag
12401 if test "$GCC" = yes; then
12402 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
12403 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'
12404 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12406 allow_undefined_flag=' -expect_unresolved \*'
12407 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'
12408 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~
12409 $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'
12411 # Both c and cxx compiler support -rpath directly
12412 hardcode_libdir_flag_spec='-rpath $libdir'
12414 archive_cmds_need_lc='no'
12415 hardcode_libdir_separator=:
12419 no_undefined_flag=' -z defs'
12420 if test "$GCC" = yes; then
12422 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12423 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12424 $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'
12426 case `$CC -V 2>&1` in
12429 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
12430 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12431 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
12435 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
12436 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12437 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12441 hardcode_libdir_flag_spec='-R$libdir'
12442 hardcode_shlibpath_var=no
12444 solaris2.[0-5] | solaris2.[0-5].*) ;;
12446 # The compiler driver will combine and reorder linker options,
12447 # but understands `-z linker_flag'. GCC discards it without `$wl',
12448 # but is careful enough not to reorder.
12449 # Supported since Solaris 2.6 (maybe 2.5.1?)
12450 if test "$GCC" = yes; then
12451 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12453 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
12457 link_all_deplibs=yes
12461 if test "x$host_vendor" = xsequent; then
12462 # Use $CC to link under sequent, because it throws in some extra .o
12463 # files that make .init and .fini sections work.
12464 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
12466 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
12468 hardcode_libdir_flag_spec='-L$libdir'
12469 hardcode_direct=yes
12470 hardcode_minus_L=yes
12471 hardcode_shlibpath_var=no
12475 case $host_vendor in
12477 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12478 hardcode_direct=yes # is this really true???
12481 ## LD is ld it makes a PLAMLIB
12482 ## CC just makes a GrossModule.
12483 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12484 reload_cmds='$CC -r -o $output$reload_objs'
12488 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12489 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
12492 runpath_var='LD_RUN_PATH'
12493 hardcode_shlibpath_var=no
12497 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12498 hardcode_shlibpath_var=no
12499 export_dynamic_flag_spec='-Bexport'
12503 if test -d /usr/nec; then
12504 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12505 hardcode_shlibpath_var=no
12506 runpath_var=LD_RUN_PATH
12507 hardcode_runpath_var=yes
12512 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12513 no_undefined_flag='${wl}-z,text'
12514 archive_cmds_need_lc=no
12515 hardcode_shlibpath_var=no
12516 runpath_var='LD_RUN_PATH'
12518 if test "$GCC" = yes; then
12519 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12520 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12522 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12523 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12527 sysv5* | sco3.2v5* | sco5v6*)
12528 # Note: We can NOT use -z defs as we might desire, because we do not
12529 # link with -lc, and that would cause any symbols used from libc to
12530 # always be unresolved, which means just about no library would
12531 # ever link correctly. If we're not using GNU ld we use -z text
12532 # though, which does catch some bad symbols but isn't as heavy-handed
12534 no_undefined_flag='${wl}-z,text'
12535 allow_undefined_flag='${wl}-z,nodefs'
12536 archive_cmds_need_lc=no
12537 hardcode_shlibpath_var=no
12538 hardcode_libdir_flag_spec='${wl}-R,$libdir'
12539 hardcode_libdir_separator=':'
12540 link_all_deplibs=yes
12541 export_dynamic_flag_spec='${wl}-Bexport'
12542 runpath_var='LD_RUN_PATH'
12544 if test "$GCC" = yes; then
12545 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12546 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12548 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12549 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12554 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12555 hardcode_libdir_flag_spec='-L$libdir'
12556 hardcode_shlibpath_var=no
12564 if test x$host_vendor = xsni; then
12566 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12567 export_dynamic_flag_spec='${wl}-Blargedynsym'
12573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
12574 $as_echo "$ld_shlibs" >&6; }
12575 test "$ld_shlibs" = no && can_build_shared=no
12577 with_gnu_ld=$with_gnu_ld
12594 # Do we need to explicitly link libc?
12596 case "x$archive_cmds_need_lc" in
12598 # Assume -lc should be added
12599 archive_cmds_need_lc=yes
12601 if test "$enable_shared" = yes && test "$GCC" = yes; then
12602 case $archive_cmds in
12604 # FIXME: we may have to deal with multi-command sequences.
12607 # Test whether the compiler implicitly links with -lc since on some
12608 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12609 # to ld, don't add -lc before -lgcc.
12610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
12611 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
12612 if ${lt_cv_archive_cmds_need_lc+:} false; then :
12613 $as_echo_n "(cached) " >&6
12616 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12618 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12619 (eval $ac_compile) 2>&5
12621 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12622 test $ac_status = 0; } 2>conftest.err; then
12625 libobjs=conftest.$ac_objext
12627 wl=$lt_prog_compiler_wl
12628 pic_flag=$lt_prog_compiler_pic
12634 lt_save_allow_undefined_flag=$allow_undefined_flag
12635 allow_undefined_flag=
12636 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
12637 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
12639 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12640 test $ac_status = 0; }
12642 lt_cv_archive_cmds_need_lc=no
12644 lt_cv_archive_cmds_need_lc=yes
12646 allow_undefined_flag=$lt_save_allow_undefined_flag
12648 cat conftest.err 1>&5
12653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
12654 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
12655 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
12813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
12814 $as_echo_n "checking dynamic linker characteristics... " >&6; }
12816 if test "$GCC" = yes; then
12818 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
12819 *) lt_awk_arg="/^libraries:/" ;;
12822 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
12823 *) lt_sed_strip_eq="s,=/,/,g" ;;
12825 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
12826 case $lt_search_path_spec in
12828 # if the path contains ";" then we assume it to be the separator
12829 # otherwise default to the standard path separator (i.e. ":") - it is
12830 # assumed that no part of a normal pathname contains ";" but that should
12831 # okay in the real world where ";" in dirpaths is itself problematic.
12832 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
12835 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
12838 # Ok, now we have the path, separated by spaces, we can step through it
12839 # and add multilib dir if necessary.
12840 lt_tmp_lt_search_path_spec=
12841 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
12842 for lt_sys_path in $lt_search_path_spec; do
12843 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
12844 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
12846 test -d "$lt_sys_path" && \
12847 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
12850 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
12851 BEGIN {RS=" "; FS="/|\n";} {
12854 for (lt_i = NF; lt_i > 0; lt_i--) {
12855 if ($lt_i != "" && $lt_i != ".") {
12856 if ($lt_i == "..") {
12859 if (lt_count == 0) {
12860 lt_foo="/" $lt_i lt_foo;
12867 if (lt_foo != "") { lt_freq[lt_foo]++; }
12868 if (lt_freq[lt_foo] == 1) { print lt_foo; }
12870 # AWK program above erroneously prepends '/' to C:/dos/paths
12873 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
12874 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
12876 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
12878 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12880 library_names_spec=
12881 libname_spec='lib$name'
12885 postuninstall_cmds=
12889 shlibpath_overrides_runpath=unknown
12891 dynamic_linker="$host_os ld.so"
12892 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12893 need_lib_prefix=unknown
12894 hardcode_into_libs=no
12896 # when you set need_version to no, make sure it does not cause -set_version
12897 # flags to be left without arguments
12898 need_version=unknown
12902 version_type=linux # correct to gnu/linux during the next big refactor
12903 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12904 shlibpath_var=LIBPATH
12906 # AIX 3 has no versioning support, so we append a major version to the name.
12907 soname_spec='${libname}${release}${shared_ext}$major'
12911 version_type=linux # correct to gnu/linux during the next big refactor
12914 hardcode_into_libs=yes
12915 if test "$host_cpu" = ia64; then
12916 # AIX 5 supports IA64
12917 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12918 shlibpath_var=LD_LIBRARY_PATH
12920 # With GCC up to 2.95.x, collect2 would create an import file
12921 # for dependence libraries. The import file would start with
12922 # the line `#! .'. This would cause the generated library to
12923 # depend on `.', always an invalid library. This was fixed in
12924 # development snapshots of GCC prior to 3.0.
12926 aix4 | aix4.[01] | aix4.[01].*)
12927 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12929 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
12932 can_build_shared=no
12936 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12937 # soname into executable. Probably we can add versioning support to
12938 # collect2, so additional links can be useful in future.
12939 if test "$aix_use_runtimelinking" = yes; then
12940 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12941 # instead of lib<name>.a to let people know that these are not
12942 # typical AIX shared libraries.
12943 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12945 # We preserve .a as extension for shared libraries through AIX4.2
12946 # and later when we are not doing run time linking.
12947 library_names_spec='${libname}${release}.a $libname.a'
12948 soname_spec='${libname}${release}${shared_ext}$major'
12950 shlibpath_var=LIBPATH
12957 # Since July 2007 AmigaOS4 officially supports .so libraries.
12958 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
12959 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12962 library_names_spec='$libname.ixlibrary $libname.a'
12963 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12964 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
12970 library_names_spec='${libname}${shared_ext}'
12971 dynamic_linker="$host_os ld.so"
12972 shlibpath_var=LIBRARY_PATH
12976 version_type=linux # correct to gnu/linux during the next big refactor
12978 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12979 soname_spec='${libname}${release}${shared_ext}$major'
12980 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12981 shlibpath_var=LD_LIBRARY_PATH
12982 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12983 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12984 # the default ld.so.conf also contains /usr/contrib/lib and
12985 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12986 # libtool to hard-code these into programs
12989 cygwin* | mingw* | pw32* | cegcc*)
12990 version_type=windows
12995 case $GCC,$cc_basename in
12998 library_names_spec='$libname.dll.a'
12999 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13000 postinstall_cmds='base_file=`basename \${file}`~
13001 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
13002 dldir=$destdir/`dirname \$dlpath`~
13003 test -d \$dldir || mkdir -p \$dldir~
13004 $install_prog $dir/$dlname \$dldir/$dlname~
13005 chmod a+x \$dldir/$dlname~
13006 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13007 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13009 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13010 dlpath=$dir/\$dldll~
13012 shlibpath_overrides_runpath=yes
13016 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13017 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13019 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
13022 # MinGW DLLs use traditional 'lib' prefix
13023 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13026 # pw32 DLLs use 'pw' prefix rather than 'lib'
13027 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13030 dynamic_linker='Win32 ld.exe'
13035 libname_spec='$name'
13036 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13037 library_names_spec='${libname}.dll.lib'
13041 sys_lib_search_path_spec=
13044 for lt_path in $LIB
13047 # Let DOS variable expansion print the short 8.3 style file name.
13048 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
13049 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
13052 # Convert to MSYS style.
13053 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
13056 # Convert to unix form, then to dos form, then back to unix form
13057 # but this time dos style (no spaces!) so that the unix form looks
13058 # like /cygdrive/c/PROGRA~1:/cygdr...
13059 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
13060 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
13061 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13064 sys_lib_search_path_spec="$LIB"
13065 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
13066 # It is most probably a Windows format PATH.
13067 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13069 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13071 # FIXME: find the short name or the path components, as spaces are
13072 # common. (e.g. "Program Files" -> "PROGRA~1")
13076 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13077 postinstall_cmds='base_file=`basename \${file}`~
13078 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
13079 dldir=$destdir/`dirname \$dlpath`~
13080 test -d \$dldir || mkdir -p \$dldir~
13081 $install_prog $dir/$dlname \$dldir/$dlname'
13082 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13083 dlpath=$dir/\$dldll~
13085 shlibpath_overrides_runpath=yes
13086 dynamic_linker='Win32 link.exe'
13090 # Assume MSVC wrapper
13091 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13092 dynamic_linker='Win32 ld.exe'
13095 # FIXME: first we should search . and the directory the executable is in
13099 darwin* | rhapsody*)
13100 dynamic_linker="$host_os dyld"
13101 version_type=darwin
13104 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13105 soname_spec='${libname}${release}${major}$shared_ext'
13106 shlibpath_overrides_runpath=yes
13107 shlibpath_var=DYLD_LIBRARY_PATH
13108 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13110 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
13111 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13115 version_type=linux # correct to gnu/linux during the next big refactor
13118 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13119 soname_spec='${libname}${release}${shared_ext}$major'
13120 shlibpath_var=LD_LIBRARY_PATH
13123 freebsd* | dragonfly*)
13124 # DragonFly does not have aout. When/if they implement a new
13125 # versioning mechanism, adjust this.
13126 if test -x /usr/bin/objformat; then
13127 objformat=`/usr/bin/objformat`
13130 freebsd[23].*) objformat=aout ;;
13131 *) objformat=elf ;;
13134 version_type=freebsd-$objformat
13135 case $version_type in
13137 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13142 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13146 shlibpath_var=LD_LIBRARY_PATH
13149 shlibpath_overrides_runpath=yes
13151 freebsd3.[01]* | freebsdelf3.[01]*)
13152 shlibpath_overrides_runpath=yes
13153 hardcode_into_libs=yes
13155 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13156 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13157 shlibpath_overrides_runpath=no
13158 hardcode_into_libs=yes
13160 *) # from 4.6 on, and DragonFly
13161 shlibpath_overrides_runpath=yes
13162 hardcode_into_libs=yes
13168 version_type=linux # correct to gnu/linux during the next big refactor
13171 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13172 soname_spec='${libname}${release}${shared_ext}$major'
13173 shlibpath_var=LD_LIBRARY_PATH
13174 shlibpath_overrides_runpath=no
13175 hardcode_into_libs=yes
13179 version_type=linux # correct to gnu/linux during the next big refactor
13182 dynamic_linker="$host_os runtime_loader"
13183 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13184 soname_spec='${libname}${release}${shared_ext}$major'
13185 shlibpath_var=LIBRARY_PATH
13186 shlibpath_overrides_runpath=yes
13187 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
13188 hardcode_into_libs=yes
13191 hpux9* | hpux10* | hpux11*)
13192 # Give a soname corresponding to the major version so that dld.sl refuses to
13193 # link against other versions.
13200 hardcode_into_libs=yes
13201 dynamic_linker="$host_os dld.so"
13202 shlibpath_var=LD_LIBRARY_PATH
13203 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13204 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13205 soname_spec='${libname}${release}${shared_ext}$major'
13206 if test "X$HPUX_IA64_MODE" = X32; then
13207 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13209 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13211 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13215 hardcode_into_libs=yes
13216 dynamic_linker="$host_os dld.sl"
13217 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13218 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13219 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13220 soname_spec='${libname}${release}${shared_ext}$major'
13221 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13222 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13226 dynamic_linker="$host_os dld.sl"
13227 shlibpath_var=SHLIB_PATH
13228 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13229 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13230 soname_spec='${libname}${release}${shared_ext}$major'
13233 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
13234 postinstall_cmds='chmod 555 $lib'
13235 # or fails outright, so override atomically:
13236 install_override_mode=555
13240 version_type=linux # correct to gnu/linux during the next big refactor
13243 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13244 soname_spec='${libname}${release}${shared_ext}$major'
13245 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13246 shlibpath_var=LD_LIBRARY_PATH
13247 shlibpath_overrides_runpath=no
13248 hardcode_into_libs=yes
13251 irix5* | irix6* | nonstopux*)
13253 nonstopux*) version_type=nonstopux ;;
13255 if test "$lt_cv_prog_gnu_ld" = yes; then
13256 version_type=linux # correct to gnu/linux during the next big refactor
13263 soname_spec='${libname}${release}${shared_ext}$major'
13264 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13266 irix5* | nonstopux*)
13267 libsuff= shlibsuff=
13270 case $LD in # libtool.m4 will add one of these switches to LD
13271 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13272 libsuff= shlibsuff= libmagic=32-bit;;
13273 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13274 libsuff=32 shlibsuff=N32 libmagic=N32;;
13275 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13276 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13277 *) libsuff= shlibsuff= libmagic=never-match;;
13281 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13282 shlibpath_overrides_runpath=no
13283 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13284 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13285 hardcode_into_libs=yes
13288 # No shared lib support for Linux oldld, aout, or coff.
13289 linux*oldld* | linux*aout* | linux*coff*)
13293 # This must be glibc/ELF.
13294 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13295 version_type=linux # correct to gnu/linux during the next big refactor
13298 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13299 soname_spec='${libname}${release}${shared_ext}$major'
13300 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13301 shlibpath_var=LD_LIBRARY_PATH
13302 shlibpath_overrides_runpath=no
13304 # Some binutils ld are patched to set DT_RUNPATH
13305 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
13306 $as_echo_n "(cached) " >&6
13308 lt_cv_shlibpath_overrides_runpath=no
13309 save_LDFLAGS=$LDFLAGS
13310 save_libdir=$libdir
13311 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
13312 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
13313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13314 /* end confdefs.h. */
13324 if ac_fn_c_try_link "$LINENO"; then :
13325 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
13326 lt_cv_shlibpath_overrides_runpath=yes
13329 rm -f core conftest.err conftest.$ac_objext \
13330 conftest$ac_exeext conftest.$ac_ext
13331 LDFLAGS=$save_LDFLAGS
13332 libdir=$save_libdir
13336 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
13338 # This implies no fast_install, which is unacceptable.
13339 # Some rework will be needed to allow for fast_install
13340 # before this can be enabled.
13341 hardcode_into_libs=yes
13343 # Append ld.so.conf contents to the search path
13344 if test -f /etc/ld.so.conf; then
13345 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' ' '`
13346 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13349 # We used to test for /lib/ld.so.1 and disable shared libraries on
13350 # powerpc, because MkLinux only supported shared libraries with the
13351 # GNU dynamic linker. Since this was broken with cross compilers,
13352 # most powerpc-linux boxes support dynamic linking these days and
13353 # people can always --disable-shared, the test was removed, and we
13354 # assume the GNU/Linux dynamic linker is in use.
13355 dynamic_linker='GNU/Linux ld.so'
13362 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13363 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13364 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13365 dynamic_linker='NetBSD (a.out) ld.so'
13367 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13368 soname_spec='${libname}${release}${shared_ext}$major'
13369 dynamic_linker='NetBSD ld.elf_so'
13371 shlibpath_var=LD_LIBRARY_PATH
13372 shlibpath_overrides_runpath=yes
13373 hardcode_into_libs=yes
13377 version_type=linux # correct to gnu/linux during the next big refactor
13378 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13379 shlibpath_var=LD_LIBRARY_PATH
13380 shlibpath_overrides_runpath=yes
13387 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13388 soname_spec='${libname}${release}${shared_ext}$major'
13389 shlibpath_var=LD_LIBRARY_PATH
13390 shlibpath_overrides_runpath=no
13391 hardcode_into_libs=yes
13392 dynamic_linker='ldqnx.so'
13397 sys_lib_dlsearch_path_spec="/usr/lib"
13399 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13401 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13402 *) need_version=no ;;
13404 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13405 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13406 shlibpath_var=LD_LIBRARY_PATH
13407 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13409 openbsd2.[89] | openbsd2.[89].*)
13410 shlibpath_overrides_runpath=no
13413 shlibpath_overrides_runpath=yes
13417 shlibpath_overrides_runpath=yes
13422 libname_spec='$name'
13425 library_names_spec='$libname${shared_ext} $libname.a'
13426 dynamic_linker='OS/2 ld.exe'
13427 shlibpath_var=LIBPATH
13430 osf3* | osf4* | osf5*)
13434 soname_spec='${libname}${release}${shared_ext}$major'
13435 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13436 shlibpath_var=LD_LIBRARY_PATH
13437 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13438 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13446 version_type=linux # correct to gnu/linux during the next big refactor
13449 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13450 soname_spec='${libname}${release}${shared_ext}$major'
13451 shlibpath_var=LD_LIBRARY_PATH
13452 shlibpath_overrides_runpath=yes
13453 hardcode_into_libs=yes
13454 # ldd complains unless libraries are executable
13455 postinstall_cmds='chmod +x $lib'
13460 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13461 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13462 shlibpath_var=LD_LIBRARY_PATH
13463 shlibpath_overrides_runpath=yes
13464 if test "$with_gnu_ld" = yes; then
13471 version_type=linux # correct to gnu/linux during the next big refactor
13472 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13473 soname_spec='${libname}${release}${shared_ext}$major'
13474 shlibpath_var=LD_LIBRARY_PATH
13475 case $host_vendor in
13477 shlibpath_overrides_runpath=no
13479 runpath_var=LD_RUN_PATH
13487 shlibpath_overrides_runpath=no
13488 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13494 if test -d /usr/nec ;then
13495 version_type=linux # correct to gnu/linux during the next big refactor
13496 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13497 soname_spec='$libname${shared_ext}.$major'
13498 shlibpath_var=LD_LIBRARY_PATH
13502 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13503 version_type=freebsd-elf
13506 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13507 soname_spec='${libname}${release}${shared_ext}$major'
13508 shlibpath_var=LD_LIBRARY_PATH
13509 shlibpath_overrides_runpath=yes
13510 hardcode_into_libs=yes
13511 if test "$with_gnu_ld" = yes; then
13512 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13514 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13517 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13521 sys_lib_dlsearch_path_spec='/usr/lib'
13525 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
13526 version_type=linux # correct to gnu/linux during the next big refactor
13529 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13530 shlibpath_var=LD_LIBRARY_PATH
13531 shlibpath_overrides_runpath=no
13532 hardcode_into_libs=yes
13536 version_type=linux # correct to gnu/linux during the next big refactor
13537 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13538 soname_spec='${libname}${release}${shared_ext}$major'
13539 shlibpath_var=LD_LIBRARY_PATH
13546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
13547 $as_echo "$dynamic_linker" >&6; }
13548 test "$dynamic_linker" = no && can_build_shared=no
13550 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13551 if test "$GCC" = yes; then
13552 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13555 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
13556 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
13558 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
13559 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
13653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13654 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13656 if test -n "$hardcode_libdir_flag_spec" ||
13657 test -n "$runpath_var" ||
13658 test "X$hardcode_automatic" = "Xyes" ; then
13660 # We can hardcode non-existent directories.
13661 if test "$hardcode_direct" != no &&
13662 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13663 # have to relink, otherwise we might link with an installed library
13664 # when we should be linking with a yet-to-be-installed one
13665 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
13666 test "$hardcode_minus_L" != no; then
13667 # Linking always hardcodes the temporary library directory.
13668 hardcode_action=relink
13670 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13671 hardcode_action=immediate
13674 # We cannot hardcode anything, or else we can only hardcode existing
13676 hardcode_action=unsupported
13678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
13679 $as_echo "$hardcode_action" >&6; }
13681 if test "$hardcode_action" = relink ||
13682 test "$inherit_rpath" = yes; then
13683 # Fast installation is not supported
13684 enable_fast_install=no
13685 elif test "$shlibpath_overrides_runpath" = yes ||
13686 test "$enable_shared" = no; then
13687 # Fast installation is not necessary
13688 enable_fast_install=needless
13696 if test "x$enable_dlopen" != xyes; then
13697 enable_dlopen=unknown
13698 enable_dlopen_self=unknown
13699 enable_dlopen_self_static=unknown
13706 lt_cv_dlopen="load_add_on"
13708 lt_cv_dlopen_self=yes
13711 mingw* | pw32* | cegcc*)
13712 lt_cv_dlopen="LoadLibrary"
13717 lt_cv_dlopen="dlopen"
13722 # if libdl is installed we need to link against it
13723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13724 $as_echo_n "checking for dlopen in -ldl... " >&6; }
13725 if ${ac_cv_lib_dl_dlopen+:} false; then :
13726 $as_echo_n "(cached) " >&6
13728 ac_check_lib_save_LIBS=$LIBS
13730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13731 /* end confdefs.h. */
13733 /* Override any GCC internal prototype to avoid an error.
13734 Use char because int might match the return type of a GCC
13735 builtin and then its argument prototype would still apply. */
13748 if ac_fn_c_try_link "$LINENO"; then :
13749 ac_cv_lib_dl_dlopen=yes
13751 ac_cv_lib_dl_dlopen=no
13753 rm -f core conftest.err conftest.$ac_objext \
13754 conftest$ac_exeext conftest.$ac_ext
13755 LIBS=$ac_check_lib_save_LIBS
13757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13758 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13759 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
13760 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13763 lt_cv_dlopen="dyld"
13765 lt_cv_dlopen_self=yes
13772 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
13773 if test "x$ac_cv_func_shl_load" = xyes; then :
13774 lt_cv_dlopen="shl_load"
13776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
13777 $as_echo_n "checking for shl_load in -ldld... " >&6; }
13778 if ${ac_cv_lib_dld_shl_load+:} false; then :
13779 $as_echo_n "(cached) " >&6
13781 ac_check_lib_save_LIBS=$LIBS
13783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13784 /* end confdefs.h. */
13786 /* Override any GCC internal prototype to avoid an error.
13787 Use char because int might match the return type of a GCC
13788 builtin and then its argument prototype would still apply. */
13796 return shl_load ();
13801 if ac_fn_c_try_link "$LINENO"; then :
13802 ac_cv_lib_dld_shl_load=yes
13804 ac_cv_lib_dld_shl_load=no
13806 rm -f core conftest.err conftest.$ac_objext \
13807 conftest$ac_exeext conftest.$ac_ext
13808 LIBS=$ac_check_lib_save_LIBS
13810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
13811 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
13812 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
13813 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
13815 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
13816 if test "x$ac_cv_func_dlopen" = xyes; then :
13817 lt_cv_dlopen="dlopen"
13819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13820 $as_echo_n "checking for dlopen in -ldl... " >&6; }
13821 if ${ac_cv_lib_dl_dlopen+:} false; then :
13822 $as_echo_n "(cached) " >&6
13824 ac_check_lib_save_LIBS=$LIBS
13826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13827 /* end confdefs.h. */
13829 /* Override any GCC internal prototype to avoid an error.
13830 Use char because int might match the return type of a GCC
13831 builtin and then its argument prototype would still apply. */
13844 if ac_fn_c_try_link "$LINENO"; then :
13845 ac_cv_lib_dl_dlopen=yes
13847 ac_cv_lib_dl_dlopen=no
13849 rm -f core conftest.err conftest.$ac_objext \
13850 conftest$ac_exeext conftest.$ac_ext
13851 LIBS=$ac_check_lib_save_LIBS
13853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13854 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13855 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
13856 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
13859 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
13860 if ${ac_cv_lib_svld_dlopen+:} false; then :
13861 $as_echo_n "(cached) " >&6
13863 ac_check_lib_save_LIBS=$LIBS
13864 LIBS="-lsvld $LIBS"
13865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13866 /* end confdefs.h. */
13868 /* Override any GCC internal prototype to avoid an error.
13869 Use char because int might match the return type of a GCC
13870 builtin and then its argument prototype would still apply. */
13883 if ac_fn_c_try_link "$LINENO"; then :
13884 ac_cv_lib_svld_dlopen=yes
13886 ac_cv_lib_svld_dlopen=no
13888 rm -f core conftest.err conftest.$ac_objext \
13889 conftest$ac_exeext conftest.$ac_ext
13890 LIBS=$ac_check_lib_save_LIBS
13892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
13893 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
13894 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
13895 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
13897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
13898 $as_echo_n "checking for dld_link in -ldld... " >&6; }
13899 if ${ac_cv_lib_dld_dld_link+:} false; then :
13900 $as_echo_n "(cached) " >&6
13902 ac_check_lib_save_LIBS=$LIBS
13904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13905 /* end confdefs.h. */
13907 /* Override any GCC internal prototype to avoid an error.
13908 Use char because int might match the return type of a GCC
13909 builtin and then its argument prototype would still apply. */
13917 return dld_link ();
13922 if ac_fn_c_try_link "$LINENO"; then :
13923 ac_cv_lib_dld_dld_link=yes
13925 ac_cv_lib_dld_dld_link=no
13927 rm -f core conftest.err conftest.$ac_objext \
13928 conftest$ac_exeext conftest.$ac_ext
13929 LIBS=$ac_check_lib_save_LIBS
13931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
13932 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
13933 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
13934 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
13955 if test "x$lt_cv_dlopen" != xno; then
13961 case $lt_cv_dlopen in
13963 save_CPPFLAGS="$CPPFLAGS"
13964 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13966 save_LDFLAGS="$LDFLAGS"
13967 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13970 LIBS="$lt_cv_dlopen_libs $LIBS"
13972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
13973 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
13974 if ${lt_cv_dlopen_self+:} false; then :
13975 $as_echo_n "(cached) " >&6
13977 if test "$cross_compiling" = yes; then :
13978 lt_cv_dlopen_self=cross
13980 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13981 lt_status=$lt_dlunknown
13982 cat > conftest.$ac_ext <<_LT_EOF
13983 #line $LINENO "configure"
13984 #include "confdefs.h"
13993 # define LT_DLGLOBAL RTLD_GLOBAL
13996 # define LT_DLGLOBAL DL_GLOBAL
13998 # define LT_DLGLOBAL 0
14002 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14003 find out it does not work in some platform. */
14004 #ifndef LT_DLLAZY_OR_NOW
14006 # define LT_DLLAZY_OR_NOW RTLD_LAZY
14009 # define LT_DLLAZY_OR_NOW DL_LAZY
14012 # define LT_DLLAZY_OR_NOW RTLD_NOW
14015 # define LT_DLLAZY_OR_NOW DL_NOW
14017 # define LT_DLLAZY_OR_NOW 0
14024 /* When -fvisbility=hidden is used, assume the code has been annotated
14025 correspondingly for the symbols needed. */
14026 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
14027 int fnord () __attribute__((visibility("default")));
14030 int fnord () { return 42; }
14033 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14034 int status = $lt_dlunknown;
14038 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14041 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14042 else puts (dlerror ());
14044 /* dlclose (self); */
14052 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14053 (eval $ac_link) 2>&5
14055 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14056 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
14057 (./conftest; exit; ) >&5 2>/dev/null
14059 case x$lt_status in
14060 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
14061 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
14062 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
14065 # compilation failed
14066 lt_cv_dlopen_self=no
14073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
14074 $as_echo "$lt_cv_dlopen_self" >&6; }
14076 if test "x$lt_cv_dlopen_self" = xyes; then
14077 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
14078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
14079 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
14080 if ${lt_cv_dlopen_self_static+:} false; then :
14081 $as_echo_n "(cached) " >&6
14083 if test "$cross_compiling" = yes; then :
14084 lt_cv_dlopen_self_static=cross
14086 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14087 lt_status=$lt_dlunknown
14088 cat > conftest.$ac_ext <<_LT_EOF
14089 #line $LINENO "configure"
14090 #include "confdefs.h"
14099 # define LT_DLGLOBAL RTLD_GLOBAL
14102 # define LT_DLGLOBAL DL_GLOBAL
14104 # define LT_DLGLOBAL 0
14108 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14109 find out it does not work in some platform. */
14110 #ifndef LT_DLLAZY_OR_NOW
14112 # define LT_DLLAZY_OR_NOW RTLD_LAZY
14115 # define LT_DLLAZY_OR_NOW DL_LAZY
14118 # define LT_DLLAZY_OR_NOW RTLD_NOW
14121 # define LT_DLLAZY_OR_NOW DL_NOW
14123 # define LT_DLLAZY_OR_NOW 0
14130 /* When -fvisbility=hidden is used, assume the code has been annotated
14131 correspondingly for the symbols needed. */
14132 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
14133 int fnord () __attribute__((visibility("default")));
14136 int fnord () { return 42; }
14139 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14140 int status = $lt_dlunknown;
14144 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14147 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14148 else puts (dlerror ());
14150 /* dlclose (self); */
14158 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14159 (eval $ac_link) 2>&5
14161 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14162 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
14163 (./conftest; exit; ) >&5 2>/dev/null
14165 case x$lt_status in
14166 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
14167 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
14168 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
14171 # compilation failed
14172 lt_cv_dlopen_self_static=no
14179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
14180 $as_echo "$lt_cv_dlopen_self_static" >&6; }
14183 CPPFLAGS="$save_CPPFLAGS"
14184 LDFLAGS="$save_LDFLAGS"
14189 case $lt_cv_dlopen_self in
14190 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
14191 *) enable_dlopen_self=unknown ;;
14194 case $lt_cv_dlopen_self_static in
14195 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
14196 *) enable_dlopen_self_static=unknown ;;
14218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
14219 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
14220 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
14221 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14222 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14224 $as_echo "yes" >&6; }
14226 # FIXME - insert some real tests, host_os isn't really good enough
14229 if test -n "$STRIP" ; then
14230 striplib="$STRIP -x"
14231 old_striplib="$STRIP -S"
14232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14233 $as_echo "yes" >&6; }
14235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14236 $as_echo "no" >&6; }
14240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14241 $as_echo "no" >&6; }
14257 # Report which library types will actually be built
14258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
14259 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
14260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
14261 $as_echo "$can_build_shared" >&6; }
14263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
14264 $as_echo_n "checking whether to build shared libraries... " >&6; }
14265 test "$can_build_shared" = "no" && enable_shared=no
14267 # On AIX, shared libraries and static libraries use the same namespace, and
14268 # are all built from PIC.
14271 test "$enable_shared" = yes && enable_static=no
14272 if test -n "$RANLIB"; then
14273 archive_cmds="$archive_cmds~\$RANLIB \$lib"
14274 postinstall_cmds='$RANLIB $lib'
14279 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14280 test "$enable_shared" = yes && enable_static=no
14284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
14285 $as_echo "$enable_shared" >&6; }
14287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
14288 $as_echo_n "checking whether to build static libraries... " >&6; }
14289 # Make sure either enable_shared or enable_static is yes.
14290 test "$enable_shared" = yes || enable_static=yes
14291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
14292 $as_echo "$enable_static" >&6; }
14299 ac_cpp='$CPP $CPPFLAGS'
14300 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14301 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14302 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14306 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
14307 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
14308 (test "X$CXX" != "Xg++"))) ; then
14310 ac_cpp='$CXXCPP $CPPFLAGS'
14311 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14312 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14313 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
14315 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
14316 if test -z "$CXXCPP"; then
14317 if ${ac_cv_prog_CXXCPP+:} false; then :
14318 $as_echo_n "(cached) " >&6
14320 # Double quotes because CXXCPP needs to be expanded
14321 for CXXCPP in "$CXX -E" "/lib/cpp"
14323 ac_preproc_ok=false
14324 for ac_cxx_preproc_warn_flag in '' yes
14326 # Use a header file that comes with gcc, so configuring glibc
14327 # with a fresh cross-compiler works.
14328 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14329 # <limits.h> exists even on freestanding compilers.
14330 # On the NeXT, cc -E runs the code through the compiler's parser,
14331 # not just through cpp. "Syntax error" is here to catch this case.
14332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14333 /* end confdefs.h. */
14335 # include <limits.h>
14337 # include <assert.h>
14341 if ac_fn_cxx_try_cpp "$LINENO"; then :
14344 # Broken: fails on valid input.
14347 rm -f conftest.err conftest.i conftest.$ac_ext
14349 # OK, works on sane cases. Now check whether nonexistent headers
14350 # can be detected and how.
14351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14352 /* end confdefs.h. */
14353 #include <ac_nonexistent.h>
14355 if ac_fn_cxx_try_cpp "$LINENO"; then :
14356 # Broken: success on invalid input.
14359 # Passes both tests.
14363 rm -f conftest.err conftest.i conftest.$ac_ext
14366 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
14367 rm -f conftest.i conftest.err conftest.$ac_ext
14368 if $ac_preproc_ok; then :
14373 ac_cv_prog_CXXCPP=$CXXCPP
14376 CXXCPP=$ac_cv_prog_CXXCPP
14378 ac_cv_prog_CXXCPP=$CXXCPP
14380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
14381 $as_echo "$CXXCPP" >&6; }
14382 ac_preproc_ok=false
14383 for ac_cxx_preproc_warn_flag in '' yes
14385 # Use a header file that comes with gcc, so configuring glibc
14386 # with a fresh cross-compiler works.
14387 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14388 # <limits.h> exists even on freestanding compilers.
14389 # On the NeXT, cc -E runs the code through the compiler's parser,
14390 # not just through cpp. "Syntax error" is here to catch this case.
14391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14392 /* end confdefs.h. */
14394 # include <limits.h>
14396 # include <assert.h>
14400 if ac_fn_cxx_try_cpp "$LINENO"; then :
14403 # Broken: fails on valid input.
14406 rm -f conftest.err conftest.i conftest.$ac_ext
14408 # OK, works on sane cases. Now check whether nonexistent headers
14409 # can be detected and how.
14410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14411 /* end confdefs.h. */
14412 #include <ac_nonexistent.h>
14414 if ac_fn_cxx_try_cpp "$LINENO"; then :
14415 # Broken: success on invalid input.
14418 # Passes both tests.
14422 rm -f conftest.err conftest.i conftest.$ac_ext
14425 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
14426 rm -f conftest.i conftest.err conftest.$ac_ext
14427 if $ac_preproc_ok; then :
14430 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14431 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14432 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
14433 See \`config.log' for more details" "$LINENO" 5; }
14437 ac_cpp='$CPP $CPPFLAGS'
14438 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14439 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14440 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14443 _lt_caught_CXX_error=yes
14447 ac_cpp='$CXXCPP $CPPFLAGS'
14448 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14449 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14450 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14452 archive_cmds_need_lc_CXX=no
14453 allow_undefined_flag_CXX=
14454 always_export_symbols_CXX=no
14455 archive_expsym_cmds_CXX=
14456 compiler_needs_object_CXX=no
14457 export_dynamic_flag_spec_CXX=
14458 hardcode_direct_CXX=no
14459 hardcode_direct_absolute_CXX=no
14460 hardcode_libdir_flag_spec_CXX=
14461 hardcode_libdir_separator_CXX=
14462 hardcode_minus_L_CXX=no
14463 hardcode_shlibpath_var_CXX=unsupported
14464 hardcode_automatic_CXX=no
14465 inherit_rpath_CXX=no
14467 module_expsym_cmds_CXX=
14468 link_all_deplibs_CXX=unknown
14469 old_archive_cmds_CXX=$old_archive_cmds
14470 reload_flag_CXX=$reload_flag
14471 reload_cmds_CXX=$reload_cmds
14472 no_undefined_flag_CXX=
14473 whole_archive_flag_spec_CXX=
14474 enable_shared_with_static_runtimes_CXX=no
14476 # Source file extension for C++ test sources.
14479 # Object file extension for compiled C++ test sources.
14483 # No sense in running all these tests if we already determined that
14484 # the CXX compiler isn't working. Some variables (like enable_shared)
14485 # are currently assumed to apply to all compilers on this platform,
14486 # and will be corrupted by setting them based on a non-working compiler.
14487 if test "$_lt_caught_CXX_error" != yes; then
14488 # Code to be used in simple compile tests
14489 lt_simple_compile_test_code="int some_variable = 0;"
14491 # Code to be used in simple link tests
14492 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
14494 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14501 # If no C compiler was specified, use CC.
14504 # If no C compiler flags were specified, use CFLAGS.
14505 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14507 # Allow CC to be a program name with arguments.
14511 # save warnings/boilerplate of simple test code
14512 ac_outfile=conftest.$ac_objext
14513 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14514 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14515 _lt_compiler_boilerplate=`cat conftest.err`
14518 ac_outfile=conftest.$ac_objext
14519 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14520 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14521 _lt_linker_boilerplate=`cat conftest.err`
14525 # Allow CC to be a program name with arguments.
14527 lt_save_CFLAGS=$CFLAGS
14531 lt_save_with_gnu_ld=$with_gnu_ld
14532 lt_save_path_LD=$lt_cv_path_LD
14533 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
14534 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
14536 $as_unset lt_cv_prog_gnu_ld
14538 if test -n "${lt_cv_path_LDCXX+set}"; then
14539 lt_cv_path_LD=$lt_cv_path_LDCXX
14541 $as_unset lt_cv_path_LD
14543 test -z "${LDCXX+set}" || LD=$LDCXX
14548 for cc_temp in $compiler""; do
14550 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14551 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14556 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
14559 if test -n "$compiler"; then
14560 # We don't want -fno-exception when compiling C++ code, so set the
14561 # no_builtin_flag separately
14562 if test "$GXX" = yes; then
14563 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
14565 lt_prog_compiler_no_builtin_flag_CXX=
14568 if test "$GXX" = yes; then
14569 # Set up default GNU C++ configuration
14573 # Check whether --with-gnu-ld was given.
14574 if test "${with_gnu_ld+set}" = set; then :
14575 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
14581 if test "$GCC" = yes; then
14582 # Check if gcc -print-prog-name=ld gives a path.
14583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
14584 $as_echo_n "checking for ld used by $CC... " >&6; }
14587 # gcc leaves a trailing carriage return which upsets mingw
14588 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
14590 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
14593 # Accept absolute paths.
14595 re_direlt='/[^/][^/]*/\.\./'
14596 # Canonicalize the pathname of ld
14597 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
14598 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
14599 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
14601 test -z "$LD" && LD="$ac_prog"
14604 # If it fails, then pretend we aren't using GCC.
14608 # If it is relative, then search for the first ld in PATH.
14609 with_gnu_ld=unknown
14612 elif test "$with_gnu_ld" = yes; then
14613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
14614 $as_echo_n "checking for GNU ld... " >&6; }
14616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
14617 $as_echo_n "checking for non-GNU ld... " >&6; }
14619 if ${lt_cv_path_LD+:} false; then :
14620 $as_echo_n "(cached) " >&6
14622 if test -z "$LD"; then
14623 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14624 for ac_dir in $PATH; do
14626 test -z "$ac_dir" && ac_dir=.
14627 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
14628 lt_cv_path_LD="$ac_dir/$ac_prog"
14629 # Check to see if the program is GNU ld. I'd rather use --version,
14630 # but apparently some variants of GNU ld only accept -v.
14631 # Break only if it was the GNU/non-GNU ld that we prefer.
14632 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
14633 *GNU* | *'with BFD'*)
14634 test "$with_gnu_ld" != no && break
14637 test "$with_gnu_ld" != yes && break
14644 lt_cv_path_LD="$LD" # Let the user override the test with a path.
14648 LD="$lt_cv_path_LD"
14649 if test -n "$LD"; then
14650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
14651 $as_echo "$LD" >&6; }
14653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14654 $as_echo "no" >&6; }
14656 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
14657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
14658 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
14659 if ${lt_cv_prog_gnu_ld+:} false; then :
14660 $as_echo_n "(cached) " >&6
14662 # I'd rather use --version here, but apparently some GNU lds only accept -v.
14663 case `$LD -v 2>&1 </dev/null` in
14664 *GNU* | *'with BFD'*)
14665 lt_cv_prog_gnu_ld=yes
14668 lt_cv_prog_gnu_ld=no
14672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
14673 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
14674 with_gnu_ld=$lt_cv_prog_gnu_ld
14682 # Check if GNU C++ uses GNU ld as the underlying linker, since the
14683 # archiving commands below assume that GNU ld is being used.
14684 if test "$with_gnu_ld" = yes; then
14685 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14686 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'
14688 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14689 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14691 # If archive_cmds runs LD, not CC, wlarc should be empty
14692 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
14693 # investigate it a little bit more. (MM)
14696 # ancient GNU ld didn't support --whole-archive et. al.
14697 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
14698 $GREP 'no-whole-archive' > /dev/null; then
14699 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14701 whole_archive_flag_spec_CXX=
14707 # A generic and very simple default shared library creation
14708 # command for GNU C++ for the case where it uses the native
14709 # linker, instead of GNU ld. If possible, this setting should
14710 # overridden to take advantage of the native linker features on
14711 # the platform it is being used on.
14712 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14715 # Commands to make compiler produce verbose output that lists
14716 # what "hidden" libraries, object files and flags are used when
14717 # linking a shared library.
14718 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14726 # PORTME: fill in a description of your system's C++ link characteristics
14727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14728 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14732 # FIXME: insert proper C++ library support
14736 if test "$host_cpu" = ia64; then
14737 # On IA64, the linker does run time linking by default, so we don't
14738 # have to do anything special.
14739 aix_use_runtimelinking=no
14740 exp_sym_flag='-Bexport'
14743 aix_use_runtimelinking=no
14745 # Test if we are trying to use run time linking or normal
14746 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14747 # need to do runtime linking.
14748 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
14749 for ld_flag in $LDFLAGS; do
14752 aix_use_runtimelinking=yes
14760 exp_sym_flag='-bexport'
14761 no_entry_flag='-bnoentry'
14764 # When large executables or shared objects are built, AIX ld can
14765 # have problems creating the table of contents. If linking a library
14766 # or program results in "error TOC overflow" add -mminimal-toc to
14767 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14768 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14770 archive_cmds_CXX=''
14771 hardcode_direct_CXX=yes
14772 hardcode_direct_absolute_CXX=yes
14773 hardcode_libdir_separator_CXX=':'
14774 link_all_deplibs_CXX=yes
14775 file_list_spec_CXX='${wl}-f,'
14777 if test "$GXX" = yes; then
14778 case $host_os in aix4.[012]|aix4.[012].*)
14779 # We only want to do this on AIX 4.2 and lower, the check
14780 # below for broken collect2 doesn't work under 4.3+
14781 collect2name=`${CC} -print-prog-name=collect2`
14782 if test -f "$collect2name" &&
14783 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
14785 # We have reworked collect2
14788 # We have old collect2
14789 hardcode_direct_CXX=unsupported
14790 # It fails to find uninstalled libraries when the uninstalled
14791 # path is not listed in the libpath. Setting hardcode_minus_L
14792 # to unsupported forces relinking
14793 hardcode_minus_L_CXX=yes
14794 hardcode_libdir_flag_spec_CXX='-L$libdir'
14795 hardcode_libdir_separator_CXX=
14798 shared_flag='-shared'
14799 if test "$aix_use_runtimelinking" = yes; then
14800 shared_flag="$shared_flag "'${wl}-G'
14804 if test "$host_cpu" = ia64; then
14805 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14806 # chokes on -Wl,-G. The following line is correct:
14809 if test "$aix_use_runtimelinking" = yes; then
14810 shared_flag='${wl}-G'
14812 shared_flag='${wl}-bM:SRE'
14817 export_dynamic_flag_spec_CXX='${wl}-bexpall'
14818 # It seems that -bexpall does not export symbols beginning with
14819 # underscore (_), so it is better to generate a list of symbols to
14821 always_export_symbols_CXX=yes
14822 if test "$aix_use_runtimelinking" = yes; then
14823 # Warning - without using the other runtime loading flags (-brtl),
14824 # -berok will link without error, but may produce a broken library.
14825 allow_undefined_flag_CXX='-berok'
14826 # Determine the default libpath from the value encoded in an empty
14828 if test "${lt_cv_aix_libpath+set}" = set; then
14829 aix_libpath=$lt_cv_aix_libpath
14831 if ${lt_cv_aix_libpath__CXX+:} false; then :
14832 $as_echo_n "(cached) " >&6
14834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14835 /* end confdefs.h. */
14845 if ac_fn_cxx_try_link "$LINENO"; then :
14847 lt_aix_libpath_sed='
14848 /Import File Strings/,/^$/ {
14850 s/^0 *\([^ ]*\) *$/\1/
14854 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14855 # Check for a 64-bit object if we didn't find anything.
14856 if test -z "$lt_cv_aix_libpath__CXX"; then
14857 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14860 rm -f core conftest.err conftest.$ac_objext \
14861 conftest$ac_exeext conftest.$ac_ext
14862 if test -z "$lt_cv_aix_libpath__CXX"; then
14863 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
14868 aix_libpath=$lt_cv_aix_libpath__CXX
14871 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
14873 archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
14875 if test "$host_cpu" = ia64; then
14876 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
14877 allow_undefined_flag_CXX="-z nodefs"
14878 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"
14880 # Determine the default libpath from the value encoded in an
14881 # empty executable.
14882 if test "${lt_cv_aix_libpath+set}" = set; then
14883 aix_libpath=$lt_cv_aix_libpath
14885 if ${lt_cv_aix_libpath__CXX+:} false; then :
14886 $as_echo_n "(cached) " >&6
14888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14889 /* end confdefs.h. */
14899 if ac_fn_cxx_try_link "$LINENO"; then :
14901 lt_aix_libpath_sed='
14902 /Import File Strings/,/^$/ {
14904 s/^0 *\([^ ]*\) *$/\1/
14908 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14909 # Check for a 64-bit object if we didn't find anything.
14910 if test -z "$lt_cv_aix_libpath__CXX"; then
14911 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14914 rm -f core conftest.err conftest.$ac_objext \
14915 conftest$ac_exeext conftest.$ac_ext
14916 if test -z "$lt_cv_aix_libpath__CXX"; then
14917 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
14922 aix_libpath=$lt_cv_aix_libpath__CXX
14925 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
14926 # Warning - without using the other run time loading flags,
14927 # -berok will link without error, but may produce a broken library.
14928 no_undefined_flag_CXX=' ${wl}-bernotok'
14929 allow_undefined_flag_CXX=' ${wl}-berok'
14930 if test "$with_gnu_ld" = yes; then
14931 # We only use this code for GNU lds that support --whole-archive.
14932 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14934 # Exported symbols can be pulled into shared objects from archives
14935 whole_archive_flag_spec_CXX='$convenience'
14937 archive_cmds_need_lc_CXX=yes
14938 # This is similar to how AIX traditionally builds its shared
14940 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
14946 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14947 allow_undefined_flag_CXX=unsupported
14948 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14949 # support --undefined. This deserves some investigation. FIXME
14950 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14957 case $cc_basename in
14959 # FIXME: insert proper C++ library support
14965 cygwin* | mingw* | pw32* | cegcc*)
14966 case $GXX,$cc_basename in
14969 # hardcode_libdir_flag_spec is actually meaningless, as there is
14970 # no search path for DLLs.
14971 hardcode_libdir_flag_spec_CXX=' '
14972 allow_undefined_flag_CXX=unsupported
14973 always_export_symbols_CXX=yes
14974 file_list_spec_CXX='@'
14975 # Tell ltmain to make .lib files, not .a files.
14977 # Tell ltmain to make .dll files, not .so files.
14979 # FIXME: Setting linknames here is a bad hack.
14980 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
14981 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14982 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
14984 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
14986 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
14988 # The linker will not automatically build a static lib if we build a DLL.
14989 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
14990 enable_shared_with_static_runtimes_CXX=yes
14992 old_postinstall_cmds_CXX='chmod 644 $oldlib'
14993 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
14994 lt_tool_outputfile="@TOOL_OUTPUT@"~
14995 case $lt_outputfile in
14998 lt_outputfile="$lt_outputfile.exe"
14999 lt_tool_outputfile="$lt_tool_outputfile.exe"
15002 func_to_tool_file "$lt_outputfile"~
15003 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
15004 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
15005 $RM "$lt_outputfile.manifest";
15010 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
15011 # as there is no search path for DLLs.
15012 hardcode_libdir_flag_spec_CXX='-L$libdir'
15013 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
15014 allow_undefined_flag_CXX=unsupported
15015 always_export_symbols_CXX=no
15016 enable_shared_with_static_runtimes_CXX=yes
15018 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
15019 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'
15020 # If the export-symbols file already is a .def file (1st line
15021 # is EXPORTS), use it as is; otherwise, prepend...
15022 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15023 cp $export_symbols $output_objdir/$soname.def;
15025 echo EXPORTS > $output_objdir/$soname.def;
15026 cat $export_symbols >> $output_objdir/$soname.def;
15028 $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'
15035 darwin* | rhapsody*)
15038 archive_cmds_need_lc_CXX=no
15039 hardcode_direct_CXX=no
15040 hardcode_automatic_CXX=yes
15041 hardcode_shlibpath_var_CXX=unsupported
15042 if test "$lt_cv_ld_force_load" = "yes"; then
15043 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\"`'
15046 whole_archive_flag_spec_CXX=''
15048 link_all_deplibs_CXX=yes
15049 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
15050 case $cc_basename in
15051 ifort*) _lt_dar_can_shared=yes ;;
15052 *) _lt_dar_can_shared=$GCC ;;
15054 if test "$_lt_dar_can_shared" = "yes"; then
15055 output_verbose_link_cmd=func_echo_all
15056 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}"
15057 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15058 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}"
15059 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}"
15060 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
15061 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}"
15062 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}"
15072 case $cc_basename in
15074 # FIXME: insert proper C++ library support
15078 # Green Hills C++ Compiler
15079 # FIXME: insert proper C++ library support
15083 # FIXME: insert proper C++ library support
15090 # C++ shared libraries reported to be fairly broken before
15096 archive_cmds_need_lc_CXX=no
15099 freebsd* | dragonfly*)
15100 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
15109 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15110 link_all_deplibs_CXX=yes
15114 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15115 hardcode_libdir_separator_CXX=:
15116 export_dynamic_flag_spec_CXX='${wl}-E'
15117 hardcode_direct_CXX=yes
15118 hardcode_minus_L_CXX=yes # Not in the search PATH,
15119 # but as the default
15120 # location of the library.
15122 case $cc_basename in
15124 # FIXME: insert proper C++ library support
15128 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 $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
15129 # Commands to make compiler produce verbose output that lists
15130 # what "hidden" libraries, object files and flags are used when
15131 # linking a shared library.
15133 # There doesn't appear to be a way to prevent this compiler from
15134 # explicitly linking system object files so we need to strip them
15135 # from the output so that they don't get included in the library
15137 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"'
15140 if test "$GXX" = yes; then
15141 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 $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
15143 # FIXME: insert proper C++ library support
15151 if test $with_gnu_ld = no; then
15152 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15153 hardcode_libdir_separator_CXX=:
15159 export_dynamic_flag_spec_CXX='${wl}-E'
15165 hardcode_direct_CXX=no
15166 hardcode_shlibpath_var_CXX=no
15169 hardcode_direct_CXX=yes
15170 hardcode_direct_absolute_CXX=yes
15171 hardcode_minus_L_CXX=yes # Not in the search PATH,
15172 # but as the default
15173 # location of the library.
15177 case $cc_basename in
15179 # FIXME: insert proper C++ library support
15185 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15188 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15191 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15194 # Commands to make compiler produce verbose output that lists
15195 # what "hidden" libraries, object files and flags are used when
15196 # linking a shared library.
15198 # There doesn't appear to be a way to prevent this compiler from
15199 # explicitly linking system object files so we need to strip them
15200 # from the output so that they don't get included in the library
15202 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"'
15205 if test "$GXX" = yes; then
15206 if test $with_gnu_ld = no; then
15209 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15212 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15215 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'
15220 # FIXME: insert proper C++ library support
15228 hardcode_direct_CXX=no
15229 hardcode_shlibpath_var_CXX=no
15230 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15231 export_dynamic_flag_spec_CXX='${wl}-E'
15232 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15233 # Instead, shared libraries are loaded at an image base (0x10000000 by
15234 # default) and relocated if they conflict, which is a slow very memory
15235 # consuming and fragmenting process. To avoid this, we pick a random,
15236 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15237 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15238 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'
15239 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'
15242 case $cc_basename in
15245 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'
15247 # Archives containing C++ object files must be created using
15248 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
15249 # necessary to make sure instantiated templates are included
15251 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
15254 if test "$GXX" = yes; then
15255 if test "$with_gnu_ld" = no; then
15256 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'
15258 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'
15261 link_all_deplibs_CXX=yes
15264 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15265 hardcode_libdir_separator_CXX=:
15266 inherit_rpath_CXX=yes
15269 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15270 case $cc_basename in
15272 # Kuck and Associates, Inc. (KAI) C++ Compiler
15274 # KCC will only create a shared library if the output file
15275 # ends with ".so" (or ".sl" for HP-UX), so rename the library
15276 # to its proper name (with version) after linking.
15277 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'
15278 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'
15279 # Commands to make compiler produce verbose output that lists
15280 # what "hidden" libraries, object files and flags are used when
15281 # linking a shared library.
15283 # There doesn't appear to be a way to prevent this compiler from
15284 # explicitly linking system object files so we need to strip them
15285 # from the output so that they don't get included in the library
15287 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"'
15289 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15290 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15292 # Archives containing C++ object files must be created using
15293 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
15294 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
15299 # version 8.0 and above of icpc choke on multiply defined symbols
15300 # if we add $predep_objects and $postdep_objects, however 7.1 and
15301 # earlier do not add the objects themselves.
15302 case `$CC -V 2>&1` in
15304 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15305 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'
15307 *) # Version 8.0 or newer
15310 ia64*) tmp_idyn=' -i_dynamic';;
15312 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15313 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'
15316 archive_cmds_need_lc_CXX=no
15317 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15318 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15319 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
15322 # Portland Group C++ compiler
15324 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
15325 prelink_cmds_CXX='tpldir=Template.dir~
15327 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
15328 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
15329 old_archive_cmds_CXX='tpldir=Template.dir~
15331 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
15332 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
15334 archive_cmds_CXX='tpldir=Template.dir~
15336 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
15337 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
15338 archive_expsym_cmds_CXX='tpldir=Template.dir~
15340 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
15341 $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'
15343 *) # Version 6 and above use weak symbols
15344 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
15345 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'
15349 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
15350 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15351 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'
15355 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15356 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'
15358 runpath_var=LD_RUN_PATH
15359 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
15360 hardcode_libdir_separator_CXX=:
15362 # Commands to make compiler produce verbose output that lists
15363 # what "hidden" libraries, object files and flags are used when
15364 # linking a shared library.
15366 # There doesn't appear to be a way to prevent this compiler from
15367 # explicitly linking system object files so we need to strip them
15368 # from the output so that they don't get included in the library
15370 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'
15372 xl* | mpixl* | bgxl*)
15373 # IBM XL 8.0 on PPC, with GNU ld
15374 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15375 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15376 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15377 if test "x$supports_anon_versioning" = xyes; then
15378 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
15379 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15380 echo "local: *; };" >> $output_objdir/$libname.ver~
15381 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15385 case `$CC -V 2>&1 | sed 5q` in
15388 no_undefined_flag_CXX=' -zdefs'
15389 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15390 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'
15391 hardcode_libdir_flag_spec_CXX='-R$libdir'
15392 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'
15393 compiler_needs_object_CXX=yes
15395 # Not sure whether something based on
15396 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
15398 output_verbose_link_cmd='func_echo_all'
15400 # Archives containing C++ object files must be created using
15401 # "CC -xar", where "CC" is the Sun C++ compiler. This is
15402 # necessary to make sure instantiated templates are included
15404 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
15412 # FIXME: insert proper C++ library support
15417 # FIXME: insert proper C++ library support
15422 case $cc_basename in
15424 # FIXME: insert proper C++ library support
15428 # FIXME: insert proper C++ library support
15435 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15436 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
15438 hardcode_libdir_flag_spec_CXX='-R$libdir'
15439 hardcode_direct_CXX=yes
15440 hardcode_shlibpath_var_CXX=no
15442 # Workaround some broken pre-1.5 toolchains
15443 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
15451 # C++ shared libraries are fairly broken
15456 if test -f /usr/libexec/ld.so; then
15457 hardcode_direct_CXX=yes
15458 hardcode_shlibpath_var_CXX=no
15459 hardcode_direct_absolute_CXX=yes
15460 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15461 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15462 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15463 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
15464 export_dynamic_flag_spec_CXX='${wl}-E'
15465 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15467 output_verbose_link_cmd=func_echo_all
15473 osf3* | osf4* | osf5*)
15474 case $cc_basename in
15476 # Kuck and Associates, Inc. (KAI) C++ Compiler
15478 # KCC will only create a shared library if the output file
15479 # ends with ".so" (or ".sl" for HP-UX), so rename the library
15480 # to its proper name (with version) after linking.
15481 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'
15483 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15484 hardcode_libdir_separator_CXX=:
15486 # Archives containing C++ object files must be created using
15487 # the KAI C++ compiler.
15489 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
15490 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
15494 # Rational C++ 2.4.1
15495 # FIXME: insert proper C++ library support
15501 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
15502 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'
15503 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15506 allow_undefined_flag_CXX=' -expect_unresolved \*'
15507 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'
15508 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
15509 echo "-hidden">> $lib.exp~
15510 $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~
15512 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
15516 hardcode_libdir_separator_CXX=:
15518 # Commands to make compiler produce verbose output that lists
15519 # what "hidden" libraries, object files and flags are used when
15520 # linking a shared library.
15522 # There doesn't appear to be a way to prevent this compiler from
15523 # explicitly linking system object files so we need to strip them
15524 # from the output so that they don't get included in the library
15526 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"'
15529 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
15530 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
15533 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'
15536 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'
15540 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15541 hardcode_libdir_separator_CXX=:
15543 # Commands to make compiler produce verbose output that lists
15544 # what "hidden" libraries, object files and flags are used when
15545 # linking a shared library.
15546 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
15549 # FIXME: insert proper C++ library support
15557 # FIXME: insert proper C++ library support
15562 case $cc_basename in
15565 # FIXME: insert proper C++ library support
15570 # FIXME: insert proper C++ library support
15574 # FIXME: insert proper C++ library support
15581 case $cc_basename in
15583 # Sun C++ 4.2, 5.x and Centerline C++
15584 archive_cmds_need_lc_CXX=yes
15585 no_undefined_flag_CXX=' -zdefs'
15586 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15587 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15588 $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'
15590 hardcode_libdir_flag_spec_CXX='-R$libdir'
15591 hardcode_shlibpath_var_CXX=no
15593 solaris2.[0-5] | solaris2.[0-5].*) ;;
15595 # The compiler driver will combine and reorder linker options,
15596 # but understands `-z linker_flag'.
15597 # Supported since Solaris 2.6 (maybe 2.5.1?)
15598 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
15601 link_all_deplibs_CXX=yes
15603 output_verbose_link_cmd='func_echo_all'
15605 # Archives containing C++ object files must be created using
15606 # "CC -xar", where "CC" is the Sun C++ compiler. This is
15607 # necessary to make sure instantiated templates are included
15609 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
15612 # Green Hills C++ Compiler
15613 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
15615 # The C++ compiler must be used to create the archive.
15616 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
15619 # GNU C++ compiler with Solaris linker
15620 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
15621 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
15622 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
15623 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
15624 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15625 $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
15627 # Commands to make compiler produce verbose output that lists
15628 # what "hidden" libraries, object files and flags are used when
15629 # linking a shared library.
15630 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
15632 # g++ 2.7 appears to require `-G' NOT `-shared' on this
15634 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
15635 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15636 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
15638 # Commands to make compiler produce verbose output that lists
15639 # what "hidden" libraries, object files and flags are used when
15640 # linking a shared library.
15641 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
15644 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
15646 solaris2.[0-5] | solaris2.[0-5].*) ;;
15648 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15656 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15657 no_undefined_flag_CXX='${wl}-z,text'
15658 archive_cmds_need_lc_CXX=no
15659 hardcode_shlibpath_var_CXX=no
15660 runpath_var='LD_RUN_PATH'
15662 case $cc_basename in
15664 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15665 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15668 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15669 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15674 sysv5* | sco3.2v5* | sco5v6*)
15675 # Note: We can NOT use -z defs as we might desire, because we do not
15676 # link with -lc, and that would cause any symbols used from libc to
15677 # always be unresolved, which means just about no library would
15678 # ever link correctly. If we're not using GNU ld we use -z text
15679 # though, which does catch some bad symbols but isn't as heavy-handed
15681 no_undefined_flag_CXX='${wl}-z,text'
15682 allow_undefined_flag_CXX='${wl}-z,nodefs'
15683 archive_cmds_need_lc_CXX=no
15684 hardcode_shlibpath_var_CXX=no
15685 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
15686 hardcode_libdir_separator_CXX=':'
15687 link_all_deplibs_CXX=yes
15688 export_dynamic_flag_spec_CXX='${wl}-Bexport'
15689 runpath_var='LD_RUN_PATH'
15691 case $cc_basename in
15693 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15694 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15695 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
15696 '"$old_archive_cmds_CXX"
15697 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
15698 '"$reload_cmds_CXX"
15701 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15702 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15708 case $cc_basename in
15710 # NonStop-UX NCC 3.20
15711 # FIXME: insert proper C++ library support
15715 # FIXME: insert proper C++ library support
15722 # FIXME: insert proper C++ library support
15727 # FIXME: insert proper C++ library support
15732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15733 $as_echo "$ld_shlibs_CXX" >&6; }
15734 test "$ld_shlibs_CXX" = no && can_build_shared=no
15740 ## There is no encapsulation within the following macros, do not change
15741 ## the running order or otherwise move them around unless you know exactly
15742 ## what you are doing...
15743 # Dependencies to place before and after the object being linked:
15744 predep_objects_CXX=
15745 postdep_objects_CXX=
15748 compiler_lib_search_path_CXX=
15750 cat > conftest.$ac_ext <<_LT_EOF
15754 Foo (void) { a = 0; }
15761 _lt_libdeps_save_CFLAGS=$CFLAGS
15762 case "$CC $CFLAGS " in #(
15763 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
15764 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
15765 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
15768 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15769 (eval $ac_compile) 2>&5
15771 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15772 test $ac_status = 0; }; then
15773 # Parse the compiler output and extract the necessary
15774 # objects, libraries and library flags.
15776 # Sentinel used to keep track of whether or not we are before
15777 # the conftest object file.
15778 pre_test_object_deps_done=no
15780 for p in `eval "$output_verbose_link_cmd"`; do
15781 case ${prev}${p} in
15784 # Some compilers place space between "-{L,R}" and the path.
15785 # Remove the space.
15786 if test $p = "-L" ||
15787 test $p = "-R"; then
15792 # Expand the sysroot to ease extracting the directories later.
15793 if test -z "$prev"; then
15795 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
15796 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
15797 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
15801 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
15803 if test "$pre_test_object_deps_done" = no; then
15806 # Internal compiler library paths should come after those
15807 # provided the user. The postdeps already come after the
15808 # user supplied libs so there is no need to process them.
15809 if test -z "$compiler_lib_search_path_CXX"; then
15810 compiler_lib_search_path_CXX="${prev}${p}"
15812 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
15815 # The "-l" case would never come before the object being
15816 # linked, so don't bother handling this case.
15819 if test -z "$postdeps_CXX"; then
15820 postdeps_CXX="${prev}${p}"
15822 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
15828 *.lto.$objext) ;; # Ignore GCC LTO objects
15830 # This assumes that the test object file only shows up
15831 # once in the compiler output.
15832 if test "$p" = "conftest.$objext"; then
15833 pre_test_object_deps_done=yes
15837 if test "$pre_test_object_deps_done" = no; then
15838 if test -z "$predep_objects_CXX"; then
15839 predep_objects_CXX="$p"
15841 predep_objects_CXX="$predep_objects_CXX $p"
15844 if test -z "$postdep_objects_CXX"; then
15845 postdep_objects_CXX="$p"
15847 postdep_objects_CXX="$postdep_objects_CXX $p"
15852 *) ;; # Ignore the rest.
15860 echo "libtool.m4: error: problem compiling CXX test program"
15863 $RM -f confest.$objext
15864 CFLAGS=$_lt_libdeps_save_CFLAGS
15866 # PORTME: override above test on systems where it is broken
15869 # Interix 3.5 installs completely hosed .la files for C++, so rather than
15870 # hack all around it, let's just trust "g++" to DTRT.
15871 predep_objects_CXX=
15872 postdep_objects_CXX=
15877 case `$CC -V 2>&1 | sed 5q` in
15881 # The more standards-conforming stlport4 library is
15882 # incompatible with the Cstd library. Avoid specifying
15883 # it if it's in CXXFLAGS. Ignore libCrun as
15884 # -library=stlport4 depends on it.
15885 case " $CXX $CXXFLAGS " in
15886 *" -library=stlport4 "*)
15887 solaris_use_stlport4=yes
15891 if test "$solaris_use_stlport4" != yes; then
15892 postdeps_CXX='-library=Cstd -library=Crun'
15899 case $cc_basename in
15901 # The more standards-conforming stlport4 library is
15902 # incompatible with the Cstd library. Avoid specifying
15903 # it if it's in CXXFLAGS. Ignore libCrun as
15904 # -library=stlport4 depends on it.
15905 case " $CXX $CXXFLAGS " in
15906 *" -library=stlport4 "*)
15907 solaris_use_stlport4=yes
15911 # Adding this requires a known-good setup of shared libraries for
15912 # Sun compiler versions before 5.6, else PIC objects from an old
15913 # archive will be linked into the output, leading to subtle bugs.
15914 if test "$solaris_use_stlport4" != yes; then
15915 postdeps_CXX='-library=Cstd -library=Crun'
15923 case " $postdeps_CXX " in
15924 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
15926 compiler_lib_search_dirs_CXX=
15927 if test -n "${compiler_lib_search_path_CXX}"; then
15928 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
15961 lt_prog_compiler_wl_CXX=
15962 lt_prog_compiler_pic_CXX=
15963 lt_prog_compiler_static_CXX=
15966 # C++ specific cases for pic, static, wl, etc.
15967 if test "$GXX" = yes; then
15968 lt_prog_compiler_wl_CXX='-Wl,'
15969 lt_prog_compiler_static_CXX='-static'
15973 # All AIX code is PIC.
15974 if test "$host_cpu" = ia64; then
15975 # AIX 5 now supports IA64 processor
15976 lt_prog_compiler_static_CXX='-Bstatic'
15983 # see comment about AmigaOS4 .so support
15984 lt_prog_compiler_pic_CXX='-fPIC'
15987 # FIXME: we need at least 68020 code to build shared libraries, but
15988 # adding the `-m68020' flag to GCC prevents building anything better,
15990 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
15995 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15996 # PIC is the default for these OSes.
15998 mingw* | cygwin* | os2* | pw32* | cegcc*)
15999 # This hack is so that the source file can tell whether it is being
16000 # built for inclusion in a dll (and should export symbols for example).
16001 # Although the cygwin gcc ignores -fPIC, still need this for old-style
16002 # (--disable-auto-import) libraries
16003 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
16005 darwin* | rhapsody*)
16006 # PIC is the default on this platform
16007 # Common symbols not allowed in MH_DYLIB files
16008 lt_prog_compiler_pic_CXX='-fno-common'
16011 # DJGPP does not support shared libraries at all
16012 lt_prog_compiler_pic_CXX=
16015 # PIC is the default for Haiku.
16016 # The "-static" flag exists, but is broken.
16017 lt_prog_compiler_static_CXX=
16020 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16021 # Instead, we relocate shared libraries at runtime.
16024 if test -d /usr/nec; then
16025 lt_prog_compiler_pic_CXX=-Kconform_pic
16029 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
16030 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
16031 # sets the default TLS model and affects inlining.
16036 lt_prog_compiler_pic_CXX='-fPIC'
16041 # QNX uses GNU C++, but need to define -shared option too, otherwise
16042 # it will coredump.
16043 lt_prog_compiler_pic_CXX='-fPIC -shared'
16046 lt_prog_compiler_pic_CXX='-fPIC'
16052 # All AIX code is PIC.
16053 if test "$host_cpu" = ia64; then
16054 # AIX 5 now supports IA64 processor
16055 lt_prog_compiler_static_CXX='-Bstatic'
16057 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
16061 case $cc_basename in
16063 # Green Hills C++ Compiler
16064 # _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"
16068 mingw* | cygwin* | os2* | pw32* | cegcc*)
16069 # This hack is so that the source file can tell whether it is being
16070 # built for inclusion in a dll (and should export symbols for example).
16071 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
16074 case $cc_basename in
16076 lt_prog_compiler_pic_CXX='-KPIC'
16079 # Green Hills C++ Compiler
16080 lt_prog_compiler_pic_CXX='-pic'
16086 freebsd* | dragonfly*)
16087 # FreeBSD uses GNU C++
16089 hpux9* | hpux10* | hpux11*)
16090 case $cc_basename in
16092 lt_prog_compiler_wl_CXX='-Wl,'
16093 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
16094 if test "$host_cpu" != ia64; then
16095 lt_prog_compiler_pic_CXX='+Z'
16099 lt_prog_compiler_wl_CXX='-Wl,'
16100 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
16106 lt_prog_compiler_pic_CXX='+Z'
16115 # This is c89, which is MS Visual C++ (no shared libs)
16116 # Anyone wants to do a port?
16118 irix5* | irix6* | nonstopux*)
16119 case $cc_basename in
16121 lt_prog_compiler_wl_CXX='-Wl,'
16122 lt_prog_compiler_static_CXX='-non_shared'
16123 # CC pic flag -KPIC is the default.
16129 linux* | k*bsd*-gnu | kopensolaris*-gnu)
16130 case $cc_basename in
16133 lt_prog_compiler_wl_CXX='--backend -Wl,'
16134 lt_prog_compiler_pic_CXX='-fPIC'
16137 # old Intel C++ for x86_64 which still supported -KPIC.
16138 lt_prog_compiler_wl_CXX='-Wl,'
16139 lt_prog_compiler_pic_CXX='-KPIC'
16140 lt_prog_compiler_static_CXX='-static'
16143 # Intel C++, used to be incompatible with GCC.
16144 # ICC 10 doesn't accept -KPIC any more.
16145 lt_prog_compiler_wl_CXX='-Wl,'
16146 lt_prog_compiler_pic_CXX='-fPIC'
16147 lt_prog_compiler_static_CXX='-static'
16150 # Portland Group C++ compiler
16151 lt_prog_compiler_wl_CXX='-Wl,'
16152 lt_prog_compiler_pic_CXX='-fpic'
16153 lt_prog_compiler_static_CXX='-Bstatic'
16157 # Make sure the PIC flag is empty. It appears that all Alpha
16158 # Linux and Compaq Tru64 Unix objects are PIC.
16159 lt_prog_compiler_pic_CXX=
16160 lt_prog_compiler_static_CXX='-non_shared'
16162 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
16163 # IBM XL 8.0, 9.0 on PPC and BlueGene
16164 lt_prog_compiler_wl_CXX='-Wl,'
16165 lt_prog_compiler_pic_CXX='-qpic'
16166 lt_prog_compiler_static_CXX='-qstaticlink'
16169 case `$CC -V 2>&1 | sed 5q` in
16172 lt_prog_compiler_pic_CXX='-KPIC'
16173 lt_prog_compiler_static_CXX='-Bstatic'
16174 lt_prog_compiler_wl_CXX='-Qoption ld '
16185 case $cc_basename in
16187 lt_prog_compiler_pic_CXX='-W c,exportall'
16196 # QNX uses GNU C++, but need to define -shared option too, otherwise
16197 # it will coredump.
16198 lt_prog_compiler_pic_CXX='-fPIC -shared'
16200 osf3* | osf4* | osf5*)
16201 case $cc_basename in
16203 lt_prog_compiler_wl_CXX='--backend -Wl,'
16206 # Rational C++ 2.4.1
16207 lt_prog_compiler_pic_CXX='-pic'
16210 # Digital/Compaq C++
16211 lt_prog_compiler_wl_CXX='-Wl,'
16212 # Make sure the PIC flag is empty. It appears that all Alpha
16213 # Linux and Compaq Tru64 Unix objects are PIC.
16214 lt_prog_compiler_pic_CXX=
16215 lt_prog_compiler_static_CXX='-non_shared'
16224 case $cc_basename in
16226 # Sun C++ 4.2, 5.x and Centerline C++
16227 lt_prog_compiler_pic_CXX='-KPIC'
16228 lt_prog_compiler_static_CXX='-Bstatic'
16229 lt_prog_compiler_wl_CXX='-Qoption ld '
16232 # Green Hills C++ Compiler
16233 lt_prog_compiler_pic_CXX='-PIC'
16240 case $cc_basename in
16243 lt_prog_compiler_pic_CXX='-pic'
16244 lt_prog_compiler_static_CXX='-Bstatic'
16248 lt_prog_compiler_pic_CXX='-pic'
16254 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16255 case $cc_basename in
16257 lt_prog_compiler_wl_CXX='-Wl,'
16258 lt_prog_compiler_pic_CXX='-KPIC'
16259 lt_prog_compiler_static_CXX='-Bstatic'
16264 case $cc_basename in
16266 # NonStop-UX NCC 3.20
16267 lt_prog_compiler_pic_CXX='-KPIC'
16276 lt_prog_compiler_can_build_shared_CXX=no
16282 # For platforms which do not support PIC, -DPIC is meaningless:
16284 lt_prog_compiler_pic_CXX=
16287 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
16291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
16292 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
16293 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
16294 $as_echo_n "(cached) " >&6
16296 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
16298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
16299 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
16300 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
16303 # Check to make sure the PIC flag actually works.
16305 if test -n "$lt_prog_compiler_pic_CXX"; then
16306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
16307 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
16308 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
16309 $as_echo_n "(cached) " >&6
16311 lt_cv_prog_compiler_pic_works_CXX=no
16312 ac_outfile=conftest.$ac_objext
16313 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16314 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
16315 # Insert the option either (1) after the last *FLAGS variable, or
16316 # (2) before a word containing "conftest.", or (3) at the end.
16317 # Note that $ac_compile itself does not contain backslashes and begins
16318 # with a dollar sign (not a hyphen), so the echo should work correctly.
16319 # The option is referenced via a variable to avoid confusing sed.
16320 lt_compile=`echo "$ac_compile" | $SED \
16321 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16322 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16323 -e 's:$: $lt_compiler_flag:'`
16324 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16325 (eval "$lt_compile" 2>conftest.err)
16327 cat conftest.err >&5
16328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16329 if (exit $ac_status) && test -s "$ac_outfile"; then
16330 # The compiler can only warn and ignore the option if not recognized
16331 # So say no if there are warnings other than the usual output.
16332 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
16333 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16334 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16335 lt_cv_prog_compiler_pic_works_CXX=yes
16341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
16342 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
16344 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
16345 case $lt_prog_compiler_pic_CXX in
16347 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
16350 lt_prog_compiler_pic_CXX=
16351 lt_prog_compiler_can_build_shared_CXX=no
16361 # Check to make sure the static flag actually works.
16363 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
16364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16365 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
16366 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
16367 $as_echo_n "(cached) " >&6
16369 lt_cv_prog_compiler_static_works_CXX=no
16370 save_LDFLAGS="$LDFLAGS"
16371 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16372 echo "$lt_simple_link_test_code" > conftest.$ac_ext
16373 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16374 # The linker can only warn and ignore the option if not recognized
16375 # So say no if there are warnings
16376 if test -s conftest.err; then
16377 # Append any errors to the config.log.
16378 cat conftest.err 1>&5
16379 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
16380 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16381 if diff conftest.exp conftest.er2 >/dev/null; then
16382 lt_cv_prog_compiler_static_works_CXX=yes
16385 lt_cv_prog_compiler_static_works_CXX=yes
16389 LDFLAGS="$save_LDFLAGS"
16392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
16393 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
16395 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
16398 lt_prog_compiler_static_CXX=
16404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
16405 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16406 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
16407 $as_echo_n "(cached) " >&6
16409 lt_cv_prog_compiler_c_o_CXX=no
16410 $RM -r conftest 2>/dev/null
16414 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16416 lt_compiler_flag="-o out/conftest2.$ac_objext"
16417 # Insert the option either (1) after the last *FLAGS variable, or
16418 # (2) before a word containing "conftest.", or (3) at the end.
16419 # Note that $ac_compile itself does not contain backslashes and begins
16420 # with a dollar sign (not a hyphen), so the echo should work correctly.
16421 lt_compile=`echo "$ac_compile" | $SED \
16422 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16423 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16424 -e 's:$: $lt_compiler_flag:'`
16425 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16426 (eval "$lt_compile" 2>out/conftest.err)
16428 cat out/conftest.err >&5
16429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16430 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16432 # The compiler can only warn and ignore the option if not recognized
16433 # So say no if there are warnings
16434 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
16435 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16436 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16437 lt_cv_prog_compiler_c_o_CXX=yes
16442 # SGI C++ compiler will create directory out/ii_files/ for
16443 # template instantiation
16444 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16445 $RM out/* && rmdir out
16451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
16452 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
16456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
16457 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16458 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
16459 $as_echo_n "(cached) " >&6
16461 lt_cv_prog_compiler_c_o_CXX=no
16462 $RM -r conftest 2>/dev/null
16466 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16468 lt_compiler_flag="-o out/conftest2.$ac_objext"
16469 # Insert the option either (1) after the last *FLAGS variable, or
16470 # (2) before a word containing "conftest.", or (3) at the end.
16471 # Note that $ac_compile itself does not contain backslashes and begins
16472 # with a dollar sign (not a hyphen), so the echo should work correctly.
16473 lt_compile=`echo "$ac_compile" | $SED \
16474 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16475 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16476 -e 's:$: $lt_compiler_flag:'`
16477 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16478 (eval "$lt_compile" 2>out/conftest.err)
16480 cat out/conftest.err >&5
16481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16482 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16484 # The compiler can only warn and ignore the option if not recognized
16485 # So say no if there are warnings
16486 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
16487 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16488 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16489 lt_cv_prog_compiler_c_o_CXX=yes
16494 # SGI C++ compiler will create directory out/ii_files/ for
16495 # template instantiation
16496 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16497 $RM out/* && rmdir out
16503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
16504 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
16509 hard_links="nottested"
16510 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
16511 # do not overwrite the value of need_locks provided by the user
16512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
16513 $as_echo_n "checking if we can lock with hard links... " >&6; }
16516 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16518 ln conftest.a conftest.b 2>&5 || hard_links=no
16519 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
16521 $as_echo "$hard_links" >&6; }
16522 if test "$hard_links" = no; then
16523 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16524 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16534 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
16536 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16537 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
16540 # If we're using GNU nm, then we don't want the "-C" option.
16541 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16542 # Also, AIX nm treats weak defined symbols like other global defined
16543 # symbols, whereas GNU nm marks them as "W".
16544 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
16545 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
16547 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
16551 export_symbols_cmds_CXX="$ltdll_cmds"
16553 cygwin* | mingw* | cegcc*)
16554 case $cc_basename in
16556 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
16559 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'
16560 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
16565 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
16570 $as_echo "$ld_shlibs_CXX" >&6; }
16571 test "$ld_shlibs_CXX" = no && can_build_shared=no
16573 with_gnu_ld_CXX=$with_gnu_ld
16581 # Do we need to explicitly link libc?
16583 case "x$archive_cmds_need_lc_CXX" in
16585 # Assume -lc should be added
16586 archive_cmds_need_lc_CXX=yes
16588 if test "$enable_shared" = yes && test "$GCC" = yes; then
16589 case $archive_cmds_CXX in
16591 # FIXME: we may have to deal with multi-command sequences.
16594 # Test whether the compiler implicitly links with -lc since on some
16595 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16596 # to ld, don't add -lc before -lgcc.
16597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
16598 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
16599 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
16600 $as_echo_n "(cached) " >&6
16603 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16605 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16606 (eval $ac_compile) 2>&5
16608 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16609 test $ac_status = 0; } 2>conftest.err; then
16612 libobjs=conftest.$ac_objext
16614 wl=$lt_prog_compiler_wl_CXX
16615 pic_flag=$lt_prog_compiler_pic_CXX
16621 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
16622 allow_undefined_flag_CXX=
16623 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
16624 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
16626 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16627 test $ac_status = 0; }
16629 lt_cv_archive_cmds_need_lc_CXX=no
16631 lt_cv_archive_cmds_need_lc_CXX=yes
16633 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
16635 cat conftest.err 1>&5
16640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
16641 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
16642 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
16710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16711 $as_echo_n "checking dynamic linker characteristics... " >&6; }
16713 library_names_spec=
16714 libname_spec='lib$name'
16718 postuninstall_cmds=
16722 shlibpath_overrides_runpath=unknown
16724 dynamic_linker="$host_os ld.so"
16725 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16726 need_lib_prefix=unknown
16727 hardcode_into_libs=no
16729 # when you set need_version to no, make sure it does not cause -set_version
16730 # flags to be left without arguments
16731 need_version=unknown
16735 version_type=linux # correct to gnu/linux during the next big refactor
16736 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16737 shlibpath_var=LIBPATH
16739 # AIX 3 has no versioning support, so we append a major version to the name.
16740 soname_spec='${libname}${release}${shared_ext}$major'
16744 version_type=linux # correct to gnu/linux during the next big refactor
16747 hardcode_into_libs=yes
16748 if test "$host_cpu" = ia64; then
16749 # AIX 5 supports IA64
16750 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16751 shlibpath_var=LD_LIBRARY_PATH
16753 # With GCC up to 2.95.x, collect2 would create an import file
16754 # for dependence libraries. The import file would start with
16755 # the line `#! .'. This would cause the generated library to
16756 # depend on `.', always an invalid library. This was fixed in
16757 # development snapshots of GCC prior to 3.0.
16759 aix4 | aix4.[01] | aix4.[01].*)
16760 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16762 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
16765 can_build_shared=no
16769 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16770 # soname into executable. Probably we can add versioning support to
16771 # collect2, so additional links can be useful in future.
16772 if test "$aix_use_runtimelinking" = yes; then
16773 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16774 # instead of lib<name>.a to let people know that these are not
16775 # typical AIX shared libraries.
16776 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16778 # We preserve .a as extension for shared libraries through AIX4.2
16779 # and later when we are not doing run time linking.
16780 library_names_spec='${libname}${release}.a $libname.a'
16781 soname_spec='${libname}${release}${shared_ext}$major'
16783 shlibpath_var=LIBPATH
16790 # Since July 2007 AmigaOS4 officially supports .so libraries.
16791 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16792 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16795 library_names_spec='$libname.ixlibrary $libname.a'
16796 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16797 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
16803 library_names_spec='${libname}${shared_ext}'
16804 dynamic_linker="$host_os ld.so"
16805 shlibpath_var=LIBRARY_PATH
16809 version_type=linux # correct to gnu/linux during the next big refactor
16811 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16812 soname_spec='${libname}${release}${shared_ext}$major'
16813 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16814 shlibpath_var=LD_LIBRARY_PATH
16815 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16816 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16817 # the default ld.so.conf also contains /usr/contrib/lib and
16818 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16819 # libtool to hard-code these into programs
16822 cygwin* | mingw* | pw32* | cegcc*)
16823 version_type=windows
16828 case $GCC,$cc_basename in
16831 library_names_spec='$libname.dll.a'
16832 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16833 postinstall_cmds='base_file=`basename \${file}`~
16834 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16835 dldir=$destdir/`dirname \$dlpath`~
16836 test -d \$dldir || mkdir -p \$dldir~
16837 $install_prog $dir/$dlname \$dldir/$dlname~
16838 chmod a+x \$dldir/$dlname~
16839 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16840 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16842 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16843 dlpath=$dir/\$dldll~
16845 shlibpath_overrides_runpath=yes
16849 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16850 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16854 # MinGW DLLs use traditional 'lib' prefix
16855 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16858 # pw32 DLLs use 'pw' prefix rather than 'lib'
16859 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16862 dynamic_linker='Win32 ld.exe'
16867 libname_spec='$name'
16868 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16869 library_names_spec='${libname}.dll.lib'
16873 sys_lib_search_path_spec=
16876 for lt_path in $LIB
16879 # Let DOS variable expansion print the short 8.3 style file name.
16880 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
16881 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
16884 # Convert to MSYS style.
16885 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
16888 # Convert to unix form, then to dos form, then back to unix form
16889 # but this time dos style (no spaces!) so that the unix form looks
16890 # like /cygdrive/c/PROGRA~1:/cygdr...
16891 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
16892 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
16893 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16896 sys_lib_search_path_spec="$LIB"
16897 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
16898 # It is most probably a Windows format PATH.
16899 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16901 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16903 # FIXME: find the short name or the path components, as spaces are
16904 # common. (e.g. "Program Files" -> "PROGRA~1")
16908 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16909 postinstall_cmds='base_file=`basename \${file}`~
16910 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16911 dldir=$destdir/`dirname \$dlpath`~
16912 test -d \$dldir || mkdir -p \$dldir~
16913 $install_prog $dir/$dlname \$dldir/$dlname'
16914 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16915 dlpath=$dir/\$dldll~
16917 shlibpath_overrides_runpath=yes
16918 dynamic_linker='Win32 link.exe'
16922 # Assume MSVC wrapper
16923 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16924 dynamic_linker='Win32 ld.exe'
16927 # FIXME: first we should search . and the directory the executable is in
16931 darwin* | rhapsody*)
16932 dynamic_linker="$host_os dyld"
16933 version_type=darwin
16936 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16937 soname_spec='${libname}${release}${major}$shared_ext'
16938 shlibpath_overrides_runpath=yes
16939 shlibpath_var=DYLD_LIBRARY_PATH
16940 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16942 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16946 version_type=linux # correct to gnu/linux during the next big refactor
16949 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16950 soname_spec='${libname}${release}${shared_ext}$major'
16951 shlibpath_var=LD_LIBRARY_PATH
16954 freebsd* | dragonfly*)
16955 # DragonFly does not have aout. When/if they implement a new
16956 # versioning mechanism, adjust this.
16957 if test -x /usr/bin/objformat; then
16958 objformat=`/usr/bin/objformat`
16961 freebsd[23].*) objformat=aout ;;
16962 *) objformat=elf ;;
16965 version_type=freebsd-$objformat
16966 case $version_type in
16968 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16973 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16977 shlibpath_var=LD_LIBRARY_PATH
16980 shlibpath_overrides_runpath=yes
16982 freebsd3.[01]* | freebsdelf3.[01]*)
16983 shlibpath_overrides_runpath=yes
16984 hardcode_into_libs=yes
16986 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16987 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16988 shlibpath_overrides_runpath=no
16989 hardcode_into_libs=yes
16991 *) # from 4.6 on, and DragonFly
16992 shlibpath_overrides_runpath=yes
16993 hardcode_into_libs=yes
16999 version_type=linux # correct to gnu/linux during the next big refactor
17002 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17003 soname_spec='${libname}${release}${shared_ext}$major'
17004 shlibpath_var=LD_LIBRARY_PATH
17005 shlibpath_overrides_runpath=no
17006 hardcode_into_libs=yes
17010 version_type=linux # correct to gnu/linux during the next big refactor
17013 dynamic_linker="$host_os runtime_loader"
17014 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17015 soname_spec='${libname}${release}${shared_ext}$major'
17016 shlibpath_var=LIBRARY_PATH
17017 shlibpath_overrides_runpath=yes
17018 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
17019 hardcode_into_libs=yes
17022 hpux9* | hpux10* | hpux11*)
17023 # Give a soname corresponding to the major version so that dld.sl refuses to
17024 # link against other versions.
17031 hardcode_into_libs=yes
17032 dynamic_linker="$host_os dld.so"
17033 shlibpath_var=LD_LIBRARY_PATH
17034 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17035 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17036 soname_spec='${libname}${release}${shared_ext}$major'
17037 if test "X$HPUX_IA64_MODE" = X32; then
17038 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17040 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17042 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17046 hardcode_into_libs=yes
17047 dynamic_linker="$host_os dld.sl"
17048 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17049 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17050 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17051 soname_spec='${libname}${release}${shared_ext}$major'
17052 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17053 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17057 dynamic_linker="$host_os dld.sl"
17058 shlibpath_var=SHLIB_PATH
17059 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17060 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17061 soname_spec='${libname}${release}${shared_ext}$major'
17064 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
17065 postinstall_cmds='chmod 555 $lib'
17066 # or fails outright, so override atomically:
17067 install_override_mode=555
17071 version_type=linux # correct to gnu/linux during the next big refactor
17074 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17075 soname_spec='${libname}${release}${shared_ext}$major'
17076 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17077 shlibpath_var=LD_LIBRARY_PATH
17078 shlibpath_overrides_runpath=no
17079 hardcode_into_libs=yes
17082 irix5* | irix6* | nonstopux*)
17084 nonstopux*) version_type=nonstopux ;;
17086 if test "$lt_cv_prog_gnu_ld" = yes; then
17087 version_type=linux # correct to gnu/linux during the next big refactor
17094 soname_spec='${libname}${release}${shared_ext}$major'
17095 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17097 irix5* | nonstopux*)
17098 libsuff= shlibsuff=
17101 case $LD in # libtool.m4 will add one of these switches to LD
17102 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17103 libsuff= shlibsuff= libmagic=32-bit;;
17104 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17105 libsuff=32 shlibsuff=N32 libmagic=N32;;
17106 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17107 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17108 *) libsuff= shlibsuff= libmagic=never-match;;
17112 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17113 shlibpath_overrides_runpath=no
17114 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17115 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17116 hardcode_into_libs=yes
17119 # No shared lib support for Linux oldld, aout, or coff.
17120 linux*oldld* | linux*aout* | linux*coff*)
17124 # This must be glibc/ELF.
17125 linux* | k*bsd*-gnu | kopensolaris*-gnu)
17126 version_type=linux # correct to gnu/linux during the next big refactor
17129 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17130 soname_spec='${libname}${release}${shared_ext}$major'
17131 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17132 shlibpath_var=LD_LIBRARY_PATH
17133 shlibpath_overrides_runpath=no
17135 # Some binutils ld are patched to set DT_RUNPATH
17136 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
17137 $as_echo_n "(cached) " >&6
17139 lt_cv_shlibpath_overrides_runpath=no
17140 save_LDFLAGS=$LDFLAGS
17141 save_libdir=$libdir
17142 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
17143 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
17144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17145 /* end confdefs.h. */
17155 if ac_fn_cxx_try_link "$LINENO"; then :
17156 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
17157 lt_cv_shlibpath_overrides_runpath=yes
17160 rm -f core conftest.err conftest.$ac_objext \
17161 conftest$ac_exeext conftest.$ac_ext
17162 LDFLAGS=$save_LDFLAGS
17163 libdir=$save_libdir
17167 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
17169 # This implies no fast_install, which is unacceptable.
17170 # Some rework will be needed to allow for fast_install
17171 # before this can be enabled.
17172 hardcode_into_libs=yes
17174 # Append ld.so.conf contents to the search path
17175 if test -f /etc/ld.so.conf; then
17176 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' ' '`
17177 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17180 # We used to test for /lib/ld.so.1 and disable shared libraries on
17181 # powerpc, because MkLinux only supported shared libraries with the
17182 # GNU dynamic linker. Since this was broken with cross compilers,
17183 # most powerpc-linux boxes support dynamic linking these days and
17184 # people can always --disable-shared, the test was removed, and we
17185 # assume the GNU/Linux dynamic linker is in use.
17186 dynamic_linker='GNU/Linux ld.so'
17193 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17194 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17195 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17196 dynamic_linker='NetBSD (a.out) ld.so'
17198 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17199 soname_spec='${libname}${release}${shared_ext}$major'
17200 dynamic_linker='NetBSD ld.elf_so'
17202 shlibpath_var=LD_LIBRARY_PATH
17203 shlibpath_overrides_runpath=yes
17204 hardcode_into_libs=yes
17208 version_type=linux # correct to gnu/linux during the next big refactor
17209 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17210 shlibpath_var=LD_LIBRARY_PATH
17211 shlibpath_overrides_runpath=yes
17218 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17219 soname_spec='${libname}${release}${shared_ext}$major'
17220 shlibpath_var=LD_LIBRARY_PATH
17221 shlibpath_overrides_runpath=no
17222 hardcode_into_libs=yes
17223 dynamic_linker='ldqnx.so'
17228 sys_lib_dlsearch_path_spec="/usr/lib"
17230 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17232 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17233 *) need_version=no ;;
17235 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17236 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17237 shlibpath_var=LD_LIBRARY_PATH
17238 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17240 openbsd2.[89] | openbsd2.[89].*)
17241 shlibpath_overrides_runpath=no
17244 shlibpath_overrides_runpath=yes
17248 shlibpath_overrides_runpath=yes
17253 libname_spec='$name'
17256 library_names_spec='$libname${shared_ext} $libname.a'
17257 dynamic_linker='OS/2 ld.exe'
17258 shlibpath_var=LIBPATH
17261 osf3* | osf4* | osf5*)
17265 soname_spec='${libname}${release}${shared_ext}$major'
17266 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17267 shlibpath_var=LD_LIBRARY_PATH
17268 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17269 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17277 version_type=linux # correct to gnu/linux during the next big refactor
17280 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17281 soname_spec='${libname}${release}${shared_ext}$major'
17282 shlibpath_var=LD_LIBRARY_PATH
17283 shlibpath_overrides_runpath=yes
17284 hardcode_into_libs=yes
17285 # ldd complains unless libraries are executable
17286 postinstall_cmds='chmod +x $lib'
17291 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17292 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17293 shlibpath_var=LD_LIBRARY_PATH
17294 shlibpath_overrides_runpath=yes
17295 if test "$with_gnu_ld" = yes; then
17302 version_type=linux # correct to gnu/linux during the next big refactor
17303 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17304 soname_spec='${libname}${release}${shared_ext}$major'
17305 shlibpath_var=LD_LIBRARY_PATH
17306 case $host_vendor in
17308 shlibpath_overrides_runpath=no
17310 runpath_var=LD_RUN_PATH
17318 shlibpath_overrides_runpath=no
17319 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17325 if test -d /usr/nec ;then
17326 version_type=linux # correct to gnu/linux during the next big refactor
17327 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17328 soname_spec='$libname${shared_ext}.$major'
17329 shlibpath_var=LD_LIBRARY_PATH
17333 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17334 version_type=freebsd-elf
17337 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17338 soname_spec='${libname}${release}${shared_ext}$major'
17339 shlibpath_var=LD_LIBRARY_PATH
17340 shlibpath_overrides_runpath=yes
17341 hardcode_into_libs=yes
17342 if test "$with_gnu_ld" = yes; then
17343 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17345 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17348 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17352 sys_lib_dlsearch_path_spec='/usr/lib'
17356 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
17357 version_type=linux # correct to gnu/linux during the next big refactor
17360 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17361 shlibpath_var=LD_LIBRARY_PATH
17362 shlibpath_overrides_runpath=no
17363 hardcode_into_libs=yes
17367 version_type=linux # correct to gnu/linux during the next big refactor
17368 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17369 soname_spec='${libname}${release}${shared_ext}$major'
17370 shlibpath_var=LD_LIBRARY_PATH
17377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
17378 $as_echo "$dynamic_linker" >&6; }
17379 test "$dynamic_linker" = no && can_build_shared=no
17381 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17382 if test "$GCC" = yes; then
17383 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17386 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
17387 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
17389 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
17390 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
17430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
17431 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17432 hardcode_action_CXX=
17433 if test -n "$hardcode_libdir_flag_spec_CXX" ||
17434 test -n "$runpath_var_CXX" ||
17435 test "X$hardcode_automatic_CXX" = "Xyes" ; then
17437 # We can hardcode non-existent directories.
17438 if test "$hardcode_direct_CXX" != no &&
17439 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17440 # have to relink, otherwise we might link with an installed library
17441 # when we should be linking with a yet-to-be-installed one
17442 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
17443 test "$hardcode_minus_L_CXX" != no; then
17444 # Linking always hardcodes the temporary library directory.
17445 hardcode_action_CXX=relink
17447 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17448 hardcode_action_CXX=immediate
17451 # We cannot hardcode anything, or else we can only hardcode existing
17453 hardcode_action_CXX=unsupported
17455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
17456 $as_echo "$hardcode_action_CXX" >&6; }
17458 if test "$hardcode_action_CXX" = relink ||
17459 test "$inherit_rpath_CXX" = yes; then
17460 # Fast installation is not supported
17461 enable_fast_install=no
17462 elif test "$shlibpath_overrides_runpath" = yes ||
17463 test "$enable_shared" = no; then
17464 # Fast installation is not necessary
17465 enable_fast_install=needless
17474 fi # test -n "$compiler"
17477 CFLAGS=$lt_save_CFLAGS
17481 with_gnu_ld=$lt_save_with_gnu_ld
17482 lt_cv_path_LDCXX=$lt_cv_path_LD
17483 lt_cv_path_LD=$lt_save_path_LD
17484 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
17485 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
17486 fi # test "$_lt_caught_CXX_error" != yes
17489 ac_cpp='$CPP $CPPFLAGS'
17490 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17491 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17492 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17508 ac_config_commands="$ac_config_commands libtool"
17513 # Only expand once:
17516 # Check whether --enable-experimental-libtool was given.
17517 if test "${enable_experimental_libtool+set}" = set; then :
17518 enableval=$enable_experimental_libtool; experimental_libtool=$enableval
17520 experimental_libtool=no
17524 if test "$experimental_libtool" = "yes"; then
17525 echo "using APR's libtool"
17526 sh_libtool="`$apr_config --apr-libtool`"
17527 LIBTOOL="$sh_libtool"
17528 SVN_LIBTOOL="$sh_libtool"
17530 sh_libtool="$abs_builddir/libtool"
17531 SVN_LIBTOOL="\$(SHELL) $sh_libtool"
17535 lt_pversion=`$LIBTOOL --version 2>/dev/null|$SED -e 's/([^)]*)//g;s/^[^0-9]*//;s/[- ].*//g;q'`
17536 lt_version=`echo $lt_pversion|$SED -e 's/\([a-z]*\)$/.\1/'`
17537 lt_major_version=`echo $lt_version | cut -d'.' -f 1`
17539 svn_enable_static=yes
17540 svn_enable_shared=yes
17542 # Check whether --enable-static was given.
17543 if test "${enable_static+set}" = set; then :
17544 enableval=$enable_static; svn_enable_static="$enableval"
17546 svn_enable_static="yes"
17550 # Check whether --enable-shared was given.
17551 if test "${enable_shared+set}" = set; then :
17552 enableval=$enable_shared; svn_enable_shared="$enableval"
17554 svn_enable_shared="yes"
17558 if test "$svn_enable_static" = "yes" && test "$svn_enable_shared" = "yes" ; then
17559 { $as_echo "$as_me:${as_lineno-$LINENO}: building both shared and static libraries" >&5
17560 $as_echo "$as_me: building both shared and static libraries" >&6;}
17561 elif test "$svn_enable_static" = "yes" ; then
17562 { $as_echo "$as_me:${as_lineno-$LINENO}: building static libraries only" >&5
17563 $as_echo "$as_me: building static libraries only" >&6;}
17564 LT_CFLAGS="-static $LT_CFLAGS"
17565 LT_LDFLAGS="-static $LT_LDFLAGS"
17566 elif test "$svn_enable_shared" = "yes" ; then
17567 { $as_echo "$as_me:${as_lineno-$LINENO}: building shared libraries only" >&5
17568 $as_echo "$as_me: building shared libraries only" >&6;}
17569 if test "$lt_major_version" = "1" ; then
17570 LT_CFLAGS="-prefer-pic $LT_CFLAGS"
17571 elif test "$lt_major_version" = "2" ; then
17572 LT_CFLAGS="-shared $LT_CFLAGS"
17574 LT_LDFLAGS="-shared $LT_LDFLAGS"
17576 as_fn_error $? "cannot disable both shared and static libraries" "$LINENO" 5
17579 # Check whether --enable-all-static was given.
17580 if test "${enable_all_static+set}" = set; then :
17581 enableval=$enable_all_static;
17582 if test "$enableval" = "yes" ; then
17583 LT_LDFLAGS="-all-static $LT_LDFLAGS"
17584 elif test "$enableval" != "no" ; then
17585 as_fn_error $? "--enable-all-static doesn't accept argument" "$LINENO" 5
17594 # Check whether --enable-local-library-preloading was given.
17595 if test "${enable_local_library_preloading+set}" = set; then :
17596 enableval=$enable_local_library_preloading;
17597 if test "$enableval" != "no"; then
17598 if test "$svn_enable_shared" = "yes"; then
17599 TRANSFORM_LIBTOOL_SCRIPTS="transform-libtool-scripts"
17601 as_fn_error $? "--enable-local-library-preloading conflicts with --disable-shared" "$LINENO" 5
17604 TRANSFORM_LIBTOOL_SCRIPTS=""
17609 TRANSFORM_LIBTOOL_SCRIPTS=""
17615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libtool needs -no-undefined" >&5
17616 $as_echo_n "checking whether libtool needs -no-undefined... " >&6; }
17619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17620 $as_echo "yes" >&6; }
17621 LT_NO_UNDEFINED="-no-undefined"
17624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17625 $as_echo "no" >&6; }
17631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to avoid circular linkage at all costs" >&5
17632 $as_echo_n "checking whether to avoid circular linkage at all costs... " >&6; }
17635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17636 $as_echo "yes" >&6; }
17638 $as_echo "#define SVN_AVOID_CIRCULAR_LINKAGE_AT_ALL_COSTS_HACK 1" >>confdefs.h
17642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17643 $as_echo "no" >&6; }
17649 # Check whether --with-trang was given.
17650 if test "${with_trang+set}" = set; then :
17651 withval=$with_trang;
17656 if test "$trang" = "yes"; then
17657 # Extract the first word of "trang", so it can be a program name with args.
17658 set dummy trang; ac_word=$2
17659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17660 $as_echo_n "checking for $ac_word... " >&6; }
17661 if ${ac_cv_path_TRANG+:} false; then :
17662 $as_echo_n "(cached) " >&6
17666 ac_cv_path_TRANG="$TRANG" # Let the user override the test with a path.
17669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17670 for as_dir in $PATH
17673 test -z "$as_dir" && as_dir=.
17674 for ac_exec_ext in '' $ac_executable_extensions; do
17675 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17676 ac_cv_path_TRANG="$as_dir/$ac_word$ac_exec_ext"
17677 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17684 test -z "$ac_cv_path_TRANG" && ac_cv_path_TRANG="none"
17688 TRANG=$ac_cv_path_TRANG
17689 if test -n "$TRANG"; then
17690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TRANG" >&5
17691 $as_echo "$TRANG" >&6; }
17693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17694 $as_echo "no" >&6; }
17705 # Check whether --with-doxygen was given.
17706 if test "${with_doxygen+set}" = set; then :
17707 withval=$with_doxygen;
17712 if test "$doxygen" = "yes"; then
17713 # Extract the first word of "doxygen", so it can be a program name with args.
17714 set dummy doxygen; ac_word=$2
17715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17716 $as_echo_n "checking for $ac_word... " >&6; }
17717 if ${ac_cv_path_DOXYGEN+:} false; then :
17718 $as_echo_n "(cached) " >&6
17722 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
17725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17726 for as_dir in $PATH
17729 test -z "$as_dir" && as_dir=.
17730 for ac_exec_ext in '' $ac_executable_extensions; do
17731 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17732 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
17733 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17740 test -z "$ac_cv_path_DOXYGEN" && ac_cv_path_DOXYGEN="none"
17744 DOXYGEN=$ac_cv_path_DOXYGEN
17745 if test -n "$DOXYGEN"; then
17746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOXYGEN" >&5
17747 $as_echo "$DOXYGEN" >&6; }
17749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17750 $as_echo "no" >&6; }
17763 # Check whether --with-expat was given.
17764 if test "${with_expat+set}" = set; then :
17765 withval=$with_expat; svn_lib_expat="$withval"
17767 svn_lib_expat="::expat"
17771 # APR-util accepts "builtin" as an argument to this option so if the user
17772 # passed "builtin" pretend the user didn't specify the --with-expat option
17773 # at all. Expat will (hopefully) be found in apr-util.
17774 test "_$svn_lib_expat" = "_builtin" && svn_lib_expat="::expat"
17776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Expat" >&5
17777 $as_echo_n "checking for Expat... " >&6; }
17778 if test -n "`echo "$svn_lib_expat" | $EGREP ":.*:"`"; then
17779 SVN_XML_INCLUDES=""
17780 for i in `echo "$svn_lib_expat" | $SED -e "s/\([^:]*\):.*/\1/"`; do
17781 SVN_XML_INCLUDES="$SVN_XML_INCLUDES -I$i"
17783 SVN_XML_INCLUDES="${SVN_XML_INCLUDES## }"
17784 for l in `echo "$svn_lib_expat" | $SED -e "s/.*:\([^:]*\):.*/\1/"`; do
17785 LDFLAGS="$LDFLAGS -L$l"
17787 for l in `echo "$svn_lib_expat" | $SED -e "s/.*:\([^:]*\)/\1/"`; do
17788 SVN_XML_LIBS="$SVN_XML_LIBS -l$l"
17790 SVN_XML_LIBS="${SVN_XML_LIBS## }"
17791 old_CPPFLAGS="$CPPFLAGS"
17793 CPPFLAGS="$CPPFLAGS $SVN_XML_INCLUDES"
17794 LIBS="$LIBS $SVN_XML_LIBS"
17795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17796 /* end confdefs.h. */
17800 {XML_ParserCreate(NULL);}
17802 if ac_fn_c_try_link "$LINENO"; then :
17803 svn_lib_expat="yes"
17807 rm -f core conftest.err conftest.$ac_objext \
17808 conftest$ac_exeext conftest.$ac_ext
17810 if test "$svn_lib_expat" = "yes"; then
17811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17812 $as_echo "yes" >&6; }
17814 SVN_XML_INCLUDES=""
17816 CPPFLAGS="$CPPFLAGS $SVN_APRUTIL_INCLUDES"
17817 if test "$enable_all_static" != "yes"; then
17818 SVN_APRUTIL_LIBS="$SVN_APRUTIL_LIBS `$apu_config --libs`"
17820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17821 /* end confdefs.h. */
17825 {XML_ParserCreate(NULL);}
17827 if ac_fn_c_try_compile "$LINENO"; then :
17828 svn_lib_expat="yes"
17832 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17833 if test "$svn_lib_expat" = "yes"; then
17834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17835 $as_echo "yes" >&6; }
17836 { $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
17837 $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;}
17839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17840 $as_echo "no" >&6; }
17841 as_fn_error $? "Expat not found" "$LINENO" 5
17844 CPPFLAGS="$old_CPPFLAGS"
17846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17847 $as_echo "no" >&6; }
17848 if test "$svn_lib_expat" = "yes"; then
17849 as_fn_error $? "--with-expat option requires argument" "$LINENO" 5
17850 elif test "$svn_lib_expat" = "no"; then
17851 as_fn_error $? "Expat is required" "$LINENO" 5
17853 as_fn_error $? "Invalid syntax of argument of --with-expat option" "$LINENO" 5
17860 # Berkeley DB on SCO OpenServer needs -lsocket
17861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
17862 $as_echo_n "checking for socket in -lsocket... " >&6; }
17863 if ${ac_cv_lib_socket_socket+:} false; then :
17864 $as_echo_n "(cached) " >&6
17866 ac_check_lib_save_LIBS=$LIBS
17867 LIBS="-lsocket $LIBS"
17868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17869 /* end confdefs.h. */
17871 /* Override any GCC internal prototype to avoid an error.
17872 Use char because int might match the return type of a GCC
17873 builtin and then its argument prototype would still apply. */
17886 if ac_fn_c_try_link "$LINENO"; then :
17887 ac_cv_lib_socket_socket=yes
17889 ac_cv_lib_socket_socket=no
17891 rm -f core conftest.err conftest.$ac_objext \
17892 conftest$ac_exeext conftest.$ac_ext
17893 LIBS=$ac_check_lib_save_LIBS
17895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
17896 $as_echo "$ac_cv_lib_socket_socket" >&6; }
17897 if test "x$ac_cv_lib_socket_socket" = xyes; then :
17898 cat >>confdefs.h <<_ACEOF
17899 #define HAVE_LIBSOCKET 1
17902 LIBS="-lsocket $LIBS"
17907 # Build the BDB filesystem library only if we have an appropriate
17908 # version of Berkeley DB.
17910 powerpc-apple-darwin*)
17911 # Berkeley DB 4.0 does not work on OS X.
17912 SVN_FS_WANT_DB_MAJOR=4
17913 SVN_FS_WANT_DB_MINOR=1
17914 SVN_FS_WANT_DB_PATCH=25
17917 SVN_FS_WANT_DB_MAJOR=4
17918 SVN_FS_WANT_DB_MINOR=0
17919 SVN_FS_WANT_DB_PATCH=14
17922 db_alt_version="5.x"
17923 # Look for libdb4.so first:
17925 db_version=$SVN_FS_WANT_DB_MAJOR.$SVN_FS_WANT_DB_MINOR.$SVN_FS_WANT_DB_PATCH
17928 # Check whether --with-berkeley-db was given.
17929 if test "${with_berkeley_db+set}" = set; then :
17930 withval=$with_berkeley_db;
17931 if test "$withval" = "no"; then
17933 elif test "$withval" = "yes"; then
17934 apu_db_version="`$apu_config --db-version`"
17935 if test $? -ne 0; then
17936 as_fn_error $? "Can't determine whether apr-util is linked against a
17937 proper version of Berkeley DB." "$LINENO" 5
17940 if test "$withval" = "yes"; then
17941 if test "$apu_db_version" -lt "4"; then
17942 as_fn_error $? "APR-UTIL was linked against Berkeley DB version $apu_db_version,
17943 while version 4 or higher is required. Reinstall
17944 APR-UTIL with the appropriate options." "$LINENO" 5
17947 bdb_status=required
17949 elif test "$apu_found" != "reconfig"; then
17950 if test "$apu_db_version" -lt 4; then
17951 as_fn_error $? "APR-UTIL was installed independently, it won't be
17952 possible to use the specified Berkeley DB: $withval" "$LINENO" 5
17955 bdb_status=required
17958 if echo "$withval" | $EGREP ":.*:.*:" > /dev/null; then
17959 svn_berkeley_db_header="`echo "$withval" | $SED -e "s/\([^:]*\):.*/\1/"`"
17961 for i in `echo "$withval" | $SED -e "s/.*:\([^:]*\):[^:]*:.*/\1/"`; do
17962 SVN_DB_INCLUDES="$SVN_DB_INCLUDES -I$i"
17964 SVN_DB_INCLUDES="${SVN_DB_INCLUDES## }"
17965 for l in `echo "$withval" | $SED -e "s/.*:[^:]*:\([^:]*\):.*/\1/"`; do
17966 LDFLAGS="$LDFLAGS -L$l"
17969 for l in `echo "$withval" | $SED -e "s/.*:\([^:]*\)/\1/"`; do
17970 SVN_DB_LIBS="$SVN_DB_LIBS -l$l"
17972 SVN_DB_LIBS="${SVN_DB_LIBS## }"
17974 bdb_status=required
17976 as_fn_error $? "Invalid syntax of argument of --with-berkeley-db option" "$LINENO" 5
17982 # No --with-berkeley-db option:
17984 # Check if APR-UTIL is providing the correct Berkeley DB version
17987 apu_db_version="`$apu_config --db-version`"
17988 if test $? -ne 0; then
17989 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Detected older version of APR-UTIL, trying to determine
17990 whether apr-util is linked against Berkeley DB
17992 $as_echo "$as_me: WARNING: Detected older version of APR-UTIL, trying to determine
17993 whether apr-util is linked against Berkeley DB
17995 bdb_status=try-link
17996 elif test "$apu_db_version" -lt "4"; then
17999 bdb_status=try-link
18005 if test "$bdb_status" = "skip"; then
18006 svn_lib_berkeley_db=no
18008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for availability of Berkeley DB" >&5
18009 $as_echo_n "checking for availability of Berkeley DB... " >&6; }
18010 # Check whether --enable-bdb6 was given.
18011 if test "${enable_bdb6+set}" = set; then :
18012 enableval=$enable_bdb6; enable_bdb6=$enableval
18014 enable_bdb6=unspecified
18019 svn_lib_berkeley_db_try_save_cppflags="$CPPFLAGS"
18020 svn_lib_berkeley_db_try_save_libs="$LIBS"
18022 svn_check_berkeley_db_major=$SVN_FS_WANT_DB_MAJOR
18023 svn_check_berkeley_db_minor=$SVN_FS_WANT_DB_MINOR
18024 svn_check_berkeley_db_patch=$SVN_FS_WANT_DB_PATCH
18025 enable_bdb6=$enable_bdb6
18027 if test -z "$SVN_DB_LIBS"; then
18028 # We pass --dbm-libs here since Debian has modified apu-config not
18029 # to return -ldb unless --dbm-libs is passed. This may also produce
18030 # extra output beyond -ldb but since we're only filtering for -ldb
18031 # it won't matter to us. However, --dbm-libs was added to apu-config
18032 # in 1.3.8 so it's possible the version we have doesn't support it
18033 # so fallback without it if we get an error.
18034 svn_db_libs_prefiltered="`$apu_config --libs --dbm-libs`"
18035 if test $? -ne 0; then
18036 svn_db_libs_prefiltered="`$apu_config --libs`"
18039 # Extract only the -ldb.* flag from the libs supplied by apu-config
18040 # Otherwise we get bit by the fact that expat might not be built yet
18041 # Or that it resides in a non-standard location which we would have
18042 # to compensate with using something like -R`$apu_config --prefix`/lib.
18044 SVN_DB_LIBS="`echo \"$svn_db_libs_prefiltered\" | $SED -e 's/.*\(-ldb[^[:space:]]*\).*/\1/' | $EGREP -- '-ldb[^[:space:]]*'`"
18047 CPPFLAGS="$SVN_DB_INCLUDES $SVN_APRUTIL_INCLUDES $CPPFLAGS"
18048 LIBS="`$apu_config --ldflags` $SVN_DB_LIBS $LIBS"
18050 if test -n "$svn_berkeley_db_header"; then
18051 SVN_DB_HEADER="#include <$svn_berkeley_db_header>"
18052 svn_db_header="#include <$svn_berkeley_db_header>"
18054 SVN_DB_HEADER="#include <apu_want.h>"
18055 svn_db_header="#define APU_WANT_DB
18056 #include <apu_want.h>"
18061 if test "$cross_compiling" = yes; then :
18062 svn_have_berkeley_db=yes
18065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18066 /* end confdefs.h. */
18068 #include <string.h>
18069 #include <stdlib.h>
18074 int major, minor, patch;
18076 db_version (&major, &minor, &patch);
18078 /* Sanity check: ensure that db.h constants actually match the db library */
18079 if (major != DB_VERSION_MAJOR
18080 || minor != DB_VERSION_MINOR
18081 || patch != DB_VERSION_PATCH)
18084 /* Block Berkeley DB 6, because (a) we haven't tested with it, (b) 6.0.20
18085 and newer are under the AGPL, and we want use of AGPL dependencies to be
18087 if (major >= 6 && strcmp("$enable_bdb6", "yes"))
18090 /* Run-time check: ensure the library claims to be the correct version. */
18092 if (major < $svn_check_berkeley_db_major)
18094 if (major > $svn_check_berkeley_db_major)
18097 if (minor < $svn_check_berkeley_db_minor)
18099 if (minor > $svn_check_berkeley_db_minor)
18102 if (patch >= $svn_check_berkeley_db_patch)
18109 if ac_fn_c_try_run "$LINENO"; then :
18110 svn_have_berkeley_db=yes
18113 svn_have_berkeley_db=no
18114 if test $rc = 2; then
18115 svn_have_berkeley_db=no6
18118 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18119 conftest.$ac_objext conftest.beam conftest.$ac_ext
18123 CPPFLAGS="$svn_lib_berkeley_db_try_save_cppflags"
18124 LIBS="$svn_lib_berkeley_db_try_save_libs"
18127 if test "$svn_have_berkeley_db" = "yes"; then
18128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18129 $as_echo "yes" >&6; }
18130 svn_lib_berkeley_db=yes
18132 if test "$svn_have_berkeley_db" = "no6"; then
18133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (found version 6, but --enable-bdb6 not specified)" >&5
18134 $as_echo "no (found version 6, but --enable-bdb6 not specified)" >&6; }
18135 # A warning will be printed at the end of configure.ac.
18137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18138 $as_echo "no" >&6; }
18140 svn_lib_berkeley_db=no
18141 if test "$bdb_status" = "required"; then
18142 as_fn_error $? "Berkeley DB $db_version or $db_alt_version wasn't found." "$LINENO" 5
18149 cat >>confdefs.h <<_ACEOF
18150 #define SVN_FS_WANT_DB_MAJOR $SVN_FS_WANT_DB_MAJOR
18154 cat >>confdefs.h <<_ACEOF
18155 #define SVN_FS_WANT_DB_MINOR $SVN_FS_WANT_DB_MINOR
18159 cat >>confdefs.h <<_ACEOF
18160 #define SVN_FS_WANT_DB_PATCH $SVN_FS_WANT_DB_PATCH
18169 # Check whether --with-sasl was given.
18170 if test "${with_sasl+set}" = set; then :
18171 withval=$with_sasl;
18172 with_sasl="$withval"
18183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to look for SASL" >&5
18184 $as_echo_n "checking whether to look for SASL... " >&6; }
18186 if test "${with_sasl}" = "no"; then
18187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18188 $as_echo "no" >&6; }
18191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18192 $as_echo "yes" >&6; }
18193 saved_LDFLAGS="$LDFLAGS"
18194 saved_CPPFLAGS="$CPPFLAGS"
18196 if test "$with_sasl" = "yes"; then
18197 { $as_echo "$as_me:${as_lineno-$LINENO}: Looking in default locations" >&5
18198 $as_echo "$as_me: Looking in default locations" >&6;}
18199 ac_fn_c_check_header_mongrel "$LINENO" "sasl/sasl.h" "ac_cv_header_sasl_sasl_h" "$ac_includes_default"
18200 if test "x$ac_cv_header_sasl_sasl_h" = xyes; then :
18201 ac_fn_c_check_header_mongrel "$LINENO" "sasl/saslutil.h" "ac_cv_header_sasl_saslutil_h" "$ac_includes_default"
18202 if test "x$ac_cv_header_sasl_saslutil_h" = xyes; then :
18203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prop_get in -lsasl2" >&5
18204 $as_echo_n "checking for prop_get in -lsasl2... " >&6; }
18205 if ${ac_cv_lib_sasl2_prop_get+:} false; then :
18206 $as_echo_n "(cached) " >&6
18208 ac_check_lib_save_LIBS=$LIBS
18209 LIBS="-lsasl2 $LIBS"
18210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18211 /* end confdefs.h. */
18213 /* Override any GCC internal prototype to avoid an error.
18214 Use char because int might match the return type of a GCC
18215 builtin and then its argument prototype would still apply. */
18223 return prop_get ();
18228 if ac_fn_c_try_link "$LINENO"; then :
18229 ac_cv_lib_sasl2_prop_get=yes
18231 ac_cv_lib_sasl2_prop_get=no
18233 rm -f core conftest.err conftest.$ac_objext \
18234 conftest$ac_exeext conftest.$ac_ext
18235 LIBS=$ac_check_lib_save_LIBS
18237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sasl2_prop_get" >&5
18238 $as_echo "$ac_cv_lib_sasl2_prop_get" >&6; }
18239 if test "x$ac_cv_lib_sasl2_prop_get" = xyes; then :
18255 if test "$svn_lib_sasl" = "no"; then
18256 with_sasl="/usr/local"
18262 if test "$svn_lib_sasl" = "no"; then
18263 SVN_SASL_INCLUDES="-I${with_sasl}/include"
18264 CPPFLAGS="$CPPFLAGS $SVN_SASL_INCLUDES"
18265 LDFLAGS="$LDFLAGS `
18266 input_flags="-L${with_sasl}/lib"
18268 filtered_dirs="/lib /lib64 /usr/lib /usr/lib64"
18269 for flag in $input_flags; do
18271 for dir in $filtered_dirs; do
18272 if test "$flag" = "-L$dir" || test "$flag" = "-L$dir/"; then
18277 if test "$filter" = "no"; then
18278 output_flags="$output_flags $flag"
18281 if test -n "$output_flags"; then
18282 printf "%s" "${output_flags# }"
18286 ac_fn_c_check_header_mongrel "$LINENO" "sasl/sasl.h" "ac_cv_header_sasl_sasl_h" "$ac_includes_default"
18287 if test "x$ac_cv_header_sasl_sasl_h" = xyes; then :
18288 ac_fn_c_check_header_mongrel "$LINENO" "sasl/saslutil.h" "ac_cv_header_sasl_saslutil_h" "$ac_includes_default"
18289 if test "x$ac_cv_header_sasl_saslutil_h" = xyes; then :
18290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prop_get in -lsasl2" >&5
18291 $as_echo_n "checking for prop_get in -lsasl2... " >&6; }
18292 if ${ac_cv_lib_sasl2_prop_get+:} false; then :
18293 $as_echo_n "(cached) " >&6
18295 ac_check_lib_save_LIBS=$LIBS
18296 LIBS="-lsasl2 $LIBS"
18297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18298 /* end confdefs.h. */
18300 /* Override any GCC internal prototype to avoid an error.
18301 Use char because int might match the return type of a GCC
18302 builtin and then its argument prototype would still apply. */
18310 return prop_get ();
18315 if ac_fn_c_try_link "$LINENO"; then :
18316 ac_cv_lib_sasl2_prop_get=yes
18318 ac_cv_lib_sasl2_prop_get=no
18320 rm -f core conftest.err conftest.$ac_objext \
18321 conftest$ac_exeext conftest.$ac_ext
18322 LIBS=$ac_check_lib_save_LIBS
18324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sasl2_prop_get" >&5
18325 $as_echo "$ac_cv_lib_sasl2_prop_get" >&6; }
18326 if test "x$ac_cv_lib_sasl2_prop_get" = xyes; then :
18344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for availability of Cyrus SASL v2" >&5
18345 $as_echo_n "checking for availability of Cyrus SASL v2... " >&6; }
18346 if test "$svn_lib_sasl" = "yes"; then
18347 SVN_SASL_LIBS="-lsasl2"
18348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18349 $as_echo "yes" >&6; }
18351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18352 $as_echo "no" >&6; }
18354 if test "$required" = "yes"; then
18355 as_fn_error $? "Could not find Cyrus SASL v2" "$LINENO" 5
18358 SVN_SASL_INCLUDES=""
18359 LDFLAGS="$saved_LDFLAGS"
18362 CPPFLAGS="$saved_CPPFLAGS"
18369 if test "$svn_lib_sasl" = "yes"; then
18371 $as_echo "#define SVN_HAVE_SASL 1" >>confdefs.h
18377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Mach-O dynamic module iteration functions" >&5
18378 $as_echo_n "checking for Mach-O dynamic module iteration functions... " >&6; }
18379 if test "$cross_compiling" = yes; then :
18380 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18381 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18382 as_fn_error $? "cannot run test program while cross compiling
18383 See \`config.log' for more details" "$LINENO" 5; }
18385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18386 /* end confdefs.h. */
18388 #include <mach-o/dyld.h>
18389 #include <mach-o/loader.h>
18395 const struct mach_header *header = _dyld_get_image_header(0);
18396 const char *name = _dyld_get_image_name(0);
18397 if (name && header) return 0;
18404 if ac_fn_c_try_run "$LINENO"; then :
18407 $as_echo "#define SVN_HAVE_MACHO_ITERATE 1" >>confdefs.h
18409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18410 $as_echo "yes" >&6; }
18414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18415 $as_echo "no" >&6; }
18418 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18419 conftest.$ac_objext conftest.beam conftest.$ac_ext
18424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Mac OS property list utilities" >&5
18425 $as_echo_n "checking for Mac OS property list utilities... " >&6; }
18427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18428 /* end confdefs.h. */
18430 #include <AvailabilityMacros.h>
18431 #if !defined(MAC_OS_X_VERSION_MAX_ALLOWED) \
18432 || !defined(MAC_OS_X_VERSION_10_0) \
18433 || (MAC_OS_X_VERSION_MAX_ALLOWED <= MAC_OS_X_VERSION_10_0)
18434 #error ProperyList API unavailable.
18445 if ac_fn_c_try_compile "$LINENO"; then :
18448 LIBS="$LIBS -framework CoreFoundation"
18450 $as_echo "#define SVN_HAVE_MACOS_PLIST 1" >>confdefs.h
18452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18453 $as_echo "yes" >&6; }
18457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18458 $as_echo "no" >&6; }
18461 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18464 # Check whether --enable-keychain was given.
18465 if test "${enable_keychain+set}" = set; then :
18466 enableval=$enable_keychain; enable_keychain=$enableval
18468 enable_keychain=yes
18472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Mac OS KeyChain Services" >&5
18473 $as_echo_n "checking for Mac OS KeyChain Services... " >&6; }
18475 if test "$enable_keychain" = "yes"; then
18476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18477 /* end confdefs.h. */
18479 #include <AvailabilityMacros.h>
18480 #if !defined(MAC_OS_X_VERSION_MAX_ALLOWED) \
18481 || !defined(MAC_OS_X_VERSION_10_2) \
18482 || (MAC_OS_X_VERSION_MAX_ALLOWED <= MAC_OS_X_VERSION_10_2)
18483 #error KeyChain API unavailable.
18494 if ac_fn_c_try_compile "$LINENO"; then :
18496 LIBS="$LIBS -framework Security"
18497 LIBS="$LIBS -framework CoreServices"
18499 $as_echo "#define SVN_HAVE_KEYCHAIN_SERVICES 1" >>confdefs.h
18501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18502 $as_echo "yes" >&6; }
18507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18508 $as_echo "no" >&6; }
18511 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether APR has support for DSOs" >&5
18517 $as_echo_n "checking whether APR has support for DSOs... " >&6; }
18518 old_CPPFLAGS="$CPPFLAGS"
18519 CPPFLAGS="$CPPFLAGS $SVN_APR_INCLUDES"
18520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18521 /* end confdefs.h. */
18528 if ac_fn_c_try_cpp "$LINENO"; then :
18530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18531 $as_echo "yes" >&6; }
18534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18535 $as_echo "no" >&6; }
18537 rm -f conftest.err conftest.i conftest.$ac_ext
18538 CPPFLAGS="$old_CPPFLAGS"
18542 if test -n "$PKG_CONFIG"; then
18543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for D-Bus .pc file" >&5
18544 $as_echo_n "checking for D-Bus .pc file... " >&6; }
18545 if $PKG_CONFIG --exists dbus-1; then
18546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18547 $as_echo "yes" >&6; }
18548 old_CPPFLAGS="$CPPFLAGS"
18550 DBUS_CPPFLAGS="`$PKG_CONFIG --cflags dbus-1`"
18551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking D-Bus version" >&5
18552 $as_echo_n "checking D-Bus version... " >&6; }
18553 DBUS_VERSION="`$PKG_CONFIG --modversion dbus-1`"
18554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBUS_VERSION" >&5
18555 $as_echo "$DBUS_VERSION" >&6; }
18556 # D-Bus 0.* requires DBUS_API_SUBJECT_TO_CHANGE
18557 if test -n "`echo "$DBUS_VERSION" | $EGREP '^0\.[[:digit:]]+'`"; then
18558 DBUS_CPPFLAGS="$DBUS_CPPFLAGS -DDBUS_API_SUBJECT_TO_CHANGE"
18560 DBUS_LIBS="`$PKG_CONFIG --libs dbus-1`"
18561 CPPFLAGS="$CPPFLAGS $DBUS_CPPFLAGS"
18562 LIBS="$LIBS $DBUS_LIBS"
18563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for D-Bus" >&5
18564 $as_echo_n "checking for D-Bus... " >&6; }
18565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18566 /* end confdefs.h. */
18568 #include <dbus/dbus.h>
18570 {dbus_bus_get(DBUS_BUS_SESSION, NULL);}
18572 if ac_fn_c_try_link "$LINENO"; then :
18577 rm -f core conftest.err conftest.$ac_objext \
18578 conftest$ac_exeext conftest.$ac_ext
18579 if test "$HAVE_DBUS" = "yes"; then
18580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18581 $as_echo "yes" >&6; }
18583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18584 $as_echo "no" >&6; }
18586 CPPFLAGS="$old_CPPFLAGS"
18589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18590 $as_echo "no" >&6; }
18596 # Check whether --with-gpg_agent was given.
18597 if test "${with_gpg_agent+set}" = set; then :
18598 withval=$with_gpg_agent;
18603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support GPG-Agent" >&5
18604 $as_echo_n "checking whether to support GPG-Agent... " >&6; }
18605 if test "$with_gpg_agent" = "yes"; then
18606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18607 $as_echo "yes" >&6; }
18609 $as_echo "#define SVN_HAVE_GPG_AGENT 1" >>confdefs.h
18612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18613 $as_echo "no" >&6; }
18620 # Check whether --with-gnome_keyring was given.
18621 if test "${with_gnome_keyring+set}" = set; then :
18622 withval=$with_gnome_keyring; with_gnome_keyring="$withval"
18624 with_gnome_keyring=auto
18628 found_gnome_keyring=no
18629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to look for GNOME Keyring" >&5
18630 $as_echo_n "checking whether to look for GNOME Keyring... " >&6; }
18631 if test "$with_gnome_keyring" != "no"; then
18632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18633 $as_echo "yes" >&6; }
18634 if test "$svn_enable_shared" = "yes"; then
18635 if test "$APR_HAS_DSO" = "yes"; then
18636 if test -n "$PKG_CONFIG"; then
18637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLib and GNOME Keyring .pc files" >&5
18638 $as_echo_n "checking for GLib and GNOME Keyring .pc files... " >&6; }
18639 if $PKG_CONFIG --exists glib-2.0 gnome-keyring-1; then
18640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18641 $as_echo "yes" >&6; }
18642 old_CPPFLAGS="$CPPFLAGS"
18643 SVN_GNOME_KEYRING_INCLUDES="`$PKG_CONFIG --cflags glib-2.0 gnome-keyring-1`"
18644 CPPFLAGS="$CPPFLAGS $SVN_GNOME_KEYRING_INCLUDES"
18645 ac_fn_c_check_header_mongrel "$LINENO" "gnome-keyring.h" "ac_cv_header_gnome_keyring_h" "$ac_includes_default"
18646 if test "x$ac_cv_header_gnome_keyring_h" = xyes; then :
18647 found_gnome_keyring=yes
18649 found_gnome_keyring=no
18653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNOME Keyring" >&5
18654 $as_echo_n "checking for GNOME Keyring... " >&6; }
18655 if test "$found_gnome_keyring" = "yes"; then
18656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18657 $as_echo "yes" >&6; }
18659 $as_echo "#define SVN_HAVE_GNOME_KEYRING 1" >>confdefs.h
18661 CPPFLAGS="$old_CPPFLAGS"
18662 SVN_GNOME_KEYRING_LIBS="`$PKG_CONFIG --libs glib-2.0 gnome-keyring-1`"
18664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18665 $as_echo "no" >&6; }
18666 if test "$with_gnome_keyring" = "yes"; then
18667 as_fn_error $? "cannot find GNOME Keyring" "$LINENO" 5
18671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18672 $as_echo "no" >&6; }
18673 if test "$with_gnome_keyring" = "yes"; then
18674 as_fn_error $? "cannot find GLib and GNOME Keyring .pc files." "$LINENO" 5
18676 with_gnome_keyring=no
18680 if test "$with_gnome_keyring" = "yes"; then
18681 as_fn_error $? "cannot find pkg-config. GNOME Keyring requires this." "$LINENO" 5
18683 with_gnome_keyring=no
18687 if test "$with_gnome_keyring" = "yes"; then
18688 as_fn_error $? "APR does not have support for DSOs. GNOME Keyring requires this." "$LINENO" 5
18690 with_gnome_keyring=no
18694 if test "$with_gnome_keyring" = "yes"; then
18695 as_fn_error $? "--with-gnome-keyring conflicts with --disable-shared" "$LINENO" 5
18697 with_gnome_keyring=no
18701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18702 $as_echo "no" >&6; }
18708 # Check whether --enable-ev2-impl was given.
18709 if test "${enable_ev2_impl+set}" = set; then :
18710 enableval=$enable_ev2_impl; enable_ev2_impl=$enableval
18715 if test "$enable_ev2_impl" = "yes"; then
18717 $as_echo "#define ENABLE_EV2_IMPL 1" >>confdefs.h
18723 # Check whether --enable-nls was given.
18724 if test "${enable_nls+set}" = set; then :
18725 enableval=$enable_nls; enable_nls=$enableval
18732 if test "$enable_nls" = "yes"; then
18733 # Extract the first word of "msgfmt", so it can be a program name with args.
18734 set dummy msgfmt; ac_word=$2
18735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18736 $as_echo_n "checking for $ac_word... " >&6; }
18737 if ${ac_cv_path_MSGFMT+:} false; then :
18738 $as_echo_n "(cached) " >&6
18742 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
18745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18746 for as_dir in $PATH
18749 test -z "$as_dir" && as_dir=.
18750 for ac_exec_ext in '' $ac_executable_extensions; do
18751 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18752 ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
18753 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18760 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="none"
18764 MSGFMT=$ac_cv_path_MSGFMT
18765 if test -n "$MSGFMT"; then
18766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
18767 $as_echo "$MSGFMT" >&6; }
18769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18770 $as_echo "no" >&6; }
18774 # Extract the first word of "msgmerge", so it can be a program name with args.
18775 set dummy msgmerge; ac_word=$2
18776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18777 $as_echo_n "checking for $ac_word... " >&6; }
18778 if ${ac_cv_path_MSGMERGE+:} false; then :
18779 $as_echo_n "(cached) " >&6
18783 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
18786 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18787 for as_dir in $PATH
18790 test -z "$as_dir" && as_dir=.
18791 for ac_exec_ext in '' $ac_executable_extensions; do
18792 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18793 ac_cv_path_MSGMERGE="$as_dir/$ac_word$ac_exec_ext"
18794 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18801 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE="none"
18805 MSGMERGE=$ac_cv_path_MSGMERGE
18806 if test -n "$MSGMERGE"; then
18807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
18808 $as_echo "$MSGMERGE" >&6; }
18810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18811 $as_echo "no" >&6; }
18815 # Extract the first word of "xgettext", so it can be a program name with args.
18816 set dummy xgettext; ac_word=$2
18817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18818 $as_echo_n "checking for $ac_word... " >&6; }
18819 if ${ac_cv_path_XGETTEXT+:} false; then :
18820 $as_echo_n "(cached) " >&6
18824 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
18827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18828 for as_dir in $PATH
18831 test -z "$as_dir" && as_dir=.
18832 for ac_exec_ext in '' $ac_executable_extensions; do
18833 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18834 ac_cv_path_XGETTEXT="$as_dir/$ac_word$ac_exec_ext"
18835 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18842 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT="none"
18846 XGETTEXT=$ac_cv_path_XGETTEXT
18847 if test -n "$XGETTEXT"; then
18848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
18849 $as_echo "$XGETTEXT" >&6; }
18851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18852 $as_echo "no" >&6; }
18856 if test "$MSGFMT" != "none"; then
18857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing bindtextdomain" >&5
18858 $as_echo_n "checking for library containing bindtextdomain... " >&6; }
18859 if ${ac_cv_search_bindtextdomain+:} false; then :
18860 $as_echo_n "(cached) " >&6
18862 ac_func_search_save_LIBS=$LIBS
18863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18864 /* end confdefs.h. */
18866 /* Override any GCC internal prototype to avoid an error.
18867 Use char because int might match the return type of a GCC
18868 builtin and then its argument prototype would still apply. */
18872 char bindtextdomain ();
18876 return bindtextdomain ();
18881 for ac_lib in '' intl; do
18882 if test -z "$ac_lib"; then
18883 ac_res="none required"
18886 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18888 if ac_fn_c_try_link "$LINENO"; then :
18889 ac_cv_search_bindtextdomain=$ac_res
18891 rm -f core conftest.err conftest.$ac_objext \
18893 if ${ac_cv_search_bindtextdomain+:} false; then :
18897 if ${ac_cv_search_bindtextdomain+:} false; then :
18900 ac_cv_search_bindtextdomain=no
18902 rm conftest.$ac_ext
18903 LIBS=$ac_func_search_save_LIBS
18905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_bindtextdomain" >&5
18906 $as_echo "$ac_cv_search_bindtextdomain" >&6; }
18907 ac_res=$ac_cv_search_bindtextdomain
18908 if test "$ac_res" != no; then :
18909 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18917 if test "$enable_nls" = "no"; then
18918 # Destroy the cached result so we can test again
18919 unset ac_cv_search_bindtextdomain
18920 # On some systems, libintl needs libiconv to link properly,
18921 # so try again with -liconv.
18922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing bindtextdomain" >&5
18923 $as_echo_n "checking for library containing bindtextdomain... " >&6; }
18924 if ${ac_cv_search_bindtextdomain+:} false; then :
18925 $as_echo_n "(cached) " >&6
18927 ac_func_search_save_LIBS=$LIBS
18928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18929 /* end confdefs.h. */
18931 /* Override any GCC internal prototype to avoid an error.
18932 Use char because int might match the return type of a GCC
18933 builtin and then its argument prototype would still apply. */
18937 char bindtextdomain ();
18941 return bindtextdomain ();
18946 for ac_lib in '' intl; do
18947 if test -z "$ac_lib"; then
18948 ac_res="none required"
18951 LIBS="-l$ac_lib -liconv $ac_func_search_save_LIBS"
18953 if ac_fn_c_try_link "$LINENO"; then :
18954 ac_cv_search_bindtextdomain=$ac_res
18956 rm -f core conftest.err conftest.$ac_objext \
18958 if ${ac_cv_search_bindtextdomain+:} false; then :
18962 if ${ac_cv_search_bindtextdomain+:} false; then :
18965 ac_cv_search_bindtextdomain=no
18967 rm conftest.$ac_ext
18968 LIBS=$ac_func_search_save_LIBS
18970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_bindtextdomain" >&5
18971 $as_echo "$ac_cv_search_bindtextdomain" >&6; }
18972 ac_res=$ac_cv_search_bindtextdomain
18973 if test "$ac_res" != no; then :
18974 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18977 # This is here so that -liconv ends up in LIBS
18978 # if it worked with -liconv.
18979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libiconv_open in -liconv" >&5
18980 $as_echo_n "checking for libiconv_open in -liconv... " >&6; }
18981 if ${ac_cv_lib_iconv_libiconv_open+:} false; then :
18982 $as_echo_n "(cached) " >&6
18984 ac_check_lib_save_LIBS=$LIBS
18985 LIBS="-liconv $LIBS"
18986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18987 /* end confdefs.h. */
18989 /* Override any GCC internal prototype to avoid an error.
18990 Use char because int might match the return type of a GCC
18991 builtin and then its argument prototype would still apply. */
18995 char libiconv_open ();
18999 return libiconv_open ();
19004 if ac_fn_c_try_link "$LINENO"; then :
19005 ac_cv_lib_iconv_libiconv_open=yes
19007 ac_cv_lib_iconv_libiconv_open=no
19009 rm -f core conftest.err conftest.$ac_objext \
19010 conftest$ac_exeext conftest.$ac_ext
19011 LIBS=$ac_check_lib_save_LIBS
19013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_iconv_libiconv_open" >&5
19014 $as_echo "$ac_cv_lib_iconv_libiconv_open" >&6; }
19015 if test "x$ac_cv_lib_iconv_libiconv_open" = xyes; then :
19016 cat >>confdefs.h <<_ACEOF
19017 #define HAVE_LIBICONV 1
19020 LIBS="-liconv $LIBS"
19027 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: bindtextdomain() not found. Disabling NLS." >&5
19028 $as_echo "$as_me: WARNING: bindtextdomain() not found. Disabling NLS." >&2;}
19034 if test "$enable_nls" = "yes"; then
19036 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
19046 NO_GETTEXT_CODESET=\#
19047 if test $USE_NLS = "yes"; then
19048 for ac_func in bind_textdomain_codeset
19050 ac_fn_c_check_func "$LINENO" "bind_textdomain_codeset" "ac_cv_func_bind_textdomain_codeset"
19051 if test "x$ac_cv_func_bind_textdomain_codeset" = xyes; then :
19052 cat >>confdefs.h <<_ACEOF
19053 #define HAVE_BIND_TEXTDOMAIN_CODESET 1
19057 NO_GETTEXT_CODESET=""
19065 # Check if we are using GNU gettext.
19068 if test $USE_NLS = "yes"; then
19069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we are using GNU gettext" >&5
19070 $as_echo_n "checking if we are using GNU gettext... " >&6; }
19071 if $MSGFMT --version 2>&1 | $EGREP GNU > /dev/null; then
19075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNU_GETTEXT" >&5
19076 $as_echo "$GNU_GETTEXT" >&6; }
19084 # Check whether --with-libmagic was given.
19085 if test "${with_libmagic+set}" = set; then :
19086 withval=$with_libmagic;
19087 if test "$withval" = "yes" ; then
19088 ac_fn_c_check_header_mongrel "$LINENO" "magic.h" "ac_cv_header_magic_h" "$ac_includes_default"
19089 if test "x$ac_cv_header_magic_h" = xyes; then :
19091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for magic_open in -lmagic" >&5
19092 $as_echo_n "checking for magic_open in -lmagic... " >&6; }
19093 if ${ac_cv_lib_magic_magic_open+:} false; then :
19094 $as_echo_n "(cached) " >&6
19096 ac_check_lib_save_LIBS=$LIBS
19097 LIBS="-lmagic $LIBS"
19098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19099 /* end confdefs.h. */
19101 /* Override any GCC internal prototype to avoid an error.
19102 Use char because int might match the return type of a GCC
19103 builtin and then its argument prototype would still apply. */
19107 char magic_open ();
19111 return magic_open ();
19116 if ac_fn_c_try_link "$LINENO"; then :
19117 ac_cv_lib_magic_magic_open=yes
19119 ac_cv_lib_magic_magic_open=no
19121 rm -f core conftest.err conftest.$ac_objext \
19122 conftest$ac_exeext conftest.$ac_ext
19123 LIBS=$ac_check_lib_save_LIBS
19125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_magic_magic_open" >&5
19126 $as_echo "$ac_cv_lib_magic_magic_open" >&6; }
19127 if test "x$ac_cv_lib_magic_magic_open" = xyes; then :
19128 libmagic_found="builtin"
19135 libmagic_prefix="the default locations"
19136 elif test "$withval" != "no"; then
19137 libmagic_prefix=$withval
19138 save_cppflags="$CPPFLAGS"
19139 CPPFLAGS="$CPPFLAGS -I$libmagic_prefix/include"
19140 for ac_header in magic.h
19142 ac_fn_c_check_header_mongrel "$LINENO" "magic.h" "ac_cv_header_magic_h" "$ac_includes_default"
19143 if test "x$ac_cv_header_magic_h" = xyes; then :
19144 cat >>confdefs.h <<_ACEOF
19145 #define HAVE_MAGIC_H 1
19148 save_ldflags="$LDFLAGS"
19149 LDFLAGS="-L$libmagic_prefix/lib"
19150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for magic_open in -lmagic" >&5
19151 $as_echo_n "checking for magic_open in -lmagic... " >&6; }
19152 if ${ac_cv_lib_magic_magic_open+:} false; then :
19153 $as_echo_n "(cached) " >&6
19155 ac_check_lib_save_LIBS=$LIBS
19156 LIBS="-lmagic $LIBS"
19157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19158 /* end confdefs.h. */
19160 /* Override any GCC internal prototype to avoid an error.
19161 Use char because int might match the return type of a GCC
19162 builtin and then its argument prototype would still apply. */
19166 char magic_open ();
19170 return magic_open ();
19175 if ac_fn_c_try_link "$LINENO"; then :
19176 ac_cv_lib_magic_magic_open=yes
19178 ac_cv_lib_magic_magic_open=no
19180 rm -f core conftest.err conftest.$ac_objext \
19181 conftest$ac_exeext conftest.$ac_ext
19182 LIBS=$ac_check_lib_save_LIBS
19184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_magic_magic_open" >&5
19185 $as_echo "$ac_cv_lib_magic_magic_open" >&6; }
19186 if test "x$ac_cv_lib_magic_magic_open" = xyes; then :
19187 libmagic_found="yes"
19190 LDFLAGS="$save_ldflags"
19196 CPPFLAGS="$save_cppflags"
19198 if test "$withval" != "no" && test "$libmagic_found" = "no"; then
19199 as_fn_error $? "--with-libmagic requested, but libmagic not found at $libmagic_prefix" "$LINENO" 5
19204 ac_fn_c_check_header_mongrel "$LINENO" "magic.h" "ac_cv_header_magic_h" "$ac_includes_default"
19205 if test "x$ac_cv_header_magic_h" = xyes; then :
19207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for magic_open in -lmagic" >&5
19208 $as_echo_n "checking for magic_open in -lmagic... " >&6; }
19209 if ${ac_cv_lib_magic_magic_open+:} false; then :
19210 $as_echo_n "(cached) " >&6
19212 ac_check_lib_save_LIBS=$LIBS
19213 LIBS="-lmagic $LIBS"
19214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19215 /* end confdefs.h. */
19217 /* Override any GCC internal prototype to avoid an error.
19218 Use char because int might match the return type of a GCC
19219 builtin and then its argument prototype would still apply. */
19223 char magic_open ();
19227 return magic_open ();
19232 if ac_fn_c_try_link "$LINENO"; then :
19233 ac_cv_lib_magic_magic_open=yes
19235 ac_cv_lib_magic_magic_open=no
19237 rm -f core conftest.err conftest.$ac_objext \
19238 conftest$ac_exeext conftest.$ac_ext
19239 LIBS=$ac_check_lib_save_LIBS
19241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_magic_magic_open" >&5
19242 $as_echo "$ac_cv_lib_magic_magic_open" >&6; }
19243 if test "x$ac_cv_lib_magic_magic_open" = xyes; then :
19244 libmagic_found="builtin"
19255 if test "$libmagic_found" != "no"; then
19257 $as_echo "#define SVN_HAVE_LIBMAGIC 1" >>confdefs.h
19259 SVN_MAGIC_LIBS="-lmagic"
19262 if test "$libmagic_found" = "yes"; then
19263 SVN_MAGIC_INCLUDES="-I$libmagic_prefix/include"
19264 LDFLAGS="$LDFLAGS `
19265 input_flags="-L$libmagic_prefix/lib"
19267 filtered_dirs="/lib /lib64 /usr/lib /usr/lib64"
19268 for flag in $input_flags; do
19270 for dir in $filtered_dirs; do
19271 if test "$flag" = "-L$dir" || test "$flag" = "-L$dir/"; then
19276 if test "$filter" = "no"; then
19277 output_flags="$output_flags $flag"
19280 if test -n "$output_flags"; then
19281 printf "%s" "${output_flags# }"
19291 # Check whether --with-kwallet was given.
19292 if test "${with_kwallet+set}" = set; then :
19293 withval=$with_kwallet; svn_lib_kwallet="$withval"
19299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to look for KWallet" >&5
19300 $as_echo_n "checking whether to look for KWallet... " >&6; }
19301 if test "$svn_lib_kwallet" != "no"; then
19302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19303 $as_echo "yes" >&6; }
19304 if test "$svn_enable_shared" = "yes"; then
19305 if test "$APR_HAS_DSO" = "yes"; then
19306 if test -n "$PKG_CONFIG"; then
19307 if test "$HAVE_DBUS" = "yes"; then
19308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for QtCore, QtDBus, QtGui" >&5
19309 $as_echo_n "checking for QtCore, QtDBus, QtGui... " >&6; }
19310 if $PKG_CONFIG --exists QtCore QtDBus QtGui; then
19311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19312 $as_echo "yes" >&6; }
19313 if test "$svn_lib_kwallet" != "yes"; then
19314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kde4-config" >&5
19315 $as_echo_n "checking for kde4-config... " >&6; }
19316 KDE4_CONFIG="$svn_lib_kwallet/bin/kde4-config"
19317 if test -f "$KDE4_CONFIG" && test -x "$KDE4_CONFIG"; then
19318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19319 $as_echo "yes" >&6; }
19322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19323 $as_echo "no" >&6; }
19326 # Extract the first word of "kde4-config", so it can be a program name with args.
19327 set dummy kde4-config; ac_word=$2
19328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19329 $as_echo_n "checking for $ac_word... " >&6; }
19330 if ${ac_cv_path_KDE4_CONFIG+:} false; then :
19331 $as_echo_n "(cached) " >&6
19333 case $KDE4_CONFIG in
19335 ac_cv_path_KDE4_CONFIG="$KDE4_CONFIG" # Let the user override the test with a path.
19338 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19339 for as_dir in $PATH
19342 test -z "$as_dir" && as_dir=.
19343 for ac_exec_ext in '' $ac_executable_extensions; do
19344 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19345 ac_cv_path_KDE4_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19346 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19356 KDE4_CONFIG=$ac_cv_path_KDE4_CONFIG
19357 if test -n "$KDE4_CONFIG"; then
19358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $KDE4_CONFIG" >&5
19359 $as_echo "$KDE4_CONFIG" >&6; }
19361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19362 $as_echo "no" >&6; }
19367 if test -n "$KDE4_CONFIG"; then
19368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for KWallet" >&5
19369 $as_echo_n "checking for KWallet... " >&6; }
19370 old_CXXFLAGS="$CXXFLAGS"
19371 old_LDFLAGS="$LDFLAGS"
19373 for d in `$PKG_CONFIG --cflags QtCore QtDBus QtGui`; do
19374 if test -n "`echo "$d" | $EGREP -- '^-D[^[:space:]]*'`"; then
19375 CPPFLAGS="$CPPFLAGS $d"
19378 qt_include_dirs="`$PKG_CONFIG --cflags-only-I QtCore QtDBus QtGui`"
19379 kde_dir="`$KDE4_CONFIG --prefix`"
19380 SVN_KWALLET_INCLUDES="$DBUS_CPPFLAGS $qt_include_dirs -I$kde_dir/include"
19381 qt_libs_other_options="`$PKG_CONFIG --libs-only-other QtCore QtDBus QtGui`"
19382 SVN_KWALLET_LIBS="$DBUS_LIBS -lQtCore -lQtDBus -lQtGui -lkdecore -lkdeui $qt_libs_other_options"
19383 CXXFLAGS="$CXXFLAGS $SVN_KWALLET_INCLUDES"
19384 LIBS="$LIBS $SVN_KWALLET_LIBS"
19385 qt_lib_dirs="`$PKG_CONFIG --libs-only-L QtCore QtDBus QtGui`"
19386 kde_lib_suffix="`$KDE4_CONFIG --libsuffix`"
19387 LDFLAGS="$old_LDFLAGS `
19388 input_flags="$qt_lib_dirs -L$kde_dir/lib$kde_lib_suffix"
19390 filtered_dirs="/lib /lib64 /usr/lib /usr/lib64"
19391 for flag in $input_flags; do
19393 for dir in $filtered_dirs; do
19394 if test "$flag" = "-L$dir" || test "$flag" = "-L$dir/"; then
19399 if test "$filter" = "no"; then
19400 output_flags="$output_flags $flag"
19403 if test -n "$output_flags"; then
19404 printf "%s" "${output_flags# }"
19408 ac_cpp='$CXXCPP $CPPFLAGS'
19409 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19410 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19411 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19414 /* end confdefs.h. */
19416 #include <kwallet.h>
19418 {KWallet::Wallet::walletList();}
19420 if ac_fn_cxx_try_link "$LINENO"; then :
19421 svn_lib_kwallet="yes"
19423 svn_lib_kwallet="no"
19425 rm -f core conftest.err conftest.$ac_objext \
19426 conftest$ac_exeext conftest.$ac_ext
19428 ac_cpp='$CPP $CPPFLAGS'
19429 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19430 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19431 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19433 if test "$svn_lib_kwallet" = "yes"; then
19434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19435 $as_echo "yes" >&6; }
19436 CXXFLAGS="$old_CXXFLAGS"
19439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19440 $as_echo "no" >&6; }
19441 as_fn_error $? "cannot find KWallet" "$LINENO" 5
19444 as_fn_error $? "cannot find kde4-config" "$LINENO" 5
19447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19448 $as_echo "no" >&6; }
19449 as_fn_error $? "cannot find QtCore, QtDBus, QtGui" "$LINENO" 5
19452 as_fn_error $? "cannot find D-Bus" "$LINENO" 5
19455 as_fn_error $? "cannot find pkg-config" "$LINENO" 5
19458 as_fn_error $? "APR does not have support for DSOs" "$LINENO" 5
19461 as_fn_error $? "--with-kwallet conflicts with --disable-shared" "$LINENO" 5
19464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19465 $as_echo "no" >&6; }
19471 if test "$svn_lib_kwallet" = "yes"; then
19473 $as_echo "#define SVN_HAVE_KWALLET 1" >>confdefs.h
19477 # Check whether --enable-plaintext-password-storage was given.
19478 if test "${enable_plaintext_password_storage+set}" = set; then :
19479 enableval=$enable_plaintext_password_storage;
19480 if test "$enableval" = "no"; then
19481 { $as_echo "$as_me:${as_lineno-$LINENO}: Disabling plaintext password/passphrase storage" >&5
19482 $as_echo "$as_me: Disabling plaintext password/passphrase storage" >&6;}
19484 $as_echo "#define SVN_DISABLE_PLAINTEXT_PASSWORD_STORAGE 1" >>confdefs.h
19492 INSTALL_STATIC_RULES="install-bin install-docs"
19493 INSTALL_RULES="install-fsmod-lib install-ramod-lib install-lib install-include install-static"
19494 INSTALL_RULES="$INSTALL_RULES $INSTALL_APACHE_RULE"
19495 BUILD_RULES="fsmod-lib ramod-lib lib bin test sub-test $BUILD_APACHE_RULE tools"
19497 if test "$svn_lib_berkeley_db" = "yes"; then
19498 BUILD_RULES="$BUILD_RULES bdb-lib bdb-test"
19499 INSTALL_RULES="`echo $INSTALL_RULES | $SED 's/install-fsmod-lib/install-fsmod-lib install-bdb-lib/'`"
19500 INSTALL_STATIC_RULES="$INSTALL_STATIC_RULES install-bdb-lib"
19501 BDB_TEST_DEPS="\$(BDB_TEST_DEPS)"
19502 BDB_TEST_PROGRAMS="\$(BDB_TEST_PROGRAMS)"
19505 if test "$svn_lib_serf" = "yes"; then
19506 BUILD_RULES="$BUILD_RULES serf-lib"
19507 INSTALL_RULES="`echo $INSTALL_RULES | $SED 's/install-ramod-lib/install-ramod-lib install-serf-lib/'`"
19508 INSTALL_STATIC_RULES="$INSTALL_STATIC_RULES install-serf-lib"
19511 if test "$svn_lib_kwallet" = "yes"; then
19512 BUILD_RULES="$BUILD_RULES kwallet-lib"
19513 INSTALL_RULES="`echo $INSTALL_RULES | $SED 's/install-lib/install-lib install-kwallet-lib/'`"
19514 INSTALL_STATIC_RULES="$INSTALL_STATIC_RULES install-kwallet-lib"
19517 if test "$found_gnome_keyring" = "yes"; then
19518 BUILD_RULES="$BUILD_RULES gnome-keyring-lib"
19519 INSTALL_RULES="`echo $INSTALL_RULES | $SED 's/install-lib/install-lib install-gnome-keyring-lib/'`"
19520 INSTALL_STATIC_RULES="$INSTALL_STATIC_RULES install-gnome-keyring-lib"
19523 if test "$USE_NLS" = "yes"; then
19524 BUILD_RULES="$BUILD_RULES locale"
19525 INSTALL_RULES="$INSTALL_RULES install-locale"
19535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
19536 $as_echo_n "checking for ANSI C header files... " >&6; }
19537 if ${ac_cv_header_stdc+:} false; then :
19538 $as_echo_n "(cached) " >&6
19540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19541 /* end confdefs.h. */
19542 #include <stdlib.h>
19543 #include <stdarg.h>
19544 #include <string.h>
19555 if ac_fn_c_try_compile "$LINENO"; then :
19556 ac_cv_header_stdc=yes
19558 ac_cv_header_stdc=no
19560 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19562 if test $ac_cv_header_stdc = yes; then
19563 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
19564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19565 /* end confdefs.h. */
19566 #include <string.h>
19569 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19570 $EGREP "memchr" >/dev/null 2>&1; then :
19573 ac_cv_header_stdc=no
19579 if test $ac_cv_header_stdc = yes; then
19580 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
19581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19582 /* end confdefs.h. */
19583 #include <stdlib.h>
19586 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19587 $EGREP "free" >/dev/null 2>&1; then :
19590 ac_cv_header_stdc=no
19596 if test $ac_cv_header_stdc = yes; then
19597 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
19598 if test "$cross_compiling" = yes; then :
19601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19602 /* end confdefs.h. */
19604 #include <stdlib.h>
19605 #if ((' ' & 0x0FF) == 0x020)
19606 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
19607 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
19609 # define ISLOWER(c) \
19610 (('a' <= (c) && (c) <= 'i') \
19611 || ('j' <= (c) && (c) <= 'r') \
19612 || ('s' <= (c) && (c) <= 'z'))
19613 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
19616 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
19621 for (i = 0; i < 256; i++)
19622 if (XOR (islower (i), ISLOWER (i))
19623 || toupper (i) != TOUPPER (i))
19628 if ac_fn_c_try_run "$LINENO"; then :
19631 ac_cv_header_stdc=no
19633 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19634 conftest.$ac_objext conftest.beam conftest.$ac_ext
19639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
19640 $as_echo "$ac_cv_header_stdc" >&6; }
19641 if test $ac_cv_header_stdc = yes; then
19643 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
19649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
19650 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
19651 if ${ac_cv_c_const+:} false; then :
19652 $as_echo_n "(cached) " >&6
19654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19655 /* end confdefs.h. */
19661 #ifndef __cplusplus
19662 /* Ultrix mips cc rejects this sort of thing. */
19663 typedef int charset[2];
19664 const charset cs = { 0, 0 };
19665 /* SunOS 4.1.1 cc rejects this. */
19666 char const *const *pcpcc;
19668 /* NEC SVR4.0.2 mips cc rejects this. */
19669 struct point {int x, y;};
19670 static struct point const zero = {0,0};
19671 /* AIX XL C 1.02.0.0 rejects this.
19672 It does not let you subtract one const X* pointer from another in
19673 an arm of an if-expression whose if-part is not a constant
19675 const char *g = "string";
19676 pcpcc = &g + (g ? g-g : 0);
19677 /* HPUX 7.0 cc rejects these. */
19679 ppc = (char**) pcpcc;
19680 pcpcc = (char const *const *) ppc;
19681 { /* SCO 3.2v4 cc rejects this sort of thing. */
19684 char const *s = 0 ? (char *) 0 : (char const *) 0;
19689 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
19690 int x[] = {25, 17};
19691 const int *foo = &x[0];
19694 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
19695 typedef const int *iptr;
19699 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
19700 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
19701 struct s { int j; const int *ap[3]; } bx;
19702 struct s *b = &bx; b->j = 5;
19704 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
19705 const int foo = 10;
19706 if (!foo) return 0;
19708 return !cs[0] && !zero.x;
19715 if ac_fn_c_try_compile "$LINENO"; then :
19720 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
19723 $as_echo "$ac_cv_c_const" >&6; }
19724 if test $ac_cv_c_const = no; then
19726 $as_echo "#define const /**/" >>confdefs.h
19731 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
19732 if test "x$ac_cv_type_size_t" = xyes; then :
19736 cat >>confdefs.h <<_ACEOF
19737 #define size_t unsigned int
19745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
19746 $as_echo_n "checking for working memcmp... " >&6; }
19747 if ${ac_cv_func_memcmp_working+:} false; then :
19748 $as_echo_n "(cached) " >&6
19750 if test "$cross_compiling" = yes; then :
19751 ac_cv_func_memcmp_working=no
19753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19754 /* end confdefs.h. */
19755 $ac_includes_default
19760 /* Some versions of memcmp are not 8-bit clean. */
19761 char c0 = '\100', c1 = '\200', c2 = '\201';
19762 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
19765 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
19766 or more and with at least one buffer not starting on a 4-byte boundary.
19767 William Lewis provided this test program. */
19772 for (i = 0; i < 4; i++)
19776 strcpy (a, "--------01111111");
19777 strcpy (b, "--------10000000");
19778 if (memcmp (a, b, 16) >= 0)
19788 if ac_fn_c_try_run "$LINENO"; then :
19789 ac_cv_func_memcmp_working=yes
19791 ac_cv_func_memcmp_working=no
19793 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19794 conftest.$ac_objext conftest.beam conftest.$ac_ext
19798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
19799 $as_echo "$ac_cv_func_memcmp_working" >&6; }
19800 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
19801 *" memcmp.$ac_objext "* ) ;;
19802 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
19808 for ac_func in vprintf
19810 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
19811 if test "x$ac_cv_func_vprintf" = xyes; then :
19812 cat >>confdefs.h <<_ACEOF
19813 #define HAVE_VPRINTF 1
19816 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
19817 if test "x$ac_cv_func__doprnt" = xyes; then :
19819 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
19828 for ac_func in symlink readlink
19830 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19831 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19832 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
19833 cat >>confdefs.h <<_ACEOF
19834 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19841 for ac_header in sys/utsname.h
19843 ac_fn_c_check_header_mongrel "$LINENO" "sys/utsname.h" "ac_cv_header_sys_utsname_h" "$ac_includes_default"
19844 if test "x$ac_cv_header_sys_utsname_h" = xyes; then :
19845 cat >>confdefs.h <<_ACEOF
19846 #define HAVE_SYS_UTSNAME_H 1
19848 for ac_func in uname
19850 ac_fn_c_check_func "$LINENO" "uname" "ac_cv_func_uname"
19851 if test "x$ac_cv_func_uname" = xyes; then :
19852 cat >>confdefs.h <<_ACEOF
19853 #define HAVE_UNAME 1
19864 ac_fn_c_check_header_mongrel "$LINENO" "termios.h" "ac_cv_header_termios_h" "$ac_includes_default"
19865 if test "x$ac_cv_header_termios_h" = xyes; then :
19867 for ac_func in tcgetattr tcsetattr
19869 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19870 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19871 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
19872 cat >>confdefs.h <<_ACEOF
19873 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19877 $as_echo "#define HAVE_TERMIOS_H 1" >>confdefs.h
19890 # Check whether --with-openssl was given.
19891 if test "${with_openssl+set}" = set; then :
19892 withval=$with_openssl;
19896 # Check whether --enable-debug was given.
19897 if test "${enable_debug+set}" = set; then :
19898 enableval=$enable_debug;
19899 if test "$enableval" = "yes" ; then
19900 enable_debugging="yes"
19902 enable_debugging="no"
19907 # Neither --enable-debug nor --disable-debug was passed.
19908 enable_debugging="maybe"
19913 # Check whether --enable-optimize was given.
19914 if test "${enable_optimize+set}" = set; then :
19915 enableval=$enable_optimize;
19916 if test "$enableval" = "yes" ; then
19917 enable_optimization="yes"
19919 enable_optimization="no"
19924 # Neither --enable-optimize nor --disable-optimize was passed.
19925 enable_optimization="maybe"
19930 # Check whether --enable-disallowing-of-undefined-references was given.
19931 if test "${enable_disallowing_of_undefined_references+set}" = set; then :
19932 enableval=$enable_disallowing_of_undefined_references;
19935 if test "$enable_disallowing_of_undefined_references" != "yes" && test "`uname`" != "Linux"; then
19936 enable_disallowing_of_undefined_references="no"
19938 if test "$enable_disallowing_of_undefined_references" != "no"; then
19939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -Wl,--no-undefined" >&5
19940 $as_echo_n "checking for -Wl,--no-undefined... " >&6; }
19941 old_LDFLAGS="$LDFLAGS"
19942 LDFLAGS="$LDFLAGS -Wl,--no-undefined"
19943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19944 /* end confdefs.h. */
19947 if ac_fn_c_try_link "$LINENO"; then :
19948 svn_wl_no_undefined="yes"
19950 svn_wl_no_undefined="no"
19952 rm -f core conftest.err conftest.$ac_objext \
19953 conftest$ac_exeext conftest.$ac_ext
19954 LDFLAGS="$old_LDFLAGS"
19955 if test "$svn_wl_no_undefined" = "yes"; then
19956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19957 $as_echo "yes" >&6; }
19958 for library_dir in "$abs_srcdir/subversion/libsvn_"*; do
19959 eval "`basename $library_dir`_LDFLAGS=-Wl,--no-undefined"
19962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19963 $as_echo "no" >&6; }
19964 if test "$enable_disallowing_of_undefined_references" = "yes"; then
19965 as_fn_error $? "--enable-disallowing-of-undefined-references explicitly requested, but -Wl,--no-undefined not supported" "$LINENO" 5
19987 # Check whether --enable-maintainer-mode was given.
19988 if test "${enable_maintainer_mode+set}" = set; then :
19989 enableval=$enable_maintainer_mode;
19990 if test "$enableval" = "yes" ; then
19991 if test "$enable_debugging" = "no" ; then
19992 as_fn_error $? "Can't have --disable-debug and --enable-maintainer-mode" "$LINENO" 5
19994 enable_debugging=yes
19996 if test "$GCC" = "yes"; then
19997 { $as_echo "$as_me:${as_lineno-$LINENO}: maintainer-mode: adding GCC warning flags" >&5
19998 $as_echo "$as_me: maintainer-mode: adding GCC warning flags" >&6;}
20001 CFLAGS_KEEP="$CFLAGS"
20005 _svn_xxflags__save="$CFLAGS"
20007 ac_cpp='$CPP $CPPFLAGS'
20008 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20009 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20010 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -Werror=implicit-function-declaration" >&5
20013 $as_echo_n "checking if $CC accepts -Werror=implicit-function-declaration... " >&6; }
20014 CFLAGS="-Werror=implicit-function-declaration $CFLAGS"
20015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20016 /* end confdefs.h. */
20019 if ac_fn_c_try_compile "$LINENO"; then :
20021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20022 $as_echo "yes" >&6; }
20027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20028 $as_echo "no" >&6; }
20029 CFLAGS="$_svn_xxflags__save"
20033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20035 ac_cpp='$CPP $CPPFLAGS'
20036 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20037 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20038 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20042 _svn_xxflags__save="$CFLAGS"
20044 ac_cpp='$CPP $CPPFLAGS'
20045 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20046 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20047 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -Werror=declaration-after-statement" >&5
20050 $as_echo_n "checking if $CC accepts -Werror=declaration-after-statement... " >&6; }
20051 CFLAGS="-Werror=declaration-after-statement $CFLAGS"
20052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20053 /* end confdefs.h. */
20056 if ac_fn_c_try_compile "$LINENO"; then :
20058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20059 $as_echo "yes" >&6; }
20064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20065 $as_echo "no" >&6; }
20066 CFLAGS="$_svn_xxflags__save"
20070 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20072 ac_cpp='$CPP $CPPFLAGS'
20073 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20074 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20075 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20079 _svn_xxflags__save="$CFLAGS"
20081 ac_cpp='$CPP $CPPFLAGS'
20082 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20083 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20084 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -Wextra-tokens" >&5
20087 $as_echo_n "checking if $CC accepts -Wextra-tokens... " >&6; }
20088 CFLAGS="-Wextra-tokens $CFLAGS"
20089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20090 /* end confdefs.h. */
20093 if ac_fn_c_try_compile "$LINENO"; then :
20095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20096 $as_echo "yes" >&6; }
20101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20102 $as_echo "no" >&6; }
20103 CFLAGS="$_svn_xxflags__save"
20107 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20109 ac_cpp='$CPP $CPPFLAGS'
20110 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20111 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20112 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20116 _svn_xxflags__save="$CFLAGS"
20118 ac_cpp='$CPP $CPPFLAGS'
20119 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20120 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20121 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -Wnewline-eof" >&5
20124 $as_echo_n "checking if $CC accepts -Wnewline-eof... " >&6; }
20125 CFLAGS="-Wnewline-eof $CFLAGS"
20126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20127 /* end confdefs.h. */
20130 if ac_fn_c_try_compile "$LINENO"; then :
20132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20133 $as_echo "yes" >&6; }
20138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20139 $as_echo "no" >&6; }
20140 CFLAGS="$_svn_xxflags__save"
20144 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20146 ac_cpp='$CPP $CPPFLAGS'
20147 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20148 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20149 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20153 _svn_xxflags__save="$CFLAGS"
20155 ac_cpp='$CPP $CPPFLAGS'
20156 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20157 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20158 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -Wshorten-64-to-32" >&5
20161 $as_echo_n "checking if $CC accepts -Wshorten-64-to-32... " >&6; }
20162 CFLAGS="-Wshorten-64-to-32 $CFLAGS"
20163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20164 /* end confdefs.h. */
20167 if ac_fn_c_try_compile "$LINENO"; then :
20169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20170 $as_echo "yes" >&6; }
20175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20176 $as_echo "no" >&6; }
20177 CFLAGS="$_svn_xxflags__save"
20181 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20183 ac_cpp='$CPP $CPPFLAGS'
20184 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20185 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20186 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20190 _svn_xxflags__save="$CFLAGS"
20192 ac_cpp='$CPP $CPPFLAGS'
20193 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20194 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20195 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -Wold-style-definition" >&5
20198 $as_echo_n "checking if $CC accepts -Wold-style-definition... " >&6; }
20199 CFLAGS="-Wold-style-definition $CFLAGS"
20200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20201 /* end confdefs.h. */
20204 if ac_fn_c_try_compile "$LINENO"; then :
20206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20207 $as_echo "yes" >&6; }
20212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20213 $as_echo "no" >&6; }
20214 CFLAGS="$_svn_xxflags__save"
20218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20220 ac_cpp='$CPP $CPPFLAGS'
20221 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20222 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20223 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20227 _svn_xxflags__save="$CFLAGS"
20229 ac_cpp='$CPP $CPPFLAGS'
20230 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20231 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20232 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -Wno-system-headers" >&5
20235 $as_echo_n "checking if $CC accepts -Wno-system-headers... " >&6; }
20236 CFLAGS="-Wno-system-headers $CFLAGS"
20237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20238 /* end confdefs.h. */
20241 if ac_fn_c_try_compile "$LINENO"; then :
20243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20244 $as_echo "yes" >&6; }
20249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20250 $as_echo "no" >&6; }
20251 CFLAGS="$_svn_xxflags__save"
20255 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20257 ac_cpp='$CPP $CPPFLAGS'
20258 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20259 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20260 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20264 _svn_xxflags__save="$CFLAGS"
20266 ac_cpp='$CPP $CPPFLAGS'
20267 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20268 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20269 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -Wno-format-nonliteral" >&5
20272 $as_echo_n "checking if $CC accepts -Wno-format-nonliteral... " >&6; }
20273 CFLAGS="-Wno-format-nonliteral $CFLAGS"
20274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20275 /* end confdefs.h. */
20278 if ac_fn_c_try_compile "$LINENO"; then :
20280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20281 $as_echo "yes" >&6; }
20286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20287 $as_echo "no" >&6; }
20288 CFLAGS="$_svn_xxflags__save"
20292 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20294 ac_cpp='$CPP $CPPFLAGS'
20295 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20296 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20297 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20301 CMAINTAINERFLAGS="$CFLAGS $CMAINTAINERFLAGS"
20302 CFLAGS="$CFLAGS_KEEP"
20304 CMAINTAINERFLAGS="-Wall -Wpointer-arith -Wwrite-strings -Wshadow -Wformat=2 -Wunused -Waggregate-return -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wno-multichar -Wredundant-decls -Wnested-externs -Winline -Wno-long-long $CMAINTAINERFLAGS"
20306 if test "$GXX" = "yes"; then
20307 { $as_echo "$as_me:${as_lineno-$LINENO}: maintainer-mode: adding G++ warning flags" >&5
20308 $as_echo "$as_me: maintainer-mode: adding G++ warning flags" >&6;}
20310 CXXFLAGS_KEEP="$CXXFLAGS"
20314 _svn_xxflags__save="$CXXFLAGS"
20316 ac_cpp='$CXXCPP $CPPFLAGS'
20317 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20318 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20319 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CXX accepts -Wextra-tokens" >&5
20322 $as_echo_n "checking if $CXX accepts -Wextra-tokens... " >&6; }
20323 CXXFLAGS="-Wextra-tokens $CXXFLAGS"
20324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20325 /* end confdefs.h. */
20328 if ac_fn_cxx_try_compile "$LINENO"; then :
20330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20331 $as_echo "yes" >&6; }
20336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20337 $as_echo "no" >&6; }
20338 CXXFLAGS="$_svn_xxflags__save"
20342 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20344 ac_cpp='$CPP $CPPFLAGS'
20345 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20346 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20347 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20351 _svn_xxflags__save="$CXXFLAGS"
20353 ac_cpp='$CXXCPP $CPPFLAGS'
20354 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20355 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20356 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CXX accepts -Wnewline-eof" >&5
20359 $as_echo_n "checking if $CXX accepts -Wnewline-eof... " >&6; }
20360 CXXFLAGS="-Wnewline-eof $CXXFLAGS"
20361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20362 /* end confdefs.h. */
20365 if ac_fn_cxx_try_compile "$LINENO"; then :
20367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20368 $as_echo "yes" >&6; }
20373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20374 $as_echo "no" >&6; }
20375 CXXFLAGS="$_svn_xxflags__save"
20379 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20381 ac_cpp='$CPP $CPPFLAGS'
20382 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20383 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20384 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20388 _svn_xxflags__save="$CXXFLAGS"
20390 ac_cpp='$CXXCPP $CPPFLAGS'
20391 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20392 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20393 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CXX accepts -Wshorten-64-to-32" >&5
20396 $as_echo_n "checking if $CXX accepts -Wshorten-64-to-32... " >&6; }
20397 CXXFLAGS="-Wshorten-64-to-32 $CXXFLAGS"
20398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20399 /* end confdefs.h. */
20402 if ac_fn_cxx_try_compile "$LINENO"; then :
20404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20405 $as_echo "yes" >&6; }
20410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20411 $as_echo "no" >&6; }
20412 CXXFLAGS="$_svn_xxflags__save"
20416 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20418 ac_cpp='$CPP $CPPFLAGS'
20419 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20420 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20421 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20425 _svn_xxflags__save="$CXXFLAGS"
20427 ac_cpp='$CXXCPP $CPPFLAGS'
20428 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20429 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20430 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CXX accepts -Wno-system-headers" >&5
20433 $as_echo_n "checking if $CXX accepts -Wno-system-headers... " >&6; }
20434 CXXFLAGS="-Wno-system-headers $CXXFLAGS"
20435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20436 /* end confdefs.h. */
20439 if ac_fn_cxx_try_compile "$LINENO"; then :
20441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20442 $as_echo "yes" >&6; }
20447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20448 $as_echo "no" >&6; }
20449 CXXFLAGS="$_svn_xxflags__save"
20453 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20455 ac_cpp='$CPP $CPPFLAGS'
20456 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20457 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20458 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20462 CXXMAINTAINERFLAGS="$CXXFLAGS $CXXMAINTAINERFLAGS"
20463 CXXFLAGS="$CXXFLAGS_KEEP"
20465 CXXMAINTAINERFLAGS="-Wall -Wpointer-arith -Wwrite-strings -Wshadow -Wunused -Wunreachable-code $CXXMAINTAINERFLAGS"
20472 if test "$enable_debugging" = "yes" ; then
20473 if test "$enable_optimization" != "yes"; then
20474 { $as_echo "$as_me:${as_lineno-$LINENO}: Disabling optimizations for debugging" >&5
20475 $as_echo "$as_me: Disabling optimizations for debugging" >&6;}
20476 CFLAGS="`echo $CFLAGS' ' | $SED -e 's/-O[^ ]* //g'`"
20477 CXXFLAGS="`echo $CXXFLAGS' ' | $SED -e 's/-O[^ ]* //g'`"
20479 if test -z "`echo $CUSERFLAGS' ' | $EGREP -- '-g[0-9]? '`"; then
20480 { $as_echo "$as_me:${as_lineno-$LINENO}: Enabling debugging for C" >&5
20481 $as_echo "$as_me: Enabling debugging for C" >&6;}
20482 CFLAGS="`echo $CFLAGS' ' | $SED -e 's/-g[0-9] //g' -e 's/-g //g'`"
20484 _svn_xxflags__save="$CFLAGS"
20486 ac_cpp='$CPP $CPPFLAGS'
20487 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20488 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20489 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -fno-inline" >&5
20492 $as_echo_n "checking if $CC accepts -fno-inline... " >&6; }
20493 CFLAGS="-fno-inline $CFLAGS"
20494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20495 /* end confdefs.h. */
20498 if ac_fn_c_try_compile "$LINENO"; then :
20500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20501 $as_echo "yes" >&6; }
20506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20507 $as_echo "no" >&6; }
20508 CFLAGS="$_svn_xxflags__save"
20512 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20514 ac_cpp='$CPP $CPPFLAGS'
20515 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20516 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20517 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20521 _svn_xxflags__save="$CFLAGS"
20523 ac_cpp='$CPP $CPPFLAGS'
20524 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20525 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20526 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -fno-omit-frame-pointer" >&5
20529 $as_echo_n "checking if $CC accepts -fno-omit-frame-pointer... " >&6; }
20530 CFLAGS="-fno-omit-frame-pointer $CFLAGS"
20531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20532 /* end confdefs.h. */
20535 if ac_fn_c_try_compile "$LINENO"; then :
20537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20538 $as_echo "yes" >&6; }
20543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20544 $as_echo "no" >&6; }
20545 CFLAGS="$_svn_xxflags__save"
20549 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20551 ac_cpp='$CPP $CPPFLAGS'
20552 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20553 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20554 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20558 _svn_xxflags__save="$CFLAGS"
20560 ac_cpp='$CPP $CPPFLAGS'
20561 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20562 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20563 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -g3" >&5
20566 $as_echo_n "checking if $CC accepts -g3... " >&6; }
20567 CFLAGS="-g3 $CFLAGS"
20568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20569 /* end confdefs.h. */
20572 if ac_fn_c_try_compile "$LINENO"; then :
20574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20575 $as_echo "yes" >&6; }
20580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20581 $as_echo "no" >&6; }
20582 CFLAGS="$_svn_xxflags__save"
20585 _svn_xxflags__save="$CFLAGS"
20587 ac_cpp='$CPP $CPPFLAGS'
20588 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20589 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20590 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -g2" >&5
20593 $as_echo_n "checking if $CC accepts -g2... " >&6; }
20594 CFLAGS="-g2 $CFLAGS"
20595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20596 /* end confdefs.h. */
20599 if ac_fn_c_try_compile "$LINENO"; then :
20601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20602 $as_echo "yes" >&6; }
20607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20608 $as_echo "no" >&6; }
20609 CFLAGS="$_svn_xxflags__save"
20612 _svn_xxflags__save="$CFLAGS"
20614 ac_cpp='$CPP $CPPFLAGS'
20615 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20616 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20617 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -g" >&5
20620 $as_echo_n "checking if $CC accepts -g... " >&6; }
20621 CFLAGS="-g $CFLAGS"
20622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20623 /* end confdefs.h. */
20626 if ac_fn_c_try_compile "$LINENO"; then :
20628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20629 $as_echo "yes" >&6; }
20634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20635 $as_echo "no" >&6; }
20636 CFLAGS="$_svn_xxflags__save"
20640 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20642 ac_cpp='$CPP $CPPFLAGS'
20643 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20644 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20645 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20650 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20652 ac_cpp='$CPP $CPPFLAGS'
20653 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20654 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20655 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20660 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20662 ac_cpp='$CPP $CPPFLAGS'
20663 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20664 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20665 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20669 if test -z "`echo $CXXUSERFLAGS' ' | $EGREP -- '-g[0-9]? '`"; then
20670 { $as_echo "$as_me:${as_lineno-$LINENO}: Enabling debugging for C++" >&5
20671 $as_echo "$as_me: Enabling debugging for C++" >&6;}
20672 CXXFLAGS="`echo $CXXFLAGS' ' | $SED -e 's/-g[0-9] //g' -e 's/-g //g'`"
20674 _svn_xxflags__save="$CXXFLAGS"
20676 ac_cpp='$CXXCPP $CPPFLAGS'
20677 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20678 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20679 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CXX accepts -fno-inline" >&5
20682 $as_echo_n "checking if $CXX accepts -fno-inline... " >&6; }
20683 CXXFLAGS="-fno-inline $CXXFLAGS"
20684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20685 /* end confdefs.h. */
20688 if ac_fn_cxx_try_compile "$LINENO"; then :
20690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20691 $as_echo "yes" >&6; }
20696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20697 $as_echo "no" >&6; }
20698 CXXFLAGS="$_svn_xxflags__save"
20702 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20704 ac_cpp='$CPP $CPPFLAGS'
20705 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20706 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20707 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20711 _svn_xxflags__save="$CXXFLAGS"
20713 ac_cpp='$CXXCPP $CPPFLAGS'
20714 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20715 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20716 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CXX accepts -fno-omit-frame-pointer" >&5
20719 $as_echo_n "checking if $CXX accepts -fno-omit-frame-pointer... " >&6; }
20720 CXXFLAGS="-fno-omit-frame-pointer $CXXFLAGS"
20721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20722 /* end confdefs.h. */
20725 if ac_fn_cxx_try_compile "$LINENO"; then :
20727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20728 $as_echo "yes" >&6; }
20733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20734 $as_echo "no" >&6; }
20735 CXXFLAGS="$_svn_xxflags__save"
20739 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20741 ac_cpp='$CPP $CPPFLAGS'
20742 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20743 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20744 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20748 _svn_xxflags__save="$CXXFLAGS"
20750 ac_cpp='$CXXCPP $CPPFLAGS'
20751 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20752 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20753 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CXX accepts -g3" >&5
20756 $as_echo_n "checking if $CXX accepts -g3... " >&6; }
20757 CXXFLAGS="-g3 $CXXFLAGS"
20758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20759 /* end confdefs.h. */
20762 if ac_fn_cxx_try_compile "$LINENO"; then :
20764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20765 $as_echo "yes" >&6; }
20770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20771 $as_echo "no" >&6; }
20772 CXXFLAGS="$_svn_xxflags__save"
20775 _svn_xxflags__save="$CXXFLAGS"
20777 ac_cpp='$CXXCPP $CPPFLAGS'
20778 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20779 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20780 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CXX accepts -g2" >&5
20783 $as_echo_n "checking if $CXX accepts -g2... " >&6; }
20784 CXXFLAGS="-g2 $CXXFLAGS"
20785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20786 /* end confdefs.h. */
20789 if ac_fn_cxx_try_compile "$LINENO"; then :
20791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20792 $as_echo "yes" >&6; }
20797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20798 $as_echo "no" >&6; }
20799 CXXFLAGS="$_svn_xxflags__save"
20802 _svn_xxflags__save="$CXXFLAGS"
20804 ac_cpp='$CXXCPP $CPPFLAGS'
20805 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20806 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20807 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CXX accepts -g" >&5
20810 $as_echo_n "checking if $CXX accepts -g... " >&6; }
20811 CXXFLAGS="-g $CXXFLAGS"
20812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20813 /* end confdefs.h. */
20816 if ac_fn_cxx_try_compile "$LINENO"; then :
20818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20819 $as_echo "yes" >&6; }
20824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20825 $as_echo "no" >&6; }
20826 CXXFLAGS="$_svn_xxflags__save"
20830 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20832 ac_cpp='$CXXCPP $CPPFLAGS'
20833 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20834 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20835 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20840 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20842 ac_cpp='$CXXCPP $CPPFLAGS'
20843 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20844 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20845 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20850 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20852 ac_cpp='$CPP $CPPFLAGS'
20853 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20854 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20855 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20859 CFLAGS="$CFLAGS -DSVN_DEBUG -DAP_DEBUG"
20860 CXXFLAGS="$CXXFLAGS -DSVN_DEBUG -DAP_DEBUG"
20861 elif test "$enable_debugging" = "no" ; then
20862 { $as_echo "$as_me:${as_lineno-$LINENO}: Disabling debugging" >&5
20863 $as_echo "$as_me: Disabling debugging" >&6;}
20864 CFLAGS="`echo $CFLAGS' ' | $SED -e 's/-g[0-9] //g' -e 's/-g //g'`"
20865 CXXFLAGS="`echo $CXXFLAGS' ' | $SED -e 's/-g[0-9] //g' -e 's/-g //g'`"
20866 CFLAGS="$CFLAGS -DNDEBUG"
20867 CXXFLAGS="$CXXFLAGS -DNDEBUG"
20868 # elif test "$enable_debugging" = "maybe" ; then
20872 if test "$enable_optimization" = "yes"; then
20873 if test -z "`echo $CUSERFLAGS' ' | $EGREP -- '-O[^ ]* '`"; then
20874 CFLAGS="`echo $CFLAGS' ' | $SED -e 's/-O[^ ]* //g'`"
20875 if test "$enable_debugging" = "yes"; then
20876 { $as_echo "$as_me:${as_lineno-$LINENO}: Enabling optimizations for C (with debugging enabled)" >&5
20877 $as_echo "$as_me: Enabling optimizations for C (with debugging enabled)" >&6;}
20879 _svn_xxflags__save="$CFLAGS"
20881 ac_cpp='$CPP $CPPFLAGS'
20882 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20883 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20884 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -O1" >&5
20887 $as_echo_n "checking if $CC accepts -O1... " >&6; }
20888 CFLAGS="-O1 $CFLAGS"
20889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20890 /* end confdefs.h. */
20893 if ac_fn_c_try_compile "$LINENO"; then :
20895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20896 $as_echo "yes" >&6; }
20901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20902 $as_echo "no" >&6; }
20903 CFLAGS="$_svn_xxflags__save"
20906 _svn_xxflags__save="$CFLAGS"
20908 ac_cpp='$CPP $CPPFLAGS'
20909 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20910 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20911 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -O" >&5
20914 $as_echo_n "checking if $CC accepts -O... " >&6; }
20915 CFLAGS="-O $CFLAGS"
20916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20917 /* end confdefs.h. */
20920 if ac_fn_c_try_compile "$LINENO"; then :
20922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20923 $as_echo "yes" >&6; }
20928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20929 $as_echo "no" >&6; }
20930 CFLAGS="$_svn_xxflags__save"
20934 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20936 ac_cpp='$CPP $CPPFLAGS'
20937 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20938 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20939 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20944 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20946 ac_cpp='$CPP $CPPFLAGS'
20947 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20948 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20949 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20953 { $as_echo "$as_me:${as_lineno-$LINENO}: Enabling optimizations for C" >&5
20954 $as_echo "$as_me: Enabling optimizations for C" >&6;}
20956 _svn_xxflags__save="$CFLAGS"
20958 ac_cpp='$CPP $CPPFLAGS'
20959 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20960 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20961 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -O3" >&5
20964 $as_echo_n "checking if $CC accepts -O3... " >&6; }
20965 CFLAGS="-O3 $CFLAGS"
20966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20967 /* end confdefs.h. */
20970 if ac_fn_c_try_compile "$LINENO"; then :
20972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20973 $as_echo "yes" >&6; }
20978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20979 $as_echo "no" >&6; }
20980 CFLAGS="$_svn_xxflags__save"
20983 _svn_xxflags__save="$CFLAGS"
20985 ac_cpp='$CPP $CPPFLAGS'
20986 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20987 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20988 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -O2" >&5
20991 $as_echo_n "checking if $CC accepts -O2... " >&6; }
20992 CFLAGS="-O2 $CFLAGS"
20993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20994 /* end confdefs.h. */
20997 if ac_fn_c_try_compile "$LINENO"; then :
20999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21000 $as_echo "yes" >&6; }
21005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21006 $as_echo "no" >&6; }
21007 CFLAGS="$_svn_xxflags__save"
21010 _svn_xxflags__save="$CFLAGS"
21012 ac_cpp='$CPP $CPPFLAGS'
21013 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21014 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21015 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -O1" >&5
21018 $as_echo_n "checking if $CC accepts -O1... " >&6; }
21019 CFLAGS="-O1 $CFLAGS"
21020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21021 /* end confdefs.h. */
21024 if ac_fn_c_try_compile "$LINENO"; then :
21026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21027 $as_echo "yes" >&6; }
21032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21033 $as_echo "no" >&6; }
21034 CFLAGS="$_svn_xxflags__save"
21037 _svn_xxflags__save="$CFLAGS"
21039 ac_cpp='$CPP $CPPFLAGS'
21040 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21041 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21042 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -O" >&5
21045 $as_echo_n "checking if $CC accepts -O... " >&6; }
21046 CFLAGS="-O $CFLAGS"
21047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21048 /* end confdefs.h. */
21051 if ac_fn_c_try_compile "$LINENO"; then :
21053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21054 $as_echo "yes" >&6; }
21059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21060 $as_echo "no" >&6; }
21061 CFLAGS="$_svn_xxflags__save"
21065 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21067 ac_cpp='$CPP $CPPFLAGS'
21068 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21069 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21070 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21075 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21077 ac_cpp='$CPP $CPPFLAGS'
21078 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21079 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21080 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21085 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21087 ac_cpp='$CPP $CPPFLAGS'
21088 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21089 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21090 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21095 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21097 ac_cpp='$CPP $CPPFLAGS'
21098 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21099 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21100 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21104 _svn_xxflags__save="$CFLAGS"
21106 ac_cpp='$CPP $CPPFLAGS'
21107 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21108 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21109 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -Wno-clobbered" >&5
21112 $as_echo_n "checking if $CC accepts -Wno-clobbered... " >&6; }
21113 CFLAGS="-Wno-clobbered $CFLAGS"
21114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21115 /* end confdefs.h. */
21118 if ac_fn_c_try_compile "$LINENO"; then :
21120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21121 $as_echo "yes" >&6; }
21126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21127 $as_echo "no" >&6; }
21128 CFLAGS="$_svn_xxflags__save"
21132 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21134 ac_cpp='$CPP $CPPFLAGS'
21135 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21136 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21137 ac_compiler_gnu=$ac_cv_c_compiler_gnu
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 -flto" >&5
21149 $as_echo_n "checking if $CC accepts -flto... " >&6; }
21150 CFLAGS="-flto $CFLAGS"
21151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21152 /* end confdefs.h. */
21155 if ac_fn_c_try_compile "$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 conftest.$ac_ext
21171 ac_cpp='$CPP $CPPFLAGS'
21172 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21173 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21174 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21179 if test -z "`echo $CXXUSERFLAGS' ' | $EGREP -- '-O[^ ]* '`"; then
21180 CXXFLAGS="`echo $CXXFLAGS' ' | $SED -e 's/-O[^ ]* //g'`"
21181 if test "$enable_debugging" = "yes"; then
21182 { $as_echo "$as_me:${as_lineno-$LINENO}: Enabling optimizations for C++ (with debugging enabled)" >&5
21183 $as_echo "$as_me: Enabling optimizations for C++ (with debugging enabled)" >&6;}
21185 _svn_xxflags__save="$CXXFLAGS"
21187 ac_cpp='$CXXCPP $CPPFLAGS'
21188 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21189 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21190 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CXX accepts -O1" >&5
21193 $as_echo_n "checking if $CXX accepts -O1... " >&6; }
21194 CXXFLAGS="-O1 $CXXFLAGS"
21195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21196 /* end confdefs.h. */
21199 if ac_fn_cxx_try_compile "$LINENO"; then :
21201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21202 $as_echo "yes" >&6; }
21207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21208 $as_echo "no" >&6; }
21209 CXXFLAGS="$_svn_xxflags__save"
21212 _svn_xxflags__save="$CXXFLAGS"
21214 ac_cpp='$CXXCPP $CPPFLAGS'
21215 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21216 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21217 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CXX accepts -O" >&5
21220 $as_echo_n "checking if $CXX accepts -O... " >&6; }
21221 CXXFLAGS="-O $CXXFLAGS"
21222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21223 /* end confdefs.h. */
21226 if ac_fn_cxx_try_compile "$LINENO"; then :
21228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21229 $as_echo "yes" >&6; }
21234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21235 $as_echo "no" >&6; }
21236 CXXFLAGS="$_svn_xxflags__save"
21240 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21242 ac_cpp='$CXXCPP $CPPFLAGS'
21243 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21244 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21245 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21250 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21252 ac_cpp='$CPP $CPPFLAGS'
21253 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21254 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21255 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21259 { $as_echo "$as_me:${as_lineno-$LINENO}: Enabling optimizations for C++" >&5
21260 $as_echo "$as_me: Enabling optimizations for C++" >&6;}
21262 _svn_xxflags__save="$CXXFLAGS"
21264 ac_cpp='$CXXCPP $CPPFLAGS'
21265 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21266 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21267 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CXX accepts -O3" >&5
21270 $as_echo_n "checking if $CXX accepts -O3... " >&6; }
21271 CXXFLAGS="-O3 $CXXFLAGS"
21272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21273 /* end confdefs.h. */
21276 if ac_fn_cxx_try_compile "$LINENO"; then :
21278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21279 $as_echo "yes" >&6; }
21284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21285 $as_echo "no" >&6; }
21286 CXXFLAGS="$_svn_xxflags__save"
21289 _svn_xxflags__save="$CXXFLAGS"
21291 ac_cpp='$CXXCPP $CPPFLAGS'
21292 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21293 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21294 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CXX accepts -O2" >&5
21297 $as_echo_n "checking if $CXX accepts -O2... " >&6; }
21298 CXXFLAGS="-O2 $CXXFLAGS"
21299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21300 /* end confdefs.h. */
21303 if ac_fn_cxx_try_compile "$LINENO"; then :
21305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21306 $as_echo "yes" >&6; }
21311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21312 $as_echo "no" >&6; }
21313 CXXFLAGS="$_svn_xxflags__save"
21316 _svn_xxflags__save="$CXXFLAGS"
21318 ac_cpp='$CXXCPP $CPPFLAGS'
21319 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21320 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21321 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CXX accepts -O1" >&5
21324 $as_echo_n "checking if $CXX accepts -O1... " >&6; }
21325 CXXFLAGS="-O1 $CXXFLAGS"
21326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21327 /* end confdefs.h. */
21330 if ac_fn_cxx_try_compile "$LINENO"; then :
21332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21333 $as_echo "yes" >&6; }
21338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21339 $as_echo "no" >&6; }
21340 CXXFLAGS="$_svn_xxflags__save"
21343 _svn_xxflags__save="$CXXFLAGS"
21345 ac_cpp='$CXXCPP $CPPFLAGS'
21346 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21347 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21348 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CXX accepts -O" >&5
21351 $as_echo_n "checking if $CXX accepts -O... " >&6; }
21352 CXXFLAGS="-O $CXXFLAGS"
21353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21354 /* end confdefs.h. */
21357 if ac_fn_cxx_try_compile "$LINENO"; then :
21359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21360 $as_echo "yes" >&6; }
21365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21366 $as_echo "no" >&6; }
21367 CXXFLAGS="$_svn_xxflags__save"
21371 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21373 ac_cpp='$CXXCPP $CPPFLAGS'
21374 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21375 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21376 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21381 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21383 ac_cpp='$CXXCPP $CPPFLAGS'
21384 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21385 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21386 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21391 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21393 ac_cpp='$CXXCPP $CPPFLAGS'
21394 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21395 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21396 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21401 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21403 ac_cpp='$CPP $CPPFLAGS'
21404 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21405 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21406 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21410 _svn_xxflags__save="$CXXFLAGS"
21412 ac_cpp='$CXXCPP $CPPFLAGS'
21413 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21414 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21415 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CXX accepts -Wno-clobbered" >&5
21418 $as_echo_n "checking if $CXX accepts -Wno-clobbered... " >&6; }
21419 CXXFLAGS="-Wno-clobbered $CXXFLAGS"
21420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21421 /* end confdefs.h. */
21424 if ac_fn_cxx_try_compile "$LINENO"; then :
21426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21427 $as_echo "yes" >&6; }
21432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21433 $as_echo "no" >&6; }
21434 CXXFLAGS="$_svn_xxflags__save"
21438 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21440 ac_cpp='$CPP $CPPFLAGS'
21441 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21442 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21443 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21447 _svn_xxflags__save="$CXXFLAGS"
21449 ac_cpp='$CXXCPP $CPPFLAGS'
21450 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21451 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21452 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CXX accepts -flto" >&5
21455 $as_echo_n "checking if $CXX accepts -flto... " >&6; }
21456 CXXFLAGS="-flto $CXXFLAGS"
21457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21458 /* end confdefs.h. */
21461 if ac_fn_cxx_try_compile "$LINENO"; then :
21463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21464 $as_echo "yes" >&6; }
21469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21470 $as_echo "no" >&6; }
21471 CXXFLAGS="$_svn_xxflags__save"
21475 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21477 ac_cpp='$CPP $CPPFLAGS'
21478 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21479 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21480 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21485 elif test "$enable_optimization" = "no"; then
21486 { $as_echo "$as_me:${as_lineno-$LINENO}: Disabling optimizations" >&5
21487 $as_echo "$as_me: Disabling optimizations" >&6;}
21488 CFLAGS="`echo $CFLAGS' ' | $SED -e 's/-O[^ ]* //g'`"
21489 CXXFLAGS="`echo $CXXFLAGS' ' | $SED -e 's/-O[^ ]* //g'`"
21490 # elif test "$enable_optimization" = "maybe" ; then
21494 { $as_echo "$as_me:${as_lineno-$LINENO}: C compiler flags: $CFLAGS" >&5
21495 $as_echo "$as_me: C compiler flags: $CFLAGS" >&6;}
21496 { $as_echo "$as_me:${as_lineno-$LINENO}: user-defined: $CUSERFLAGS" >&5
21497 $as_echo "$as_me: user-defined: $CUSERFLAGS" >&6;}
21498 { $as_echo "$as_me:${as_lineno-$LINENO}: maintainer-mode: $CMAINTAINERFLAGS" >&5
21499 $as_echo "$as_me: maintainer-mode: $CMAINTAINERFLAGS" >&6;}
21500 { $as_echo "$as_me:${as_lineno-$LINENO}: C++ compiler flags: $CXXFLAGS" >&5
21501 $as_echo "$as_me: C++ compiler flags: $CXXFLAGS" >&6;}
21502 { $as_echo "$as_me:${as_lineno-$LINENO}: user-defined: $CXXUSERFLAGS" >&5
21503 $as_echo "$as_me: user-defined: $CXXUSERFLAGS" >&6;}
21504 { $as_echo "$as_me:${as_lineno-$LINENO}: maintainer-mode: $CXXMAINTAINERFLAGS" >&5
21505 $as_echo "$as_me: maintainer-mode: $CXXMAINTAINERFLAGS" >&6;}
21507 # Check whether --enable-full-version-match was given.
21508 if test "${enable_full_version_match+set}" = set; then :
21509 enableval=$enable_full_version_match;
21510 if test "$enableval" = "no" ; then
21511 { $as_echo "$as_me:${as_lineno-$LINENO}: Disabling svn full version matching" >&5
21512 $as_echo "$as_me: Disabling svn full version matching" >&6;}
21514 $as_echo "#define SVN_DISABLE_FULL_VERSION_MATCH 1" >>confdefs.h
21522 # Check whether --with-editor was given.
21523 if test "${with_editor+set}" = set; then :
21524 withval=$with_editor;
21526 if test "$withval" = "yes" ; then
21527 as_fn_error $? "--with-editor requires an argument." "$LINENO" 5
21529 SVN_CLIENT_EDITOR=$withval
21531 cat >>confdefs.h <<_ACEOF
21532 #define SVN_CLIENT_EDITOR "$SVN_CLIENT_EDITOR"
21546 # Check whether --with-zlib was given.
21547 if test "${with_zlib+set}" = set; then :
21548 withval=$with_zlib;
21549 if test "$withval" = "yes" ; then
21550 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
21551 if test "x$ac_cv_header_zlib_h" = xyes; then :
21553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
21554 $as_echo_n "checking for inflate in -lz... " >&6; }
21555 if ${ac_cv_lib_z_inflate+:} false; then :
21556 $as_echo_n "(cached) " >&6
21558 ac_check_lib_save_LIBS=$LIBS
21560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21561 /* end confdefs.h. */
21563 /* Override any GCC internal prototype to avoid an error.
21564 Use char because int might match the return type of a GCC
21565 builtin and then its argument prototype would still apply. */
21578 if ac_fn_c_try_link "$LINENO"; then :
21579 ac_cv_lib_z_inflate=yes
21581 ac_cv_lib_z_inflate=no
21583 rm -f core conftest.err conftest.$ac_objext \
21584 conftest$ac_exeext conftest.$ac_ext
21585 LIBS=$ac_check_lib_save_LIBS
21587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
21588 $as_echo "$ac_cv_lib_z_inflate" >&6; }
21589 if test "x$ac_cv_lib_z_inflate" = xyes; then :
21590 zlib_found="builtin"
21597 elif test "$withval" = "no" ; then
21598 as_fn_error $? "cannot compile without zlib." "$LINENO" 5
21600 { $as_echo "$as_me:${as_lineno-$LINENO}: zlib library configuration" >&5
21601 $as_echo "$as_me: zlib library configuration" >&6;}
21602 zlib_prefix=$withval
21603 save_cppflags="$CPPFLAGS"
21604 CPPFLAGS="$CPPFLAGS -I$zlib_prefix/include"
21605 for ac_header in zlib.h
21607 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
21608 if test "x$ac_cv_header_zlib_h" = xyes; then :
21609 cat >>confdefs.h <<_ACEOF
21610 #define HAVE_ZLIB_H 1
21613 save_ldflags="$LDFLAGS"
21614 LDFLAGS="$LDFLAGS -L$zlib_prefix/lib"
21615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
21616 $as_echo_n "checking for inflate in -lz... " >&6; }
21617 if ${ac_cv_lib_z_inflate+:} false; then :
21618 $as_echo_n "(cached) " >&6
21620 ac_check_lib_save_LIBS=$LIBS
21622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21623 /* end confdefs.h. */
21625 /* Override any GCC internal prototype to avoid an error.
21626 Use char because int might match the return type of a GCC
21627 builtin and then its argument prototype would still apply. */
21640 if ac_fn_c_try_link "$LINENO"; then :
21641 ac_cv_lib_z_inflate=yes
21643 ac_cv_lib_z_inflate=no
21645 rm -f core conftest.err conftest.$ac_objext \
21646 conftest$ac_exeext conftest.$ac_ext
21647 LIBS=$ac_check_lib_save_LIBS
21649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
21650 $as_echo "$ac_cv_lib_z_inflate" >&6; }
21651 if test "x$ac_cv_lib_z_inflate" = xyes; then :
21655 LDFLAGS="$save_ldflags"
21661 CPPFLAGS="$save_cppflags"
21666 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
21667 if test "x$ac_cv_header_zlib_h" = xyes; then :
21669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
21670 $as_echo_n "checking for inflate in -lz... " >&6; }
21671 if ${ac_cv_lib_z_inflate+:} false; then :
21672 $as_echo_n "(cached) " >&6
21674 ac_check_lib_save_LIBS=$LIBS
21676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21677 /* end confdefs.h. */
21679 /* Override any GCC internal prototype to avoid an error.
21680 Use char because int might match the return type of a GCC
21681 builtin and then its argument prototype would still apply. */
21694 if ac_fn_c_try_link "$LINENO"; then :
21695 ac_cv_lib_z_inflate=yes
21697 ac_cv_lib_z_inflate=no
21699 rm -f core conftest.err conftest.$ac_objext \
21700 conftest$ac_exeext conftest.$ac_ext
21701 LIBS=$ac_check_lib_save_LIBS
21703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
21704 $as_echo "$ac_cv_lib_z_inflate" >&6; }
21705 if test "x$ac_cv_lib_z_inflate" = xyes; then :
21706 zlib_found="builtin"
21717 if test "$zlib_found" = "no"; then
21718 as_fn_error $? "subversion requires zlib" "$LINENO" 5
21721 if test "$zlib_found" = "yes"; then
21722 SVN_ZLIB_INCLUDES="-I$zlib_prefix/include"
21723 LDFLAGS="$LDFLAGS `
21724 input_flags="-L$zlib_prefix/lib"
21726 filtered_dirs="/lib /lib64 /usr/lib /usr/lib64"
21727 for flag in $input_flags; do
21729 for dir in $filtered_dirs; do
21730 if test "$flag" = "-L$dir" || test "$flag" = "-L$dir/"; then
21735 if test "$filter" = "no"; then
21736 output_flags="$output_flags $flag"
21739 if test -n "$output_flags"; then
21740 printf "%s" "${output_flags# }"
21745 SVN_ZLIB_LIBS="-lz"
21752 # Check whether --enable-mod-activation was given.
21753 if test "${enable_mod_activation+set}" = set; then :
21754 enableval=$enable_mod_activation;
21755 if test "$enableval" = "yes" ; then
21756 MOD_ACTIVATION="-a"
21757 { $as_echo "$as_me:${as_lineno-$LINENO}: Enabling apache module activation" >&5
21758 $as_echo "$as_me: Enabling apache module activation" >&6;}
21760 { $as_echo "$as_me:${as_lineno-$LINENO}: Disabling apache module activation" >&5
21761 $as_echo "$as_me: Disabling apache module activation" >&6;}
21770 # Check whether --enable-gcov was given.
21771 if test "${enable_gcov+set}" = set; then :
21772 enableval=$enable_gcov;
21773 if test "$enableval" = "yes" ; then
21774 if test "$GCC" = "yes"; then
21775 if test "$svn_enable_shared" = "yes" ; then
21776 as_fn_error $? "Can't have --enable-gcov without --disable-shared (we
21777 recommend also using --enable-all-static)." "$LINENO" 5
21779 if test ! "$enable_all_static" = "yes" ; then
21780 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: We recommend --enable-all-static with --enable-gcov." >&5
21781 $as_echo "$as_me: WARNING: We recommend --enable-all-static with --enable-gcov." >&2;}
21783 { $as_echo "$as_me:${as_lineno-$LINENO}: Enabling gcov coverage testing." >&5
21784 $as_echo "$as_me: Enabling gcov coverage testing." >&6;}
21785 CFLAGS="$CFLAGS -fprofile-arcs -ftest-coverage"
21786 CXXFLAGS="$CXXFLAGS -fprofile-arcs -ftest-coverage"
21788 as_fn_error $? "We only support --enable-gcov with GCC right now." "$LINENO" 5
21795 # Check whether --enable-gprof was given.
21796 if test "${enable_gprof+set}" = set; then :
21797 enableval=$enable_gprof;
21798 if test "$enableval" = "yes" ; then
21799 if test "$GCC" = "yes"; then
21800 if test "$svn_enable_shared" = "yes" ; then
21801 as_fn_error $? "Can't have --enable-gprof without --disable-shared (we
21802 recommend also using --enable-all-static)." "$LINENO" 5
21804 if test ! "$enable_all_static" = "yes" ; then
21805 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: We recommend --enable-all-static with --enable-gprof." >&5
21806 $as_echo "$as_me: WARNING: We recommend --enable-all-static with --enable-gprof." >&2;}
21808 { $as_echo "$as_me:${as_lineno-$LINENO}: Enabling gprof profiling data (to gmon.out)." >&5
21809 $as_echo "$as_me: Enabling gprof profiling data (to gmon.out)." >&6;}
21810 CFLAGS="$CFLAGS -pg"
21811 CXXFLAGS="$CXXFLAGS -pg"
21812 LT_LDFLAGS="$LT_LDFLAGS -pg"
21814 as_fn_error $? "We only support --enable-gprof with GCC right now." "$LINENO" 5
21822 # Scripting and Bindings languages
21824 # Python: Used for testsuite, and bindings
21827 PYTHON="`$abs_srcdir/build/find_python.sh`"
21828 if test -z "$PYTHON"; then
21829 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Python 2.5 or later is required to run the testsuite" >&5
21830 $as_echo "$as_me: WARNING: Python 2.5 or later is required to run the testsuite" >&2;}
21831 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: or to use the Subversion Python bindings" >&5
21832 $as_echo "$as_me: WARNING: or to use the Subversion Python bindings" >&2;}
21833 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: " >&5
21834 $as_echo "$as_me: WARNING: " >&2;}
21835 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: If you have a suitable Python installed, but not on the" >&5
21836 $as_echo "$as_me: WARNING: If you have a suitable Python installed, but not on the" >&2;}
21837 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PATH, set the environment variable PYTHON to the full path" >&5
21838 $as_echo "$as_me: WARNING: PATH, set the environment variable PYTHON to the full path" >&2;}
21839 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: to the Python executable, and re-run configure" >&5
21840 $as_echo "$as_me: WARNING: to the Python executable, and re-run configure" >&2;}
21842 for ac_prog in "$PYTHON"
21844 # Extract the first word of "$ac_prog", so it can be a program name with args.
21845 set dummy $ac_prog; ac_word=$2
21846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21847 $as_echo_n "checking for $ac_word... " >&6; }
21848 if ${ac_cv_path_PYTHON+:} false; then :
21849 $as_echo_n "(cached) " >&6
21853 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
21856 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21857 for as_dir in $PATH
21860 test -z "$as_dir" && as_dir=.
21861 for ac_exec_ext in '' $ac_executable_extensions; do
21862 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21863 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
21864 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21874 PYTHON=$ac_cv_path_PYTHON
21875 if test -n "$PYTHON"; then
21876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
21877 $as_echo "$PYTHON" >&6; }
21879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21880 $as_echo "no" >&6; }
21884 test -n "$PYTHON" && break
21886 test -n "$PYTHON" || PYTHON="none"
21889 # The minimum version for the JVM runtime for our Java bytecode.
21890 JAVA_OLDEST_WORKING_VER='1.5'
21891 # SVN_CHECK_JDK sets $JAVA_CLASSPATH
21893 JAVA_OLDEST_WORKING_VER="$JAVA_OLDEST_WORKING_VER"
21895 # Check whether --with-jdk was given.
21896 if test "${with_jdk+set}" = set; then :
21905 JAVA_OLDEST_WORKING_VER="$JAVA_OLDEST_WORKING_VER"
21916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JDK" >&5
21917 $as_echo_n "checking for JDK... " >&6; }
21918 if test $where = check; then
21919 if test -x "$JAVA_HOME/bin/java"; then
21921 elif test -x "/Library/Java/Home/bin/java"; then
21922 JDK="/Library/Java/Home"
21923 elif test -x "/usr/bin/java"; then
21925 elif test -x "/usr/local/bin/java"; then
21933 if test "$os_arch" = "Darwin"; then
21934 OSX_VER=`/usr/bin/sw_vers | grep ProductVersion | cut -f2 | cut -d"." -f1,2`
21936 if test "$OSX_VER" = "10.4"; then
21940 OSX_SYS_JAVA_FRAMEWORK="/System/Library/Frameworks/JavaVM.framework"
21941 OSX_SDK_JAVA_FRAMEWORK="/Developer/SDKs/MacOSX$OSX_VER.sdk/System/Library"
21942 OSX_SDK_JAVA_FRAMEWORK="$OSX_SDK_JAVA_FRAMEWORK/Frameworks/JavaVM.framework"
21945 if test "$os_arch" = "Darwin" && test "$JDK" = "/usr" &&
21946 test -d "/Library/Java/Home"; then
21947 JDK="/Library/Java/Home"
21950 if test "$os_arch" = "Darwin" && test "$JDK" = "/Library/Java/Home"; then
21951 JRE_LIB_DIR="$OSX_SYS_JAVA_FRAMEWORK/Classes"
21953 JRE_LIB_DIR="$JDK/jre/lib"
21956 if test -f "$JDK/include/jni.h"; then
21957 JNI_INCLUDEDIR="$JDK/include"
21959 elif test "$os_arch" = "Darwin" && test -e "$JDK/Headers/jni.h"; then
21960 JNI_INCLUDEDIR="$JDK/Headers"
21962 elif test "$os_arch" = "Darwin" &&
21963 test -e "$OSX_SYS_JAVA_FRAMEWORK/Headers/jni.h"; then
21964 JNI_INCLUDEDIR="$OSX_SYS_JAVA_FRAMEWORK/Headers"
21966 elif test "$os_arch" = "Darwin" &&
21967 test -e "$OSX_SDK_JAVA_FRAMEWORK/Headers/jni.h"; then
21968 JNI_INCLUDEDIR="$OSX_SDK_JAVA_FRAMEWORK/Headers"
21973 if test "$JDK_SUITABLE" = "yes"; then
21974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JNI_INCLUDEDIR/jni.h" >&5
21975 $as_echo "$JNI_INCLUDEDIR/jni.h" >&6; }
21977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21978 $as_echo "no" >&6; }
21979 if test "$where" != "check"; then
21980 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no JNI header files found." >&5
21981 $as_echo "$as_me: WARNING: no JNI header files found." >&2;}
21982 if test "$os_arch" = "Darwin"; then
21983 { $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
21984 $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;}
21989 if test "$JDK_SUITABLE" = "yes"; then
21990 JAVA_BIN='$(JDK)/bin'
21992 JAVA="$JAVA_BIN/java"
21993 JAVAC="$JAVA_BIN/javac"
21994 JAVAH="$JAVA_BIN/javah"
21995 JAVADOC="$JAVA_BIN/javadoc"
21996 JAR="$JAVA_BIN/jar"
21998 jikes_options="/usr/local/bin/jikes /usr/bin/jikes"
22000 # Check whether --with-jikes was given.
22001 if test "${with_jikes+set}" = set; then :
22002 withval=$with_jikes;
22003 if test "$withval" != "no" && test "$withval" != "yes"; then
22004 jikes_options="$withval $jikes_options"
22006 requested_jikes="$withval" # will be 'yes' if path unspecified
22010 if test "$requested_jikes" != "no"; then
22011 for jikes in $jikes_options; do
22012 if test -z "$jikes_found" && test -x "$jikes"; then
22015 JAVA_CLASSPATH="$JRE_LIB_DIR"
22016 for jar in $JRE_LIB_DIR/*.jar; do
22017 JAVA_CLASSPATH="$JAVA_CLASSPATH:$jar"
22022 if test -n "$requested_jikes" && test "$requested_jikes" != "no"; then
22023 if test -z "$jikes_found"; then
22024 as_fn_error $? "Could not find a usable version of Jikes" "$LINENO" 5
22025 elif test -n "$jikes_found" && test "$requested_jikes" != "yes" &&
22026 test "$JAVAC" != "$requested_jikes"; then
22027 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-jikes PATH was invalid, substitute found" >&5
22028 $as_echo "$as_me: WARNING: --with-jikes PATH was invalid, substitute found" >&2;}
22032 # The release for "-source" could actually be greater than that
22033 # of "-target", if we want to cross-compile for lesser JVMs.
22034 if test -z "$JAVAC_FLAGS"; then
22035 JAVAC_FLAGS="-target $JAVA_OLDEST_WORKING_VER -source 1.5"
22036 if test "$enable_debugging" = "yes"; then
22037 JAVAC_FLAGS="-g -Xlint:unchecked $JAVAC_FLAGS"
22041 JNI_INCLUDES="-I$JNI_INCLUDEDIR"
22042 list="`find "$JNI_INCLUDEDIR" -type d -print`"
22043 for dir in $list; do
22044 JNI_INCLUDES="$JNI_INCLUDES -I$dir"
22061 JAVA_OLDEST_WORKING_VER="$JAVA_OLDEST_WORKING_VER"
22072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JDK" >&5
22073 $as_echo_n "checking for JDK... " >&6; }
22074 if test $where = check; then
22075 if test -x "$JAVA_HOME/bin/java"; then
22077 elif test -x "/Library/Java/Home/bin/java"; then
22078 JDK="/Library/Java/Home"
22079 elif test -x "/usr/bin/java"; then
22081 elif test -x "/usr/local/bin/java"; then
22089 if test "$os_arch" = "Darwin"; then
22090 OSX_VER=`/usr/bin/sw_vers | grep ProductVersion | cut -f2 | cut -d"." -f1,2`
22092 if test "$OSX_VER" = "10.4"; then
22096 OSX_SYS_JAVA_FRAMEWORK="/System/Library/Frameworks/JavaVM.framework"
22097 OSX_SDK_JAVA_FRAMEWORK="/Developer/SDKs/MacOSX$OSX_VER.sdk/System/Library"
22098 OSX_SDK_JAVA_FRAMEWORK="$OSX_SDK_JAVA_FRAMEWORK/Frameworks/JavaVM.framework"
22101 if test "$os_arch" = "Darwin" && test "$JDK" = "/usr" &&
22102 test -d "/Library/Java/Home"; then
22103 JDK="/Library/Java/Home"
22106 if test "$os_arch" = "Darwin" && test "$JDK" = "/Library/Java/Home"; then
22107 JRE_LIB_DIR="$OSX_SYS_JAVA_FRAMEWORK/Classes"
22109 JRE_LIB_DIR="$JDK/jre/lib"
22112 if test -f "$JDK/include/jni.h"; then
22113 JNI_INCLUDEDIR="$JDK/include"
22115 elif test "$os_arch" = "Darwin" && test -e "$JDK/Headers/jni.h"; then
22116 JNI_INCLUDEDIR="$JDK/Headers"
22118 elif test "$os_arch" = "Darwin" &&
22119 test -e "$OSX_SYS_JAVA_FRAMEWORK/Headers/jni.h"; then
22120 JNI_INCLUDEDIR="$OSX_SYS_JAVA_FRAMEWORK/Headers"
22122 elif test "$os_arch" = "Darwin" &&
22123 test -e "$OSX_SDK_JAVA_FRAMEWORK/Headers/jni.h"; then
22124 JNI_INCLUDEDIR="$OSX_SDK_JAVA_FRAMEWORK/Headers"
22129 if test "$JDK_SUITABLE" = "yes"; then
22130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JNI_INCLUDEDIR/jni.h" >&5
22131 $as_echo "$JNI_INCLUDEDIR/jni.h" >&6; }
22133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22134 $as_echo "no" >&6; }
22135 if test "$where" != "check"; then
22136 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no JNI header files found." >&5
22137 $as_echo "$as_me: WARNING: no JNI header files found." >&2;}
22138 if test "$os_arch" = "Darwin"; then
22139 { $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
22140 $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;}
22145 if test "$JDK_SUITABLE" = "yes"; then
22146 JAVA_BIN='$(JDK)/bin'
22148 JAVA="$JAVA_BIN/java"
22149 JAVAC="$JAVA_BIN/javac"
22150 JAVAH="$JAVA_BIN/javah"
22151 JAVADOC="$JAVA_BIN/javadoc"
22152 JAR="$JAVA_BIN/jar"
22154 jikes_options="/usr/local/bin/jikes /usr/bin/jikes"
22156 # Check whether --with-jikes was given.
22157 if test "${with_jikes+set}" = set; then :
22158 withval=$with_jikes;
22159 if test "$withval" != "no" && test "$withval" != "yes"; then
22160 jikes_options="$withval $jikes_options"
22162 requested_jikes="$withval" # will be 'yes' if path unspecified
22166 if test "$requested_jikes" != "no"; then
22167 for jikes in $jikes_options; do
22168 if test -z "$jikes_found" && test -x "$jikes"; then
22171 JAVA_CLASSPATH="$JRE_LIB_DIR"
22172 for jar in $JRE_LIB_DIR/*.jar; do
22173 JAVA_CLASSPATH="$JAVA_CLASSPATH:$jar"
22178 if test -n "$requested_jikes" && test "$requested_jikes" != "no"; then
22179 if test -z "$jikes_found"; then
22180 as_fn_error $? "Could not find a usable version of Jikes" "$LINENO" 5
22181 elif test -n "$jikes_found" && test "$requested_jikes" != "yes" &&
22182 test "$JAVAC" != "$requested_jikes"; then
22183 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-jikes PATH was invalid, substitute found" >&5
22184 $as_echo "$as_me: WARNING: --with-jikes PATH was invalid, substitute found" >&2;}
22188 # The release for "-source" could actually be greater than that
22189 # of "-target", if we want to cross-compile for lesser JVMs.
22190 if test -z "$JAVAC_FLAGS"; then
22191 JAVAC_FLAGS="-target $JAVA_OLDEST_WORKING_VER -source 1.5"
22192 if test "$enable_debugging" = "yes"; then
22193 JAVAC_FLAGS="-g -Xlint:unchecked $JAVAC_FLAGS"
22197 JNI_INCLUDES="-I$JNI_INCLUDEDIR"
22198 list="`find "$JNI_INCLUDEDIR" -type d -print`"
22199 for dir in $list; do
22200 JNI_INCLUDES="$JNI_INCLUDES -I$dir"
22220 JAVA_OLDEST_WORKING_VER="$JAVA_OLDEST_WORKING_VER"
22231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JDK" >&5
22232 $as_echo_n "checking for JDK... " >&6; }
22233 if test $where = check; then
22234 if test -x "$JAVA_HOME/bin/java"; then
22236 elif test -x "/Library/Java/Home/bin/java"; then
22237 JDK="/Library/Java/Home"
22238 elif test -x "/usr/bin/java"; then
22240 elif test -x "/usr/local/bin/java"; then
22248 if test "$os_arch" = "Darwin"; then
22249 OSX_VER=`/usr/bin/sw_vers | grep ProductVersion | cut -f2 | cut -d"." -f1,2`
22251 if test "$OSX_VER" = "10.4"; then
22255 OSX_SYS_JAVA_FRAMEWORK="/System/Library/Frameworks/JavaVM.framework"
22256 OSX_SDK_JAVA_FRAMEWORK="/Developer/SDKs/MacOSX$OSX_VER.sdk/System/Library"
22257 OSX_SDK_JAVA_FRAMEWORK="$OSX_SDK_JAVA_FRAMEWORK/Frameworks/JavaVM.framework"
22260 if test "$os_arch" = "Darwin" && test "$JDK" = "/usr" &&
22261 test -d "/Library/Java/Home"; then
22262 JDK="/Library/Java/Home"
22265 if test "$os_arch" = "Darwin" && test "$JDK" = "/Library/Java/Home"; then
22266 JRE_LIB_DIR="$OSX_SYS_JAVA_FRAMEWORK/Classes"
22268 JRE_LIB_DIR="$JDK/jre/lib"
22271 if test -f "$JDK/include/jni.h"; then
22272 JNI_INCLUDEDIR="$JDK/include"
22274 elif test "$os_arch" = "Darwin" && test -e "$JDK/Headers/jni.h"; then
22275 JNI_INCLUDEDIR="$JDK/Headers"
22277 elif test "$os_arch" = "Darwin" &&
22278 test -e "$OSX_SYS_JAVA_FRAMEWORK/Headers/jni.h"; then
22279 JNI_INCLUDEDIR="$OSX_SYS_JAVA_FRAMEWORK/Headers"
22281 elif test "$os_arch" = "Darwin" &&
22282 test -e "$OSX_SDK_JAVA_FRAMEWORK/Headers/jni.h"; then
22283 JNI_INCLUDEDIR="$OSX_SDK_JAVA_FRAMEWORK/Headers"
22288 if test "$JDK_SUITABLE" = "yes"; then
22289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JNI_INCLUDEDIR/jni.h" >&5
22290 $as_echo "$JNI_INCLUDEDIR/jni.h" >&6; }
22292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22293 $as_echo "no" >&6; }
22294 if test "$where" != "check"; then
22295 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no JNI header files found." >&5
22296 $as_echo "$as_me: WARNING: no JNI header files found." >&2;}
22297 if test "$os_arch" = "Darwin"; then
22298 { $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
22299 $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;}
22304 if test "$JDK_SUITABLE" = "yes"; then
22305 JAVA_BIN='$(JDK)/bin'
22307 JAVA="$JAVA_BIN/java"
22308 JAVAC="$JAVA_BIN/javac"
22309 JAVAH="$JAVA_BIN/javah"
22310 JAVADOC="$JAVA_BIN/javadoc"
22311 JAR="$JAVA_BIN/jar"
22313 jikes_options="/usr/local/bin/jikes /usr/bin/jikes"
22315 # Check whether --with-jikes was given.
22316 if test "${with_jikes+set}" = set; then :
22317 withval=$with_jikes;
22318 if test "$withval" != "no" && test "$withval" != "yes"; then
22319 jikes_options="$withval $jikes_options"
22321 requested_jikes="$withval" # will be 'yes' if path unspecified
22325 if test "$requested_jikes" != "no"; then
22326 for jikes in $jikes_options; do
22327 if test -z "$jikes_found" && test -x "$jikes"; then
22330 JAVA_CLASSPATH="$JRE_LIB_DIR"
22331 for jar in $JRE_LIB_DIR/*.jar; do
22332 JAVA_CLASSPATH="$JAVA_CLASSPATH:$jar"
22337 if test -n "$requested_jikes" && test "$requested_jikes" != "no"; then
22338 if test -z "$jikes_found"; then
22339 as_fn_error $? "Could not find a usable version of Jikes" "$LINENO" 5
22340 elif test -n "$jikes_found" && test "$requested_jikes" != "yes" &&
22341 test "$JAVAC" != "$requested_jikes"; then
22342 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-jikes PATH was invalid, substitute found" >&5
22343 $as_echo "$as_me: WARNING: --with-jikes PATH was invalid, substitute found" >&2;}
22347 # The release for "-source" could actually be greater than that
22348 # of "-target", if we want to cross-compile for lesser JVMs.
22349 if test -z "$JAVAC_FLAGS"; then
22350 JAVAC_FLAGS="-target $JAVA_OLDEST_WORKING_VER -source 1.5"
22351 if test "$enable_debugging" = "yes"; then
22352 JAVAC_FLAGS="-g -Xlint:unchecked $JAVAC_FLAGS"
22356 JNI_INCLUDES="-I$JNI_INCLUDEDIR"
22357 list="`find "$JNI_INCLUDEDIR" -type d -print`"
22358 for dir in $list; do
22359 JNI_INCLUDES="$JNI_INCLUDES -I$dir"
22377 # Extract the first word of "perl", so it can be a program name with args.
22378 set dummy perl; ac_word=$2
22379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22380 $as_echo_n "checking for $ac_word... " >&6; }
22381 if ${ac_cv_path_PERL+:} false; then :
22382 $as_echo_n "(cached) " >&6
22386 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
22389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22390 for as_dir in $PATH
22393 test -z "$as_dir" && as_dir=.
22394 for ac_exec_ext in '' $ac_executable_extensions; do
22395 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22396 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
22397 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22404 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
22408 PERL=$ac_cv_path_PERL
22409 if test -n "$PERL"; then
22410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
22411 $as_echo "$PERL" >&6; }
22413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22414 $as_echo "no" >&6; }
22419 if test -n "$RUBY"; then
22420 # Extract the first word of ""$RUBY"", so it can be a program name with args.
22421 set dummy "$RUBY"; ac_word=$2
22422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22423 $as_echo_n "checking for $ac_word... " >&6; }
22424 if ${ac_cv_path_RUBY+:} false; then :
22425 $as_echo_n "(cached) " >&6
22429 ac_cv_path_RUBY="$RUBY" # Let the user override the test with a path.
22432 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22433 for as_dir in $PATH
22436 test -z "$as_dir" && as_dir=.
22437 for ac_exec_ext in '' $ac_executable_extensions; do
22438 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22439 ac_cv_path_RUBY="$as_dir/$ac_word$ac_exec_ext"
22440 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22447 test -z "$ac_cv_path_RUBY" && ac_cv_path_RUBY="none"
22451 RUBY=$ac_cv_path_RUBY
22452 if test -n "$RUBY"; then
22453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUBY" >&5
22454 $as_echo "$RUBY" >&6; }
22456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22457 $as_echo "no" >&6; }
22462 for ac_prog in ruby ruby1.8 ruby18 ruby1.9 ruby1 ruby1.9.3 ruby193
22464 # Extract the first word of "$ac_prog", so it can be a program name with args.
22465 set dummy $ac_prog; ac_word=$2
22466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22467 $as_echo_n "checking for $ac_word... " >&6; }
22468 if ${ac_cv_path_RUBY+:} false; then :
22469 $as_echo_n "(cached) " >&6
22473 ac_cv_path_RUBY="$RUBY" # Let the user override the test with a path.
22476 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22477 for as_dir in $PATH
22480 test -z "$as_dir" && as_dir=.
22481 for ac_exec_ext in '' $ac_executable_extensions; do
22482 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22483 ac_cv_path_RUBY="$as_dir/$ac_word$ac_exec_ext"
22484 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22494 RUBY=$ac_cv_path_RUBY
22495 if test -n "$RUBY"; then
22496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUBY" >&5
22497 $as_echo "$RUBY" >&6; }
22499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22500 $as_echo "no" >&6; }
22504 test -n "$RUBY" && break
22506 test -n "$RUBY" || RUBY="none"
22509 if test "$RUBY" != "none"; then
22510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking rb_hash_foreach" >&5
22511 $as_echo_n "checking rb_hash_foreach... " >&6; }
22512 if "$RUBY" -r mkmf -e 'exit(have_func("rb_hash_foreach") ? 0 : 1)' >/dev/null; then
22513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22514 $as_echo "yes" >&6; }
22515 if test -n "$RDOC"; then
22516 # Extract the first word of ""$RDOC"", so it can be a program name with args.
22517 set dummy "$RDOC"; ac_word=$2
22518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22519 $as_echo_n "checking for $ac_word... " >&6; }
22520 if ${ac_cv_path_RDOC+:} false; then :
22521 $as_echo_n "(cached) " >&6
22525 ac_cv_path_RDOC="$RDOC" # Let the user override the test with a path.
22528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22529 for as_dir in $PATH
22532 test -z "$as_dir" && as_dir=.
22533 for ac_exec_ext in '' $ac_executable_extensions; do
22534 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22535 ac_cv_path_RDOC="$as_dir/$ac_word$ac_exec_ext"
22536 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22543 test -z "$ac_cv_path_RDOC" && ac_cv_path_RDOC="none"
22547 RDOC=$ac_cv_path_RDOC
22548 if test -n "$RDOC"; then
22549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RDOC" >&5
22550 $as_echo "$RDOC" >&6; }
22552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22553 $as_echo "no" >&6; }
22558 for ac_prog in rdoc rdoc1.8 rdoc18 rdoc1.9 rdoc19 rdoc1.9.3 rdoc193
22560 # Extract the first word of "$ac_prog", so it can be a program name with args.
22561 set dummy $ac_prog; ac_word=$2
22562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22563 $as_echo_n "checking for $ac_word... " >&6; }
22564 if ${ac_cv_path_RDOC+:} false; then :
22565 $as_echo_n "(cached) " >&6
22569 ac_cv_path_RDOC="$RDOC" # Let the user override the test with a path.
22572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22573 for as_dir in $PATH
22576 test -z "$as_dir" && as_dir=.
22577 for ac_exec_ext in '' $ac_executable_extensions; do
22578 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22579 ac_cv_path_RDOC="$as_dir/$ac_word$ac_exec_ext"
22580 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22590 RDOC=$ac_cv_path_RDOC
22591 if test -n "$RDOC"; then
22592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RDOC" >&5
22593 $as_echo "$RDOC" >&6; }
22595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22596 $as_echo "no" >&6; }
22600 test -n "$RDOC" && break
22602 test -n "$RDOC" || RDOC="none"
22605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ruby major version" >&5
22606 $as_echo_n "checking for Ruby major version... " >&6; }
22607 if ${svn_cv_ruby_major+:} false; then :
22608 $as_echo_n "(cached) " >&6
22611 svn_cv_ruby_major="`$RUBY -rrbconfig -e 'print RbConfig::CONFIG.fetch(%q(MAJOR))'`"
22614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $svn_cv_ruby_major" >&5
22615 $as_echo "$svn_cv_ruby_major" >&6; }
22616 RUBY_MAJOR="$svn_cv_ruby_major"
22618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ruby minor version" >&5
22619 $as_echo_n "checking for Ruby minor version... " >&6; }
22620 if ${svn_cv_ruby_minor+:} false; then :
22621 $as_echo_n "(cached) " >&6
22624 svn_cv_ruby_minor="`$RUBY -rrbconfig -e 'print RbConfig::CONFIG.fetch(%q(MINOR))'`"
22627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $svn_cv_ruby_minor" >&5
22628 $as_echo "$svn_cv_ruby_minor" >&6; }
22629 RUBY_MINOR="$svn_cv_ruby_minor"
22631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ruby teeny version" >&5
22632 $as_echo_n "checking for Ruby teeny version... " >&6; }
22633 if ${svn_cv_ruby_teeny+:} false; then :
22634 $as_echo_n "(cached) " >&6
22637 svn_cv_ruby_teeny="`$RUBY -rrbconfig -e 'major, minor, teeny = RUBY_VERSION.split("."); print teeny;'`"
22640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $svn_cv_ruby_teeny" >&5
22641 $as_echo "$svn_cv_ruby_teeny" >&6; }
22642 RUBY_TEENY="$svn_cv_ruby_teeny"
22647 if test \( "$RUBY_MAJOR" -eq "1" -a "$RUBY_MINOR" -gt "8" -a "$RUBY_TEENY" -lt "3" \); then
22648 # Disallow Ruby between 1.8.7 and 1.9.3
22650 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The detected Ruby is between 1.9 and 1.9.3" >&5
22651 $as_echo "$as_me: WARNING: The detected Ruby is between 1.9 and 1.9.3" >&2;}
22652 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Only 1.8.x and 1.9.3 releases are supported at this time" >&5
22653 $as_echo "$as_me: WARNING: Only 1.8.x and 1.9.3 releases are supported at this time" >&2;}
22654 elif test \( "$RUBY_MAJOR" -eq "1" -a "$RUBY_MINOR" -eq "9" -a "$RUBY_TEENY" -eq "3" \); then
22655 #Warn about 1.9.3 support
22656 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: WARNING: The detected Ruby is 1.9.3" >&5
22657 $as_echo "$as_me: WARNING: WARNING: The detected Ruby is 1.9.3" >&2;}
22658 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: WARNING: Only 1.8.x releases are fully supported, 1.9.3 support is new" >&5
22659 $as_echo "$as_me: WARNING: WARNING: Only 1.8.x releases are fully supported, 1.9.3 support is new" >&2;}
22662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22663 $as_echo "no" >&6; }
22665 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The detected Ruby is too old for Subversion to use" >&5
22666 $as_echo "$as_me: WARNING: The detected Ruby is too old for Subversion to use" >&2;}
22667 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: A Ruby which has rb_hash_foreach is required to use the" >&5
22668 $as_echo "$as_me: WARNING: A Ruby which has rb_hash_foreach is required to use the" >&2;}
22669 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Subversion Ruby bindings" >&5
22670 $as_echo "$as_me: WARNING: Subversion Ruby bindings" >&2;}
22671 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Upgrade to the official 1.8.2 release, or later" >&5
22672 $as_echo "$as_me: WARNING: Upgrade to the official 1.8.2 release, or later" >&2;}
22678 # Check whether --with-swig was given.
22679 if test "${with_swig+set}" = set; then :
22680 withval=$with_swig;
22687 if test $where = no; then
22689 elif test $where = check; then
22690 # Extract the first word of "swig", so it can be a program name with args.
22691 set dummy swig; ac_word=$2
22692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22693 $as_echo_n "checking for $ac_word... " >&6; }
22694 if ${ac_cv_path_SWIG+:} false; then :
22695 $as_echo_n "(cached) " >&6
22699 ac_cv_path_SWIG="$SWIG" # Let the user override the test with a path.
22702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22703 for as_dir in $PATH
22706 test -z "$as_dir" && as_dir=.
22707 for ac_exec_ext in '' $ac_executable_extensions; do
22708 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22709 ac_cv_path_SWIG="$as_dir/$ac_word$ac_exec_ext"
22710 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22717 test -z "$ac_cv_path_SWIG" && ac_cv_path_SWIG="none"
22721 SWIG=$ac_cv_path_SWIG
22722 if test -n "$SWIG"; then
22723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG" >&5
22724 $as_echo "$SWIG" >&6; }
22726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22727 $as_echo "no" >&6; }
22732 if test -f "$where"; then
22735 SWIG="$where/bin/swig"
22737 if test ! -f "$SWIG" || test ! -x "$SWIG"; then
22738 as_fn_error $? "Could not find swig binary at $SWIG" "$LINENO" 5
22742 if test "$SWIG" != "none"; then
22743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking swig version" >&5
22744 $as_echo_n "checking swig version... " >&6; }
22745 SWIG_VERSION_RAW="`$SWIG -version 2>&1 | \
22746 $SED -ne 's/^.*Version \(.*\)$/\1/p'`"
22747 # We want the version as an integer so we can test against
22748 # which version we're using. SWIG doesn't provide this
22749 # to us so we have to come up with it on our own.
22750 # The major is passed straight through,
22751 # the minor is zero padded to two places,
22752 # and the patch level is zero padded to three places.
22753 # e.g. 1.3.24 becomes 103024
22754 SWIG_VERSION="`echo \"$SWIG_VERSION_RAW\" | \
22755 $SED -e 's/[^0-9\.].*$//' \
22756 -e 's/\.\([0-9]\)$/.0\1/' \
22757 -e 's/\.\([0-9][0-9]\)$/.0\1/' \
22758 -e 's/\.\([0-9]\)\./0\1/; s/\.//g;'`"
22759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG_VERSION_RAW" >&5
22760 $as_echo "$SWIG_VERSION_RAW" >&6; }
22761 # If you change the required swig version number, don't forget to update:
22762 # subversion/bindings/swig/INSTALL
22763 # packages/rpm/redhat-8+/subversion.spec
22764 # packages/rpm/redhat-7.x/subversion.spec
22765 # packages/rpm/rhel-3/subversion.spec
22766 # packages/rpm/rhel-4/subversion.spec
22767 if test -n "$SWIG_VERSION" && test "$SWIG_VERSION" -ge "103024"; then
22771 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Detected SWIG version $SWIG_VERSION_RAW" >&5
22772 $as_echo "$as_me: WARNING: Detected SWIG version $SWIG_VERSION_RAW" >&2;}
22773 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Subversion requires SWIG 1.3.24 or later" >&5
22774 $as_echo "$as_me: WARNING: Subversion requires SWIG 1.3.24 or later" >&2;}
22778 SWIG_PY_COMPILE="none"
22779 SWIG_PY_LINK="none"
22780 if test "$PYTHON" != "none"; then
22781 { $as_echo "$as_me:${as_lineno-$LINENO}: Configuring python swig binding" >&5
22782 $as_echo "$as_me: Configuring python swig binding" >&6;}
22784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python includes" >&5
22785 $as_echo_n "checking for Python includes... " >&6; }
22786 if ${ac_cv_python_includes+:} false; then :
22787 $as_echo_n "(cached) " >&6
22790 ac_cv_python_includes="`$PYTHON ${abs_srcdir}/build/get-py-info.py --includes`"
22793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_python_includes" >&5
22794 $as_echo "$ac_cv_python_includes" >&6; }
22795 SWIG_PY_INCLUDES="\$(SWIG_INCLUDES) $ac_cv_python_includes"
22797 if test "$ac_cv_python_includes" = "none"; then
22798 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: python bindings cannot be built without distutils module" >&5
22799 $as_echo "$as_me: WARNING: python bindings cannot be built without distutils module" >&2;}
22802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiling Python extensions" >&5
22803 $as_echo_n "checking for compiling Python extensions... " >&6; }
22804 if ${ac_cv_python_compile+:} false; then :
22805 $as_echo_n "(cached) " >&6
22808 ac_cv_python_compile="`$PYTHON ${abs_srcdir}/build/get-py-info.py --compile`"
22811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_python_compile" >&5
22812 $as_echo "$ac_cv_python_compile" >&6; }
22813 SWIG_PY_COMPILE="$ac_cv_python_compile $CFLAGS"
22815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linking Python extensions" >&5
22816 $as_echo_n "checking for linking Python extensions... " >&6; }
22817 if ${ac_cv_python_link+:} false; then :
22818 $as_echo_n "(cached) " >&6
22821 ac_cv_python_link="`$PYTHON ${abs_srcdir}/build/get-py-info.py --link`"
22824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_python_link" >&5
22825 $as_echo "$ac_cv_python_link" >&6; }
22826 SWIG_PY_LINK="$ac_cv_python_link"
22828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linking Python libraries" >&5
22829 $as_echo_n "checking for linking Python libraries... " >&6; }
22830 if ${ac_cv_python_libs+:} false; then :
22831 $as_echo_n "(cached) " >&6
22834 ac_cv_python_libs="`$PYTHON ${abs_srcdir}/build/get-py-info.py --libs`"
22837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_python_libs" >&5
22838 $as_echo "$ac_cv_python_libs" >&6; }
22840 input_flags="$ac_cv_python_libs"
22842 filtered_dirs="/lib /lib64 /usr/lib /usr/lib64"
22843 for flag in $input_flags; do
22845 for dir in $filtered_dirs; do
22846 if test "$flag" = "-L$dir" || test "$flag" = "-L$dir/"; then
22851 if test "$filter" = "no"; then
22852 output_flags="$output_flags $flag"
22855 if test -n "$output_flags"; then
22856 printf "%s" "${output_flags# }"
22860 SVN_PYCFMT_SAVE_CPPFLAGS="$CPPFLAGS"
22861 CPPFLAGS="$CPPFLAGS $SVN_APR_INCLUDES"
22862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for apr_int64_t Python/C API format string" >&5
22863 $as_echo_n "checking for apr_int64_t Python/C API format string... " >&6; }
22864 if ${svn_cv_pycfmt_apr_int64_t+:} false; then :
22865 $as_echo_n "(cached) " >&6
22868 if test "x$svn_cv_pycfmt_apr_int64_t" = "x"; then
22869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22870 /* end confdefs.h. */
22872 MaTcHtHiS APR_INT64_T_FMT EnDeNd
22874 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22875 $EGREP "MaTcHtHiS +\"lld\" +EnDeNd" >/dev/null 2>&1; then :
22876 svn_cv_pycfmt_apr_int64_t="L"
22881 if test "x$svn_cv_pycfmt_apr_int64_t" = "x"; then
22882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22883 /* end confdefs.h. */
22886 MaTcHtHiS APR_INT64_T_FMT EnDeNd
22888 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22889 $EGREP "MaTcHtHiS +\"ld\" +EnDeNd" >/dev/null 2>&1; then :
22890 svn_cv_pycfmt_apr_int64_t="l"
22895 if test "x$svn_cv_pycfmt_apr_int64_t" = "x"; then
22896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22897 /* end confdefs.h. */
22899 MaTcHtHiS APR_INT64_T_FMT EnDeNd
22901 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22902 $EGREP "MaTcHtHiS +\"d\" +EnDeNd" >/dev/null 2>&1; then :
22903 svn_cv_pycfmt_apr_int64_t="i"
22910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $svn_cv_pycfmt_apr_int64_t" >&5
22911 $as_echo "$svn_cv_pycfmt_apr_int64_t" >&6; }
22912 CPPFLAGS="$SVN_PYCFMT_SAVE_CPPFLAGS"
22913 if test "x$svn_cv_pycfmt_apr_int64_t" = "x"; then
22914 as_fn_error $? "failed to recognize APR_INT64_T_FMT on this platform" "$LINENO" 5
22917 cat >>confdefs.h <<_ACEOF
22918 #define SVN_APR_INT64_T_PYCFMT "$svn_cv_pycfmt_apr_int64_t"
22923 if test "$PERL" != "none"; then
22924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking perl version" >&5
22925 $as_echo_n "checking perl version... " >&6; }
22926 PERL_VERSION="`$PERL -e 'q([); print $] * 1000000,$/;'`"
22927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL_VERSION" >&5
22928 $as_echo "$PERL_VERSION" >&6; }
22929 if test "$PERL_VERSION" -ge "5008000"; then
22930 SWIG_PL_INCLUDES="\$(SWIG_INCLUDES) `$PERL -MExtUtils::Embed -e ccopts`"
22932 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: perl bindings require perl 5.8.0 or newer." >&5
22933 $as_echo "$as_me: WARNING: perl bindings require perl 5.8.0 or newer." >&2;}
22937 SWIG_RB_COMPILE="none"
22938 SWIG_RB_LINK="none"
22939 if test "$RUBY" != "none"; then
22940 rbconfig="$RUBY -rrbconfig -e "
22942 for var_name in arch archdir CC LDSHARED DLEXT LIBS LIBRUBYARG \
22943 rubyhdrdir sitedir sitelibdir sitearchdir libdir
22945 rbconfig_tmp=`$rbconfig "print RbConfig::CONFIG['$var_name']"`
22946 eval "rbconfig_$var_name=\"$rbconfig_tmp\""
22949 { $as_echo "$as_me:${as_lineno-$LINENO}: Configuring Ruby SWIG binding" >&5
22950 $as_echo "$as_me: Configuring Ruby SWIG binding" >&6;}
22952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ruby include path" >&5
22953 $as_echo_n "checking for Ruby include path... " >&6; }
22954 if ${svn_cv_ruby_includes+:} false; then :
22955 $as_echo_n "(cached) " >&6
22958 if test -d "$rbconfig_rubyhdrdir"; then
22959 svn_cv_ruby_includes="-I. -I$rbconfig_rubyhdrdir -I$rbconfig_rubyhdrdir/ruby -I$rbconfig_rubyhdrdir/ruby/backward -I$rbconfig_rubyhdrdir/$rbconfig_arch"
22961 svn_cv_ruby_includes="-I. -I$rbconfig_archdir"
22965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $svn_cv_ruby_includes" >&5
22966 $as_echo "$svn_cv_ruby_includes" >&6; }
22967 SWIG_RB_INCLUDES="\$(SWIG_INCLUDES) $svn_cv_ruby_includes"
22969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compile Ruby extensions" >&5
22970 $as_echo_n "checking how to compile Ruby extensions... " >&6; }
22971 if ${svn_cv_ruby_compile+:} false; then :
22972 $as_echo_n "(cached) " >&6
22975 svn_cv_ruby_compile="$rbconfig_CC $CFLAGS"
22978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $svn_cv_ruby_compile" >&5
22979 $as_echo "$svn_cv_ruby_compile" >&6; }
22980 SWIG_RB_COMPILE="$svn_cv_ruby_compile"
22982 SWIG_RB_COMPILE=`echo "$SWIG_RB_COMPILE" | $SED -e 's/-ansi//'`
22985 SWIG_RB_COMPILE=`echo "$SWIG_RB_COMPILE" | $SED -e 's/-std=c89//'`
22988 SWIG_RB_COMPILE=`echo "$SWIG_RB_COMPILE" | $SED -e 's/-std=c90//'`
22990 SWIG_RB_COMPILE="$SWIG_RB_COMPILE -Wno-int-to-pointer-cast"
22992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link Ruby extensions" >&5
22993 $as_echo_n "checking how to link Ruby extensions... " >&6; }
22994 if ${svn_cv_ruby_link+:} false; then :
22995 $as_echo_n "(cached) " >&6
22998 svn_cv_ruby_link="`$RUBY -e 'ARGV.shift; print ARGV.join(%q( ))' \
22999 $rbconfig_LDSHARED`"
23000 svn_cv_ruby_link="$rbconfig_CC $svn_cv_ruby_link"
23001 svn_cv_ruby_link="$svn_cv_ruby_link -shrext .$rbconfig_DLEXT"
23004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $svn_cv_ruby_link" >&5
23005 $as_echo "$svn_cv_ruby_link" >&6; }
23006 SWIG_RB_LINK="$svn_cv_ruby_link"
23008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link Ruby libraries" >&5
23009 $as_echo_n "checking how to link Ruby libraries... " >&6; }
23010 if ${ac_cv_ruby_libs+:} false; then :
23011 $as_echo_n "(cached) " >&6
23014 ac_cv_ruby_libs="$rbconfig_LIBRUBYARG $rbconfig_LIBS"
23017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_ruby_libs" >&5
23018 $as_echo "$ac_cv_ruby_libs" >&6; }
23020 input_flags="$ac_cv_ruby_libs"
23022 filtered_dirs="/lib /lib64 /usr/lib /usr/lib64"
23023 for flag in $input_flags; do
23025 for dir in $filtered_dirs; do
23026 if test "$flag" = "-L$dir" || test "$flag" = "-L$dir/"; then
23031 if test "$filter" = "no"; then
23032 output_flags="$output_flags $flag"
23035 if test -n "$output_flags"; then
23036 printf "%s" "${output_flags# }"
23040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rb_errinfo" >&5
23041 $as_echo_n "checking for rb_errinfo... " >&6; }
23042 old_CFLAGS="$CFLAGS"
23044 CFLAGS="$CFLAGS $svn_cv_ruby_includes"
23046 CFLAGS=`echo "$CFLAGS" | $SED -e 's/-ansi//'`
23049 CFLAGS=`echo "$CFLAGS" | $SED -e 's/-std=c89//'`
23052 CFLAGS=`echo "$CFLAGS" | $SED -e 's/-std=c90//'`
23054 LIBS="$SWIG_RB_LIBS"
23055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23056 /* end confdefs.h. */
23062 if ac_fn_c_try_link "$LINENO"; then :
23063 have_rb_errinfo="yes"
23065 have_rb_errinfo="no"
23067 rm -f core conftest.err conftest.$ac_objext \
23068 conftest$ac_exeext conftest.$ac_ext
23069 if test "$have_rb_errinfo" = "yes"; then
23070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23071 $as_echo "yes" >&6; }
23073 $as_echo "#define HAVE_RB_ERRINFO 1" >>confdefs.h
23076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23077 $as_echo "no" >&6; }
23079 CFLAGS="$old_CFLAGS"
23082 if ${svn_cv_ruby_sitedir+:} false; then :
23083 $as_echo_n "(cached) " >&6
23086 svn_cv_ruby_sitedir="$rbconfig_sitedir"
23091 # Check whether --with-ruby-sitedir was given.
23092 if test "${with_ruby_sitedir+set}" = set; then :
23093 withval=$with_ruby_sitedir; svn_ruby_installdir="$withval"
23095 svn_ruby_installdir="$svn_cv_ruby_sitedir"
23099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to install Ruby scripts" >&5
23100 $as_echo_n "checking where to install Ruby scripts... " >&6; }
23101 if ${svn_cv_ruby_sitedir_libsuffix+:} false; then :
23102 $as_echo_n "(cached) " >&6
23105 svn_cv_ruby_sitedir_libsuffix="`echo "$rbconfig_sitelibdir" | \
23106 $SED -e "s,^$rbconfig_sitedir,,"`"
23110 SWIG_RB_SITE_LIB_DIR="${svn_ruby_installdir}${svn_cv_ruby_sitedir_libsuffix}"
23111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG_RB_SITE_LIB_DIR" >&5
23112 $as_echo "$SWIG_RB_SITE_LIB_DIR" >&6; }
23114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to install Ruby extensions" >&5
23115 $as_echo_n "checking where to install Ruby extensions... " >&6; }
23116 if ${svn_cv_ruby_sitedir_archsuffix+:} false; then :
23117 $as_echo_n "(cached) " >&6
23120 svn_cv_ruby_sitedir_archsuffix="`echo "$rbconfig_sitearchdir" | \
23121 $SED -e "s,^$rbconfig_sitedir,,"`"
23125 SWIG_RB_SITE_ARCH_DIR="${svn_ruby_installdir}${svn_cv_ruby_sitedir_archsuffix}"
23126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG_RB_SITE_ARCH_DIR" >&5
23127 $as_echo "$SWIG_RB_SITE_ARCH_DIR" >&6; }
23129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to use output level for Ruby bindings tests" >&5
23130 $as_echo_n "checking how to use output level for Ruby bindings tests... " >&6; }
23131 if ${svn_cv_ruby_test_verbose+:} false; then :
23132 $as_echo_n "(cached) " >&6
23135 svn_cv_ruby_test_verbose="normal"
23140 # Check whether --with-ruby-test-verbose was given.
23141 if test "${with_ruby_test_verbose+set}" = set; then :
23142 withval=$with_ruby_test_verbose; svn_ruby_test_verbose="$withval"
23144 svn_ruby_test_verbose="$svn_cv_ruby_test_verbose"
23147 SWIG_RB_TEST_VERBOSE="$svn_ruby_test_verbose"
23148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG_RB_TEST_VERBOSE" >&5
23149 $as_echo "$SWIG_RB_TEST_VERBOSE" >&6; }
23170 if test $where = no; then
23172 elif test $where = check; then
23173 # Extract the first word of "swig", so it can be a program name with args.
23174 set dummy swig; ac_word=$2
23175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23176 $as_echo_n "checking for $ac_word... " >&6; }
23177 if ${ac_cv_path_SWIG+:} false; then :
23178 $as_echo_n "(cached) " >&6
23182 ac_cv_path_SWIG="$SWIG" # Let the user override the test with a path.
23185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23186 for as_dir in $PATH
23189 test -z "$as_dir" && as_dir=.
23190 for ac_exec_ext in '' $ac_executable_extensions; do
23191 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23192 ac_cv_path_SWIG="$as_dir/$ac_word$ac_exec_ext"
23193 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23200 test -z "$ac_cv_path_SWIG" && ac_cv_path_SWIG="none"
23204 SWIG=$ac_cv_path_SWIG
23205 if test -n "$SWIG"; then
23206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG" >&5
23207 $as_echo "$SWIG" >&6; }
23209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23210 $as_echo "no" >&6; }
23215 if test -f "$where"; then
23218 SWIG="$where/bin/swig"
23220 if test ! -f "$SWIG" || test ! -x "$SWIG"; then
23221 as_fn_error $? "Could not find swig binary at $SWIG" "$LINENO" 5
23225 if test "$SWIG" != "none"; then
23226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking swig version" >&5
23227 $as_echo_n "checking swig version... " >&6; }
23228 SWIG_VERSION_RAW="`$SWIG -version 2>&1 | \
23229 $SED -ne 's/^.*Version \(.*\)$/\1/p'`"
23230 # We want the version as an integer so we can test against
23231 # which version we're using. SWIG doesn't provide this
23232 # to us so we have to come up with it on our own.
23233 # The major is passed straight through,
23234 # the minor is zero padded to two places,
23235 # and the patch level is zero padded to three places.
23236 # e.g. 1.3.24 becomes 103024
23237 SWIG_VERSION="`echo \"$SWIG_VERSION_RAW\" | \
23238 $SED -e 's/[^0-9\.].*$//' \
23239 -e 's/\.\([0-9]\)$/.0\1/' \
23240 -e 's/\.\([0-9][0-9]\)$/.0\1/' \
23241 -e 's/\.\([0-9]\)\./0\1/; s/\.//g;'`"
23242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG_VERSION_RAW" >&5
23243 $as_echo "$SWIG_VERSION_RAW" >&6; }
23244 # If you change the required swig version number, don't forget to update:
23245 # subversion/bindings/swig/INSTALL
23246 # packages/rpm/redhat-8+/subversion.spec
23247 # packages/rpm/redhat-7.x/subversion.spec
23248 # packages/rpm/rhel-3/subversion.spec
23249 # packages/rpm/rhel-4/subversion.spec
23250 if test -n "$SWIG_VERSION" && test "$SWIG_VERSION" -ge "103024"; then
23254 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Detected SWIG version $SWIG_VERSION_RAW" >&5
23255 $as_echo "$as_me: WARNING: Detected SWIG version $SWIG_VERSION_RAW" >&2;}
23256 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Subversion requires SWIG 1.3.24 or later" >&5
23257 $as_echo "$as_me: WARNING: Subversion requires SWIG 1.3.24 or later" >&2;}
23261 SWIG_PY_COMPILE="none"
23262 SWIG_PY_LINK="none"
23263 if test "$PYTHON" != "none"; then
23264 { $as_echo "$as_me:${as_lineno-$LINENO}: Configuring python swig binding" >&5
23265 $as_echo "$as_me: Configuring python swig binding" >&6;}
23267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python includes" >&5
23268 $as_echo_n "checking for Python includes... " >&6; }
23269 if ${ac_cv_python_includes+:} false; then :
23270 $as_echo_n "(cached) " >&6
23273 ac_cv_python_includes="`$PYTHON ${abs_srcdir}/build/get-py-info.py --includes`"
23276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_python_includes" >&5
23277 $as_echo "$ac_cv_python_includes" >&6; }
23278 SWIG_PY_INCLUDES="\$(SWIG_INCLUDES) $ac_cv_python_includes"
23280 if test "$ac_cv_python_includes" = "none"; then
23281 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: python bindings cannot be built without distutils module" >&5
23282 $as_echo "$as_me: WARNING: python bindings cannot be built without distutils module" >&2;}
23285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiling Python extensions" >&5
23286 $as_echo_n "checking for compiling Python extensions... " >&6; }
23287 if ${ac_cv_python_compile+:} false; then :
23288 $as_echo_n "(cached) " >&6
23291 ac_cv_python_compile="`$PYTHON ${abs_srcdir}/build/get-py-info.py --compile`"
23294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_python_compile" >&5
23295 $as_echo "$ac_cv_python_compile" >&6; }
23296 SWIG_PY_COMPILE="$ac_cv_python_compile $CFLAGS"
23298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linking Python extensions" >&5
23299 $as_echo_n "checking for linking Python extensions... " >&6; }
23300 if ${ac_cv_python_link+:} false; then :
23301 $as_echo_n "(cached) " >&6
23304 ac_cv_python_link="`$PYTHON ${abs_srcdir}/build/get-py-info.py --link`"
23307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_python_link" >&5
23308 $as_echo "$ac_cv_python_link" >&6; }
23309 SWIG_PY_LINK="$ac_cv_python_link"
23311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linking Python libraries" >&5
23312 $as_echo_n "checking for linking Python libraries... " >&6; }
23313 if ${ac_cv_python_libs+:} false; then :
23314 $as_echo_n "(cached) " >&6
23317 ac_cv_python_libs="`$PYTHON ${abs_srcdir}/build/get-py-info.py --libs`"
23320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_python_libs" >&5
23321 $as_echo "$ac_cv_python_libs" >&6; }
23323 input_flags="$ac_cv_python_libs"
23325 filtered_dirs="/lib /lib64 /usr/lib /usr/lib64"
23326 for flag in $input_flags; do
23328 for dir in $filtered_dirs; do
23329 if test "$flag" = "-L$dir" || test "$flag" = "-L$dir/"; then
23334 if test "$filter" = "no"; then
23335 output_flags="$output_flags $flag"
23338 if test -n "$output_flags"; then
23339 printf "%s" "${output_flags# }"
23343 SVN_PYCFMT_SAVE_CPPFLAGS="$CPPFLAGS"
23344 CPPFLAGS="$CPPFLAGS $SVN_APR_INCLUDES"
23345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for apr_int64_t Python/C API format string" >&5
23346 $as_echo_n "checking for apr_int64_t Python/C API format string... " >&6; }
23347 if ${svn_cv_pycfmt_apr_int64_t+:} false; then :
23348 $as_echo_n "(cached) " >&6
23351 if test "x$svn_cv_pycfmt_apr_int64_t" = "x"; then
23352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23353 /* end confdefs.h. */
23355 MaTcHtHiS APR_INT64_T_FMT EnDeNd
23357 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23358 $EGREP "MaTcHtHiS +\"lld\" +EnDeNd" >/dev/null 2>&1; then :
23359 svn_cv_pycfmt_apr_int64_t="L"
23364 if test "x$svn_cv_pycfmt_apr_int64_t" = "x"; then
23365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23366 /* end confdefs.h. */
23369 MaTcHtHiS APR_INT64_T_FMT EnDeNd
23371 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23372 $EGREP "MaTcHtHiS +\"ld\" +EnDeNd" >/dev/null 2>&1; then :
23373 svn_cv_pycfmt_apr_int64_t="l"
23378 if test "x$svn_cv_pycfmt_apr_int64_t" = "x"; then
23379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23380 /* end confdefs.h. */
23382 MaTcHtHiS APR_INT64_T_FMT EnDeNd
23384 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23385 $EGREP "MaTcHtHiS +\"d\" +EnDeNd" >/dev/null 2>&1; then :
23386 svn_cv_pycfmt_apr_int64_t="i"
23393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $svn_cv_pycfmt_apr_int64_t" >&5
23394 $as_echo "$svn_cv_pycfmt_apr_int64_t" >&6; }
23395 CPPFLAGS="$SVN_PYCFMT_SAVE_CPPFLAGS"
23396 if test "x$svn_cv_pycfmt_apr_int64_t" = "x"; then
23397 as_fn_error $? "failed to recognize APR_INT64_T_FMT on this platform" "$LINENO" 5
23400 cat >>confdefs.h <<_ACEOF
23401 #define SVN_APR_INT64_T_PYCFMT "$svn_cv_pycfmt_apr_int64_t"
23406 if test "$PERL" != "none"; then
23407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking perl version" >&5
23408 $as_echo_n "checking perl version... " >&6; }
23409 PERL_VERSION="`$PERL -e 'q([); print $] * 1000000,$/;'`"
23410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL_VERSION" >&5
23411 $as_echo "$PERL_VERSION" >&6; }
23412 if test "$PERL_VERSION" -ge "5008000"; then
23413 SWIG_PL_INCLUDES="\$(SWIG_INCLUDES) `$PERL -MExtUtils::Embed -e ccopts`"
23415 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: perl bindings require perl 5.8.0 or newer." >&5
23416 $as_echo "$as_me: WARNING: perl bindings require perl 5.8.0 or newer." >&2;}
23420 SWIG_RB_COMPILE="none"
23421 SWIG_RB_LINK="none"
23422 if test "$RUBY" != "none"; then
23423 rbconfig="$RUBY -rrbconfig -e "
23425 for var_name in arch archdir CC LDSHARED DLEXT LIBS LIBRUBYARG \
23426 rubyhdrdir sitedir sitelibdir sitearchdir libdir
23428 rbconfig_tmp=`$rbconfig "print RbConfig::CONFIG['$var_name']"`
23429 eval "rbconfig_$var_name=\"$rbconfig_tmp\""
23432 { $as_echo "$as_me:${as_lineno-$LINENO}: Configuring Ruby SWIG binding" >&5
23433 $as_echo "$as_me: Configuring Ruby SWIG binding" >&6;}
23435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ruby include path" >&5
23436 $as_echo_n "checking for Ruby include path... " >&6; }
23437 if ${svn_cv_ruby_includes+:} false; then :
23438 $as_echo_n "(cached) " >&6
23441 if test -d "$rbconfig_rubyhdrdir"; then
23442 svn_cv_ruby_includes="-I. -I$rbconfig_rubyhdrdir -I$rbconfig_rubyhdrdir/ruby -I$rbconfig_rubyhdrdir/ruby/backward -I$rbconfig_rubyhdrdir/$rbconfig_arch"
23444 svn_cv_ruby_includes="-I. -I$rbconfig_archdir"
23448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $svn_cv_ruby_includes" >&5
23449 $as_echo "$svn_cv_ruby_includes" >&6; }
23450 SWIG_RB_INCLUDES="\$(SWIG_INCLUDES) $svn_cv_ruby_includes"
23452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compile Ruby extensions" >&5
23453 $as_echo_n "checking how to compile Ruby extensions... " >&6; }
23454 if ${svn_cv_ruby_compile+:} false; then :
23455 $as_echo_n "(cached) " >&6
23458 svn_cv_ruby_compile="$rbconfig_CC $CFLAGS"
23461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $svn_cv_ruby_compile" >&5
23462 $as_echo "$svn_cv_ruby_compile" >&6; }
23463 SWIG_RB_COMPILE="$svn_cv_ruby_compile"
23465 SWIG_RB_COMPILE=`echo "$SWIG_RB_COMPILE" | $SED -e 's/-ansi//'`
23468 SWIG_RB_COMPILE=`echo "$SWIG_RB_COMPILE" | $SED -e 's/-std=c89//'`
23471 SWIG_RB_COMPILE=`echo "$SWIG_RB_COMPILE" | $SED -e 's/-std=c90//'`
23473 SWIG_RB_COMPILE="$SWIG_RB_COMPILE -Wno-int-to-pointer-cast"
23475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link Ruby extensions" >&5
23476 $as_echo_n "checking how to link Ruby extensions... " >&6; }
23477 if ${svn_cv_ruby_link+:} false; then :
23478 $as_echo_n "(cached) " >&6
23481 svn_cv_ruby_link="`$RUBY -e 'ARGV.shift; print ARGV.join(%q( ))' \
23482 $rbconfig_LDSHARED`"
23483 svn_cv_ruby_link="$rbconfig_CC $svn_cv_ruby_link"
23484 svn_cv_ruby_link="$svn_cv_ruby_link -shrext .$rbconfig_DLEXT"
23487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $svn_cv_ruby_link" >&5
23488 $as_echo "$svn_cv_ruby_link" >&6; }
23489 SWIG_RB_LINK="$svn_cv_ruby_link"
23491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link Ruby libraries" >&5
23492 $as_echo_n "checking how to link Ruby libraries... " >&6; }
23493 if ${ac_cv_ruby_libs+:} false; then :
23494 $as_echo_n "(cached) " >&6
23497 ac_cv_ruby_libs="$rbconfig_LIBRUBYARG $rbconfig_LIBS"
23500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_ruby_libs" >&5
23501 $as_echo "$ac_cv_ruby_libs" >&6; }
23503 input_flags="$ac_cv_ruby_libs"
23505 filtered_dirs="/lib /lib64 /usr/lib /usr/lib64"
23506 for flag in $input_flags; do
23508 for dir in $filtered_dirs; do
23509 if test "$flag" = "-L$dir" || test "$flag" = "-L$dir/"; then
23514 if test "$filter" = "no"; then
23515 output_flags="$output_flags $flag"
23518 if test -n "$output_flags"; then
23519 printf "%s" "${output_flags# }"
23523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rb_errinfo" >&5
23524 $as_echo_n "checking for rb_errinfo... " >&6; }
23525 old_CFLAGS="$CFLAGS"
23527 CFLAGS="$CFLAGS $svn_cv_ruby_includes"
23529 CFLAGS=`echo "$CFLAGS" | $SED -e 's/-ansi//'`
23532 CFLAGS=`echo "$CFLAGS" | $SED -e 's/-std=c89//'`
23535 CFLAGS=`echo "$CFLAGS" | $SED -e 's/-std=c90//'`
23537 LIBS="$SWIG_RB_LIBS"
23538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23539 /* end confdefs.h. */
23545 if ac_fn_c_try_link "$LINENO"; then :
23546 have_rb_errinfo="yes"
23548 have_rb_errinfo="no"
23550 rm -f core conftest.err conftest.$ac_objext \
23551 conftest$ac_exeext conftest.$ac_ext
23552 if test "$have_rb_errinfo" = "yes"; then
23553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23554 $as_echo "yes" >&6; }
23556 $as_echo "#define HAVE_RB_ERRINFO 1" >>confdefs.h
23559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23560 $as_echo "no" >&6; }
23562 CFLAGS="$old_CFLAGS"
23565 if ${svn_cv_ruby_sitedir+:} false; then :
23566 $as_echo_n "(cached) " >&6
23569 svn_cv_ruby_sitedir="$rbconfig_sitedir"
23574 # Check whether --with-ruby-sitedir was given.
23575 if test "${with_ruby_sitedir+set}" = set; then :
23576 withval=$with_ruby_sitedir; svn_ruby_installdir="$withval"
23578 svn_ruby_installdir="$svn_cv_ruby_sitedir"
23582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to install Ruby scripts" >&5
23583 $as_echo_n "checking where to install Ruby scripts... " >&6; }
23584 if ${svn_cv_ruby_sitedir_libsuffix+:} false; then :
23585 $as_echo_n "(cached) " >&6
23588 svn_cv_ruby_sitedir_libsuffix="`echo "$rbconfig_sitelibdir" | \
23589 $SED -e "s,^$rbconfig_sitedir,,"`"
23593 SWIG_RB_SITE_LIB_DIR="${svn_ruby_installdir}${svn_cv_ruby_sitedir_libsuffix}"
23594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG_RB_SITE_LIB_DIR" >&5
23595 $as_echo "$SWIG_RB_SITE_LIB_DIR" >&6; }
23597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to install Ruby extensions" >&5
23598 $as_echo_n "checking where to install Ruby extensions... " >&6; }
23599 if ${svn_cv_ruby_sitedir_archsuffix+:} false; then :
23600 $as_echo_n "(cached) " >&6
23603 svn_cv_ruby_sitedir_archsuffix="`echo "$rbconfig_sitearchdir" | \
23604 $SED -e "s,^$rbconfig_sitedir,,"`"
23608 SWIG_RB_SITE_ARCH_DIR="${svn_ruby_installdir}${svn_cv_ruby_sitedir_archsuffix}"
23609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG_RB_SITE_ARCH_DIR" >&5
23610 $as_echo "$SWIG_RB_SITE_ARCH_DIR" >&6; }
23612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to use output level for Ruby bindings tests" >&5
23613 $as_echo_n "checking how to use output level for Ruby bindings tests... " >&6; }
23614 if ${svn_cv_ruby_test_verbose+:} false; then :
23615 $as_echo_n "(cached) " >&6
23618 svn_cv_ruby_test_verbose="normal"
23623 # Check whether --with-ruby-test-verbose was given.
23624 if test "${with_ruby_test_verbose+set}" = set; then :
23625 withval=$with_ruby_test_verbose; svn_ruby_test_verbose="$withval"
23627 svn_ruby_test_verbose="$svn_cv_ruby_test_verbose"
23630 SWIG_RB_TEST_VERBOSE="$svn_ruby_test_verbose"
23631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG_RB_TEST_VERBOSE" >&5
23632 $as_echo "$SWIG_RB_TEST_VERBOSE" >&6; }
23653 if test $where = no; then
23655 elif test $where = check; then
23656 # Extract the first word of "swig", so it can be a program name with args.
23657 set dummy swig; ac_word=$2
23658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23659 $as_echo_n "checking for $ac_word... " >&6; }
23660 if ${ac_cv_path_SWIG+:} false; then :
23661 $as_echo_n "(cached) " >&6
23665 ac_cv_path_SWIG="$SWIG" # Let the user override the test with a path.
23668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23669 for as_dir in $PATH
23672 test -z "$as_dir" && as_dir=.
23673 for ac_exec_ext in '' $ac_executable_extensions; do
23674 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23675 ac_cv_path_SWIG="$as_dir/$ac_word$ac_exec_ext"
23676 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23683 test -z "$ac_cv_path_SWIG" && ac_cv_path_SWIG="none"
23687 SWIG=$ac_cv_path_SWIG
23688 if test -n "$SWIG"; then
23689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG" >&5
23690 $as_echo "$SWIG" >&6; }
23692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23693 $as_echo "no" >&6; }
23698 if test -f "$where"; then
23701 SWIG="$where/bin/swig"
23703 if test ! -f "$SWIG" || test ! -x "$SWIG"; then
23704 as_fn_error $? "Could not find swig binary at $SWIG" "$LINENO" 5
23708 if test "$SWIG" != "none"; then
23709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking swig version" >&5
23710 $as_echo_n "checking swig version... " >&6; }
23711 SWIG_VERSION_RAW="`$SWIG -version 2>&1 | \
23712 $SED -ne 's/^.*Version \(.*\)$/\1/p'`"
23713 # We want the version as an integer so we can test against
23714 # which version we're using. SWIG doesn't provide this
23715 # to us so we have to come up with it on our own.
23716 # The major is passed straight through,
23717 # the minor is zero padded to two places,
23718 # and the patch level is zero padded to three places.
23719 # e.g. 1.3.24 becomes 103024
23720 SWIG_VERSION="`echo \"$SWIG_VERSION_RAW\" | \
23721 $SED -e 's/[^0-9\.].*$//' \
23722 -e 's/\.\([0-9]\)$/.0\1/' \
23723 -e 's/\.\([0-9][0-9]\)$/.0\1/' \
23724 -e 's/\.\([0-9]\)\./0\1/; s/\.//g;'`"
23725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG_VERSION_RAW" >&5
23726 $as_echo "$SWIG_VERSION_RAW" >&6; }
23727 # If you change the required swig version number, don't forget to update:
23728 # subversion/bindings/swig/INSTALL
23729 # packages/rpm/redhat-8+/subversion.spec
23730 # packages/rpm/redhat-7.x/subversion.spec
23731 # packages/rpm/rhel-3/subversion.spec
23732 # packages/rpm/rhel-4/subversion.spec
23733 if test -n "$SWIG_VERSION" && test "$SWIG_VERSION" -ge "103024"; then
23737 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Detected SWIG version $SWIG_VERSION_RAW" >&5
23738 $as_echo "$as_me: WARNING: Detected SWIG version $SWIG_VERSION_RAW" >&2;}
23739 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Subversion requires SWIG 1.3.24 or later" >&5
23740 $as_echo "$as_me: WARNING: Subversion requires SWIG 1.3.24 or later" >&2;}
23744 SWIG_PY_COMPILE="none"
23745 SWIG_PY_LINK="none"
23746 if test "$PYTHON" != "none"; then
23747 { $as_echo "$as_me:${as_lineno-$LINENO}: Configuring python swig binding" >&5
23748 $as_echo "$as_me: Configuring python swig binding" >&6;}
23750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python includes" >&5
23751 $as_echo_n "checking for Python includes... " >&6; }
23752 if ${ac_cv_python_includes+:} false; then :
23753 $as_echo_n "(cached) " >&6
23756 ac_cv_python_includes="`$PYTHON ${abs_srcdir}/build/get-py-info.py --includes`"
23759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_python_includes" >&5
23760 $as_echo "$ac_cv_python_includes" >&6; }
23761 SWIG_PY_INCLUDES="\$(SWIG_INCLUDES) $ac_cv_python_includes"
23763 if test "$ac_cv_python_includes" = "none"; then
23764 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: python bindings cannot be built without distutils module" >&5
23765 $as_echo "$as_me: WARNING: python bindings cannot be built without distutils module" >&2;}
23768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiling Python extensions" >&5
23769 $as_echo_n "checking for compiling Python extensions... " >&6; }
23770 if ${ac_cv_python_compile+:} false; then :
23771 $as_echo_n "(cached) " >&6
23774 ac_cv_python_compile="`$PYTHON ${abs_srcdir}/build/get-py-info.py --compile`"
23777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_python_compile" >&5
23778 $as_echo "$ac_cv_python_compile" >&6; }
23779 SWIG_PY_COMPILE="$ac_cv_python_compile $CFLAGS"
23781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linking Python extensions" >&5
23782 $as_echo_n "checking for linking Python extensions... " >&6; }
23783 if ${ac_cv_python_link+:} false; then :
23784 $as_echo_n "(cached) " >&6
23787 ac_cv_python_link="`$PYTHON ${abs_srcdir}/build/get-py-info.py --link`"
23790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_python_link" >&5
23791 $as_echo "$ac_cv_python_link" >&6; }
23792 SWIG_PY_LINK="$ac_cv_python_link"
23794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linking Python libraries" >&5
23795 $as_echo_n "checking for linking Python libraries... " >&6; }
23796 if ${ac_cv_python_libs+:} false; then :
23797 $as_echo_n "(cached) " >&6
23800 ac_cv_python_libs="`$PYTHON ${abs_srcdir}/build/get-py-info.py --libs`"
23803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_python_libs" >&5
23804 $as_echo "$ac_cv_python_libs" >&6; }
23806 input_flags="$ac_cv_python_libs"
23808 filtered_dirs="/lib /lib64 /usr/lib /usr/lib64"
23809 for flag in $input_flags; do
23811 for dir in $filtered_dirs; do
23812 if test "$flag" = "-L$dir" || test "$flag" = "-L$dir/"; then
23817 if test "$filter" = "no"; then
23818 output_flags="$output_flags $flag"
23821 if test -n "$output_flags"; then
23822 printf "%s" "${output_flags# }"
23826 SVN_PYCFMT_SAVE_CPPFLAGS="$CPPFLAGS"
23827 CPPFLAGS="$CPPFLAGS $SVN_APR_INCLUDES"
23828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for apr_int64_t Python/C API format string" >&5
23829 $as_echo_n "checking for apr_int64_t Python/C API format string... " >&6; }
23830 if ${svn_cv_pycfmt_apr_int64_t+:} false; then :
23831 $as_echo_n "(cached) " >&6
23834 if test "x$svn_cv_pycfmt_apr_int64_t" = "x"; then
23835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23836 /* end confdefs.h. */
23838 MaTcHtHiS APR_INT64_T_FMT EnDeNd
23840 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23841 $EGREP "MaTcHtHiS +\"lld\" +EnDeNd" >/dev/null 2>&1; then :
23842 svn_cv_pycfmt_apr_int64_t="L"
23847 if test "x$svn_cv_pycfmt_apr_int64_t" = "x"; then
23848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23849 /* end confdefs.h. */
23852 MaTcHtHiS APR_INT64_T_FMT EnDeNd
23854 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23855 $EGREP "MaTcHtHiS +\"ld\" +EnDeNd" >/dev/null 2>&1; then :
23856 svn_cv_pycfmt_apr_int64_t="l"
23861 if test "x$svn_cv_pycfmt_apr_int64_t" = "x"; then
23862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23863 /* end confdefs.h. */
23865 MaTcHtHiS APR_INT64_T_FMT EnDeNd
23867 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23868 $EGREP "MaTcHtHiS +\"d\" +EnDeNd" >/dev/null 2>&1; then :
23869 svn_cv_pycfmt_apr_int64_t="i"
23876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $svn_cv_pycfmt_apr_int64_t" >&5
23877 $as_echo "$svn_cv_pycfmt_apr_int64_t" >&6; }
23878 CPPFLAGS="$SVN_PYCFMT_SAVE_CPPFLAGS"
23879 if test "x$svn_cv_pycfmt_apr_int64_t" = "x"; then
23880 as_fn_error $? "failed to recognize APR_INT64_T_FMT on this platform" "$LINENO" 5
23883 cat >>confdefs.h <<_ACEOF
23884 #define SVN_APR_INT64_T_PYCFMT "$svn_cv_pycfmt_apr_int64_t"
23889 if test "$PERL" != "none"; then
23890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking perl version" >&5
23891 $as_echo_n "checking perl version... " >&6; }
23892 PERL_VERSION="`$PERL -e 'q([); print $] * 1000000,$/;'`"
23893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL_VERSION" >&5
23894 $as_echo "$PERL_VERSION" >&6; }
23895 if test "$PERL_VERSION" -ge "5008000"; then
23896 SWIG_PL_INCLUDES="\$(SWIG_INCLUDES) `$PERL -MExtUtils::Embed -e ccopts`"
23898 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: perl bindings require perl 5.8.0 or newer." >&5
23899 $as_echo "$as_me: WARNING: perl bindings require perl 5.8.0 or newer." >&2;}
23903 SWIG_RB_COMPILE="none"
23904 SWIG_RB_LINK="none"
23905 if test "$RUBY" != "none"; then
23906 rbconfig="$RUBY -rrbconfig -e "
23908 for var_name in arch archdir CC LDSHARED DLEXT LIBS LIBRUBYARG \
23909 rubyhdrdir sitedir sitelibdir sitearchdir libdir
23911 rbconfig_tmp=`$rbconfig "print RbConfig::CONFIG['$var_name']"`
23912 eval "rbconfig_$var_name=\"$rbconfig_tmp\""
23915 { $as_echo "$as_me:${as_lineno-$LINENO}: Configuring Ruby SWIG binding" >&5
23916 $as_echo "$as_me: Configuring Ruby SWIG binding" >&6;}
23918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ruby include path" >&5
23919 $as_echo_n "checking for Ruby include path... " >&6; }
23920 if ${svn_cv_ruby_includes+:} false; then :
23921 $as_echo_n "(cached) " >&6
23924 if test -d "$rbconfig_rubyhdrdir"; then
23925 svn_cv_ruby_includes="-I. -I$rbconfig_rubyhdrdir -I$rbconfig_rubyhdrdir/ruby -I$rbconfig_rubyhdrdir/ruby/backward -I$rbconfig_rubyhdrdir/$rbconfig_arch"
23927 svn_cv_ruby_includes="-I. -I$rbconfig_archdir"
23931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $svn_cv_ruby_includes" >&5
23932 $as_echo "$svn_cv_ruby_includes" >&6; }
23933 SWIG_RB_INCLUDES="\$(SWIG_INCLUDES) $svn_cv_ruby_includes"
23935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compile Ruby extensions" >&5
23936 $as_echo_n "checking how to compile Ruby extensions... " >&6; }
23937 if ${svn_cv_ruby_compile+:} false; then :
23938 $as_echo_n "(cached) " >&6
23941 svn_cv_ruby_compile="$rbconfig_CC $CFLAGS"
23944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $svn_cv_ruby_compile" >&5
23945 $as_echo "$svn_cv_ruby_compile" >&6; }
23946 SWIG_RB_COMPILE="$svn_cv_ruby_compile"
23948 SWIG_RB_COMPILE=`echo "$SWIG_RB_COMPILE" | $SED -e 's/-ansi//'`
23951 SWIG_RB_COMPILE=`echo "$SWIG_RB_COMPILE" | $SED -e 's/-std=c89//'`
23954 SWIG_RB_COMPILE=`echo "$SWIG_RB_COMPILE" | $SED -e 's/-std=c90//'`
23956 SWIG_RB_COMPILE="$SWIG_RB_COMPILE -Wno-int-to-pointer-cast"
23958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link Ruby extensions" >&5
23959 $as_echo_n "checking how to link Ruby extensions... " >&6; }
23960 if ${svn_cv_ruby_link+:} false; then :
23961 $as_echo_n "(cached) " >&6
23964 svn_cv_ruby_link="`$RUBY -e 'ARGV.shift; print ARGV.join(%q( ))' \
23965 $rbconfig_LDSHARED`"
23966 svn_cv_ruby_link="$rbconfig_CC $svn_cv_ruby_link"
23967 svn_cv_ruby_link="$svn_cv_ruby_link -shrext .$rbconfig_DLEXT"
23970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $svn_cv_ruby_link" >&5
23971 $as_echo "$svn_cv_ruby_link" >&6; }
23972 SWIG_RB_LINK="$svn_cv_ruby_link"
23974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link Ruby libraries" >&5
23975 $as_echo_n "checking how to link Ruby libraries... " >&6; }
23976 if ${ac_cv_ruby_libs+:} false; then :
23977 $as_echo_n "(cached) " >&6
23980 ac_cv_ruby_libs="$rbconfig_LIBRUBYARG $rbconfig_LIBS"
23983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_ruby_libs" >&5
23984 $as_echo "$ac_cv_ruby_libs" >&6; }
23986 input_flags="$ac_cv_ruby_libs"
23988 filtered_dirs="/lib /lib64 /usr/lib /usr/lib64"
23989 for flag in $input_flags; do
23991 for dir in $filtered_dirs; do
23992 if test "$flag" = "-L$dir" || test "$flag" = "-L$dir/"; then
23997 if test "$filter" = "no"; then
23998 output_flags="$output_flags $flag"
24001 if test -n "$output_flags"; then
24002 printf "%s" "${output_flags# }"
24006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rb_errinfo" >&5
24007 $as_echo_n "checking for rb_errinfo... " >&6; }
24008 old_CFLAGS="$CFLAGS"
24010 CFLAGS="$CFLAGS $svn_cv_ruby_includes"
24012 CFLAGS=`echo "$CFLAGS" | $SED -e 's/-ansi//'`
24015 CFLAGS=`echo "$CFLAGS" | $SED -e 's/-std=c89//'`
24018 CFLAGS=`echo "$CFLAGS" | $SED -e 's/-std=c90//'`
24020 LIBS="$SWIG_RB_LIBS"
24021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24022 /* end confdefs.h. */
24028 if ac_fn_c_try_link "$LINENO"; then :
24029 have_rb_errinfo="yes"
24031 have_rb_errinfo="no"
24033 rm -f core conftest.err conftest.$ac_objext \
24034 conftest$ac_exeext conftest.$ac_ext
24035 if test "$have_rb_errinfo" = "yes"; then
24036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24037 $as_echo "yes" >&6; }
24039 $as_echo "#define HAVE_RB_ERRINFO 1" >>confdefs.h
24042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24043 $as_echo "no" >&6; }
24045 CFLAGS="$old_CFLAGS"
24048 if ${svn_cv_ruby_sitedir+:} false; then :
24049 $as_echo_n "(cached) " >&6
24052 svn_cv_ruby_sitedir="$rbconfig_sitedir"
24057 # Check whether --with-ruby-sitedir was given.
24058 if test "${with_ruby_sitedir+set}" = set; then :
24059 withval=$with_ruby_sitedir; svn_ruby_installdir="$withval"
24061 svn_ruby_installdir="$svn_cv_ruby_sitedir"
24065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to install Ruby scripts" >&5
24066 $as_echo_n "checking where to install Ruby scripts... " >&6; }
24067 if ${svn_cv_ruby_sitedir_libsuffix+:} false; then :
24068 $as_echo_n "(cached) " >&6
24071 svn_cv_ruby_sitedir_libsuffix="`echo "$rbconfig_sitelibdir" | \
24072 $SED -e "s,^$rbconfig_sitedir,,"`"
24076 SWIG_RB_SITE_LIB_DIR="${svn_ruby_installdir}${svn_cv_ruby_sitedir_libsuffix}"
24077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG_RB_SITE_LIB_DIR" >&5
24078 $as_echo "$SWIG_RB_SITE_LIB_DIR" >&6; }
24080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to install Ruby extensions" >&5
24081 $as_echo_n "checking where to install Ruby extensions... " >&6; }
24082 if ${svn_cv_ruby_sitedir_archsuffix+:} false; then :
24083 $as_echo_n "(cached) " >&6
24086 svn_cv_ruby_sitedir_archsuffix="`echo "$rbconfig_sitearchdir" | \
24087 $SED -e "s,^$rbconfig_sitedir,,"`"
24091 SWIG_RB_SITE_ARCH_DIR="${svn_ruby_installdir}${svn_cv_ruby_sitedir_archsuffix}"
24092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG_RB_SITE_ARCH_DIR" >&5
24093 $as_echo "$SWIG_RB_SITE_ARCH_DIR" >&6; }
24095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to use output level for Ruby bindings tests" >&5
24096 $as_echo_n "checking how to use output level for Ruby bindings tests... " >&6; }
24097 if ${svn_cv_ruby_test_verbose+:} false; then :
24098 $as_echo_n "(cached) " >&6
24101 svn_cv_ruby_test_verbose="normal"
24106 # Check whether --with-ruby-test-verbose was given.
24107 if test "${with_ruby_test_verbose+set}" = set; then :
24108 withval=$with_ruby_test_verbose; svn_ruby_test_verbose="$withval"
24110 svn_ruby_test_verbose="$svn_cv_ruby_test_verbose"
24113 SWIG_RB_TEST_VERBOSE="$svn_ruby_test_verbose"
24114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG_RB_TEST_VERBOSE" >&5
24115 $as_echo "$SWIG_RB_TEST_VERBOSE" >&6; }
24139 if test $where = no; then
24141 elif test $where = check; then
24142 # Extract the first word of "swig", so it can be a program name with args.
24143 set dummy swig; ac_word=$2
24144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24145 $as_echo_n "checking for $ac_word... " >&6; }
24146 if ${ac_cv_path_SWIG+:} false; then :
24147 $as_echo_n "(cached) " >&6
24151 ac_cv_path_SWIG="$SWIG" # Let the user override the test with a path.
24154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24155 for as_dir in $PATH
24158 test -z "$as_dir" && as_dir=.
24159 for ac_exec_ext in '' $ac_executable_extensions; do
24160 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24161 ac_cv_path_SWIG="$as_dir/$ac_word$ac_exec_ext"
24162 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24169 test -z "$ac_cv_path_SWIG" && ac_cv_path_SWIG="none"
24173 SWIG=$ac_cv_path_SWIG
24174 if test -n "$SWIG"; then
24175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG" >&5
24176 $as_echo "$SWIG" >&6; }
24178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24179 $as_echo "no" >&6; }
24184 if test -f "$where"; then
24187 SWIG="$where/bin/swig"
24189 if test ! -f "$SWIG" || test ! -x "$SWIG"; then
24190 as_fn_error $? "Could not find swig binary at $SWIG" "$LINENO" 5
24194 if test "$SWIG" != "none"; then
24195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking swig version" >&5
24196 $as_echo_n "checking swig version... " >&6; }
24197 SWIG_VERSION_RAW="`$SWIG -version 2>&1 | \
24198 $SED -ne 's/^.*Version \(.*\)$/\1/p'`"
24199 # We want the version as an integer so we can test against
24200 # which version we're using. SWIG doesn't provide this
24201 # to us so we have to come up with it on our own.
24202 # The major is passed straight through,
24203 # the minor is zero padded to two places,
24204 # and the patch level is zero padded to three places.
24205 # e.g. 1.3.24 becomes 103024
24206 SWIG_VERSION="`echo \"$SWIG_VERSION_RAW\" | \
24207 $SED -e 's/[^0-9\.].*$//' \
24208 -e 's/\.\([0-9]\)$/.0\1/' \
24209 -e 's/\.\([0-9][0-9]\)$/.0\1/' \
24210 -e 's/\.\([0-9]\)\./0\1/; s/\.//g;'`"
24211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG_VERSION_RAW" >&5
24212 $as_echo "$SWIG_VERSION_RAW" >&6; }
24213 # If you change the required swig version number, don't forget to update:
24214 # subversion/bindings/swig/INSTALL
24215 # packages/rpm/redhat-8+/subversion.spec
24216 # packages/rpm/redhat-7.x/subversion.spec
24217 # packages/rpm/rhel-3/subversion.spec
24218 # packages/rpm/rhel-4/subversion.spec
24219 if test -n "$SWIG_VERSION" && test "$SWIG_VERSION" -ge "103024"; then
24223 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Detected SWIG version $SWIG_VERSION_RAW" >&5
24224 $as_echo "$as_me: WARNING: Detected SWIG version $SWIG_VERSION_RAW" >&2;}
24225 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Subversion requires SWIG 1.3.24 or later" >&5
24226 $as_echo "$as_me: WARNING: Subversion requires SWIG 1.3.24 or later" >&2;}
24230 SWIG_PY_COMPILE="none"
24231 SWIG_PY_LINK="none"
24232 if test "$PYTHON" != "none"; then
24233 { $as_echo "$as_me:${as_lineno-$LINENO}: Configuring python swig binding" >&5
24234 $as_echo "$as_me: Configuring python swig binding" >&6;}
24236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python includes" >&5
24237 $as_echo_n "checking for Python includes... " >&6; }
24238 if ${ac_cv_python_includes+:} false; then :
24239 $as_echo_n "(cached) " >&6
24242 ac_cv_python_includes="`$PYTHON ${abs_srcdir}/build/get-py-info.py --includes`"
24245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_python_includes" >&5
24246 $as_echo "$ac_cv_python_includes" >&6; }
24247 SWIG_PY_INCLUDES="\$(SWIG_INCLUDES) $ac_cv_python_includes"
24249 if test "$ac_cv_python_includes" = "none"; then
24250 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: python bindings cannot be built without distutils module" >&5
24251 $as_echo "$as_me: WARNING: python bindings cannot be built without distutils module" >&2;}
24254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiling Python extensions" >&5
24255 $as_echo_n "checking for compiling Python extensions... " >&6; }
24256 if ${ac_cv_python_compile+:} false; then :
24257 $as_echo_n "(cached) " >&6
24260 ac_cv_python_compile="`$PYTHON ${abs_srcdir}/build/get-py-info.py --compile`"
24263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_python_compile" >&5
24264 $as_echo "$ac_cv_python_compile" >&6; }
24265 SWIG_PY_COMPILE="$ac_cv_python_compile $CFLAGS"
24267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linking Python extensions" >&5
24268 $as_echo_n "checking for linking Python extensions... " >&6; }
24269 if ${ac_cv_python_link+:} false; then :
24270 $as_echo_n "(cached) " >&6
24273 ac_cv_python_link="`$PYTHON ${abs_srcdir}/build/get-py-info.py --link`"
24276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_python_link" >&5
24277 $as_echo "$ac_cv_python_link" >&6; }
24278 SWIG_PY_LINK="$ac_cv_python_link"
24280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linking Python libraries" >&5
24281 $as_echo_n "checking for linking Python libraries... " >&6; }
24282 if ${ac_cv_python_libs+:} false; then :
24283 $as_echo_n "(cached) " >&6
24286 ac_cv_python_libs="`$PYTHON ${abs_srcdir}/build/get-py-info.py --libs`"
24289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_python_libs" >&5
24290 $as_echo "$ac_cv_python_libs" >&6; }
24292 input_flags="$ac_cv_python_libs"
24294 filtered_dirs="/lib /lib64 /usr/lib /usr/lib64"
24295 for flag in $input_flags; do
24297 for dir in $filtered_dirs; do
24298 if test "$flag" = "-L$dir" || test "$flag" = "-L$dir/"; then
24303 if test "$filter" = "no"; then
24304 output_flags="$output_flags $flag"
24307 if test -n "$output_flags"; then
24308 printf "%s" "${output_flags# }"
24312 SVN_PYCFMT_SAVE_CPPFLAGS="$CPPFLAGS"
24313 CPPFLAGS="$CPPFLAGS $SVN_APR_INCLUDES"
24314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for apr_int64_t Python/C API format string" >&5
24315 $as_echo_n "checking for apr_int64_t Python/C API format string... " >&6; }
24316 if ${svn_cv_pycfmt_apr_int64_t+:} false; then :
24317 $as_echo_n "(cached) " >&6
24320 if test "x$svn_cv_pycfmt_apr_int64_t" = "x"; then
24321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24322 /* end confdefs.h. */
24324 MaTcHtHiS APR_INT64_T_FMT EnDeNd
24326 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24327 $EGREP "MaTcHtHiS +\"lld\" +EnDeNd" >/dev/null 2>&1; then :
24328 svn_cv_pycfmt_apr_int64_t="L"
24333 if test "x$svn_cv_pycfmt_apr_int64_t" = "x"; then
24334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24335 /* end confdefs.h. */
24338 MaTcHtHiS APR_INT64_T_FMT EnDeNd
24340 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24341 $EGREP "MaTcHtHiS +\"ld\" +EnDeNd" >/dev/null 2>&1; then :
24342 svn_cv_pycfmt_apr_int64_t="l"
24347 if test "x$svn_cv_pycfmt_apr_int64_t" = "x"; then
24348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24349 /* end confdefs.h. */
24351 MaTcHtHiS APR_INT64_T_FMT EnDeNd
24353 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24354 $EGREP "MaTcHtHiS +\"d\" +EnDeNd" >/dev/null 2>&1; then :
24355 svn_cv_pycfmt_apr_int64_t="i"
24362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $svn_cv_pycfmt_apr_int64_t" >&5
24363 $as_echo "$svn_cv_pycfmt_apr_int64_t" >&6; }
24364 CPPFLAGS="$SVN_PYCFMT_SAVE_CPPFLAGS"
24365 if test "x$svn_cv_pycfmt_apr_int64_t" = "x"; then
24366 as_fn_error $? "failed to recognize APR_INT64_T_FMT on this platform" "$LINENO" 5
24369 cat >>confdefs.h <<_ACEOF
24370 #define SVN_APR_INT64_T_PYCFMT "$svn_cv_pycfmt_apr_int64_t"
24375 if test "$PERL" != "none"; then
24376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking perl version" >&5
24377 $as_echo_n "checking perl version... " >&6; }
24378 PERL_VERSION="`$PERL -e 'q([); print $] * 1000000,$/;'`"
24379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL_VERSION" >&5
24380 $as_echo "$PERL_VERSION" >&6; }
24381 if test "$PERL_VERSION" -ge "5008000"; then
24382 SWIG_PL_INCLUDES="\$(SWIG_INCLUDES) `$PERL -MExtUtils::Embed -e ccopts`"
24384 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: perl bindings require perl 5.8.0 or newer." >&5
24385 $as_echo "$as_me: WARNING: perl bindings require perl 5.8.0 or newer." >&2;}
24389 SWIG_RB_COMPILE="none"
24390 SWIG_RB_LINK="none"
24391 if test "$RUBY" != "none"; then
24392 rbconfig="$RUBY -rrbconfig -e "
24394 for var_name in arch archdir CC LDSHARED DLEXT LIBS LIBRUBYARG \
24395 rubyhdrdir sitedir sitelibdir sitearchdir libdir
24397 rbconfig_tmp=`$rbconfig "print RbConfig::CONFIG['$var_name']"`
24398 eval "rbconfig_$var_name=\"$rbconfig_tmp\""
24401 { $as_echo "$as_me:${as_lineno-$LINENO}: Configuring Ruby SWIG binding" >&5
24402 $as_echo "$as_me: Configuring Ruby SWIG binding" >&6;}
24404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ruby include path" >&5
24405 $as_echo_n "checking for Ruby include path... " >&6; }
24406 if ${svn_cv_ruby_includes+:} false; then :
24407 $as_echo_n "(cached) " >&6
24410 if test -d "$rbconfig_rubyhdrdir"; then
24411 svn_cv_ruby_includes="-I. -I$rbconfig_rubyhdrdir -I$rbconfig_rubyhdrdir/ruby -I$rbconfig_rubyhdrdir/ruby/backward -I$rbconfig_rubyhdrdir/$rbconfig_arch"
24413 svn_cv_ruby_includes="-I. -I$rbconfig_archdir"
24417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $svn_cv_ruby_includes" >&5
24418 $as_echo "$svn_cv_ruby_includes" >&6; }
24419 SWIG_RB_INCLUDES="\$(SWIG_INCLUDES) $svn_cv_ruby_includes"
24421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compile Ruby extensions" >&5
24422 $as_echo_n "checking how to compile Ruby extensions... " >&6; }
24423 if ${svn_cv_ruby_compile+:} false; then :
24424 $as_echo_n "(cached) " >&6
24427 svn_cv_ruby_compile="$rbconfig_CC $CFLAGS"
24430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $svn_cv_ruby_compile" >&5
24431 $as_echo "$svn_cv_ruby_compile" >&6; }
24432 SWIG_RB_COMPILE="$svn_cv_ruby_compile"
24434 SWIG_RB_COMPILE=`echo "$SWIG_RB_COMPILE" | $SED -e 's/-ansi//'`
24437 SWIG_RB_COMPILE=`echo "$SWIG_RB_COMPILE" | $SED -e 's/-std=c89//'`
24440 SWIG_RB_COMPILE=`echo "$SWIG_RB_COMPILE" | $SED -e 's/-std=c90//'`
24442 SWIG_RB_COMPILE="$SWIG_RB_COMPILE -Wno-int-to-pointer-cast"
24444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link Ruby extensions" >&5
24445 $as_echo_n "checking how to link Ruby extensions... " >&6; }
24446 if ${svn_cv_ruby_link+:} false; then :
24447 $as_echo_n "(cached) " >&6
24450 svn_cv_ruby_link="`$RUBY -e 'ARGV.shift; print ARGV.join(%q( ))' \
24451 $rbconfig_LDSHARED`"
24452 svn_cv_ruby_link="$rbconfig_CC $svn_cv_ruby_link"
24453 svn_cv_ruby_link="$svn_cv_ruby_link -shrext .$rbconfig_DLEXT"
24456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $svn_cv_ruby_link" >&5
24457 $as_echo "$svn_cv_ruby_link" >&6; }
24458 SWIG_RB_LINK="$svn_cv_ruby_link"
24460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link Ruby libraries" >&5
24461 $as_echo_n "checking how to link Ruby libraries... " >&6; }
24462 if ${ac_cv_ruby_libs+:} false; then :
24463 $as_echo_n "(cached) " >&6
24466 ac_cv_ruby_libs="$rbconfig_LIBRUBYARG $rbconfig_LIBS"
24469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_ruby_libs" >&5
24470 $as_echo "$ac_cv_ruby_libs" >&6; }
24472 input_flags="$ac_cv_ruby_libs"
24474 filtered_dirs="/lib /lib64 /usr/lib /usr/lib64"
24475 for flag in $input_flags; do
24477 for dir in $filtered_dirs; do
24478 if test "$flag" = "-L$dir" || test "$flag" = "-L$dir/"; then
24483 if test "$filter" = "no"; then
24484 output_flags="$output_flags $flag"
24487 if test -n "$output_flags"; then
24488 printf "%s" "${output_flags# }"
24492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rb_errinfo" >&5
24493 $as_echo_n "checking for rb_errinfo... " >&6; }
24494 old_CFLAGS="$CFLAGS"
24496 CFLAGS="$CFLAGS $svn_cv_ruby_includes"
24498 CFLAGS=`echo "$CFLAGS" | $SED -e 's/-ansi//'`
24501 CFLAGS=`echo "$CFLAGS" | $SED -e 's/-std=c89//'`
24504 CFLAGS=`echo "$CFLAGS" | $SED -e 's/-std=c90//'`
24506 LIBS="$SWIG_RB_LIBS"
24507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24508 /* end confdefs.h. */
24514 if ac_fn_c_try_link "$LINENO"; then :
24515 have_rb_errinfo="yes"
24517 have_rb_errinfo="no"
24519 rm -f core conftest.err conftest.$ac_objext \
24520 conftest$ac_exeext conftest.$ac_ext
24521 if test "$have_rb_errinfo" = "yes"; then
24522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24523 $as_echo "yes" >&6; }
24525 $as_echo "#define HAVE_RB_ERRINFO 1" >>confdefs.h
24528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24529 $as_echo "no" >&6; }
24531 CFLAGS="$old_CFLAGS"
24534 if ${svn_cv_ruby_sitedir+:} false; then :
24535 $as_echo_n "(cached) " >&6
24538 svn_cv_ruby_sitedir="$rbconfig_sitedir"
24543 # Check whether --with-ruby-sitedir was given.
24544 if test "${with_ruby_sitedir+set}" = set; then :
24545 withval=$with_ruby_sitedir; svn_ruby_installdir="$withval"
24547 svn_ruby_installdir="$svn_cv_ruby_sitedir"
24551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to install Ruby scripts" >&5
24552 $as_echo_n "checking where to install Ruby scripts... " >&6; }
24553 if ${svn_cv_ruby_sitedir_libsuffix+:} false; then :
24554 $as_echo_n "(cached) " >&6
24557 svn_cv_ruby_sitedir_libsuffix="`echo "$rbconfig_sitelibdir" | \
24558 $SED -e "s,^$rbconfig_sitedir,,"`"
24562 SWIG_RB_SITE_LIB_DIR="${svn_ruby_installdir}${svn_cv_ruby_sitedir_libsuffix}"
24563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG_RB_SITE_LIB_DIR" >&5
24564 $as_echo "$SWIG_RB_SITE_LIB_DIR" >&6; }
24566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to install Ruby extensions" >&5
24567 $as_echo_n "checking where to install Ruby extensions... " >&6; }
24568 if ${svn_cv_ruby_sitedir_archsuffix+:} false; then :
24569 $as_echo_n "(cached) " >&6
24572 svn_cv_ruby_sitedir_archsuffix="`echo "$rbconfig_sitearchdir" | \
24573 $SED -e "s,^$rbconfig_sitedir,,"`"
24577 SWIG_RB_SITE_ARCH_DIR="${svn_ruby_installdir}${svn_cv_ruby_sitedir_archsuffix}"
24578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG_RB_SITE_ARCH_DIR" >&5
24579 $as_echo "$SWIG_RB_SITE_ARCH_DIR" >&6; }
24581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to use output level for Ruby bindings tests" >&5
24582 $as_echo_n "checking how to use output level for Ruby bindings tests... " >&6; }
24583 if ${svn_cv_ruby_test_verbose+:} false; then :
24584 $as_echo_n "(cached) " >&6
24587 svn_cv_ruby_test_verbose="normal"
24592 # Check whether --with-ruby-test-verbose was given.
24593 if test "${with_ruby_test_verbose+set}" = set; then :
24594 withval=$with_ruby_test_verbose; svn_ruby_test_verbose="$withval"
24596 svn_ruby_test_verbose="$svn_cv_ruby_test_verbose"
24599 SWIG_RB_TEST_VERBOSE="$svn_ruby_test_verbose"
24600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG_RB_TEST_VERBOSE" >&5
24601 $as_echo "$SWIG_RB_TEST_VERBOSE" >&6; }
24624 # Check whether --with-ctypesgen was given.
24625 if test "${with_ctypesgen+set}" = set; then :
24626 withval=$with_ctypesgen;
24634 if test $where = check; then
24635 # Extract the first word of ""ctypesgen.py"", so it can be a program name with args.
24636 set dummy "ctypesgen.py"; ac_word=$2
24637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24638 $as_echo_n "checking for $ac_word... " >&6; }
24639 if ${ac_cv_path_CTYPESGEN+:} false; then :
24640 $as_echo_n "(cached) " >&6
24644 ac_cv_path_CTYPESGEN="$CTYPESGEN" # Let the user override the test with a path.
24647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24648 for as_dir in $PATH
24651 test -z "$as_dir" && as_dir=.
24652 for ac_exec_ext in '' $ac_executable_extensions; do
24653 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24654 ac_cv_path_CTYPESGEN="$as_dir/$ac_word$ac_exec_ext"
24655 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24662 test -z "$ac_cv_path_CTYPESGEN" && ac_cv_path_CTYPESGEN="none"
24666 CTYPESGEN=$ac_cv_path_CTYPESGEN
24667 if test -n "$CTYPESGEN"; then
24668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CTYPESGEN" >&5
24669 $as_echo "$CTYPESGEN" >&6; }
24671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24672 $as_echo "no" >&6; }
24676 elif test $where != no; then
24677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctypesgen.py" >&5
24678 $as_echo_n "checking for ctypesgen.py... " >&6; }
24680 if test -f "$where"; then
24682 elif test -f "$where/bin/ctypesgen.py"; then
24683 CTYPESGEN="$where/bin/ctypesgen.py"
24685 CTYPESGEN="$where/ctypesgen.py"
24688 if test ! -f "$CTYPESGEN" || test ! -x "$CTYPESGEN"; then
24689 as_fn_error $? "Could not find ctypesgen at $where/ctypesgen.py or at
24690 $where/bin/ctypesgen.py" "$LINENO" 5
24692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CTYPESGEN" >&5
24693 $as_echo "$CTYPESGEN" >&6; }
24706 if test $where = check; then
24707 # Extract the first word of ""ctypesgen.py"", so it can be a program name with args.
24708 set dummy "ctypesgen.py"; ac_word=$2
24709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24710 $as_echo_n "checking for $ac_word... " >&6; }
24711 if ${ac_cv_path_CTYPESGEN+:} false; then :
24712 $as_echo_n "(cached) " >&6
24716 ac_cv_path_CTYPESGEN="$CTYPESGEN" # Let the user override the test with a path.
24719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24720 for as_dir in $PATH
24723 test -z "$as_dir" && as_dir=.
24724 for ac_exec_ext in '' $ac_executable_extensions; do
24725 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24726 ac_cv_path_CTYPESGEN="$as_dir/$ac_word$ac_exec_ext"
24727 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24734 test -z "$ac_cv_path_CTYPESGEN" && ac_cv_path_CTYPESGEN="none"
24738 CTYPESGEN=$ac_cv_path_CTYPESGEN
24739 if test -n "$CTYPESGEN"; then
24740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CTYPESGEN" >&5
24741 $as_echo "$CTYPESGEN" >&6; }
24743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24744 $as_echo "no" >&6; }
24748 elif test $where != no; then
24749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctypesgen.py" >&5
24750 $as_echo_n "checking for ctypesgen.py... " >&6; }
24752 if test -f "$where"; then
24754 elif test -f "$where/bin/ctypesgen.py"; then
24755 CTYPESGEN="$where/bin/ctypesgen.py"
24757 CTYPESGEN="$where/ctypesgen.py"
24760 if test ! -f "$CTYPESGEN" || test ! -x "$CTYPESGEN"; then
24761 as_fn_error $? "Could not find ctypesgen at $where/ctypesgen.py or at
24762 $where/bin/ctypesgen.py" "$LINENO" 5
24764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CTYPESGEN" >&5
24765 $as_echo "$CTYPESGEN" >&6; }
24778 if test $where = check; then
24779 # Extract the first word of ""ctypesgen.py"", so it can be a program name with args.
24780 set dummy "ctypesgen.py"; ac_word=$2
24781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24782 $as_echo_n "checking for $ac_word... " >&6; }
24783 if ${ac_cv_path_CTYPESGEN+:} false; then :
24784 $as_echo_n "(cached) " >&6
24788 ac_cv_path_CTYPESGEN="$CTYPESGEN" # Let the user override the test with a path.
24791 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24792 for as_dir in $PATH
24795 test -z "$as_dir" && as_dir=.
24796 for ac_exec_ext in '' $ac_executable_extensions; do
24797 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24798 ac_cv_path_CTYPESGEN="$as_dir/$ac_word$ac_exec_ext"
24799 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24806 test -z "$ac_cv_path_CTYPESGEN" && ac_cv_path_CTYPESGEN="none"
24810 CTYPESGEN=$ac_cv_path_CTYPESGEN
24811 if test -n "$CTYPESGEN"; then
24812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CTYPESGEN" >&5
24813 $as_echo "$CTYPESGEN" >&6; }
24815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24816 $as_echo "no" >&6; }
24820 elif test $where != no; then
24821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctypesgen.py" >&5
24822 $as_echo_n "checking for ctypesgen.py... " >&6; }
24824 if test -f "$where"; then
24826 elif test -f "$where/bin/ctypesgen.py"; then
24827 CTYPESGEN="$where/bin/ctypesgen.py"
24829 CTYPESGEN="$where/ctypesgen.py"
24832 if test ! -f "$CTYPESGEN" || test ! -x "$CTYPESGEN"; then
24833 as_fn_error $? "Could not find ctypesgen at $where/ctypesgen.py or at
24834 $where/bin/ctypesgen.py" "$LINENO" 5
24836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CTYPESGEN" >&5
24837 $as_echo "$CTYPESGEN" >&6; }
24853 if test $where = check; then
24854 # Extract the first word of ""ctypesgen.py"", so it can be a program name with args.
24855 set dummy "ctypesgen.py"; ac_word=$2
24856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24857 $as_echo_n "checking for $ac_word... " >&6; }
24858 if ${ac_cv_path_CTYPESGEN+:} false; then :
24859 $as_echo_n "(cached) " >&6
24863 ac_cv_path_CTYPESGEN="$CTYPESGEN" # Let the user override the test with a path.
24866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24867 for as_dir in $PATH
24870 test -z "$as_dir" && as_dir=.
24871 for ac_exec_ext in '' $ac_executable_extensions; do
24872 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24873 ac_cv_path_CTYPESGEN="$as_dir/$ac_word$ac_exec_ext"
24874 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24881 test -z "$ac_cv_path_CTYPESGEN" && ac_cv_path_CTYPESGEN="none"
24885 CTYPESGEN=$ac_cv_path_CTYPESGEN
24886 if test -n "$CTYPESGEN"; then
24887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CTYPESGEN" >&5
24888 $as_echo "$CTYPESGEN" >&6; }
24890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24891 $as_echo "no" >&6; }
24895 elif test $where != no; then
24896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctypesgen.py" >&5
24897 $as_echo_n "checking for ctypesgen.py... " >&6; }
24899 if test -f "$where"; then
24901 elif test -f "$where/bin/ctypesgen.py"; then
24902 CTYPESGEN="$where/bin/ctypesgen.py"
24904 CTYPESGEN="$where/ctypesgen.py"
24907 if test ! -f "$CTYPESGEN" || test ! -x "$CTYPESGEN"; then
24908 as_fn_error $? "Could not find ctypesgen at $where/ctypesgen.py or at
24909 $where/bin/ctypesgen.py" "$LINENO" 5
24911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CTYPESGEN" >&5
24912 $as_echo "$CTYPESGEN" >&6; }
24923 # Check whether --enable-runtime-module-search was given.
24924 if test "${enable_runtime_module_search+set}" = set; then :
24925 enableval=$enable_runtime_module_search;
24926 if test "$enableval" = "yes"; then
24928 if test "$svn_enable_shared" = "no"; then
24929 as_fn_error $? "--enable-runtime-module-search conflicts with --disable-shared" "$LINENO" 5
24932 $as_echo "#define SVN_USE_DSO 1" >>confdefs.h
24939 if test "$svn_enable_shared" = "no" || test "$use_dso" != "yes"; then
24941 $as_echo "#define SVN_LIBSVN_CLIENT_LINKS_RA_LOCAL 1" >>confdefs.h
24943 svn_ra_lib_deps="\$(RA_LOCAL_DEPS)"
24944 svn_ra_lib_install_deps="install-ramod-lib"
24945 svn_ra_lib_link="\$(RA_LOCAL_LINK)"
24948 $as_echo "#define SVN_LIBSVN_CLIENT_LINKS_RA_SVN 1" >>confdefs.h
24950 svn_ra_lib_deps="$svn_ra_lib_deps \$(RA_SVN_DEPS)"
24951 svn_ra_lib_link="$svn_ra_lib_link \$(RA_SVN_LINK)"
24953 if test "$svn_lib_serf" = "yes"; then
24955 $as_echo "#define SVN_LIBSVN_CLIENT_LINKS_RA_SERF 1" >>confdefs.h
24957 svn_ra_lib_deps="$svn_ra_lib_deps \$(RA_SERF_DEPS)"
24958 svn_ra_lib_install_deps="$svn_ra_lib_install_deps install-serf-lib"
24959 svn_ra_lib_link="$svn_ra_lib_link \$(RA_SERF_LINK)"
24962 SVN_RA_LIB_DEPS=$svn_ra_lib_deps
24963 SVN_RA_LIB_INSTALL_DEPS=$svn_ra_lib_install_deps
24964 SVN_RA_LIB_LINK=$svn_ra_lib_link
24967 $as_echo "#define SVN_LIBSVN_FS_LINKS_FS_FS 1" >>confdefs.h
24969 svn_fs_lib_deps="\$(FS_FS_DEPS)"
24970 svn_fs_lib_install_deps="install-fsmod-lib"
24971 svn_fs_lib_link="\$(FS_FS_LINK)"
24973 if test "$svn_lib_berkeley_db" = "yes"; then
24975 $as_echo "#define SVN_LIBSVN_FS_LINKS_FS_BASE 1" >>confdefs.h
24977 svn_fs_lib_deps="$svn_fs_lib_deps \$(FS_BASE_DEPS)"
24978 svn_fs_lib_install_deps="$svn_fs_lib_install_deps install-bdb-lib"
24979 svn_fs_lib_link="$svn_fs_lib_link \$(FS_BASE_LINK)"
24982 SVN_FS_LIB_DEPS=$svn_fs_lib_deps
24983 SVN_FS_LIB_INSTALL_DEPS=$svn_fs_lib_install_deps
24984 SVN_FS_LIB_LINK=$svn_fs_lib_link
24994 # ==== JavaHL ================================================================
24997 # Check whether --enable-javahl was given.
24998 if test "${enable_javahl+set}" = set; then :
24999 enableval=$enable_javahl; if test "$enableval" = "yes" ; then
25000 do_javahl_build="yes"
25007 INSTALL_EXTRA_JAVAHL_LIB=""
25009 JAVAHL_TESTS_TARGET=""
25010 JAVAHL_COMPAT_TESTS_TARGET=""
25012 if test "$do_javahl_build" = "yes"; then
25013 if test "$JDK_SUITABLE" = "no"; then
25014 as_fn_error $? "Cannot compile JavaHL without a suitable JDK.
25015 Please specify a suitable JDK using the --with-jdk option." "$LINENO" 5
25018 JAVAHL_OBJDIR='$(libsvnjavahl_PATH)/.libs'
25021 if test "$os_arch" = "Darwin"; then
25022 INSTALL_EXTRA_JAVAHL_LIB='ln -sf $(libdir)/libsvnjavahl-1.dylib $(libdir)/libsvnjavahl-1.jnilib'
25023 FIX_JAVAHL_LIB="ln -sf libsvnjavahl-1.dylib $JAVAHL_OBJDIR/libsvnjavahl-1.jnilib"
25025 # This segment (and the rest of r10800) is very likely unnecessary
25026 # with libtool 1.5, which automatically adds libstdc++ as a
25027 # dependency to the C++ libraries it builds. So at some future time
25028 # when autogen.sh requires libtool 1.5 or higher, we can get rid of
25030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for additional flags to link C++ libraries" >&5
25031 $as_echo_n "checking for additional flags to link C++ libraries... " >&6; }
25032 if test "x$ac_compiler_gnu" = "xyes"; then
25033 LT_CXX_LIBADD="-lstdc++"
25034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LT_CXX_LIBADD" >&5
25035 $as_echo "$LT_CXX_LIBADD" >&6; }
25037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
25038 $as_echo "none needed" >&6; }
25047 # Check whether --with-junit was given.
25048 if test "${with_junit+set}" = set; then :
25049 withval=$with_junit;
25050 if test "$withval" != "no"; then
25051 if test -n "$JAVA_CLASSPATH"; then
25052 JAVA_CLASSPATH="$withval:$JAVA_CLASSPATH"
25054 JAVA_CLASSPATH="$withval"
25056 JAVAHL_TESTS_TARGET="javahl-tests"
25057 JAVAHL_COMPAT_TESTS_TARGET="javahl-compat-tests"
25066 # ==== Miscellaneous bits ====================================================
25068 # Strip '-no-cpp-precomp' from CPPFLAGS for the clang compiler
25069 ### I think we get this flag from APR, so the fix probably belongs there
25070 if test "$CC" = "clang"; then
25072 CPPFLAGS=`echo "$CPPFLAGS" | $SED -e 's/-no-cpp-precomp //'`
25077 cat >>confdefs.h <<_ACEOF
25078 #define SVN_PATH_LOCAL_SEPARATOR '/'
25083 cat >>confdefs.h <<_ACEOF
25084 #define SVN_NULL_DEVICE_NAME "/dev/null"
25088 DEFAULT_FS_TYPE="fsfs"
25090 cat >>confdefs.h <<_ACEOF
25091 #define DEFAULT_FS_TYPE "$DEFAULT_FS_TYPE"
25095 DEFAULT_HTTP_LIBRARY="serf"
25097 cat >>confdefs.h <<_ACEOF
25098 #define DEFAULT_HTTP_LIBRARY "$DEFAULT_HTTP_LIBRARY"
25102 # BSD/OS (BSDi) needs to use a different include syntax in Makefile
25103 INCLUDE_OUTPUTS="include \$(top_srcdir)/build-outputs.mk"
25106 # Check whether they've installed GNU make
25107 if ! make --version > /dev/null 2>&1; then
25109 INCLUDE_OUTPUTS=".include \"\$(top_srcdir)/build-outputs.mk\""
25115 # ==== Detection complete - output and run config.status =====================
25117 ac_config_headers="$ac_config_headers subversion/svn_private_config.h.tmp:subversion/svn_private_config.h.in"
25119 ac_config_commands="$ac_config_commands svn_private_config.h.tmp"
25121 ac_config_files="$ac_config_files Makefile"
25125 SVN_CONFIG_SCRIPT_FILES="$SVN_CONFIG_SCRIPT_FILES tools/backup/hot-backup.py"
25126 ac_config_files="$ac_config_files tools/backup/hot-backup.py"
25129 SVN_CONFIG_SCRIPT_FILES="$SVN_CONFIG_SCRIPT_FILES tools/hook-scripts/commit-access-control.pl"
25130 ac_config_files="$ac_config_files tools/hook-scripts/commit-access-control.pl"
25133 SVN_CONFIG_SCRIPT_FILES="$SVN_CONFIG_SCRIPT_FILES subversion/bindings/swig/perl/native/Makefile.PL"
25134 ac_config_files="$ac_config_files subversion/bindings/swig/perl/native/Makefile.PL"
25136 if test -e packages/solaris/pkginfo.in; then
25138 SVN_CONFIG_SCRIPT_FILES="$SVN_CONFIG_SCRIPT_FILES packages/solaris/pkginfo"
25139 ac_config_files="$ac_config_files packages/solaris/pkginfo"
25144 # Ensure that SWIG is checked after reconfiguration.
25145 rm -f .swig_checked
25148 cat >>confdefs.h <<_ACEOF
25149 #define SVN_BUILD_HOST "${host}"
25154 cat >>confdefs.h <<_ACEOF
25155 #define SVN_BUILD_TARGET "${target}"
25159 cat >confcache <<\_ACEOF
25160 # This file is a shell script that caches the results of configure
25161 # tests run on this system so they can be shared between configure
25162 # scripts and configure runs, see configure's option --config-cache.
25163 # It is not useful on other systems. If it contains results you don't
25164 # want to keep, you may remove or edit it.
25166 # config.status only pays attention to the cache file if you give it
25167 # the --recheck option to rerun configure.
25169 # `ac_cv_env_foo' variables (set or unset) will be overridden when
25170 # loading this file, other *unset* `ac_cv_foo' will be assigned the
25171 # following values.
25175 # The following way of writing the cache mishandles newlines in values,
25176 # but we know of no workaround that is simple, portable, and efficient.
25177 # So, we kill variables containing newlines.
25178 # Ultrix sh set writes to stderr and can't be redirected directly,
25179 # and sets the high bit in the cache file unless we assign to the vars.
25181 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
25182 eval ac_val=\$$ac_var
25186 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
25187 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
25190 _ | IFS | as_nl) ;; #(
25191 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
25192 *) { eval $ac_var=; unset $ac_var;} ;;
25198 case $as_nl`(ac_space=' '; set) 2>&1` in #(
25199 *${as_nl}ac_space=\ *)
25200 # `set' does not quote correctly, so add quotes: double-quote
25201 # substitution turns \\\\ into \\, and sed turns \\ into \.
25204 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
25207 # `set' quotes correctly as required by POSIX, so do not add quotes.
25208 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
25217 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
25219 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
25221 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
25222 if test -w "$cache_file"; then
25223 if test "x$cache_file" != "x/dev/null"; then
25224 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
25225 $as_echo "$as_me: updating cache $cache_file" >&6;}
25226 if test ! -f "$cache_file" || test -h "$cache_file"; then
25227 cat confcache >"$cache_file"
25229 case $cache_file in #(
25231 mv -f confcache "$cache_file"$$ &&
25232 mv -f "$cache_file"$$ "$cache_file" ;; #(
25234 mv -f confcache "$cache_file" ;;
25239 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
25240 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
25245 test "x$prefix" = xNONE && prefix=$ac_default_prefix
25246 # Let make expand exec_prefix.
25247 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
25249 DEFS=-DHAVE_CONFIG_H
25254 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
25255 # 1. Remove the extension, and $U if already installed.
25256 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
25257 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
25258 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
25259 # will be set to the directory where LIBOBJS objects are built.
25260 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
25261 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
25263 LIBOBJS=$ac_libobjs
25265 LTLIBOBJS=$ac_ltlibobjs
25269 : "${CONFIG_STATUS=./config.status}"
25271 ac_clean_files_save=$ac_clean_files
25272 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
25273 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
25274 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
25276 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
25278 # Generated by $as_me.
25279 # Run this file to recreate the current configuration.
25280 # Compiler output produced by configure, useful for debugging
25281 # configure, is in config.log if it exists.
25284 ac_cs_recheck=false
25287 SHELL=\${CONFIG_SHELL-$SHELL}
25290 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
25291 ## -------------------- ##
25292 ## M4sh Initialization. ##
25293 ## -------------------- ##
25295 # Be more Bourne compatible
25296 DUALCASE=1; export DUALCASE # for MKS sh
25297 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
25300 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25301 # is contrary to our usage. Disable this feature.
25302 alias -g '${1+"$@"}'='"$@"'
25303 setopt NO_GLOB_SUBST
25305 case `(set -o) 2>/dev/null` in #(
25317 # Printing a long string crashes Solaris 7 /usr/bin/printf.
25318 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
25319 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
25320 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
25321 # Prefer a ksh shell builtin over an external printf program on Solaris,
25322 # but without wasting forks for bash or zsh.
25323 if test -z "$BASH_VERSION$ZSH_VERSION" \
25324 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
25325 as_echo='print -r --'
25326 as_echo_n='print -rn --'
25327 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
25328 as_echo='printf %s\n'
25329 as_echo_n='printf %s'
25331 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
25332 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
25333 as_echo_n='/usr/ucb/echo -n'
25335 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
25336 as_echo_n_body='eval
25340 expr "X$arg" : "X\\(.*\\)$as_nl";
25341 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
25343 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
25345 export as_echo_n_body
25346 as_echo_n='sh -c $as_echo_n_body as_echo'
25348 export as_echo_body
25349 as_echo='sh -c $as_echo_body as_echo'
25352 # The user is always right.
25353 if test "${PATH_SEPARATOR+set}" != set; then
25355 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
25356 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
25363 # We need space, tab and new line, in precisely that order. Quoting is
25364 # there to prevent editors from complaining about space-tab.
25365 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
25366 # splitting by setting IFS to empty value.)
25369 # Find who we are. Look in the path if we contain no directory separator.
25372 *[\\/]* ) as_myself=$0 ;;
25373 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25374 for as_dir in $PATH
25377 test -z "$as_dir" && as_dir=.
25378 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
25384 # We did not find ourselves, most probably we were run as `sh COMMAND'
25385 # in which case we are not to be found in the path.
25386 if test "x$as_myself" = x; then
25389 if test ! -f "$as_myself"; then
25390 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
25394 # Unset variables that we do not need and which cause bugs (e.g. in
25395 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
25396 # suppresses any "Segmentation fault" message there. '((' could
25397 # trigger a bug in pdksh 5.2.14.
25398 for as_var in BASH_ENV ENV MAIL MAILPATH
25399 do eval test x\${$as_var+set} = xset \
25400 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
25413 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
25416 # as_fn_error STATUS ERROR [LINENO LOG_FD]
25417 # ----------------------------------------
25418 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
25419 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
25420 # script with STATUS, using 1 if that was 0.
25423 as_status=$1; test $as_status -eq 0 && as_status=1
25425 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
25426 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
25428 $as_echo "$as_me: error: $2" >&2
25429 as_fn_exit $as_status
25433 # as_fn_set_status STATUS
25434 # -----------------------
25435 # Set $? to STATUS, without forking.
25436 as_fn_set_status ()
25439 } # as_fn_set_status
25441 # as_fn_exit STATUS
25442 # -----------------
25443 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
25447 as_fn_set_status $1
25453 # Portably unset VAR.
25456 { eval $1=; unset $1;}
25458 as_unset=as_fn_unset
25459 # as_fn_append VAR VALUE
25460 # ----------------------
25461 # Append the text in VALUE to the end of the definition contained in VAR. Take
25462 # advantage of any shell optimizations that allow amortized linear growth over
25463 # repeated appends, instead of the typical quadratic growth present in naive
25465 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
25466 eval 'as_fn_append ()
25477 # as_fn_arith ARG...
25478 # ------------------
25479 # Perform arithmetic evaluation on the ARGs, and store the result in the
25480 # global $as_val. Take advantage of shells that can avoid forks. The arguments
25481 # must be portable across $(()) and expr.
25482 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
25483 eval 'as_fn_arith ()
25490 as_val=`expr "$@" || test $? -eq 1`
25495 if expr a : '\(a\)' >/dev/null 2>&1 &&
25496 test "X`expr 00001 : '.*\(...\)'`" = X001; then
25502 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
25503 as_basename=basename
25508 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
25514 as_me=`$as_basename -- "$0" ||
25515 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
25516 X"$0" : 'X\(//\)$' \| \
25517 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
25519 sed '/^.*\/\([^/][^/]*\)\/*$/{
25533 # Avoid depending upon Character Ranges.
25534 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
25535 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
25536 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
25537 as_cr_digits='0123456789'
25538 as_cr_alnum=$as_cr_Letters$as_cr_digits
25540 ECHO_C= ECHO_N= ECHO_T=
25541 case `echo -n x` in #(((((
25543 case `echo 'xy\c'` in
25544 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
25546 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
25553 rm -f conf$$ conf$$.exe conf$$.file
25554 if test -d conf$$.dir; then
25555 rm -f conf$$.dir/conf$$.file
25558 mkdir conf$$.dir 2>/dev/null
25560 if (echo >conf$$.file) 2>/dev/null; then
25561 if ln -s conf$$.file conf$$ 2>/dev/null; then
25563 # ... but there are two gotchas:
25564 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
25565 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
25566 # In both cases, we have to default to `cp -pR'.
25567 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
25569 elif ln conf$$.file conf$$ 2>/dev/null; then
25577 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
25578 rmdir conf$$.dir 2>/dev/null
25583 # Create "$as_dir" as a directory, including parents if necessary.
25588 -*) as_dir=./$as_dir;;
25590 test -d "$as_dir" || eval $as_mkdir_p || {
25594 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
25595 *) as_qdir=$as_dir;;
25597 as_dirs="'$as_qdir' $as_dirs"
25598 as_dir=`$as_dirname -- "$as_dir" ||
25599 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25600 X"$as_dir" : 'X\(//\)[^/]' \| \
25601 X"$as_dir" : 'X\(//\)$' \| \
25602 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
25603 $as_echo X"$as_dir" |
25604 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25608 /^X\(\/\/\)[^/].*/{
25621 test -d "$as_dir" && break
25623 test -z "$as_dirs" || eval "mkdir $as_dirs"
25624 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
25628 if mkdir -p . 2>/dev/null; then
25629 as_mkdir_p='mkdir -p "$as_dir"'
25631 test -d ./-p && rmdir ./-p
25636 # as_fn_executable_p FILE
25637 # -----------------------
25638 # Test if FILE is an executable regular file.
25639 as_fn_executable_p ()
25641 test -f "$1" && test -x "$1"
25642 } # as_fn_executable_p
25643 as_test_x='test -x'
25644 as_executable_p=as_fn_executable_p
25646 # Sed expression to map a string onto a valid CPP name.
25647 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
25649 # Sed expression to map a string onto a valid variable name.
25650 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
25654 ## ----------------------------------- ##
25655 ## Main body of $CONFIG_STATUS script. ##
25656 ## ----------------------------------- ##
25658 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
25660 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25661 # Save the log message, to keep $0 and so on meaningful, and to
25662 # report actual input values of CONFIG_FILES etc. instead of their
25663 # values after options handling.
25665 This file was extended by subversion $as_me 1.8.5, which was
25666 generated by GNU Autoconf 2.69. Invocation command line was
25668 CONFIG_FILES = $CONFIG_FILES
25669 CONFIG_HEADERS = $CONFIG_HEADERS
25670 CONFIG_LINKS = $CONFIG_LINKS
25671 CONFIG_COMMANDS = $CONFIG_COMMANDS
25674 on `(hostname || uname -n) 2>/dev/null | sed 1q`
25679 case $ac_config_files in *"
25680 "*) set x $ac_config_files; shift; ac_config_files=$*;;
25683 case $ac_config_headers in *"
25684 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
25688 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25689 # Files that config.status was made for.
25690 config_files="$ac_config_files"
25691 config_headers="$ac_config_headers"
25692 config_commands="$ac_config_commands"
25696 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25698 \`$as_me' instantiates files and other configuration actions
25699 from templates according to the current configuration. Unless the files
25700 and actions are specified as TAGs, all are instantiated by default.
25702 Usage: $0 [OPTION]... [TAG]...
25704 -h, --help print this help, then exit
25705 -V, --version print version number and configuration settings, then exit
25706 --config print configuration, then exit
25707 -q, --quiet, --silent
25708 do not print progress messages
25709 -d, --debug don't remove temporary files
25710 --recheck update $as_me by reconfiguring in the same conditions
25711 --file=FILE[:TEMPLATE]
25712 instantiate the configuration file FILE
25713 --header=FILE[:TEMPLATE]
25714 instantiate the configuration header FILE
25716 Configuration files:
25719 Configuration headers:
25722 Configuration commands:
25725 Report bugs to <http://subversion.apache.org/>."
25728 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25729 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
25731 subversion config.status 1.8.5
25732 configured by $0, generated by GNU Autoconf 2.69,
25733 with options \\"\$ac_cs_config\\"
25735 Copyright (C) 2012 Free Software Foundation, Inc.
25736 This config.status script is free software; the Free Software Foundation
25737 gives unlimited permission to copy, distribute and modify it."
25743 test -n "\$AWK" || AWK=awk
25746 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25747 # The default lists apply if the user does not specify any file.
25753 ac_option=`expr "X$1" : 'X\([^=]*\)='`
25754 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
25758 ac_option=`expr "X$1" : 'X\([^=]*\)='`
25770 # Handling of the options.
25771 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
25773 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
25774 $as_echo "$ac_cs_version"; exit ;;
25775 --config | --confi | --conf | --con | --co | --c )
25776 $as_echo "$ac_cs_config"; exit ;;
25777 --debug | --debu | --deb | --de | --d | -d )
25779 --file | --fil | --fi | --f )
25782 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
25783 '') as_fn_error $? "missing file argument" ;;
25785 as_fn_append CONFIG_FILES " '$ac_optarg'"
25786 ac_need_defaults=false;;
25787 --header | --heade | --head | --hea )
25790 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
25792 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
25793 ac_need_defaults=false;;
25795 # Conflict between --help and --header
25796 as_fn_error $? "ambiguous option: \`$1'
25797 Try \`$0 --help' for more information.";;
25798 --help | --hel | -h )
25799 $as_echo "$ac_cs_usage"; exit ;;
25800 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
25801 | -silent | --silent | --silen | --sile | --sil | --si | --s)
25804 # This is an error.
25805 -*) as_fn_error $? "unrecognized option: \`$1'
25806 Try \`$0 --help' for more information." ;;
25808 *) as_fn_append ac_config_targets " $1"
25809 ac_need_defaults=false ;;
25815 ac_configure_extra_args=
25817 if $ac_cs_silent; then
25819 ac_configure_extra_args="$ac_configure_extra_args --silent"
25823 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25824 if \$ac_cs_recheck; then
25825 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
25827 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
25828 CONFIG_SHELL='$SHELL'
25829 export CONFIG_SHELL
25834 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25838 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
25839 ## Running $as_me. ##
25845 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25851 # The HP-UX ksh and POSIX shell print the target directory to stdout
25852 # if CDPATH is set.
25853 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
25855 sed_quote_subst='$sed_quote_subst'
25856 double_quote_subst='$double_quote_subst'
25857 delay_variable_subst='$delay_variable_subst'
25858 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
25859 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
25860 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
25861 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
25862 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
25863 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
25864 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
25865 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
25866 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
25867 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
25868 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
25869 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
25870 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
25871 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
25872 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
25873 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
25874 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
25875 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
25876 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
25877 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
25878 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
25879 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
25880 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
25881 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
25882 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
25883 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
25884 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
25885 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
25886 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
25887 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
25888 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
25889 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
25890 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
25891 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
25892 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
25893 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
25894 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
25895 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
25896 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
25897 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
25898 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
25899 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
25900 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
25901 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
25902 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
25903 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
25904 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
25905 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
25906 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
25907 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
25908 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
25909 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
25910 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
25911 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
25912 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
25913 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
25914 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"`'
25915 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
25916 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
25917 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
25918 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
25919 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
25920 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
25921 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
25922 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
25923 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
25924 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
25925 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
25926 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
25927 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
25928 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
25929 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
25930 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
25931 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
25932 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
25933 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
25934 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
25935 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
25936 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
25937 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
25938 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
25939 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
25940 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
25941 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
25942 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
25943 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
25944 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
25945 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
25946 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
25947 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
25948 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
25949 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
25950 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
25951 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
25952 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
25953 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
25954 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
25955 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
25956 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
25957 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
25958 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
25959 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
25960 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
25961 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
25962 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
25963 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
25964 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
25965 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
25966 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
25967 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
25968 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
25969 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
25970 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
25971 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
25972 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
25973 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
25974 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
25975 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
25976 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
25977 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
25978 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
25979 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
25980 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
25981 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
25982 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
25983 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
25984 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
25985 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
25986 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
25987 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
25988 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
25989 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
25990 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
25991 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
25992 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
25993 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
25994 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
25995 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
25996 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25997 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25998 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
25999 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
26000 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
26001 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
26002 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
26003 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
26004 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
26005 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
26006 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
26007 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
26008 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
26009 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
26010 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
26011 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
26012 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
26013 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
26014 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
26015 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
26016 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
26017 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
26018 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
26019 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
26020 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
26021 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
26022 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
26023 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
26024 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
26025 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
26026 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
26027 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
26028 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
26029 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
26030 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
26031 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
26032 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
26033 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
26034 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
26035 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
26036 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
26037 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
26038 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
26039 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
26040 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
26041 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
26044 LTCFLAGS='$LTCFLAGS'
26045 compiler='$compiler_DEFAULT'
26047 # A function that is used when there is no print builtin or printf.
26048 func_fallback_echo ()
26050 eval 'cat <<_LTECHO_EOF
26055 # Quote evaled strings.
26070 deplibs_check_method \
26075 sharedlib_from_linklib_cmd \
26078 archiver_list_spec \
26084 lt_cv_sys_global_symbol_pipe \
26085 lt_cv_sys_global_symbol_to_cdecl \
26086 lt_cv_sys_global_symbol_to_c_name_address \
26087 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
26088 nm_file_list_spec \
26089 lt_prog_compiler_no_builtin_flag \
26090 lt_prog_compiler_pic \
26091 lt_prog_compiler_wl \
26092 lt_prog_compiler_static \
26093 lt_cv_prog_compiler_c_o \
26102 export_dynamic_flag_spec \
26103 whole_archive_flag_spec \
26104 compiler_needs_object \
26106 allow_undefined_flag \
26107 no_undefined_flag \
26108 hardcode_libdir_flag_spec \
26109 hardcode_libdir_separator \
26113 variables_saved_for_relink \
26115 library_names_spec \
26117 install_override_mode \
26121 compiler_lib_search_dirs \
26126 compiler_lib_search_path \
26130 lt_prog_compiler_no_builtin_flag_CXX \
26131 lt_prog_compiler_pic_CXX \
26132 lt_prog_compiler_wl_CXX \
26133 lt_prog_compiler_static_CXX \
26134 lt_cv_prog_compiler_c_o_CXX \
26135 export_dynamic_flag_spec_CXX \
26136 whole_archive_flag_spec_CXX \
26137 compiler_needs_object_CXX \
26139 allow_undefined_flag_CXX \
26140 no_undefined_flag_CXX \
26141 hardcode_libdir_flag_spec_CXX \
26142 hardcode_libdir_separator_CXX \
26143 exclude_expsyms_CXX \
26144 include_expsyms_CXX \
26145 file_list_spec_CXX \
26146 compiler_lib_search_dirs_CXX \
26147 predep_objects_CXX \
26148 postdep_objects_CXX \
26151 compiler_lib_search_path_CXX; do
26152 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
26153 *[\\\\\\\`\\"\\\$]*)
26154 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
26157 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
26162 # Double-quote double-evaled strings.
26163 for var in reload_cmds \
26164 old_postinstall_cmds \
26165 old_postuninstall_cmds \
26167 extract_expsyms_cmds \
26168 old_archive_from_new_cmds \
26169 old_archive_from_expsyms_cmds \
26171 archive_expsym_cmds \
26173 module_expsym_cmds \
26174 export_symbols_cmds \
26178 postuninstall_cmds \
26180 sys_lib_search_path_spec \
26181 sys_lib_dlsearch_path_spec \
26183 old_archive_cmds_CXX \
26184 old_archive_from_new_cmds_CXX \
26185 old_archive_from_expsyms_cmds_CXX \
26187 archive_expsym_cmds_CXX \
26189 module_expsym_cmds_CXX \
26190 export_symbols_cmds_CXX \
26192 postlink_cmds_CXX; do
26193 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
26194 *[\\\\\\\`\\"\\\$]*)
26195 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
26198 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
26203 ac_aux_dir='$ac_aux_dir'
26204 xsi_shell='$xsi_shell'
26205 lt_shell_append='$lt_shell_append'
26207 # See if we are running on zsh, and set the options which allow our
26208 # commands through without removal of \ escapes INIT.
26209 if test -n "\${ZSH_VERSION+set}" ; then
26210 setopt NO_GLOB_SUBST
26216 TIMESTAMP='$TIMESTAMP'
26225 SVN_DB_HEADER="$SVN_DB_HEADER"
26229 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26231 # Handling of arguments.
26232 for ac_config_target in $ac_config_targets
26234 case $ac_config_target in
26235 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
26236 "subversion/svn_private_config.h.tmp") CONFIG_HEADERS="$CONFIG_HEADERS subversion/svn_private_config.h.tmp:subversion/svn_private_config.h.in" ;;
26237 "svn_private_config.h.tmp") CONFIG_COMMANDS="$CONFIG_COMMANDS svn_private_config.h.tmp" ;;
26238 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
26239 "tools/backup/hot-backup.py") CONFIG_FILES="$CONFIG_FILES tools/backup/hot-backup.py" ;;
26240 "tools/hook-scripts/commit-access-control.pl") CONFIG_FILES="$CONFIG_FILES tools/hook-scripts/commit-access-control.pl" ;;
26241 "subversion/bindings/swig/perl/native/Makefile.PL") CONFIG_FILES="$CONFIG_FILES subversion/bindings/swig/perl/native/Makefile.PL" ;;
26242 "packages/solaris/pkginfo") CONFIG_FILES="$CONFIG_FILES packages/solaris/pkginfo" ;;
26244 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
26249 # If the user did not use the arguments to specify the items to instantiate,
26250 # then the envvar interface is used. Set only those that are not.
26251 # We use the long form for the default assignment because of an extremely
26252 # bizarre bug on SunOS 4.1.3.
26253 if $ac_need_defaults; then
26254 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
26255 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
26256 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
26259 # Have a temporary directory for convenience. Make it in the build tree
26260 # simply because there is no reason against having it here, and in addition,
26261 # creating and moving files from /tmp can sometimes cause problems.
26262 # Hook for its removal unless debugging.
26263 # Note that there is a small window in which the directory will not be cleaned:
26264 # after its creation but before its name has been assigned to `$tmp'.
26268 trap 'exit_status=$?
26269 : "${ac_tmp:=$tmp}"
26270 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
26272 trap 'as_fn_exit 1' 1 2 13 15
26274 # Create a (secure) tmp directory for tmp files.
26277 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
26281 tmp=./conf$$-$RANDOM
26282 (umask 077 && mkdir "$tmp")
26283 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
26286 # Set up the scripts for CONFIG_FILES section.
26287 # No need to generate them if there are no CONFIG_FILES.
26288 # This happens for instance with `./config.status config.h'.
26289 if test -n "$CONFIG_FILES"; then
26292 ac_cr=`echo X | tr X '\015'`
26293 # On cygwin, bash can eat \r inside `` if the user requested igncr.
26294 # But we know of no other shell where ac_cr would be empty at this
26295 # point, so we can use a bashism as a fallback.
26296 if test "x$ac_cr" = x; then
26297 eval ac_cr=\$\'\\r\'
26299 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
26300 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
26303 ac_cs_awk_cr=$ac_cr
26306 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
26311 echo "cat >conf$$subs.awk <<_ACEOF" &&
26312 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
26314 } >conf$$subs.sh ||
26315 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
26316 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
26318 for ac_last_try in false false false false false :; do
26319 . ./conf$$subs.sh ||
26320 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
26322 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
26323 if test $ac_delim_n = $ac_delim_num; then
26325 elif $ac_last_try; then
26326 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
26328 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26331 rm -f conf$$subs.sh
26333 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26334 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
26338 s/^/S["/; s/!.*/"]=/
26348 s/\(.\{148\}\)..*/\1/
26350 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
26355 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
26362 s/\(.\{148\}\)..*/\1/
26364 s/["\\]/\\&/g; s/^/"/; s/$/"/
26368 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
26373 ' <conf$$subs.awk | sed '
26378 ' >>$CONFIG_STATUS || ac_write_fail=1
26379 rm -f conf$$subs.awk
26380 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26382 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
26383 for (key in S) S_is_set[key] = 1
26389 nfields = split(line, field, "@")
26391 len = length(field[1])
26392 for (i = 2; i < nfields; i++) {
26394 keylen = length(key)
26395 if (S_is_set[key]) {
26397 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
26398 len += length(value) + length(field[++i])
26409 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26410 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
26411 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
26414 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
26415 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
26418 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
26419 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
26420 # trailing colons and then remove the whole line if VPATH becomes empty
26421 # (actually we leave an empty line to preserve line numbers).
26422 if test "x$srcdir" = x.; then
26423 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
26441 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26442 fi # test -n "$CONFIG_FILES"
26444 # Set up the scripts for CONFIG_HEADERS section.
26445 # No need to generate them if there are no CONFIG_HEADERS.
26446 # This happens for instance with `./config.status Makefile'.
26447 if test -n "$CONFIG_HEADERS"; then
26448 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
26452 # Transform confdefs.h into an awk script `defines.awk', embedded as
26453 # here-document in config.status, that substitutes the proper values into
26454 # config.h.in to produce config.h.
26456 # Create a delimiter string that does not exist in confdefs.h, to ease
26457 # handling of long lines.
26459 for ac_last_try in false false :; do
26460 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
26461 if test -z "$ac_tt"; then
26463 elif $ac_last_try; then
26464 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
26466 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26470 # For the awk script, D is an array of macro values keyed by name,
26471 # likewise P contains macro parameters if any. Preserve backslash
26472 # newline sequences.
26474 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
26476 s/.\{148\}/&'"$ac_delim"'/g
26479 s/^[ ]*#[ ]*define[ ][ ]*/ /
26486 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
26488 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
26492 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
26493 D["\1"]=" \3\\\\\\n"\\/p
26495 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
26500 s/.\{148\}/&'"$ac_delim"'/g
26505 s/["\\]/\\&/g; s/^/"/; s/$/"/p
26508 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
26510 ' <confdefs.h | sed '
26511 s/'"$ac_delim"'/"\\\
26512 "/g' >>$CONFIG_STATUS || ac_write_fail=1
26514 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26515 for (key in D) D_is_set[key] = 1
26518 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
26520 split(line, arg, " ")
26521 if (arg[1] == "#") {
26525 defundef = substr(arg[1], 2)
26528 split(mac1, mac2, "(") #)
26530 prefix = substr(line, 1, index(line, defundef) - 1)
26531 if (D_is_set[macro]) {
26532 # Preserve the white space surrounding the "#".
26533 print prefix "define", macro P[macro] D[macro]
26536 # Replace #undef with comments. This is necessary, for example,
26537 # in the case of _POSIX_SOURCE, which is predefined and required
26538 # on some systems where configure will not decide to define it.
26539 if (defundef == "undef") {
26540 print "/*", prefix defundef, macro, "*/"
26548 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26549 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
26550 fi # test -n "$CONFIG_HEADERS"
26553 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
26558 :[FHLC]) ac_mode=$ac_tag; continue;;
26560 case $ac_mode$ac_tag in
26562 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
26563 :[FH]-) ac_tag=-:-;;
26564 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
26581 -) ac_f="$ac_tmp/stdin";;
26582 *) # Look for the file first in the build tree, then in the source tree
26583 # (if the path is not absolute). The absolute path cannot be DOS-style,
26584 # because $ac_f cannot contain `:'.
26588 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
26590 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
26592 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
26593 as_fn_append ac_file_inputs " '$ac_f'"
26596 # Let's still pretend it is `configure' which instantiates (i.e., don't
26597 # use $as_me), people would be surprised to read:
26598 # /* config.h. Generated by config.status. */
26599 configure_input='Generated from '`
26600 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
26602 if test x"$ac_file" != x-; then
26603 configure_input="$ac_file. $configure_input"
26604 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
26605 $as_echo "$as_me: creating $ac_file" >&6;}
26607 # Neutralize special characters interpreted by sed in replacement strings.
26608 case $configure_input in #(
26609 *\&* | *\|* | *\\* )
26610 ac_sed_conf_input=`$as_echo "$configure_input" |
26611 sed 's/[\\\\&|]/\\\\&/g'`;; #(
26612 *) ac_sed_conf_input=$configure_input;;
26616 *:-:* | *:-) cat >"$ac_tmp/stdin" \
26617 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
26622 ac_dir=`$as_dirname -- "$ac_file" ||
26623 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26624 X"$ac_file" : 'X\(//\)[^/]' \| \
26625 X"$ac_file" : 'X\(//\)$' \| \
26626 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
26627 $as_echo X"$ac_file" |
26628 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26632 /^X\(\/\/\)[^/].*/{
26645 as_dir="$ac_dir"; as_fn_mkdir_p
26649 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
26651 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
26652 # A ".." for each directory in $ac_dir_suffix.
26653 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
26654 case $ac_top_builddir_sub in
26655 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
26656 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
26659 ac_abs_top_builddir=$ac_pwd
26660 ac_abs_builddir=$ac_pwd$ac_dir_suffix
26661 # for backward compatibility:
26662 ac_top_builddir=$ac_top_build_prefix
26665 .) # We are building in place.
26667 ac_top_srcdir=$ac_top_builddir_sub
26668 ac_abs_top_srcdir=$ac_pwd ;;
26669 [\\/]* | ?:[\\/]* ) # Absolute name.
26670 ac_srcdir=$srcdir$ac_dir_suffix;
26671 ac_top_srcdir=$srcdir
26672 ac_abs_top_srcdir=$srcdir ;;
26673 *) # Relative name.
26674 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
26675 ac_top_srcdir=$ac_top_build_prefix$srcdir
26676 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
26678 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
26688 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
26689 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
26693 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26694 # If the template does not know about datarootdir, expand it.
26695 # FIXME: This hack should be removed a few years after 2.60.
26696 ac_datarootdir_hack=; ac_datarootdir_seen=
26707 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
26708 *datarootdir*) ac_datarootdir_seen=yes;;
26709 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
26710 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
26711 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
26713 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26714 ac_datarootdir_hack='
26715 s&@datadir@&$datadir&g
26716 s&@docdir@&$docdir&g
26717 s&@infodir@&$infodir&g
26718 s&@localedir@&$localedir&g
26719 s&@mandir@&$mandir&g
26720 s&\\\${datarootdir}&$datarootdir&g' ;;
26724 # Neutralize VPATH when `$srcdir' = `.'.
26725 # Shell code in configure.ac might set extrasub.
26726 # FIXME: do we really want to maintain this feature?
26727 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26728 ac_sed_extra="$ac_vpsub
26731 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26733 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
26734 s|@configure_input@|$ac_sed_conf_input|;t t
26735 s&@top_builddir@&$ac_top_builddir_sub&;t t
26736 s&@top_build_prefix@&$ac_top_build_prefix&;t t
26737 s&@srcdir@&$ac_srcdir&;t t
26738 s&@abs_srcdir@&$ac_abs_srcdir&;t t
26739 s&@top_srcdir@&$ac_top_srcdir&;t t
26740 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
26741 s&@builddir@&$ac_builddir&;t t
26742 s&@abs_builddir@&$ac_abs_builddir&;t t
26743 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
26744 s&@INSTALL@&$ac_INSTALL&;t t
26745 $ac_datarootdir_hack
26747 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
26748 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
26750 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
26751 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
26752 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
26753 "$ac_tmp/out"`; test -z "$ac_out"; } &&
26754 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
26755 which seems to be undefined. Please make sure it is defined" >&5
26756 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
26757 which seems to be undefined. Please make sure it is defined" >&2;}
26759 rm -f "$ac_tmp/stdin"
26761 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
26762 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
26764 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
26770 if test x"$ac_file" != x-; then
26772 $as_echo "/* $configure_input */" \
26773 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
26774 } >"$ac_tmp/config.h" \
26775 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
26776 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
26777 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
26778 $as_echo "$as_me: $ac_file is unchanged" >&6;}
26781 mv "$ac_tmp/config.h" "$ac_file" \
26782 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
26785 $as_echo "/* $configure_input */" \
26786 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
26787 || as_fn_error $? "could not create -" "$LINENO" 5
26791 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
26792 $as_echo "$as_me: executing $ac_file commands" >&6;}
26797 case $ac_file$ac_mode in
26800 # See if we are running on zsh, and set the options which allow our
26801 # commands through without removal of \ escapes.
26802 if test -n "${ZSH_VERSION+set}" ; then
26803 setopt NO_GLOB_SUBST
26806 cfgfile="${ofile}T"
26807 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
26810 cat <<_LT_EOF >> "$cfgfile"
26813 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
26814 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
26815 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26816 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
26818 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
26819 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
26821 # Written by Gordon Matzigkeit, 1996
26823 # This file is part of GNU Libtool.
26825 # GNU Libtool is free software; you can redistribute it and/or
26826 # modify it under the terms of the GNU General Public License as
26827 # published by the Free Software Foundation; either version 2 of
26828 # the License, or (at your option) any later version.
26830 # As a special exception to the GNU General Public License,
26831 # if you distribute this file as part of a program or library that
26832 # is built using GNU Libtool, you may include this file under the
26833 # same distribution terms that you use for the rest of that program.
26835 # GNU Libtool is distributed in the hope that it will be useful,
26836 # but WITHOUT ANY WARRANTY; without even the implied warranty of
26837 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
26838 # GNU General Public License for more details.
26840 # You should have received a copy of the GNU General Public License
26841 # along with GNU Libtool; see the file COPYING. If not, a copy
26842 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
26843 # obtained by writing to the Free Software Foundation, Inc.,
26844 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
26847 # The names of the tagged configurations supported by this script.
26848 available_tags="CXX "
26850 # ### BEGIN LIBTOOL CONFIG
26852 # Which release of libtool.m4 was used?
26853 macro_version=$macro_version
26854 macro_revision=$macro_revision
26856 # Whether or not to build shared libraries.
26857 build_libtool_libs=$enable_shared
26859 # Whether or not to build static libraries.
26860 build_old_libs=$enable_static
26862 # What type of objects to build.
26865 # Whether or not to optimize for fast installation.
26866 fast_install=$enable_fast_install
26868 # Shell to use when invoking shell scripts.
26871 # An echo program that protects backslashes.
26874 # The PATH separator for the build system.
26875 PATH_SEPARATOR=$lt_PATH_SEPARATOR
26878 host_alias=$host_alias
26882 # The build system.
26883 build_alias=$build_alias
26887 # A sed program that does not truncate output.
26890 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
26891 Xsed="\$SED -e 1s/^X//"
26893 # A grep program that handles long lines.
26899 # A literal string matcher.
26902 # A BSD- or MS-compatible name lister.
26905 # Whether we need soft or hard links.
26908 # What is the maximum length of a command?
26909 max_cmd_len=$max_cmd_len
26911 # Object file suffix (normally "o").
26914 # Executable file suffix (normally "").
26917 # whether the shell understands "unset".
26920 # turn spaces into newlines.
26923 # turn newlines into spaces.
26926 # convert \$build file names to \$host format.
26927 to_host_file_cmd=$lt_cv_to_host_file_cmd
26929 # convert \$build files to toolchain format.
26930 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
26932 # An object symbol dumper.
26933 OBJDUMP=$lt_OBJDUMP
26935 # Method to check whether dependent libraries are shared objects.
26936 deplibs_check_method=$lt_deplibs_check_method
26938 # Command to use when deplibs_check_method = "file_magic".
26939 file_magic_cmd=$lt_file_magic_cmd
26941 # How to find potential files when deplibs_check_method = "file_magic".
26942 file_magic_glob=$lt_file_magic_glob
26944 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
26945 want_nocaseglob=$lt_want_nocaseglob
26947 # DLL creation program.
26948 DLLTOOL=$lt_DLLTOOL
26950 # Command to associate shared and link libraries.
26951 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
26956 # Flags to create an archive.
26957 AR_FLAGS=$lt_AR_FLAGS
26959 # How to feed a file listing to the archiver.
26960 archiver_list_spec=$lt_archiver_list_spec
26962 # A symbol stripping program.
26965 # Commands used to install an old-style archive.
26967 old_postinstall_cmds=$lt_old_postinstall_cmds
26968 old_postuninstall_cmds=$lt_old_postuninstall_cmds
26970 # Whether to use a lock for old archive extraction.
26971 lock_old_archive_extraction=$lock_old_archive_extraction
26976 # LTCC compiler flags.
26977 LTCFLAGS=$lt_CFLAGS
26979 # Take the output of nm and produce a listing of raw symbols and C names.
26980 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26982 # Transform the output of nm in a proper C declaration.
26983 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26985 # Transform the output of nm in a C name address pair.
26986 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26988 # Transform the output of nm in a C name address pair when lib prefix is needed.
26989 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
26991 # Specify filename containing input files for \$NM.
26992 nm_file_list_spec=$lt_nm_file_list_spec
26994 # The root where to search for dependent libraries,and in which our libraries should be installed.
26995 lt_sysroot=$lt_sysroot
26997 # The name of the directory that contains temporary libtool files.
27000 # Used to examine libraries when file_magic_cmd begins with "file".
27001 MAGIC_CMD=$MAGIC_CMD
27003 # Must we lock files when doing compilation?
27004 need_locks=$lt_need_locks
27007 MANIFEST_TOOL=$lt_MANIFEST_TOOL
27009 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
27010 DSYMUTIL=$lt_DSYMUTIL
27012 # Tool to change global to local symbols on Mac OS X.
27015 # Tool to manipulate fat objects and archives on Mac OS X.
27018 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
27021 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
27022 OTOOL64=$lt_OTOOL64
27024 # Old archive suffix (normally "a").
27027 # Shared library suffix (normally ".so").
27028 shrext_cmds=$lt_shrext_cmds
27030 # The commands to extract the exported symbol list from a shared archive.
27031 extract_expsyms_cmds=$lt_extract_expsyms_cmds
27033 # Variables whose values should be saved in libtool wrapper scripts and
27034 # restored at link time.
27035 variables_saved_for_relink=$lt_variables_saved_for_relink
27037 # Do we need the "lib" prefix for modules?
27038 need_lib_prefix=$need_lib_prefix
27040 # Do we need a version for libraries?
27041 need_version=$need_version
27043 # Library versioning type.
27044 version_type=$version_type
27046 # Shared library runtime path variable.
27047 runpath_var=$runpath_var
27049 # Shared library path variable.
27050 shlibpath_var=$shlibpath_var
27052 # Is shlibpath searched before the hard-coded library search path?
27053 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
27055 # Format of library name prefix.
27056 libname_spec=$lt_libname_spec
27058 # List of archive names. First name is the real one, the rest are links.
27059 # The last name is the one that the linker finds with -lNAME
27060 library_names_spec=$lt_library_names_spec
27062 # The coded name of the library, if different from the real name.
27063 soname_spec=$lt_soname_spec
27065 # Permission mode override for installation of shared libraries.
27066 install_override_mode=$lt_install_override_mode
27068 # Command to use after installation of a shared archive.
27069 postinstall_cmds=$lt_postinstall_cmds
27071 # Command to use after uninstallation of a shared archive.
27072 postuninstall_cmds=$lt_postuninstall_cmds
27074 # Commands used to finish a libtool library installation in a directory.
27075 finish_cmds=$lt_finish_cmds
27077 # As "finish_cmds", except a single script fragment to be evaled but
27079 finish_eval=$lt_finish_eval
27081 # Whether we should hardcode library paths into libraries.
27082 hardcode_into_libs=$hardcode_into_libs
27084 # Compile-time system search path for libraries.
27085 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
27087 # Run-time system search path for libraries.
27088 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
27090 # Whether dlopen is supported.
27091 dlopen_support=$enable_dlopen
27093 # Whether dlopen of programs is supported.
27094 dlopen_self=$enable_dlopen_self
27096 # Whether dlopen of statically linked programs is supported.
27097 dlopen_self_static=$enable_dlopen_self_static
27099 # Commands to strip libraries.
27100 old_striplib=$lt_old_striplib
27101 striplib=$lt_striplib
27104 # The linker used to build libraries.
27107 # How to create reloadable object files.
27108 reload_flag=$lt_reload_flag
27109 reload_cmds=$lt_reload_cmds
27111 # Commands used to build an old-style archive.
27112 old_archive_cmds=$lt_old_archive_cmds
27114 # A language specific compiler.
27117 # Is the compiler the GNU compiler?
27120 # Compiler flag to turn off builtin functions.
27121 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
27123 # Additional compiler flags for building library objects.
27124 pic_flag=$lt_lt_prog_compiler_pic
27126 # How to pass a linker flag through the compiler.
27127 wl=$lt_lt_prog_compiler_wl
27129 # Compiler flag to prevent dynamic linking.
27130 link_static_flag=$lt_lt_prog_compiler_static
27132 # Does compiler simultaneously support -c and -o options?
27133 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
27135 # Whether or not to add -lc for building shared libraries.
27136 build_libtool_need_lc=$archive_cmds_need_lc
27138 # Whether or not to disallow shared libs when runtime libs are static.
27139 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
27141 # Compiler flag to allow reflexive dlopens.
27142 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
27144 # Compiler flag to generate shared objects directly from archives.
27145 whole_archive_flag_spec=$lt_whole_archive_flag_spec
27147 # Whether the compiler copes with passing no objects directly.
27148 compiler_needs_object=$lt_compiler_needs_object
27150 # Create an old-style archive from a shared archive.
27151 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
27153 # Create a temporary old-style archive to link instead of a shared archive.
27154 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
27156 # Commands used to build a shared archive.
27157 archive_cmds=$lt_archive_cmds
27158 archive_expsym_cmds=$lt_archive_expsym_cmds
27160 # Commands used to build a loadable module if different from building
27161 # a shared archive.
27162 module_cmds=$lt_module_cmds
27163 module_expsym_cmds=$lt_module_expsym_cmds
27165 # Whether we are building with GNU ld or not.
27166 with_gnu_ld=$lt_with_gnu_ld
27168 # Flag that allows shared libraries with undefined symbols to be built.
27169 allow_undefined_flag=$lt_allow_undefined_flag
27171 # Flag that enforces no undefined symbols.
27172 no_undefined_flag=$lt_no_undefined_flag
27174 # Flag to hardcode \$libdir into a binary during linking.
27175 # This must work even if \$libdir does not exist
27176 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
27178 # Whether we need a single "-rpath" flag with a separated argument.
27179 hardcode_libdir_separator=$lt_hardcode_libdir_separator
27181 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
27182 # DIR into the resulting binary.
27183 hardcode_direct=$hardcode_direct
27185 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
27186 # DIR into the resulting binary and the resulting library dependency is
27187 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
27188 # library is relocated.
27189 hardcode_direct_absolute=$hardcode_direct_absolute
27191 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
27192 # into the resulting binary.
27193 hardcode_minus_L=$hardcode_minus_L
27195 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
27196 # into the resulting binary.
27197 hardcode_shlibpath_var=$hardcode_shlibpath_var
27199 # Set to "yes" if building a shared library automatically hardcodes DIR
27200 # into the library and all subsequent libraries and executables linked
27202 hardcode_automatic=$hardcode_automatic
27204 # Set to yes if linker adds runtime paths of dependent libraries
27205 # to runtime path list.
27206 inherit_rpath=$inherit_rpath
27208 # Whether libtool must link a program against all its dependency libraries.
27209 link_all_deplibs=$link_all_deplibs
27211 # Set to "yes" if exported symbols are required.
27212 always_export_symbols=$always_export_symbols
27214 # The commands to list exported symbols.
27215 export_symbols_cmds=$lt_export_symbols_cmds
27217 # Symbols that should not be listed in the preloaded symbols.
27218 exclude_expsyms=$lt_exclude_expsyms
27220 # Symbols that must always be exported.
27221 include_expsyms=$lt_include_expsyms
27223 # Commands necessary for linking programs (against libraries) with templates.
27224 prelink_cmds=$lt_prelink_cmds
27226 # Commands necessary for finishing linking programs.
27227 postlink_cmds=$lt_postlink_cmds
27229 # Specify filename containing input files.
27230 file_list_spec=$lt_file_list_spec
27232 # How to hardcode a shared library path into an executable.
27233 hardcode_action=$hardcode_action
27235 # The directories searched by this compiler when creating a shared library.
27236 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
27238 # Dependencies to place before and after the objects being linked to
27239 # create a shared library.
27240 predep_objects=$lt_predep_objects
27241 postdep_objects=$lt_postdep_objects
27242 predeps=$lt_predeps
27243 postdeps=$lt_postdeps
27245 # The library search path used internally by the compiler when linking
27246 # a shared library.
27247 compiler_lib_search_path=$lt_compiler_lib_search_path
27249 # ### END LIBTOOL CONFIG
27255 cat <<\_LT_EOF >> "$cfgfile"
27256 # AIX sometimes has problems with the GCC collect2 program. For some
27257 # reason, if we set the COLLECT_NAMES environment variable, the problems
27258 # vanish in a puff of smoke.
27259 if test "X${COLLECT_NAMES+set}" != Xset; then
27261 export COLLECT_NAMES
27268 ltmain="$ac_aux_dir/ltmain.sh"
27271 # We use sed instead of cat because bash on DJGPP gets confused if
27272 # if finds mixed CR/LF and LF-only lines. Since sed operates in
27273 # text mode, it properly converts lines to CR/LF. This bash problem
27274 # is reportedly fixed, but why not run on old versions too?
27275 sed '$q' "$ltmain" >> "$cfgfile" \
27276 || (rm -f "$cfgfile"; exit 1)
27278 if test x"$xsi_shell" = xyes; then
27279 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
27283 \ */*) func_dirname_result="${1%/*}${2}" ;;\
27284 \ * ) func_dirname_result="${3}" ;;\
27286 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
27287 && mv -f "$cfgfile.tmp" "$cfgfile" \
27288 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
27289 test 0 -eq $? || _lt_function_replace_fail=:
27292 sed -e '/^func_basename ()$/,/^} # func_basename /c\
27295 \ func_basename_result="${1##*/}"\
27296 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
27297 && mv -f "$cfgfile.tmp" "$cfgfile" \
27298 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
27299 test 0 -eq $? || _lt_function_replace_fail=:
27302 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
27303 func_dirname_and_basename ()\
27306 \ */*) func_dirname_result="${1%/*}${2}" ;;\
27307 \ * ) func_dirname_result="${3}" ;;\
27309 \ func_basename_result="${1##*/}"\
27310 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
27311 && mv -f "$cfgfile.tmp" "$cfgfile" \
27312 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
27313 test 0 -eq $? || _lt_function_replace_fail=:
27316 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
27319 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
27320 \ # positional parameters, so assign one to ordinary parameter first.\
27321 \ func_stripname_result=${3}\
27322 \ func_stripname_result=${func_stripname_result#"${1}"}\
27323 \ func_stripname_result=${func_stripname_result%"${2}"}\
27324 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
27325 && mv -f "$cfgfile.tmp" "$cfgfile" \
27326 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
27327 test 0 -eq $? || _lt_function_replace_fail=:
27330 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
27331 func_split_long_opt ()\
27333 \ func_split_long_opt_name=${1%%=*}\
27334 \ func_split_long_opt_arg=${1#*=}\
27335 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
27336 && mv -f "$cfgfile.tmp" "$cfgfile" \
27337 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
27338 test 0 -eq $? || _lt_function_replace_fail=:
27341 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
27342 func_split_short_opt ()\
27344 \ func_split_short_opt_arg=${1#??}\
27345 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
27346 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
27347 && mv -f "$cfgfile.tmp" "$cfgfile" \
27348 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
27349 test 0 -eq $? || _lt_function_replace_fail=:
27352 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
27356 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
27357 \ *) func_lo2o_result=${1} ;;\
27359 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
27360 && mv -f "$cfgfile.tmp" "$cfgfile" \
27361 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
27362 test 0 -eq $? || _lt_function_replace_fail=:
27365 sed -e '/^func_xform ()$/,/^} # func_xform /c\
27368 func_xform_result=${1%.*}.lo\
27369 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
27370 && mv -f "$cfgfile.tmp" "$cfgfile" \
27371 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
27372 test 0 -eq $? || _lt_function_replace_fail=:
27375 sed -e '/^func_arith ()$/,/^} # func_arith /c\
27378 func_arith_result=$(( $* ))\
27379 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
27380 && mv -f "$cfgfile.tmp" "$cfgfile" \
27381 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
27382 test 0 -eq $? || _lt_function_replace_fail=:
27385 sed -e '/^func_len ()$/,/^} # func_len /c\
27388 func_len_result=${#1}\
27389 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
27390 && mv -f "$cfgfile.tmp" "$cfgfile" \
27391 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
27392 test 0 -eq $? || _lt_function_replace_fail=:
27396 if test x"$lt_shell_append" = xyes; then
27397 sed -e '/^func_append ()$/,/^} # func_append /c\
27400 eval "${1}+=\\${2}"\
27401 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
27402 && mv -f "$cfgfile.tmp" "$cfgfile" \
27403 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
27404 test 0 -eq $? || _lt_function_replace_fail=:
27407 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
27408 func_append_quoted ()\
27410 \ func_quote_for_eval "${2}"\
27411 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
27412 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
27413 && mv -f "$cfgfile.tmp" "$cfgfile" \
27414 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
27415 test 0 -eq $? || _lt_function_replace_fail=:
27418 # Save a `func_append' function call where possible by direct use of '+='
27419 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
27420 && mv -f "$cfgfile.tmp" "$cfgfile" \
27421 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
27422 test 0 -eq $? || _lt_function_replace_fail=:
27424 # Save a `func_append' function call even when '+=' is not available
27425 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
27426 && mv -f "$cfgfile.tmp" "$cfgfile" \
27427 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
27428 test 0 -eq $? || _lt_function_replace_fail=:
27431 if test x"$_lt_function_replace_fail" = x":"; then
27432 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
27433 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
27437 mv -f "$cfgfile" "$ofile" ||
27438 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
27442 cat <<_LT_EOF >> "$ofile"
27444 # ### BEGIN LIBTOOL TAG CONFIG: CXX
27446 # The linker used to build libraries.
27449 # How to create reloadable object files.
27450 reload_flag=$lt_reload_flag_CXX
27451 reload_cmds=$lt_reload_cmds_CXX
27453 # Commands used to build an old-style archive.
27454 old_archive_cmds=$lt_old_archive_cmds_CXX
27456 # A language specific compiler.
27457 CC=$lt_compiler_CXX
27459 # Is the compiler the GNU compiler?
27462 # Compiler flag to turn off builtin functions.
27463 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
27465 # Additional compiler flags for building library objects.
27466 pic_flag=$lt_lt_prog_compiler_pic_CXX
27468 # How to pass a linker flag through the compiler.
27469 wl=$lt_lt_prog_compiler_wl_CXX
27471 # Compiler flag to prevent dynamic linking.
27472 link_static_flag=$lt_lt_prog_compiler_static_CXX
27474 # Does compiler simultaneously support -c and -o options?
27475 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
27477 # Whether or not to add -lc for building shared libraries.
27478 build_libtool_need_lc=$archive_cmds_need_lc_CXX
27480 # Whether or not to disallow shared libs when runtime libs are static.
27481 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
27483 # Compiler flag to allow reflexive dlopens.
27484 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
27486 # Compiler flag to generate shared objects directly from archives.
27487 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
27489 # Whether the compiler copes with passing no objects directly.
27490 compiler_needs_object=$lt_compiler_needs_object_CXX
27492 # Create an old-style archive from a shared archive.
27493 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
27495 # Create a temporary old-style archive to link instead of a shared archive.
27496 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
27498 # Commands used to build a shared archive.
27499 archive_cmds=$lt_archive_cmds_CXX
27500 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
27502 # Commands used to build a loadable module if different from building
27503 # a shared archive.
27504 module_cmds=$lt_module_cmds_CXX
27505 module_expsym_cmds=$lt_module_expsym_cmds_CXX
27507 # Whether we are building with GNU ld or not.
27508 with_gnu_ld=$lt_with_gnu_ld_CXX
27510 # Flag that allows shared libraries with undefined symbols to be built.
27511 allow_undefined_flag=$lt_allow_undefined_flag_CXX
27513 # Flag that enforces no undefined symbols.
27514 no_undefined_flag=$lt_no_undefined_flag_CXX
27516 # Flag to hardcode \$libdir into a binary during linking.
27517 # This must work even if \$libdir does not exist
27518 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
27520 # Whether we need a single "-rpath" flag with a separated argument.
27521 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
27523 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
27524 # DIR into the resulting binary.
27525 hardcode_direct=$hardcode_direct_CXX
27527 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
27528 # DIR into the resulting binary and the resulting library dependency is
27529 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
27530 # library is relocated.
27531 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
27533 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
27534 # into the resulting binary.
27535 hardcode_minus_L=$hardcode_minus_L_CXX
27537 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
27538 # into the resulting binary.
27539 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
27541 # Set to "yes" if building a shared library automatically hardcodes DIR
27542 # into the library and all subsequent libraries and executables linked
27544 hardcode_automatic=$hardcode_automatic_CXX
27546 # Set to yes if linker adds runtime paths of dependent libraries
27547 # to runtime path list.
27548 inherit_rpath=$inherit_rpath_CXX
27550 # Whether libtool must link a program against all its dependency libraries.
27551 link_all_deplibs=$link_all_deplibs_CXX
27553 # Set to "yes" if exported symbols are required.
27554 always_export_symbols=$always_export_symbols_CXX
27556 # The commands to list exported symbols.
27557 export_symbols_cmds=$lt_export_symbols_cmds_CXX
27559 # Symbols that should not be listed in the preloaded symbols.
27560 exclude_expsyms=$lt_exclude_expsyms_CXX
27562 # Symbols that must always be exported.
27563 include_expsyms=$lt_include_expsyms_CXX
27565 # Commands necessary for linking programs (against libraries) with templates.
27566 prelink_cmds=$lt_prelink_cmds_CXX
27568 # Commands necessary for finishing linking programs.
27569 postlink_cmds=$lt_postlink_cmds_CXX
27571 # Specify filename containing input files.
27572 file_list_spec=$lt_file_list_spec_CXX
27574 # How to hardcode a shared library path into an executable.
27575 hardcode_action=$hardcode_action_CXX
27577 # The directories searched by this compiler when creating a shared library.
27578 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
27580 # Dependencies to place before and after the objects being linked to
27581 # create a shared library.
27582 predep_objects=$lt_predep_objects_CXX
27583 postdep_objects=$lt_postdep_objects_CXX
27584 predeps=$lt_predeps_CXX
27585 postdeps=$lt_postdeps_CXX
27587 # The library search path used internally by the compiler when linking
27588 # a shared library.
27589 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
27591 # ### END LIBTOOL TAG CONFIG: CXX
27595 "svn_private_config.h.tmp":C) svn_cf=subversion/svn_private_config.h;
27596 $SED -e "s/@SVN_DB_HEADER@/$SVN_DB_HEADER/" $svn_cf.tmp > $svn_cf.tmp.new
27597 cmp -s $svn_cf.tmp.new $svn_cf || mv -f $svn_cf.tmp.new $svn_cf
27598 rm -f $svn_cf.tmp.new $svn_cf.tmp ;;
27599 "tools/backup/hot-backup.py":F) chmod +x tools/backup/hot-backup.py ;;
27600 "tools/hook-scripts/commit-access-control.pl":F) chmod +x tools/hook-scripts/commit-access-control.pl ;;
27601 "subversion/bindings/swig/perl/native/Makefile.PL":F) chmod +x subversion/bindings/swig/perl/native/Makefile.PL ;;
27602 "packages/solaris/pkginfo":F) chmod +x packages/solaris/pkginfo ;;
27610 ac_clean_files=$ac_clean_files_save
27612 test $ac_write_fail = 0 ||
27613 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
27616 # configure is writing to config.log, and then calls config.status.
27617 # config.status does its own redirection, appending to config.log.
27618 # Unfortunately, on DOS this fails, as config.log is still kept open
27619 # by configure, so config.status won't be able to write to it; its
27620 # output is simply discarded. So we exec the FD to /dev/null,
27621 # effectively closing config.log, so it can be properly (re)opened and
27622 # appended to by config.status. When coming back to configure, we
27623 # need to make the FD available again.
27624 if test "$no_create" != yes; then
27626 ac_config_status_args=
27627 test "$silent" = yes &&
27628 ac_config_status_args="$ac_config_status_args --quiet"
27630 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
27632 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
27633 # would make configure fail if this is the last instruction.
27634 $ac_cs_success || as_fn_exit 1
27636 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
27637 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
27638 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
27642 # ==== Print final messages to user ==========================================
27645 if test "$svn_have_berkeley_db" = "no6" && test "$enable_bdb6" != "no"; then
27646 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: We have configured without BDB filesystem support
27649 Berkeley DB 6 was found, but not used. Please re-run configure (see
27650 ./config.nice) with the '--enable-bdb6' flag to use it,
27651 or explicitly specify '--disable-bdb6' or '--without-berkeley-db'
27652 to silence this warning.
27654 Please note that some versions of Berkeley DB 6+ are under the GNU Affero
27655 General Public License, version 3:
27656 https://oss.oracle.com/pipermail/bdb/2013-June/000056.html
27658 The AGPL-3.0 licence may impose special requirements for making available
27659 source code of server-side software. The text of the licence is:
27660 https://www.gnu.org/licenses/agpl-3.0.html
27661 http://opensource.org/licenses/AGPL-3.0
27663 The Berkeley DB backend to Subversion is deprecated; see
27664 http://subversion.apache.org/docs/release-notes/1.8#bdb-deprecated
27666 The Subversion developers have not tested Subversion with Berkeley DB 6 for
27667 technical problems or bugs.
27669 $as_echo "$as_me: WARNING: We have configured without BDB filesystem support
27672 Berkeley DB 6 was found, but not used. Please re-run configure (see
27673 ./config.nice) with the '--enable-bdb6' flag to use it,
27674 or explicitly specify '--disable-bdb6' or '--without-berkeley-db'
27675 to silence this warning.
27677 Please note that some versions of Berkeley DB 6+ are under the GNU Affero
27678 General Public License, version 3:
27679 https://oss.oracle.com/pipermail/bdb/2013-June/000056.html
27681 The AGPL-3.0 licence may impose special requirements for making available
27682 source code of server-side software. The text of the licence is:
27683 https://www.gnu.org/licenses/agpl-3.0.html
27684 http://opensource.org/licenses/AGPL-3.0
27686 The Berkeley DB backend to Subversion is deprecated; see
27687 http://subversion.apache.org/docs/release-notes/1.8#bdb-deprecated
27689 The Subversion developers have not tested Subversion with Berkeley DB 6 for
27690 technical problems or bugs.