2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for subversion 1.8.8.
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.8'
594 PACKAGE_STRING='subversion 1.8.8'
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
639 JAVAHL_COMPAT_TESTS_TARGET
645 INSTALL_EXTRA_JAVAHL_LIB
647 SVN_FS_LIB_INSTALL_DEPS
650 SVN_RA_LIB_INSTALL_DEPS
654 SWIG_RB_SITE_ARCH_DIR
687 libsvn_ra_svn_LDFLAGS
688 libsvn_ra_serf_LDFLAGS
689 libsvn_ra_local_LDFLAGS
691 libsvn_fs_util_LDFLAGS
693 libsvn_fs_base_LDFLAGS
697 libsvn_client_LDFLAGS
698 libsvn_auth_kwallet_LDFLAGS
699 libsvn_auth_gnome_keyring_LDFLAGS
717 SVN_GNOME_KEYRING_LIBS
718 SVN_GNOME_KEYRING_INCLUDES
729 TRANSFORM_LIBTOOL_SCRIPTS
761 SVN_APR_MEMCACHE_LIBS
762 SVN_APR_MEMCACHE_INCLUDES
770 SVN_APR_SHLIB_PATH_VAR
840 program_transform_name
853 enable_option_checking
859 with_apache_libexecdir
861 enable_sqlite_compatibility_version
869 enable_experimental_libtool
871 enable_local_library_preloading
885 enable_plaintext_password_storage
889 enable_disallowing_of_undefined_references
890 enable_maintainer_mode
891 enable_full_version_match
894 enable_mod_activation
901 with_ruby_test_verbose
903 enable_runtime_module_search
907 ac_precious_vars='build_alias
922 # Initialize some variables set by options.
924 ac_init_version=false
925 ac_unrecognized_opts=
927 # The variables have the same names as the options, with
928 # dashes changed to underlines.
936 program_transform_name=s,x,x,
944 # Installation directory options.
945 # These are left unexpanded so users can "make install exec_prefix=/foo"
946 # and all the variables that are supposed to be based on exec_prefix
947 # by default will actually change.
948 # Use braces instead of parens because sh, perl, etc. also accept them.
949 # (The list follows the same order as the GNU Coding Standards.)
950 bindir='${exec_prefix}/bin'
951 sbindir='${exec_prefix}/sbin'
952 libexecdir='${exec_prefix}/libexec'
953 datarootdir='${prefix}/share'
954 datadir='${datarootdir}'
955 sysconfdir='${prefix}/etc'
956 sharedstatedir='${prefix}/com'
957 localstatedir='${prefix}/var'
958 includedir='${prefix}/include'
959 oldincludedir='/usr/include'
960 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
961 infodir='${datarootdir}/info'
966 libdir='${exec_prefix}/lib'
967 localedir='${datarootdir}/locale'
968 mandir='${datarootdir}/man'
974 # If the previous option needs an argument, assign it.
975 if test -n "$ac_prev"; then
976 eval $ac_prev=\$ac_option
982 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
987 # Accept the important Cygnus configure options, so we can diagnose typos.
989 case $ac_dashdash$ac_option in
993 -bindir | --bindir | --bindi | --bind | --bin | --bi)
995 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
998 -build | --build | --buil | --bui | --bu)
999 ac_prev=build_alias ;;
1000 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1001 build_alias=$ac_optarg ;;
1003 -cache-file | --cache-file | --cache-fil | --cache-fi \
1004 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1005 ac_prev=cache_file ;;
1006 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1007 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1008 cache_file=$ac_optarg ;;
1010 --config-cache | -C)
1011 cache_file=config.cache ;;
1013 -datadir | --datadir | --datadi | --datad)
1015 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1016 datadir=$ac_optarg ;;
1018 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1019 | --dataroo | --dataro | --datar)
1020 ac_prev=datarootdir ;;
1021 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1022 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1023 datarootdir=$ac_optarg ;;
1025 -disable-* | --disable-*)
1026 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1027 # Reject names that are not valid shell variable names.
1028 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1029 as_fn_error $? "invalid feature name: $ac_useropt"
1030 ac_useropt_orig=$ac_useropt
1031 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1032 case $ac_user_opts in
1034 "enable_$ac_useropt"
1036 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1037 ac_unrecognized_sep=', ';;
1039 eval enable_$ac_useropt=no ;;
1041 -docdir | --docdir | --docdi | --doc | --do)
1043 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1044 docdir=$ac_optarg ;;
1046 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1048 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1049 dvidir=$ac_optarg ;;
1051 -enable-* | --enable-*)
1052 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1053 # Reject names that are not valid shell variable names.
1054 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1055 as_fn_error $? "invalid feature name: $ac_useropt"
1056 ac_useropt_orig=$ac_useropt
1057 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1058 case $ac_user_opts in
1060 "enable_$ac_useropt"
1062 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1063 ac_unrecognized_sep=', ';;
1065 eval enable_$ac_useropt=\$ac_optarg ;;
1067 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1068 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1069 | --exec | --exe | --ex)
1070 ac_prev=exec_prefix ;;
1071 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1072 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1073 | --exec=* | --exe=* | --ex=*)
1074 exec_prefix=$ac_optarg ;;
1076 -gas | --gas | --ga | --g)
1077 # Obsolete; use --with-gas.
1080 -help | --help | --hel | --he | -h)
1081 ac_init_help=long ;;
1082 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1083 ac_init_help=recursive ;;
1084 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1085 ac_init_help=short ;;
1087 -host | --host | --hos | --ho)
1088 ac_prev=host_alias ;;
1089 -host=* | --host=* | --hos=* | --ho=*)
1090 host_alias=$ac_optarg ;;
1092 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1094 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1096 htmldir=$ac_optarg ;;
1098 -includedir | --includedir | --includedi | --included | --include \
1099 | --includ | --inclu | --incl | --inc)
1100 ac_prev=includedir ;;
1101 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1102 | --includ=* | --inclu=* | --incl=* | --inc=*)
1103 includedir=$ac_optarg ;;
1105 -infodir | --infodir | --infodi | --infod | --info | --inf)
1107 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1108 infodir=$ac_optarg ;;
1110 -libdir | --libdir | --libdi | --libd)
1112 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1113 libdir=$ac_optarg ;;
1115 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1116 | --libexe | --libex | --libe)
1117 ac_prev=libexecdir ;;
1118 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1119 | --libexe=* | --libex=* | --libe=*)
1120 libexecdir=$ac_optarg ;;
1122 -localedir | --localedir | --localedi | --localed | --locale)
1123 ac_prev=localedir ;;
1124 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1125 localedir=$ac_optarg ;;
1127 -localstatedir | --localstatedir | --localstatedi | --localstated \
1128 | --localstate | --localstat | --localsta | --localst | --locals)
1129 ac_prev=localstatedir ;;
1130 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1131 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1132 localstatedir=$ac_optarg ;;
1134 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1136 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1137 mandir=$ac_optarg ;;
1139 -nfp | --nfp | --nf)
1140 # Obsolete; use --without-fp.
1143 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1144 | --no-cr | --no-c | -n)
1147 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1148 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1151 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1152 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1153 | --oldin | --oldi | --old | --ol | --o)
1154 ac_prev=oldincludedir ;;
1155 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1156 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1157 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1158 oldincludedir=$ac_optarg ;;
1160 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1162 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1163 prefix=$ac_optarg ;;
1165 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1166 | --program-pre | --program-pr | --program-p)
1167 ac_prev=program_prefix ;;
1168 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1169 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1170 program_prefix=$ac_optarg ;;
1172 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1173 | --program-suf | --program-su | --program-s)
1174 ac_prev=program_suffix ;;
1175 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1176 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1177 program_suffix=$ac_optarg ;;
1179 -program-transform-name | --program-transform-name \
1180 | --program-transform-nam | --program-transform-na \
1181 | --program-transform-n | --program-transform- \
1182 | --program-transform | --program-transfor \
1183 | --program-transfo | --program-transf \
1184 | --program-trans | --program-tran \
1185 | --progr-tra | --program-tr | --program-t)
1186 ac_prev=program_transform_name ;;
1187 -program-transform-name=* | --program-transform-name=* \
1188 | --program-transform-nam=* | --program-transform-na=* \
1189 | --program-transform-n=* | --program-transform-=* \
1190 | --program-transform=* | --program-transfor=* \
1191 | --program-transfo=* | --program-transf=* \
1192 | --program-trans=* | --program-tran=* \
1193 | --progr-tra=* | --program-tr=* | --program-t=*)
1194 program_transform_name=$ac_optarg ;;
1196 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1198 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1199 pdfdir=$ac_optarg ;;
1201 -psdir | --psdir | --psdi | --psd | --ps)
1203 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1206 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1207 | -silent | --silent | --silen | --sile | --sil)
1210 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1212 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1214 sbindir=$ac_optarg ;;
1216 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1217 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1218 | --sharedst | --shareds | --shared | --share | --shar \
1220 ac_prev=sharedstatedir ;;
1221 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1222 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1223 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1225 sharedstatedir=$ac_optarg ;;
1227 -site | --site | --sit)
1229 -site=* | --site=* | --sit=*)
1232 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1234 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1235 srcdir=$ac_optarg ;;
1237 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1238 | --syscon | --sysco | --sysc | --sys | --sy)
1239 ac_prev=sysconfdir ;;
1240 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1241 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1242 sysconfdir=$ac_optarg ;;
1244 -target | --target | --targe | --targ | --tar | --ta | --t)
1245 ac_prev=target_alias ;;
1246 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1247 target_alias=$ac_optarg ;;
1249 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1252 -version | --version | --versio | --versi | --vers | -V)
1253 ac_init_version=: ;;
1256 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1257 # Reject names that are not valid shell variable names.
1258 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1259 as_fn_error $? "invalid package name: $ac_useropt"
1260 ac_useropt_orig=$ac_useropt
1261 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1262 case $ac_user_opts in
1266 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1267 ac_unrecognized_sep=', ';;
1269 eval with_$ac_useropt=\$ac_optarg ;;
1271 -without-* | --without-*)
1272 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1273 # Reject names that are not valid shell variable names.
1274 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1275 as_fn_error $? "invalid package name: $ac_useropt"
1276 ac_useropt_orig=$ac_useropt
1277 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1278 case $ac_user_opts in
1282 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1283 ac_unrecognized_sep=', ';;
1285 eval with_$ac_useropt=no ;;
1288 # Obsolete; use --with-x.
1291 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1292 | --x-incl | --x-inc | --x-in | --x-i)
1293 ac_prev=x_includes ;;
1294 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1295 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1296 x_includes=$ac_optarg ;;
1298 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1299 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1300 ac_prev=x_libraries ;;
1301 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1302 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1303 x_libraries=$ac_optarg ;;
1305 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1306 Try \`$0 --help' for more information"
1310 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1311 # Reject names that are not valid shell variable names.
1312 case $ac_envvar in #(
1313 '' | [0-9]* | *[!_$as_cr_alnum]* )
1314 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1316 eval $ac_envvar=\$ac_optarg
1317 export $ac_envvar ;;
1320 # FIXME: should be removed in autoconf 3.0.
1321 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1322 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1323 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1324 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1330 if test -n "$ac_prev"; then
1331 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1332 as_fn_error $? "missing argument to $ac_option"
1335 if test -n "$ac_unrecognized_opts"; then
1336 case $enable_option_checking in
1338 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1339 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1343 # Check all directory arguments for consistency.
1344 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1345 datadir sysconfdir sharedstatedir localstatedir includedir \
1346 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1347 libdir localedir mandir
1349 eval ac_val=\$$ac_var
1350 # Remove trailing slashes.
1353 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1354 eval $ac_var=\$ac_val;;
1356 # Be sure to have absolute directory names.
1358 [\\/$]* | ?:[\\/]* ) continue;;
1359 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1361 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1364 # There might be people who depend on the old broken behavior: `$host'
1365 # used to hold the argument of --host etc.
1366 # FIXME: To remove some day.
1369 target=$target_alias
1371 # FIXME: To remove some day.
1372 if test "x$host_alias" != x; then
1373 if test "x$build_alias" = x; then
1374 cross_compiling=maybe
1375 elif test "x$build_alias" != "x$host_alias"; then
1381 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1383 test "$silent" = yes && exec 6>/dev/null
1386 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1387 ac_ls_di=`ls -di .` &&
1388 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1389 as_fn_error $? "working directory cannot be determined"
1390 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1391 as_fn_error $? "pwd does not report name of working directory"
1394 # Find the source files, if location was not specified.
1395 if test -z "$srcdir"; then
1396 ac_srcdir_defaulted=yes
1397 # Try the directory containing this script, then the parent directory.
1398 ac_confdir=`$as_dirname -- "$as_myself" ||
1399 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1400 X"$as_myself" : 'X\(//\)[^/]' \| \
1401 X"$as_myself" : 'X\(//\)$' \| \
1402 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1403 $as_echo X"$as_myself" |
1404 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1422 if test ! -r "$srcdir/$ac_unique_file"; then
1426 ac_srcdir_defaulted=no
1428 if test ! -r "$srcdir/$ac_unique_file"; then
1429 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1430 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1432 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1434 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1436 # When building in place, set srcdir=.
1437 if test "$ac_abs_confdir" = "$ac_pwd"; then
1440 # Remove unnecessary trailing slashes from srcdir.
1441 # Double slashes in file names in object file debugging info
1442 # mess up M-x gdb in Emacs.
1444 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1446 for ac_var in $ac_precious_vars; do
1447 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1448 eval ac_env_${ac_var}_value=\$${ac_var}
1449 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1450 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1454 # Report the --help message.
1456 if test "$ac_init_help" = "long"; then
1457 # Omit some internal or obsolete options to make the list less imposing.
1458 # This message is too long to be a string in the A/UX 3.1 sh.
1460 \`configure' configures subversion 1.8.8 to adapt to many kinds of systems.
1462 Usage: $0 [OPTION]... [VAR=VALUE]...
1464 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1465 VAR=VALUE. See below for descriptions of some of the useful variables.
1467 Defaults for the options are specified in brackets.
1470 -h, --help display this help and exit
1471 --help=short display options specific to this package
1472 --help=recursive display the short help of all the included packages
1473 -V, --version display version information and exit
1474 -q, --quiet, --silent do not print \`checking ...' messages
1475 --cache-file=FILE cache test results in FILE [disabled]
1476 -C, --config-cache alias for \`--cache-file=config.cache'
1477 -n, --no-create do not create output files
1478 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1480 Installation directories:
1481 --prefix=PREFIX install architecture-independent files in PREFIX
1482 [$ac_default_prefix]
1483 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1486 By default, \`make install' will install all the files in
1487 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1488 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1489 for instance \`--prefix=\$HOME'.
1491 For better control, use the options below.
1493 Fine tuning of the installation directories:
1494 --bindir=DIR user executables [EPREFIX/bin]
1495 --sbindir=DIR system admin executables [EPREFIX/sbin]
1496 --libexecdir=DIR program executables [EPREFIX/libexec]
1497 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1498 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1499 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1500 --libdir=DIR object code libraries [EPREFIX/lib]
1501 --includedir=DIR C header files [PREFIX/include]
1502 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1503 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1504 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1505 --infodir=DIR info documentation [DATAROOTDIR/info]
1506 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1507 --mandir=DIR man documentation [DATAROOTDIR/man]
1508 --docdir=DIR documentation root [DATAROOTDIR/doc/subversion]
1509 --htmldir=DIR html documentation [DOCDIR]
1510 --dvidir=DIR dvi documentation [DOCDIR]
1511 --pdfdir=DIR pdf documentation [DOCDIR]
1512 --psdir=DIR ps documentation [DOCDIR]
1518 --build=BUILD configure for building on BUILD [guessed]
1519 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1520 --target=TARGET configure for building compilers for TARGET [HOST]
1524 if test -n "$ac_init_help"; then
1525 case $ac_init_help in
1526 short | recursive ) echo "Configuration of subversion 1.8.8:";;
1531 --disable-option-checking ignore unrecognized --enable/--with options
1532 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1533 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1534 --enable-sqlite-compatibility-version=X.Y.Z
1535 Allow binary to run against SQLite as old as ARG
1536 --enable-shared[=PKGS] build shared libraries [default=yes]
1537 --enable-static[=PKGS] build static libraries [default=yes]
1538 --enable-fast-install[=PKGS]
1539 optimize for fast installation [default=yes]
1540 --disable-libtool-lock avoid locking (might break parallel builds)
1541 --enable-experimental-libtool
1543 --enable-static Build static libraries
1544 --enable-shared Build shared libraries
1545 --enable-all-static Build completely static (standalone) binaries.
1546 --enable-local-library-preloading
1547 Enable preloading of locally built libraries in
1548 locally built executables. This may be necessary for
1549 testing prior to installation on some platforms. It
1550 does not work on some platforms (Darwin, OpenBSD,
1552 --enable-bdb6 Allow building against BDB 6+. See
1553 --with-berkeley-db for specifying the location of
1554 the Berkeley DB installation. Using BDB 6 will fail
1555 if this option is not used.
1556 --disable-keychain Disable use of Mac OS KeyChain for auth credentials
1557 --enable-ev2-impl Use Ev2 implementations, where available
1559 --disable-nls Disable gettext functionality
1560 --disable-plaintext-password-storage
1561 Disable on-disk caching of plaintext passwords and
1562 passphrases. (Leaving this functionality enabled
1563 will not force Subversion to store passwords in
1564 plaintext, but does permit users to explicitly allow
1565 that behavior via runtime configuration.)
1566 --enable-debug Turn on debugging
1567 --enable-optimize Turn on optimizations
1568 --enable-disallowing-of-undefined-references
1569 Use -Wl,--no-undefined flag during linking of some
1570 libraries to disallow undefined references
1571 --enable-maintainer-mode
1572 Turn on debugging and very strict compile-time
1574 --disable-full-version-match
1575 Disable the full version match rules when checking
1576 Subversion library compatibility.
1577 --enable-mod-activation Enable mod_dav_svn in httpd.conf
1578 --enable-gcov Turn on gcov coverage testing (GCC only).
1579 --enable-gprof Produce gprof profiling data in 'gmon.out' (GCC
1581 --enable-runtime-module-search
1582 Turn on dynamic loading of RA/FS libraries including
1583 third-party FS libraries
1584 --enable-javahl Enable compilation of Java high-level bindings
1588 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1589 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1590 --with-apr=PATH prefix for installed APR, path to APR build tree,
1591 or the full path to apr-config
1592 --with-apr-util=PATH prefix for installed APU, path to APU build tree,
1593 or the full path to apu-config
1594 --with-serf=PREFIX Serf HTTP client library (enabled by default if
1596 --with-apr_memcache=PREFIX
1597 Standalone apr_memcache client library
1598 --with-apxs[=FILE] Build shared Apache modules. FILE is the optional
1599 pathname to the Apache apxs tool; defaults to
1601 --with-apache-libexecdir[=PATH]
1602 Install Apache modules to Apache's configured
1603 modules directory instead of LIBEXECDIR; if PATH is
1604 given, install to PATH.
1605 --with-sqlite=PREFIX Use installed SQLite library or amalgamation file.
1606 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1608 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1609 --with-sysroot=DIR Search for dependent libraries within DIR
1610 (or the compiler's sysroot if not specified).
1611 --with-trang=PATH Specify the command to run the trang schema
1613 --with-doxygen=PATH Specify the command to run doxygen
1614 --with-expat=INCLUDES:LIB_SEARCH_DIRS:LIBS
1615 Specify location of Expat
1616 --with-berkeley-db[=HEADER:INCLUDES:LIB_SEARCH_DIRS:LIBS]
1617 The Subversion Berkeley DB based filesystem library
1618 requires Berkeley DB $db_version or $db_alt_version.
1619 If you specify `--without-berkeley-db', that library
1620 will not be built. If you omit the argument of this
1621 option completely, the configure script will use
1622 Berkeley DB used by APR-UTIL.
1623 --with-sasl=PATH Compile with libsasl2 in PATH
1624 --without-gpg-agent Disable support for GPG-Agent
1625 --with-gnome-keyring Enable use of GNOME Keyring for auth credentials
1626 (enabled by default if found)
1627 --with-libmagic=PREFIX libmagic filetype detection library
1628 --with-kwallet[=PATH] Enable use of KWallet (KDE 4) for auth credentials
1629 --with-openssl This option does NOT affect the Subversion build
1630 process in any way. It tells an integrated Serf HTTP
1631 client library build process where to locate the
1632 OpenSSL library when (and only when) building Serf
1633 as an integrated part of the Subversion build
1634 process. When linking to a previously installed
1635 version of Serf instead, you do not need to use this
1637 --with-editor=PATH Specify a default editor for the subversion client.
1638 --with-zlib=PREFIX zlib compression library
1639 --with-jdk=PATH Try to use 'PATH/include' to find the JNI headers.
1640 If PATH is not specified, look for a Java
1641 Development Kit at JAVA_HOME.
1642 --with-jikes=PATH Specify the path to a jikes binary to use it as your
1643 Java compiler. The default is to look for jikes
1644 (PATH optional). This behavior can be switched off
1646 --with-swig=PATH Try to use 'PATH/bin/swig' to build the swig
1647 bindings. If PATH is not specified, look for a
1648 'swig' binary in your PATH.
1649 --with-ruby-sitedir=SITEDIR
1650 install Ruby bindings in SITEDIR (default is same as
1652 --with-ruby-test-verbose=LEVEL
1653 how to use output level for Ruby bindings tests
1655 --with-ctypesgen=PATH Specify the path to ctypesgen. This can either be
1656 the full path to a ctypesgen installation, the full
1657 path to a ctypesgen source tree or the full path to
1659 --with-junit=PATH Specify a path to the junit JAR file.
1661 Some influential environment variables:
1662 CC C compiler command
1663 CFLAGS C compiler flags
1664 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1665 nonstandard directory <lib dir>
1666 LIBS libraries to pass to the linker, e.g. -l<library>
1667 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1668 you have headers in a nonstandard directory <include dir>
1669 CXX C++ compiler command
1670 CXXFLAGS C++ compiler flags
1672 CXXCPP C++ preprocessor
1674 Use these variables to override the choices made by `configure' or to help
1675 it to find libraries and programs with nonstandard names/locations.
1677 Report bugs to <http://subversion.apache.org/>.
1682 if test "$ac_init_help" = "recursive"; then
1683 # If there are subdirs, report their specific --help.
1684 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1685 test -d "$ac_dir" ||
1686 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1691 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1693 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1694 # A ".." for each directory in $ac_dir_suffix.
1695 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1696 case $ac_top_builddir_sub in
1697 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1698 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1701 ac_abs_top_builddir=$ac_pwd
1702 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1703 # for backward compatibility:
1704 ac_top_builddir=$ac_top_build_prefix
1707 .) # We are building in place.
1709 ac_top_srcdir=$ac_top_builddir_sub
1710 ac_abs_top_srcdir=$ac_pwd ;;
1711 [\\/]* | ?:[\\/]* ) # Absolute name.
1712 ac_srcdir=$srcdir$ac_dir_suffix;
1713 ac_top_srcdir=$srcdir
1714 ac_abs_top_srcdir=$srcdir ;;
1716 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1717 ac_top_srcdir=$ac_top_build_prefix$srcdir
1718 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1720 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1722 cd "$ac_dir" || { ac_status=$?; continue; }
1723 # Check for guested configure.
1724 if test -f "$ac_srcdir/configure.gnu"; then
1726 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1727 elif test -f "$ac_srcdir/configure"; then
1729 $SHELL "$ac_srcdir/configure" --help=recursive
1731 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1733 cd "$ac_pwd" || { ac_status=$?; break; }
1737 test -n "$ac_init_help" && exit $ac_status
1738 if $ac_init_version; then
1740 subversion configure 1.8.8
1741 generated by GNU Autoconf 2.69
1743 Copyright (C) 2012 Free Software Foundation, Inc.
1744 This configure script is free software; the Free Software Foundation
1745 gives unlimited permission to copy, distribute and modify it.
1750 ## ------------------------ ##
1751 ## Autoconf initialization. ##
1752 ## ------------------------ ##
1754 # ac_fn_c_try_compile LINENO
1755 # --------------------------
1756 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1757 ac_fn_c_try_compile ()
1759 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1760 rm -f conftest.$ac_objext
1761 if { { ac_try="$ac_compile"
1763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1764 *) ac_try_echo=$ac_try;;
1766 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1767 $as_echo "$ac_try_echo"; } >&5
1768 (eval "$ac_compile") 2>conftest.err
1770 if test -s conftest.err; then
1771 grep -v '^ *+' conftest.err >conftest.er1
1772 cat conftest.er1 >&5
1773 mv -f conftest.er1 conftest.err
1775 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1776 test $ac_status = 0; } && {
1777 test -z "$ac_c_werror_flag" ||
1778 test ! -s conftest.err
1779 } && test -s conftest.$ac_objext; then :
1782 $as_echo "$as_me: failed program was:" >&5
1783 sed 's/^/| /' conftest.$ac_ext >&5
1787 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1788 as_fn_set_status $ac_retval
1790 } # ac_fn_c_try_compile
1792 # ac_fn_cxx_try_compile LINENO
1793 # ----------------------------
1794 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1795 ac_fn_cxx_try_compile ()
1797 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1798 rm -f conftest.$ac_objext
1799 if { { ac_try="$ac_compile"
1801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1802 *) ac_try_echo=$ac_try;;
1804 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1805 $as_echo "$ac_try_echo"; } >&5
1806 (eval "$ac_compile") 2>conftest.err
1808 if test -s conftest.err; then
1809 grep -v '^ *+' conftest.err >conftest.er1
1810 cat conftest.er1 >&5
1811 mv -f conftest.er1 conftest.err
1813 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1814 test $ac_status = 0; } && {
1815 test -z "$ac_cxx_werror_flag" ||
1816 test ! -s conftest.err
1817 } && test -s conftest.$ac_objext; then :
1820 $as_echo "$as_me: failed program was:" >&5
1821 sed 's/^/| /' conftest.$ac_ext >&5
1825 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1826 as_fn_set_status $ac_retval
1828 } # ac_fn_cxx_try_compile
1830 # ac_fn_c_try_cpp LINENO
1831 # ----------------------
1832 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1835 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1836 if { { ac_try="$ac_cpp conftest.$ac_ext"
1838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1839 *) ac_try_echo=$ac_try;;
1841 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1842 $as_echo "$ac_try_echo"; } >&5
1843 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1845 if test -s conftest.err; then
1846 grep -v '^ *+' conftest.err >conftest.er1
1847 cat conftest.er1 >&5
1848 mv -f conftest.er1 conftest.err
1850 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1851 test $ac_status = 0; } > conftest.i && {
1852 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1853 test ! -s conftest.err
1857 $as_echo "$as_me: failed program was:" >&5
1858 sed 's/^/| /' conftest.$ac_ext >&5
1862 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1863 as_fn_set_status $ac_retval
1867 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1868 # -------------------------------------------------------
1869 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1870 # the include files in INCLUDES and setting the cache variable VAR
1872 ac_fn_c_check_header_mongrel ()
1874 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1875 if eval \${$3+:} false; then :
1876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1877 $as_echo_n "checking for $2... " >&6; }
1878 if eval \${$3+:} false; then :
1879 $as_echo_n "(cached) " >&6
1882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1883 $as_echo "$ac_res" >&6; }
1885 # Is the header compilable?
1886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1887 $as_echo_n "checking $2 usability... " >&6; }
1888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1889 /* end confdefs.h. */
1893 if ac_fn_c_try_compile "$LINENO"; then :
1894 ac_header_compiler=yes
1896 ac_header_compiler=no
1898 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1900 $as_echo "$ac_header_compiler" >&6; }
1902 # Is the header present?
1903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1904 $as_echo_n "checking $2 presence... " >&6; }
1905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1906 /* end confdefs.h. */
1909 if ac_fn_c_try_cpp "$LINENO"; then :
1910 ac_header_preproc=yes
1912 ac_header_preproc=no
1914 rm -f conftest.err conftest.i conftest.$ac_ext
1915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1916 $as_echo "$ac_header_preproc" >&6; }
1918 # So? What about this header?
1919 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1921 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1922 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1923 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1924 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1927 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1928 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1929 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1930 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1931 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1932 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1933 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1934 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1935 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1936 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1937 ( $as_echo "## -------------------------------------------- ##
1938 ## Report this to http://subversion.apache.org/ ##
1939 ## -------------------------------------------- ##"
1940 ) | sed "s/^/$as_me: WARNING: /" >&2
1943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1944 $as_echo_n "checking for $2... " >&6; }
1945 if eval \${$3+:} false; then :
1946 $as_echo_n "(cached) " >&6
1948 eval "$3=\$ac_header_compiler"
1951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1952 $as_echo "$ac_res" >&6; }
1954 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1956 } # ac_fn_c_check_header_mongrel
1958 # ac_fn_c_try_run LINENO
1959 # ----------------------
1960 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1961 # that executables *can* be run.
1964 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1965 if { { ac_try="$ac_link"
1967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1968 *) ac_try_echo=$ac_try;;
1970 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1971 $as_echo "$ac_try_echo"; } >&5
1972 (eval "$ac_link") 2>&5
1974 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1975 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1976 { { case "(($ac_try" in
1977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1978 *) ac_try_echo=$ac_try;;
1980 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1981 $as_echo "$ac_try_echo"; } >&5
1982 (eval "$ac_try") 2>&5
1984 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1985 test $ac_status = 0; }; }; then :
1988 $as_echo "$as_me: program exited with status $ac_status" >&5
1989 $as_echo "$as_me: failed program was:" >&5
1990 sed 's/^/| /' conftest.$ac_ext >&5
1992 ac_retval=$ac_status
1994 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1995 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1996 as_fn_set_status $ac_retval
2000 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2001 # -------------------------------------------------------
2002 # Tests whether HEADER exists and can be compiled using the include files in
2003 # INCLUDES, setting the cache variable VAR accordingly.
2004 ac_fn_c_check_header_compile ()
2006 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2008 $as_echo_n "checking for $2... " >&6; }
2009 if eval \${$3+:} false; then :
2010 $as_echo_n "(cached) " >&6
2012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2013 /* end confdefs.h. */
2017 if ac_fn_c_try_compile "$LINENO"; then :
2022 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2026 $as_echo "$ac_res" >&6; }
2027 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2029 } # ac_fn_c_check_header_compile
2031 # ac_fn_c_try_link LINENO
2032 # -----------------------
2033 # Try to link conftest.$ac_ext, and return whether this succeeded.
2036 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2037 rm -f conftest.$ac_objext conftest$ac_exeext
2038 if { { ac_try="$ac_link"
2040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2041 *) ac_try_echo=$ac_try;;
2043 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2044 $as_echo "$ac_try_echo"; } >&5
2045 (eval "$ac_link") 2>conftest.err
2047 if test -s conftest.err; then
2048 grep -v '^ *+' conftest.err >conftest.er1
2049 cat conftest.er1 >&5
2050 mv -f conftest.er1 conftest.err
2052 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2053 test $ac_status = 0; } && {
2054 test -z "$ac_c_werror_flag" ||
2055 test ! -s conftest.err
2056 } && test -s conftest$ac_exeext && {
2057 test "$cross_compiling" = yes ||
2058 test -x conftest$ac_exeext
2062 $as_echo "$as_me: failed program was:" >&5
2063 sed 's/^/| /' conftest.$ac_ext >&5
2067 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2068 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2069 # interfere with the next link command; also delete a directory that is
2070 # left behind by Apple's compiler. We do this before executing the actions.
2071 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2072 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2073 as_fn_set_status $ac_retval
2075 } # ac_fn_c_try_link
2077 # ac_fn_c_check_func LINENO FUNC VAR
2078 # ----------------------------------
2079 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2080 ac_fn_c_check_func ()
2082 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2084 $as_echo_n "checking for $2... " >&6; }
2085 if eval \${$3+:} false; then :
2086 $as_echo_n "(cached) " >&6
2088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2089 /* end confdefs.h. */
2090 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2091 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2092 #define $2 innocuous_$2
2094 /* System header to define __stub macros and hopefully few prototypes,
2095 which can conflict with char $2 (); below.
2096 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2097 <limits.h> exists even on freestanding compilers. */
2100 # include <limits.h>
2102 # include <assert.h>
2107 /* Override any GCC internal prototype to avoid an error.
2108 Use char because int might match the return type of a GCC
2109 builtin and then its argument prototype would still apply. */
2114 /* The GNU C library defines this for functions which it implements
2115 to always fail with ENOSYS. Some functions are actually named
2116 something starting with __ and the normal name is an alias. */
2117 #if defined __stub_$2 || defined __stub___$2
2129 if ac_fn_c_try_link "$LINENO"; then :
2134 rm -f core conftest.err conftest.$ac_objext \
2135 conftest$ac_exeext conftest.$ac_ext
2138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2139 $as_echo "$ac_res" >&6; }
2140 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2142 } # ac_fn_c_check_func
2144 # ac_fn_cxx_try_cpp LINENO
2145 # ------------------------
2146 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2147 ac_fn_cxx_try_cpp ()
2149 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2150 if { { ac_try="$ac_cpp conftest.$ac_ext"
2152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2153 *) ac_try_echo=$ac_try;;
2155 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2156 $as_echo "$ac_try_echo"; } >&5
2157 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2159 if test -s conftest.err; then
2160 grep -v '^ *+' conftest.err >conftest.er1
2161 cat conftest.er1 >&5
2162 mv -f conftest.er1 conftest.err
2164 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2165 test $ac_status = 0; } > conftest.i && {
2166 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2167 test ! -s conftest.err
2171 $as_echo "$as_me: failed program was:" >&5
2172 sed 's/^/| /' conftest.$ac_ext >&5
2176 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2177 as_fn_set_status $ac_retval
2179 } # ac_fn_cxx_try_cpp
2181 # ac_fn_cxx_try_link LINENO
2182 # -------------------------
2183 # Try to link conftest.$ac_ext, and return whether this succeeded.
2184 ac_fn_cxx_try_link ()
2186 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2187 rm -f conftest.$ac_objext conftest$ac_exeext
2188 if { { ac_try="$ac_link"
2190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2191 *) ac_try_echo=$ac_try;;
2193 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2194 $as_echo "$ac_try_echo"; } >&5
2195 (eval "$ac_link") 2>conftest.err
2197 if test -s conftest.err; then
2198 grep -v '^ *+' conftest.err >conftest.er1
2199 cat conftest.er1 >&5
2200 mv -f conftest.er1 conftest.err
2202 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2203 test $ac_status = 0; } && {
2204 test -z "$ac_cxx_werror_flag" ||
2205 test ! -s conftest.err
2206 } && test -s conftest$ac_exeext && {
2207 test "$cross_compiling" = yes ||
2208 test -x conftest$ac_exeext
2212 $as_echo "$as_me: failed program was:" >&5
2213 sed 's/^/| /' conftest.$ac_ext >&5
2217 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2218 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2219 # interfere with the next link command; also delete a directory that is
2220 # left behind by Apple's compiler. We do this before executing the actions.
2221 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2222 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2223 as_fn_set_status $ac_retval
2225 } # ac_fn_cxx_try_link
2227 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2228 # -------------------------------------------
2229 # Tests whether TYPE exists after having included INCLUDES, setting cache
2230 # variable VAR accordingly.
2231 ac_fn_c_check_type ()
2233 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2235 $as_echo_n "checking for $2... " >&6; }
2236 if eval \${$3+:} false; then :
2237 $as_echo_n "(cached) " >&6
2240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2241 /* end confdefs.h. */
2252 if ac_fn_c_try_compile "$LINENO"; then :
2253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2254 /* end confdefs.h. */
2265 if ac_fn_c_try_compile "$LINENO"; then :
2270 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2272 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2276 $as_echo "$ac_res" >&6; }
2277 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2279 } # ac_fn_c_check_type
2280 cat >config.log <<_ACEOF
2281 This file contains any messages produced by compilers while
2282 running configure, to aid debugging if configure makes a mistake.
2284 It was created by subversion $as_me 1.8.8, which was
2285 generated by GNU Autoconf 2.69. Invocation command line was
2297 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2298 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2299 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2300 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2301 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2303 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2304 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2306 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2307 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2308 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2309 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2310 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2311 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2312 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2320 test -z "$as_dir" && as_dir=.
2321 $as_echo "PATH: $as_dir"
2337 # Keep a trace of the command line.
2338 # Strip out --no-create and --no-recursion so they do not pile up.
2339 # Strip out --silent because we don't want to record it for future runs.
2340 # Also quote any args containing shell meta-characters.
2341 # Make two passes to allow for proper duplicate-argument suppression.
2345 ac_must_keep_next=false
2351 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2352 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2353 | -silent | --silent | --silen | --sile | --sil)
2356 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2359 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2361 as_fn_append ac_configure_args1 " '$ac_arg'"
2362 if test $ac_must_keep_next = true; then
2363 ac_must_keep_next=false # Got value, back to normal.
2366 *=* | --config-cache | -C | -disable-* | --disable-* \
2367 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2368 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2369 | -with-* | --with-* | -without-* | --without-* | --x)
2370 case "$ac_configure_args0 " in
2371 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2374 -* ) ac_must_keep_next=true ;;
2377 as_fn_append ac_configure_args " '$ac_arg'"
2382 { ac_configure_args0=; unset ac_configure_args0;}
2383 { ac_configure_args1=; unset ac_configure_args1;}
2385 # When interrupted or exit'd, cleanup temporary files, and complete
2386 # config.log. We remove comments because anyway the quotes in there
2387 # would cause problems or look ugly.
2388 # WARNING: Use '\'' to represent an apostrophe within the trap.
2389 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2390 trap 'exit_status=$?
2391 # Save into config.log some information that might help in debugging.
2395 $as_echo "## ---------------- ##
2396 ## Cache variables. ##
2397 ## ---------------- ##"
2399 # The following way of writing the cache mishandles newlines in values,
2401 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2402 eval ac_val=\$$ac_var
2406 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2407 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2410 _ | IFS | as_nl) ;; #(
2411 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2412 *) { eval $ac_var=; unset $ac_var;} ;;
2417 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2418 *${as_nl}ac_space=\ *)
2420 "s/'\''/'\''\\\\'\'''\''/g;
2421 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2424 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2431 $as_echo "## ----------------- ##
2432 ## Output variables. ##
2433 ## ----------------- ##"
2435 for ac_var in $ac_subst_vars
2437 eval ac_val=\$$ac_var
2439 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2441 $as_echo "$ac_var='\''$ac_val'\''"
2445 if test -n "$ac_subst_files"; then
2446 $as_echo "## ------------------- ##
2447 ## File substitutions. ##
2448 ## ------------------- ##"
2450 for ac_var in $ac_subst_files
2452 eval ac_val=\$$ac_var
2454 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2456 $as_echo "$ac_var='\''$ac_val'\''"
2461 if test -s confdefs.h; then
2462 $as_echo "## ----------- ##
2469 test "$ac_signal" != 0 &&
2470 $as_echo "$as_me: caught signal $ac_signal"
2471 $as_echo "$as_me: exit $exit_status"
2473 rm -f core *.core core.conftest.* &&
2474 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2477 for ac_signal in 1 2 13 15; do
2478 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2482 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2483 rm -f -r conftest* confdefs.h
2485 $as_echo "/* confdefs.h */" > confdefs.h
2487 # Predefined preprocessor variables.
2489 cat >>confdefs.h <<_ACEOF
2490 #define PACKAGE_NAME "$PACKAGE_NAME"
2493 cat >>confdefs.h <<_ACEOF
2494 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2497 cat >>confdefs.h <<_ACEOF
2498 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2501 cat >>confdefs.h <<_ACEOF
2502 #define PACKAGE_STRING "$PACKAGE_STRING"
2505 cat >>confdefs.h <<_ACEOF
2506 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2509 cat >>confdefs.h <<_ACEOF
2510 #define PACKAGE_URL "$PACKAGE_URL"
2514 # Let the site file select an alternate cache file if it wants to.
2515 # Prefer an explicitly selected file to automatically selected ones.
2518 if test -n "$CONFIG_SITE"; then
2519 # We do not want a PATH search for config.site.
2520 case $CONFIG_SITE in #((
2521 -*) ac_site_file1=./$CONFIG_SITE;;
2522 */*) ac_site_file1=$CONFIG_SITE;;
2523 *) ac_site_file1=./$CONFIG_SITE;;
2525 elif test "x$prefix" != xNONE; then
2526 ac_site_file1=$prefix/share/config.site
2527 ac_site_file2=$prefix/etc/config.site
2529 ac_site_file1=$ac_default_prefix/share/config.site
2530 ac_site_file2=$ac_default_prefix/etc/config.site
2532 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2534 test "x$ac_site_file" = xNONE && continue
2535 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2536 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2537 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2538 sed 's/^/| /' "$ac_site_file" >&5
2540 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2541 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2542 as_fn_error $? "failed to load site script $ac_site_file
2543 See \`config.log' for more details" "$LINENO" 5; }
2547 if test -r "$cache_file"; then
2548 # Some versions of bash will fail to source /dev/null (special files
2549 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2550 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2551 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2552 $as_echo "$as_me: loading cache $cache_file" >&6;}
2554 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2555 *) . "./$cache_file";;
2559 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2560 $as_echo "$as_me: creating cache $cache_file" >&6;}
2564 # Check that the precious variables saved in the cache have kept the same
2566 ac_cache_corrupted=false
2567 for ac_var in $ac_precious_vars; do
2568 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2569 eval ac_new_set=\$ac_env_${ac_var}_set
2570 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2571 eval ac_new_val=\$ac_env_${ac_var}_value
2572 case $ac_old_set,$ac_new_set in
2574 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2575 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2576 ac_cache_corrupted=: ;;
2578 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2579 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2580 ac_cache_corrupted=: ;;
2583 if test "x$ac_old_val" != "x$ac_new_val"; then
2584 # differences in whitespace do not lead to failure.
2585 ac_old_val_w=`echo x $ac_old_val`
2586 ac_new_val_w=`echo x $ac_new_val`
2587 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2588 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2589 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2590 ac_cache_corrupted=:
2592 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2593 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2594 eval $ac_var=\$ac_old_val
2596 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2597 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2598 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2599 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2602 # Pass precious variables to config.status.
2603 if test "$ac_new_set" = set; then
2605 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2606 *) ac_arg=$ac_var=$ac_new_val ;;
2608 case " $ac_configure_args " in
2609 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2610 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2614 if $ac_cache_corrupted; then
2615 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2616 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2617 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2618 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2619 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2621 ## -------------------- ##
2622 ## Main body of script. ##
2623 ## -------------------- ##
2626 ac_cpp='$CPP $CPPFLAGS'
2627 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2628 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2629 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2635 for ac_dir in build "$srcdir"/build; do
2636 if test -f "$ac_dir/install-sh"; then
2638 ac_install_sh="$ac_aux_dir/install-sh -c"
2640 elif test -f "$ac_dir/install.sh"; then
2642 ac_install_sh="$ac_aux_dir/install.sh -c"
2644 elif test -f "$ac_dir/shtool"; then
2646 ac_install_sh="$ac_aux_dir/shtool install -c"
2650 if test -z "$ac_aux_dir"; then
2651 as_fn_error $? "cannot find install-sh, install.sh, or shtool in build \"$srcdir\"/build" "$LINENO" 5
2654 # These three variables are undocumented and unsupported,
2655 # and are intended to be withdrawn in a future Autoconf release.
2656 # They can cause serious problems if a builder's source tree is in a directory
2657 # whose full name contains unusual characters.
2658 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2659 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2660 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2664 { $as_echo "$as_me:${as_lineno-$LINENO}: Configuring Subversion 1.8.8" >&5
2665 $as_echo "$as_me: Configuring Subversion 1.8.8" >&6;}
2667 abs_srcdir="`cd $srcdir && pwd`"
2669 abs_builddir="`pwd`"
2671 if test "$abs_srcdir" = "$abs_builddir"; then
2672 canonicalized_srcdir=""
2674 canonicalized_srcdir="$srcdir/"
2678 SWIG_LDFLAGS="$LDFLAGS"
2681 # Generate config.nice early (before the arguments are munged)
2683 { $as_echo "$as_me:${as_lineno-$LINENO}: creating config.nice" >&5
2684 $as_echo "$as_me: creating config.nice" >&6;}
2685 # This little dance satisfies Cygwin, which cannot overwrite in-use files.
2686 if test -f "config.nice"; then
2687 mv "config.nice" "config.nice.old"
2690 cat >"config.nice" <<EOF
2693 # Created by configure
2695 '$0' $ac_configure_args "\$@"
2698 chmod +x "config.nice"
2699 rm -f "config.nice.old"
2702 # ==== Check for programs ====================================================
2704 # Look for a C compiler (before anything can set CFLAGS)
2705 CMAINTAINERFLAGS="$CUSERFLAGS"
2706 CUSERFLAGS="$CFLAGS"
2708 ac_cpp='$CPP $CPPFLAGS'
2709 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2710 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2711 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2712 if test -n "$ac_tool_prefix"; then
2713 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2714 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2716 $as_echo_n "checking for $ac_word... " >&6; }
2717 if ${ac_cv_prog_CC+:} false; then :
2718 $as_echo_n "(cached) " >&6
2720 if test -n "$CC"; then
2721 ac_cv_prog_CC="$CC" # Let the user override the test.
2723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2727 test -z "$as_dir" && as_dir=.
2728 for ac_exec_ext in '' $ac_executable_extensions; do
2729 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2730 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2731 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2741 if test -n "$CC"; then
2742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2743 $as_echo "$CC" >&6; }
2745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2746 $as_echo "no" >&6; }
2751 if test -z "$ac_cv_prog_CC"; then
2753 # Extract the first word of "gcc", so it can be a program name with args.
2754 set dummy gcc; ac_word=$2
2755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2756 $as_echo_n "checking for $ac_word... " >&6; }
2757 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2758 $as_echo_n "(cached) " >&6
2760 if test -n "$ac_ct_CC"; then
2761 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2767 test -z "$as_dir" && as_dir=.
2768 for ac_exec_ext in '' $ac_executable_extensions; do
2769 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2770 ac_cv_prog_ac_ct_CC="gcc"
2771 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2780 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2781 if test -n "$ac_ct_CC"; then
2782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2783 $as_echo "$ac_ct_CC" >&6; }
2785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2786 $as_echo "no" >&6; }
2789 if test "x$ac_ct_CC" = x; then
2792 case $cross_compiling:$ac_tool_warned in
2794 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2795 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2796 ac_tool_warned=yes ;;
2804 if test -z "$CC"; then
2805 if test -n "$ac_tool_prefix"; then
2806 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2807 set dummy ${ac_tool_prefix}cc; ac_word=$2
2808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2809 $as_echo_n "checking for $ac_word... " >&6; }
2810 if ${ac_cv_prog_CC+:} false; then :
2811 $as_echo_n "(cached) " >&6
2813 if test -n "$CC"; then
2814 ac_cv_prog_CC="$CC" # Let the user override the test.
2816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2820 test -z "$as_dir" && as_dir=.
2821 for ac_exec_ext in '' $ac_executable_extensions; do
2822 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2823 ac_cv_prog_CC="${ac_tool_prefix}cc"
2824 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2834 if test -n "$CC"; then
2835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2836 $as_echo "$CC" >&6; }
2838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2839 $as_echo "no" >&6; }
2845 if test -z "$CC"; then
2846 # Extract the first word of "cc", so it can be a program name with args.
2847 set dummy cc; ac_word=$2
2848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2849 $as_echo_n "checking for $ac_word... " >&6; }
2850 if ${ac_cv_prog_CC+:} false; then :
2851 $as_echo_n "(cached) " >&6
2853 if test -n "$CC"; then
2854 ac_cv_prog_CC="$CC" # Let the user override the test.
2857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2861 test -z "$as_dir" && as_dir=.
2862 for ac_exec_ext in '' $ac_executable_extensions; do
2863 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2864 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2865 ac_prog_rejected=yes
2869 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2876 if test $ac_prog_rejected = yes; then
2877 # We found a bogon in the path, so make sure we never use it.
2878 set dummy $ac_cv_prog_CC
2880 if test $# != 0; then
2881 # We chose a different compiler from the bogus one.
2882 # However, it has the same basename, so the bogon will be chosen
2883 # first if we set CC to just the basename; use the full file name.
2885 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2891 if test -n "$CC"; then
2892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2893 $as_echo "$CC" >&6; }
2895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2896 $as_echo "no" >&6; }
2901 if test -z "$CC"; then
2902 if test -n "$ac_tool_prefix"; then
2903 for ac_prog in cl.exe
2905 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2906 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2908 $as_echo_n "checking for $ac_word... " >&6; }
2909 if ${ac_cv_prog_CC+:} false; then :
2910 $as_echo_n "(cached) " >&6
2912 if test -n "$CC"; then
2913 ac_cv_prog_CC="$CC" # Let the user override the test.
2915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2919 test -z "$as_dir" && as_dir=.
2920 for ac_exec_ext in '' $ac_executable_extensions; do
2921 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2922 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2923 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2933 if test -n "$CC"; then
2934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2935 $as_echo "$CC" >&6; }
2937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2938 $as_echo "no" >&6; }
2942 test -n "$CC" && break
2945 if test -z "$CC"; then
2947 for ac_prog in cl.exe
2949 # Extract the first word of "$ac_prog", so it can be a program name with args.
2950 set dummy $ac_prog; ac_word=$2
2951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2952 $as_echo_n "checking for $ac_word... " >&6; }
2953 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2954 $as_echo_n "(cached) " >&6
2956 if test -n "$ac_ct_CC"; then
2957 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2959 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2963 test -z "$as_dir" && as_dir=.
2964 for ac_exec_ext in '' $ac_executable_extensions; do
2965 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2966 ac_cv_prog_ac_ct_CC="$ac_prog"
2967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2976 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2977 if test -n "$ac_ct_CC"; then
2978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2979 $as_echo "$ac_ct_CC" >&6; }
2981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2982 $as_echo "no" >&6; }
2986 test -n "$ac_ct_CC" && break
2989 if test "x$ac_ct_CC" = x; then
2992 case $cross_compiling:$ac_tool_warned in
2994 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2995 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2996 ac_tool_warned=yes ;;
3005 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3006 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3007 as_fn_error $? "no acceptable C compiler found in \$PATH
3008 See \`config.log' for more details" "$LINENO" 5; }
3010 # Provide some information about the compiler.
3011 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3014 for ac_option in --version -v -V -qversion; do
3015 { { ac_try="$ac_compiler $ac_option >&5"
3017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3018 *) ac_try_echo=$ac_try;;
3020 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3021 $as_echo "$ac_try_echo"; } >&5
3022 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3024 if test -s conftest.err; then
3026 ... rest of stderr output deleted ...
3027 10q' conftest.err >conftest.er1
3028 cat conftest.er1 >&5
3030 rm -f conftest.er1 conftest.err
3031 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3032 test $ac_status = 0; }
3035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3036 /* end confdefs.h. */
3046 ac_clean_files_save=$ac_clean_files
3047 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3048 # Try to create an executable without -o first, disregard a.out.
3049 # It will help us diagnose broken compilers, and finding out an intuition
3051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3052 $as_echo_n "checking whether the C compiler works... " >&6; }
3053 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3055 # The possible output files:
3056 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3059 for ac_file in $ac_files
3062 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3063 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3068 if { { ac_try="$ac_link_default"
3070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3071 *) ac_try_echo=$ac_try;;
3073 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3074 $as_echo "$ac_try_echo"; } >&5
3075 (eval "$ac_link_default") 2>&5
3077 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3078 test $ac_status = 0; }; then :
3079 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3080 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3081 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3082 # so that the user can short-circuit this test for compilers unknown to
3084 for ac_file in $ac_files ''
3086 test -f "$ac_file" || continue
3088 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3091 # We found the default executable, but exeext='' is most
3095 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3097 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3099 # We set ac_cv_exeext here because the later test for it is not
3100 # safe: cross compilers may not add the suffix if given an `-o'
3101 # argument, so we may need to know it at that point already.
3102 # Even if this section looks crufty: it has the advantage of
3109 test "$ac_cv_exeext" = no && ac_cv_exeext=
3114 if test -z "$ac_file"; then :
3115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3116 $as_echo "no" >&6; }
3117 $as_echo "$as_me: failed program was:" >&5
3118 sed 's/^/| /' conftest.$ac_ext >&5
3120 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3121 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3122 as_fn_error 77 "C compiler cannot create executables
3123 See \`config.log' for more details" "$LINENO" 5; }
3125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3126 $as_echo "yes" >&6; }
3128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3129 $as_echo_n "checking for C compiler default output file name... " >&6; }
3130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3131 $as_echo "$ac_file" >&6; }
3132 ac_exeext=$ac_cv_exeext
3134 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3135 ac_clean_files=$ac_clean_files_save
3136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3137 $as_echo_n "checking for suffix of executables... " >&6; }
3138 if { { ac_try="$ac_link"
3140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3141 *) ac_try_echo=$ac_try;;
3143 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3144 $as_echo "$ac_try_echo"; } >&5
3145 (eval "$ac_link") 2>&5
3147 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3148 test $ac_status = 0; }; then :
3149 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3150 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3151 # work properly (i.e., refer to `conftest.exe'), while it won't with
3153 for ac_file in conftest.exe conftest conftest.*; do
3154 test -f "$ac_file" || continue
3156 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3157 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3163 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3164 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3165 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3166 See \`config.log' for more details" "$LINENO" 5; }
3168 rm -f conftest conftest$ac_cv_exeext
3169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3170 $as_echo "$ac_cv_exeext" >&6; }
3172 rm -f conftest.$ac_ext
3173 EXEEXT=$ac_cv_exeext
3175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3176 /* end confdefs.h. */
3181 FILE *f = fopen ("conftest.out", "w");
3182 return ferror (f) || fclose (f) != 0;
3188 ac_clean_files="$ac_clean_files conftest.out"
3189 # Check that the compiler produces executables we can run. If not, either
3190 # the compiler is broken, or we cross compile.
3191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3192 $as_echo_n "checking whether we are cross compiling... " >&6; }
3193 if test "$cross_compiling" != yes; then
3194 { { ac_try="$ac_link"
3196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3197 *) ac_try_echo=$ac_try;;
3199 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3200 $as_echo "$ac_try_echo"; } >&5
3201 (eval "$ac_link") 2>&5
3203 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3204 test $ac_status = 0; }
3205 if { ac_try='./conftest$ac_cv_exeext'
3206 { { case "(($ac_try" in
3207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3208 *) ac_try_echo=$ac_try;;
3210 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3211 $as_echo "$ac_try_echo"; } >&5
3212 (eval "$ac_try") 2>&5
3214 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3215 test $ac_status = 0; }; }; then
3218 if test "$cross_compiling" = maybe; then
3221 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3222 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3223 as_fn_error $? "cannot run C compiled programs.
3224 If you meant to cross compile, use \`--host'.
3225 See \`config.log' for more details" "$LINENO" 5; }
3229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3230 $as_echo "$cross_compiling" >&6; }
3232 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3233 ac_clean_files=$ac_clean_files_save
3234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3235 $as_echo_n "checking for suffix of object files... " >&6; }
3236 if ${ac_cv_objext+:} false; then :
3237 $as_echo_n "(cached) " >&6
3239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3240 /* end confdefs.h. */
3250 rm -f conftest.o conftest.obj
3251 if { { ac_try="$ac_compile"
3253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3254 *) ac_try_echo=$ac_try;;
3256 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3257 $as_echo "$ac_try_echo"; } >&5
3258 (eval "$ac_compile") 2>&5
3260 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3261 test $ac_status = 0; }; then :
3262 for ac_file in conftest.o conftest.obj conftest.*; do
3263 test -f "$ac_file" || continue;
3265 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3266 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3271 $as_echo "$as_me: failed program was:" >&5
3272 sed 's/^/| /' conftest.$ac_ext >&5
3274 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3275 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3276 as_fn_error $? "cannot compute suffix of object files: cannot compile
3277 See \`config.log' for more details" "$LINENO" 5; }
3279 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3282 $as_echo "$ac_cv_objext" >&6; }
3283 OBJEXT=$ac_cv_objext
3285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3286 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3287 if ${ac_cv_c_compiler_gnu+:} false; then :
3288 $as_echo_n "(cached) " >&6
3290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3291 /* end confdefs.h. */
3304 if ac_fn_c_try_compile "$LINENO"; then :
3309 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3310 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3314 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3315 if test $ac_compiler_gnu = yes; then
3320 ac_test_CFLAGS=${CFLAGS+set}
3321 ac_save_CFLAGS=$CFLAGS
3322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3323 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3324 if ${ac_cv_prog_cc_g+:} false; then :
3325 $as_echo_n "(cached) " >&6
3327 ac_save_c_werror_flag=$ac_c_werror_flag
3328 ac_c_werror_flag=yes
3331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3332 /* end confdefs.h. */
3342 if ac_fn_c_try_compile "$LINENO"; then :
3346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3347 /* end confdefs.h. */
3357 if ac_fn_c_try_compile "$LINENO"; then :
3360 ac_c_werror_flag=$ac_save_c_werror_flag
3362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3363 /* end confdefs.h. */
3373 if ac_fn_c_try_compile "$LINENO"; then :
3376 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3378 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3380 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3381 ac_c_werror_flag=$ac_save_c_werror_flag
3383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3384 $as_echo "$ac_cv_prog_cc_g" >&6; }
3385 if test "$ac_test_CFLAGS" = set; then
3386 CFLAGS=$ac_save_CFLAGS
3387 elif test $ac_cv_prog_cc_g = yes; then
3388 if test "$GCC" = yes; then
3394 if test "$GCC" = yes; then
3400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3401 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3402 if ${ac_cv_prog_cc_c89+:} false; then :
3403 $as_echo_n "(cached) " >&6
3405 ac_cv_prog_cc_c89=no
3407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3408 /* end confdefs.h. */
3412 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3413 struct buf { int x; };
3414 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3415 static char *e (p, i)
3421 static char *f (char * (*g) (char **, int), char **p, ...)
3426 s = g (p, va_arg (v,int));
3431 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3432 function prototypes and stuff, but not '\xHH' hex character constants.
3433 These don't provoke an error unfortunately, instead are silently treated
3434 as 'x'. The following induces an error, until -std is added to get
3435 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3436 array size at least. It's necessary to write '\x00'==0 to get something
3437 that's true only with -std. */
3438 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3440 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3441 inside strings and character constants. */
3443 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3445 int test (int i, double x);
3446 struct s1 {int (*f) (int a);};
3447 struct s2 {int (*f) (double a);};
3448 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3454 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3459 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3460 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3462 CC="$ac_save_CC $ac_arg"
3463 if ac_fn_c_try_compile "$LINENO"; then :
3464 ac_cv_prog_cc_c89=$ac_arg
3466 rm -f core conftest.err conftest.$ac_objext
3467 test "x$ac_cv_prog_cc_c89" != "xno" && break
3469 rm -f conftest.$ac_ext
3474 case "x$ac_cv_prog_cc_c89" in
3476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3477 $as_echo "none needed" >&6; } ;;
3479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3480 $as_echo "unsupported" >&6; } ;;
3482 CC="$CC $ac_cv_prog_cc_c89"
3483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3484 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3486 if test "x$ac_cv_prog_cc_c89" != xno; then :
3491 ac_cpp='$CPP $CPPFLAGS'
3492 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3493 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3494 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3498 CFLAGS_KEEP="$CFLAGS"
3502 _svn_xxflags__save="$CFLAGS"
3504 ac_cpp='$CPP $CPPFLAGS'
3505 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3506 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3507 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -std=c90" >&5
3510 $as_echo_n "checking if $CC accepts -std=c90... " >&6; }
3511 CFLAGS="-std=c90 $CFLAGS"
3512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3513 /* end confdefs.h. */
3516 if ac_fn_c_try_compile "$LINENO"; then :
3518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3519 $as_echo "yes" >&6; }
3524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3525 $as_echo "no" >&6; }
3526 CFLAGS="$_svn_xxflags__save"
3529 _svn_xxflags__save="$CFLAGS"
3531 ac_cpp='$CPP $CPPFLAGS'
3532 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3533 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3534 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -std=c89" >&5
3537 $as_echo_n "checking if $CC accepts -std=c89... " >&6; }
3538 CFLAGS="-std=c89 $CFLAGS"
3539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3540 /* end confdefs.h. */
3543 if ac_fn_c_try_compile "$LINENO"; then :
3545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3546 $as_echo "yes" >&6; }
3551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3552 $as_echo "no" >&6; }
3553 CFLAGS="$_svn_xxflags__save"
3556 _svn_xxflags__save="$CFLAGS"
3558 ac_cpp='$CPP $CPPFLAGS'
3559 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3560 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3561 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -ansi" >&5
3564 $as_echo_n "checking if $CC accepts -ansi... " >&6; }
3565 CFLAGS="-ansi $CFLAGS"
3566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3567 /* end confdefs.h. */
3570 if ac_fn_c_try_compile "$LINENO"; then :
3572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3573 $as_echo "yes" >&6; }
3578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3579 $as_echo "no" >&6; }
3580 CFLAGS="$_svn_xxflags__save"
3584 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3586 ac_cpp='$CPP $CPPFLAGS'
3587 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3588 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3589 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3595 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3597 ac_cpp='$CPP $CPPFLAGS'
3598 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3599 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3600 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3606 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3608 ac_cpp='$CPP $CPPFLAGS'
3609 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3610 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3611 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3615 CMODEFLAGS="$CFLAGS"
3616 CFLAGS="$CFLAGS_KEEP"
3621 _svn_xxflags__save="$CFLAGS"
3623 ac_cpp='$CPP $CPPFLAGS'
3624 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3625 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3626 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -Werror=unknown-warning-option" >&5
3629 $as_echo_n "checking if $CC accepts -Werror=unknown-warning-option... " >&6; }
3630 CFLAGS="-Werror=unknown-warning-option $CFLAGS"
3631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3632 /* end confdefs.h. */
3635 if ac_fn_c_try_compile "$LINENO"; then :
3637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3638 $as_echo "yes" >&6; }
3643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3644 $as_echo "no" >&6; }
3645 CFLAGS="$_svn_xxflags__save"
3649 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3651 ac_cpp='$CPP $CPPFLAGS'
3652 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3653 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3654 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3659 # Look for a C++ compiler (before anything can set CXXFLAGS)
3660 CXXMAINTAINERFLAGS="$CXXUSERFLAGS"
3661 CXXUSERFLAGS="$CXXFLAGS"
3663 ac_cpp='$CXXCPP $CPPFLAGS'
3664 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3665 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3666 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3667 if test -z "$CXX"; then
3668 if test -n "$CCC"; then
3671 if test -n "$ac_tool_prefix"; then
3672 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3674 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3675 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3677 $as_echo_n "checking for $ac_word... " >&6; }
3678 if ${ac_cv_prog_CXX+:} false; then :
3679 $as_echo_n "(cached) " >&6
3681 if test -n "$CXX"; then
3682 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3688 test -z "$as_dir" && as_dir=.
3689 for ac_exec_ext in '' $ac_executable_extensions; do
3690 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3691 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3692 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3702 if test -n "$CXX"; then
3703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3704 $as_echo "$CXX" >&6; }
3706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3707 $as_echo "no" >&6; }
3711 test -n "$CXX" && break
3714 if test -z "$CXX"; then
3716 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3718 # Extract the first word of "$ac_prog", so it can be a program name with args.
3719 set dummy $ac_prog; ac_word=$2
3720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3721 $as_echo_n "checking for $ac_word... " >&6; }
3722 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
3723 $as_echo_n "(cached) " >&6
3725 if test -n "$ac_ct_CXX"; then
3726 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3728 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3732 test -z "$as_dir" && as_dir=.
3733 for ac_exec_ext in '' $ac_executable_extensions; do
3734 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3735 ac_cv_prog_ac_ct_CXX="$ac_prog"
3736 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3745 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3746 if test -n "$ac_ct_CXX"; then
3747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3748 $as_echo "$ac_ct_CXX" >&6; }
3750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3751 $as_echo "no" >&6; }
3755 test -n "$ac_ct_CXX" && break
3758 if test "x$ac_ct_CXX" = x; then
3761 case $cross_compiling:$ac_tool_warned in
3763 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3764 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3765 ac_tool_warned=yes ;;
3773 # Provide some information about the compiler.
3774 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3777 for ac_option in --version -v -V -qversion; do
3778 { { ac_try="$ac_compiler $ac_option >&5"
3780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3781 *) ac_try_echo=$ac_try;;
3783 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3784 $as_echo "$ac_try_echo"; } >&5
3785 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3787 if test -s conftest.err; then
3789 ... rest of stderr output deleted ...
3790 10q' conftest.err >conftest.er1
3791 cat conftest.er1 >&5
3793 rm -f conftest.er1 conftest.err
3794 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3795 test $ac_status = 0; }
3798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3799 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3800 if ${ac_cv_cxx_compiler_gnu+:} false; then :
3801 $as_echo_n "(cached) " >&6
3803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3804 /* end confdefs.h. */
3817 if ac_fn_cxx_try_compile "$LINENO"; then :
3822 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3823 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3827 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3828 if test $ac_compiler_gnu = yes; then
3833 ac_test_CXXFLAGS=${CXXFLAGS+set}
3834 ac_save_CXXFLAGS=$CXXFLAGS
3835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3836 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3837 if ${ac_cv_prog_cxx_g+:} false; then :
3838 $as_echo_n "(cached) " >&6
3840 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3841 ac_cxx_werror_flag=yes
3844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3845 /* end confdefs.h. */
3855 if ac_fn_cxx_try_compile "$LINENO"; then :
3856 ac_cv_prog_cxx_g=yes
3859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3860 /* end confdefs.h. */
3870 if ac_fn_cxx_try_compile "$LINENO"; then :
3873 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3876 /* end confdefs.h. */
3886 if ac_fn_cxx_try_compile "$LINENO"; then :
3887 ac_cv_prog_cxx_g=yes
3889 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3891 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3893 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3894 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3897 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3898 if test "$ac_test_CXXFLAGS" = set; then
3899 CXXFLAGS=$ac_save_CXXFLAGS
3900 elif test $ac_cv_prog_cxx_g = yes; then
3901 if test "$GXX" = yes; then
3907 if test "$GXX" = yes; then
3914 ac_cpp='$CPP $CPPFLAGS'
3915 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3916 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3917 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3921 CXXFLAGS_KEEP="$CXXFLAGS"
3925 _svn_xxflags__save="$CXXFLAGS"
3927 ac_cpp='$CXXCPP $CPPFLAGS'
3928 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3929 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3930 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CXX accepts -std=c++98" >&5
3933 $as_echo_n "checking if $CXX accepts -std=c++98... " >&6; }
3934 CXXFLAGS="-std=c++98 $CXXFLAGS"
3935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3936 /* end confdefs.h. */
3939 if ac_fn_cxx_try_compile "$LINENO"; then :
3941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3942 $as_echo "yes" >&6; }
3947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3948 $as_echo "no" >&6; }
3949 CXXFLAGS="$_svn_xxflags__save"
3953 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3955 ac_cpp='$CPP $CPPFLAGS'
3956 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3957 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3958 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3962 CXXMODEFLAGS="$CXXFLAGS"
3963 CXXFLAGS="$CXXFLAGS_KEEP"
3968 _svn_xxflags__save="$CXXFLAGS"
3970 ac_cpp='$CXXCPP $CPPFLAGS'
3971 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3972 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3973 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CXX accepts -Werror=unknown-warning-option" >&5
3976 $as_echo_n "checking if $CXX accepts -Werror=unknown-warning-option... " >&6; }
3977 CXXFLAGS="-Werror=unknown-warning-option $CXXFLAGS"
3978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3979 /* end confdefs.h. */
3982 if ac_fn_cxx_try_compile "$LINENO"; then :
3984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3985 $as_echo "yes" >&6; }
3990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3991 $as_echo "no" >&6; }
3992 CXXFLAGS="$_svn_xxflags__save"
3996 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3998 ac_cpp='$CPP $CPPFLAGS'
3999 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4000 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4001 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4006 # Look for a C pre-processor
4008 ac_cpp='$CPP $CPPFLAGS'
4009 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4010 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4011 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4013 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4014 # On Suns, sometimes $CPP names a directory.
4015 if test -n "$CPP" && test -d "$CPP"; then
4018 if test -z "$CPP"; then
4019 if ${ac_cv_prog_CPP+:} false; then :
4020 $as_echo_n "(cached) " >&6
4022 # Double quotes because CPP needs to be expanded
4023 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4026 for ac_c_preproc_warn_flag in '' yes
4028 # Use a header file that comes with gcc, so configuring glibc
4029 # with a fresh cross-compiler works.
4030 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4031 # <limits.h> exists even on freestanding compilers.
4032 # On the NeXT, cc -E runs the code through the compiler's parser,
4033 # not just through cpp. "Syntax error" is here to catch this case.
4034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4035 /* end confdefs.h. */
4037 # include <limits.h>
4039 # include <assert.h>
4043 if ac_fn_c_try_cpp "$LINENO"; then :
4046 # Broken: fails on valid input.
4049 rm -f conftest.err conftest.i conftest.$ac_ext
4051 # OK, works on sane cases. Now check whether nonexistent headers
4052 # can be detected and how.
4053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4054 /* end confdefs.h. */
4055 #include <ac_nonexistent.h>
4057 if ac_fn_c_try_cpp "$LINENO"; then :
4058 # Broken: success on invalid input.
4061 # Passes both tests.
4065 rm -f conftest.err conftest.i conftest.$ac_ext
4068 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4069 rm -f conftest.i conftest.err conftest.$ac_ext
4070 if $ac_preproc_ok; then :
4082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4083 $as_echo "$CPP" >&6; }
4085 for ac_c_preproc_warn_flag in '' yes
4087 # Use a header file that comes with gcc, so configuring glibc
4088 # with a fresh cross-compiler works.
4089 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4090 # <limits.h> exists even on freestanding compilers.
4091 # On the NeXT, cc -E runs the code through the compiler's parser,
4092 # not just through cpp. "Syntax error" is here to catch this case.
4093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4094 /* end confdefs.h. */
4096 # include <limits.h>
4098 # include <assert.h>
4102 if ac_fn_c_try_cpp "$LINENO"; then :
4105 # Broken: fails on valid input.
4108 rm -f conftest.err conftest.i conftest.$ac_ext
4110 # OK, works on sane cases. Now check whether nonexistent headers
4111 # can be detected and how.
4112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4113 /* end confdefs.h. */
4114 #include <ac_nonexistent.h>
4116 if ac_fn_c_try_cpp "$LINENO"; then :
4117 # Broken: success on invalid input.
4120 # Passes both tests.
4124 rm -f conftest.err conftest.i conftest.$ac_ext
4127 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4128 rm -f conftest.i conftest.err conftest.$ac_ext
4129 if $ac_preproc_ok; then :
4132 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4133 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4134 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4135 See \`config.log' for more details" "$LINENO" 5; }
4139 ac_cpp='$CPP $CPPFLAGS'
4140 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4141 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4142 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4145 # Look for a good sed
4146 # AC_PROG_SED was introduced in Autoconf 2.59b
4147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4148 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4149 if ${ac_cv_path_SED+:} false; then :
4150 $as_echo_n "(cached) " >&6
4152 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4153 for ac_i in 1 2 3 4 5 6 7; do
4154 ac_script="$ac_script$as_nl$ac_script"
4156 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4157 { ac_script=; unset ac_script;}
4158 if test -z "$SED"; then
4159 ac_path_SED_found=false
4160 # Loop through the user's path and test for each of PROGNAME-LIST
4161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4165 test -z "$as_dir" && as_dir=.
4166 for ac_prog in sed gsed; do
4167 for ac_exec_ext in '' $ac_executable_extensions; do
4168 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4169 as_fn_executable_p "$ac_path_SED" || continue
4170 # Check for GNU ac_path_SED and select it if it is found.
4171 # Check for GNU $ac_path_SED
4172 case `"$ac_path_SED" --version 2>&1` in
4174 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4177 $as_echo_n 0123456789 >"conftest.in"
4180 cat "conftest.in" "conftest.in" >"conftest.tmp"
4181 mv "conftest.tmp" "conftest.in"
4182 cp "conftest.in" "conftest.nl"
4183 $as_echo '' >> "conftest.nl"
4184 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4185 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4186 as_fn_arith $ac_count + 1 && ac_count=$as_val
4187 if test $ac_count -gt ${ac_path_SED_max-0}; then
4188 # Best one so far, save it but keep looking for a better one
4189 ac_cv_path_SED="$ac_path_SED"
4190 ac_path_SED_max=$ac_count
4192 # 10*(2^10) chars as input seems more than enough
4193 test $ac_count -gt 10 && break
4195 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4198 $ac_path_SED_found && break 3
4203 if test -z "$ac_cv_path_SED"; then
4204 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4212 $as_echo "$ac_cv_path_SED" >&6; }
4213 SED="$ac_cv_path_SED"
4217 # Grab target_cpu, so we can use it in the Solaris pkginfo file
4218 # Make sure we can run config.sub.
4219 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4220 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4223 $as_echo_n "checking build system type... " >&6; }
4224 if ${ac_cv_build+:} false; then :
4225 $as_echo_n "(cached) " >&6
4227 ac_build_alias=$build_alias
4228 test "x$ac_build_alias" = x &&
4229 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4230 test "x$ac_build_alias" = x &&
4231 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4232 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4233 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4237 $as_echo "$ac_cv_build" >&6; }
4238 case $ac_cv_build in
4240 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4243 ac_save_IFS=$IFS; IFS='-'
4249 # Remember, the first character of IFS is used to create $*,
4250 # except with old shells:
4253 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4257 $as_echo_n "checking host system type... " >&6; }
4258 if ${ac_cv_host+:} false; then :
4259 $as_echo_n "(cached) " >&6
4261 if test "x$host_alias" = x; then
4262 ac_cv_host=$ac_cv_build
4264 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4265 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4270 $as_echo "$ac_cv_host" >&6; }
4273 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4276 ac_save_IFS=$IFS; IFS='-'
4282 # Remember, the first character of IFS is used to create $*,
4283 # except with old shells:
4286 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
4290 $as_echo_n "checking target system type... " >&6; }
4291 if ${ac_cv_target+:} false; then :
4292 $as_echo_n "(cached) " >&6
4294 if test "x$target_alias" = x; then
4295 ac_cv_target=$ac_cv_host
4297 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
4298 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
4302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
4303 $as_echo "$ac_cv_target" >&6; }
4304 case $ac_cv_target in
4306 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
4308 target=$ac_cv_target
4309 ac_save_IFS=$IFS; IFS='-'
4315 # Remember, the first character of IFS is used to create $*,
4316 # except with old shells:
4319 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
4322 # The aliases save the names the user supplied, while $host etc.
4323 # will get canonicalized.
4324 test -n "$target_alias" &&
4325 test "$program_prefix$program_suffix$program_transform_name" = \
4327 program_prefix=${target_alias}-
4329 # Look for an extended grep
4330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4331 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4332 if ${ac_cv_path_GREP+:} false; then :
4333 $as_echo_n "(cached) " >&6
4335 if test -z "$GREP"; then
4336 ac_path_GREP_found=false
4337 # Loop through the user's path and test for each of PROGNAME-LIST
4338 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4339 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4342 test -z "$as_dir" && as_dir=.
4343 for ac_prog in grep ggrep; do
4344 for ac_exec_ext in '' $ac_executable_extensions; do
4345 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4346 as_fn_executable_p "$ac_path_GREP" || continue
4347 # Check for GNU ac_path_GREP and select it if it is found.
4348 # Check for GNU $ac_path_GREP
4349 case `"$ac_path_GREP" --version 2>&1` in
4351 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4354 $as_echo_n 0123456789 >"conftest.in"
4357 cat "conftest.in" "conftest.in" >"conftest.tmp"
4358 mv "conftest.tmp" "conftest.in"
4359 cp "conftest.in" "conftest.nl"
4360 $as_echo 'GREP' >> "conftest.nl"
4361 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4362 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4363 as_fn_arith $ac_count + 1 && ac_count=$as_val
4364 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4365 # Best one so far, save it but keep looking for a better one
4366 ac_cv_path_GREP="$ac_path_GREP"
4367 ac_path_GREP_max=$ac_count
4369 # 10*(2^10) chars as input seems more than enough
4370 test $ac_count -gt 10 && break
4372 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4375 $ac_path_GREP_found && break 3
4380 if test -z "$ac_cv_path_GREP"; then
4381 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4384 ac_cv_path_GREP=$GREP
4388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4389 $as_echo "$ac_cv_path_GREP" >&6; }
4390 GREP="$ac_cv_path_GREP"
4393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4394 $as_echo_n "checking for egrep... " >&6; }
4395 if ${ac_cv_path_EGREP+:} false; then :
4396 $as_echo_n "(cached) " >&6
4398 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4399 then ac_cv_path_EGREP="$GREP -E"
4401 if test -z "$EGREP"; then
4402 ac_path_EGREP_found=false
4403 # Loop through the user's path and test for each of PROGNAME-LIST
4404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4405 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4408 test -z "$as_dir" && as_dir=.
4409 for ac_prog in egrep; do
4410 for ac_exec_ext in '' $ac_executable_extensions; do
4411 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4412 as_fn_executable_p "$ac_path_EGREP" || continue
4413 # Check for GNU ac_path_EGREP and select it if it is found.
4414 # Check for GNU $ac_path_EGREP
4415 case `"$ac_path_EGREP" --version 2>&1` in
4417 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4420 $as_echo_n 0123456789 >"conftest.in"
4423 cat "conftest.in" "conftest.in" >"conftest.tmp"
4424 mv "conftest.tmp" "conftest.in"
4425 cp "conftest.in" "conftest.nl"
4426 $as_echo 'EGREP' >> "conftest.nl"
4427 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4428 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4429 as_fn_arith $ac_count + 1 && ac_count=$as_val
4430 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4431 # Best one so far, save it but keep looking for a better one
4432 ac_cv_path_EGREP="$ac_path_EGREP"
4433 ac_path_EGREP_max=$ac_count
4435 # 10*(2^10) chars as input seems more than enough
4436 test $ac_count -gt 10 && break
4438 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4441 $ac_path_EGREP_found && break 3
4446 if test -z "$ac_cv_path_EGREP"; then
4447 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4450 ac_cv_path_EGREP=$EGREP
4455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4456 $as_echo "$ac_cv_path_EGREP" >&6; }
4457 EGREP="$ac_cv_path_EGREP"
4461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4462 $as_echo_n "checking whether ln -s works... " >&6; }
4464 if test "$LN_S" = "ln -s"; then
4465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4466 $as_echo "yes" >&6; }
4468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4469 $as_echo "no, using $LN_S" >&6; }
4473 # Find a good install program. We prefer a C program (faster),
4474 # so one script is as good as another. But avoid the broken or
4475 # incompatible versions:
4476 # SysV /etc/install, /usr/sbin/install
4477 # SunOS /usr/etc/install
4478 # IRIX /sbin/install
4480 # AmigaOS /C/install, which installs bootblocks on floppy discs
4481 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4482 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4483 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4484 # OS/2's system install, which has a completely different semantic
4485 # ./install, which can be erroneously created by make from ./install.sh.
4486 # Reject install programs that cannot install multiple files.
4487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4488 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4489 if test -z "$INSTALL"; then
4490 if ${ac_cv_path_install+:} false; then :
4491 $as_echo_n "(cached) " >&6
4493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4497 test -z "$as_dir" && as_dir=.
4498 # Account for people who put trailing slashes in PATH elements.
4499 case $as_dir/ in #((
4500 ./ | .// | /[cC]/* | \
4501 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4502 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4505 # OSF1 and SCO ODT 3.0 have their own names for install.
4506 # Don't use installbsd from OSF since it installs stuff as root
4508 for ac_prog in ginstall scoinst install; do
4509 for ac_exec_ext in '' $ac_executable_extensions; do
4510 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4511 if test $ac_prog = install &&
4512 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4513 # AIX install. It has an incompatible calling convention.
4515 elif test $ac_prog = install &&
4516 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4517 # program-specific install script used by HP pwplus--don't use.
4520 rm -rf conftest.one conftest.two conftest.dir
4521 echo one > conftest.one
4522 echo two > conftest.two
4524 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4525 test -s conftest.one && test -s conftest.two &&
4526 test -s conftest.dir/conftest.one &&
4527 test -s conftest.dir/conftest.two
4529 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4542 rm -rf conftest.one conftest.two conftest.dir
4545 if test "${ac_cv_path_install+set}" = set; then
4546 INSTALL=$ac_cv_path_install
4548 # As a last resort, use the slow shell script. Don't cache a
4549 # value for INSTALL within a source directory, because that will
4550 # break other packages using the cache if that directory is
4551 # removed, or if the value is a relative name.
4552 INSTALL=$ac_install_sh
4555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4556 $as_echo "$INSTALL" >&6; }
4558 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4559 # It thinks the first close brace ends the variable substitution.
4560 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4562 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4564 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4566 # If $INSTALL is relative path to our fallback install-sh, then convert
4567 # to an absolute path, as in some cases (e.g. Solaris VPATH build), libtool
4568 # may try to use it from a changed working directory.
4569 if test "$INSTALL" = "build/install-sh -c"; then
4570 INSTALL="$abs_srcdir/$INSTALL"
4573 if test -z "$MKDIR"; then
4578 # ==== Libraries, for which we may have source to build ======================
4581 APR_VER_REGEXES="0\.9\.[7-9] 0\.9\.1[0-9] 1\. 2\."
4584 APR_WANTED_REGEXES="$APR_VER_REGEXES"
4586 { $as_echo "$as_me:${as_lineno-$LINENO}: Apache Portable Runtime (APR) library configuration" >&5
4587 $as_echo "$as_me: Apache Portable Runtime (APR) library configuration" >&6;}
4592 if test "$ac_cv_emxos2" = "yes"; then
4593 # Scripts don't pass test -x on OS/2
4599 acceptable_majors="1 0"
4601 apr_temp_acceptable_apr_config=""
4602 for apr_temp_major in $acceptable_majors
4604 case $apr_temp_major in
4606 apr_temp_acceptable_apr_config="$apr_temp_acceptable_apr_config apr-config"
4609 apr_temp_acceptable_apr_config="$apr_temp_acceptable_apr_config apr-$apr_temp_major-config"
4614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for APR" >&5
4615 $as_echo_n "checking for APR... " >&6; }
4617 # Check whether --with-apr was given.
4618 if test "${with_apr+set}" = set; then :
4620 if test "$withval" = "no" || test "$withval" = "yes"; then
4621 as_fn_error $? "--with-apr requires a directory or file to be provided" "$LINENO" 5
4624 for apr_temp_apr_config_file in $apr_temp_acceptable_apr_config
4626 for lookdir in "$withval/bin" "$withval"
4628 if $TEST_X "$lookdir/$apr_temp_apr_config_file"; then
4630 apr_config="$lookdir/$apr_temp_apr_config_file"
4636 if test "$apr_found" != "yes" && $TEST_X "$withval" && $withval --help > /dev/null 2>&1 ; then
4638 apr_config="$withval"
4641 if test "$apr_found" != "yes"; then
4642 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
4647 if test -d """"; then
4648 apr_temp_abs_srcdir="`cd "" && pwd`"
4649 apr_found="reconfig"
4650 apr_bundled_major="`sed -n '/#define.*APR_MAJOR_VERSION/s/^[^0-9]*\([0-9]*\).*$/\1/p' \"""/include/apr_version.h\"`"
4651 case $apr_bundled_major in
4653 as_fn_error $? "failed to find major version of bundled APR" "$LINENO" 5
4656 apr_temp_apr_config_file="apr-config"
4659 apr_temp_apr_config_file="apr-$apr_bundled_major-config"
4662 if test -n """"; then
4663 apr_config="""/$apr_temp_apr_config_file"
4665 apr_config="""/$apr_temp_apr_config_file"
4668 if test "$apr_found" = "no" && test -n "1" && test "1" = "1"; then
4669 for apr_temp_apr_config_file in $apr_temp_acceptable_apr_config
4671 if $apr_temp_apr_config_file --help > /dev/null 2>&1 ; then
4673 apr_config="$apr_temp_apr_config_file"
4676 for lookdir in /usr /usr/local /opt/apr /usr/local/apache2 ; do
4677 if $TEST_X "$lookdir/bin/$apr_temp_apr_config_file"; then
4679 apr_config="$lookdir/bin/$apr_temp_apr_config_file"
4690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_found" >&5
4691 $as_echo "$apr_found" >&6; }
4694 if test $apr_found = "no"; then
4695 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: APR not found" >&5
4696 $as_echo "$as_me: WARNING: APR not found" >&2;}
4698 echo "The Apache Portable Runtime (APR) library cannot be found."
4699 echo "Please install APR on this system and configure Subversion"
4700 echo "with the appropriate --with-apr option."
4702 echo "You probably need to do something similar with the Apache"
4703 echo "Portable Runtime Utility (APRUTIL) library and then configure"
4704 echo "Subversion with both the --with-apr and --with-apr-util options."
4706 as_fn_error $? "no suitable APR found" "$LINENO" 5
4710 if test $apr_found = "reconfig"; then
4711 as_fn_error $? "Unexpected APR reconfig" "$LINENO" 5
4715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking APR version" >&5
4716 $as_echo_n "checking APR version... " >&6; }
4717 apr_version="`$apr_config --version`"
4718 if test $? -ne 0; then
4719 as_fn_error $? "apr-config --version failed" "$LINENO" 5
4721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_version" >&5
4722 $as_echo "$apr_version" >&6; }
4724 APR_WANTED_REGEX_MATCH=0
4725 for apr_wanted_regex in $APR_WANTED_REGEXES; do
4726 if test `expr $apr_version : $apr_wanted_regex` -ne 0; then
4727 APR_WANTED_REGEX_MATCH=1
4732 if test $APR_WANTED_REGEX_MATCH -eq 0; then
4733 echo "wanted regexes are $APR_WANTED_REGEXES"
4734 as_fn_error $? "invalid apr version found" "$LINENO" 5
4738 CPPFLAGS="$CPPFLAGS `$apr_config --cppflags`"
4739 if test $? -ne 0; then
4740 as_fn_error $? "apr-config --cppflags failed" "$LINENO" 5
4743 CFLAGS="$CFLAGS `$apr_config --cflags`"
4744 if test $? -ne 0; then
4745 as_fn_error $? "apr-config --cflags failed" "$LINENO" 5
4748 apr_ldflags="`$apr_config --ldflags`"
4749 if test $? -ne 0; then
4750 as_fn_error $? "apr-config --ldflags failed" "$LINENO" 5
4753 input_flags="$apr_ldflags"
4755 filtered_dirs="/lib /lib64 /usr/lib /usr/lib64"
4756 for flag in $input_flags; do
4758 for dir in $filtered_dirs; do
4759 if test "$flag" = "-L$dir" || test "$flag" = "-L$dir/"; then
4764 if test "$filter" = "no"; then
4765 output_flags="$output_flags $flag"
4768 if test -n "$output_flags"; then
4769 printf "%s" "${output_flags# }"
4773 SVN_APR_INCLUDES="`$apr_config --includes`"
4774 if test $? -ne 0; then
4775 as_fn_error $? "apr-config --includes failed" "$LINENO" 5
4778 if test "$enable_all_static" = "yes"; then
4779 SVN_APR_LIBS="`$apr_config --link-ld --libs`"
4780 if test $? -ne 0; then
4781 as_fn_error $? "apr-config --link-ld --libs failed" "$LINENO" 5
4784 SVN_APR_LIBS="`$apr_config --link-ld`"
4785 if test $? -ne 0; then
4786 as_fn_error $? "apr-config --link-ld failed" "$LINENO" 5
4790 input_flags="$SVN_APR_LIBS"
4792 filtered_dirs="/lib /lib64 /usr/lib /usr/lib64"
4793 for flag in $input_flags; do
4795 for dir in $filtered_dirs; do
4796 if test "$flag" = "-L$dir" || test "$flag" = "-L$dir/"; then
4801 if test "$filter" = "no"; then
4802 output_flags="$output_flags $flag"
4805 if test -n "$output_flags"; then
4806 printf "%s" "${output_flags# }"
4810 SVN_APR_SHLIB_PATH_VAR="`$apr_config --shlib-path-var`"
4811 if test $? -ne 0; then
4812 as_fn_error $? "apr-config --shlib-path-var failed" "$LINENO" 5
4815 SVN_APR_CONFIG="$apr_config"
4822 if test `expr $apr_version : 2` -ne 0; then
4824 apu_config=$apr_config
4826 SVN_APRUTIL_CONFIG="$apu_config"
4831 APU_VER_REGEXES="0\.9\.[7-9] 0\.9\.1[0-9] 1\."
4833 APRUTIL_WANTED_REGEXES="$APU_VER_REGEXES"
4835 { $as_echo "$as_me:${as_lineno-$LINENO}: Apache Portable Runtime Utility (APRUTIL) library configuration" >&5
4836 $as_echo "$as_me: Apache Portable Runtime Utility (APRUTIL) library configuration" >&6;}
4841 if test "$ac_cv_emxos2" = "yes"; then
4842 # Scripts don't pass test -x on OS/2
4848 acceptable_majors="1 0"
4850 apu_temp_acceptable_apu_config=""
4851 for apu_temp_major in $acceptable_majors
4853 case $apu_temp_major in
4855 apu_temp_acceptable_apu_config="$apu_temp_acceptable_apu_config apu-config"
4858 apu_temp_acceptable_apu_config="$apu_temp_acceptable_apu_config apu-$apu_temp_major-config"
4863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for APR-util" >&5
4864 $as_echo_n "checking for APR-util... " >&6; }
4866 # Check whether --with-apr-util was given.
4867 if test "${with_apr_util+set}" = set; then :
4868 withval=$with_apr_util;
4869 if test "$withval" = "no" || test "$withval" = "yes"; then
4870 as_fn_error $? "--with-apr-util requires a directory or file to be provided" "$LINENO" 5
4873 for apu_temp_apu_config_file in $apu_temp_acceptable_apu_config
4875 for lookdir in "$withval/bin" "$withval"
4877 if $TEST_X "$lookdir/$apu_temp_apu_config_file"; then
4879 apu_config="$lookdir/$apu_temp_apu_config_file"
4885 if test "$apu_found" != "yes" && $TEST_X "$withval" && $withval --help > /dev/null 2>&1 ; then
4887 apu_config="$withval"
4890 if test "$apu_found" != "yes"; then
4891 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
4896 if test -d """"; then
4897 apu_temp_abs_srcdir="`cd "" && pwd`"
4898 apu_found="reconfig"
4899 apu_bundled_major="`sed -n '/#define.*APU_MAJOR_VERSION/s/^[^0-9]*\([0-9]*\).*$/\1/p' \"""/include/apu_version.h\"`"
4900 case $apu_bundled_major in
4902 as_fn_error $? "failed to find major version of bundled APU" "$LINENO" 5
4905 apu_temp_apu_config_file="apu-config"
4908 apu_temp_apu_config_file="apu-$apu_bundled_major-config"
4911 if test -n """"; then
4912 apu_config="""/$apu_temp_apu_config_file"
4914 apu_config="""/$apu_temp_apu_config_file"
4917 if test "$apu_found" = "no" && test -n "1" && test "1" = "1"; then
4918 for apu_temp_apu_config_file in $apu_temp_acceptable_apu_config
4920 if $apu_temp_apu_config_file --help > /dev/null 2>&1 ; then
4922 apu_config="$apu_temp_apu_config_file"
4925 for lookdir in /usr /usr/local /opt/apr /usr/local/apache2 ; do
4926 if $TEST_X "$lookdir/bin/$apu_temp_apu_config_file"; then
4928 apu_config="$lookdir/bin/$apu_temp_apu_config_file"
4939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apu_found" >&5
4940 $as_echo "$apu_found" >&6; }
4943 if test $apu_found = "no"; then
4944 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: APRUTIL not found" >&5
4945 $as_echo "$as_me: WARNING: APRUTIL not found" >&2;}
4947 echo "The Apache Portable Runtime Utility (APRUTIL) library cannot be found."
4948 echo "Install APRUTIL on this system and configure Subversion with the"
4949 echo " appropriate --with-apr-util option."
4951 as_fn_error $? "no suitable APRUTIL found" "$LINENO" 5
4955 if test $apu_found = "reconfig"; then
4956 as_fn_error $? "Unexpected APRUTIL reconfig" "$LINENO" 5
4960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking APRUTIL version" >&5
4961 $as_echo_n "checking APRUTIL version... " >&6; }
4962 apu_version="`$apu_config --version`"
4963 if test $? -ne 0; then
4964 # This is a hack as suggested by Ben Collins-Sussman. It can be
4965 # removed after apache 2.0.44 has been released. (The apu-config
4966 # shipped in 2.0.43 contains a correct version number, but
4967 # stupidly doesn't understand the --version switch.)
4968 apu_version=`grep "APRUTIL_DOTTED_VERSION=" $(which $apu_config) | tr -d "APRUTIL_DOTTED_VERSION="| tr -d '"'`
4970 # apu-config --version failed.
4971 # Your apu-config doesn't support the --version switch, please upgrade
4972 # to APR-UTIL more recent than 2002-Nov-05.])
4974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apu_version" >&5
4975 $as_echo "$apu_version" >&6; }
4977 APU_WANTED_REGEX_MATCH=0
4978 for apu_wanted_regex in $APRUTIL_WANTED_REGEXES; do
4979 if test `expr $apu_version : $apu_wanted_regex` -ne 0; then
4980 APU_WANTED_REGEX_MATCH=1
4985 if test $APU_WANTED_REGEX_MATCH -eq 0; then
4986 echo "wanted regexes are $APRUTIL_WANTED_REGEXES"
4987 as_fn_error $? "invalid APRUTIL version found" "$LINENO" 5
4991 apu_ldflags="`$apu_config --ldflags`"
4992 if test $? -ne 0; then
4993 as_fn_error $? "apu-config --ldflags failed" "$LINENO" 5
4996 input_flags="$apu_ldflags"
4998 filtered_dirs="/lib /lib64 /usr/lib /usr/lib64"
4999 for flag in $input_flags; do
5001 for dir in $filtered_dirs; do
5002 if test "$flag" = "-L$dir" || test "$flag" = "-L$dir/"; then
5007 if test "$filter" = "no"; then
5008 output_flags="$output_flags $flag"
5011 if test -n "$output_flags"; then
5012 printf "%s" "${output_flags# }"
5016 SVN_APRUTIL_INCLUDES="`$apu_config --includes`"
5017 if test $? -ne 0; then
5018 as_fn_error $? "apu-config --includes failed" "$LINENO" 5
5021 if test "$enable_all_static" = "yes"; then
5022 SVN_APRUTIL_LIBS="`$apu_config --link-ld --libs`"
5023 if test $? -ne 0; then
5024 as_fn_error $? "apu-config --link-ld --libs failed" "$LINENO" 5
5027 SVN_APRUTIL_LIBS="`$apu_config --link-ld`"
5028 if test $? -ne 0; then
5029 as_fn_error $? "apu-config --link-ld failed" "$LINENO" 5
5033 input_flags="$SVN_APRUTIL_LIBS"
5035 filtered_dirs="/lib /lib64 /usr/lib /usr/lib64"
5036 for flag in $input_flags; do
5038 for dir in $filtered_dirs; do
5039 if test "$flag" = "-L$dir" || test "$flag" = "-L$dir/"; then
5044 if test "$filter" = "no"; then
5045 output_flags="$output_flags $flag"
5048 if test -n "$output_flags"; then
5049 printf "%s" "${output_flags# }"
5054 SVN_APRUTIL_CONFIG="$apu_config"
5058 SVN_HAVE_OLD_EXPAT="`$apu_config --old-expat`"
5059 if test "$SVN_HAVE_OLD_EXPAT" = "yes"; then
5061 $as_echo "#define SVN_HAVE_OLD_EXPAT 1" >>confdefs.h
5066 SVN_LT_SOVERSION="-version-info $svn_lib_ver"
5069 cat >>confdefs.h <<_ACEOF
5070 #define SVN_SOVERSION $svn_lib_ver
5074 # Extract the first word of "pkg-config", so it can be a program name with args.
5075 set dummy pkg-config; ac_word=$2
5076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5077 $as_echo_n "checking for $ac_word... " >&6; }
5078 if ${ac_cv_path_PKG_CONFIG+:} false; then :
5079 $as_echo_n "(cached) " >&6
5083 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5090 test -z "$as_dir" && as_dir=.
5091 for ac_exec_ext in '' $ac_executable_extensions; do
5092 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5093 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5094 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5104 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5105 if test -n "$PKG_CONFIG"; then
5106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5107 $as_echo "$PKG_CONFIG" >&6; }
5109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5110 $as_echo "no" >&6; }
5116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5117 $as_echo_n "checking for ANSI C header files... " >&6; }
5118 if ${ac_cv_header_stdc+:} false; then :
5119 $as_echo_n "(cached) " >&6
5121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5122 /* end confdefs.h. */
5136 if ac_fn_c_try_compile "$LINENO"; then :
5137 ac_cv_header_stdc=yes
5139 ac_cv_header_stdc=no
5141 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5143 if test $ac_cv_header_stdc = yes; then
5144 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5146 /* end confdefs.h. */
5150 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5151 $EGREP "memchr" >/dev/null 2>&1; then :
5154 ac_cv_header_stdc=no
5160 if test $ac_cv_header_stdc = yes; then
5161 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5163 /* end confdefs.h. */
5167 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5168 $EGREP "free" >/dev/null 2>&1; then :
5171 ac_cv_header_stdc=no
5177 if test $ac_cv_header_stdc = yes; then
5178 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5179 if test "$cross_compiling" = yes; then :
5182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5183 /* end confdefs.h. */
5186 #if ((' ' & 0x0FF) == 0x020)
5187 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5188 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5190 # define ISLOWER(c) \
5191 (('a' <= (c) && (c) <= 'i') \
5192 || ('j' <= (c) && (c) <= 'r') \
5193 || ('s' <= (c) && (c) <= 'z'))
5194 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5197 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5202 for (i = 0; i < 256; i++)
5203 if (XOR (islower (i), ISLOWER (i))
5204 || toupper (i) != TOUPPER (i))
5209 if ac_fn_c_try_run "$LINENO"; then :
5212 ac_cv_header_stdc=no
5214 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5215 conftest.$ac_objext conftest.beam conftest.$ac_ext
5220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5221 $as_echo "$ac_cv_header_stdc" >&6; }
5222 if test $ac_cv_header_stdc = yes; then
5224 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5228 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5229 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5230 inttypes.h stdint.h unistd.h
5232 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5233 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5235 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5236 cat >>confdefs.h <<_ACEOF
5237 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5250 serf_check_major="1"
5251 serf_check_minor="2"
5252 serf_check_patch="1"
5253 serf_check_version="1.2.1"
5256 # Check whether --with-serf was given.
5257 if test "${with_serf+set}" = set; then :
5259 if test "$withval" = "yes" ; then
5261 elif test "$withval" = "no" ; then
5265 { $as_echo "$as_me:${as_lineno-$LINENO}: serf library configuration via prefix" >&5
5266 $as_echo "$as_me: serf library configuration via prefix" >&6;}
5268 serf_prefix=$withval
5269 for serf_major in serf-2 serf-1; do
5270 if ! test -d $serf_prefix/include/$serf_major; then continue; fi
5271 save_cppflags="$CPPFLAGS"
5272 CPPFLAGS="$CPPFLAGS $SVN_APR_INCLUDES $SVN_APRUTIL_INCLUDES -I$serf_prefix/include/$serf_major"
5273 for ac_header in serf.h
5275 ac_fn_c_check_header_mongrel "$LINENO" "serf.h" "ac_cv_header_serf_h" "$ac_includes_default"
5276 if test "x$ac_cv_header_serf_h" = xyes; then :
5277 cat >>confdefs.h <<_ACEOF
5278 #define HAVE_SERF_H 1
5281 save_ldflags="$LDFLAGS"
5282 LDFLAGS="$LDFLAGS -L$serf_prefix/lib"
5283 as_ac_Lib=`$as_echo "ac_cv_lib_$serf_major''_serf_context_create" | $as_tr_sh`
5284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for serf_context_create in -l$serf_major" >&5
5285 $as_echo_n "checking for serf_context_create in -l$serf_major... " >&6; }
5286 if eval \${$as_ac_Lib+:} false; then :
5287 $as_echo_n "(cached) " >&6
5289 ac_check_lib_save_LIBS=$LIBS
5290 LIBS="-l$serf_major $SVN_APRUTIL_LIBS $SVN_APR_LIBS -lz $LIBS"
5291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5292 /* end confdefs.h. */
5294 /* Override any GCC internal prototype to avoid an error.
5295 Use char because int might match the return type of a GCC
5296 builtin and then its argument prototype would still apply. */
5300 char serf_context_create ();
5304 return serf_context_create ();
5309 if ac_fn_c_try_link "$LINENO"; then :
5310 eval "$as_ac_Lib=yes"
5312 eval "$as_ac_Lib=no"
5314 rm -f core conftest.err conftest.$ac_objext \
5315 conftest$ac_exeext conftest.$ac_ext
5316 LIBS=$ac_check_lib_save_LIBS
5318 eval ac_res=\$$as_ac_Lib
5319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5320 $as_echo "$ac_res" >&6; }
5321 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
5323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5324 /* end confdefs.h. */
5333 #if ! SERF_VERSION_AT_LEAST($serf_check_major, $serf_check_minor, $serf_check_patch)
5334 #error Serf version too old: need $serf_check_version
5341 if ac_fn_c_try_compile "$LINENO"; then :
5344 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Serf version too old: need $serf_check_version" >&5
5345 $as_echo "$as_me: WARNING: Serf version too old: need $serf_check_version" >&2;}
5348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5351 LDFLAGS="$save_ldflags"
5356 CPPFLAGS="$save_cppflags"
5357 test $serf_found = yes && break
5360 if test $serf_found = "yes"; then
5361 SVN_SERF_INCLUDES="-I$serf_prefix/include/$serf_major"
5362 if test -e "$serf_prefix/lib/lib$serf_major.la"; then
5363 SVN_SERF_LIBS="$serf_prefix/lib/lib$serf_major.la"
5365 SVN_SERF_LIBS="-l$serf_major"
5366 LDFLAGS="$LDFLAGS -L$serf_prefix/lib"
5375 if test "$serf_skip" = "no" ; then
5376 if test "$serf_found" = "no" ; then
5378 { $as_echo "$as_me:${as_lineno-$LINENO}: serf library configuration via pkg-config" >&5
5379 $as_echo "$as_me: serf library configuration via pkg-config" >&6;}
5380 if test -n "$PKG_CONFIG"; then
5381 for serf_major in serf-2 serf-1; do
5382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $serf_major library" >&5
5383 $as_echo_n "checking for $serf_major library... " >&6; }
5384 if $PKG_CONFIG $serf_major --exists; then
5385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5386 $as_echo "yes" >&6; }
5387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking serf library version" >&5
5388 $as_echo_n "checking serf library version... " >&6; }
5389 SERF_VERSION=`$PKG_CONFIG $serf_major --modversion`
5390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SERF_VERSION" >&5
5391 $as_echo "$SERF_VERSION" >&6; }
5392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking serf version is suitable" >&5
5393 $as_echo_n "checking serf version is suitable... " >&6; }
5394 if $PKG_CONFIG $serf_major --atleast-version=$serf_check_version; then
5395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5396 $as_echo "yes" >&6; }
5398 SVN_SERF_INCLUDES=`$PKG_CONFIG $serf_major --cflags | $SED -e 's/-D[^ ]*//g'`
5399 SVN_SERF_LIBS=`$PKG_CONFIG $serf_major --libs`
5402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5403 $as_echo "no" >&6; }
5404 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Serf version too old: need $serf_check_version" >&5
5405 $as_echo "$as_me: WARNING: Serf version too old: need $serf_check_version" >&2;}
5408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5409 $as_echo "no" >&6; }
5416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking was serf enabled" >&5
5417 $as_echo_n "checking was serf enabled... " >&6; }
5418 if test "$serf_found" = "yes"; then
5419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5420 $as_echo "yes" >&6; }
5422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5423 $as_echo "no" >&6; }
5426 echo "An appropriate version of serf could not be found, so libsvn_ra_serf"
5427 echo "will not be built. If you want to build libsvn_ra_serf, please"
5428 echo "install serf $serf_check_version or newer."
5431 if test "$serf_required" = "yes"; then
5432 as_fn_error $? "Serf was explicitly enabled but an appropriate version was not found." "$LINENO" 5
5437 svn_lib_serf=$serf_found
5443 if test "$svn_lib_serf" = "yes"; then
5445 $as_echo "#define SVN_HAVE_SERF 1" >>confdefs.h
5450 apr_memcache_found=no
5453 # Check whether --with-apr_memcache was given.
5454 if test "${with_apr_memcache+set}" = set; then :
5455 withval=$with_apr_memcache;
5456 if test "$withval" = "yes" ; then
5457 as_fn_error $? "--with-apr_memcache requires an argument." "$LINENO" 5
5459 { $as_echo "$as_me:${as_lineno-$LINENO}: looking for separate apr_memcache package" >&5
5460 $as_echo "$as_me: looking for separate apr_memcache package" >&6;}
5461 apr_memcache_prefix=$withval
5462 save_cppflags="$CPPFLAGS"
5463 CPPFLAGS="$CPPFLAGS $SVN_APR_INCLUDES $SVN_APRUTIL_INCLUDES -I$apr_memcache_prefix/include/apr_memcache-0"
5464 ac_fn_c_check_header_mongrel "$LINENO" "apr_memcache.h" "ac_cv_header_apr_memcache_h" "$ac_includes_default"
5465 if test "x$ac_cv_header_apr_memcache_h" = xyes; then :
5467 save_ldflags="$LDFLAGS"
5468 LDFLAGS="$LDFLAGS -L$apr_memcache_prefix/lib"
5469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for apr_memcache_create in -lapr_memcache" >&5
5470 $as_echo_n "checking for apr_memcache_create in -lapr_memcache... " >&6; }
5471 if ${ac_cv_lib_apr_memcache_apr_memcache_create+:} false; then :
5472 $as_echo_n "(cached) " >&6
5474 ac_check_lib_save_LIBS=$LIBS
5475 LIBS="-lapr_memcache $LIBS"
5476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5477 /* end confdefs.h. */
5479 /* Override any GCC internal prototype to avoid an error.
5480 Use char because int might match the return type of a GCC
5481 builtin and then its argument prototype would still apply. */
5485 char apr_memcache_create ();
5489 return apr_memcache_create ();
5494 if ac_fn_c_try_link "$LINENO"; then :
5495 ac_cv_lib_apr_memcache_apr_memcache_create=yes
5497 ac_cv_lib_apr_memcache_apr_memcache_create=no
5499 rm -f core conftest.err conftest.$ac_objext \
5500 conftest$ac_exeext conftest.$ac_ext
5501 LIBS=$ac_check_lib_save_LIBS
5503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_apr_memcache_apr_memcache_create" >&5
5504 $as_echo "$ac_cv_lib_apr_memcache_apr_memcache_create" >&6; }
5505 if test "x$ac_cv_lib_apr_memcache_apr_memcache_create" = xyes; then :
5506 apr_memcache_found="standalone"
5509 LDFLAGS="$save_ldflags"
5513 CPPFLAGS="$save_cppflags"
5518 { $as_echo "$as_me:${as_lineno-$LINENO}: looking for apr_memcache as part of apr-util" >&5
5519 $as_echo "$as_me: looking for apr_memcache as part of apr-util" >&6;}
5520 save_cppflags="$CPPFLAGS"
5521 CPPFLAGS="$CPPFLAGS $SVN_APR_INCLUDES $SVN_APRUTIL_INCLUDES"
5522 ac_fn_c_check_header_mongrel "$LINENO" "apr_memcache.h" "ac_cv_header_apr_memcache_h" "$ac_includes_default"
5523 if test "x$ac_cv_header_apr_memcache_h" = xyes; then :
5525 save_ldflags="$LDFLAGS"
5526 LDFLAGS="$LDFLAGS $SVN_APRUTIL_LIBS"
5527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for apr_memcache_create in -laprutil-1" >&5
5528 $as_echo_n "checking for apr_memcache_create in -laprutil-1... " >&6; }
5529 if ${ac_cv_lib_aprutil_1_apr_memcache_create+:} false; then :
5530 $as_echo_n "(cached) " >&6
5532 ac_check_lib_save_LIBS=$LIBS
5533 LIBS="-laprutil-1 $LIBS"
5534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5535 /* end confdefs.h. */
5537 /* Override any GCC internal prototype to avoid an error.
5538 Use char because int might match the return type of a GCC
5539 builtin and then its argument prototype would still apply. */
5543 char apr_memcache_create ();
5547 return apr_memcache_create ();
5552 if ac_fn_c_try_link "$LINENO"; then :
5553 ac_cv_lib_aprutil_1_apr_memcache_create=yes
5555 ac_cv_lib_aprutil_1_apr_memcache_create=no
5557 rm -f core conftest.err conftest.$ac_objext \
5558 conftest$ac_exeext conftest.$ac_ext
5559 LIBS=$ac_check_lib_save_LIBS
5561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_aprutil_1_apr_memcache_create" >&5
5562 $as_echo "$ac_cv_lib_aprutil_1_apr_memcache_create" >&6; }
5563 if test "x$ac_cv_lib_aprutil_1_apr_memcache_create" = xyes; then :
5564 apr_memcache_found="aprutil"
5567 LDFLAGS="$save_ldflags"
5571 CPPFLAGS="$save_cppflags"
5577 if test $apr_memcache_found = "standalone"; then
5578 SVN_APR_MEMCACHE_INCLUDES="-I$apr_memcache_prefix/include/apr_memcache-0"
5579 SVN_APR_MEMCACHE_LIBS="$apr_memcache_prefix/lib/libapr_memcache.la"
5580 svn_lib_apr_memcache=yes
5581 elif test $apr_memcache_found = "aprutil"; then
5582 SVN_APR_MEMCACHE_INCLUDES=""
5583 SVN_APR_MEMCACHE_LIBS=""
5584 svn_lib_apr_memcache=yes
5585 elif test $apr_memcache_found = "reconfig"; then
5586 svn_lib_apr_memcache=yes
5588 svn_lib_apr_memcache=no
5595 if test "$svn_lib_apr_memcache" = "yes"; then
5597 $as_echo "#define SVN_HAVE_MEMCACHE 1" >>confdefs.h
5605 HTTPD_WANTED_MMN="20020903"
5607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Apache module support via DSO through APXS" >&5
5608 $as_echo_n "checking for Apache module support via DSO through APXS... " >&6; }
5610 # Check whether --with-apxs was given.
5611 if test "${with_apxs+set}" = set; then :
5613 if test "$withval" = "yes"; then
5623 if test -z "$APXS"; then
5624 for i in /usr/sbin /usr/local/apache/bin /usr/local/apache2/bin /usr/bin ; do
5625 if test -f "$i/apxs2"; then
5629 if test -f "$i/apxs"; then
5636 if test -n "$APXS" && test "$APXS" != "no"; then
5637 APXS_INCLUDE="`$APXS -q INCLUDEDIR`"
5638 if test -r $APXS_INCLUDE/mod_dav.h; then
5639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found at $APXS" >&5
5640 $as_echo "found at $APXS" >&6; }
5642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking httpd version" >&5
5643 $as_echo_n "checking httpd version... " >&6; }
5644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5645 /* end confdefs.h. */
5647 #include "$APXS_INCLUDE/ap_mmn.h"
5648 #if AP_MODULE_MAGIC_AT_LEAST($HTTPD_WANTED_MMN,0)
5652 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5653 $EGREP "VERSION_OKAY" >/dev/null 2>&1; then :
5654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: recent enough" >&5
5655 $as_echo "recent enough" >&6; }
5657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: apache too old: mmn must be at least $HTTPD_WANTED_MMN" >&5
5658 $as_echo "apache too old: mmn must be at least $HTTPD_WANTED_MMN" >&6; }
5659 if test "$APXS_EXPLICIT" != ""; then
5660 as_fn_error $? "Apache APXS build explicitly requested, but apache version is too old" "$LINENO" 5
5668 elif test "$APXS_EXPLICIT" != ""; then
5669 as_fn_error $? "no - APXS refers to an old version of Apache
5670 Unable to locate $APXS_INCLUDE/mod_dav.h" "$LINENO" 5
5672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no - Unable to locate $APXS_INCLUDE/mod_dav.h" >&5
5673 $as_echo "no - Unable to locate $APXS_INCLUDE/mod_dav.h" >&6; }
5677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5678 $as_echo "no" >&6; }
5681 if test -n "$APXS" && test "$APXS" != "no"; then
5682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Apache version is compatible with APR version" >&5
5683 $as_echo_n "checking whether Apache version is compatible with APR version... " >&6; }
5684 apr_major_version="${apr_version%%.*}"
5685 case "$apr_major_version" in
5687 apache_minor_version_wanted_regex="0"
5690 apache_minor_version_wanted_regex="[1-5]"
5693 apache_minor_version_wanted_regex="[3-5]"
5696 as_fn_error $? "unknown APR version" "$LINENO" 5
5699 old_CPPFLAGS="$CPPFLAGS"
5700 CPPFLAGS="$CPPFLAGS $SVN_APR_INCLUDES"
5701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5702 /* end confdefs.h. */
5704 #include "$APXS_INCLUDE/ap_release.h"
5705 apache_minor_version=AP_SERVER_MINORVERSION
5707 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5708 $EGREP "apache_minor_version= *\"$apache_minor_version_wanted_regex\"" >/dev/null 2>&1; then :
5709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5710 $as_echo "yes" >&6; }
5712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5713 $as_echo "no" >&6; }
5714 as_fn_error $? "Apache version incompatible with APR version" "$LINENO" 5
5718 CPPFLAGS="$old_CPPFLAGS"
5722 # Check whether --with-apache-libexecdir was given.
5723 if test "${with_apache_libexecdir+set}" = set; then :
5724 withval=$with_apache_libexecdir; APACHE_LIBEXECDIR="$withval"
5726 APACHE_LIBEXECDIR='no'
5730 INSTALL_APACHE_MODS=false
5731 if test -n "$APXS" && test "$APXS" != "no"; then
5732 APXS_CC="`$APXS -q CC`"
5733 APACHE_INCLUDES="$APACHE_INCLUDES -I$APXS_INCLUDE"
5735 if test "$APACHE_LIBEXECDIR" = 'no'; then
5736 APACHE_LIBEXECDIR="$libexecdir"
5737 elif test "$APACHE_LIBEXECDIR" = 'yes'; then
5738 APACHE_LIBEXECDIR="`$APXS -q libexecdir`"
5741 BUILD_APACHE_RULE=apache-mod
5742 INSTALL_APACHE_RULE=install-mods-shared
5743 INSTALL_APACHE_MODS=true
5747 APACHE_LDFLAGS="-shrext .so"
5750 elif test x"$APXS" != x"no"; then
5751 echo "=================================================================="
5752 echo "WARNING: skipping the build of mod_dav_svn"
5753 echo " try using --with-apxs"
5754 echo "=================================================================="
5763 # there aren't any flags that interest us ...
5764 #if test -n "$APXS" && test "$APXS" != "no"; then
5765 # CFLAGS="$CFLAGS `$APXS -q CFLAGS CFLAGS_SHLIB`"
5768 if test -n "$APXS_CC" && test "$APXS_CC" != "$CC" ; then
5769 echo "=================================================================="
5770 echo "WARNING: You have chosen to compile Subversion with a different"
5771 echo " compiler than the one used to compile Apache."
5773 echo " Current compiler: $CC"
5774 echo " Apache's compiler: $APXS_CC"
5776 echo "This could cause some problems."
5777 echo "=================================================================="
5782 SQLITE_MINIMUM_VER="3.7.12"
5783 SQLITE_RECOMMENDED_VER="3.7.15.1"
5784 SQLITE_URL="http://www.sqlite.org/sqlite-amalgamation-$(printf %d%02d%02d%02d $(echo ${SQLITE_RECOMMENDED_VER} | sed -e 's/\./ /g')).zip"
5787 SQLITE_MINIMUM_VER="${SQLITE_MINIMUM_VER}"
5788 SQLITE_RECOMMENDED_VER="${SQLITE_RECOMMENDED_VER}"
5789 SQLITE_URL="${SQLITE_URL}"
5790 SQLITE_PKGNAME="sqlite3"
5794 version_string="$SQLITE_MINIMUM_VER"
5796 major=`expr $version_string : '\([0-9]*\)'`
5797 minor=`expr $version_string : '[0-9]*\.\([0-9]*\)'`
5798 micro=`expr $version_string : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
5799 if test -z "$micro"; then
5802 sqlite_min_ver_num=`expr $major \* 1000000 \
5808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sqlite library" >&5
5809 $as_echo "$as_me: checking sqlite library" >&6;}
5812 # Check whether --with-sqlite was given.
5813 if test "${with_sqlite+set}" = set; then :
5814 withval=$with_sqlite;
5815 if test "$withval" = "yes" ; then
5816 as_fn_error $? "--with-sqlite requires an argument." "$LINENO" 5
5818 sqlite_dir="$withval"
5821 if test -d $sqlite_dir; then
5823 if test -z "$sqlite_dir"; then
5825 sqlite_include="sqlite3.h"
5827 sqlite_dir="$sqlite_dir"
5828 sqlite_include="$sqlite_dir/include/sqlite3.h"
5831 save_CPPFLAGS="$CPPFLAGS"
5832 save_LDFLAGS="$LDFLAGS"
5834 if test ! -z "$sqlite_dir"; then
5835 CPPFLAGS="$CPPFLAGS -I$sqlite_dir/include"
5836 LDFLAGS="$LDFLAGS -L$sqlite_dir/lib"
5839 ac_fn_c_check_header_mongrel "$LINENO" "sqlite3.h" "ac_cv_header_sqlite3_h" "$ac_includes_default"
5840 if test "x$ac_cv_header_sqlite3_h" = xyes; then :
5842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sqlite library version (via header)" >&5
5843 $as_echo_n "checking sqlite library version (via header)... " >&6; }
5844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5845 /* end confdefs.h. */
5847 #include "$sqlite_include"
5848 #if SQLITE_VERSION_NUMBER >= $sqlite_min_ver_num
5852 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5853 $EGREP "SQLITE_VERSION_OKAY" >/dev/null 2>&1; then :
5854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: okay" >&5
5855 $as_echo "okay" >&6; }
5856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite3_close in -lsqlite3" >&5
5857 $as_echo_n "checking for sqlite3_close in -lsqlite3... " >&6; }
5858 if ${ac_cv_lib_sqlite3_sqlite3_close+:} false; then :
5859 $as_echo_n "(cached) " >&6
5861 ac_check_lib_save_LIBS=$LIBS
5862 LIBS="-lsqlite3 $LIBS"
5863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5864 /* end confdefs.h. */
5866 /* Override any GCC internal prototype to avoid an error.
5867 Use char because int might match the return type of a GCC
5868 builtin and then its argument prototype would still apply. */
5872 char sqlite3_close ();
5876 return sqlite3_close ();
5881 if ac_fn_c_try_link "$LINENO"; then :
5882 ac_cv_lib_sqlite3_sqlite3_close=yes
5884 ac_cv_lib_sqlite3_sqlite3_close=no
5886 rm -f core conftest.err conftest.$ac_objext \
5887 conftest$ac_exeext conftest.$ac_ext
5888 LIBS=$ac_check_lib_save_LIBS
5890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_close" >&5
5891 $as_echo "$ac_cv_lib_sqlite3_sqlite3_close" >&6; }
5892 if test "x$ac_cv_lib_sqlite3_sqlite3_close" = xyes; then :
5894 svn_lib_sqlite="yes"
5895 if test -z "$sqlite_dir" -o ! -d "$sqlite_dir"; then
5896 SVN_SQLITE_LIBS="-lsqlite3"
5898 SVN_SQLITE_INCLUDES="-I$sqlite_dir/include"
5900 input_flags="-L$sqlite_dir/lib -lsqlite3"
5902 filtered_dirs="/lib /lib64 /usr/lib /usr/lib64"
5903 for flag in $input_flags; do
5905 for dir in $filtered_dirs; do
5906 if test "$flag" = "-L$dir" || test "$flag" = "-L$dir/"; then
5911 if test "$filter" = "no"; then
5912 output_flags="$output_flags $flag"
5915 if test -n "$output_flags"; then
5916 printf "%s" "${output_flags# }"
5924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported SQLite version" >&5
5925 $as_echo "unsupported SQLite version" >&6; }
5934 CPPFLAGS="$save_CPPFLAGS"
5935 LDFLAGS="$save_LDFLAGS"
5939 sqlite_amalg="$sqlite_dir"
5940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sqlite amalgamation" >&5
5941 $as_echo_n "checking sqlite amalgamation... " >&6; }
5942 if test ! -e $sqlite_amalg; then
5943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5944 $as_echo "no" >&6; }
5946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5947 $as_echo "yes" >&6; }
5948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sqlite amalgamation file version" >&5
5949 $as_echo_n "checking sqlite amalgamation file version... " >&6; }
5950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5951 /* end confdefs.h. */
5953 #include "$sqlite_amalg"
5954 #if SQLITE_VERSION_NUMBER >= $sqlite_min_ver_num
5958 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5959 $EGREP "SQLITE_VERSION_OKAY" >/dev/null 2>&1; then :
5960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: amalgamation found and is okay" >&5
5961 $as_echo "amalgamation found and is okay" >&6; }
5964 beos* | mingw* | pw32* | cegcc* | cygwin*)
5965 svn_sqlite_dso_ldflags=
5969 # if libdl is installed we need to link against it
5970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
5971 $as_echo_n "checking for dlopen in -ldl... " >&6; }
5972 if ${ac_cv_lib_dl_dlopen+:} false; then :
5973 $as_echo_n "(cached) " >&6
5975 ac_check_lib_save_LIBS=$LIBS
5977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5978 /* end confdefs.h. */
5980 /* Override any GCC internal prototype to avoid an error.
5981 Use char because int might match the return type of a GCC
5982 builtin and then its argument prototype would still apply. */
5995 if ac_fn_c_try_link "$LINENO"; then :
5996 ac_cv_lib_dl_dlopen=yes
5998 ac_cv_lib_dl_dlopen=no
6000 rm -f core conftest.err conftest.$ac_objext \
6001 conftest$ac_exeext conftest.$ac_ext
6002 LIBS=$ac_check_lib_save_LIBS
6004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
6005 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
6006 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
6007 lt_cv_dlopen="dlopen" svn_sqlite_dso_ldflags="-ldl"
6010 svn_sqlite_dso_ldflags=
6017 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
6018 if test "x$ac_cv_func_shl_load" = xyes; then :
6019 svn_sqlite_dso_ldflags=
6021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
6022 $as_echo_n "checking for shl_load in -ldld... " >&6; }
6023 if ${ac_cv_lib_dld_shl_load+:} false; then :
6024 $as_echo_n "(cached) " >&6
6026 ac_check_lib_save_LIBS=$LIBS
6028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6029 /* end confdefs.h. */
6031 /* Override any GCC internal prototype to avoid an error.
6032 Use char because int might match the return type of a GCC
6033 builtin and then its argument prototype would still apply. */
6046 if ac_fn_c_try_link "$LINENO"; then :
6047 ac_cv_lib_dld_shl_load=yes
6049 ac_cv_lib_dld_shl_load=no
6051 rm -f core conftest.err conftest.$ac_objext \
6052 conftest$ac_exeext conftest.$ac_ext
6053 LIBS=$ac_check_lib_save_LIBS
6055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
6056 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
6057 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
6058 svn_sqlite_dso_ldflags="-ldld"
6060 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
6061 if test "x$ac_cv_func_dlopen" = xyes; then :
6062 svn_sqlite_dso_ldflags=
6064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
6065 $as_echo_n "checking for dlopen in -ldl... " >&6; }
6066 if ${ac_cv_lib_dl_dlopen+:} false; then :
6067 $as_echo_n "(cached) " >&6
6069 ac_check_lib_save_LIBS=$LIBS
6071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6072 /* end confdefs.h. */
6074 /* Override any GCC internal prototype to avoid an error.
6075 Use char because int might match the return type of a GCC
6076 builtin and then its argument prototype would still apply. */
6089 if ac_fn_c_try_link "$LINENO"; then :
6090 ac_cv_lib_dl_dlopen=yes
6092 ac_cv_lib_dl_dlopen=no
6094 rm -f core conftest.err conftest.$ac_objext \
6095 conftest$ac_exeext conftest.$ac_ext
6096 LIBS=$ac_check_lib_save_LIBS
6098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
6099 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
6100 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
6101 svn_sqlite_dso_ldflags="-ldl"
6103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
6104 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
6105 if ${ac_cv_lib_svld_dlopen+:} false; then :
6106 $as_echo_n "(cached) " >&6
6108 ac_check_lib_save_LIBS=$LIBS
6110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6111 /* end confdefs.h. */
6113 /* Override any GCC internal prototype to avoid an error.
6114 Use char because int might match the return type of a GCC
6115 builtin and then its argument prototype would still apply. */
6128 if ac_fn_c_try_link "$LINENO"; then :
6129 ac_cv_lib_svld_dlopen=yes
6131 ac_cv_lib_svld_dlopen=no
6133 rm -f core conftest.err conftest.$ac_objext \
6134 conftest$ac_exeext conftest.$ac_ext
6135 LIBS=$ac_check_lib_save_LIBS
6137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
6138 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
6139 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
6140 svn_sqlite_dso_ldflags="-lsvld"
6142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
6143 $as_echo_n "checking for dld_link in -ldld... " >&6; }
6144 if ${ac_cv_lib_dld_dld_link+:} false; then :
6145 $as_echo_n "(cached) " >&6
6147 ac_check_lib_save_LIBS=$LIBS
6149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6150 /* end confdefs.h. */
6152 /* Override any GCC internal prototype to avoid an error.
6153 Use char because int might match the return type of a GCC
6154 builtin and then its argument prototype would still apply. */
6167 if ac_fn_c_try_link "$LINENO"; then :
6168 ac_cv_lib_dld_dld_link=yes
6170 ac_cv_lib_dld_dld_link=no
6172 rm -f core conftest.err conftest.$ac_objext \
6173 conftest$ac_exeext conftest.$ac_ext
6174 LIBS=$ac_check_lib_save_LIBS
6176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
6177 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
6178 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
6179 svn_sqlite_dso_ldflags="-ldld"
6200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking additional libraries for sqlite" >&5
6201 $as_echo_n "checking additional libraries for sqlite... " >&6; }
6202 if test -n "$svn_sqlite_dso_ldflags"; then
6203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${svn_sqlite_dso_ldflags}" >&5
6204 $as_echo "${svn_sqlite_dso_ldflags}" >&6; }
6206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6207 $as_echo "none" >&6; }
6211 $as_echo "#define SVN_SQLITE_INLINE 1" >>confdefs.h
6213 SVN_SQLITE_INCLUDES="-I`dirname $sqlite_amalg`"
6214 if test -n "$svn_sqlite_dso_ldflags"; then
6215 SVN_SQLITE_LIBS="$svn_sqlite_dso_ldflags -lpthread"
6217 SVN_SQLITE_LIBS="-lpthread"
6219 svn_lib_sqlite="yes"
6221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported amalgamation SQLite version" >&5
6222 $as_echo "unsupported amalgamation SQLite version" >&6; }
6230 if test -z "$svn_lib_sqlite"; then
6231 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no suitable sqlite found in $sqlite_dir" >&5
6232 $as_echo "$as_me: WARNING: no suitable sqlite found in $sqlite_dir" >&2;}
6235 echo "An appropriate version of sqlite could not be found. We recommmend"
6236 echo "${SQLITE_RECOMMENDED_VER}, but require at least ${SQLITE_MINIMUM_VER}."
6237 echo "Please either install a newer sqlite on this system"
6241 echo "get the sqlite ${SQLITE_RECOMMENDED_VER} amalgamation from:"
6242 echo " ${SQLITE_URL}"
6243 echo "unpack the archive using unzip and rename the resulting"
6244 echo "directory to:"
6245 echo "$abs_srcdir/sqlite-amalgamation"
6246 if test x"$abs_srcdir" != x"$abs_builddir"; then
6248 echo "$abs_builddir/sqlite-amalgamation"
6251 as_fn_error $? "Subversion requires SQLite" "$LINENO" 5
6258 sqlite_amalg="$abs_srcdir/sqlite-amalgamation/sqlite3.c"
6259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sqlite amalgamation" >&5
6260 $as_echo_n "checking sqlite amalgamation... " >&6; }
6261 if test ! -e $sqlite_amalg; then
6262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6263 $as_echo "no" >&6; }
6265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6266 $as_echo "yes" >&6; }
6267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sqlite amalgamation file version" >&5
6268 $as_echo_n "checking sqlite amalgamation file version... " >&6; }
6269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6270 /* end confdefs.h. */
6272 #include "$sqlite_amalg"
6273 #if SQLITE_VERSION_NUMBER >= $sqlite_min_ver_num
6277 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6278 $EGREP "SQLITE_VERSION_OKAY" >/dev/null 2>&1; then :
6279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: amalgamation found and is okay" >&5
6280 $as_echo "amalgamation found and is okay" >&6; }
6283 beos* | mingw* | pw32* | cegcc* | cygwin*)
6284 svn_sqlite_dso_ldflags=
6288 # if libdl is installed we need to link against it
6289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
6290 $as_echo_n "checking for dlopen in -ldl... " >&6; }
6291 if ${ac_cv_lib_dl_dlopen+:} false; then :
6292 $as_echo_n "(cached) " >&6
6294 ac_check_lib_save_LIBS=$LIBS
6296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6297 /* end confdefs.h. */
6299 /* Override any GCC internal prototype to avoid an error.
6300 Use char because int might match the return type of a GCC
6301 builtin and then its argument prototype would still apply. */
6314 if ac_fn_c_try_link "$LINENO"; then :
6315 ac_cv_lib_dl_dlopen=yes
6317 ac_cv_lib_dl_dlopen=no
6319 rm -f core conftest.err conftest.$ac_objext \
6320 conftest$ac_exeext conftest.$ac_ext
6321 LIBS=$ac_check_lib_save_LIBS
6323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
6324 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
6325 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
6326 lt_cv_dlopen="dlopen" svn_sqlite_dso_ldflags="-ldl"
6329 svn_sqlite_dso_ldflags=
6336 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
6337 if test "x$ac_cv_func_shl_load" = xyes; then :
6338 svn_sqlite_dso_ldflags=
6340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
6341 $as_echo_n "checking for shl_load in -ldld... " >&6; }
6342 if ${ac_cv_lib_dld_shl_load+:} false; then :
6343 $as_echo_n "(cached) " >&6
6345 ac_check_lib_save_LIBS=$LIBS
6347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6348 /* end confdefs.h. */
6350 /* Override any GCC internal prototype to avoid an error.
6351 Use char because int might match the return type of a GCC
6352 builtin and then its argument prototype would still apply. */
6365 if ac_fn_c_try_link "$LINENO"; then :
6366 ac_cv_lib_dld_shl_load=yes
6368 ac_cv_lib_dld_shl_load=no
6370 rm -f core conftest.err conftest.$ac_objext \
6371 conftest$ac_exeext conftest.$ac_ext
6372 LIBS=$ac_check_lib_save_LIBS
6374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
6375 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
6376 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
6377 svn_sqlite_dso_ldflags="-ldld"
6379 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
6380 if test "x$ac_cv_func_dlopen" = xyes; then :
6381 svn_sqlite_dso_ldflags=
6383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
6384 $as_echo_n "checking for dlopen in -ldl... " >&6; }
6385 if ${ac_cv_lib_dl_dlopen+:} false; then :
6386 $as_echo_n "(cached) " >&6
6388 ac_check_lib_save_LIBS=$LIBS
6390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6391 /* end confdefs.h. */
6393 /* Override any GCC internal prototype to avoid an error.
6394 Use char because int might match the return type of a GCC
6395 builtin and then its argument prototype would still apply. */
6408 if ac_fn_c_try_link "$LINENO"; then :
6409 ac_cv_lib_dl_dlopen=yes
6411 ac_cv_lib_dl_dlopen=no
6413 rm -f core conftest.err conftest.$ac_objext \
6414 conftest$ac_exeext conftest.$ac_ext
6415 LIBS=$ac_check_lib_save_LIBS
6417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
6418 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
6419 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
6420 svn_sqlite_dso_ldflags="-ldl"
6422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
6423 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
6424 if ${ac_cv_lib_svld_dlopen+:} false; then :
6425 $as_echo_n "(cached) " >&6
6427 ac_check_lib_save_LIBS=$LIBS
6429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6430 /* end confdefs.h. */
6432 /* Override any GCC internal prototype to avoid an error.
6433 Use char because int might match the return type of a GCC
6434 builtin and then its argument prototype would still apply. */
6447 if ac_fn_c_try_link "$LINENO"; then :
6448 ac_cv_lib_svld_dlopen=yes
6450 ac_cv_lib_svld_dlopen=no
6452 rm -f core conftest.err conftest.$ac_objext \
6453 conftest$ac_exeext conftest.$ac_ext
6454 LIBS=$ac_check_lib_save_LIBS
6456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
6457 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
6458 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
6459 svn_sqlite_dso_ldflags="-lsvld"
6461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
6462 $as_echo_n "checking for dld_link in -ldld... " >&6; }
6463 if ${ac_cv_lib_dld_dld_link+:} false; then :
6464 $as_echo_n "(cached) " >&6
6466 ac_check_lib_save_LIBS=$LIBS
6468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6469 /* end confdefs.h. */
6471 /* Override any GCC internal prototype to avoid an error.
6472 Use char because int might match the return type of a GCC
6473 builtin and then its argument prototype would still apply. */
6486 if ac_fn_c_try_link "$LINENO"; then :
6487 ac_cv_lib_dld_dld_link=yes
6489 ac_cv_lib_dld_dld_link=no
6491 rm -f core conftest.err conftest.$ac_objext \
6492 conftest$ac_exeext conftest.$ac_ext
6493 LIBS=$ac_check_lib_save_LIBS
6495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
6496 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
6497 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
6498 svn_sqlite_dso_ldflags="-ldld"
6519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking additional libraries for sqlite" >&5
6520 $as_echo_n "checking additional libraries for sqlite... " >&6; }
6521 if test -n "$svn_sqlite_dso_ldflags"; then
6522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${svn_sqlite_dso_ldflags}" >&5
6523 $as_echo "${svn_sqlite_dso_ldflags}" >&6; }
6525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6526 $as_echo "none" >&6; }
6530 $as_echo "#define SVN_SQLITE_INLINE 1" >>confdefs.h
6532 SVN_SQLITE_INCLUDES="-I`dirname $sqlite_amalg`"
6533 if test -n "$svn_sqlite_dso_ldflags"; then
6534 SVN_SQLITE_LIBS="$svn_sqlite_dso_ldflags -lpthread"
6536 SVN_SQLITE_LIBS="-lpthread"
6538 svn_lib_sqlite="yes"
6540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported amalgamation SQLite version" >&5
6541 $as_echo "unsupported amalgamation SQLite version" >&6; }
6548 if test -z "$svn_lib_sqlite"; then
6550 sqlite_amalg="$abs_builddir/sqlite-amalgamation/sqlite3.c"
6551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sqlite amalgamation" >&5
6552 $as_echo_n "checking sqlite amalgamation... " >&6; }
6553 if test ! -e $sqlite_amalg; then
6554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6555 $as_echo "no" >&6; }
6557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6558 $as_echo "yes" >&6; }
6559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sqlite amalgamation file version" >&5
6560 $as_echo_n "checking sqlite amalgamation file version... " >&6; }
6561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6562 /* end confdefs.h. */
6564 #include "$sqlite_amalg"
6565 #if SQLITE_VERSION_NUMBER >= $sqlite_min_ver_num
6569 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6570 $EGREP "SQLITE_VERSION_OKAY" >/dev/null 2>&1; then :
6571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: amalgamation found and is okay" >&5
6572 $as_echo "amalgamation found and is okay" >&6; }
6575 beos* | mingw* | pw32* | cegcc* | cygwin*)
6576 svn_sqlite_dso_ldflags=
6580 # if libdl is installed we need to link against it
6581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
6582 $as_echo_n "checking for dlopen in -ldl... " >&6; }
6583 if ${ac_cv_lib_dl_dlopen+:} false; then :
6584 $as_echo_n "(cached) " >&6
6586 ac_check_lib_save_LIBS=$LIBS
6588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6589 /* end confdefs.h. */
6591 /* Override any GCC internal prototype to avoid an error.
6592 Use char because int might match the return type of a GCC
6593 builtin and then its argument prototype would still apply. */
6606 if ac_fn_c_try_link "$LINENO"; then :
6607 ac_cv_lib_dl_dlopen=yes
6609 ac_cv_lib_dl_dlopen=no
6611 rm -f core conftest.err conftest.$ac_objext \
6612 conftest$ac_exeext conftest.$ac_ext
6613 LIBS=$ac_check_lib_save_LIBS
6615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
6616 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
6617 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
6618 lt_cv_dlopen="dlopen" svn_sqlite_dso_ldflags="-ldl"
6621 svn_sqlite_dso_ldflags=
6628 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
6629 if test "x$ac_cv_func_shl_load" = xyes; then :
6630 svn_sqlite_dso_ldflags=
6632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
6633 $as_echo_n "checking for shl_load in -ldld... " >&6; }
6634 if ${ac_cv_lib_dld_shl_load+:} false; then :
6635 $as_echo_n "(cached) " >&6
6637 ac_check_lib_save_LIBS=$LIBS
6639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6640 /* end confdefs.h. */
6642 /* Override any GCC internal prototype to avoid an error.
6643 Use char because int might match the return type of a GCC
6644 builtin and then its argument prototype would still apply. */
6657 if ac_fn_c_try_link "$LINENO"; then :
6658 ac_cv_lib_dld_shl_load=yes
6660 ac_cv_lib_dld_shl_load=no
6662 rm -f core conftest.err conftest.$ac_objext \
6663 conftest$ac_exeext conftest.$ac_ext
6664 LIBS=$ac_check_lib_save_LIBS
6666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
6667 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
6668 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
6669 svn_sqlite_dso_ldflags="-ldld"
6671 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
6672 if test "x$ac_cv_func_dlopen" = xyes; then :
6673 svn_sqlite_dso_ldflags=
6675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
6676 $as_echo_n "checking for dlopen in -ldl... " >&6; }
6677 if ${ac_cv_lib_dl_dlopen+:} false; then :
6678 $as_echo_n "(cached) " >&6
6680 ac_check_lib_save_LIBS=$LIBS
6682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6683 /* end confdefs.h. */
6685 /* Override any GCC internal prototype to avoid an error.
6686 Use char because int might match the return type of a GCC
6687 builtin and then its argument prototype would still apply. */
6700 if ac_fn_c_try_link "$LINENO"; then :
6701 ac_cv_lib_dl_dlopen=yes
6703 ac_cv_lib_dl_dlopen=no
6705 rm -f core conftest.err conftest.$ac_objext \
6706 conftest$ac_exeext conftest.$ac_ext
6707 LIBS=$ac_check_lib_save_LIBS
6709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
6710 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
6711 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
6712 svn_sqlite_dso_ldflags="-ldl"
6714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
6715 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
6716 if ${ac_cv_lib_svld_dlopen+:} false; then :
6717 $as_echo_n "(cached) " >&6
6719 ac_check_lib_save_LIBS=$LIBS
6721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6722 /* end confdefs.h. */
6724 /* Override any GCC internal prototype to avoid an error.
6725 Use char because int might match the return type of a GCC
6726 builtin and then its argument prototype would still apply. */
6739 if ac_fn_c_try_link "$LINENO"; then :
6740 ac_cv_lib_svld_dlopen=yes
6742 ac_cv_lib_svld_dlopen=no
6744 rm -f core conftest.err conftest.$ac_objext \
6745 conftest$ac_exeext conftest.$ac_ext
6746 LIBS=$ac_check_lib_save_LIBS
6748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
6749 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
6750 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
6751 svn_sqlite_dso_ldflags="-lsvld"
6753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
6754 $as_echo_n "checking for dld_link in -ldld... " >&6; }
6755 if ${ac_cv_lib_dld_dld_link+:} false; then :
6756 $as_echo_n "(cached) " >&6
6758 ac_check_lib_save_LIBS=$LIBS
6760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6761 /* end confdefs.h. */
6763 /* Override any GCC internal prototype to avoid an error.
6764 Use char because int might match the return type of a GCC
6765 builtin and then its argument prototype would still apply. */
6778 if ac_fn_c_try_link "$LINENO"; then :
6779 ac_cv_lib_dld_dld_link=yes
6781 ac_cv_lib_dld_dld_link=no
6783 rm -f core conftest.err conftest.$ac_objext \
6784 conftest$ac_exeext conftest.$ac_ext
6785 LIBS=$ac_check_lib_save_LIBS
6787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
6788 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
6789 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
6790 svn_sqlite_dso_ldflags="-ldld"
6811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking additional libraries for sqlite" >&5
6812 $as_echo_n "checking additional libraries for sqlite... " >&6; }
6813 if test -n "$svn_sqlite_dso_ldflags"; then
6814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${svn_sqlite_dso_ldflags}" >&5
6815 $as_echo "${svn_sqlite_dso_ldflags}" >&6; }
6817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6818 $as_echo "none" >&6; }
6822 $as_echo "#define SVN_SQLITE_INLINE 1" >>confdefs.h
6824 SVN_SQLITE_INCLUDES="-I`dirname $sqlite_amalg`"
6825 if test -n "$svn_sqlite_dso_ldflags"; then
6826 SVN_SQLITE_LIBS="$svn_sqlite_dso_ldflags -lpthread"
6828 SVN_SQLITE_LIBS="-lpthread"
6830 svn_lib_sqlite="yes"
6832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported amalgamation SQLite version" >&5
6833 $as_echo "unsupported amalgamation SQLite version" >&6; }
6841 if test -z "$svn_lib_sqlite"; then
6845 sqlite_include="sqlite3.h"
6848 sqlite_include="/include/sqlite3.h"
6851 save_CPPFLAGS="$CPPFLAGS"
6852 save_LDFLAGS="$LDFLAGS"
6854 if test ! -z ""; then
6855 CPPFLAGS="$CPPFLAGS -I$sqlite_dir/include"
6856 LDFLAGS="$LDFLAGS -L$sqlite_dir/lib"
6859 ac_fn_c_check_header_mongrel "$LINENO" "sqlite3.h" "ac_cv_header_sqlite3_h" "$ac_includes_default"
6860 if test "x$ac_cv_header_sqlite3_h" = xyes; then :
6862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sqlite library version (via header)" >&5
6863 $as_echo_n "checking sqlite library version (via header)... " >&6; }
6864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6865 /* end confdefs.h. */
6867 #include "$sqlite_include"
6868 #if SQLITE_VERSION_NUMBER >= $sqlite_min_ver_num
6872 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6873 $EGREP "SQLITE_VERSION_OKAY" >/dev/null 2>&1; then :
6874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: okay" >&5
6875 $as_echo "okay" >&6; }
6876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite3_close in -lsqlite3" >&5
6877 $as_echo_n "checking for sqlite3_close in -lsqlite3... " >&6; }
6878 if ${ac_cv_lib_sqlite3_sqlite3_close+:} false; then :
6879 $as_echo_n "(cached) " >&6
6881 ac_check_lib_save_LIBS=$LIBS
6882 LIBS="-lsqlite3 $LIBS"
6883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6884 /* end confdefs.h. */
6886 /* Override any GCC internal prototype to avoid an error.
6887 Use char because int might match the return type of a GCC
6888 builtin and then its argument prototype would still apply. */
6892 char sqlite3_close ();
6896 return sqlite3_close ();
6901 if ac_fn_c_try_link "$LINENO"; then :
6902 ac_cv_lib_sqlite3_sqlite3_close=yes
6904 ac_cv_lib_sqlite3_sqlite3_close=no
6906 rm -f core conftest.err conftest.$ac_objext \
6907 conftest$ac_exeext conftest.$ac_ext
6908 LIBS=$ac_check_lib_save_LIBS
6910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_close" >&5
6911 $as_echo "$ac_cv_lib_sqlite3_sqlite3_close" >&6; }
6912 if test "x$ac_cv_lib_sqlite3_sqlite3_close" = xyes; then :
6914 svn_lib_sqlite="yes"
6915 if test -z "$sqlite_dir" -o ! -d "$sqlite_dir"; then
6916 SVN_SQLITE_LIBS="-lsqlite3"
6918 SVN_SQLITE_INCLUDES="-I$sqlite_dir/include"
6920 input_flags="-L$sqlite_dir/lib -lsqlite3"
6922 filtered_dirs="/lib /lib64 /usr/lib /usr/lib64"
6923 for flag in $input_flags; do
6925 for dir in $filtered_dirs; do
6926 if test "$flag" = "-L$dir" || test "$flag" = "-L$dir/"; then
6931 if test "$filter" = "no"; then
6932 output_flags="$output_flags $flag"
6935 if test -n "$output_flags"; then
6936 printf "%s" "${output_flags# }"
6944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported SQLite version" >&5
6945 $as_echo "unsupported SQLite version" >&6; }
6954 CPPFLAGS="$save_CPPFLAGS"
6955 LDFLAGS="$save_LDFLAGS"
6959 if test -z "$svn_lib_sqlite"; then
6961 if test -n "$PKG_CONFIG"; then
6962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sqlite library version (via pkg-config)" >&5
6963 $as_echo_n "checking sqlite library version (via pkg-config)... " >&6; }
6964 sqlite_version=`$PKG_CONFIG $SQLITE_PKGNAME --modversion --silence-errors`
6966 if test -n "$sqlite_version"; then
6968 version_string="$sqlite_version"
6970 major=`expr $version_string : '\([0-9]*\)'`
6971 minor=`expr $version_string : '[0-9]*\.\([0-9]*\)'`
6972 micro=`expr $version_string : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
6973 if test -z "$micro"; then
6976 sqlite_ver_num=`expr $major \* 1000000 \
6981 if test "$sqlite_ver_num" -ge "$sqlite_min_ver_num"; then
6982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sqlite_version" >&5
6983 $as_echo "$sqlite_version" >&6; }
6984 svn_lib_sqlite="yes"
6985 SVN_SQLITE_INCLUDES="`$PKG_CONFIG $SQLITE_PKGNAME --cflags`"
6986 SVN_SQLITE_LIBS="`$PKG_CONFIG $SQLITE_PKGNAME --libs`"
6988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none or unsupported $sqlite_version" >&5
6989 $as_echo "none or unsupported $sqlite_version" >&6; }
6994 if test -z "$svn_lib_sqlite"; then
6995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6996 $as_echo "no" >&6; }
7001 if test -z "$svn_lib_sqlite"; then
7004 echo "An appropriate version of sqlite could not be found. We recommmend"
7005 echo "${SQLITE_RECOMMENDED_VER}, but require at least ${SQLITE_MINIMUM_VER}."
7006 echo "Please either install a newer sqlite on this system"
7010 echo "get the sqlite ${SQLITE_RECOMMENDED_VER} amalgamation from:"
7011 echo " ${SQLITE_URL}"
7012 echo "unpack the archive using unzip and rename the resulting"
7013 echo "directory to:"
7014 echo "$abs_srcdir/sqlite-amalgamation"
7015 if test x"$abs_srcdir" != x"$abs_builddir"; then
7017 echo "$abs_builddir/sqlite-amalgamation"
7020 as_fn_error $? "Subversion requires SQLite" "$LINENO" 5
7031 # Check whether --enable-sqlite-compatibility-version was given.
7032 if test "${enable_sqlite_compatibility_version+set}" = set; then :
7033 enableval=$enable_sqlite_compatibility_version; sqlite_compat_ver=$enableval
7035 sqlite_compat_ver=no
7039 if test -n "$sqlite_compat_ver" && test "$sqlite_compat_ver" != no; then
7041 version_string="$sqlite_compat_ver"
7043 major=`expr $version_string : '\([0-9]*\)'`
7044 minor=`expr $version_string : '[0-9]*\.\([0-9]*\)'`
7045 micro=`expr $version_string : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
7046 if test -z "$micro"; then
7049 sqlite_compat_ver_num=`expr $major \* 1000000 \
7053 CFLAGS="-DSVN_SQLITE_MIN_VERSION='\"$sqlite_compat_ver\"' $CFLAGS"
7054 CFLAGS="-DSVN_SQLITE_MIN_VERSION_NUMBER=$sqlite_compat_ver_num $CFLAGS"
7058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler provides atomic builtins" >&5
7059 $as_echo_n "checking whether the compiler provides atomic builtins... " >&6; }
7060 if ${svn_cv_atomic_builtins+:} false; then :
7061 $as_echo_n "(cached) " >&6
7063 if test "$cross_compiling" = yes; then :
7064 svn_cv_atomic_builtins=no
7066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7067 /* end confdefs.h. */
7071 unsigned long long val = 1010, tmp, *mem = &val;
7073 if (__sync_fetch_and_add(&val, 1010) != 1010 || val != 2020)
7078 if (__sync_fetch_and_sub(mem, 1010) != tmp || val != 1010)
7081 if (__sync_sub_and_fetch(&val, 1010) != 0 || val != 0)
7086 if (__sync_val_compare_and_swap(mem, 0, tmp) != 0 || val != tmp)
7089 if (__sync_lock_test_and_set(&val, 4040) != 3030)
7094 if (__sync_val_compare_and_swap(&mem, &tmp, &val) != &tmp)
7097 __sync_synchronize();
7105 if ac_fn_c_try_run "$LINENO"; then :
7106 svn_cv_atomic_builtins=yes
7108 svn_cv_atomic_builtins=no
7110 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7111 conftest.$ac_objext conftest.beam conftest.$ac_ext
7115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $svn_cv_atomic_builtins" >&5
7116 $as_echo "$svn_cv_atomic_builtins" >&6; }
7119 if test "$svn_cv_atomic_builtins" = "yes"; then
7121 $as_echo "#define SVN_HAS_ATOMIC_BUILTINS 1" >>confdefs.h
7126 if test "${bindir}" = '${exec_prefix}/bin'; then
7127 if test "${exec_prefix}" = "NONE"; then
7128 if test "${prefix}" = "NONE"; then
7129 SVN_BINDIR="${ac_default_prefix}/bin"
7131 SVN_BINDIR="${prefix}/bin"
7134 SVN_BINDIR="${exec_prefix}/bin"
7137 SVN_BINDIR="${bindir}"
7140 SVN_BINDIR="`eval echo ${SVN_BINDIR}`"
7144 cat >>confdefs.h <<_ACEOF
7145 #define SVN_BINDIR "${SVN_BINDIR}"
7149 localedir='${datadir}/locale'
7152 if test "${datadir}" = '${prefix}/share' && test "${prefix}" = "NONE"; then
7153 exp_localedir='${ac_default_prefix}/share/locale'
7155 exp_localedir=$localedir
7159 svn_cur=""${exp_localedir}""
7160 while test "x${svn_cur}" != "x${svn_last}";
7162 svn_last="${svn_cur}"
7163 svn_cur=`eval "echo ${svn_cur}"`
7165 svn_localedir="${svn_cur}"
7168 cat >>confdefs.h <<_ACEOF
7169 #define SVN_LOCALE_DIR "${svn_localedir}"
7173 { $as_echo "$as_me:${as_lineno-$LINENO}: configuring libtool now" >&5
7174 $as_echo "$as_me: configuring libtool now" >&6;}
7177 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
7178 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
7183 macro_version='2.4.2'
7184 macro_revision='1.3337'
7198 ltmain="$ac_aux_dir/ltmain.sh"
7200 # Backslashify metacharacters that are still active within
7201 # double-quoted strings.
7202 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7204 # Same as above, but do not quote variable references.
7205 double_quote_subst='s/\(["`\\]\)/\\\1/g'
7207 # Sed substitution to delay expansion of an escaped shell variable in a
7208 # double_quote_subst'ed string.
7209 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7211 # Sed substitution to delay expansion of an escaped single quote.
7212 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7214 # Sed substitution to avoid accidental globbing in evaled expressions
7215 no_glob_subst='s/\*/\\\*/g'
7217 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7218 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
7219 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
7221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
7222 $as_echo_n "checking how to print strings... " >&6; }
7223 # Test print first, because it will be a builtin if present.
7224 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
7225 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
7227 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
7230 # Use this function as a fallback that always works.
7231 func_fallback_echo ()
7233 eval 'cat <<_LTECHO_EOF
7237 ECHO='func_fallback_echo'
7240 # func_echo_all arg...
7241 # Invoke $ECHO with all args, space-separated.
7248 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
7249 $as_echo "printf" >&6; } ;;
7250 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
7251 $as_echo "print -r" >&6; } ;;
7252 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
7253 $as_echo "cat" >&6; } ;;
7269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
7270 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
7271 if ${ac_cv_path_SED+:} false; then :
7272 $as_echo_n "(cached) " >&6
7274 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
7275 for ac_i in 1 2 3 4 5 6 7; do
7276 ac_script="$ac_script$as_nl$ac_script"
7278 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
7279 { ac_script=; unset ac_script;}
7280 if test -z "$SED"; then
7281 ac_path_SED_found=false
7282 # Loop through the user's path and test for each of PROGNAME-LIST
7283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7287 test -z "$as_dir" && as_dir=.
7288 for ac_prog in sed gsed; do
7289 for ac_exec_ext in '' $ac_executable_extensions; do
7290 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
7291 as_fn_executable_p "$ac_path_SED" || continue
7292 # Check for GNU ac_path_SED and select it if it is found.
7293 # Check for GNU $ac_path_SED
7294 case `"$ac_path_SED" --version 2>&1` in
7296 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
7299 $as_echo_n 0123456789 >"conftest.in"
7302 cat "conftest.in" "conftest.in" >"conftest.tmp"
7303 mv "conftest.tmp" "conftest.in"
7304 cp "conftest.in" "conftest.nl"
7305 $as_echo '' >> "conftest.nl"
7306 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
7307 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7308 as_fn_arith $ac_count + 1 && ac_count=$as_val
7309 if test $ac_count -gt ${ac_path_SED_max-0}; then
7310 # Best one so far, save it but keep looking for a better one
7311 ac_cv_path_SED="$ac_path_SED"
7312 ac_path_SED_max=$ac_count
7314 # 10*(2^10) chars as input seems more than enough
7315 test $ac_count -gt 10 && break
7317 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7320 $ac_path_SED_found && break 3
7325 if test -z "$ac_cv_path_SED"; then
7326 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
7333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
7334 $as_echo "$ac_cv_path_SED" >&6; }
7335 SED="$ac_cv_path_SED"
7338 test -z "$SED" && SED=sed
7339 Xsed="$SED -e 1s/^X//"
7351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
7352 $as_echo_n "checking for fgrep... " >&6; }
7353 if ${ac_cv_path_FGREP+:} false; then :
7354 $as_echo_n "(cached) " >&6
7356 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
7357 then ac_cv_path_FGREP="$GREP -F"
7359 if test -z "$FGREP"; then
7360 ac_path_FGREP_found=false
7361 # Loop through the user's path and test for each of PROGNAME-LIST
7362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7363 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7366 test -z "$as_dir" && as_dir=.
7367 for ac_prog in fgrep; do
7368 for ac_exec_ext in '' $ac_executable_extensions; do
7369 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
7370 as_fn_executable_p "$ac_path_FGREP" || continue
7371 # Check for GNU ac_path_FGREP and select it if it is found.
7372 # Check for GNU $ac_path_FGREP
7373 case `"$ac_path_FGREP" --version 2>&1` in
7375 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
7378 $as_echo_n 0123456789 >"conftest.in"
7381 cat "conftest.in" "conftest.in" >"conftest.tmp"
7382 mv "conftest.tmp" "conftest.in"
7383 cp "conftest.in" "conftest.nl"
7384 $as_echo 'FGREP' >> "conftest.nl"
7385 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
7386 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7387 as_fn_arith $ac_count + 1 && ac_count=$as_val
7388 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
7389 # Best one so far, save it but keep looking for a better one
7390 ac_cv_path_FGREP="$ac_path_FGREP"
7391 ac_path_FGREP_max=$ac_count
7393 # 10*(2^10) chars as input seems more than enough
7394 test $ac_count -gt 10 && break
7396 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7399 $ac_path_FGREP_found && break 3
7404 if test -z "$ac_cv_path_FGREP"; then
7405 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7408 ac_cv_path_FGREP=$FGREP
7413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
7414 $as_echo "$ac_cv_path_FGREP" >&6; }
7415 FGREP="$ac_cv_path_FGREP"
7418 test -z "$GREP" && GREP=grep
7438 # Check whether --with-gnu-ld was given.
7439 if test "${with_gnu_ld+set}" = set; then :
7440 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7446 if test "$GCC" = yes; then
7447 # Check if gcc -print-prog-name=ld gives a path.
7448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7449 $as_echo_n "checking for ld used by $CC... " >&6; }
7452 # gcc leaves a trailing carriage return which upsets mingw
7453 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7455 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7458 # Accept absolute paths.
7460 re_direlt='/[^/][^/]*/\.\./'
7461 # Canonicalize the pathname of ld
7462 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
7463 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
7464 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
7466 test -z "$LD" && LD="$ac_prog"
7469 # If it fails, then pretend we aren't using GCC.
7473 # If it is relative, then search for the first ld in PATH.
7477 elif test "$with_gnu_ld" = yes; then
7478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7479 $as_echo_n "checking for GNU ld... " >&6; }
7481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7482 $as_echo_n "checking for non-GNU ld... " >&6; }
7484 if ${lt_cv_path_LD+:} false; then :
7485 $as_echo_n "(cached) " >&6
7487 if test -z "$LD"; then
7488 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7489 for ac_dir in $PATH; do
7491 test -z "$ac_dir" && ac_dir=.
7492 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7493 lt_cv_path_LD="$ac_dir/$ac_prog"
7494 # Check to see if the program is GNU ld. I'd rather use --version,
7495 # but apparently some variants of GNU ld only accept -v.
7496 # Break only if it was the GNU/non-GNU ld that we prefer.
7497 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7498 *GNU* | *'with BFD'*)
7499 test "$with_gnu_ld" != no && break
7502 test "$with_gnu_ld" != yes && break
7509 lt_cv_path_LD="$LD" # Let the user override the test with a path.
7514 if test -n "$LD"; then
7515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7516 $as_echo "$LD" >&6; }
7518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7519 $as_echo "no" >&6; }
7521 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
7522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7523 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7524 if ${lt_cv_prog_gnu_ld+:} false; then :
7525 $as_echo_n "(cached) " >&6
7527 # I'd rather use --version here, but apparently some GNU lds only accept -v.
7528 case `$LD -v 2>&1 </dev/null` in
7529 *GNU* | *'with BFD'*)
7530 lt_cv_prog_gnu_ld=yes
7533 lt_cv_prog_gnu_ld=no
7537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
7538 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
7539 with_gnu_ld=$lt_cv_prog_gnu_ld
7549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
7550 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
7551 if ${lt_cv_path_NM+:} false; then :
7552 $as_echo_n "(cached) " >&6
7554 if test -n "$NM"; then
7555 # Let the user override the test.
7558 lt_nm_to_check="${ac_tool_prefix}nm"
7559 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
7560 lt_nm_to_check="$lt_nm_to_check nm"
7562 for lt_tmp_nm in $lt_nm_to_check; do
7563 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7564 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
7566 test -z "$ac_dir" && ac_dir=.
7567 tmp_nm="$ac_dir/$lt_tmp_nm"
7568 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
7569 # Check to see if the nm accepts a BSD-compat flag.
7570 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
7571 # nm: unknown option "B" ignored
7572 # Tru64's nm complains that /dev/null is an invalid object file
7573 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
7574 */dev/null* | *'Invalid file or object type'*)
7575 lt_cv_path_NM="$tmp_nm -B"
7579 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
7581 lt_cv_path_NM="$tmp_nm -p"
7585 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
7586 continue # so that we can try to find one that supports BSD flags
7595 : ${lt_cv_path_NM=no}
7598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
7599 $as_echo "$lt_cv_path_NM" >&6; }
7600 if test "$lt_cv_path_NM" != "no"; then
7603 # Didn't find any BSD compatible name lister, look for dumpbin.
7604 if test -n "$DUMPBIN"; then :
7605 # Let the user override the test.
7607 if test -n "$ac_tool_prefix"; then
7608 for ac_prog in dumpbin "link -dump"
7610 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7611 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7613 $as_echo_n "checking for $ac_word... " >&6; }
7614 if ${ac_cv_prog_DUMPBIN+:} false; then :
7615 $as_echo_n "(cached) " >&6
7617 if test -n "$DUMPBIN"; then
7618 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
7620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7624 test -z "$as_dir" && as_dir=.
7625 for ac_exec_ext in '' $ac_executable_extensions; do
7626 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7627 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
7628 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7637 DUMPBIN=$ac_cv_prog_DUMPBIN
7638 if test -n "$DUMPBIN"; then
7639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
7640 $as_echo "$DUMPBIN" >&6; }
7642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7643 $as_echo "no" >&6; }
7647 test -n "$DUMPBIN" && break
7650 if test -z "$DUMPBIN"; then
7651 ac_ct_DUMPBIN=$DUMPBIN
7652 for ac_prog in dumpbin "link -dump"
7654 # Extract the first word of "$ac_prog", so it can be a program name with args.
7655 set dummy $ac_prog; ac_word=$2
7656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7657 $as_echo_n "checking for $ac_word... " >&6; }
7658 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
7659 $as_echo_n "(cached) " >&6
7661 if test -n "$ac_ct_DUMPBIN"; then
7662 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
7664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7668 test -z "$as_dir" && as_dir=.
7669 for ac_exec_ext in '' $ac_executable_extensions; do
7670 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7671 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
7672 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7681 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
7682 if test -n "$ac_ct_DUMPBIN"; then
7683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
7684 $as_echo "$ac_ct_DUMPBIN" >&6; }
7686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7687 $as_echo "no" >&6; }
7691 test -n "$ac_ct_DUMPBIN" && break
7694 if test "x$ac_ct_DUMPBIN" = x; then
7697 case $cross_compiling:$ac_tool_warned in
7699 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7700 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7701 ac_tool_warned=yes ;;
7703 DUMPBIN=$ac_ct_DUMPBIN
7707 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
7709 DUMPBIN="$DUMPBIN -symbols"
7717 if test "$DUMPBIN" != ":"; then
7721 test -z "$NM" && NM=nm
7728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
7729 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
7730 if ${lt_cv_nm_interface+:} false; then :
7731 $as_echo_n "(cached) " >&6
7733 lt_cv_nm_interface="BSD nm"
7734 echo "int some_variable = 0;" > conftest.$ac_ext
7735 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
7736 (eval "$ac_compile" 2>conftest.err)
7737 cat conftest.err >&5
7738 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
7739 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
7740 cat conftest.err >&5
7741 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
7742 cat conftest.out >&5
7743 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
7744 lt_cv_nm_interface="MS dumpbin"
7748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
7749 $as_echo "$lt_cv_nm_interface" >&6; }
7751 # find the maximum length of command line arguments
7752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
7753 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
7754 if ${lt_cv_sys_max_cmd_len+:} false; then :
7755 $as_echo_n "(cached) " >&6
7762 # On DJGPP, this test can blow up pretty badly due to problems in libc
7763 # (any single argument exceeding 2000 bytes causes a buffer overrun
7764 # during glob expansion). Even if it were fixed, the result of this
7765 # check would be larger than it should be.
7766 lt_cv_sys_max_cmd_len=12288; # 12K is about right
7770 # Under GNU Hurd, this test is not required because there is
7771 # no limit to the length of command line arguments.
7772 # Libtool will interpret -1 as no limit whatsoever
7773 lt_cv_sys_max_cmd_len=-1;
7776 cygwin* | mingw* | cegcc*)
7777 # On Win9x/ME, this test blows up -- it succeeds, but takes
7778 # about 5 minutes as the teststring grows exponentially.
7779 # Worse, since 9x/ME are not pre-emptively multitasking,
7780 # you end up with a "frozen" computer, even though with patience
7781 # the test eventually succeeds (with a max line length of 256k).
7782 # Instead, let's just punt: use the minimum linelength reported by
7783 # all of the supported platforms: 8192 (on NT/2K/XP).
7784 lt_cv_sys_max_cmd_len=8192;
7788 # On MiNT this can take a long time and run out of memory.
7789 lt_cv_sys_max_cmd_len=8192;
7793 # On AmigaOS with pdksh, this test takes hours, literally.
7794 # So we just punt and use a minimum line length of 8192.
7795 lt_cv_sys_max_cmd_len=8192;
7798 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7799 # This has been around since 386BSD, at least. Likely further.
7800 if test -x /sbin/sysctl; then
7801 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7802 elif test -x /usr/sbin/sysctl; then
7803 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7805 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
7807 # And add a safety zone
7808 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7809 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7813 # We know the value 262144 and hardcode it with a safety zone (like BSD)
7814 lt_cv_sys_max_cmd_len=196608
7818 # The test takes a long time on OS/2.
7819 lt_cv_sys_max_cmd_len=8192
7823 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7824 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7825 # nice to cause kernel panics so lets avoid the loop below.
7826 # First set a reasonable default.
7827 lt_cv_sys_max_cmd_len=16384
7829 if test -x /sbin/sysconfig; then
7830 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7831 *1*) lt_cv_sys_max_cmd_len=-1 ;;
7836 lt_cv_sys_max_cmd_len=102400
7838 sysv5* | sco5v6* | sysv4.2uw2*)
7839 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7840 if test -n "$kargmax"; then
7841 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
7843 lt_cv_sys_max_cmd_len=32768
7847 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
7848 if test -n "$lt_cv_sys_max_cmd_len"; then
7849 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7850 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7852 # Make teststring a little bigger before we do anything with it.
7853 # a 1K string should be a reasonable start.
7854 for i in 1 2 3 4 5 6 7 8 ; do
7855 teststring=$teststring$teststring
7857 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7858 # If test is not a shell built-in, we'll probably end up computing a
7859 # maximum length that is only half of the actual maximum length, but
7861 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
7862 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
7863 test $i != 17 # 1/2 MB should be enough
7866 teststring=$teststring$teststring
7868 # Only check the string length outside the loop.
7869 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
7871 # Add a significant safety factor because C++ compilers can tack on
7872 # massive amounts of additional arguments before passing them to the
7873 # linker. It appears as though 1/2 is a usable value.
7874 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7881 if test -n $lt_cv_sys_max_cmd_len ; then
7882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
7883 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
7885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
7886 $as_echo "none" >&6; }
7888 max_cmd_len=$lt_cv_sys_max_cmd_len
7899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
7900 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
7901 # Try some XSI features
7904 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
7906 && eval 'test $(( 1 + 1 )) -eq 2 \
7907 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
7909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
7910 $as_echo "$xsi_shell" >&6; }
7913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
7914 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
7916 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
7918 && lt_shell_append=yes
7919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
7920 $as_echo "$lt_shell_append" >&6; }
7923 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7933 # test EBCDIC or ASCII
7934 case `echo X|tr X '\101'` in
7935 A) # ASCII based system
7936 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
7937 lt_SP2NL='tr \040 \012'
7938 lt_NL2SP='tr \015\012 \040\040'
7940 *) # EBCDIC based system
7941 lt_SP2NL='tr \100 \n'
7942 lt_NL2SP='tr \r\n \100\100'
7954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
7955 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
7956 if ${lt_cv_to_host_file_cmd+:} false; then :
7957 $as_echo_n "(cached) " >&6
7962 *-*-mingw* ) # actually msys
7963 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
7966 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
7968 * ) # otherwise, assume *nix
7969 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
7975 *-*-mingw* ) # actually msys
7976 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
7979 lt_cv_to_host_file_cmd=func_convert_file_noop
7981 * ) # otherwise, assume *nix
7982 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
7986 * ) # unhandled hosts (and "normal" native builds)
7987 lt_cv_to_host_file_cmd=func_convert_file_noop
7993 to_host_file_cmd=$lt_cv_to_host_file_cmd
7994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
7995 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
8001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
8002 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
8003 if ${lt_cv_to_tool_file_cmd+:} false; then :
8004 $as_echo_n "(cached) " >&6
8006 #assume ordinary cross tools, or native build.
8007 lt_cv_to_tool_file_cmd=func_convert_file_noop
8011 *-*-mingw* ) # actually msys
8012 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
8020 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
8021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
8022 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
8028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
8029 $as_echo_n "checking for $LD option to reload object files... " >&6; }
8030 if ${lt_cv_ld_reload_flag+:} false; then :
8031 $as_echo_n "(cached) " >&6
8033 lt_cv_ld_reload_flag='-r'
8035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
8036 $as_echo "$lt_cv_ld_reload_flag" >&6; }
8037 reload_flag=$lt_cv_ld_reload_flag
8038 case $reload_flag in
8040 *) reload_flag=" $reload_flag" ;;
8042 reload_cmds='$LD$reload_flag -o $output$reload_objs'
8044 cygwin* | mingw* | pw32* | cegcc*)
8045 if test "$GCC" != yes; then
8050 if test "$GCC" = yes; then
8051 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
8053 reload_cmds='$LD$reload_flag -o $output$reload_objs'
8066 if test -n "$ac_tool_prefix"; then
8067 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
8068 set dummy ${ac_tool_prefix}objdump; ac_word=$2
8069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8070 $as_echo_n "checking for $ac_word... " >&6; }
8071 if ${ac_cv_prog_OBJDUMP+:} false; then :
8072 $as_echo_n "(cached) " >&6
8074 if test -n "$OBJDUMP"; then
8075 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
8077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8081 test -z "$as_dir" && as_dir=.
8082 for ac_exec_ext in '' $ac_executable_extensions; do
8083 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8084 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
8085 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8094 OBJDUMP=$ac_cv_prog_OBJDUMP
8095 if test -n "$OBJDUMP"; then
8096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
8097 $as_echo "$OBJDUMP" >&6; }
8099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8100 $as_echo "no" >&6; }
8105 if test -z "$ac_cv_prog_OBJDUMP"; then
8106 ac_ct_OBJDUMP=$OBJDUMP
8107 # Extract the first word of "objdump", so it can be a program name with args.
8108 set dummy objdump; ac_word=$2
8109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8110 $as_echo_n "checking for $ac_word... " >&6; }
8111 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
8112 $as_echo_n "(cached) " >&6
8114 if test -n "$ac_ct_OBJDUMP"; then
8115 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
8117 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8121 test -z "$as_dir" && as_dir=.
8122 for ac_exec_ext in '' $ac_executable_extensions; do
8123 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8124 ac_cv_prog_ac_ct_OBJDUMP="objdump"
8125 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8134 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
8135 if test -n "$ac_ct_OBJDUMP"; then
8136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
8137 $as_echo "$ac_ct_OBJDUMP" >&6; }
8139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8140 $as_echo "no" >&6; }
8143 if test "x$ac_ct_OBJDUMP" = x; then
8146 case $cross_compiling:$ac_tool_warned in
8148 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8149 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8150 ac_tool_warned=yes ;;
8152 OBJDUMP=$ac_ct_OBJDUMP
8155 OBJDUMP="$ac_cv_prog_OBJDUMP"
8158 test -z "$OBJDUMP" && OBJDUMP=objdump
8168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
8169 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
8170 if ${lt_cv_deplibs_check_method+:} false; then :
8171 $as_echo_n "(cached) " >&6
8173 lt_cv_file_magic_cmd='$MAGIC_CMD'
8174 lt_cv_file_magic_test_file=
8175 lt_cv_deplibs_check_method='unknown'
8176 # Need to set the preceding variable on all platforms that support
8177 # interlibrary dependencies.
8178 # 'none' -- dependencies not supported.
8179 # `unknown' -- same as none, but documents that we really don't know.
8180 # 'pass_all' -- all dependencies passed with no checks.
8181 # 'test_compile' -- check by making test program.
8182 # 'file_magic [[regex]]' -- check by looking for files in library path
8183 # which responds to the $file_magic_cmd with a given extended regex.
8184 # If you have `file' or equivalent on your system and you're not sure
8185 # whether `pass_all' will *always* work, you probably want this one.
8189 lt_cv_deplibs_check_method=pass_all
8193 lt_cv_deplibs_check_method=pass_all
8197 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
8198 lt_cv_file_magic_cmd='/usr/bin/file -L'
8199 lt_cv_file_magic_test_file=/shlib/libc.so
8203 # func_win32_libid is a shell function defined in ltmain.sh
8204 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
8205 lt_cv_file_magic_cmd='func_win32_libid'
8209 # Base MSYS/MinGW do not provide the 'file' command needed by
8210 # func_win32_libid shell function, so use a weaker test based on 'objdump',
8211 # unless we find 'file', for example because we are cross-compiling.
8212 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
8213 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
8214 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
8215 lt_cv_file_magic_cmd='func_win32_libid'
8217 # Keep this pattern in sync with the one in func_win32_libid.
8218 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
8219 lt_cv_file_magic_cmd='$OBJDUMP -f'
8224 # use the weaker test based on 'objdump'. See mingw*.
8225 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
8226 lt_cv_file_magic_cmd='$OBJDUMP -f'
8229 darwin* | rhapsody*)
8230 lt_cv_deplibs_check_method=pass_all
8233 freebsd* | dragonfly*)
8234 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8237 # Not sure whether the presence of OpenBSD here was a mistake.
8238 # Let's accept both of them until this is cleared up.
8239 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
8240 lt_cv_file_magic_cmd=/usr/bin/file
8241 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
8245 lt_cv_deplibs_check_method=pass_all
8250 lt_cv_deplibs_check_method=pass_all
8254 lt_cv_deplibs_check_method=pass_all
8257 hpux10.20* | hpux11*)
8258 lt_cv_file_magic_cmd=/usr/bin/file
8261 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
8262 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
8265 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]'
8266 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
8269 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
8270 lt_cv_file_magic_test_file=/usr/lib/libc.sl
8276 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
8277 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
8280 irix5* | irix6* | nonstopux*)
8282 *-32|*"-32 ") libmagic=32-bit;;
8283 *-n32|*"-n32 ") libmagic=N32;;
8284 *-64|*"-64 ") libmagic=64-bit;;
8285 *) libmagic=never-match;;
8287 lt_cv_deplibs_check_method=pass_all
8290 # This must be glibc/ELF.
8291 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8292 lt_cv_deplibs_check_method=pass_all
8296 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8297 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8299 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
8304 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
8305 lt_cv_file_magic_cmd=/usr/bin/file
8306 lt_cv_file_magic_test_file=/usr/lib/libnls.so
8310 lt_cv_deplibs_check_method=pass_all
8314 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8315 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
8317 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8321 osf3* | osf4* | osf5*)
8322 lt_cv_deplibs_check_method=pass_all
8326 lt_cv_deplibs_check_method=pass_all
8330 lt_cv_deplibs_check_method=pass_all
8333 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8334 lt_cv_deplibs_check_method=pass_all
8338 case $host_vendor in
8340 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]'
8341 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
8344 lt_cv_deplibs_check_method=pass_all
8347 lt_cv_file_magic_cmd='/bin/file'
8348 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
8351 lt_cv_file_magic_cmd='/bin/file'
8352 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
8353 lt_cv_file_magic_test_file=/lib/libc.so
8356 lt_cv_deplibs_check_method=pass_all
8359 lt_cv_deplibs_check_method=pass_all
8365 lt_cv_deplibs_check_method=pass_all
8370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
8371 $as_echo "$lt_cv_deplibs_check_method" >&6; }
8375 if test "$build" = "$host"; then
8378 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
8381 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
8387 file_magic_cmd=$lt_cv_file_magic_cmd
8388 deplibs_check_method=$lt_cv_deplibs_check_method
8389 test -z "$deplibs_check_method" && deplibs_check_method=unknown
8412 if test -n "$ac_tool_prefix"; then
8413 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
8414 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
8415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8416 $as_echo_n "checking for $ac_word... " >&6; }
8417 if ${ac_cv_prog_DLLTOOL+:} false; then :
8418 $as_echo_n "(cached) " >&6
8420 if test -n "$DLLTOOL"; then
8421 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8427 test -z "$as_dir" && as_dir=.
8428 for ac_exec_ext in '' $ac_executable_extensions; do
8429 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8430 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
8431 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8440 DLLTOOL=$ac_cv_prog_DLLTOOL
8441 if test -n "$DLLTOOL"; then
8442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8443 $as_echo "$DLLTOOL" >&6; }
8445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8446 $as_echo "no" >&6; }
8451 if test -z "$ac_cv_prog_DLLTOOL"; then
8452 ac_ct_DLLTOOL=$DLLTOOL
8453 # Extract the first word of "dlltool", so it can be a program name with args.
8454 set dummy dlltool; ac_word=$2
8455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8456 $as_echo_n "checking for $ac_word... " >&6; }
8457 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
8458 $as_echo_n "(cached) " >&6
8460 if test -n "$ac_ct_DLLTOOL"; then
8461 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
8463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8467 test -z "$as_dir" && as_dir=.
8468 for ac_exec_ext in '' $ac_executable_extensions; do
8469 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8470 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
8471 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8480 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
8481 if test -n "$ac_ct_DLLTOOL"; then
8482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
8483 $as_echo "$ac_ct_DLLTOOL" >&6; }
8485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8486 $as_echo "no" >&6; }
8489 if test "x$ac_ct_DLLTOOL" = x; then
8492 case $cross_compiling:$ac_tool_warned in
8494 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8495 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8496 ac_tool_warned=yes ;;
8498 DLLTOOL=$ac_ct_DLLTOOL
8501 DLLTOOL="$ac_cv_prog_DLLTOOL"
8504 test -z "$DLLTOOL" && DLLTOOL=dlltool
8515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
8516 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
8517 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
8518 $as_echo_n "(cached) " >&6
8520 lt_cv_sharedlib_from_linklib_cmd='unknown'
8523 cygwin* | mingw* | pw32* | cegcc*)
8524 # two different shell functions defined in ltmain.sh
8525 # decide which to use based on capabilities of $DLLTOOL
8526 case `$DLLTOOL --help 2>&1` in
8527 *--identify-strict*)
8528 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
8531 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
8536 # fallback: assume linklib IS sharedlib
8537 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
8542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
8543 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
8544 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
8545 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
8553 if test -n "$ac_tool_prefix"; then
8556 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8557 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8559 $as_echo_n "checking for $ac_word... " >&6; }
8560 if ${ac_cv_prog_AR+:} false; then :
8561 $as_echo_n "(cached) " >&6
8563 if test -n "$AR"; then
8564 ac_cv_prog_AR="$AR" # Let the user override the test.
8566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8570 test -z "$as_dir" && as_dir=.
8571 for ac_exec_ext in '' $ac_executable_extensions; do
8572 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8573 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
8574 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8584 if test -n "$AR"; then
8585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8586 $as_echo "$AR" >&6; }
8588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8589 $as_echo "no" >&6; }
8593 test -n "$AR" && break
8596 if test -z "$AR"; then
8600 # Extract the first word of "$ac_prog", so it can be a program name with args.
8601 set dummy $ac_prog; ac_word=$2
8602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8603 $as_echo_n "checking for $ac_word... " >&6; }
8604 if ${ac_cv_prog_ac_ct_AR+:} false; then :
8605 $as_echo_n "(cached) " >&6
8607 if test -n "$ac_ct_AR"; then
8608 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8614 test -z "$as_dir" && as_dir=.
8615 for ac_exec_ext in '' $ac_executable_extensions; do
8616 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8617 ac_cv_prog_ac_ct_AR="$ac_prog"
8618 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8627 ac_ct_AR=$ac_cv_prog_ac_ct_AR
8628 if test -n "$ac_ct_AR"; then
8629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
8630 $as_echo "$ac_ct_AR" >&6; }
8632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8633 $as_echo "no" >&6; }
8637 test -n "$ac_ct_AR" && break
8640 if test "x$ac_ct_AR" = x; then
8643 case $cross_compiling:$ac_tool_warned in
8645 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8646 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8647 ac_tool_warned=yes ;;
8666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
8667 $as_echo_n "checking for archiver @FILE support... " >&6; }
8668 if ${lt_cv_ar_at_file+:} false; then :
8669 $as_echo_n "(cached) " >&6
8672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8673 /* end confdefs.h. */
8683 if ac_fn_c_try_compile "$LINENO"; then :
8684 echo conftest.$ac_objext > conftest.lst
8685 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
8686 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
8687 (eval $lt_ar_try) 2>&5
8689 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8690 test $ac_status = 0; }
8691 if test "$ac_status" -eq 0; then
8692 # Ensure the archiver fails upon bogus file names.
8693 rm -f conftest.$ac_objext libconftest.a
8694 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
8695 (eval $lt_ar_try) 2>&5
8697 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8698 test $ac_status = 0; }
8699 if test "$ac_status" -ne 0; then
8703 rm -f conftest.* libconftest.a
8706 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
8710 $as_echo "$lt_cv_ar_at_file" >&6; }
8712 if test "x$lt_cv_ar_at_file" = xno; then
8715 archiver_list_spec=$lt_cv_ar_at_file
8724 if test -n "$ac_tool_prefix"; then
8725 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8726 set dummy ${ac_tool_prefix}strip; ac_word=$2
8727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8728 $as_echo_n "checking for $ac_word... " >&6; }
8729 if ${ac_cv_prog_STRIP+:} false; then :
8730 $as_echo_n "(cached) " >&6
8732 if test -n "$STRIP"; then
8733 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8739 test -z "$as_dir" && as_dir=.
8740 for ac_exec_ext in '' $ac_executable_extensions; do
8741 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8742 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8743 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8752 STRIP=$ac_cv_prog_STRIP
8753 if test -n "$STRIP"; then
8754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8755 $as_echo "$STRIP" >&6; }
8757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8758 $as_echo "no" >&6; }
8763 if test -z "$ac_cv_prog_STRIP"; then
8765 # Extract the first word of "strip", so it can be a program name with args.
8766 set dummy strip; ac_word=$2
8767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8768 $as_echo_n "checking for $ac_word... " >&6; }
8769 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
8770 $as_echo_n "(cached) " >&6
8772 if test -n "$ac_ct_STRIP"; then
8773 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8779 test -z "$as_dir" && as_dir=.
8780 for ac_exec_ext in '' $ac_executable_extensions; do
8781 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8782 ac_cv_prog_ac_ct_STRIP="strip"
8783 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8792 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8793 if test -n "$ac_ct_STRIP"; then
8794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
8795 $as_echo "$ac_ct_STRIP" >&6; }
8797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8798 $as_echo "no" >&6; }
8801 if test "x$ac_ct_STRIP" = x; then
8804 case $cross_compiling:$ac_tool_warned in
8806 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8807 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8808 ac_tool_warned=yes ;;
8813 STRIP="$ac_cv_prog_STRIP"
8816 test -z "$STRIP" && STRIP=:
8823 if test -n "$ac_tool_prefix"; then
8824 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8825 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8827 $as_echo_n "checking for $ac_word... " >&6; }
8828 if ${ac_cv_prog_RANLIB+:} false; then :
8829 $as_echo_n "(cached) " >&6
8831 if test -n "$RANLIB"; then
8832 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8838 test -z "$as_dir" && as_dir=.
8839 for ac_exec_ext in '' $ac_executable_extensions; do
8840 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8841 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8842 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8851 RANLIB=$ac_cv_prog_RANLIB
8852 if test -n "$RANLIB"; then
8853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8854 $as_echo "$RANLIB" >&6; }
8856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8857 $as_echo "no" >&6; }
8862 if test -z "$ac_cv_prog_RANLIB"; then
8863 ac_ct_RANLIB=$RANLIB
8864 # Extract the first word of "ranlib", so it can be a program name with args.
8865 set dummy ranlib; ac_word=$2
8866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8867 $as_echo_n "checking for $ac_word... " >&6; }
8868 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
8869 $as_echo_n "(cached) " >&6
8871 if test -n "$ac_ct_RANLIB"; then
8872 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8874 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8878 test -z "$as_dir" && as_dir=.
8879 for ac_exec_ext in '' $ac_executable_extensions; do
8880 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8881 ac_cv_prog_ac_ct_RANLIB="ranlib"
8882 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8891 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8892 if test -n "$ac_ct_RANLIB"; then
8893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8894 $as_echo "$ac_ct_RANLIB" >&6; }
8896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8897 $as_echo "no" >&6; }
8900 if test "x$ac_ct_RANLIB" = x; then
8903 case $cross_compiling:$ac_tool_warned in
8905 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8906 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8907 ac_tool_warned=yes ;;
8909 RANLIB=$ac_ct_RANLIB
8912 RANLIB="$ac_cv_prog_RANLIB"
8915 test -z "$RANLIB" && RANLIB=:
8922 # Determine commands to create old-style static archives.
8923 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
8924 old_postinstall_cmds='chmod 644 $oldlib'
8925 old_postuninstall_cmds=
8927 if test -n "$RANLIB"; then
8930 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
8933 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
8936 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
8941 lock_old_archive_extraction=yes ;;
8943 lock_old_archive_extraction=no ;;
8966 for ac_prog in gawk mawk nawk awk
8968 # Extract the first word of "$ac_prog", so it can be a program name with args.
8969 set dummy $ac_prog; ac_word=$2
8970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8971 $as_echo_n "checking for $ac_word... " >&6; }
8972 if ${ac_cv_prog_AWK+:} false; then :
8973 $as_echo_n "(cached) " >&6
8975 if test -n "$AWK"; then
8976 ac_cv_prog_AWK="$AWK" # Let the user override the test.
8978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8982 test -z "$as_dir" && as_dir=.
8983 for ac_exec_ext in '' $ac_executable_extensions; do
8984 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8985 ac_cv_prog_AWK="$ac_prog"
8986 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8996 if test -n "$AWK"; then
8997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
8998 $as_echo "$AWK" >&6; }
9000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9001 $as_echo "no" >&6; }
9005 test -n "$AWK" && break
9026 # If no C compiler was specified, use CC.
9029 # If no C compiler flags were specified, use CFLAGS.
9030 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9032 # Allow CC to be a program name with arguments.
9036 # Check for command to grab the raw symbol name followed by C symbol from nm.
9037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
9038 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
9039 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
9040 $as_echo_n "(cached) " >&6
9043 # These are sane defaults that work on at least a few old systems.
9044 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
9046 # Character class describing NM global symbol codes.
9047 symcode='[BCDEGRST]'
9049 # Regexp to match symbols that can be accessed directly from C.
9050 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9052 # Define system-specific variables.
9057 cygwin* | mingw* | pw32* | cegcc*)
9058 symcode='[ABCDGISTW]'
9061 if test "$host_cpu" = ia64; then
9062 symcode='[ABCDEGRST]'
9066 symcode='[BCDEGRST]'
9069 symcode='[BCDEGQRST]'
9080 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9088 # If we're using GNU nm, then use its standard symbol codes.
9089 case `$NM -V 2>&1` in
9090 *GNU* | *'with BFD'*)
9091 symcode='[ABCDGIRSTW]' ;;
9094 # Transform an extracted symbol line into a proper C declaration.
9095 # Some systems (esp. on ia64) link data and code symbols differently,
9096 # so use this general approach.
9097 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9099 # Transform an extracted symbol line into symbol name and symbol address
9100 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
9101 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'"
9103 # Handle CRLF in mingw tool chain
9107 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9111 # Try without a prefix underscore, then with it.
9112 for ac_symprfx in "" "_"; do
9114 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9115 symxfrm="\\1 $ac_symprfx\\2 \\2"
9117 # Write the raw and C identifiers.
9118 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9119 # Fake it for dumpbin and say T for any non-static function
9120 # and D for any global variable.
9121 # Also find C++ and __fastcall symbols from MSVC++,
9122 # which start with @ or ?.
9123 lt_cv_sys_global_symbol_pipe="$AWK '"\
9124 " {last_section=section; section=\$ 3};"\
9125 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
9126 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
9127 " \$ 0!~/External *\|/{next};"\
9128 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
9129 " {if(hide[section]) next};"\
9130 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
9131 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
9132 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
9133 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
9134 " ' prfx=^$ac_symprfx"
9136 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9138 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
9140 # Check to see that the pipe works correctly.
9144 cat > conftest.$ac_ext <<_LT_EOF
9149 void nm_test_func(void);
9150 void nm_test_func(void){}
9154 int main(){nm_test_var='a';nm_test_func();return(0);}
9157 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9158 (eval $ac_compile) 2>&5
9160 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9161 test $ac_status = 0; }; then
9162 # Now try to grab the symbols.
9164 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
9165 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
9167 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9168 test $ac_status = 0; } && test -s "$nlist"; then
9169 # Try sorting and uniquifying the output.
9170 if sort "$nlist" | uniq > "$nlist"T; then
9171 mv -f "$nlist"T "$nlist"
9176 # Make sure that we snagged all the symbols we need.
9177 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
9178 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
9179 cat <<_LT_EOF > conftest.$ac_ext
9180 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
9181 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
9182 /* DATA imports from DLLs on WIN32 con't be const, because runtime
9183 relocations are performed -- see ld's documentation on pseudo-relocs. */
9184 # define LT_DLSYM_CONST
9185 #elif defined(__osf__)
9186 /* This system does not cope well with relocations in const data. */
9187 # define LT_DLSYM_CONST
9189 # define LT_DLSYM_CONST const
9197 # Now generate the symbol file.
9198 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
9200 cat <<_LT_EOF >> conftest.$ac_ext
9202 /* The mapping between symbol names and symbols. */
9203 LT_DLSYM_CONST struct {
9207 lt__PROGRAM__LTX_preloaded_symbols[] =
9209 { "@PROGRAM@", (void *) 0 },
9211 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
9212 cat <<\_LT_EOF >> conftest.$ac_ext
9216 /* This works around a problem in FreeBSD linker */
9217 #ifdef FREEBSD_WORKAROUND
9218 static const void *lt_preloaded_setup() {
9219 return lt__PROGRAM__LTX_preloaded_symbols;
9227 # Now try linking the two files.
9228 mv conftest.$ac_objext conftstm.$ac_objext
9229 lt_globsym_save_LIBS=$LIBS
9230 lt_globsym_save_CFLAGS=$CFLAGS
9231 LIBS="conftstm.$ac_objext"
9232 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9233 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
9234 (eval $ac_link) 2>&5
9236 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9237 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
9240 LIBS=$lt_globsym_save_LIBS
9241 CFLAGS=$lt_globsym_save_CFLAGS
9243 echo "cannot find nm_test_func in $nlist" >&5
9246 echo "cannot find nm_test_var in $nlist" >&5
9249 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9252 echo "$progname: failed program was:" >&5
9253 cat conftest.$ac_ext >&5
9255 rm -rf conftest* conftst*
9257 # Do not use the global_symbol_pipe unless it works.
9258 if test "$pipe_works" = yes; then
9261 lt_cv_sys_global_symbol_pipe=
9267 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9268 lt_cv_sys_global_symbol_to_cdecl=
9270 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
9272 $as_echo "failed" >&6; }
9274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
9275 $as_echo "ok" >&6; }
9278 # Response file support.
9279 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9280 nm_file_list_spec='@'
9281 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
9282 nm_file_list_spec='@'
9311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
9312 $as_echo_n "checking for sysroot... " >&6; }
9314 # Check whether --with-sysroot was given.
9315 if test "${with_sysroot+set}" = set; then :
9316 withval=$with_sysroot;
9323 case ${with_sysroot} in #(
9325 if test "$GCC" = yes; then
9326 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
9330 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
9335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
9336 $as_echo "${with_sysroot}" >&6; }
9337 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
9341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
9342 $as_echo "${lt_sysroot:-no}" >&6; }
9348 # Check whether --enable-libtool-lock was given.
9349 if test "${enable_libtool_lock+set}" = set; then :
9350 enableval=$enable_libtool_lock;
9353 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
9355 # Some flags need to be propagated to the compiler or linker for good
9359 # Find out which ABI we are using.
9360 echo 'int i;' > conftest.$ac_ext
9361 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9362 (eval $ac_compile) 2>&5
9364 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9365 test $ac_status = 0; }; then
9366 case `/usr/bin/file conftest.$ac_objext` in
9378 # Find out which ABI we are using.
9379 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
9380 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9381 (eval $ac_compile) 2>&5
9383 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9384 test $ac_status = 0; }; then
9385 if test "$lt_cv_prog_gnu_ld" = yes; then
9386 case `/usr/bin/file conftest.$ac_objext` in
9388 LD="${LD-ld} -melf32bsmip"
9391 LD="${LD-ld} -melf32bmipn32"
9394 LD="${LD-ld} -melf64bmip"
9398 case `/usr/bin/file conftest.$ac_objext` in
9414 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
9415 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
9416 # Find out which ABI we are using.
9417 echo 'int i;' > conftest.$ac_ext
9418 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9419 (eval $ac_compile) 2>&5
9421 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9422 test $ac_status = 0; }; then
9423 case `/usr/bin/file conftest.o` in
9426 x86_64-*kfreebsd*-gnu)
9427 LD="${LD-ld} -m elf_i386_fbsd"
9430 LD="${LD-ld} -m elf_i386"
9432 ppc64-*linux*|powerpc64-*linux*)
9433 LD="${LD-ld} -m elf32ppclinux"
9436 LD="${LD-ld} -m elf_s390"
9439 LD="${LD-ld} -m elf32_sparc"
9445 x86_64-*kfreebsd*-gnu)
9446 LD="${LD-ld} -m elf_x86_64_fbsd"
9449 LD="${LD-ld} -m elf_x86_64"
9451 ppc*-*linux*|powerpc*-*linux*)
9452 LD="${LD-ld} -m elf64ppc"
9454 s390*-*linux*|s390*-*tpf*)
9455 LD="${LD-ld} -m elf64_s390"
9458 LD="${LD-ld} -m elf64_sparc"
9468 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
9469 SAVE_CFLAGS="$CFLAGS"
9470 CFLAGS="$CFLAGS -belf"
9471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
9472 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
9473 if ${lt_cv_cc_needs_belf+:} false; then :
9474 $as_echo_n "(cached) " >&6
9477 ac_cpp='$CPP $CPPFLAGS'
9478 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9479 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9480 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9483 /* end confdefs.h. */
9493 if ac_fn_c_try_link "$LINENO"; then :
9494 lt_cv_cc_needs_belf=yes
9496 lt_cv_cc_needs_belf=no
9498 rm -f core conftest.err conftest.$ac_objext \
9499 conftest$ac_exeext conftest.$ac_ext
9501 ac_cpp='$CPP $CPPFLAGS'
9502 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9503 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9504 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
9508 $as_echo "$lt_cv_cc_needs_belf" >&6; }
9509 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
9510 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
9511 CFLAGS="$SAVE_CFLAGS"
9515 # Find out which ABI we are using.
9516 echo 'int i;' > conftest.$ac_ext
9517 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9518 (eval $ac_compile) 2>&5
9520 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9521 test $ac_status = 0; }; then
9522 case `/usr/bin/file conftest.o` in
9524 case $lt_cv_prog_gnu_ld in
9528 LD="${LD-ld} -m elf_x86_64"
9531 LD="${LD-ld} -m elf64_sparc"
9534 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
9535 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
9540 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
9552 need_locks="$enable_libtool_lock"
9554 if test -n "$ac_tool_prefix"; then
9555 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
9556 set dummy ${ac_tool_prefix}mt; ac_word=$2
9557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9558 $as_echo_n "checking for $ac_word... " >&6; }
9559 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
9560 $as_echo_n "(cached) " >&6
9562 if test -n "$MANIFEST_TOOL"; then
9563 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
9565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9569 test -z "$as_dir" && as_dir=.
9570 for ac_exec_ext in '' $ac_executable_extensions; do
9571 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9572 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
9573 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9582 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
9583 if test -n "$MANIFEST_TOOL"; then
9584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
9585 $as_echo "$MANIFEST_TOOL" >&6; }
9587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9588 $as_echo "no" >&6; }
9593 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
9594 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
9595 # Extract the first word of "mt", so it can be a program name with args.
9596 set dummy mt; ac_word=$2
9597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9598 $as_echo_n "checking for $ac_word... " >&6; }
9599 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
9600 $as_echo_n "(cached) " >&6
9602 if test -n "$ac_ct_MANIFEST_TOOL"; then
9603 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
9605 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9609 test -z "$as_dir" && as_dir=.
9610 for ac_exec_ext in '' $ac_executable_extensions; do
9611 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9612 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
9613 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9622 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
9623 if test -n "$ac_ct_MANIFEST_TOOL"; then
9624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
9625 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
9627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9628 $as_echo "no" >&6; }
9631 if test "x$ac_ct_MANIFEST_TOOL" = x; then
9634 case $cross_compiling:$ac_tool_warned in
9636 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9637 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9638 ac_tool_warned=yes ;;
9640 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
9643 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
9646 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
9647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
9648 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
9649 if ${lt_cv_path_mainfest_tool+:} false; then :
9650 $as_echo_n "(cached) " >&6
9652 lt_cv_path_mainfest_tool=no
9653 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
9654 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
9655 cat conftest.err >&5
9656 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
9657 lt_cv_path_mainfest_tool=yes
9661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
9662 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
9663 if test "x$lt_cv_path_mainfest_tool" != xyes; then
9673 rhapsody* | darwin*)
9674 if test -n "$ac_tool_prefix"; then
9675 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
9676 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
9677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9678 $as_echo_n "checking for $ac_word... " >&6; }
9679 if ${ac_cv_prog_DSYMUTIL+:} false; then :
9680 $as_echo_n "(cached) " >&6
9682 if test -n "$DSYMUTIL"; then
9683 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
9685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9689 test -z "$as_dir" && as_dir=.
9690 for ac_exec_ext in '' $ac_executable_extensions; do
9691 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9692 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
9693 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9702 DSYMUTIL=$ac_cv_prog_DSYMUTIL
9703 if test -n "$DSYMUTIL"; then
9704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
9705 $as_echo "$DSYMUTIL" >&6; }
9707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9708 $as_echo "no" >&6; }
9713 if test -z "$ac_cv_prog_DSYMUTIL"; then
9714 ac_ct_DSYMUTIL=$DSYMUTIL
9715 # Extract the first word of "dsymutil", so it can be a program name with args.
9716 set dummy dsymutil; ac_word=$2
9717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9718 $as_echo_n "checking for $ac_word... " >&6; }
9719 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
9720 $as_echo_n "(cached) " >&6
9722 if test -n "$ac_ct_DSYMUTIL"; then
9723 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
9725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9729 test -z "$as_dir" && as_dir=.
9730 for ac_exec_ext in '' $ac_executable_extensions; do
9731 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9732 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
9733 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9742 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
9743 if test -n "$ac_ct_DSYMUTIL"; then
9744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
9745 $as_echo "$ac_ct_DSYMUTIL" >&6; }
9747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9748 $as_echo "no" >&6; }
9751 if test "x$ac_ct_DSYMUTIL" = x; then
9754 case $cross_compiling:$ac_tool_warned in
9756 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9757 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9758 ac_tool_warned=yes ;;
9760 DSYMUTIL=$ac_ct_DSYMUTIL
9763 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
9766 if test -n "$ac_tool_prefix"; then
9767 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
9768 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
9769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9770 $as_echo_n "checking for $ac_word... " >&6; }
9771 if ${ac_cv_prog_NMEDIT+:} false; then :
9772 $as_echo_n "(cached) " >&6
9774 if test -n "$NMEDIT"; then
9775 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
9777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9781 test -z "$as_dir" && as_dir=.
9782 for ac_exec_ext in '' $ac_executable_extensions; do
9783 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9784 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
9785 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9794 NMEDIT=$ac_cv_prog_NMEDIT
9795 if test -n "$NMEDIT"; then
9796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
9797 $as_echo "$NMEDIT" >&6; }
9799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9800 $as_echo "no" >&6; }
9805 if test -z "$ac_cv_prog_NMEDIT"; then
9806 ac_ct_NMEDIT=$NMEDIT
9807 # Extract the first word of "nmedit", so it can be a program name with args.
9808 set dummy nmedit; ac_word=$2
9809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9810 $as_echo_n "checking for $ac_word... " >&6; }
9811 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
9812 $as_echo_n "(cached) " >&6
9814 if test -n "$ac_ct_NMEDIT"; then
9815 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
9817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9821 test -z "$as_dir" && as_dir=.
9822 for ac_exec_ext in '' $ac_executable_extensions; do
9823 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9824 ac_cv_prog_ac_ct_NMEDIT="nmedit"
9825 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9834 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
9835 if test -n "$ac_ct_NMEDIT"; then
9836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
9837 $as_echo "$ac_ct_NMEDIT" >&6; }
9839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9840 $as_echo "no" >&6; }
9843 if test "x$ac_ct_NMEDIT" = x; then
9846 case $cross_compiling:$ac_tool_warned in
9848 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9849 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9850 ac_tool_warned=yes ;;
9852 NMEDIT=$ac_ct_NMEDIT
9855 NMEDIT="$ac_cv_prog_NMEDIT"
9858 if test -n "$ac_tool_prefix"; then
9859 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
9860 set dummy ${ac_tool_prefix}lipo; ac_word=$2
9861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9862 $as_echo_n "checking for $ac_word... " >&6; }
9863 if ${ac_cv_prog_LIPO+:} false; then :
9864 $as_echo_n "(cached) " >&6
9866 if test -n "$LIPO"; then
9867 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
9869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9873 test -z "$as_dir" && as_dir=.
9874 for ac_exec_ext in '' $ac_executable_extensions; do
9875 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9876 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
9877 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9886 LIPO=$ac_cv_prog_LIPO
9887 if test -n "$LIPO"; then
9888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
9889 $as_echo "$LIPO" >&6; }
9891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9892 $as_echo "no" >&6; }
9897 if test -z "$ac_cv_prog_LIPO"; then
9899 # Extract the first word of "lipo", so it can be a program name with args.
9900 set dummy lipo; ac_word=$2
9901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9902 $as_echo_n "checking for $ac_word... " >&6; }
9903 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
9904 $as_echo_n "(cached) " >&6
9906 if test -n "$ac_ct_LIPO"; then
9907 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
9909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9913 test -z "$as_dir" && as_dir=.
9914 for ac_exec_ext in '' $ac_executable_extensions; do
9915 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9916 ac_cv_prog_ac_ct_LIPO="lipo"
9917 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9926 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
9927 if test -n "$ac_ct_LIPO"; then
9928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
9929 $as_echo "$ac_ct_LIPO" >&6; }
9931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9932 $as_echo "no" >&6; }
9935 if test "x$ac_ct_LIPO" = x; then
9938 case $cross_compiling:$ac_tool_warned in
9940 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9941 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9942 ac_tool_warned=yes ;;
9947 LIPO="$ac_cv_prog_LIPO"
9950 if test -n "$ac_tool_prefix"; then
9951 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
9952 set dummy ${ac_tool_prefix}otool; ac_word=$2
9953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9954 $as_echo_n "checking for $ac_word... " >&6; }
9955 if ${ac_cv_prog_OTOOL+:} false; then :
9956 $as_echo_n "(cached) " >&6
9958 if test -n "$OTOOL"; then
9959 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
9961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9965 test -z "$as_dir" && as_dir=.
9966 for ac_exec_ext in '' $ac_executable_extensions; do
9967 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9968 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
9969 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9978 OTOOL=$ac_cv_prog_OTOOL
9979 if test -n "$OTOOL"; then
9980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
9981 $as_echo "$OTOOL" >&6; }
9983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9984 $as_echo "no" >&6; }
9989 if test -z "$ac_cv_prog_OTOOL"; then
9991 # Extract the first word of "otool", so it can be a program name with args.
9992 set dummy otool; ac_word=$2
9993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9994 $as_echo_n "checking for $ac_word... " >&6; }
9995 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
9996 $as_echo_n "(cached) " >&6
9998 if test -n "$ac_ct_OTOOL"; then
9999 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
10001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10002 for as_dir in $PATH
10005 test -z "$as_dir" && as_dir=.
10006 for ac_exec_ext in '' $ac_executable_extensions; do
10007 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10008 ac_cv_prog_ac_ct_OTOOL="otool"
10009 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10018 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
10019 if test -n "$ac_ct_OTOOL"; then
10020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
10021 $as_echo "$ac_ct_OTOOL" >&6; }
10023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10024 $as_echo "no" >&6; }
10027 if test "x$ac_ct_OTOOL" = x; then
10030 case $cross_compiling:$ac_tool_warned in
10032 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10033 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10034 ac_tool_warned=yes ;;
10039 OTOOL="$ac_cv_prog_OTOOL"
10042 if test -n "$ac_tool_prefix"; then
10043 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
10044 set dummy ${ac_tool_prefix}otool64; ac_word=$2
10045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10046 $as_echo_n "checking for $ac_word... " >&6; }
10047 if ${ac_cv_prog_OTOOL64+:} false; then :
10048 $as_echo_n "(cached) " >&6
10050 if test -n "$OTOOL64"; then
10051 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
10053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10054 for as_dir in $PATH
10057 test -z "$as_dir" && as_dir=.
10058 for ac_exec_ext in '' $ac_executable_extensions; do
10059 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10060 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
10061 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10070 OTOOL64=$ac_cv_prog_OTOOL64
10071 if test -n "$OTOOL64"; then
10072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
10073 $as_echo "$OTOOL64" >&6; }
10075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10076 $as_echo "no" >&6; }
10081 if test -z "$ac_cv_prog_OTOOL64"; then
10082 ac_ct_OTOOL64=$OTOOL64
10083 # Extract the first word of "otool64", so it can be a program name with args.
10084 set dummy otool64; ac_word=$2
10085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10086 $as_echo_n "checking for $ac_word... " >&6; }
10087 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
10088 $as_echo_n "(cached) " >&6
10090 if test -n "$ac_ct_OTOOL64"; then
10091 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
10093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10094 for as_dir in $PATH
10097 test -z "$as_dir" && as_dir=.
10098 for ac_exec_ext in '' $ac_executable_extensions; do
10099 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10100 ac_cv_prog_ac_ct_OTOOL64="otool64"
10101 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10110 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
10111 if test -n "$ac_ct_OTOOL64"; then
10112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
10113 $as_echo "$ac_ct_OTOOL64" >&6; }
10115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10116 $as_echo "no" >&6; }
10119 if test "x$ac_ct_OTOOL64" = x; then
10122 case $cross_compiling:$ac_tool_warned in
10124 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10125 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10126 ac_tool_warned=yes ;;
10128 OTOOL64=$ac_ct_OTOOL64
10131 OTOOL64="$ac_cv_prog_OTOOL64"
10160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
10161 $as_echo_n "checking for -single_module linker flag... " >&6; }
10162 if ${lt_cv_apple_cc_single_mod+:} false; then :
10163 $as_echo_n "(cached) " >&6
10165 lt_cv_apple_cc_single_mod=no
10166 if test -z "${LT_MULTI_MODULE}"; then
10167 # By default we will add the -single_module flag. You can override
10168 # by either setting the environment variable LT_MULTI_MODULE
10169 # non-empty at configure time, or by adding -multi_module to the
10171 rm -rf libconftest.dylib*
10172 echo "int foo(void){return 1;}" > conftest.c
10173 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
10174 -dynamiclib -Wl,-single_module conftest.c" >&5
10175 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
10176 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
10178 # If there is a non-empty error log, and "single_module"
10179 # appears in it, assume the flag caused a linker warning
10180 if test -s conftest.err && $GREP single_module conftest.err; then
10181 cat conftest.err >&5
10182 # Otherwise, if the output was created with a 0 exit code from
10183 # the compiler, it worked.
10184 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
10185 lt_cv_apple_cc_single_mod=yes
10187 cat conftest.err >&5
10189 rm -rf libconftest.dylib*
10193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
10194 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
10196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
10197 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
10198 if ${lt_cv_ld_exported_symbols_list+:} false; then :
10199 $as_echo_n "(cached) " >&6
10201 lt_cv_ld_exported_symbols_list=no
10202 save_LDFLAGS=$LDFLAGS
10203 echo "_main" > conftest.sym
10204 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
10205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10206 /* end confdefs.h. */
10216 if ac_fn_c_try_link "$LINENO"; then :
10217 lt_cv_ld_exported_symbols_list=yes
10219 lt_cv_ld_exported_symbols_list=no
10221 rm -f core conftest.err conftest.$ac_objext \
10222 conftest$ac_exeext conftest.$ac_ext
10223 LDFLAGS="$save_LDFLAGS"
10226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
10227 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
10229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
10230 $as_echo_n "checking for -force_load linker flag... " >&6; }
10231 if ${lt_cv_ld_force_load+:} false; then :
10232 $as_echo_n "(cached) " >&6
10234 lt_cv_ld_force_load=no
10235 cat > conftest.c << _LT_EOF
10236 int forced_loaded() { return 2;}
10238 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
10239 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
10240 echo "$AR cru libconftest.a conftest.o" >&5
10241 $AR cru libconftest.a conftest.o 2>&5
10242 echo "$RANLIB libconftest.a" >&5
10243 $RANLIB libconftest.a 2>&5
10244 cat > conftest.c << _LT_EOF
10245 int main() { return 0;}
10247 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
10248 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
10250 if test -s conftest.err && $GREP force_load conftest.err; then
10251 cat conftest.err >&5
10252 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
10253 lt_cv_ld_force_load=yes
10255 cat conftest.err >&5
10257 rm -f conftest.err libconftest.a conftest conftest.c
10258 rm -rf conftest.dSYM
10261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
10262 $as_echo "$lt_cv_ld_force_load" >&6; }
10264 rhapsody* | darwin1.[012])
10265 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
10267 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
10268 darwin*) # darwin 5.x on
10269 # if running on 10.5 or later, the deployment target defaults
10270 # to the OS version, if on x86, and 10.4, the deployment
10271 # target defaults to 10.4. Don't you love it?
10272 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
10273 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
10274 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
10276 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
10278 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
10282 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
10283 _lt_dar_single_mod='$single_module'
10285 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
10286 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
10288 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
10290 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
10291 _lt_dsymutil='~$DSYMUTIL $lib || :'
10298 for ac_header in dlfcn.h
10300 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
10302 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
10303 cat >>confdefs.h <<_ACEOF
10304 #define HAVE_DLFCN_H 1
10313 func_stripname_cnf ()
10316 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
10317 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
10319 } # func_stripname_cnf
10332 enable_win32_dll=no
10335 # Check whether --enable-shared was given.
10336 if test "${enable_shared+set}" = set; then :
10337 enableval=$enable_shared; p=${PACKAGE-default}
10339 yes) enable_shared=yes ;;
10340 no) enable_shared=no ;;
10343 # Look at the argument we got. We use all the common list separators.
10344 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10345 for pkg in $enableval; do
10347 if test "X$pkg" = "X$p"; then
10366 # Check whether --enable-static was given.
10367 if test "${enable_static+set}" = set; then :
10368 enableval=$enable_static; p=${PACKAGE-default}
10370 yes) enable_static=yes ;;
10371 no) enable_static=no ;;
10374 # Look at the argument we got. We use all the common list separators.
10375 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10376 for pkg in $enableval; do
10378 if test "X$pkg" = "X$p"; then
10398 # Check whether --with-pic was given.
10399 if test "${with_pic+set}" = set; then :
10400 withval=$with_pic; lt_p=${PACKAGE-default}
10402 yes|no) pic_mode=$withval ;;
10405 # Look at the argument we got. We use all the common list separators.
10406 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10407 for lt_pkg in $withval; do
10409 if test "X$lt_pkg" = "X$lt_p"; then
10421 test -z "$pic_mode" && pic_mode=default
10429 # Check whether --enable-fast-install was given.
10430 if test "${enable_fast_install+set}" = set; then :
10431 enableval=$enable_fast_install; p=${PACKAGE-default}
10433 yes) enable_fast_install=yes ;;
10434 no) enable_fast_install=no ;;
10436 enable_fast_install=no
10437 # Look at the argument we got. We use all the common list separators.
10438 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10439 for pkg in $enableval; do
10441 if test "X$pkg" = "X$p"; then
10442 enable_fast_install=yes
10449 enable_fast_install=yes
10462 # This can be used to rebuild libtool when needed
10463 LIBTOOL_DEPS="$ltmain"
10465 # Always use our own libtool.
10466 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
10497 test -z "$LN_S" && LN_S="ln -s"
10512 if test -n "${ZSH_VERSION+set}" ; then
10513 setopt NO_GLOB_SUBST
10516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
10517 $as_echo_n "checking for objdir... " >&6; }
10518 if ${lt_cv_objdir+:} false; then :
10519 $as_echo_n "(cached) " >&6
10521 rm -f .libs 2>/dev/null
10522 mkdir .libs 2>/dev/null
10523 if test -d .libs; then
10526 # MS-DOS does not allow filenames that begin with a dot.
10529 rmdir .libs 2>/dev/null
10531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
10532 $as_echo "$lt_cv_objdir" >&6; }
10533 objdir=$lt_cv_objdir
10539 cat >>confdefs.h <<_ACEOF
10540 #define LT_OBJDIR "$lt_cv_objdir/"
10548 # AIX sometimes has problems with the GCC collect2 program. For some
10549 # reason, if we set the COLLECT_NAMES environment variable, the problems
10550 # vanish in a puff of smoke.
10551 if test "X${COLLECT_NAMES+set}" != Xset; then
10553 export COLLECT_NAMES
10558 # Global variables:
10560 can_build_shared=yes
10562 # All known linkers require a `.a' archive for static linking (except MSVC,
10563 # which needs '.lib').
10566 with_gnu_ld="$lt_cv_prog_gnu_ld"
10569 old_CFLAGS="$CFLAGS"
10571 # Set sane defaults for various variables
10572 test -z "$CC" && CC=cc
10573 test -z "$LTCC" && LTCC=$CC
10574 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
10575 test -z "$LD" && LD=ld
10576 test -z "$ac_objext" && ac_objext=o
10578 for cc_temp in $compiler""; do
10580 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10581 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10586 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
10589 # Only perform the check for file, if the check method requires it
10590 test -z "$MAGIC_CMD" && MAGIC_CMD=file
10591 case $deplibs_check_method in
10593 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
10594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
10595 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
10596 if ${lt_cv_path_MAGIC_CMD+:} false; then :
10597 $as_echo_n "(cached) " >&6
10601 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
10604 lt_save_MAGIC_CMD="$MAGIC_CMD"
10605 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10606 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10607 for ac_dir in $ac_dummy; do
10609 test -z "$ac_dir" && ac_dir=.
10610 if test -f $ac_dir/${ac_tool_prefix}file; then
10611 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
10612 if test -n "$file_magic_test_file"; then
10613 case $deplibs_check_method in
10615 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10616 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10617 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10618 $EGREP "$file_magic_regex" > /dev/null; then
10623 *** Warning: the command libtool uses to detect shared libraries,
10624 *** $file_magic_cmd, produces output that libtool cannot recognize.
10625 *** The result is that libtool may fail to recognize shared libraries
10626 *** as such. This will affect the creation of libtool libraries that
10627 *** depend on shared libraries, but programs linked with such libtool
10628 *** libraries will work regardless of this problem. Nevertheless, you
10629 *** may want to report the problem to your system manager and/or to
10630 *** bug-libtool@gnu.org
10640 MAGIC_CMD="$lt_save_MAGIC_CMD"
10645 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10646 if test -n "$MAGIC_CMD"; then
10647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10648 $as_echo "$MAGIC_CMD" >&6; }
10650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10651 $as_echo "no" >&6; }
10658 if test -z "$lt_cv_path_MAGIC_CMD"; then
10659 if test -n "$ac_tool_prefix"; then
10660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
10661 $as_echo_n "checking for file... " >&6; }
10662 if ${lt_cv_path_MAGIC_CMD+:} false; then :
10663 $as_echo_n "(cached) " >&6
10667 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
10670 lt_save_MAGIC_CMD="$MAGIC_CMD"
10671 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10672 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10673 for ac_dir in $ac_dummy; do
10675 test -z "$ac_dir" && ac_dir=.
10676 if test -f $ac_dir/file; then
10677 lt_cv_path_MAGIC_CMD="$ac_dir/file"
10678 if test -n "$file_magic_test_file"; then
10679 case $deplibs_check_method in
10681 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10682 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10683 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10684 $EGREP "$file_magic_regex" > /dev/null; then
10689 *** Warning: the command libtool uses to detect shared libraries,
10690 *** $file_magic_cmd, produces output that libtool cannot recognize.
10691 *** The result is that libtool may fail to recognize shared libraries
10692 *** as such. This will affect the creation of libtool libraries that
10693 *** depend on shared libraries, but programs linked with such libtool
10694 *** libraries will work regardless of this problem. Nevertheless, you
10695 *** may want to report the problem to your system manager and/or to
10696 *** bug-libtool@gnu.org
10706 MAGIC_CMD="$lt_save_MAGIC_CMD"
10711 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10712 if test -n "$MAGIC_CMD"; then
10713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10714 $as_echo "$MAGIC_CMD" >&6; }
10716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10717 $as_echo "no" >&6; }
10730 # Use C for the default configuration in the libtool script
10734 ac_cpp='$CPP $CPPFLAGS'
10735 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10736 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10737 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10740 # Source file extension for C test sources.
10743 # Object file extension for compiled C test sources.
10747 # Code to be used in simple compile tests
10748 lt_simple_compile_test_code="int some_variable = 0;"
10750 # Code to be used in simple link tests
10751 lt_simple_link_test_code='int main(){return(0);}'
10759 # If no C compiler was specified, use CC.
10762 # If no C compiler flags were specified, use CFLAGS.
10763 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10765 # Allow CC to be a program name with arguments.
10768 # Save the default compiler, since it gets overwritten when the other
10769 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
10770 compiler_DEFAULT=$CC
10772 # save warnings/boilerplate of simple test code
10773 ac_outfile=conftest.$ac_objext
10774 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10775 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10776 _lt_compiler_boilerplate=`cat conftest.err`
10779 ac_outfile=conftest.$ac_objext
10780 echo "$lt_simple_link_test_code" >conftest.$ac_ext
10781 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10782 _lt_linker_boilerplate=`cat conftest.err`
10787 ## There is no encapsulation within the following macros, do not change
10788 ## the running order or otherwise move them around unless you know exactly
10789 ## what you are doing...
10790 if test -n "$compiler"; then
10792 lt_prog_compiler_no_builtin_flag=
10794 if test "$GCC" = yes; then
10795 case $cc_basename in
10797 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
10799 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
10802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
10803 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
10804 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
10805 $as_echo_n "(cached) " >&6
10807 lt_cv_prog_compiler_rtti_exceptions=no
10808 ac_outfile=conftest.$ac_objext
10809 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10810 lt_compiler_flag="-fno-rtti -fno-exceptions"
10811 # Insert the option either (1) after the last *FLAGS variable, or
10812 # (2) before a word containing "conftest.", or (3) at the end.
10813 # Note that $ac_compile itself does not contain backslashes and begins
10814 # with a dollar sign (not a hyphen), so the echo should work correctly.
10815 # The option is referenced via a variable to avoid confusing sed.
10816 lt_compile=`echo "$ac_compile" | $SED \
10817 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10818 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10819 -e 's:$: $lt_compiler_flag:'`
10820 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10821 (eval "$lt_compile" 2>conftest.err)
10823 cat conftest.err >&5
10824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10825 if (exit $ac_status) && test -s "$ac_outfile"; then
10826 # The compiler can only warn and ignore the option if not recognized
10827 # So say no if there are warnings other than the usual output.
10828 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10829 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10830 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10831 lt_cv_prog_compiler_rtti_exceptions=yes
10837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
10838 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
10840 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
10841 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
10853 lt_prog_compiler_wl=
10854 lt_prog_compiler_pic=
10855 lt_prog_compiler_static=
10858 if test "$GCC" = yes; then
10859 lt_prog_compiler_wl='-Wl,'
10860 lt_prog_compiler_static='-static'
10864 # All AIX code is PIC.
10865 if test "$host_cpu" = ia64; then
10866 # AIX 5 now supports IA64 processor
10867 lt_prog_compiler_static='-Bstatic'
10874 # see comment about AmigaOS4 .so support
10875 lt_prog_compiler_pic='-fPIC'
10878 # FIXME: we need at least 68020 code to build shared libraries, but
10879 # adding the `-m68020' flag to GCC prevents building anything better,
10881 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
10886 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10887 # PIC is the default for these OSes.
10890 mingw* | cygwin* | pw32* | os2* | cegcc*)
10891 # This hack is so that the source file can tell whether it is being
10892 # built for inclusion in a dll (and should export symbols for example).
10893 # Although the cygwin gcc ignores -fPIC, still need this for old-style
10894 # (--disable-auto-import) libraries
10895 lt_prog_compiler_pic='-DDLL_EXPORT'
10898 darwin* | rhapsody*)
10899 # PIC is the default on this platform
10900 # Common symbols not allowed in MH_DYLIB files
10901 lt_prog_compiler_pic='-fno-common'
10905 # PIC is the default for Haiku.
10906 # The "-static" flag exists, but is broken.
10907 lt_prog_compiler_static=
10911 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
10912 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
10913 # sets the default TLS model and affects inlining.
10919 lt_prog_compiler_pic='-fPIC'
10925 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
10926 # Instead, we relocate shared libraries at runtime.
10930 # Just because we use GCC doesn't mean we suddenly get shared libraries
10931 # on systems that don't support them.
10932 lt_prog_compiler_can_build_shared=no
10937 # QNX uses GNU C++, but need to define -shared option too, otherwise
10938 # it will coredump.
10939 lt_prog_compiler_pic='-fPIC -shared'
10943 if test -d /usr/nec; then
10944 lt_prog_compiler_pic=-Kconform_pic
10949 lt_prog_compiler_pic='-fPIC'
10953 case $cc_basename in
10954 nvcc*) # Cuda Compiler Driver 2.2
10955 lt_prog_compiler_wl='-Xlinker '
10956 if test -n "$lt_prog_compiler_pic"; then
10957 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
10962 # PORTME Check for flag to pass linker flags through the system compiler.
10965 lt_prog_compiler_wl='-Wl,'
10966 if test "$host_cpu" = ia64; then
10967 # AIX 5 now supports IA64 processor
10968 lt_prog_compiler_static='-Bstatic'
10970 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
10974 mingw* | cygwin* | pw32* | os2* | cegcc*)
10975 # This hack is so that the source file can tell whether it is being
10976 # built for inclusion in a dll (and should export symbols for example).
10977 lt_prog_compiler_pic='-DDLL_EXPORT'
10980 hpux9* | hpux10* | hpux11*)
10981 lt_prog_compiler_wl='-Wl,'
10982 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10983 # not for PA HP-UX.
10989 lt_prog_compiler_pic='+Z'
10992 # Is there a better lt_prog_compiler_static that works with the bundled CC?
10993 lt_prog_compiler_static='${wl}-a ${wl}archive'
10996 irix5* | irix6* | nonstopux*)
10997 lt_prog_compiler_wl='-Wl,'
10998 # PIC (with -KPIC) is the default.
10999 lt_prog_compiler_static='-non_shared'
11002 linux* | k*bsd*-gnu | kopensolaris*-gnu)
11003 case $cc_basename in
11004 # old Intel for x86_64 which still supported -KPIC.
11006 lt_prog_compiler_wl='-Wl,'
11007 lt_prog_compiler_pic='-KPIC'
11008 lt_prog_compiler_static='-static'
11010 # icc used to be incompatible with GCC.
11011 # ICC 10 doesn't accept -KPIC any more.
11013 lt_prog_compiler_wl='-Wl,'
11014 lt_prog_compiler_pic='-fPIC'
11015 lt_prog_compiler_static='-static'
11017 # Lahey Fortran 8.1.
11019 lt_prog_compiler_wl='-Wl,'
11020 lt_prog_compiler_pic='--shared'
11021 lt_prog_compiler_static='--static'
11024 # NAG Fortran compiler
11025 lt_prog_compiler_wl='-Wl,-Wl,,'
11026 lt_prog_compiler_pic='-PIC'
11027 lt_prog_compiler_static='-Bstatic'
11029 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
11030 # Portland Group compilers (*not* the Pentium gcc compiler,
11031 # which looks to be a dead project)
11032 lt_prog_compiler_wl='-Wl,'
11033 lt_prog_compiler_pic='-fpic'
11034 lt_prog_compiler_static='-Bstatic'
11037 lt_prog_compiler_wl='-Wl,'
11038 # All Alpha code is PIC.
11039 lt_prog_compiler_static='-non_shared'
11041 xl* | bgxl* | bgf* | mpixl*)
11042 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
11043 lt_prog_compiler_wl='-Wl,'
11044 lt_prog_compiler_pic='-qpic'
11045 lt_prog_compiler_static='-qstaticlink'
11048 case `$CC -V 2>&1 | sed 5q` in
11049 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
11050 # Sun Fortran 8.3 passes all unrecognized flags to the linker
11051 lt_prog_compiler_pic='-KPIC'
11052 lt_prog_compiler_static='-Bstatic'
11053 lt_prog_compiler_wl=''
11055 *Sun\ F* | *Sun*Fortran*)
11056 lt_prog_compiler_pic='-KPIC'
11057 lt_prog_compiler_static='-Bstatic'
11058 lt_prog_compiler_wl='-Qoption ld '
11062 lt_prog_compiler_pic='-KPIC'
11063 lt_prog_compiler_static='-Bstatic'
11064 lt_prog_compiler_wl='-Wl,'
11066 *Intel*\ [CF]*Compiler*)
11067 lt_prog_compiler_wl='-Wl,'
11068 lt_prog_compiler_pic='-fPIC'
11069 lt_prog_compiler_static='-static'
11072 lt_prog_compiler_wl='-Wl,'
11073 lt_prog_compiler_pic='-fpic'
11074 lt_prog_compiler_static='-Bstatic'
11082 lt_prog_compiler_pic='-KPIC'
11083 lt_prog_compiler_static='-Bstatic'
11087 # QNX uses GNU C++, but need to define -shared option too, otherwise
11088 # it will coredump.
11089 lt_prog_compiler_pic='-fPIC -shared'
11092 osf3* | osf4* | osf5*)
11093 lt_prog_compiler_wl='-Wl,'
11094 # All OSF/1 code is PIC.
11095 lt_prog_compiler_static='-non_shared'
11099 lt_prog_compiler_static='-non_shared'
11103 lt_prog_compiler_pic='-KPIC'
11104 lt_prog_compiler_static='-Bstatic'
11105 case $cc_basename in
11106 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
11107 lt_prog_compiler_wl='-Qoption ld ';;
11109 lt_prog_compiler_wl='-Wl,';;
11114 lt_prog_compiler_wl='-Qoption ld '
11115 lt_prog_compiler_pic='-PIC'
11116 lt_prog_compiler_static='-Bstatic'
11119 sysv4 | sysv4.2uw2* | sysv4.3*)
11120 lt_prog_compiler_wl='-Wl,'
11121 lt_prog_compiler_pic='-KPIC'
11122 lt_prog_compiler_static='-Bstatic'
11126 if test -d /usr/nec ;then
11127 lt_prog_compiler_pic='-Kconform_pic'
11128 lt_prog_compiler_static='-Bstatic'
11132 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11133 lt_prog_compiler_wl='-Wl,'
11134 lt_prog_compiler_pic='-KPIC'
11135 lt_prog_compiler_static='-Bstatic'
11139 lt_prog_compiler_wl='-Wl,'
11140 lt_prog_compiler_can_build_shared=no
11144 lt_prog_compiler_pic='-pic'
11145 lt_prog_compiler_static='-Bstatic'
11149 lt_prog_compiler_can_build_shared=no
11155 # For platforms which do not support PIC, -DPIC is meaningless:
11157 lt_prog_compiler_pic=
11160 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
11164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
11165 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
11166 if ${lt_cv_prog_compiler_pic+:} false; then :
11167 $as_echo_n "(cached) " >&6
11169 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
11171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
11172 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
11173 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
11176 # Check to make sure the PIC flag actually works.
11178 if test -n "$lt_prog_compiler_pic"; then
11179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
11180 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
11181 if ${lt_cv_prog_compiler_pic_works+:} false; then :
11182 $as_echo_n "(cached) " >&6
11184 lt_cv_prog_compiler_pic_works=no
11185 ac_outfile=conftest.$ac_objext
11186 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11187 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
11188 # Insert the option either (1) after the last *FLAGS variable, or
11189 # (2) before a word containing "conftest.", or (3) at the end.
11190 # Note that $ac_compile itself does not contain backslashes and begins
11191 # with a dollar sign (not a hyphen), so the echo should work correctly.
11192 # The option is referenced via a variable to avoid confusing sed.
11193 lt_compile=`echo "$ac_compile" | $SED \
11194 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11195 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11196 -e 's:$: $lt_compiler_flag:'`
11197 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11198 (eval "$lt_compile" 2>conftest.err)
11200 cat conftest.err >&5
11201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11202 if (exit $ac_status) && test -s "$ac_outfile"; then
11203 # The compiler can only warn and ignore the option if not recognized
11204 # So say no if there are warnings other than the usual output.
11205 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11206 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11207 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11208 lt_cv_prog_compiler_pic_works=yes
11214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
11215 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
11217 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
11218 case $lt_prog_compiler_pic in
11220 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
11223 lt_prog_compiler_pic=
11224 lt_prog_compiler_can_build_shared=no
11240 # Check to make sure the static flag actually works.
11242 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
11243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11244 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
11245 if ${lt_cv_prog_compiler_static_works+:} false; then :
11246 $as_echo_n "(cached) " >&6
11248 lt_cv_prog_compiler_static_works=no
11249 save_LDFLAGS="$LDFLAGS"
11250 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11251 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11252 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11253 # The linker can only warn and ignore the option if not recognized
11254 # So say no if there are warnings
11255 if test -s conftest.err; then
11256 # Append any errors to the config.log.
11257 cat conftest.err 1>&5
11258 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11259 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11260 if diff conftest.exp conftest.er2 >/dev/null; then
11261 lt_cv_prog_compiler_static_works=yes
11264 lt_cv_prog_compiler_static_works=yes
11268 LDFLAGS="$save_LDFLAGS"
11271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
11272 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
11274 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
11277 lt_prog_compiler_static=
11286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11287 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11288 if ${lt_cv_prog_compiler_c_o+:} false; then :
11289 $as_echo_n "(cached) " >&6
11291 lt_cv_prog_compiler_c_o=no
11292 $RM -r conftest 2>/dev/null
11296 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11298 lt_compiler_flag="-o out/conftest2.$ac_objext"
11299 # Insert the option either (1) after the last *FLAGS variable, or
11300 # (2) before a word containing "conftest.", or (3) at the end.
11301 # Note that $ac_compile itself does not contain backslashes and begins
11302 # with a dollar sign (not a hyphen), so the echo should work correctly.
11303 lt_compile=`echo "$ac_compile" | $SED \
11304 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11305 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11306 -e 's:$: $lt_compiler_flag:'`
11307 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11308 (eval "$lt_compile" 2>out/conftest.err)
11310 cat out/conftest.err >&5
11311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11312 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11314 # The compiler can only warn and ignore the option if not recognized
11315 # So say no if there are warnings
11316 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
11317 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11318 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11319 lt_cv_prog_compiler_c_o=yes
11324 # SGI C++ compiler will create directory out/ii_files/ for
11325 # template instantiation
11326 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11327 $RM out/* && rmdir out
11333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
11334 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
11341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11342 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11343 if ${lt_cv_prog_compiler_c_o+:} false; then :
11344 $as_echo_n "(cached) " >&6
11346 lt_cv_prog_compiler_c_o=no
11347 $RM -r conftest 2>/dev/null
11351 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11353 lt_compiler_flag="-o out/conftest2.$ac_objext"
11354 # Insert the option either (1) after the last *FLAGS variable, or
11355 # (2) before a word containing "conftest.", or (3) at the end.
11356 # Note that $ac_compile itself does not contain backslashes and begins
11357 # with a dollar sign (not a hyphen), so the echo should work correctly.
11358 lt_compile=`echo "$ac_compile" | $SED \
11359 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11360 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11361 -e 's:$: $lt_compiler_flag:'`
11362 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11363 (eval "$lt_compile" 2>out/conftest.err)
11365 cat out/conftest.err >&5
11366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11367 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11369 # The compiler can only warn and ignore the option if not recognized
11370 # So say no if there are warnings
11371 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
11372 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11373 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11374 lt_cv_prog_compiler_c_o=yes
11379 # SGI C++ compiler will create directory out/ii_files/ for
11380 # template instantiation
11381 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11382 $RM out/* && rmdir out
11388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
11389 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
11394 hard_links="nottested"
11395 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
11396 # do not overwrite the value of need_locks provided by the user
11397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
11398 $as_echo_n "checking if we can lock with hard links... " >&6; }
11401 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11403 ln conftest.a conftest.b 2>&5 || hard_links=no
11404 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
11406 $as_echo "$hard_links" >&6; }
11407 if test "$hard_links" = no; then
11408 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11409 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11422 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11425 allow_undefined_flag=
11426 always_export_symbols=no
11428 archive_expsym_cmds=
11429 compiler_needs_object=no
11430 enable_shared_with_static_runtimes=no
11431 export_dynamic_flag_spec=
11432 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11433 hardcode_automatic=no
11435 hardcode_direct_absolute=no
11436 hardcode_libdir_flag_spec=
11437 hardcode_libdir_separator=
11438 hardcode_minus_L=no
11439 hardcode_shlibpath_var=unsupported
11441 link_all_deplibs=unknown
11443 module_expsym_cmds=
11444 old_archive_from_new_cmds=
11445 old_archive_from_expsyms_cmds=
11446 thread_safe_flag_spec=
11447 whole_archive_flag_spec=
11448 # include_expsyms should be a list of space-separated symbols to be *always*
11449 # included in the symbol list
11451 # exclude_expsyms can be an extended regexp of symbols to exclude
11452 # it will be wrapped by ` (' and `)$', so one must not match beginning or
11453 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
11454 # as well as any symbol that contains `d'.
11455 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
11456 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
11457 # platforms (ab)use it in PIC code, but their linkers get confused if
11458 # the symbol is explicitly referenced. Since portable code cannot
11459 # rely on this symbol name, it's probably fine to never include it in
11460 # preloaded symbol tables.
11461 # Exclude shared library initialization/finalization symbols.
11462 extract_expsyms_cmds=
11465 cygwin* | mingw* | pw32* | cegcc*)
11466 # FIXME: the MSVC++ port hasn't been tested in a loooong time
11467 # When not using gcc, we currently assume that we are using
11468 # Microsoft Visual C++.
11469 if test "$GCC" != yes; then
11474 # we just hope/assume this is gcc and not c89 (= MSVC++)
11484 # On some targets, GNU ld is compatible enough with the native linker
11485 # that we're better off using the native interface for both.
11486 lt_use_gnu_ld_interface=no
11487 if test "$with_gnu_ld" = yes; then
11490 # The AIX port of GNU ld has always aspired to compatibility
11491 # with the native linker. However, as the warning in the GNU ld
11492 # block says, versions before 2.19.5* couldn't really create working
11493 # shared libraries, regardless of the interface used.
11494 case `$LD -v 2>&1` in
11495 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
11496 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
11497 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
11499 lt_use_gnu_ld_interface=yes
11504 lt_use_gnu_ld_interface=yes
11509 if test "$lt_use_gnu_ld_interface" = yes; then
11510 # If archive_cmds runs LD, not CC, wlarc should be empty
11513 # Set some defaults for GNU ld with shared library support. These
11514 # are reset later if shared libraries are not supported. Putting them
11515 # here allows them to be overridden if necessary.
11516 runpath_var=LD_RUN_PATH
11517 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11518 export_dynamic_flag_spec='${wl}--export-dynamic'
11519 # ancient GNU ld didn't support --whole-archive et. al.
11520 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
11521 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11523 whole_archive_flag_spec=
11525 supports_anon_versioning=no
11526 case `$LD -v 2>&1` in
11527 *GNU\ gold*) supports_anon_versioning=yes ;;
11528 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
11529 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
11530 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
11531 *\ 2.11.*) ;; # other 2.11 versions
11532 *) supports_anon_versioning=yes ;;
11535 # See if GNU ld supports shared libraries.
11538 # On AIX/PPC, the GNU linker is very broken
11539 if test "$host_cpu" != ia64; then
11543 *** Warning: the GNU linker, at least up to release 2.19, is reported
11544 *** to be unable to reliably create shared libraries on AIX.
11545 *** Therefore, libtool is disabling shared libraries support. If you
11546 *** really care for shared libraries, you may want to install binutils
11547 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
11548 *** You will then need to restart the configuration process.
11557 # see comment about AmigaOS4 .so support
11558 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11559 archive_expsym_cmds=''
11562 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)'
11563 hardcode_libdir_flag_spec='-L$libdir'
11564 hardcode_minus_L=yes
11570 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11571 allow_undefined_flag=unsupported
11572 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11573 # support --undefined. This deserves some investigation. FIXME
11574 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11580 cygwin* | mingw* | pw32* | cegcc*)
11581 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
11582 # as there is no search path for DLLs.
11583 hardcode_libdir_flag_spec='-L$libdir'
11584 export_dynamic_flag_spec='${wl}--export-all-symbols'
11585 allow_undefined_flag=unsupported
11586 always_export_symbols=no
11587 enable_shared_with_static_runtimes=yes
11588 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'
11589 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
11591 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
11592 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11593 # If the export-symbols file already is a .def file (1st line
11594 # is EXPORTS), use it as is; otherwise, prepend...
11595 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11596 cp $export_symbols $output_objdir/$soname.def;
11598 echo EXPORTS > $output_objdir/$soname.def;
11599 cat $export_symbols >> $output_objdir/$soname.def;
11601 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11608 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11609 link_all_deplibs=yes
11614 hardcode_shlibpath_var=no
11615 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11616 export_dynamic_flag_spec='${wl}-E'
11617 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11618 # Instead, shared libraries are loaded at an image base (0x10000000 by
11619 # default) and relocated if they conflict, which is a slow very memory
11620 # consuming and fragmenting process. To avoid this, we pick a random,
11621 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11622 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11623 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11624 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'
11627 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
11629 if test "$host_os" = linux-dietlibc; then
11630 case $cc_basename in
11631 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
11634 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
11635 && test "$tmp_diet" = no
11637 tmp_addflag=' $pic_flag'
11638 tmp_sharedflag='-shared'
11639 case $cc_basename,$host_cpu in
11640 pgcc*) # Portland Group C compiler
11641 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'
11642 tmp_addflag=' $pic_flag'
11644 pgf77* | pgf90* | pgf95* | pgfortran*)
11645 # Portland Group f77 and f90 compilers
11646 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'
11647 tmp_addflag=' $pic_flag -Mnomain' ;;
11648 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
11649 tmp_addflag=' -i_dynamic' ;;
11650 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
11651 tmp_addflag=' -i_dynamic -nofor_main' ;;
11652 ifc* | ifort*) # Intel Fortran compiler
11653 tmp_addflag=' -nofor_main' ;;
11654 lf95*) # Lahey Fortran 8.1
11655 whole_archive_flag_spec=
11656 tmp_sharedflag='--shared' ;;
11657 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
11658 tmp_sharedflag='-qmkshrobj'
11660 nvcc*) # Cuda Compiler Driver 2.2
11661 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'
11662 compiler_needs_object=yes
11665 case `$CC -V 2>&1 | sed 5q` in
11666 *Sun\ C*) # Sun C 5.9
11667 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'
11668 compiler_needs_object=yes
11669 tmp_sharedflag='-G' ;;
11670 *Sun\ F*) # Sun Fortran 8.3
11671 tmp_sharedflag='-G' ;;
11673 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11675 if test "x$supports_anon_versioning" = xyes; then
11676 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11677 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11678 echo "local: *; };" >> $output_objdir/$libname.ver~
11679 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
11682 case $cc_basename in
11683 xlf* | bgf* | bgxlf* | mpixlf*)
11684 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
11685 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
11686 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11687 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
11688 if test "x$supports_anon_versioning" = xyes; then
11689 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11690 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11691 echo "local: *; };" >> $output_objdir/$libname.ver~
11692 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
11702 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11703 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
11706 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11707 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11712 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
11716 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
11717 *** create shared libraries on Solaris systems. Therefore, libtool
11718 *** is disabling shared libraries support. We urge you to upgrade GNU
11719 *** binutils to release 2.9.1 or newer. Another option is to modify
11720 *** your PATH or compiler configuration so that the native linker is
11721 *** used, and then restart.
11724 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11725 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11726 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11732 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
11733 case `$LD -v 2>&1` in
11734 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
11738 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
11739 *** reliably create shared libraries on SCO systems. Therefore, libtool
11740 *** is disabling shared libraries support. We urge you to upgrade GNU
11741 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
11742 *** your PATH or compiler configuration so that the native linker is
11743 *** used, and then restart.
11748 # For security reasons, it is highly recommended that you always
11749 # use absolute paths for naming shared libraries, and exclude the
11750 # DT_RUNPATH tag from executables and libraries. But doing so
11751 # requires that you compile everything twice, which is a pain.
11752 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11753 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11754 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11755 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11764 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11766 hardcode_direct=yes
11767 hardcode_shlibpath_var=no
11771 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11772 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11773 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11780 if test "$ld_shlibs" = no; then
11782 hardcode_libdir_flag_spec=
11783 export_dynamic_flag_spec=
11784 whole_archive_flag_spec=
11787 # PORTME fill in a description of your system's linker (not GNU ld)
11790 allow_undefined_flag=unsupported
11791 always_export_symbols=yes
11792 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'
11793 # Note: this linker hardcodes the directories in LIBPATH if there
11794 # are no directories specified by -L.
11795 hardcode_minus_L=yes
11796 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
11797 # Neither direct hardcoding nor static linking is supported with a
11799 hardcode_direct=unsupported
11804 if test "$host_cpu" = ia64; then
11805 # On IA64, the linker does run time linking by default, so we don't
11806 # have to do anything special.
11807 aix_use_runtimelinking=no
11808 exp_sym_flag='-Bexport'
11811 # If we're using GNU nm, then we don't want the "-C" option.
11812 # -C means demangle to AIX nm, but means don't demangle with GNU nm
11813 # Also, AIX nm treats weak defined symbols like other global
11814 # defined symbols, whereas GNU nm marks them as "W".
11815 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
11816 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'
11818 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'
11820 aix_use_runtimelinking=no
11822 # Test if we are trying to use run time linking or normal
11823 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11824 # need to do runtime linking.
11825 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11826 for ld_flag in $LDFLAGS; do
11827 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
11828 aix_use_runtimelinking=yes
11835 exp_sym_flag='-bexport'
11836 no_entry_flag='-bnoentry'
11839 # When large executables or shared objects are built, AIX ld can
11840 # have problems creating the table of contents. If linking a library
11841 # or program results in "error TOC overflow" add -mminimal-toc to
11842 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11843 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11846 hardcode_direct=yes
11847 hardcode_direct_absolute=yes
11848 hardcode_libdir_separator=':'
11849 link_all_deplibs=yes
11850 file_list_spec='${wl}-f,'
11852 if test "$GCC" = yes; then
11853 case $host_os in aix4.[012]|aix4.[012].*)
11854 # We only want to do this on AIX 4.2 and lower, the check
11855 # below for broken collect2 doesn't work under 4.3+
11856 collect2name=`${CC} -print-prog-name=collect2`
11857 if test -f "$collect2name" &&
11858 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11860 # We have reworked collect2
11863 # We have old collect2
11864 hardcode_direct=unsupported
11865 # It fails to find uninstalled libraries when the uninstalled
11866 # path is not listed in the libpath. Setting hardcode_minus_L
11867 # to unsupported forces relinking
11868 hardcode_minus_L=yes
11869 hardcode_libdir_flag_spec='-L$libdir'
11870 hardcode_libdir_separator=
11874 shared_flag='-shared'
11875 if test "$aix_use_runtimelinking" = yes; then
11876 shared_flag="$shared_flag "'${wl}-G'
11880 if test "$host_cpu" = ia64; then
11881 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11882 # chokes on -Wl,-G. The following line is correct:
11885 if test "$aix_use_runtimelinking" = yes; then
11886 shared_flag='${wl}-G'
11888 shared_flag='${wl}-bM:SRE'
11893 export_dynamic_flag_spec='${wl}-bexpall'
11894 # It seems that -bexpall does not export symbols beginning with
11895 # underscore (_), so it is better to generate a list of symbols to export.
11896 always_export_symbols=yes
11897 if test "$aix_use_runtimelinking" = yes; then
11898 # Warning - without using the other runtime loading flags (-brtl),
11899 # -berok will link without error, but may produce a broken library.
11900 allow_undefined_flag='-berok'
11901 # Determine the default libpath from the value encoded in an
11902 # empty executable.
11903 if test "${lt_cv_aix_libpath+set}" = set; then
11904 aix_libpath=$lt_cv_aix_libpath
11906 if ${lt_cv_aix_libpath_+:} false; then :
11907 $as_echo_n "(cached) " >&6
11909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11910 /* end confdefs.h. */
11920 if ac_fn_c_try_link "$LINENO"; then :
11922 lt_aix_libpath_sed='
11923 /Import File Strings/,/^$/ {
11925 s/^0 *\([^ ]*\) *$/\1/
11929 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11930 # Check for a 64-bit object if we didn't find anything.
11931 if test -z "$lt_cv_aix_libpath_"; then
11932 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11935 rm -f core conftest.err conftest.$ac_objext \
11936 conftest$ac_exeext conftest.$ac_ext
11937 if test -z "$lt_cv_aix_libpath_"; then
11938 lt_cv_aix_libpath_="/usr/lib:/lib"
11943 aix_libpath=$lt_cv_aix_libpath_
11946 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
11947 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"
11949 if test "$host_cpu" = ia64; then
11950 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
11951 allow_undefined_flag="-z nodefs"
11952 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"
11954 # Determine the default libpath from the value encoded in an
11955 # empty executable.
11956 if test "${lt_cv_aix_libpath+set}" = set; then
11957 aix_libpath=$lt_cv_aix_libpath
11959 if ${lt_cv_aix_libpath_+:} false; then :
11960 $as_echo_n "(cached) " >&6
11962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11963 /* end confdefs.h. */
11973 if ac_fn_c_try_link "$LINENO"; then :
11975 lt_aix_libpath_sed='
11976 /Import File Strings/,/^$/ {
11978 s/^0 *\([^ ]*\) *$/\1/
11982 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11983 # Check for a 64-bit object if we didn't find anything.
11984 if test -z "$lt_cv_aix_libpath_"; then
11985 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11988 rm -f core conftest.err conftest.$ac_objext \
11989 conftest$ac_exeext conftest.$ac_ext
11990 if test -z "$lt_cv_aix_libpath_"; then
11991 lt_cv_aix_libpath_="/usr/lib:/lib"
11996 aix_libpath=$lt_cv_aix_libpath_
11999 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
12000 # Warning - without using the other run time loading flags,
12001 # -berok will link without error, but may produce a broken library.
12002 no_undefined_flag=' ${wl}-bernotok'
12003 allow_undefined_flag=' ${wl}-berok'
12004 if test "$with_gnu_ld" = yes; then
12005 # We only use this code for GNU lds that support --whole-archive.
12006 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12008 # Exported symbols can be pulled into shared objects from archives
12009 whole_archive_flag_spec='$convenience'
12011 archive_cmds_need_lc=yes
12012 # This is similar to how AIX traditionally builds its shared libraries.
12013 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'
12021 # see comment about AmigaOS4 .so support
12022 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12023 archive_expsym_cmds=''
12026 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)'
12027 hardcode_libdir_flag_spec='-L$libdir'
12028 hardcode_minus_L=yes
12034 export_dynamic_flag_spec=-rdynamic
12037 cygwin* | mingw* | pw32* | cegcc*)
12038 # When not using gcc, we currently assume that we are using
12039 # Microsoft Visual C++.
12040 # hardcode_libdir_flag_spec is actually meaningless, as there is
12041 # no search path for DLLs.
12042 case $cc_basename in
12045 hardcode_libdir_flag_spec=' '
12046 allow_undefined_flag=unsupported
12047 always_export_symbols=yes
12049 # Tell ltmain to make .lib files, not .a files.
12051 # Tell ltmain to make .dll files, not .so files.
12053 # FIXME: Setting linknames here is a bad hack.
12054 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
12055 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12056 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
12058 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
12060 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
12062 # The linker will not automatically build a static lib if we build a DLL.
12063 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
12064 enable_shared_with_static_runtimes=yes
12065 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
12066 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
12068 old_postinstall_cmds='chmod 644 $oldlib'
12069 postlink_cmds='lt_outputfile="@OUTPUT@"~
12070 lt_tool_outputfile="@TOOL_OUTPUT@"~
12071 case $lt_outputfile in
12074 lt_outputfile="$lt_outputfile.exe"
12075 lt_tool_outputfile="$lt_tool_outputfile.exe"
12078 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
12079 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
12080 $RM "$lt_outputfile.manifest";
12084 # Assume MSVC wrapper
12085 hardcode_libdir_flag_spec=' '
12086 allow_undefined_flag=unsupported
12087 # Tell ltmain to make .lib files, not .a files.
12089 # Tell ltmain to make .dll files, not .so files.
12091 # FIXME: Setting linknames here is a bad hack.
12092 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
12093 # The linker will automatically build a .lib file if we build a DLL.
12094 old_archive_from_new_cmds='true'
12095 # FIXME: Should let the user specify the lib program.
12096 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
12097 enable_shared_with_static_runtimes=yes
12102 darwin* | rhapsody*)
12105 archive_cmds_need_lc=no
12107 hardcode_automatic=yes
12108 hardcode_shlibpath_var=unsupported
12109 if test "$lt_cv_ld_force_load" = "yes"; then
12110 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\"`'
12113 whole_archive_flag_spec=''
12115 link_all_deplibs=yes
12116 allow_undefined_flag="$_lt_dar_allow_undefined"
12117 case $cc_basename in
12118 ifort*) _lt_dar_can_shared=yes ;;
12119 *) _lt_dar_can_shared=$GCC ;;
12121 if test "$_lt_dar_can_shared" = "yes"; then
12122 output_verbose_link_cmd=func_echo_all
12123 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
12124 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12125 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}"
12126 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}"
12135 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12136 hardcode_libdir_flag_spec='-L$libdir'
12137 hardcode_shlibpath_var=no
12140 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12141 # support. Future versions do this automatically, but an explicit c++rt0.o
12142 # does not break anything, and helps significantly (at the cost of a little
12145 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
12146 hardcode_libdir_flag_spec='-R$libdir'
12147 hardcode_direct=yes
12148 hardcode_shlibpath_var=no
12151 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
12153 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12154 hardcode_direct=yes
12155 hardcode_minus_L=yes
12156 hardcode_shlibpath_var=no
12159 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
12160 freebsd* | dragonfly*)
12161 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12162 hardcode_libdir_flag_spec='-R$libdir'
12163 hardcode_direct=yes
12164 hardcode_shlibpath_var=no
12168 if test "$GCC" = yes; then
12169 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'
12171 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'
12173 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12174 hardcode_libdir_separator=:
12175 hardcode_direct=yes
12177 # hardcode_minus_L: Not really in the search PATH,
12178 # but as the default location of the library.
12179 hardcode_minus_L=yes
12180 export_dynamic_flag_spec='${wl}-E'
12184 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
12185 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12187 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12189 if test "$with_gnu_ld" = no; then
12190 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12191 hardcode_libdir_separator=:
12192 hardcode_direct=yes
12193 hardcode_direct_absolute=yes
12194 export_dynamic_flag_spec='${wl}-E'
12195 # hardcode_minus_L: Not really in the search PATH,
12196 # but as the default location of the library.
12197 hardcode_minus_L=yes
12202 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
12205 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12208 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12211 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12217 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12220 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12224 # Older versions of the 11.00 compiler do not understand -b yet
12225 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
12226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
12227 $as_echo_n "checking if $CC understands -b... " >&6; }
12228 if ${lt_cv_prog_compiler__b+:} false; then :
12229 $as_echo_n "(cached) " >&6
12231 lt_cv_prog_compiler__b=no
12232 save_LDFLAGS="$LDFLAGS"
12233 LDFLAGS="$LDFLAGS -b"
12234 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12235 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12236 # The linker can only warn and ignore the option if not recognized
12237 # So say no if there are warnings
12238 if test -s conftest.err; then
12239 # Append any errors to the config.log.
12240 cat conftest.err 1>&5
12241 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
12242 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12243 if diff conftest.exp conftest.er2 >/dev/null; then
12244 lt_cv_prog_compiler__b=yes
12247 lt_cv_prog_compiler__b=yes
12251 LDFLAGS="$save_LDFLAGS"
12254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
12255 $as_echo "$lt_cv_prog_compiler__b" >&6; }
12257 if test x"$lt_cv_prog_compiler__b" = xyes; then
12258 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12260 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12266 if test "$with_gnu_ld" = no; then
12267 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12268 hardcode_libdir_separator=:
12273 hardcode_shlibpath_var=no
12276 hardcode_direct=yes
12277 hardcode_direct_absolute=yes
12278 export_dynamic_flag_spec='${wl}-E'
12280 # hardcode_minus_L: Not really in the search PATH,
12281 # but as the default location of the library.
12282 hardcode_minus_L=yes
12288 irix5* | irix6* | nonstopux*)
12289 if test "$GCC" = yes; then
12290 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'
12291 # Try to use the -exported_symbol ld option, if it does not
12292 # work, assume that -exports_file does not work either and
12293 # implicitly export all symbols.
12294 # This should be the same for all languages, so no per-tag cache variable.
12295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
12296 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
12297 if ${lt_cv_irix_exported_symbol+:} false; then :
12298 $as_echo_n "(cached) " >&6
12300 save_LDFLAGS="$LDFLAGS"
12301 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
12302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12303 /* end confdefs.h. */
12304 int foo (void) { return 0; }
12306 if ac_fn_c_try_link "$LINENO"; then :
12307 lt_cv_irix_exported_symbol=yes
12309 lt_cv_irix_exported_symbol=no
12311 rm -f core conftest.err conftest.$ac_objext \
12312 conftest$ac_exeext conftest.$ac_ext
12313 LDFLAGS="$save_LDFLAGS"
12315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
12316 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
12317 if test "$lt_cv_irix_exported_symbol" = yes; then
12318 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'
12321 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'
12322 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'
12324 archive_cmds_need_lc='no'
12325 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12326 hardcode_libdir_separator=:
12328 link_all_deplibs=yes
12332 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12333 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
12335 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
12337 hardcode_libdir_flag_spec='-R$libdir'
12338 hardcode_direct=yes
12339 hardcode_shlibpath_var=no
12343 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12344 hardcode_direct=yes
12345 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12346 hardcode_libdir_separator=:
12347 hardcode_shlibpath_var=no
12354 if test -f /usr/libexec/ld.so; then
12355 hardcode_direct=yes
12356 hardcode_shlibpath_var=no
12357 hardcode_direct_absolute=yes
12358 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12359 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12360 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
12361 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
12362 export_dynamic_flag_spec='${wl}-E'
12365 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
12366 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12367 hardcode_libdir_flag_spec='-R$libdir'
12370 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12371 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
12381 hardcode_libdir_flag_spec='-L$libdir'
12382 hardcode_minus_L=yes
12383 allow_undefined_flag=unsupported
12384 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'
12385 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
12389 if test "$GCC" = yes; then
12390 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
12391 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'
12393 allow_undefined_flag=' -expect_unresolved \*'
12394 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'
12396 archive_cmds_need_lc='no'
12397 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12398 hardcode_libdir_separator=:
12401 osf4* | osf5*) # as osf3* with the addition of -msym flag
12402 if test "$GCC" = yes; then
12403 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
12404 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'
12405 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12407 allow_undefined_flag=' -expect_unresolved \*'
12408 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'
12409 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~
12410 $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'
12412 # Both c and cxx compiler support -rpath directly
12413 hardcode_libdir_flag_spec='-rpath $libdir'
12415 archive_cmds_need_lc='no'
12416 hardcode_libdir_separator=:
12420 no_undefined_flag=' -z defs'
12421 if test "$GCC" = yes; then
12423 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12424 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12425 $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'
12427 case `$CC -V 2>&1` in
12430 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
12431 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12432 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
12436 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
12437 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12438 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12442 hardcode_libdir_flag_spec='-R$libdir'
12443 hardcode_shlibpath_var=no
12445 solaris2.[0-5] | solaris2.[0-5].*) ;;
12447 # The compiler driver will combine and reorder linker options,
12448 # but understands `-z linker_flag'. GCC discards it without `$wl',
12449 # but is careful enough not to reorder.
12450 # Supported since Solaris 2.6 (maybe 2.5.1?)
12451 if test "$GCC" = yes; then
12452 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12454 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
12458 link_all_deplibs=yes
12462 if test "x$host_vendor" = xsequent; then
12463 # Use $CC to link under sequent, because it throws in some extra .o
12464 # files that make .init and .fini sections work.
12465 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
12467 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
12469 hardcode_libdir_flag_spec='-L$libdir'
12470 hardcode_direct=yes
12471 hardcode_minus_L=yes
12472 hardcode_shlibpath_var=no
12476 case $host_vendor in
12478 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12479 hardcode_direct=yes # is this really true???
12482 ## LD is ld it makes a PLAMLIB
12483 ## CC just makes a GrossModule.
12484 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12485 reload_cmds='$CC -r -o $output$reload_objs'
12489 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12490 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
12493 runpath_var='LD_RUN_PATH'
12494 hardcode_shlibpath_var=no
12498 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12499 hardcode_shlibpath_var=no
12500 export_dynamic_flag_spec='-Bexport'
12504 if test -d /usr/nec; then
12505 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12506 hardcode_shlibpath_var=no
12507 runpath_var=LD_RUN_PATH
12508 hardcode_runpath_var=yes
12513 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12514 no_undefined_flag='${wl}-z,text'
12515 archive_cmds_need_lc=no
12516 hardcode_shlibpath_var=no
12517 runpath_var='LD_RUN_PATH'
12519 if test "$GCC" = yes; then
12520 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12521 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12523 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12524 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12528 sysv5* | sco3.2v5* | sco5v6*)
12529 # Note: We can NOT use -z defs as we might desire, because we do not
12530 # link with -lc, and that would cause any symbols used from libc to
12531 # always be unresolved, which means just about no library would
12532 # ever link correctly. If we're not using GNU ld we use -z text
12533 # though, which does catch some bad symbols but isn't as heavy-handed
12535 no_undefined_flag='${wl}-z,text'
12536 allow_undefined_flag='${wl}-z,nodefs'
12537 archive_cmds_need_lc=no
12538 hardcode_shlibpath_var=no
12539 hardcode_libdir_flag_spec='${wl}-R,$libdir'
12540 hardcode_libdir_separator=':'
12541 link_all_deplibs=yes
12542 export_dynamic_flag_spec='${wl}-Bexport'
12543 runpath_var='LD_RUN_PATH'
12545 if test "$GCC" = yes; then
12546 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12547 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12549 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12550 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12555 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12556 hardcode_libdir_flag_spec='-L$libdir'
12557 hardcode_shlibpath_var=no
12565 if test x$host_vendor = xsni; then
12567 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12568 export_dynamic_flag_spec='${wl}-Blargedynsym'
12574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
12575 $as_echo "$ld_shlibs" >&6; }
12576 test "$ld_shlibs" = no && can_build_shared=no
12578 with_gnu_ld=$with_gnu_ld
12595 # Do we need to explicitly link libc?
12597 case "x$archive_cmds_need_lc" in
12599 # Assume -lc should be added
12600 archive_cmds_need_lc=yes
12602 if test "$enable_shared" = yes && test "$GCC" = yes; then
12603 case $archive_cmds in
12605 # FIXME: we may have to deal with multi-command sequences.
12608 # Test whether the compiler implicitly links with -lc since on some
12609 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12610 # to ld, don't add -lc before -lgcc.
12611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
12612 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
12613 if ${lt_cv_archive_cmds_need_lc+:} false; then :
12614 $as_echo_n "(cached) " >&6
12617 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12619 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12620 (eval $ac_compile) 2>&5
12622 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12623 test $ac_status = 0; } 2>conftest.err; then
12626 libobjs=conftest.$ac_objext
12628 wl=$lt_prog_compiler_wl
12629 pic_flag=$lt_prog_compiler_pic
12635 lt_save_allow_undefined_flag=$allow_undefined_flag
12636 allow_undefined_flag=
12637 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
12638 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
12640 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12641 test $ac_status = 0; }
12643 lt_cv_archive_cmds_need_lc=no
12645 lt_cv_archive_cmds_need_lc=yes
12647 allow_undefined_flag=$lt_save_allow_undefined_flag
12649 cat conftest.err 1>&5
12654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
12655 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
12656 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
12814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
12815 $as_echo_n "checking dynamic linker characteristics... " >&6; }
12817 if test "$GCC" = yes; then
12819 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
12820 *) lt_awk_arg="/^libraries:/" ;;
12823 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
12824 *) lt_sed_strip_eq="s,=/,/,g" ;;
12826 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
12827 case $lt_search_path_spec in
12829 # if the path contains ";" then we assume it to be the separator
12830 # otherwise default to the standard path separator (i.e. ":") - it is
12831 # assumed that no part of a normal pathname contains ";" but that should
12832 # okay in the real world where ";" in dirpaths is itself problematic.
12833 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
12836 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
12839 # Ok, now we have the path, separated by spaces, we can step through it
12840 # and add multilib dir if necessary.
12841 lt_tmp_lt_search_path_spec=
12842 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
12843 for lt_sys_path in $lt_search_path_spec; do
12844 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
12845 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
12847 test -d "$lt_sys_path" && \
12848 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
12851 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
12852 BEGIN {RS=" "; FS="/|\n";} {
12855 for (lt_i = NF; lt_i > 0; lt_i--) {
12856 if ($lt_i != "" && $lt_i != ".") {
12857 if ($lt_i == "..") {
12860 if (lt_count == 0) {
12861 lt_foo="/" $lt_i lt_foo;
12868 if (lt_foo != "") { lt_freq[lt_foo]++; }
12869 if (lt_freq[lt_foo] == 1) { print lt_foo; }
12871 # AWK program above erroneously prepends '/' to C:/dos/paths
12874 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
12875 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
12877 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
12879 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12881 library_names_spec=
12882 libname_spec='lib$name'
12886 postuninstall_cmds=
12890 shlibpath_overrides_runpath=unknown
12892 dynamic_linker="$host_os ld.so"
12893 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12894 need_lib_prefix=unknown
12895 hardcode_into_libs=no
12897 # when you set need_version to no, make sure it does not cause -set_version
12898 # flags to be left without arguments
12899 need_version=unknown
12903 version_type=linux # correct to gnu/linux during the next big refactor
12904 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12905 shlibpath_var=LIBPATH
12907 # AIX 3 has no versioning support, so we append a major version to the name.
12908 soname_spec='${libname}${release}${shared_ext}$major'
12912 version_type=linux # correct to gnu/linux during the next big refactor
12915 hardcode_into_libs=yes
12916 if test "$host_cpu" = ia64; then
12917 # AIX 5 supports IA64
12918 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12919 shlibpath_var=LD_LIBRARY_PATH
12921 # With GCC up to 2.95.x, collect2 would create an import file
12922 # for dependence libraries. The import file would start with
12923 # the line `#! .'. This would cause the generated library to
12924 # depend on `.', always an invalid library. This was fixed in
12925 # development snapshots of GCC prior to 3.0.
12927 aix4 | aix4.[01] | aix4.[01].*)
12928 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12930 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
12933 can_build_shared=no
12937 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12938 # soname into executable. Probably we can add versioning support to
12939 # collect2, so additional links can be useful in future.
12940 if test "$aix_use_runtimelinking" = yes; then
12941 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12942 # instead of lib<name>.a to let people know that these are not
12943 # typical AIX shared libraries.
12944 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12946 # We preserve .a as extension for shared libraries through AIX4.2
12947 # and later when we are not doing run time linking.
12948 library_names_spec='${libname}${release}.a $libname.a'
12949 soname_spec='${libname}${release}${shared_ext}$major'
12951 shlibpath_var=LIBPATH
12958 # Since July 2007 AmigaOS4 officially supports .so libraries.
12959 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
12960 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12963 library_names_spec='$libname.ixlibrary $libname.a'
12964 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12965 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'
12971 library_names_spec='${libname}${shared_ext}'
12972 dynamic_linker="$host_os ld.so"
12973 shlibpath_var=LIBRARY_PATH
12977 version_type=linux # correct to gnu/linux during the next big refactor
12979 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12980 soname_spec='${libname}${release}${shared_ext}$major'
12981 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12982 shlibpath_var=LD_LIBRARY_PATH
12983 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12984 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12985 # the default ld.so.conf also contains /usr/contrib/lib and
12986 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12987 # libtool to hard-code these into programs
12990 cygwin* | mingw* | pw32* | cegcc*)
12991 version_type=windows
12996 case $GCC,$cc_basename in
12999 library_names_spec='$libname.dll.a'
13000 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13001 postinstall_cmds='base_file=`basename \${file}`~
13002 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
13003 dldir=$destdir/`dirname \$dlpath`~
13004 test -d \$dldir || mkdir -p \$dldir~
13005 $install_prog $dir/$dlname \$dldir/$dlname~
13006 chmod a+x \$dldir/$dlname~
13007 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13008 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13010 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13011 dlpath=$dir/\$dldll~
13013 shlibpath_overrides_runpath=yes
13017 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13018 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13020 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
13023 # MinGW DLLs use traditional 'lib' prefix
13024 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13027 # pw32 DLLs use 'pw' prefix rather than 'lib'
13028 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13031 dynamic_linker='Win32 ld.exe'
13036 libname_spec='$name'
13037 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13038 library_names_spec='${libname}.dll.lib'
13042 sys_lib_search_path_spec=
13045 for lt_path in $LIB
13048 # Let DOS variable expansion print the short 8.3 style file name.
13049 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
13050 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
13053 # Convert to MSYS style.
13054 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
13057 # Convert to unix form, then to dos form, then back to unix form
13058 # but this time dos style (no spaces!) so that the unix form looks
13059 # like /cygdrive/c/PROGRA~1:/cygdr...
13060 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
13061 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
13062 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13065 sys_lib_search_path_spec="$LIB"
13066 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
13067 # It is most probably a Windows format PATH.
13068 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13070 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13072 # FIXME: find the short name or the path components, as spaces are
13073 # common. (e.g. "Program Files" -> "PROGRA~1")
13077 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13078 postinstall_cmds='base_file=`basename \${file}`~
13079 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
13080 dldir=$destdir/`dirname \$dlpath`~
13081 test -d \$dldir || mkdir -p \$dldir~
13082 $install_prog $dir/$dlname \$dldir/$dlname'
13083 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13084 dlpath=$dir/\$dldll~
13086 shlibpath_overrides_runpath=yes
13087 dynamic_linker='Win32 link.exe'
13091 # Assume MSVC wrapper
13092 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13093 dynamic_linker='Win32 ld.exe'
13096 # FIXME: first we should search . and the directory the executable is in
13100 darwin* | rhapsody*)
13101 dynamic_linker="$host_os dyld"
13102 version_type=darwin
13105 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13106 soname_spec='${libname}${release}${major}$shared_ext'
13107 shlibpath_overrides_runpath=yes
13108 shlibpath_var=DYLD_LIBRARY_PATH
13109 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13111 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
13112 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13116 version_type=linux # correct to gnu/linux during the next big refactor
13119 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13120 soname_spec='${libname}${release}${shared_ext}$major'
13121 shlibpath_var=LD_LIBRARY_PATH
13124 freebsd* | dragonfly*)
13125 # DragonFly does not have aout. When/if they implement a new
13126 # versioning mechanism, adjust this.
13127 if test -x /usr/bin/objformat; then
13128 objformat=`/usr/bin/objformat`
13131 freebsd[23].*) objformat=aout ;;
13132 *) objformat=elf ;;
13135 version_type=freebsd-$objformat
13136 case $version_type in
13138 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13143 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13147 shlibpath_var=LD_LIBRARY_PATH
13150 shlibpath_overrides_runpath=yes
13152 freebsd3.[01]* | freebsdelf3.[01]*)
13153 shlibpath_overrides_runpath=yes
13154 hardcode_into_libs=yes
13156 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13157 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13158 shlibpath_overrides_runpath=no
13159 hardcode_into_libs=yes
13161 *) # from 4.6 on, and DragonFly
13162 shlibpath_overrides_runpath=yes
13163 hardcode_into_libs=yes
13169 version_type=linux # correct to gnu/linux during the next big refactor
13172 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13173 soname_spec='${libname}${release}${shared_ext}$major'
13174 shlibpath_var=LD_LIBRARY_PATH
13175 shlibpath_overrides_runpath=no
13176 hardcode_into_libs=yes
13180 version_type=linux # correct to gnu/linux during the next big refactor
13183 dynamic_linker="$host_os runtime_loader"
13184 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13185 soname_spec='${libname}${release}${shared_ext}$major'
13186 shlibpath_var=LIBRARY_PATH
13187 shlibpath_overrides_runpath=yes
13188 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
13189 hardcode_into_libs=yes
13192 hpux9* | hpux10* | hpux11*)
13193 # Give a soname corresponding to the major version so that dld.sl refuses to
13194 # link against other versions.
13201 hardcode_into_libs=yes
13202 dynamic_linker="$host_os dld.so"
13203 shlibpath_var=LD_LIBRARY_PATH
13204 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13205 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13206 soname_spec='${libname}${release}${shared_ext}$major'
13207 if test "X$HPUX_IA64_MODE" = X32; then
13208 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13210 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13212 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13216 hardcode_into_libs=yes
13217 dynamic_linker="$host_os dld.sl"
13218 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13219 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13220 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13221 soname_spec='${libname}${release}${shared_ext}$major'
13222 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13223 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13227 dynamic_linker="$host_os dld.sl"
13228 shlibpath_var=SHLIB_PATH
13229 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13230 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13231 soname_spec='${libname}${release}${shared_ext}$major'
13234 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
13235 postinstall_cmds='chmod 555 $lib'
13236 # or fails outright, so override atomically:
13237 install_override_mode=555
13241 version_type=linux # correct to gnu/linux during the next big refactor
13244 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13245 soname_spec='${libname}${release}${shared_ext}$major'
13246 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13247 shlibpath_var=LD_LIBRARY_PATH
13248 shlibpath_overrides_runpath=no
13249 hardcode_into_libs=yes
13252 irix5* | irix6* | nonstopux*)
13254 nonstopux*) version_type=nonstopux ;;
13256 if test "$lt_cv_prog_gnu_ld" = yes; then
13257 version_type=linux # correct to gnu/linux during the next big refactor
13264 soname_spec='${libname}${release}${shared_ext}$major'
13265 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13267 irix5* | nonstopux*)
13268 libsuff= shlibsuff=
13271 case $LD in # libtool.m4 will add one of these switches to LD
13272 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13273 libsuff= shlibsuff= libmagic=32-bit;;
13274 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13275 libsuff=32 shlibsuff=N32 libmagic=N32;;
13276 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13277 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13278 *) libsuff= shlibsuff= libmagic=never-match;;
13282 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13283 shlibpath_overrides_runpath=no
13284 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13285 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13286 hardcode_into_libs=yes
13289 # No shared lib support for Linux oldld, aout, or coff.
13290 linux*oldld* | linux*aout* | linux*coff*)
13294 # This must be glibc/ELF.
13295 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13296 version_type=linux # correct to gnu/linux during the next big refactor
13299 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13300 soname_spec='${libname}${release}${shared_ext}$major'
13301 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13302 shlibpath_var=LD_LIBRARY_PATH
13303 shlibpath_overrides_runpath=no
13305 # Some binutils ld are patched to set DT_RUNPATH
13306 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
13307 $as_echo_n "(cached) " >&6
13309 lt_cv_shlibpath_overrides_runpath=no
13310 save_LDFLAGS=$LDFLAGS
13311 save_libdir=$libdir
13312 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
13313 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
13314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13315 /* end confdefs.h. */
13325 if ac_fn_c_try_link "$LINENO"; then :
13326 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
13327 lt_cv_shlibpath_overrides_runpath=yes
13330 rm -f core conftest.err conftest.$ac_objext \
13331 conftest$ac_exeext conftest.$ac_ext
13332 LDFLAGS=$save_LDFLAGS
13333 libdir=$save_libdir
13337 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
13339 # This implies no fast_install, which is unacceptable.
13340 # Some rework will be needed to allow for fast_install
13341 # before this can be enabled.
13342 hardcode_into_libs=yes
13344 # Append ld.so.conf contents to the search path
13345 if test -f /etc/ld.so.conf; then
13346 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' ' '`
13347 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13350 # We used to test for /lib/ld.so.1 and disable shared libraries on
13351 # powerpc, because MkLinux only supported shared libraries with the
13352 # GNU dynamic linker. Since this was broken with cross compilers,
13353 # most powerpc-linux boxes support dynamic linking these days and
13354 # people can always --disable-shared, the test was removed, and we
13355 # assume the GNU/Linux dynamic linker is in use.
13356 dynamic_linker='GNU/Linux ld.so'
13363 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13364 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13365 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13366 dynamic_linker='NetBSD (a.out) ld.so'
13368 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13369 soname_spec='${libname}${release}${shared_ext}$major'
13370 dynamic_linker='NetBSD ld.elf_so'
13372 shlibpath_var=LD_LIBRARY_PATH
13373 shlibpath_overrides_runpath=yes
13374 hardcode_into_libs=yes
13378 version_type=linux # correct to gnu/linux during the next big refactor
13379 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13380 shlibpath_var=LD_LIBRARY_PATH
13381 shlibpath_overrides_runpath=yes
13388 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13389 soname_spec='${libname}${release}${shared_ext}$major'
13390 shlibpath_var=LD_LIBRARY_PATH
13391 shlibpath_overrides_runpath=no
13392 hardcode_into_libs=yes
13393 dynamic_linker='ldqnx.so'
13398 sys_lib_dlsearch_path_spec="/usr/lib"
13400 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13402 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13403 *) need_version=no ;;
13405 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13406 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13407 shlibpath_var=LD_LIBRARY_PATH
13408 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13410 openbsd2.[89] | openbsd2.[89].*)
13411 shlibpath_overrides_runpath=no
13414 shlibpath_overrides_runpath=yes
13418 shlibpath_overrides_runpath=yes
13423 libname_spec='$name'
13426 library_names_spec='$libname${shared_ext} $libname.a'
13427 dynamic_linker='OS/2 ld.exe'
13428 shlibpath_var=LIBPATH
13431 osf3* | osf4* | osf5*)
13435 soname_spec='${libname}${release}${shared_ext}$major'
13436 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13437 shlibpath_var=LD_LIBRARY_PATH
13438 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13439 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13447 version_type=linux # correct to gnu/linux during the next big refactor
13450 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13451 soname_spec='${libname}${release}${shared_ext}$major'
13452 shlibpath_var=LD_LIBRARY_PATH
13453 shlibpath_overrides_runpath=yes
13454 hardcode_into_libs=yes
13455 # ldd complains unless libraries are executable
13456 postinstall_cmds='chmod +x $lib'
13461 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13462 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13463 shlibpath_var=LD_LIBRARY_PATH
13464 shlibpath_overrides_runpath=yes
13465 if test "$with_gnu_ld" = yes; then
13472 version_type=linux # correct to gnu/linux during the next big refactor
13473 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13474 soname_spec='${libname}${release}${shared_ext}$major'
13475 shlibpath_var=LD_LIBRARY_PATH
13476 case $host_vendor in
13478 shlibpath_overrides_runpath=no
13480 runpath_var=LD_RUN_PATH
13488 shlibpath_overrides_runpath=no
13489 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13495 if test -d /usr/nec ;then
13496 version_type=linux # correct to gnu/linux during the next big refactor
13497 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13498 soname_spec='$libname${shared_ext}.$major'
13499 shlibpath_var=LD_LIBRARY_PATH
13503 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13504 version_type=freebsd-elf
13507 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13508 soname_spec='${libname}${release}${shared_ext}$major'
13509 shlibpath_var=LD_LIBRARY_PATH
13510 shlibpath_overrides_runpath=yes
13511 hardcode_into_libs=yes
13512 if test "$with_gnu_ld" = yes; then
13513 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13515 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13518 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13522 sys_lib_dlsearch_path_spec='/usr/lib'
13526 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
13527 version_type=linux # correct to gnu/linux during the next big refactor
13530 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13531 shlibpath_var=LD_LIBRARY_PATH
13532 shlibpath_overrides_runpath=no
13533 hardcode_into_libs=yes
13537 version_type=linux # correct to gnu/linux during the next big refactor
13538 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13539 soname_spec='${libname}${release}${shared_ext}$major'
13540 shlibpath_var=LD_LIBRARY_PATH
13547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
13548 $as_echo "$dynamic_linker" >&6; }
13549 test "$dynamic_linker" = no && can_build_shared=no
13551 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13552 if test "$GCC" = yes; then
13553 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13556 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
13557 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
13559 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
13560 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
13654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13655 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13657 if test -n "$hardcode_libdir_flag_spec" ||
13658 test -n "$runpath_var" ||
13659 test "X$hardcode_automatic" = "Xyes" ; then
13661 # We can hardcode non-existent directories.
13662 if test "$hardcode_direct" != no &&
13663 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13664 # have to relink, otherwise we might link with an installed library
13665 # when we should be linking with a yet-to-be-installed one
13666 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
13667 test "$hardcode_minus_L" != no; then
13668 # Linking always hardcodes the temporary library directory.
13669 hardcode_action=relink
13671 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13672 hardcode_action=immediate
13675 # We cannot hardcode anything, or else we can only hardcode existing
13677 hardcode_action=unsupported
13679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
13680 $as_echo "$hardcode_action" >&6; }
13682 if test "$hardcode_action" = relink ||
13683 test "$inherit_rpath" = yes; then
13684 # Fast installation is not supported
13685 enable_fast_install=no
13686 elif test "$shlibpath_overrides_runpath" = yes ||
13687 test "$enable_shared" = no; then
13688 # Fast installation is not necessary
13689 enable_fast_install=needless
13697 if test "x$enable_dlopen" != xyes; then
13698 enable_dlopen=unknown
13699 enable_dlopen_self=unknown
13700 enable_dlopen_self_static=unknown
13707 lt_cv_dlopen="load_add_on"
13709 lt_cv_dlopen_self=yes
13712 mingw* | pw32* | cegcc*)
13713 lt_cv_dlopen="LoadLibrary"
13718 lt_cv_dlopen="dlopen"
13723 # if libdl is installed we need to link against it
13724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13725 $as_echo_n "checking for dlopen in -ldl... " >&6; }
13726 if ${ac_cv_lib_dl_dlopen+:} false; then :
13727 $as_echo_n "(cached) " >&6
13729 ac_check_lib_save_LIBS=$LIBS
13731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13732 /* end confdefs.h. */
13734 /* Override any GCC internal prototype to avoid an error.
13735 Use char because int might match the return type of a GCC
13736 builtin and then its argument prototype would still apply. */
13749 if ac_fn_c_try_link "$LINENO"; then :
13750 ac_cv_lib_dl_dlopen=yes
13752 ac_cv_lib_dl_dlopen=no
13754 rm -f core conftest.err conftest.$ac_objext \
13755 conftest$ac_exeext conftest.$ac_ext
13756 LIBS=$ac_check_lib_save_LIBS
13758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13759 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13760 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
13761 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13764 lt_cv_dlopen="dyld"
13766 lt_cv_dlopen_self=yes
13773 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
13774 if test "x$ac_cv_func_shl_load" = xyes; then :
13775 lt_cv_dlopen="shl_load"
13777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
13778 $as_echo_n "checking for shl_load in -ldld... " >&6; }
13779 if ${ac_cv_lib_dld_shl_load+:} false; then :
13780 $as_echo_n "(cached) " >&6
13782 ac_check_lib_save_LIBS=$LIBS
13784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13785 /* end confdefs.h. */
13787 /* Override any GCC internal prototype to avoid an error.
13788 Use char because int might match the return type of a GCC
13789 builtin and then its argument prototype would still apply. */
13797 return shl_load ();
13802 if ac_fn_c_try_link "$LINENO"; then :
13803 ac_cv_lib_dld_shl_load=yes
13805 ac_cv_lib_dld_shl_load=no
13807 rm -f core conftest.err conftest.$ac_objext \
13808 conftest$ac_exeext conftest.$ac_ext
13809 LIBS=$ac_check_lib_save_LIBS
13811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
13812 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
13813 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
13814 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
13816 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
13817 if test "x$ac_cv_func_dlopen" = xyes; then :
13818 lt_cv_dlopen="dlopen"
13820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13821 $as_echo_n "checking for dlopen in -ldl... " >&6; }
13822 if ${ac_cv_lib_dl_dlopen+:} false; then :
13823 $as_echo_n "(cached) " >&6
13825 ac_check_lib_save_LIBS=$LIBS
13827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13828 /* end confdefs.h. */
13830 /* Override any GCC internal prototype to avoid an error.
13831 Use char because int might match the return type of a GCC
13832 builtin and then its argument prototype would still apply. */
13845 if ac_fn_c_try_link "$LINENO"; then :
13846 ac_cv_lib_dl_dlopen=yes
13848 ac_cv_lib_dl_dlopen=no
13850 rm -f core conftest.err conftest.$ac_objext \
13851 conftest$ac_exeext conftest.$ac_ext
13852 LIBS=$ac_check_lib_save_LIBS
13854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13855 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13856 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
13857 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
13860 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
13861 if ${ac_cv_lib_svld_dlopen+:} false; then :
13862 $as_echo_n "(cached) " >&6
13864 ac_check_lib_save_LIBS=$LIBS
13865 LIBS="-lsvld $LIBS"
13866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13867 /* end confdefs.h. */
13869 /* Override any GCC internal prototype to avoid an error.
13870 Use char because int might match the return type of a GCC
13871 builtin and then its argument prototype would still apply. */
13884 if ac_fn_c_try_link "$LINENO"; then :
13885 ac_cv_lib_svld_dlopen=yes
13887 ac_cv_lib_svld_dlopen=no
13889 rm -f core conftest.err conftest.$ac_objext \
13890 conftest$ac_exeext conftest.$ac_ext
13891 LIBS=$ac_check_lib_save_LIBS
13893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
13894 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
13895 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
13896 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
13898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
13899 $as_echo_n "checking for dld_link in -ldld... " >&6; }
13900 if ${ac_cv_lib_dld_dld_link+:} false; then :
13901 $as_echo_n "(cached) " >&6
13903 ac_check_lib_save_LIBS=$LIBS
13905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13906 /* end confdefs.h. */
13908 /* Override any GCC internal prototype to avoid an error.
13909 Use char because int might match the return type of a GCC
13910 builtin and then its argument prototype would still apply. */
13918 return dld_link ();
13923 if ac_fn_c_try_link "$LINENO"; then :
13924 ac_cv_lib_dld_dld_link=yes
13926 ac_cv_lib_dld_dld_link=no
13928 rm -f core conftest.err conftest.$ac_objext \
13929 conftest$ac_exeext conftest.$ac_ext
13930 LIBS=$ac_check_lib_save_LIBS
13932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
13933 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
13934 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
13935 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
13956 if test "x$lt_cv_dlopen" != xno; then
13962 case $lt_cv_dlopen in
13964 save_CPPFLAGS="$CPPFLAGS"
13965 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13967 save_LDFLAGS="$LDFLAGS"
13968 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13971 LIBS="$lt_cv_dlopen_libs $LIBS"
13973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
13974 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
13975 if ${lt_cv_dlopen_self+:} false; then :
13976 $as_echo_n "(cached) " >&6
13978 if test "$cross_compiling" = yes; then :
13979 lt_cv_dlopen_self=cross
13981 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13982 lt_status=$lt_dlunknown
13983 cat > conftest.$ac_ext <<_LT_EOF
13984 #line $LINENO "configure"
13985 #include "confdefs.h"
13994 # define LT_DLGLOBAL RTLD_GLOBAL
13997 # define LT_DLGLOBAL DL_GLOBAL
13999 # define LT_DLGLOBAL 0
14003 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14004 find out it does not work in some platform. */
14005 #ifndef LT_DLLAZY_OR_NOW
14007 # define LT_DLLAZY_OR_NOW RTLD_LAZY
14010 # define LT_DLLAZY_OR_NOW DL_LAZY
14013 # define LT_DLLAZY_OR_NOW RTLD_NOW
14016 # define LT_DLLAZY_OR_NOW DL_NOW
14018 # define LT_DLLAZY_OR_NOW 0
14025 /* When -fvisbility=hidden is used, assume the code has been annotated
14026 correspondingly for the symbols needed. */
14027 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
14028 int fnord () __attribute__((visibility("default")));
14031 int fnord () { return 42; }
14034 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14035 int status = $lt_dlunknown;
14039 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14042 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14043 else puts (dlerror ());
14045 /* dlclose (self); */
14053 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14054 (eval $ac_link) 2>&5
14056 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14057 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
14058 (./conftest; exit; ) >&5 2>/dev/null
14060 case x$lt_status in
14061 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
14062 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
14063 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
14066 # compilation failed
14067 lt_cv_dlopen_self=no
14074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
14075 $as_echo "$lt_cv_dlopen_self" >&6; }
14077 if test "x$lt_cv_dlopen_self" = xyes; then
14078 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
14079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
14080 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
14081 if ${lt_cv_dlopen_self_static+:} false; then :
14082 $as_echo_n "(cached) " >&6
14084 if test "$cross_compiling" = yes; then :
14085 lt_cv_dlopen_self_static=cross
14087 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14088 lt_status=$lt_dlunknown
14089 cat > conftest.$ac_ext <<_LT_EOF
14090 #line $LINENO "configure"
14091 #include "confdefs.h"
14100 # define LT_DLGLOBAL RTLD_GLOBAL
14103 # define LT_DLGLOBAL DL_GLOBAL
14105 # define LT_DLGLOBAL 0
14109 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14110 find out it does not work in some platform. */
14111 #ifndef LT_DLLAZY_OR_NOW
14113 # define LT_DLLAZY_OR_NOW RTLD_LAZY
14116 # define LT_DLLAZY_OR_NOW DL_LAZY
14119 # define LT_DLLAZY_OR_NOW RTLD_NOW
14122 # define LT_DLLAZY_OR_NOW DL_NOW
14124 # define LT_DLLAZY_OR_NOW 0
14131 /* When -fvisbility=hidden is used, assume the code has been annotated
14132 correspondingly for the symbols needed. */
14133 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
14134 int fnord () __attribute__((visibility("default")));
14137 int fnord () { return 42; }
14140 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14141 int status = $lt_dlunknown;
14145 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14148 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14149 else puts (dlerror ());
14151 /* dlclose (self); */
14159 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14160 (eval $ac_link) 2>&5
14162 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14163 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
14164 (./conftest; exit; ) >&5 2>/dev/null
14166 case x$lt_status in
14167 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
14168 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
14169 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
14172 # compilation failed
14173 lt_cv_dlopen_self_static=no
14180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
14181 $as_echo "$lt_cv_dlopen_self_static" >&6; }
14184 CPPFLAGS="$save_CPPFLAGS"
14185 LDFLAGS="$save_LDFLAGS"
14190 case $lt_cv_dlopen_self in
14191 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
14192 *) enable_dlopen_self=unknown ;;
14195 case $lt_cv_dlopen_self_static in
14196 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
14197 *) enable_dlopen_self_static=unknown ;;
14219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
14220 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
14221 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
14222 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14223 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14225 $as_echo "yes" >&6; }
14227 # FIXME - insert some real tests, host_os isn't really good enough
14230 if test -n "$STRIP" ; then
14231 striplib="$STRIP -x"
14232 old_striplib="$STRIP -S"
14233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14234 $as_echo "yes" >&6; }
14236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14237 $as_echo "no" >&6; }
14241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14242 $as_echo "no" >&6; }
14258 # Report which library types will actually be built
14259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
14260 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
14261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
14262 $as_echo "$can_build_shared" >&6; }
14264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
14265 $as_echo_n "checking whether to build shared libraries... " >&6; }
14266 test "$can_build_shared" = "no" && enable_shared=no
14268 # On AIX, shared libraries and static libraries use the same namespace, and
14269 # are all built from PIC.
14272 test "$enable_shared" = yes && enable_static=no
14273 if test -n "$RANLIB"; then
14274 archive_cmds="$archive_cmds~\$RANLIB \$lib"
14275 postinstall_cmds='$RANLIB $lib'
14280 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14281 test "$enable_shared" = yes && enable_static=no
14285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
14286 $as_echo "$enable_shared" >&6; }
14288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
14289 $as_echo_n "checking whether to build static libraries... " >&6; }
14290 # Make sure either enable_shared or enable_static is yes.
14291 test "$enable_shared" = yes || enable_static=yes
14292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
14293 $as_echo "$enable_static" >&6; }
14300 ac_cpp='$CPP $CPPFLAGS'
14301 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14302 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14303 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14307 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
14308 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
14309 (test "X$CXX" != "Xg++"))) ; then
14311 ac_cpp='$CXXCPP $CPPFLAGS'
14312 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14313 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14314 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
14316 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
14317 if test -z "$CXXCPP"; then
14318 if ${ac_cv_prog_CXXCPP+:} false; then :
14319 $as_echo_n "(cached) " >&6
14321 # Double quotes because CXXCPP needs to be expanded
14322 for CXXCPP in "$CXX -E" "/lib/cpp"
14324 ac_preproc_ok=false
14325 for ac_cxx_preproc_warn_flag in '' yes
14327 # Use a header file that comes with gcc, so configuring glibc
14328 # with a fresh cross-compiler works.
14329 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14330 # <limits.h> exists even on freestanding compilers.
14331 # On the NeXT, cc -E runs the code through the compiler's parser,
14332 # not just through cpp. "Syntax error" is here to catch this case.
14333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14334 /* end confdefs.h. */
14336 # include <limits.h>
14338 # include <assert.h>
14342 if ac_fn_cxx_try_cpp "$LINENO"; then :
14345 # Broken: fails on valid input.
14348 rm -f conftest.err conftest.i conftest.$ac_ext
14350 # OK, works on sane cases. Now check whether nonexistent headers
14351 # can be detected and how.
14352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14353 /* end confdefs.h. */
14354 #include <ac_nonexistent.h>
14356 if ac_fn_cxx_try_cpp "$LINENO"; then :
14357 # Broken: success on invalid input.
14360 # Passes both tests.
14364 rm -f conftest.err conftest.i conftest.$ac_ext
14367 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
14368 rm -f conftest.i conftest.err conftest.$ac_ext
14369 if $ac_preproc_ok; then :
14374 ac_cv_prog_CXXCPP=$CXXCPP
14377 CXXCPP=$ac_cv_prog_CXXCPP
14379 ac_cv_prog_CXXCPP=$CXXCPP
14381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
14382 $as_echo "$CXXCPP" >&6; }
14383 ac_preproc_ok=false
14384 for ac_cxx_preproc_warn_flag in '' yes
14386 # Use a header file that comes with gcc, so configuring glibc
14387 # with a fresh cross-compiler works.
14388 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14389 # <limits.h> exists even on freestanding compilers.
14390 # On the NeXT, cc -E runs the code through the compiler's parser,
14391 # not just through cpp. "Syntax error" is here to catch this case.
14392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14393 /* end confdefs.h. */
14395 # include <limits.h>
14397 # include <assert.h>
14401 if ac_fn_cxx_try_cpp "$LINENO"; then :
14404 # Broken: fails on valid input.
14407 rm -f conftest.err conftest.i conftest.$ac_ext
14409 # OK, works on sane cases. Now check whether nonexistent headers
14410 # can be detected and how.
14411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14412 /* end confdefs.h. */
14413 #include <ac_nonexistent.h>
14415 if ac_fn_cxx_try_cpp "$LINENO"; then :
14416 # Broken: success on invalid input.
14419 # Passes both tests.
14423 rm -f conftest.err conftest.i conftest.$ac_ext
14426 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
14427 rm -f conftest.i conftest.err conftest.$ac_ext
14428 if $ac_preproc_ok; then :
14431 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14432 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14433 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
14434 See \`config.log' for more details" "$LINENO" 5; }
14438 ac_cpp='$CPP $CPPFLAGS'
14439 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14440 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14441 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14444 _lt_caught_CXX_error=yes
14448 ac_cpp='$CXXCPP $CPPFLAGS'
14449 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14450 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14451 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14453 archive_cmds_need_lc_CXX=no
14454 allow_undefined_flag_CXX=
14455 always_export_symbols_CXX=no
14456 archive_expsym_cmds_CXX=
14457 compiler_needs_object_CXX=no
14458 export_dynamic_flag_spec_CXX=
14459 hardcode_direct_CXX=no
14460 hardcode_direct_absolute_CXX=no
14461 hardcode_libdir_flag_spec_CXX=
14462 hardcode_libdir_separator_CXX=
14463 hardcode_minus_L_CXX=no
14464 hardcode_shlibpath_var_CXX=unsupported
14465 hardcode_automatic_CXX=no
14466 inherit_rpath_CXX=no
14468 module_expsym_cmds_CXX=
14469 link_all_deplibs_CXX=unknown
14470 old_archive_cmds_CXX=$old_archive_cmds
14471 reload_flag_CXX=$reload_flag
14472 reload_cmds_CXX=$reload_cmds
14473 no_undefined_flag_CXX=
14474 whole_archive_flag_spec_CXX=
14475 enable_shared_with_static_runtimes_CXX=no
14477 # Source file extension for C++ test sources.
14480 # Object file extension for compiled C++ test sources.
14484 # No sense in running all these tests if we already determined that
14485 # the CXX compiler isn't working. Some variables (like enable_shared)
14486 # are currently assumed to apply to all compilers on this platform,
14487 # and will be corrupted by setting them based on a non-working compiler.
14488 if test "$_lt_caught_CXX_error" != yes; then
14489 # Code to be used in simple compile tests
14490 lt_simple_compile_test_code="int some_variable = 0;"
14492 # Code to be used in simple link tests
14493 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
14495 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14502 # If no C compiler was specified, use CC.
14505 # If no C compiler flags were specified, use CFLAGS.
14506 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14508 # Allow CC to be a program name with arguments.
14512 # save warnings/boilerplate of simple test code
14513 ac_outfile=conftest.$ac_objext
14514 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14515 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14516 _lt_compiler_boilerplate=`cat conftest.err`
14519 ac_outfile=conftest.$ac_objext
14520 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14521 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14522 _lt_linker_boilerplate=`cat conftest.err`
14526 # Allow CC to be a program name with arguments.
14528 lt_save_CFLAGS=$CFLAGS
14532 lt_save_with_gnu_ld=$with_gnu_ld
14533 lt_save_path_LD=$lt_cv_path_LD
14534 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
14535 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
14537 $as_unset lt_cv_prog_gnu_ld
14539 if test -n "${lt_cv_path_LDCXX+set}"; then
14540 lt_cv_path_LD=$lt_cv_path_LDCXX
14542 $as_unset lt_cv_path_LD
14544 test -z "${LDCXX+set}" || LD=$LDCXX
14549 for cc_temp in $compiler""; do
14551 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14552 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14557 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
14560 if test -n "$compiler"; then
14561 # We don't want -fno-exception when compiling C++ code, so set the
14562 # no_builtin_flag separately
14563 if test "$GXX" = yes; then
14564 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
14566 lt_prog_compiler_no_builtin_flag_CXX=
14569 if test "$GXX" = yes; then
14570 # Set up default GNU C++ configuration
14574 # Check whether --with-gnu-ld was given.
14575 if test "${with_gnu_ld+set}" = set; then :
14576 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
14582 if test "$GCC" = yes; then
14583 # Check if gcc -print-prog-name=ld gives a path.
14584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
14585 $as_echo_n "checking for ld used by $CC... " >&6; }
14588 # gcc leaves a trailing carriage return which upsets mingw
14589 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
14591 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
14594 # Accept absolute paths.
14596 re_direlt='/[^/][^/]*/\.\./'
14597 # Canonicalize the pathname of ld
14598 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
14599 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
14600 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
14602 test -z "$LD" && LD="$ac_prog"
14605 # If it fails, then pretend we aren't using GCC.
14609 # If it is relative, then search for the first ld in PATH.
14610 with_gnu_ld=unknown
14613 elif test "$with_gnu_ld" = yes; then
14614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
14615 $as_echo_n "checking for GNU ld... " >&6; }
14617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
14618 $as_echo_n "checking for non-GNU ld... " >&6; }
14620 if ${lt_cv_path_LD+:} false; then :
14621 $as_echo_n "(cached) " >&6
14623 if test -z "$LD"; then
14624 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14625 for ac_dir in $PATH; do
14627 test -z "$ac_dir" && ac_dir=.
14628 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
14629 lt_cv_path_LD="$ac_dir/$ac_prog"
14630 # Check to see if the program is GNU ld. I'd rather use --version,
14631 # but apparently some variants of GNU ld only accept -v.
14632 # Break only if it was the GNU/non-GNU ld that we prefer.
14633 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
14634 *GNU* | *'with BFD'*)
14635 test "$with_gnu_ld" != no && break
14638 test "$with_gnu_ld" != yes && break
14645 lt_cv_path_LD="$LD" # Let the user override the test with a path.
14649 LD="$lt_cv_path_LD"
14650 if test -n "$LD"; then
14651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
14652 $as_echo "$LD" >&6; }
14654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14655 $as_echo "no" >&6; }
14657 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
14658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
14659 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
14660 if ${lt_cv_prog_gnu_ld+:} false; then :
14661 $as_echo_n "(cached) " >&6
14663 # I'd rather use --version here, but apparently some GNU lds only accept -v.
14664 case `$LD -v 2>&1 </dev/null` in
14665 *GNU* | *'with BFD'*)
14666 lt_cv_prog_gnu_ld=yes
14669 lt_cv_prog_gnu_ld=no
14673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
14674 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
14675 with_gnu_ld=$lt_cv_prog_gnu_ld
14683 # Check if GNU C++ uses GNU ld as the underlying linker, since the
14684 # archiving commands below assume that GNU ld is being used.
14685 if test "$with_gnu_ld" = yes; then
14686 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14687 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'
14689 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14690 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14692 # If archive_cmds runs LD, not CC, wlarc should be empty
14693 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
14694 # investigate it a little bit more. (MM)
14697 # ancient GNU ld didn't support --whole-archive et. al.
14698 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
14699 $GREP 'no-whole-archive' > /dev/null; then
14700 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14702 whole_archive_flag_spec_CXX=
14708 # A generic and very simple default shared library creation
14709 # command for GNU C++ for the case where it uses the native
14710 # linker, instead of GNU ld. If possible, this setting should
14711 # overridden to take advantage of the native linker features on
14712 # the platform it is being used on.
14713 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14716 # Commands to make compiler produce verbose output that lists
14717 # what "hidden" libraries, object files and flags are used when
14718 # linking a shared library.
14719 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14727 # PORTME: fill in a description of your system's C++ link characteristics
14728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14729 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14733 # FIXME: insert proper C++ library support
14737 if test "$host_cpu" = ia64; then
14738 # On IA64, the linker does run time linking by default, so we don't
14739 # have to do anything special.
14740 aix_use_runtimelinking=no
14741 exp_sym_flag='-Bexport'
14744 aix_use_runtimelinking=no
14746 # Test if we are trying to use run time linking or normal
14747 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14748 # need to do runtime linking.
14749 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
14750 for ld_flag in $LDFLAGS; do
14753 aix_use_runtimelinking=yes
14761 exp_sym_flag='-bexport'
14762 no_entry_flag='-bnoentry'
14765 # When large executables or shared objects are built, AIX ld can
14766 # have problems creating the table of contents. If linking a library
14767 # or program results in "error TOC overflow" add -mminimal-toc to
14768 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14769 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14771 archive_cmds_CXX=''
14772 hardcode_direct_CXX=yes
14773 hardcode_direct_absolute_CXX=yes
14774 hardcode_libdir_separator_CXX=':'
14775 link_all_deplibs_CXX=yes
14776 file_list_spec_CXX='${wl}-f,'
14778 if test "$GXX" = yes; then
14779 case $host_os in aix4.[012]|aix4.[012].*)
14780 # We only want to do this on AIX 4.2 and lower, the check
14781 # below for broken collect2 doesn't work under 4.3+
14782 collect2name=`${CC} -print-prog-name=collect2`
14783 if test -f "$collect2name" &&
14784 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
14786 # We have reworked collect2
14789 # We have old collect2
14790 hardcode_direct_CXX=unsupported
14791 # It fails to find uninstalled libraries when the uninstalled
14792 # path is not listed in the libpath. Setting hardcode_minus_L
14793 # to unsupported forces relinking
14794 hardcode_minus_L_CXX=yes
14795 hardcode_libdir_flag_spec_CXX='-L$libdir'
14796 hardcode_libdir_separator_CXX=
14799 shared_flag='-shared'
14800 if test "$aix_use_runtimelinking" = yes; then
14801 shared_flag="$shared_flag "'${wl}-G'
14805 if test "$host_cpu" = ia64; then
14806 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14807 # chokes on -Wl,-G. The following line is correct:
14810 if test "$aix_use_runtimelinking" = yes; then
14811 shared_flag='${wl}-G'
14813 shared_flag='${wl}-bM:SRE'
14818 export_dynamic_flag_spec_CXX='${wl}-bexpall'
14819 # It seems that -bexpall does not export symbols beginning with
14820 # underscore (_), so it is better to generate a list of symbols to
14822 always_export_symbols_CXX=yes
14823 if test "$aix_use_runtimelinking" = yes; then
14824 # Warning - without using the other runtime loading flags (-brtl),
14825 # -berok will link without error, but may produce a broken library.
14826 allow_undefined_flag_CXX='-berok'
14827 # Determine the default libpath from the value encoded in an empty
14829 if test "${lt_cv_aix_libpath+set}" = set; then
14830 aix_libpath=$lt_cv_aix_libpath
14832 if ${lt_cv_aix_libpath__CXX+:} false; then :
14833 $as_echo_n "(cached) " >&6
14835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14836 /* end confdefs.h. */
14846 if ac_fn_cxx_try_link "$LINENO"; then :
14848 lt_aix_libpath_sed='
14849 /Import File Strings/,/^$/ {
14851 s/^0 *\([^ ]*\) *$/\1/
14855 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14856 # Check for a 64-bit object if we didn't find anything.
14857 if test -z "$lt_cv_aix_libpath__CXX"; then
14858 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14861 rm -f core conftest.err conftest.$ac_objext \
14862 conftest$ac_exeext conftest.$ac_ext
14863 if test -z "$lt_cv_aix_libpath__CXX"; then
14864 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
14869 aix_libpath=$lt_cv_aix_libpath__CXX
14872 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
14874 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"
14876 if test "$host_cpu" = ia64; then
14877 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
14878 allow_undefined_flag_CXX="-z nodefs"
14879 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"
14881 # Determine the default libpath from the value encoded in an
14882 # empty executable.
14883 if test "${lt_cv_aix_libpath+set}" = set; then
14884 aix_libpath=$lt_cv_aix_libpath
14886 if ${lt_cv_aix_libpath__CXX+:} false; then :
14887 $as_echo_n "(cached) " >&6
14889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14890 /* end confdefs.h. */
14900 if ac_fn_cxx_try_link "$LINENO"; then :
14902 lt_aix_libpath_sed='
14903 /Import File Strings/,/^$/ {
14905 s/^0 *\([^ ]*\) *$/\1/
14909 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14910 # Check for a 64-bit object if we didn't find anything.
14911 if test -z "$lt_cv_aix_libpath__CXX"; then
14912 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14915 rm -f core conftest.err conftest.$ac_objext \
14916 conftest$ac_exeext conftest.$ac_ext
14917 if test -z "$lt_cv_aix_libpath__CXX"; then
14918 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
14923 aix_libpath=$lt_cv_aix_libpath__CXX
14926 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
14927 # Warning - without using the other run time loading flags,
14928 # -berok will link without error, but may produce a broken library.
14929 no_undefined_flag_CXX=' ${wl}-bernotok'
14930 allow_undefined_flag_CXX=' ${wl}-berok'
14931 if test "$with_gnu_ld" = yes; then
14932 # We only use this code for GNU lds that support --whole-archive.
14933 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14935 # Exported symbols can be pulled into shared objects from archives
14936 whole_archive_flag_spec_CXX='$convenience'
14938 archive_cmds_need_lc_CXX=yes
14939 # This is similar to how AIX traditionally builds its shared
14941 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'
14947 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14948 allow_undefined_flag_CXX=unsupported
14949 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14950 # support --undefined. This deserves some investigation. FIXME
14951 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14958 case $cc_basename in
14960 # FIXME: insert proper C++ library support
14966 cygwin* | mingw* | pw32* | cegcc*)
14967 case $GXX,$cc_basename in
14970 # hardcode_libdir_flag_spec is actually meaningless, as there is
14971 # no search path for DLLs.
14972 hardcode_libdir_flag_spec_CXX=' '
14973 allow_undefined_flag_CXX=unsupported
14974 always_export_symbols_CXX=yes
14975 file_list_spec_CXX='@'
14976 # Tell ltmain to make .lib files, not .a files.
14978 # Tell ltmain to make .dll files, not .so files.
14980 # FIXME: Setting linknames here is a bad hack.
14981 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
14982 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14983 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
14985 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
14987 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
14989 # The linker will not automatically build a static lib if we build a DLL.
14990 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
14991 enable_shared_with_static_runtimes_CXX=yes
14993 old_postinstall_cmds_CXX='chmod 644 $oldlib'
14994 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
14995 lt_tool_outputfile="@TOOL_OUTPUT@"~
14996 case $lt_outputfile in
14999 lt_outputfile="$lt_outputfile.exe"
15000 lt_tool_outputfile="$lt_tool_outputfile.exe"
15003 func_to_tool_file "$lt_outputfile"~
15004 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
15005 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
15006 $RM "$lt_outputfile.manifest";
15011 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
15012 # as there is no search path for DLLs.
15013 hardcode_libdir_flag_spec_CXX='-L$libdir'
15014 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
15015 allow_undefined_flag_CXX=unsupported
15016 always_export_symbols_CXX=no
15017 enable_shared_with_static_runtimes_CXX=yes
15019 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
15020 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'
15021 # If the export-symbols file already is a .def file (1st line
15022 # is EXPORTS), use it as is; otherwise, prepend...
15023 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15024 cp $export_symbols $output_objdir/$soname.def;
15026 echo EXPORTS > $output_objdir/$soname.def;
15027 cat $export_symbols >> $output_objdir/$soname.def;
15029 $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'
15036 darwin* | rhapsody*)
15039 archive_cmds_need_lc_CXX=no
15040 hardcode_direct_CXX=no
15041 hardcode_automatic_CXX=yes
15042 hardcode_shlibpath_var_CXX=unsupported
15043 if test "$lt_cv_ld_force_load" = "yes"; then
15044 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\"`'
15047 whole_archive_flag_spec_CXX=''
15049 link_all_deplibs_CXX=yes
15050 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
15051 case $cc_basename in
15052 ifort*) _lt_dar_can_shared=yes ;;
15053 *) _lt_dar_can_shared=$GCC ;;
15055 if test "$_lt_dar_can_shared" = "yes"; then
15056 output_verbose_link_cmd=func_echo_all
15057 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}"
15058 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15059 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}"
15060 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}"
15061 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
15062 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}"
15063 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}"
15073 case $cc_basename in
15075 # FIXME: insert proper C++ library support
15079 # Green Hills C++ Compiler
15080 # FIXME: insert proper C++ library support
15084 # FIXME: insert proper C++ library support
15091 # C++ shared libraries reported to be fairly broken before
15097 archive_cmds_need_lc_CXX=no
15100 freebsd* | dragonfly*)
15101 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
15110 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15111 link_all_deplibs_CXX=yes
15115 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15116 hardcode_libdir_separator_CXX=:
15117 export_dynamic_flag_spec_CXX='${wl}-E'
15118 hardcode_direct_CXX=yes
15119 hardcode_minus_L_CXX=yes # Not in the search PATH,
15120 # but as the default
15121 # location of the library.
15123 case $cc_basename in
15125 # FIXME: insert proper C++ library support
15129 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'
15130 # Commands to make compiler produce verbose output that lists
15131 # what "hidden" libraries, object files and flags are used when
15132 # linking a shared library.
15134 # There doesn't appear to be a way to prevent this compiler from
15135 # explicitly linking system object files so we need to strip them
15136 # from the output so that they don't get included in the library
15138 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"'
15141 if test "$GXX" = yes; then
15142 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'
15144 # FIXME: insert proper C++ library support
15152 if test $with_gnu_ld = no; then
15153 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15154 hardcode_libdir_separator_CXX=:
15160 export_dynamic_flag_spec_CXX='${wl}-E'
15166 hardcode_direct_CXX=no
15167 hardcode_shlibpath_var_CXX=no
15170 hardcode_direct_CXX=yes
15171 hardcode_direct_absolute_CXX=yes
15172 hardcode_minus_L_CXX=yes # Not in the search PATH,
15173 # but as the default
15174 # location of the library.
15178 case $cc_basename in
15180 # FIXME: insert proper C++ library support
15186 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15189 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15192 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15195 # Commands to make compiler produce verbose output that lists
15196 # what "hidden" libraries, object files and flags are used when
15197 # linking a shared library.
15199 # There doesn't appear to be a way to prevent this compiler from
15200 # explicitly linking system object files so we need to strip them
15201 # from the output so that they don't get included in the library
15203 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"'
15206 if test "$GXX" = yes; then
15207 if test $with_gnu_ld = no; then
15210 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15213 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15216 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'
15221 # FIXME: insert proper C++ library support
15229 hardcode_direct_CXX=no
15230 hardcode_shlibpath_var_CXX=no
15231 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15232 export_dynamic_flag_spec_CXX='${wl}-E'
15233 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15234 # Instead, shared libraries are loaded at an image base (0x10000000 by
15235 # default) and relocated if they conflict, which is a slow very memory
15236 # consuming and fragmenting process. To avoid this, we pick a random,
15237 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15238 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15239 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'
15240 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'
15243 case $cc_basename in
15246 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'
15248 # Archives containing C++ object files must be created using
15249 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
15250 # necessary to make sure instantiated templates are included
15252 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
15255 if test "$GXX" = yes; then
15256 if test "$with_gnu_ld" = no; then
15257 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'
15259 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'
15262 link_all_deplibs_CXX=yes
15265 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15266 hardcode_libdir_separator_CXX=:
15267 inherit_rpath_CXX=yes
15270 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15271 case $cc_basename in
15273 # Kuck and Associates, Inc. (KAI) C++ Compiler
15275 # KCC will only create a shared library if the output file
15276 # ends with ".so" (or ".sl" for HP-UX), so rename the library
15277 # to its proper name (with version) after linking.
15278 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'
15279 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'
15280 # Commands to make compiler produce verbose output that lists
15281 # what "hidden" libraries, object files and flags are used when
15282 # linking a shared library.
15284 # There doesn't appear to be a way to prevent this compiler from
15285 # explicitly linking system object files so we need to strip them
15286 # from the output so that they don't get included in the library
15288 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"'
15290 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15291 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15293 # Archives containing C++ object files must be created using
15294 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
15295 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
15300 # version 8.0 and above of icpc choke on multiply defined symbols
15301 # if we add $predep_objects and $postdep_objects, however 7.1 and
15302 # earlier do not add the objects themselves.
15303 case `$CC -V 2>&1` in
15305 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15306 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'
15308 *) # Version 8.0 or newer
15311 ia64*) tmp_idyn=' -i_dynamic';;
15313 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15314 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'
15317 archive_cmds_need_lc_CXX=no
15318 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15319 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15320 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
15323 # Portland Group C++ compiler
15325 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
15326 prelink_cmds_CXX='tpldir=Template.dir~
15328 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
15329 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
15330 old_archive_cmds_CXX='tpldir=Template.dir~
15332 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
15333 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
15335 archive_cmds_CXX='tpldir=Template.dir~
15337 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
15338 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
15339 archive_expsym_cmds_CXX='tpldir=Template.dir~
15341 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
15342 $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'
15344 *) # Version 6 and above use weak symbols
15345 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
15346 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'
15350 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
15351 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15352 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'
15356 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15357 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'
15359 runpath_var=LD_RUN_PATH
15360 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
15361 hardcode_libdir_separator_CXX=:
15363 # Commands to make compiler produce verbose output that lists
15364 # what "hidden" libraries, object files and flags are used when
15365 # linking a shared library.
15367 # There doesn't appear to be a way to prevent this compiler from
15368 # explicitly linking system object files so we need to strip them
15369 # from the output so that they don't get included in the library
15371 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'
15373 xl* | mpixl* | bgxl*)
15374 # IBM XL 8.0 on PPC, with GNU ld
15375 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15376 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15377 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15378 if test "x$supports_anon_versioning" = xyes; then
15379 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
15380 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15381 echo "local: *; };" >> $output_objdir/$libname.ver~
15382 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15386 case `$CC -V 2>&1 | sed 5q` in
15389 no_undefined_flag_CXX=' -zdefs'
15390 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15391 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'
15392 hardcode_libdir_flag_spec_CXX='-R$libdir'
15393 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'
15394 compiler_needs_object_CXX=yes
15396 # Not sure whether something based on
15397 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
15399 output_verbose_link_cmd='func_echo_all'
15401 # Archives containing C++ object files must be created using
15402 # "CC -xar", where "CC" is the Sun C++ compiler. This is
15403 # necessary to make sure instantiated templates are included
15405 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
15413 # FIXME: insert proper C++ library support
15418 # FIXME: insert proper C++ library support
15423 case $cc_basename in
15425 # FIXME: insert proper C++ library support
15429 # FIXME: insert proper C++ library support
15436 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15437 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
15439 hardcode_libdir_flag_spec_CXX='-R$libdir'
15440 hardcode_direct_CXX=yes
15441 hardcode_shlibpath_var_CXX=no
15443 # Workaround some broken pre-1.5 toolchains
15444 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
15452 # C++ shared libraries are fairly broken
15457 if test -f /usr/libexec/ld.so; then
15458 hardcode_direct_CXX=yes
15459 hardcode_shlibpath_var_CXX=no
15460 hardcode_direct_absolute_CXX=yes
15461 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15462 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15463 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15464 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
15465 export_dynamic_flag_spec_CXX='${wl}-E'
15466 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15468 output_verbose_link_cmd=func_echo_all
15474 osf3* | osf4* | osf5*)
15475 case $cc_basename in
15477 # Kuck and Associates, Inc. (KAI) C++ Compiler
15479 # KCC will only create a shared library if the output file
15480 # ends with ".so" (or ".sl" for HP-UX), so rename the library
15481 # to its proper name (with version) after linking.
15482 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'
15484 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15485 hardcode_libdir_separator_CXX=:
15487 # Archives containing C++ object files must be created using
15488 # the KAI C++ compiler.
15490 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
15491 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
15495 # Rational C++ 2.4.1
15496 # FIXME: insert proper C++ library support
15502 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
15503 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'
15504 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15507 allow_undefined_flag_CXX=' -expect_unresolved \*'
15508 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'
15509 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
15510 echo "-hidden">> $lib.exp~
15511 $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~
15513 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
15517 hardcode_libdir_separator_CXX=:
15519 # Commands to make compiler produce verbose output that lists
15520 # what "hidden" libraries, object files and flags are used when
15521 # linking a shared library.
15523 # There doesn't appear to be a way to prevent this compiler from
15524 # explicitly linking system object files so we need to strip them
15525 # from the output so that they don't get included in the library
15527 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"'
15530 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
15531 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
15534 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'
15537 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'
15541 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15542 hardcode_libdir_separator_CXX=:
15544 # Commands to make compiler produce verbose output that lists
15545 # what "hidden" libraries, object files and flags are used when
15546 # linking a shared library.
15547 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
15550 # FIXME: insert proper C++ library support
15558 # FIXME: insert proper C++ library support
15563 case $cc_basename in
15566 # FIXME: insert proper C++ library support
15571 # FIXME: insert proper C++ library support
15575 # FIXME: insert proper C++ library support
15582 case $cc_basename in
15584 # Sun C++ 4.2, 5.x and Centerline C++
15585 archive_cmds_need_lc_CXX=yes
15586 no_undefined_flag_CXX=' -zdefs'
15587 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15588 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15589 $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'
15591 hardcode_libdir_flag_spec_CXX='-R$libdir'
15592 hardcode_shlibpath_var_CXX=no
15594 solaris2.[0-5] | solaris2.[0-5].*) ;;
15596 # The compiler driver will combine and reorder linker options,
15597 # but understands `-z linker_flag'.
15598 # Supported since Solaris 2.6 (maybe 2.5.1?)
15599 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
15602 link_all_deplibs_CXX=yes
15604 output_verbose_link_cmd='func_echo_all'
15606 # Archives containing C++ object files must be created using
15607 # "CC -xar", where "CC" is the Sun C++ compiler. This is
15608 # necessary to make sure instantiated templates are included
15610 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
15613 # Green Hills C++ Compiler
15614 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
15616 # The C++ compiler must be used to create the archive.
15617 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
15620 # GNU C++ compiler with Solaris linker
15621 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
15622 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
15623 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
15624 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
15625 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15626 $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
15628 # Commands to make compiler produce verbose output that lists
15629 # what "hidden" libraries, object files and flags are used when
15630 # linking a shared library.
15631 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
15633 # g++ 2.7 appears to require `-G' NOT `-shared' on this
15635 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
15636 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15637 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
15639 # Commands to make compiler produce verbose output that lists
15640 # what "hidden" libraries, object files and flags are used when
15641 # linking a shared library.
15642 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
15645 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
15647 solaris2.[0-5] | solaris2.[0-5].*) ;;
15649 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15657 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15658 no_undefined_flag_CXX='${wl}-z,text'
15659 archive_cmds_need_lc_CXX=no
15660 hardcode_shlibpath_var_CXX=no
15661 runpath_var='LD_RUN_PATH'
15663 case $cc_basename in
15665 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15666 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15669 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15670 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15675 sysv5* | sco3.2v5* | sco5v6*)
15676 # Note: We can NOT use -z defs as we might desire, because we do not
15677 # link with -lc, and that would cause any symbols used from libc to
15678 # always be unresolved, which means just about no library would
15679 # ever link correctly. If we're not using GNU ld we use -z text
15680 # though, which does catch some bad symbols but isn't as heavy-handed
15682 no_undefined_flag_CXX='${wl}-z,text'
15683 allow_undefined_flag_CXX='${wl}-z,nodefs'
15684 archive_cmds_need_lc_CXX=no
15685 hardcode_shlibpath_var_CXX=no
15686 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
15687 hardcode_libdir_separator_CXX=':'
15688 link_all_deplibs_CXX=yes
15689 export_dynamic_flag_spec_CXX='${wl}-Bexport'
15690 runpath_var='LD_RUN_PATH'
15692 case $cc_basename in
15694 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15695 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15696 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
15697 '"$old_archive_cmds_CXX"
15698 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
15699 '"$reload_cmds_CXX"
15702 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15703 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15709 case $cc_basename in
15711 # NonStop-UX NCC 3.20
15712 # FIXME: insert proper C++ library support
15716 # FIXME: insert proper C++ library support
15723 # FIXME: insert proper C++ library support
15728 # FIXME: insert proper C++ library support
15733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15734 $as_echo "$ld_shlibs_CXX" >&6; }
15735 test "$ld_shlibs_CXX" = no && can_build_shared=no
15741 ## There is no encapsulation within the following macros, do not change
15742 ## the running order or otherwise move them around unless you know exactly
15743 ## what you are doing...
15744 # Dependencies to place before and after the object being linked:
15745 predep_objects_CXX=
15746 postdep_objects_CXX=
15749 compiler_lib_search_path_CXX=
15751 cat > conftest.$ac_ext <<_LT_EOF
15755 Foo (void) { a = 0; }
15762 _lt_libdeps_save_CFLAGS=$CFLAGS
15763 case "$CC $CFLAGS " in #(
15764 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
15765 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
15766 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
15769 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15770 (eval $ac_compile) 2>&5
15772 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15773 test $ac_status = 0; }; then
15774 # Parse the compiler output and extract the necessary
15775 # objects, libraries and library flags.
15777 # Sentinel used to keep track of whether or not we are before
15778 # the conftest object file.
15779 pre_test_object_deps_done=no
15781 for p in `eval "$output_verbose_link_cmd"`; do
15782 case ${prev}${p} in
15785 # Some compilers place space between "-{L,R}" and the path.
15786 # Remove the space.
15787 if test $p = "-L" ||
15788 test $p = "-R"; then
15793 # Expand the sysroot to ease extracting the directories later.
15794 if test -z "$prev"; then
15796 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
15797 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
15798 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
15802 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
15804 if test "$pre_test_object_deps_done" = no; then
15807 # Internal compiler library paths should come after those
15808 # provided the user. The postdeps already come after the
15809 # user supplied libs so there is no need to process them.
15810 if test -z "$compiler_lib_search_path_CXX"; then
15811 compiler_lib_search_path_CXX="${prev}${p}"
15813 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
15816 # The "-l" case would never come before the object being
15817 # linked, so don't bother handling this case.
15820 if test -z "$postdeps_CXX"; then
15821 postdeps_CXX="${prev}${p}"
15823 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
15829 *.lto.$objext) ;; # Ignore GCC LTO objects
15831 # This assumes that the test object file only shows up
15832 # once in the compiler output.
15833 if test "$p" = "conftest.$objext"; then
15834 pre_test_object_deps_done=yes
15838 if test "$pre_test_object_deps_done" = no; then
15839 if test -z "$predep_objects_CXX"; then
15840 predep_objects_CXX="$p"
15842 predep_objects_CXX="$predep_objects_CXX $p"
15845 if test -z "$postdep_objects_CXX"; then
15846 postdep_objects_CXX="$p"
15848 postdep_objects_CXX="$postdep_objects_CXX $p"
15853 *) ;; # Ignore the rest.
15861 echo "libtool.m4: error: problem compiling CXX test program"
15864 $RM -f confest.$objext
15865 CFLAGS=$_lt_libdeps_save_CFLAGS
15867 # PORTME: override above test on systems where it is broken
15870 # Interix 3.5 installs completely hosed .la files for C++, so rather than
15871 # hack all around it, let's just trust "g++" to DTRT.
15872 predep_objects_CXX=
15873 postdep_objects_CXX=
15878 case `$CC -V 2>&1 | sed 5q` in
15882 # The more standards-conforming stlport4 library is
15883 # incompatible with the Cstd library. Avoid specifying
15884 # it if it's in CXXFLAGS. Ignore libCrun as
15885 # -library=stlport4 depends on it.
15886 case " $CXX $CXXFLAGS " in
15887 *" -library=stlport4 "*)
15888 solaris_use_stlport4=yes
15892 if test "$solaris_use_stlport4" != yes; then
15893 postdeps_CXX='-library=Cstd -library=Crun'
15900 case $cc_basename in
15902 # The more standards-conforming stlport4 library is
15903 # incompatible with the Cstd library. Avoid specifying
15904 # it if it's in CXXFLAGS. Ignore libCrun as
15905 # -library=stlport4 depends on it.
15906 case " $CXX $CXXFLAGS " in
15907 *" -library=stlport4 "*)
15908 solaris_use_stlport4=yes
15912 # Adding this requires a known-good setup of shared libraries for
15913 # Sun compiler versions before 5.6, else PIC objects from an old
15914 # archive will be linked into the output, leading to subtle bugs.
15915 if test "$solaris_use_stlport4" != yes; then
15916 postdeps_CXX='-library=Cstd -library=Crun'
15924 case " $postdeps_CXX " in
15925 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
15927 compiler_lib_search_dirs_CXX=
15928 if test -n "${compiler_lib_search_path_CXX}"; then
15929 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
15962 lt_prog_compiler_wl_CXX=
15963 lt_prog_compiler_pic_CXX=
15964 lt_prog_compiler_static_CXX=
15967 # C++ specific cases for pic, static, wl, etc.
15968 if test "$GXX" = yes; then
15969 lt_prog_compiler_wl_CXX='-Wl,'
15970 lt_prog_compiler_static_CXX='-static'
15974 # All AIX code is PIC.
15975 if test "$host_cpu" = ia64; then
15976 # AIX 5 now supports IA64 processor
15977 lt_prog_compiler_static_CXX='-Bstatic'
15984 # see comment about AmigaOS4 .so support
15985 lt_prog_compiler_pic_CXX='-fPIC'
15988 # FIXME: we need at least 68020 code to build shared libraries, but
15989 # adding the `-m68020' flag to GCC prevents building anything better,
15991 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
15996 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15997 # PIC is the default for these OSes.
15999 mingw* | cygwin* | os2* | pw32* | cegcc*)
16000 # This hack is so that the source file can tell whether it is being
16001 # built for inclusion in a dll (and should export symbols for example).
16002 # Although the cygwin gcc ignores -fPIC, still need this for old-style
16003 # (--disable-auto-import) libraries
16004 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
16006 darwin* | rhapsody*)
16007 # PIC is the default on this platform
16008 # Common symbols not allowed in MH_DYLIB files
16009 lt_prog_compiler_pic_CXX='-fno-common'
16012 # DJGPP does not support shared libraries at all
16013 lt_prog_compiler_pic_CXX=
16016 # PIC is the default for Haiku.
16017 # The "-static" flag exists, but is broken.
16018 lt_prog_compiler_static_CXX=
16021 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16022 # Instead, we relocate shared libraries at runtime.
16025 if test -d /usr/nec; then
16026 lt_prog_compiler_pic_CXX=-Kconform_pic
16030 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
16031 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
16032 # sets the default TLS model and affects inlining.
16037 lt_prog_compiler_pic_CXX='-fPIC'
16042 # QNX uses GNU C++, but need to define -shared option too, otherwise
16043 # it will coredump.
16044 lt_prog_compiler_pic_CXX='-fPIC -shared'
16047 lt_prog_compiler_pic_CXX='-fPIC'
16053 # All AIX code is PIC.
16054 if test "$host_cpu" = ia64; then
16055 # AIX 5 now supports IA64 processor
16056 lt_prog_compiler_static_CXX='-Bstatic'
16058 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
16062 case $cc_basename in
16064 # Green Hills C++ Compiler
16065 # _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"
16069 mingw* | cygwin* | os2* | pw32* | cegcc*)
16070 # This hack is so that the source file can tell whether it is being
16071 # built for inclusion in a dll (and should export symbols for example).
16072 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
16075 case $cc_basename in
16077 lt_prog_compiler_pic_CXX='-KPIC'
16080 # Green Hills C++ Compiler
16081 lt_prog_compiler_pic_CXX='-pic'
16087 freebsd* | dragonfly*)
16088 # FreeBSD uses GNU C++
16090 hpux9* | hpux10* | hpux11*)
16091 case $cc_basename in
16093 lt_prog_compiler_wl_CXX='-Wl,'
16094 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
16095 if test "$host_cpu" != ia64; then
16096 lt_prog_compiler_pic_CXX='+Z'
16100 lt_prog_compiler_wl_CXX='-Wl,'
16101 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
16107 lt_prog_compiler_pic_CXX='+Z'
16116 # This is c89, which is MS Visual C++ (no shared libs)
16117 # Anyone wants to do a port?
16119 irix5* | irix6* | nonstopux*)
16120 case $cc_basename in
16122 lt_prog_compiler_wl_CXX='-Wl,'
16123 lt_prog_compiler_static_CXX='-non_shared'
16124 # CC pic flag -KPIC is the default.
16130 linux* | k*bsd*-gnu | kopensolaris*-gnu)
16131 case $cc_basename in
16134 lt_prog_compiler_wl_CXX='--backend -Wl,'
16135 lt_prog_compiler_pic_CXX='-fPIC'
16138 # old Intel C++ for x86_64 which still supported -KPIC.
16139 lt_prog_compiler_wl_CXX='-Wl,'
16140 lt_prog_compiler_pic_CXX='-KPIC'
16141 lt_prog_compiler_static_CXX='-static'
16144 # Intel C++, used to be incompatible with GCC.
16145 # ICC 10 doesn't accept -KPIC any more.
16146 lt_prog_compiler_wl_CXX='-Wl,'
16147 lt_prog_compiler_pic_CXX='-fPIC'
16148 lt_prog_compiler_static_CXX='-static'
16151 # Portland Group C++ compiler
16152 lt_prog_compiler_wl_CXX='-Wl,'
16153 lt_prog_compiler_pic_CXX='-fpic'
16154 lt_prog_compiler_static_CXX='-Bstatic'
16158 # Make sure the PIC flag is empty. It appears that all Alpha
16159 # Linux and Compaq Tru64 Unix objects are PIC.
16160 lt_prog_compiler_pic_CXX=
16161 lt_prog_compiler_static_CXX='-non_shared'
16163 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
16164 # IBM XL 8.0, 9.0 on PPC and BlueGene
16165 lt_prog_compiler_wl_CXX='-Wl,'
16166 lt_prog_compiler_pic_CXX='-qpic'
16167 lt_prog_compiler_static_CXX='-qstaticlink'
16170 case `$CC -V 2>&1 | sed 5q` in
16173 lt_prog_compiler_pic_CXX='-KPIC'
16174 lt_prog_compiler_static_CXX='-Bstatic'
16175 lt_prog_compiler_wl_CXX='-Qoption ld '
16186 case $cc_basename in
16188 lt_prog_compiler_pic_CXX='-W c,exportall'
16197 # QNX uses GNU C++, but need to define -shared option too, otherwise
16198 # it will coredump.
16199 lt_prog_compiler_pic_CXX='-fPIC -shared'
16201 osf3* | osf4* | osf5*)
16202 case $cc_basename in
16204 lt_prog_compiler_wl_CXX='--backend -Wl,'
16207 # Rational C++ 2.4.1
16208 lt_prog_compiler_pic_CXX='-pic'
16211 # Digital/Compaq C++
16212 lt_prog_compiler_wl_CXX='-Wl,'
16213 # Make sure the PIC flag is empty. It appears that all Alpha
16214 # Linux and Compaq Tru64 Unix objects are PIC.
16215 lt_prog_compiler_pic_CXX=
16216 lt_prog_compiler_static_CXX='-non_shared'
16225 case $cc_basename in
16227 # Sun C++ 4.2, 5.x and Centerline C++
16228 lt_prog_compiler_pic_CXX='-KPIC'
16229 lt_prog_compiler_static_CXX='-Bstatic'
16230 lt_prog_compiler_wl_CXX='-Qoption ld '
16233 # Green Hills C++ Compiler
16234 lt_prog_compiler_pic_CXX='-PIC'
16241 case $cc_basename in
16244 lt_prog_compiler_pic_CXX='-pic'
16245 lt_prog_compiler_static_CXX='-Bstatic'
16249 lt_prog_compiler_pic_CXX='-pic'
16255 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16256 case $cc_basename in
16258 lt_prog_compiler_wl_CXX='-Wl,'
16259 lt_prog_compiler_pic_CXX='-KPIC'
16260 lt_prog_compiler_static_CXX='-Bstatic'
16265 case $cc_basename in
16267 # NonStop-UX NCC 3.20
16268 lt_prog_compiler_pic_CXX='-KPIC'
16277 lt_prog_compiler_can_build_shared_CXX=no
16283 # For platforms which do not support PIC, -DPIC is meaningless:
16285 lt_prog_compiler_pic_CXX=
16288 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
16292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
16293 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
16294 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
16295 $as_echo_n "(cached) " >&6
16297 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
16299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
16300 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
16301 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
16304 # Check to make sure the PIC flag actually works.
16306 if test -n "$lt_prog_compiler_pic_CXX"; then
16307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
16308 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
16309 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
16310 $as_echo_n "(cached) " >&6
16312 lt_cv_prog_compiler_pic_works_CXX=no
16313 ac_outfile=conftest.$ac_objext
16314 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16315 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
16316 # Insert the option either (1) after the last *FLAGS variable, or
16317 # (2) before a word containing "conftest.", or (3) at the end.
16318 # Note that $ac_compile itself does not contain backslashes and begins
16319 # with a dollar sign (not a hyphen), so the echo should work correctly.
16320 # The option is referenced via a variable to avoid confusing sed.
16321 lt_compile=`echo "$ac_compile" | $SED \
16322 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16323 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16324 -e 's:$: $lt_compiler_flag:'`
16325 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16326 (eval "$lt_compile" 2>conftest.err)
16328 cat conftest.err >&5
16329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16330 if (exit $ac_status) && test -s "$ac_outfile"; then
16331 # The compiler can only warn and ignore the option if not recognized
16332 # So say no if there are warnings other than the usual output.
16333 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
16334 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16335 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16336 lt_cv_prog_compiler_pic_works_CXX=yes
16342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
16343 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
16345 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
16346 case $lt_prog_compiler_pic_CXX in
16348 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
16351 lt_prog_compiler_pic_CXX=
16352 lt_prog_compiler_can_build_shared_CXX=no
16362 # Check to make sure the static flag actually works.
16364 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
16365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16366 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
16367 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
16368 $as_echo_n "(cached) " >&6
16370 lt_cv_prog_compiler_static_works_CXX=no
16371 save_LDFLAGS="$LDFLAGS"
16372 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16373 echo "$lt_simple_link_test_code" > conftest.$ac_ext
16374 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16375 # The linker can only warn and ignore the option if not recognized
16376 # So say no if there are warnings
16377 if test -s conftest.err; then
16378 # Append any errors to the config.log.
16379 cat conftest.err 1>&5
16380 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
16381 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16382 if diff conftest.exp conftest.er2 >/dev/null; then
16383 lt_cv_prog_compiler_static_works_CXX=yes
16386 lt_cv_prog_compiler_static_works_CXX=yes
16390 LDFLAGS="$save_LDFLAGS"
16393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
16394 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
16396 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
16399 lt_prog_compiler_static_CXX=
16405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
16406 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16407 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
16408 $as_echo_n "(cached) " >&6
16410 lt_cv_prog_compiler_c_o_CXX=no
16411 $RM -r conftest 2>/dev/null
16415 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16417 lt_compiler_flag="-o out/conftest2.$ac_objext"
16418 # Insert the option either (1) after the last *FLAGS variable, or
16419 # (2) before a word containing "conftest.", or (3) at the end.
16420 # Note that $ac_compile itself does not contain backslashes and begins
16421 # with a dollar sign (not a hyphen), so the echo should work correctly.
16422 lt_compile=`echo "$ac_compile" | $SED \
16423 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16424 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16425 -e 's:$: $lt_compiler_flag:'`
16426 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16427 (eval "$lt_compile" 2>out/conftest.err)
16429 cat out/conftest.err >&5
16430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16431 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16433 # The compiler can only warn and ignore the option if not recognized
16434 # So say no if there are warnings
16435 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
16436 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16437 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16438 lt_cv_prog_compiler_c_o_CXX=yes
16443 # SGI C++ compiler will create directory out/ii_files/ for
16444 # template instantiation
16445 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16446 $RM out/* && rmdir out
16452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
16453 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
16457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
16458 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16459 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
16460 $as_echo_n "(cached) " >&6
16462 lt_cv_prog_compiler_c_o_CXX=no
16463 $RM -r conftest 2>/dev/null
16467 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16469 lt_compiler_flag="-o out/conftest2.$ac_objext"
16470 # Insert the option either (1) after the last *FLAGS variable, or
16471 # (2) before a word containing "conftest.", or (3) at the end.
16472 # Note that $ac_compile itself does not contain backslashes and begins
16473 # with a dollar sign (not a hyphen), so the echo should work correctly.
16474 lt_compile=`echo "$ac_compile" | $SED \
16475 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16476 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16477 -e 's:$: $lt_compiler_flag:'`
16478 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16479 (eval "$lt_compile" 2>out/conftest.err)
16481 cat out/conftest.err >&5
16482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16483 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16485 # The compiler can only warn and ignore the option if not recognized
16486 # So say no if there are warnings
16487 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
16488 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16489 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16490 lt_cv_prog_compiler_c_o_CXX=yes
16495 # SGI C++ compiler will create directory out/ii_files/ for
16496 # template instantiation
16497 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16498 $RM out/* && rmdir out
16504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
16505 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
16510 hard_links="nottested"
16511 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
16512 # do not overwrite the value of need_locks provided by the user
16513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
16514 $as_echo_n "checking if we can lock with hard links... " >&6; }
16517 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16519 ln conftest.a conftest.b 2>&5 || hard_links=no
16520 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
16522 $as_echo "$hard_links" >&6; }
16523 if test "$hard_links" = no; then
16524 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16525 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16535 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
16537 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16538 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
16541 # If we're using GNU nm, then we don't want the "-C" option.
16542 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16543 # Also, AIX nm treats weak defined symbols like other global defined
16544 # symbols, whereas GNU nm marks them as "W".
16545 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
16546 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'
16548 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'
16552 export_symbols_cmds_CXX="$ltdll_cmds"
16554 cygwin* | mingw* | cegcc*)
16555 case $cc_basename in
16557 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
16560 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'
16561 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
16566 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
16571 $as_echo "$ld_shlibs_CXX" >&6; }
16572 test "$ld_shlibs_CXX" = no && can_build_shared=no
16574 with_gnu_ld_CXX=$with_gnu_ld
16582 # Do we need to explicitly link libc?
16584 case "x$archive_cmds_need_lc_CXX" in
16586 # Assume -lc should be added
16587 archive_cmds_need_lc_CXX=yes
16589 if test "$enable_shared" = yes && test "$GCC" = yes; then
16590 case $archive_cmds_CXX in
16592 # FIXME: we may have to deal with multi-command sequences.
16595 # Test whether the compiler implicitly links with -lc since on some
16596 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16597 # to ld, don't add -lc before -lgcc.
16598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
16599 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
16600 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
16601 $as_echo_n "(cached) " >&6
16604 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16606 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16607 (eval $ac_compile) 2>&5
16609 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16610 test $ac_status = 0; } 2>conftest.err; then
16613 libobjs=conftest.$ac_objext
16615 wl=$lt_prog_compiler_wl_CXX
16616 pic_flag=$lt_prog_compiler_pic_CXX
16622 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
16623 allow_undefined_flag_CXX=
16624 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
16625 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
16627 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16628 test $ac_status = 0; }
16630 lt_cv_archive_cmds_need_lc_CXX=no
16632 lt_cv_archive_cmds_need_lc_CXX=yes
16634 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
16636 cat conftest.err 1>&5
16641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
16642 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
16643 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
16711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16712 $as_echo_n "checking dynamic linker characteristics... " >&6; }
16714 library_names_spec=
16715 libname_spec='lib$name'
16719 postuninstall_cmds=
16723 shlibpath_overrides_runpath=unknown
16725 dynamic_linker="$host_os ld.so"
16726 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16727 need_lib_prefix=unknown
16728 hardcode_into_libs=no
16730 # when you set need_version to no, make sure it does not cause -set_version
16731 # flags to be left without arguments
16732 need_version=unknown
16736 version_type=linux # correct to gnu/linux during the next big refactor
16737 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16738 shlibpath_var=LIBPATH
16740 # AIX 3 has no versioning support, so we append a major version to the name.
16741 soname_spec='${libname}${release}${shared_ext}$major'
16745 version_type=linux # correct to gnu/linux during the next big refactor
16748 hardcode_into_libs=yes
16749 if test "$host_cpu" = ia64; then
16750 # AIX 5 supports IA64
16751 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16752 shlibpath_var=LD_LIBRARY_PATH
16754 # With GCC up to 2.95.x, collect2 would create an import file
16755 # for dependence libraries. The import file would start with
16756 # the line `#! .'. This would cause the generated library to
16757 # depend on `.', always an invalid library. This was fixed in
16758 # development snapshots of GCC prior to 3.0.
16760 aix4 | aix4.[01] | aix4.[01].*)
16761 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16763 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
16766 can_build_shared=no
16770 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16771 # soname into executable. Probably we can add versioning support to
16772 # collect2, so additional links can be useful in future.
16773 if test "$aix_use_runtimelinking" = yes; then
16774 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16775 # instead of lib<name>.a to let people know that these are not
16776 # typical AIX shared libraries.
16777 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16779 # We preserve .a as extension for shared libraries through AIX4.2
16780 # and later when we are not doing run time linking.
16781 library_names_spec='${libname}${release}.a $libname.a'
16782 soname_spec='${libname}${release}${shared_ext}$major'
16784 shlibpath_var=LIBPATH
16791 # Since July 2007 AmigaOS4 officially supports .so libraries.
16792 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16793 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16796 library_names_spec='$libname.ixlibrary $libname.a'
16797 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16798 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'
16804 library_names_spec='${libname}${shared_ext}'
16805 dynamic_linker="$host_os ld.so"
16806 shlibpath_var=LIBRARY_PATH
16810 version_type=linux # correct to gnu/linux during the next big refactor
16812 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16813 soname_spec='${libname}${release}${shared_ext}$major'
16814 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16815 shlibpath_var=LD_LIBRARY_PATH
16816 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16817 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16818 # the default ld.so.conf also contains /usr/contrib/lib and
16819 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16820 # libtool to hard-code these into programs
16823 cygwin* | mingw* | pw32* | cegcc*)
16824 version_type=windows
16829 case $GCC,$cc_basename in
16832 library_names_spec='$libname.dll.a'
16833 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16834 postinstall_cmds='base_file=`basename \${file}`~
16835 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16836 dldir=$destdir/`dirname \$dlpath`~
16837 test -d \$dldir || mkdir -p \$dldir~
16838 $install_prog $dir/$dlname \$dldir/$dlname~
16839 chmod a+x \$dldir/$dlname~
16840 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16841 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16843 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16844 dlpath=$dir/\$dldll~
16846 shlibpath_overrides_runpath=yes
16850 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16851 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16855 # MinGW DLLs use traditional 'lib' prefix
16856 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16859 # pw32 DLLs use 'pw' prefix rather than 'lib'
16860 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16863 dynamic_linker='Win32 ld.exe'
16868 libname_spec='$name'
16869 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16870 library_names_spec='${libname}.dll.lib'
16874 sys_lib_search_path_spec=
16877 for lt_path in $LIB
16880 # Let DOS variable expansion print the short 8.3 style file name.
16881 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
16882 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
16885 # Convert to MSYS style.
16886 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
16889 # Convert to unix form, then to dos form, then back to unix form
16890 # but this time dos style (no spaces!) so that the unix form looks
16891 # like /cygdrive/c/PROGRA~1:/cygdr...
16892 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
16893 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
16894 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16897 sys_lib_search_path_spec="$LIB"
16898 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
16899 # It is most probably a Windows format PATH.
16900 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16902 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16904 # FIXME: find the short name or the path components, as spaces are
16905 # common. (e.g. "Program Files" -> "PROGRA~1")
16909 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16910 postinstall_cmds='base_file=`basename \${file}`~
16911 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16912 dldir=$destdir/`dirname \$dlpath`~
16913 test -d \$dldir || mkdir -p \$dldir~
16914 $install_prog $dir/$dlname \$dldir/$dlname'
16915 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16916 dlpath=$dir/\$dldll~
16918 shlibpath_overrides_runpath=yes
16919 dynamic_linker='Win32 link.exe'
16923 # Assume MSVC wrapper
16924 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16925 dynamic_linker='Win32 ld.exe'
16928 # FIXME: first we should search . and the directory the executable is in
16932 darwin* | rhapsody*)
16933 dynamic_linker="$host_os dyld"
16934 version_type=darwin
16937 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16938 soname_spec='${libname}${release}${major}$shared_ext'
16939 shlibpath_overrides_runpath=yes
16940 shlibpath_var=DYLD_LIBRARY_PATH
16941 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16943 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16947 version_type=linux # correct to gnu/linux during the next big refactor
16950 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16951 soname_spec='${libname}${release}${shared_ext}$major'
16952 shlibpath_var=LD_LIBRARY_PATH
16955 freebsd* | dragonfly*)
16956 # DragonFly does not have aout. When/if they implement a new
16957 # versioning mechanism, adjust this.
16958 if test -x /usr/bin/objformat; then
16959 objformat=`/usr/bin/objformat`
16962 freebsd[23].*) objformat=aout ;;
16963 *) objformat=elf ;;
16966 version_type=freebsd-$objformat
16967 case $version_type in
16969 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16974 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16978 shlibpath_var=LD_LIBRARY_PATH
16981 shlibpath_overrides_runpath=yes
16983 freebsd3.[01]* | freebsdelf3.[01]*)
16984 shlibpath_overrides_runpath=yes
16985 hardcode_into_libs=yes
16987 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16988 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16989 shlibpath_overrides_runpath=no
16990 hardcode_into_libs=yes
16992 *) # from 4.6 on, and DragonFly
16993 shlibpath_overrides_runpath=yes
16994 hardcode_into_libs=yes
17000 version_type=linux # correct to gnu/linux during the next big refactor
17003 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17004 soname_spec='${libname}${release}${shared_ext}$major'
17005 shlibpath_var=LD_LIBRARY_PATH
17006 shlibpath_overrides_runpath=no
17007 hardcode_into_libs=yes
17011 version_type=linux # correct to gnu/linux during the next big refactor
17014 dynamic_linker="$host_os runtime_loader"
17015 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17016 soname_spec='${libname}${release}${shared_ext}$major'
17017 shlibpath_var=LIBRARY_PATH
17018 shlibpath_overrides_runpath=yes
17019 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
17020 hardcode_into_libs=yes
17023 hpux9* | hpux10* | hpux11*)
17024 # Give a soname corresponding to the major version so that dld.sl refuses to
17025 # link against other versions.
17032 hardcode_into_libs=yes
17033 dynamic_linker="$host_os dld.so"
17034 shlibpath_var=LD_LIBRARY_PATH
17035 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17036 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17037 soname_spec='${libname}${release}${shared_ext}$major'
17038 if test "X$HPUX_IA64_MODE" = X32; then
17039 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17041 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17043 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17047 hardcode_into_libs=yes
17048 dynamic_linker="$host_os dld.sl"
17049 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17050 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17051 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17052 soname_spec='${libname}${release}${shared_ext}$major'
17053 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17054 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17058 dynamic_linker="$host_os dld.sl"
17059 shlibpath_var=SHLIB_PATH
17060 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17061 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17062 soname_spec='${libname}${release}${shared_ext}$major'
17065 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
17066 postinstall_cmds='chmod 555 $lib'
17067 # or fails outright, so override atomically:
17068 install_override_mode=555
17072 version_type=linux # correct to gnu/linux during the next big refactor
17075 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17076 soname_spec='${libname}${release}${shared_ext}$major'
17077 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17078 shlibpath_var=LD_LIBRARY_PATH
17079 shlibpath_overrides_runpath=no
17080 hardcode_into_libs=yes
17083 irix5* | irix6* | nonstopux*)
17085 nonstopux*) version_type=nonstopux ;;
17087 if test "$lt_cv_prog_gnu_ld" = yes; then
17088 version_type=linux # correct to gnu/linux during the next big refactor
17095 soname_spec='${libname}${release}${shared_ext}$major'
17096 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17098 irix5* | nonstopux*)
17099 libsuff= shlibsuff=
17102 case $LD in # libtool.m4 will add one of these switches to LD
17103 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17104 libsuff= shlibsuff= libmagic=32-bit;;
17105 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17106 libsuff=32 shlibsuff=N32 libmagic=N32;;
17107 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17108 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17109 *) libsuff= shlibsuff= libmagic=never-match;;
17113 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17114 shlibpath_overrides_runpath=no
17115 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17116 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17117 hardcode_into_libs=yes
17120 # No shared lib support for Linux oldld, aout, or coff.
17121 linux*oldld* | linux*aout* | linux*coff*)
17125 # This must be glibc/ELF.
17126 linux* | k*bsd*-gnu | kopensolaris*-gnu)
17127 version_type=linux # correct to gnu/linux during the next big refactor
17130 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17131 soname_spec='${libname}${release}${shared_ext}$major'
17132 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17133 shlibpath_var=LD_LIBRARY_PATH
17134 shlibpath_overrides_runpath=no
17136 # Some binutils ld are patched to set DT_RUNPATH
17137 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
17138 $as_echo_n "(cached) " >&6
17140 lt_cv_shlibpath_overrides_runpath=no
17141 save_LDFLAGS=$LDFLAGS
17142 save_libdir=$libdir
17143 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
17144 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
17145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17146 /* end confdefs.h. */
17156 if ac_fn_cxx_try_link "$LINENO"; then :
17157 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
17158 lt_cv_shlibpath_overrides_runpath=yes
17161 rm -f core conftest.err conftest.$ac_objext \
17162 conftest$ac_exeext conftest.$ac_ext
17163 LDFLAGS=$save_LDFLAGS
17164 libdir=$save_libdir
17168 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
17170 # This implies no fast_install, which is unacceptable.
17171 # Some rework will be needed to allow for fast_install
17172 # before this can be enabled.
17173 hardcode_into_libs=yes
17175 # Append ld.so.conf contents to the search path
17176 if test -f /etc/ld.so.conf; then
17177 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' ' '`
17178 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17181 # We used to test for /lib/ld.so.1 and disable shared libraries on
17182 # powerpc, because MkLinux only supported shared libraries with the
17183 # GNU dynamic linker. Since this was broken with cross compilers,
17184 # most powerpc-linux boxes support dynamic linking these days and
17185 # people can always --disable-shared, the test was removed, and we
17186 # assume the GNU/Linux dynamic linker is in use.
17187 dynamic_linker='GNU/Linux ld.so'
17194 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17195 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17196 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17197 dynamic_linker='NetBSD (a.out) ld.so'
17199 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17200 soname_spec='${libname}${release}${shared_ext}$major'
17201 dynamic_linker='NetBSD ld.elf_so'
17203 shlibpath_var=LD_LIBRARY_PATH
17204 shlibpath_overrides_runpath=yes
17205 hardcode_into_libs=yes
17209 version_type=linux # correct to gnu/linux during the next big refactor
17210 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17211 shlibpath_var=LD_LIBRARY_PATH
17212 shlibpath_overrides_runpath=yes
17219 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17220 soname_spec='${libname}${release}${shared_ext}$major'
17221 shlibpath_var=LD_LIBRARY_PATH
17222 shlibpath_overrides_runpath=no
17223 hardcode_into_libs=yes
17224 dynamic_linker='ldqnx.so'
17229 sys_lib_dlsearch_path_spec="/usr/lib"
17231 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17233 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17234 *) need_version=no ;;
17236 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17237 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17238 shlibpath_var=LD_LIBRARY_PATH
17239 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17241 openbsd2.[89] | openbsd2.[89].*)
17242 shlibpath_overrides_runpath=no
17245 shlibpath_overrides_runpath=yes
17249 shlibpath_overrides_runpath=yes
17254 libname_spec='$name'
17257 library_names_spec='$libname${shared_ext} $libname.a'
17258 dynamic_linker='OS/2 ld.exe'
17259 shlibpath_var=LIBPATH
17262 osf3* | osf4* | osf5*)
17266 soname_spec='${libname}${release}${shared_ext}$major'
17267 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17268 shlibpath_var=LD_LIBRARY_PATH
17269 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17270 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17278 version_type=linux # correct to gnu/linux during the next big refactor
17281 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17282 soname_spec='${libname}${release}${shared_ext}$major'
17283 shlibpath_var=LD_LIBRARY_PATH
17284 shlibpath_overrides_runpath=yes
17285 hardcode_into_libs=yes
17286 # ldd complains unless libraries are executable
17287 postinstall_cmds='chmod +x $lib'
17292 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17293 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17294 shlibpath_var=LD_LIBRARY_PATH
17295 shlibpath_overrides_runpath=yes
17296 if test "$with_gnu_ld" = yes; then
17303 version_type=linux # correct to gnu/linux during the next big refactor
17304 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17305 soname_spec='${libname}${release}${shared_ext}$major'
17306 shlibpath_var=LD_LIBRARY_PATH
17307 case $host_vendor in
17309 shlibpath_overrides_runpath=no
17311 runpath_var=LD_RUN_PATH
17319 shlibpath_overrides_runpath=no
17320 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17326 if test -d /usr/nec ;then
17327 version_type=linux # correct to gnu/linux during the next big refactor
17328 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17329 soname_spec='$libname${shared_ext}.$major'
17330 shlibpath_var=LD_LIBRARY_PATH
17334 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17335 version_type=freebsd-elf
17338 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17339 soname_spec='${libname}${release}${shared_ext}$major'
17340 shlibpath_var=LD_LIBRARY_PATH
17341 shlibpath_overrides_runpath=yes
17342 hardcode_into_libs=yes
17343 if test "$with_gnu_ld" = yes; then
17344 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17346 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17349 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17353 sys_lib_dlsearch_path_spec='/usr/lib'
17357 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
17358 version_type=linux # correct to gnu/linux during the next big refactor
17361 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17362 shlibpath_var=LD_LIBRARY_PATH
17363 shlibpath_overrides_runpath=no
17364 hardcode_into_libs=yes
17368 version_type=linux # correct to gnu/linux during the next big refactor
17369 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17370 soname_spec='${libname}${release}${shared_ext}$major'
17371 shlibpath_var=LD_LIBRARY_PATH
17378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
17379 $as_echo "$dynamic_linker" >&6; }
17380 test "$dynamic_linker" = no && can_build_shared=no
17382 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17383 if test "$GCC" = yes; then
17384 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17387 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
17388 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
17390 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
17391 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
17431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
17432 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17433 hardcode_action_CXX=
17434 if test -n "$hardcode_libdir_flag_spec_CXX" ||
17435 test -n "$runpath_var_CXX" ||
17436 test "X$hardcode_automatic_CXX" = "Xyes" ; then
17438 # We can hardcode non-existent directories.
17439 if test "$hardcode_direct_CXX" != no &&
17440 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17441 # have to relink, otherwise we might link with an installed library
17442 # when we should be linking with a yet-to-be-installed one
17443 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
17444 test "$hardcode_minus_L_CXX" != no; then
17445 # Linking always hardcodes the temporary library directory.
17446 hardcode_action_CXX=relink
17448 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17449 hardcode_action_CXX=immediate
17452 # We cannot hardcode anything, or else we can only hardcode existing
17454 hardcode_action_CXX=unsupported
17456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
17457 $as_echo "$hardcode_action_CXX" >&6; }
17459 if test "$hardcode_action_CXX" = relink ||
17460 test "$inherit_rpath_CXX" = yes; then
17461 # Fast installation is not supported
17462 enable_fast_install=no
17463 elif test "$shlibpath_overrides_runpath" = yes ||
17464 test "$enable_shared" = no; then
17465 # Fast installation is not necessary
17466 enable_fast_install=needless
17475 fi # test -n "$compiler"
17478 CFLAGS=$lt_save_CFLAGS
17482 with_gnu_ld=$lt_save_with_gnu_ld
17483 lt_cv_path_LDCXX=$lt_cv_path_LD
17484 lt_cv_path_LD=$lt_save_path_LD
17485 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
17486 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
17487 fi # test "$_lt_caught_CXX_error" != yes
17490 ac_cpp='$CPP $CPPFLAGS'
17491 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17492 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17493 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17509 ac_config_commands="$ac_config_commands libtool"
17514 # Only expand once:
17517 # Check whether --enable-experimental-libtool was given.
17518 if test "${enable_experimental_libtool+set}" = set; then :
17519 enableval=$enable_experimental_libtool; experimental_libtool=$enableval
17521 experimental_libtool=no
17525 if test "$experimental_libtool" = "yes"; then
17526 echo "using APR's libtool"
17527 sh_libtool="`$apr_config --apr-libtool`"
17528 LIBTOOL="$sh_libtool"
17529 SVN_LIBTOOL="$sh_libtool"
17531 sh_libtool="$abs_builddir/libtool"
17532 SVN_LIBTOOL="\$(SHELL) $sh_libtool"
17536 lt_pversion=`$LIBTOOL --version 2>/dev/null|$SED -e 's/([^)]*)//g;s/^[^0-9]*//;s/[- ].*//g;q'`
17537 lt_version=`echo $lt_pversion|$SED -e 's/\([a-z]*\)$/.\1/'`
17538 lt_major_version=`echo $lt_version | cut -d'.' -f 1`
17540 svn_enable_static=yes
17541 svn_enable_shared=yes
17543 # Check whether --enable-static was given.
17544 if test "${enable_static+set}" = set; then :
17545 enableval=$enable_static; svn_enable_static="$enableval"
17547 svn_enable_static="yes"
17551 # Check whether --enable-shared was given.
17552 if test "${enable_shared+set}" = set; then :
17553 enableval=$enable_shared; svn_enable_shared="$enableval"
17555 svn_enable_shared="yes"
17559 if test "$svn_enable_static" = "yes" && test "$svn_enable_shared" = "yes" ; then
17560 { $as_echo "$as_me:${as_lineno-$LINENO}: building both shared and static libraries" >&5
17561 $as_echo "$as_me: building both shared and static libraries" >&6;}
17562 elif test "$svn_enable_static" = "yes" ; then
17563 { $as_echo "$as_me:${as_lineno-$LINENO}: building static libraries only" >&5
17564 $as_echo "$as_me: building static libraries only" >&6;}
17565 LT_CFLAGS="-static $LT_CFLAGS"
17566 LT_LDFLAGS="-static $LT_LDFLAGS"
17567 elif test "$svn_enable_shared" = "yes" ; then
17568 { $as_echo "$as_me:${as_lineno-$LINENO}: building shared libraries only" >&5
17569 $as_echo "$as_me: building shared libraries only" >&6;}
17570 if test "$lt_major_version" = "1" ; then
17571 LT_CFLAGS="-prefer-pic $LT_CFLAGS"
17572 elif test "$lt_major_version" = "2" ; then
17573 LT_CFLAGS="-shared $LT_CFLAGS"
17575 LT_LDFLAGS="-shared $LT_LDFLAGS"
17577 as_fn_error $? "cannot disable both shared and static libraries" "$LINENO" 5
17580 # Check whether --enable-all-static was given.
17581 if test "${enable_all_static+set}" = set; then :
17582 enableval=$enable_all_static;
17583 if test "$enableval" = "yes" ; then
17584 LT_LDFLAGS="-all-static $LT_LDFLAGS"
17585 elif test "$enableval" != "no" ; then
17586 as_fn_error $? "--enable-all-static doesn't accept argument" "$LINENO" 5
17595 # Check whether --enable-local-library-preloading was given.
17596 if test "${enable_local_library_preloading+set}" = set; then :
17597 enableval=$enable_local_library_preloading;
17598 if test "$enableval" != "no"; then
17599 if test "$svn_enable_shared" = "yes"; then
17600 TRANSFORM_LIBTOOL_SCRIPTS="transform-libtool-scripts"
17602 as_fn_error $? "--enable-local-library-preloading conflicts with --disable-shared" "$LINENO" 5
17605 TRANSFORM_LIBTOOL_SCRIPTS=""
17610 TRANSFORM_LIBTOOL_SCRIPTS=""
17616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libtool needs -no-undefined" >&5
17617 $as_echo_n "checking whether libtool needs -no-undefined... " >&6; }
17620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17621 $as_echo "yes" >&6; }
17622 LT_NO_UNDEFINED="-no-undefined"
17625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17626 $as_echo "no" >&6; }
17632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to avoid circular linkage at all costs" >&5
17633 $as_echo_n "checking whether to avoid circular linkage at all costs... " >&6; }
17636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17637 $as_echo "yes" >&6; }
17639 $as_echo "#define SVN_AVOID_CIRCULAR_LINKAGE_AT_ALL_COSTS_HACK 1" >>confdefs.h
17643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17644 $as_echo "no" >&6; }
17650 # Check whether --with-trang was given.
17651 if test "${with_trang+set}" = set; then :
17652 withval=$with_trang;
17657 if test "$trang" = "yes"; then
17658 # Extract the first word of "trang", so it can be a program name with args.
17659 set dummy trang; ac_word=$2
17660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17661 $as_echo_n "checking for $ac_word... " >&6; }
17662 if ${ac_cv_path_TRANG+:} false; then :
17663 $as_echo_n "(cached) " >&6
17667 ac_cv_path_TRANG="$TRANG" # Let the user override the test with a path.
17670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17671 for as_dir in $PATH
17674 test -z "$as_dir" && as_dir=.
17675 for ac_exec_ext in '' $ac_executable_extensions; do
17676 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17677 ac_cv_path_TRANG="$as_dir/$ac_word$ac_exec_ext"
17678 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17685 test -z "$ac_cv_path_TRANG" && ac_cv_path_TRANG="none"
17689 TRANG=$ac_cv_path_TRANG
17690 if test -n "$TRANG"; then
17691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TRANG" >&5
17692 $as_echo "$TRANG" >&6; }
17694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17695 $as_echo "no" >&6; }
17706 # Check whether --with-doxygen was given.
17707 if test "${with_doxygen+set}" = set; then :
17708 withval=$with_doxygen;
17713 if test "$doxygen" = "yes"; then
17714 # Extract the first word of "doxygen", so it can be a program name with args.
17715 set dummy doxygen; ac_word=$2
17716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17717 $as_echo_n "checking for $ac_word... " >&6; }
17718 if ${ac_cv_path_DOXYGEN+:} false; then :
17719 $as_echo_n "(cached) " >&6
17723 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
17726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17727 for as_dir in $PATH
17730 test -z "$as_dir" && as_dir=.
17731 for ac_exec_ext in '' $ac_executable_extensions; do
17732 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17733 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
17734 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17741 test -z "$ac_cv_path_DOXYGEN" && ac_cv_path_DOXYGEN="none"
17745 DOXYGEN=$ac_cv_path_DOXYGEN
17746 if test -n "$DOXYGEN"; then
17747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOXYGEN" >&5
17748 $as_echo "$DOXYGEN" >&6; }
17750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17751 $as_echo "no" >&6; }
17764 # Check whether --with-expat was given.
17765 if test "${with_expat+set}" = set; then :
17766 withval=$with_expat; svn_lib_expat="$withval"
17768 svn_lib_expat="::expat"
17772 # APR-util accepts "builtin" as an argument to this option so if the user
17773 # passed "builtin" pretend the user didn't specify the --with-expat option
17774 # at all. Expat will (hopefully) be found in apr-util.
17775 test "_$svn_lib_expat" = "_builtin" && svn_lib_expat="::expat"
17777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Expat" >&5
17778 $as_echo_n "checking for Expat... " >&6; }
17779 if test -n "`echo "$svn_lib_expat" | $EGREP ":.*:"`"; then
17780 SVN_XML_INCLUDES=""
17781 for i in `echo "$svn_lib_expat" | $SED -e "s/\([^:]*\):.*/\1/"`; do
17782 SVN_XML_INCLUDES="$SVN_XML_INCLUDES -I$i"
17784 SVN_XML_INCLUDES="${SVN_XML_INCLUDES## }"
17785 for l in `echo "$svn_lib_expat" | $SED -e "s/.*:\([^:]*\):.*/\1/"`; do
17786 LDFLAGS="$LDFLAGS -L$l"
17788 for l in `echo "$svn_lib_expat" | $SED -e "s/.*:\([^:]*\)/\1/"`; do
17789 SVN_XML_LIBS="$SVN_XML_LIBS -l$l"
17791 SVN_XML_LIBS="${SVN_XML_LIBS## }"
17792 old_CPPFLAGS="$CPPFLAGS"
17794 CPPFLAGS="$CPPFLAGS $SVN_XML_INCLUDES"
17795 LIBS="$LIBS $SVN_XML_LIBS"
17796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17797 /* end confdefs.h. */
17801 {XML_ParserCreate(NULL);}
17803 if ac_fn_c_try_link "$LINENO"; then :
17804 svn_lib_expat="yes"
17808 rm -f core conftest.err conftest.$ac_objext \
17809 conftest$ac_exeext conftest.$ac_ext
17811 if test "$svn_lib_expat" = "yes"; then
17812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17813 $as_echo "yes" >&6; }
17815 SVN_XML_INCLUDES=""
17817 CPPFLAGS="$CPPFLAGS $SVN_APRUTIL_INCLUDES"
17818 if test "$enable_all_static" != "yes"; then
17819 SVN_APRUTIL_LIBS="$SVN_APRUTIL_LIBS `$apu_config --libs`"
17821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17822 /* end confdefs.h. */
17826 {XML_ParserCreate(NULL);}
17828 if ac_fn_c_try_compile "$LINENO"; then :
17829 svn_lib_expat="yes"
17833 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17834 if test "$svn_lib_expat" = "yes"; then
17835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17836 $as_echo "yes" >&6; }
17837 { $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
17838 $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;}
17840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17841 $as_echo "no" >&6; }
17842 as_fn_error $? "Expat not found" "$LINENO" 5
17845 CPPFLAGS="$old_CPPFLAGS"
17847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17848 $as_echo "no" >&6; }
17849 if test "$svn_lib_expat" = "yes"; then
17850 as_fn_error $? "--with-expat option requires argument" "$LINENO" 5
17851 elif test "$svn_lib_expat" = "no"; then
17852 as_fn_error $? "Expat is required" "$LINENO" 5
17854 as_fn_error $? "Invalid syntax of argument of --with-expat option" "$LINENO" 5
17861 # Berkeley DB on SCO OpenServer needs -lsocket
17862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
17863 $as_echo_n "checking for socket in -lsocket... " >&6; }
17864 if ${ac_cv_lib_socket_socket+:} false; then :
17865 $as_echo_n "(cached) " >&6
17867 ac_check_lib_save_LIBS=$LIBS
17868 LIBS="-lsocket $LIBS"
17869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17870 /* end confdefs.h. */
17872 /* Override any GCC internal prototype to avoid an error.
17873 Use char because int might match the return type of a GCC
17874 builtin and then its argument prototype would still apply. */
17887 if ac_fn_c_try_link "$LINENO"; then :
17888 ac_cv_lib_socket_socket=yes
17890 ac_cv_lib_socket_socket=no
17892 rm -f core conftest.err conftest.$ac_objext \
17893 conftest$ac_exeext conftest.$ac_ext
17894 LIBS=$ac_check_lib_save_LIBS
17896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
17897 $as_echo "$ac_cv_lib_socket_socket" >&6; }
17898 if test "x$ac_cv_lib_socket_socket" = xyes; then :
17899 cat >>confdefs.h <<_ACEOF
17900 #define HAVE_LIBSOCKET 1
17903 LIBS="-lsocket $LIBS"
17908 # Build the BDB filesystem library only if we have an appropriate
17909 # version of Berkeley DB.
17911 powerpc-apple-darwin*)
17912 # Berkeley DB 4.0 does not work on OS X.
17913 SVN_FS_WANT_DB_MAJOR=4
17914 SVN_FS_WANT_DB_MINOR=1
17915 SVN_FS_WANT_DB_PATCH=25
17918 SVN_FS_WANT_DB_MAJOR=4
17919 SVN_FS_WANT_DB_MINOR=0
17920 SVN_FS_WANT_DB_PATCH=14
17923 db_alt_version="5.x"
17924 # Look for libdb4.so first:
17926 db_version=$SVN_FS_WANT_DB_MAJOR.$SVN_FS_WANT_DB_MINOR.$SVN_FS_WANT_DB_PATCH
17929 # Check whether --with-berkeley-db was given.
17930 if test "${with_berkeley_db+set}" = set; then :
17931 withval=$with_berkeley_db;
17932 if test "$withval" = "no"; then
17934 elif test "$withval" = "yes"; then
17935 apu_db_version="`$apu_config --db-version`"
17936 if test $? -ne 0; then
17937 as_fn_error $? "Can't determine whether apr-util is linked against a
17938 proper version of Berkeley DB." "$LINENO" 5
17941 if test "$withval" = "yes"; then
17942 if test "$apu_db_version" -lt "4"; then
17943 as_fn_error $? "APR-UTIL was linked against Berkeley DB version $apu_db_version,
17944 while version 4 or higher is required. Reinstall
17945 APR-UTIL with the appropriate options." "$LINENO" 5
17948 bdb_status=required
17950 elif test "$apu_found" != "reconfig"; then
17951 if test "$apu_db_version" -lt 4; then
17952 as_fn_error $? "APR-UTIL was installed independently, it won't be
17953 possible to use the specified Berkeley DB: $withval" "$LINENO" 5
17956 bdb_status=required
17959 if echo "$withval" | $EGREP ":.*:.*:" > /dev/null; then
17960 svn_berkeley_db_header="`echo "$withval" | $SED -e "s/\([^:]*\):.*/\1/"`"
17962 for i in `echo "$withval" | $SED -e "s/.*:\([^:]*\):[^:]*:.*/\1/"`; do
17963 SVN_DB_INCLUDES="$SVN_DB_INCLUDES -I$i"
17965 SVN_DB_INCLUDES="${SVN_DB_INCLUDES## }"
17966 for l in `echo "$withval" | $SED -e "s/.*:[^:]*:\([^:]*\):.*/\1/"`; do
17967 LDFLAGS="$LDFLAGS -L$l"
17970 for l in `echo "$withval" | $SED -e "s/.*:\([^:]*\)/\1/"`; do
17971 SVN_DB_LIBS="$SVN_DB_LIBS -l$l"
17973 SVN_DB_LIBS="${SVN_DB_LIBS## }"
17975 bdb_status=required
17977 as_fn_error $? "Invalid syntax of argument of --with-berkeley-db option" "$LINENO" 5
17983 # No --with-berkeley-db option:
17985 # Check if APR-UTIL is providing the correct Berkeley DB version
17988 apu_db_version="`$apu_config --db-version`"
17989 if test $? -ne 0; then
17990 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Detected older version of APR-UTIL, trying to determine
17991 whether apr-util is linked against Berkeley DB
17993 $as_echo "$as_me: WARNING: Detected older version of APR-UTIL, trying to determine
17994 whether apr-util is linked against Berkeley DB
17996 bdb_status=try-link
17997 elif test "$apu_db_version" -lt "4"; then
18000 bdb_status=try-link
18006 if test "$bdb_status" = "skip"; then
18007 svn_lib_berkeley_db=no
18009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for availability of Berkeley DB" >&5
18010 $as_echo_n "checking for availability of Berkeley DB... " >&6; }
18011 # Check whether --enable-bdb6 was given.
18012 if test "${enable_bdb6+set}" = set; then :
18013 enableval=$enable_bdb6; enable_bdb6=$enableval
18015 enable_bdb6=unspecified
18020 svn_lib_berkeley_db_try_save_cppflags="$CPPFLAGS"
18021 svn_lib_berkeley_db_try_save_libs="$LIBS"
18023 svn_check_berkeley_db_major=$SVN_FS_WANT_DB_MAJOR
18024 svn_check_berkeley_db_minor=$SVN_FS_WANT_DB_MINOR
18025 svn_check_berkeley_db_patch=$SVN_FS_WANT_DB_PATCH
18026 enable_bdb6=$enable_bdb6
18028 if test -z "$SVN_DB_LIBS"; then
18029 # We pass --dbm-libs here since Debian has modified apu-config not
18030 # to return -ldb unless --dbm-libs is passed. This may also produce
18031 # extra output beyond -ldb but since we're only filtering for -ldb
18032 # it won't matter to us. However, --dbm-libs was added to apu-config
18033 # in 1.3.8 so it's possible the version we have doesn't support it
18034 # so fallback without it if we get an error.
18035 svn_db_libs_prefiltered="`$apu_config --libs --dbm-libs`"
18036 if test $? -ne 0; then
18037 svn_db_libs_prefiltered="`$apu_config --libs`"
18040 # Extract only the -ldb.* flag from the libs supplied by apu-config
18041 # Otherwise we get bit by the fact that expat might not be built yet
18042 # Or that it resides in a non-standard location which we would have
18043 # to compensate with using something like -R`$apu_config --prefix`/lib.
18045 SVN_DB_LIBS="`echo \"$svn_db_libs_prefiltered\" | $SED -e 's/.*\(-ldb[^[:space:]]*\).*/\1/' | $EGREP -- '-ldb[^[:space:]]*'`"
18048 CPPFLAGS="$SVN_DB_INCLUDES $SVN_APRUTIL_INCLUDES $CPPFLAGS"
18049 LIBS="`$apu_config --ldflags` $SVN_DB_LIBS $LIBS"
18051 if test -n "$svn_berkeley_db_header"; then
18052 SVN_DB_HEADER="#include <$svn_berkeley_db_header>"
18053 svn_db_header="#include <$svn_berkeley_db_header>"
18055 SVN_DB_HEADER="#include <apu_want.h>"
18056 svn_db_header="#define APU_WANT_DB
18057 #include <apu_want.h>"
18062 if test "$cross_compiling" = yes; then :
18063 svn_have_berkeley_db=yes
18066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18067 /* end confdefs.h. */
18069 #include <string.h>
18070 #include <stdlib.h>
18075 int major, minor, patch;
18077 db_version (&major, &minor, &patch);
18079 /* Sanity check: ensure that db.h constants actually match the db library */
18080 if (major != DB_VERSION_MAJOR
18081 || minor != DB_VERSION_MINOR
18082 || patch != DB_VERSION_PATCH)
18085 /* Block Berkeley DB 6, because (a) we haven't tested with it, (b) 6.0.20
18086 and newer are under the AGPL, and we want use of AGPL dependencies to be
18088 if (major >= 6 && strcmp("$enable_bdb6", "yes"))
18091 /* Run-time check: ensure the library claims to be the correct version. */
18093 if (major < $svn_check_berkeley_db_major)
18095 if (major > $svn_check_berkeley_db_major)
18098 if (minor < $svn_check_berkeley_db_minor)
18100 if (minor > $svn_check_berkeley_db_minor)
18103 if (patch >= $svn_check_berkeley_db_patch)
18110 if ac_fn_c_try_run "$LINENO"; then :
18111 svn_have_berkeley_db=yes
18114 svn_have_berkeley_db=no
18115 if test $rc = 2; then
18116 svn_have_berkeley_db=no6
18119 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18120 conftest.$ac_objext conftest.beam conftest.$ac_ext
18124 CPPFLAGS="$svn_lib_berkeley_db_try_save_cppflags"
18125 LIBS="$svn_lib_berkeley_db_try_save_libs"
18128 if test "$svn_have_berkeley_db" = "yes"; then
18129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18130 $as_echo "yes" >&6; }
18131 svn_lib_berkeley_db=yes
18133 if test "$svn_have_berkeley_db" = "no6"; then
18134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (found version 6, but --enable-bdb6 not specified)" >&5
18135 $as_echo "no (found version 6, but --enable-bdb6 not specified)" >&6; }
18136 # A warning will be printed at the end of configure.ac.
18138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18139 $as_echo "no" >&6; }
18141 svn_lib_berkeley_db=no
18142 if test "$bdb_status" = "required"; then
18143 as_fn_error $? "Berkeley DB $db_version or $db_alt_version wasn't found." "$LINENO" 5
18150 cat >>confdefs.h <<_ACEOF
18151 #define SVN_FS_WANT_DB_MAJOR $SVN_FS_WANT_DB_MAJOR
18155 cat >>confdefs.h <<_ACEOF
18156 #define SVN_FS_WANT_DB_MINOR $SVN_FS_WANT_DB_MINOR
18160 cat >>confdefs.h <<_ACEOF
18161 #define SVN_FS_WANT_DB_PATCH $SVN_FS_WANT_DB_PATCH
18170 # Check whether --with-sasl was given.
18171 if test "${with_sasl+set}" = set; then :
18172 withval=$with_sasl;
18173 with_sasl="$withval"
18184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to look for SASL" >&5
18185 $as_echo_n "checking whether to look for SASL... " >&6; }
18187 if test "${with_sasl}" = "no"; then
18188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18189 $as_echo "no" >&6; }
18192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18193 $as_echo "yes" >&6; }
18194 saved_LDFLAGS="$LDFLAGS"
18195 saved_CPPFLAGS="$CPPFLAGS"
18197 if test "$with_sasl" = "yes"; then
18198 { $as_echo "$as_me:${as_lineno-$LINENO}: Looking in default locations" >&5
18199 $as_echo "$as_me: Looking in default locations" >&6;}
18200 ac_fn_c_check_header_mongrel "$LINENO" "sasl/sasl.h" "ac_cv_header_sasl_sasl_h" "$ac_includes_default"
18201 if test "x$ac_cv_header_sasl_sasl_h" = xyes; then :
18202 ac_fn_c_check_header_mongrel "$LINENO" "sasl/saslutil.h" "ac_cv_header_sasl_saslutil_h" "$ac_includes_default"
18203 if test "x$ac_cv_header_sasl_saslutil_h" = xyes; then :
18204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prop_get in -lsasl2" >&5
18205 $as_echo_n "checking for prop_get in -lsasl2... " >&6; }
18206 if ${ac_cv_lib_sasl2_prop_get+:} false; then :
18207 $as_echo_n "(cached) " >&6
18209 ac_check_lib_save_LIBS=$LIBS
18210 LIBS="-lsasl2 $LIBS"
18211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18212 /* end confdefs.h. */
18214 /* Override any GCC internal prototype to avoid an error.
18215 Use char because int might match the return type of a GCC
18216 builtin and then its argument prototype would still apply. */
18224 return prop_get ();
18229 if ac_fn_c_try_link "$LINENO"; then :
18230 ac_cv_lib_sasl2_prop_get=yes
18232 ac_cv_lib_sasl2_prop_get=no
18234 rm -f core conftest.err conftest.$ac_objext \
18235 conftest$ac_exeext conftest.$ac_ext
18236 LIBS=$ac_check_lib_save_LIBS
18238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sasl2_prop_get" >&5
18239 $as_echo "$ac_cv_lib_sasl2_prop_get" >&6; }
18240 if test "x$ac_cv_lib_sasl2_prop_get" = xyes; then :
18256 if test "$svn_lib_sasl" = "no"; then
18257 with_sasl="/usr/local"
18263 if test "$svn_lib_sasl" = "no"; then
18264 SVN_SASL_INCLUDES="-I${with_sasl}/include"
18265 CPPFLAGS="$CPPFLAGS $SVN_SASL_INCLUDES"
18266 LDFLAGS="$LDFLAGS `
18267 input_flags="-L${with_sasl}/lib"
18269 filtered_dirs="/lib /lib64 /usr/lib /usr/lib64"
18270 for flag in $input_flags; do
18272 for dir in $filtered_dirs; do
18273 if test "$flag" = "-L$dir" || test "$flag" = "-L$dir/"; then
18278 if test "$filter" = "no"; then
18279 output_flags="$output_flags $flag"
18282 if test -n "$output_flags"; then
18283 printf "%s" "${output_flags# }"
18287 ac_fn_c_check_header_mongrel "$LINENO" "sasl/sasl.h" "ac_cv_header_sasl_sasl_h" "$ac_includes_default"
18288 if test "x$ac_cv_header_sasl_sasl_h" = xyes; then :
18289 ac_fn_c_check_header_mongrel "$LINENO" "sasl/saslutil.h" "ac_cv_header_sasl_saslutil_h" "$ac_includes_default"
18290 if test "x$ac_cv_header_sasl_saslutil_h" = xyes; then :
18291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prop_get in -lsasl2" >&5
18292 $as_echo_n "checking for prop_get in -lsasl2... " >&6; }
18293 if ${ac_cv_lib_sasl2_prop_get+:} false; then :
18294 $as_echo_n "(cached) " >&6
18296 ac_check_lib_save_LIBS=$LIBS
18297 LIBS="-lsasl2 $LIBS"
18298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18299 /* end confdefs.h. */
18301 /* Override any GCC internal prototype to avoid an error.
18302 Use char because int might match the return type of a GCC
18303 builtin and then its argument prototype would still apply. */
18311 return prop_get ();
18316 if ac_fn_c_try_link "$LINENO"; then :
18317 ac_cv_lib_sasl2_prop_get=yes
18319 ac_cv_lib_sasl2_prop_get=no
18321 rm -f core conftest.err conftest.$ac_objext \
18322 conftest$ac_exeext conftest.$ac_ext
18323 LIBS=$ac_check_lib_save_LIBS
18325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sasl2_prop_get" >&5
18326 $as_echo "$ac_cv_lib_sasl2_prop_get" >&6; }
18327 if test "x$ac_cv_lib_sasl2_prop_get" = xyes; then :
18345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for availability of Cyrus SASL v2" >&5
18346 $as_echo_n "checking for availability of Cyrus SASL v2... " >&6; }
18347 if test "$svn_lib_sasl" = "yes"; then
18348 SVN_SASL_LIBS="-lsasl2"
18349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18350 $as_echo "yes" >&6; }
18352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18353 $as_echo "no" >&6; }
18355 if test "$required" = "yes"; then
18356 as_fn_error $? "Could not find Cyrus SASL v2" "$LINENO" 5
18359 SVN_SASL_INCLUDES=""
18360 LDFLAGS="$saved_LDFLAGS"
18363 CPPFLAGS="$saved_CPPFLAGS"
18370 if test "$svn_lib_sasl" = "yes"; then
18372 $as_echo "#define SVN_HAVE_SASL 1" >>confdefs.h
18378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Mach-O dynamic module iteration functions" >&5
18379 $as_echo_n "checking for Mach-O dynamic module iteration functions... " >&6; }
18380 if test "$cross_compiling" = yes; then :
18381 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18382 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18383 as_fn_error $? "cannot run test program while cross compiling
18384 See \`config.log' for more details" "$LINENO" 5; }
18386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18387 /* end confdefs.h. */
18389 #include <mach-o/dyld.h>
18390 #include <mach-o/loader.h>
18396 const struct mach_header *header = _dyld_get_image_header(0);
18397 const char *name = _dyld_get_image_name(0);
18398 if (name && header) return 0;
18405 if ac_fn_c_try_run "$LINENO"; then :
18408 $as_echo "#define SVN_HAVE_MACHO_ITERATE 1" >>confdefs.h
18410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18411 $as_echo "yes" >&6; }
18415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18416 $as_echo "no" >&6; }
18419 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18420 conftest.$ac_objext conftest.beam conftest.$ac_ext
18425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Mac OS property list utilities" >&5
18426 $as_echo_n "checking for Mac OS property list utilities... " >&6; }
18428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18429 /* end confdefs.h. */
18431 #include <AvailabilityMacros.h>
18432 #if !defined(MAC_OS_X_VERSION_MAX_ALLOWED) \
18433 || !defined(MAC_OS_X_VERSION_10_0) \
18434 || (MAC_OS_X_VERSION_MAX_ALLOWED <= MAC_OS_X_VERSION_10_0)
18435 #error ProperyList API unavailable.
18446 if ac_fn_c_try_compile "$LINENO"; then :
18449 LIBS="$LIBS -framework CoreFoundation"
18451 $as_echo "#define SVN_HAVE_MACOS_PLIST 1" >>confdefs.h
18453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18454 $as_echo "yes" >&6; }
18458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18459 $as_echo "no" >&6; }
18462 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18465 # Check whether --enable-keychain was given.
18466 if test "${enable_keychain+set}" = set; then :
18467 enableval=$enable_keychain; enable_keychain=$enableval
18469 enable_keychain=yes
18473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Mac OS KeyChain Services" >&5
18474 $as_echo_n "checking for Mac OS KeyChain Services... " >&6; }
18476 if test "$enable_keychain" = "yes"; then
18477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18478 /* end confdefs.h. */
18480 #include <AvailabilityMacros.h>
18481 #if !defined(MAC_OS_X_VERSION_MAX_ALLOWED) \
18482 || !defined(MAC_OS_X_VERSION_10_2) \
18483 || (MAC_OS_X_VERSION_MAX_ALLOWED <= MAC_OS_X_VERSION_10_2)
18484 #error KeyChain API unavailable.
18495 if ac_fn_c_try_compile "$LINENO"; then :
18497 LIBS="$LIBS -framework Security"
18498 LIBS="$LIBS -framework CoreServices"
18500 $as_echo "#define SVN_HAVE_KEYCHAIN_SERVICES 1" >>confdefs.h
18502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18503 $as_echo "yes" >&6; }
18508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18509 $as_echo "no" >&6; }
18512 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether APR has support for DSOs" >&5
18518 $as_echo_n "checking whether APR has support for DSOs... " >&6; }
18519 old_CPPFLAGS="$CPPFLAGS"
18520 CPPFLAGS="$CPPFLAGS $SVN_APR_INCLUDES"
18521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18522 /* end confdefs.h. */
18529 if ac_fn_c_try_cpp "$LINENO"; then :
18531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18532 $as_echo "yes" >&6; }
18535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18536 $as_echo "no" >&6; }
18538 rm -f conftest.err conftest.i conftest.$ac_ext
18539 CPPFLAGS="$old_CPPFLAGS"
18543 if test -n "$PKG_CONFIG"; then
18544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for D-Bus .pc file" >&5
18545 $as_echo_n "checking for D-Bus .pc file... " >&6; }
18546 if $PKG_CONFIG --exists dbus-1; then
18547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18548 $as_echo "yes" >&6; }
18549 old_CPPFLAGS="$CPPFLAGS"
18551 DBUS_CPPFLAGS="`$PKG_CONFIG --cflags dbus-1`"
18552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking D-Bus version" >&5
18553 $as_echo_n "checking D-Bus version... " >&6; }
18554 DBUS_VERSION="`$PKG_CONFIG --modversion dbus-1`"
18555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBUS_VERSION" >&5
18556 $as_echo "$DBUS_VERSION" >&6; }
18557 # D-Bus 0.* requires DBUS_API_SUBJECT_TO_CHANGE
18558 if test -n "`echo "$DBUS_VERSION" | $EGREP '^0\.[[:digit:]]+'`"; then
18559 DBUS_CPPFLAGS="$DBUS_CPPFLAGS -DDBUS_API_SUBJECT_TO_CHANGE"
18561 DBUS_LIBS="`$PKG_CONFIG --libs dbus-1`"
18562 CPPFLAGS="$CPPFLAGS $DBUS_CPPFLAGS"
18563 LIBS="$LIBS $DBUS_LIBS"
18564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for D-Bus" >&5
18565 $as_echo_n "checking for D-Bus... " >&6; }
18566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18567 /* end confdefs.h. */
18569 #include <dbus/dbus.h>
18571 {dbus_bus_get(DBUS_BUS_SESSION, NULL);}
18573 if ac_fn_c_try_link "$LINENO"; then :
18578 rm -f core conftest.err conftest.$ac_objext \
18579 conftest$ac_exeext conftest.$ac_ext
18580 if test "$HAVE_DBUS" = "yes"; then
18581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18582 $as_echo "yes" >&6; }
18584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18585 $as_echo "no" >&6; }
18587 CPPFLAGS="$old_CPPFLAGS"
18590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18591 $as_echo "no" >&6; }
18597 # Check whether --with-gpg_agent was given.
18598 if test "${with_gpg_agent+set}" = set; then :
18599 withval=$with_gpg_agent;
18604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support GPG-Agent" >&5
18605 $as_echo_n "checking whether to support GPG-Agent... " >&6; }
18606 if test "$with_gpg_agent" = "yes"; then
18607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18608 $as_echo "yes" >&6; }
18610 $as_echo "#define SVN_HAVE_GPG_AGENT 1" >>confdefs.h
18613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18614 $as_echo "no" >&6; }
18621 # Check whether --with-gnome_keyring was given.
18622 if test "${with_gnome_keyring+set}" = set; then :
18623 withval=$with_gnome_keyring; with_gnome_keyring="$withval"
18625 with_gnome_keyring=auto
18629 found_gnome_keyring=no
18630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to look for GNOME Keyring" >&5
18631 $as_echo_n "checking whether to look for GNOME Keyring... " >&6; }
18632 if test "$with_gnome_keyring" != "no"; then
18633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18634 $as_echo "yes" >&6; }
18635 if test "$svn_enable_shared" = "yes"; then
18636 if test "$APR_HAS_DSO" = "yes"; then
18637 if test -n "$PKG_CONFIG"; then
18638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLib and GNOME Keyring .pc files" >&5
18639 $as_echo_n "checking for GLib and GNOME Keyring .pc files... " >&6; }
18640 if $PKG_CONFIG --exists glib-2.0 gnome-keyring-1; then
18641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18642 $as_echo "yes" >&6; }
18643 old_CPPFLAGS="$CPPFLAGS"
18644 SVN_GNOME_KEYRING_INCLUDES="`$PKG_CONFIG --cflags glib-2.0 gnome-keyring-1`"
18645 CPPFLAGS="$CPPFLAGS $SVN_GNOME_KEYRING_INCLUDES"
18646 ac_fn_c_check_header_mongrel "$LINENO" "gnome-keyring.h" "ac_cv_header_gnome_keyring_h" "$ac_includes_default"
18647 if test "x$ac_cv_header_gnome_keyring_h" = xyes; then :
18648 found_gnome_keyring=yes
18650 found_gnome_keyring=no
18654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNOME Keyring" >&5
18655 $as_echo_n "checking for GNOME Keyring... " >&6; }
18656 if test "$found_gnome_keyring" = "yes"; then
18657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18658 $as_echo "yes" >&6; }
18660 $as_echo "#define SVN_HAVE_GNOME_KEYRING 1" >>confdefs.h
18662 CPPFLAGS="$old_CPPFLAGS"
18663 SVN_GNOME_KEYRING_LIBS="`$PKG_CONFIG --libs glib-2.0 gnome-keyring-1`"
18665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18666 $as_echo "no" >&6; }
18667 if test "$with_gnome_keyring" = "yes"; then
18668 as_fn_error $? "cannot find GNOME Keyring" "$LINENO" 5
18672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18673 $as_echo "no" >&6; }
18674 if test "$with_gnome_keyring" = "yes"; then
18675 as_fn_error $? "cannot find GLib and GNOME Keyring .pc files." "$LINENO" 5
18677 with_gnome_keyring=no
18681 if test "$with_gnome_keyring" = "yes"; then
18682 as_fn_error $? "cannot find pkg-config. GNOME Keyring requires this." "$LINENO" 5
18684 with_gnome_keyring=no
18688 if test "$with_gnome_keyring" = "yes"; then
18689 as_fn_error $? "APR does not have support for DSOs. GNOME Keyring requires this." "$LINENO" 5
18691 with_gnome_keyring=no
18695 if test "$with_gnome_keyring" = "yes"; then
18696 as_fn_error $? "--with-gnome-keyring conflicts with --disable-shared" "$LINENO" 5
18698 with_gnome_keyring=no
18702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18703 $as_echo "no" >&6; }
18709 # Check whether --enable-ev2-impl was given.
18710 if test "${enable_ev2_impl+set}" = set; then :
18711 enableval=$enable_ev2_impl; enable_ev2_impl=$enableval
18716 if test "$enable_ev2_impl" = "yes"; then
18718 $as_echo "#define ENABLE_EV2_IMPL 1" >>confdefs.h
18724 # Check whether --enable-nls was given.
18725 if test "${enable_nls+set}" = set; then :
18726 enableval=$enable_nls; enable_nls=$enableval
18733 if test "$enable_nls" = "yes"; then
18734 # Extract the first word of "msgfmt", so it can be a program name with args.
18735 set dummy msgfmt; ac_word=$2
18736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18737 $as_echo_n "checking for $ac_word... " >&6; }
18738 if ${ac_cv_path_MSGFMT+:} false; then :
18739 $as_echo_n "(cached) " >&6
18743 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
18746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18747 for as_dir in $PATH
18750 test -z "$as_dir" && as_dir=.
18751 for ac_exec_ext in '' $ac_executable_extensions; do
18752 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18753 ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
18754 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18761 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="none"
18765 MSGFMT=$ac_cv_path_MSGFMT
18766 if test -n "$MSGFMT"; then
18767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
18768 $as_echo "$MSGFMT" >&6; }
18770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18771 $as_echo "no" >&6; }
18775 # Extract the first word of "msgmerge", so it can be a program name with args.
18776 set dummy msgmerge; ac_word=$2
18777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18778 $as_echo_n "checking for $ac_word... " >&6; }
18779 if ${ac_cv_path_MSGMERGE+:} false; then :
18780 $as_echo_n "(cached) " >&6
18784 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
18787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18788 for as_dir in $PATH
18791 test -z "$as_dir" && as_dir=.
18792 for ac_exec_ext in '' $ac_executable_extensions; do
18793 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18794 ac_cv_path_MSGMERGE="$as_dir/$ac_word$ac_exec_ext"
18795 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18802 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE="none"
18806 MSGMERGE=$ac_cv_path_MSGMERGE
18807 if test -n "$MSGMERGE"; then
18808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
18809 $as_echo "$MSGMERGE" >&6; }
18811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18812 $as_echo "no" >&6; }
18816 # Extract the first word of "xgettext", so it can be a program name with args.
18817 set dummy xgettext; ac_word=$2
18818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18819 $as_echo_n "checking for $ac_word... " >&6; }
18820 if ${ac_cv_path_XGETTEXT+:} false; then :
18821 $as_echo_n "(cached) " >&6
18825 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
18828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18829 for as_dir in $PATH
18832 test -z "$as_dir" && as_dir=.
18833 for ac_exec_ext in '' $ac_executable_extensions; do
18834 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18835 ac_cv_path_XGETTEXT="$as_dir/$ac_word$ac_exec_ext"
18836 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18843 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT="none"
18847 XGETTEXT=$ac_cv_path_XGETTEXT
18848 if test -n "$XGETTEXT"; then
18849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
18850 $as_echo "$XGETTEXT" >&6; }
18852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18853 $as_echo "no" >&6; }
18857 if test "$MSGFMT" != "none"; then
18858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing bindtextdomain" >&5
18859 $as_echo_n "checking for library containing bindtextdomain... " >&6; }
18860 if ${ac_cv_search_bindtextdomain+:} false; then :
18861 $as_echo_n "(cached) " >&6
18863 ac_func_search_save_LIBS=$LIBS
18864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18865 /* end confdefs.h. */
18867 /* Override any GCC internal prototype to avoid an error.
18868 Use char because int might match the return type of a GCC
18869 builtin and then its argument prototype would still apply. */
18873 char bindtextdomain ();
18877 return bindtextdomain ();
18882 for ac_lib in '' intl; do
18883 if test -z "$ac_lib"; then
18884 ac_res="none required"
18887 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18889 if ac_fn_c_try_link "$LINENO"; then :
18890 ac_cv_search_bindtextdomain=$ac_res
18892 rm -f core conftest.err conftest.$ac_objext \
18894 if ${ac_cv_search_bindtextdomain+:} false; then :
18898 if ${ac_cv_search_bindtextdomain+:} false; then :
18901 ac_cv_search_bindtextdomain=no
18903 rm conftest.$ac_ext
18904 LIBS=$ac_func_search_save_LIBS
18906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_bindtextdomain" >&5
18907 $as_echo "$ac_cv_search_bindtextdomain" >&6; }
18908 ac_res=$ac_cv_search_bindtextdomain
18909 if test "$ac_res" != no; then :
18910 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18918 if test "$enable_nls" = "no"; then
18919 # Destroy the cached result so we can test again
18920 unset ac_cv_search_bindtextdomain
18921 # On some systems, libintl needs libiconv to link properly,
18922 # so try again with -liconv.
18923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing bindtextdomain" >&5
18924 $as_echo_n "checking for library containing bindtextdomain... " >&6; }
18925 if ${ac_cv_search_bindtextdomain+:} false; then :
18926 $as_echo_n "(cached) " >&6
18928 ac_func_search_save_LIBS=$LIBS
18929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18930 /* end confdefs.h. */
18932 /* Override any GCC internal prototype to avoid an error.
18933 Use char because int might match the return type of a GCC
18934 builtin and then its argument prototype would still apply. */
18938 char bindtextdomain ();
18942 return bindtextdomain ();
18947 for ac_lib in '' intl; do
18948 if test -z "$ac_lib"; then
18949 ac_res="none required"
18952 LIBS="-l$ac_lib -liconv $ac_func_search_save_LIBS"
18954 if ac_fn_c_try_link "$LINENO"; then :
18955 ac_cv_search_bindtextdomain=$ac_res
18957 rm -f core conftest.err conftest.$ac_objext \
18959 if ${ac_cv_search_bindtextdomain+:} false; then :
18963 if ${ac_cv_search_bindtextdomain+:} false; then :
18966 ac_cv_search_bindtextdomain=no
18968 rm conftest.$ac_ext
18969 LIBS=$ac_func_search_save_LIBS
18971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_bindtextdomain" >&5
18972 $as_echo "$ac_cv_search_bindtextdomain" >&6; }
18973 ac_res=$ac_cv_search_bindtextdomain
18974 if test "$ac_res" != no; then :
18975 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18978 # This is here so that -liconv ends up in LIBS
18979 # if it worked with -liconv.
18980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libiconv_open in -liconv" >&5
18981 $as_echo_n "checking for libiconv_open in -liconv... " >&6; }
18982 if ${ac_cv_lib_iconv_libiconv_open+:} false; then :
18983 $as_echo_n "(cached) " >&6
18985 ac_check_lib_save_LIBS=$LIBS
18986 LIBS="-liconv $LIBS"
18987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18988 /* end confdefs.h. */
18990 /* Override any GCC internal prototype to avoid an error.
18991 Use char because int might match the return type of a GCC
18992 builtin and then its argument prototype would still apply. */
18996 char libiconv_open ();
19000 return libiconv_open ();
19005 if ac_fn_c_try_link "$LINENO"; then :
19006 ac_cv_lib_iconv_libiconv_open=yes
19008 ac_cv_lib_iconv_libiconv_open=no
19010 rm -f core conftest.err conftest.$ac_objext \
19011 conftest$ac_exeext conftest.$ac_ext
19012 LIBS=$ac_check_lib_save_LIBS
19014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_iconv_libiconv_open" >&5
19015 $as_echo "$ac_cv_lib_iconv_libiconv_open" >&6; }
19016 if test "x$ac_cv_lib_iconv_libiconv_open" = xyes; then :
19017 cat >>confdefs.h <<_ACEOF
19018 #define HAVE_LIBICONV 1
19021 LIBS="-liconv $LIBS"
19028 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: bindtextdomain() not found. Disabling NLS." >&5
19029 $as_echo "$as_me: WARNING: bindtextdomain() not found. Disabling NLS." >&2;}
19035 if test "$enable_nls" = "yes"; then
19037 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
19047 NO_GETTEXT_CODESET=\#
19048 if test $USE_NLS = "yes"; then
19049 for ac_func in bind_textdomain_codeset
19051 ac_fn_c_check_func "$LINENO" "bind_textdomain_codeset" "ac_cv_func_bind_textdomain_codeset"
19052 if test "x$ac_cv_func_bind_textdomain_codeset" = xyes; then :
19053 cat >>confdefs.h <<_ACEOF
19054 #define HAVE_BIND_TEXTDOMAIN_CODESET 1
19058 NO_GETTEXT_CODESET=""
19066 # Check if we are using GNU gettext.
19069 if test $USE_NLS = "yes"; then
19070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we are using GNU gettext" >&5
19071 $as_echo_n "checking if we are using GNU gettext... " >&6; }
19072 if $MSGFMT --version 2>&1 | $EGREP GNU > /dev/null; then
19076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNU_GETTEXT" >&5
19077 $as_echo "$GNU_GETTEXT" >&6; }
19085 # Check whether --with-libmagic was given.
19086 if test "${with_libmagic+set}" = set; then :
19087 withval=$with_libmagic;
19088 if test "$withval" = "yes" ; then
19089 ac_fn_c_check_header_mongrel "$LINENO" "magic.h" "ac_cv_header_magic_h" "$ac_includes_default"
19090 if test "x$ac_cv_header_magic_h" = xyes; then :
19092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for magic_open in -lmagic" >&5
19093 $as_echo_n "checking for magic_open in -lmagic... " >&6; }
19094 if ${ac_cv_lib_magic_magic_open+:} false; then :
19095 $as_echo_n "(cached) " >&6
19097 ac_check_lib_save_LIBS=$LIBS
19098 LIBS="-lmagic $LIBS"
19099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19100 /* end confdefs.h. */
19102 /* Override any GCC internal prototype to avoid an error.
19103 Use char because int might match the return type of a GCC
19104 builtin and then its argument prototype would still apply. */
19108 char magic_open ();
19112 return magic_open ();
19117 if ac_fn_c_try_link "$LINENO"; then :
19118 ac_cv_lib_magic_magic_open=yes
19120 ac_cv_lib_magic_magic_open=no
19122 rm -f core conftest.err conftest.$ac_objext \
19123 conftest$ac_exeext conftest.$ac_ext
19124 LIBS=$ac_check_lib_save_LIBS
19126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_magic_magic_open" >&5
19127 $as_echo "$ac_cv_lib_magic_magic_open" >&6; }
19128 if test "x$ac_cv_lib_magic_magic_open" = xyes; then :
19129 libmagic_found="builtin"
19136 libmagic_prefix="the default locations"
19137 elif test "$withval" != "no"; then
19138 libmagic_prefix=$withval
19139 save_cppflags="$CPPFLAGS"
19140 CPPFLAGS="$CPPFLAGS -I$libmagic_prefix/include"
19141 for ac_header in magic.h
19143 ac_fn_c_check_header_mongrel "$LINENO" "magic.h" "ac_cv_header_magic_h" "$ac_includes_default"
19144 if test "x$ac_cv_header_magic_h" = xyes; then :
19145 cat >>confdefs.h <<_ACEOF
19146 #define HAVE_MAGIC_H 1
19149 save_ldflags="$LDFLAGS"
19150 LDFLAGS="-L$libmagic_prefix/lib"
19151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for magic_open in -lmagic" >&5
19152 $as_echo_n "checking for magic_open in -lmagic... " >&6; }
19153 if ${ac_cv_lib_magic_magic_open+:} false; then :
19154 $as_echo_n "(cached) " >&6
19156 ac_check_lib_save_LIBS=$LIBS
19157 LIBS="-lmagic $LIBS"
19158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19159 /* end confdefs.h. */
19161 /* Override any GCC internal prototype to avoid an error.
19162 Use char because int might match the return type of a GCC
19163 builtin and then its argument prototype would still apply. */
19167 char magic_open ();
19171 return magic_open ();
19176 if ac_fn_c_try_link "$LINENO"; then :
19177 ac_cv_lib_magic_magic_open=yes
19179 ac_cv_lib_magic_magic_open=no
19181 rm -f core conftest.err conftest.$ac_objext \
19182 conftest$ac_exeext conftest.$ac_ext
19183 LIBS=$ac_check_lib_save_LIBS
19185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_magic_magic_open" >&5
19186 $as_echo "$ac_cv_lib_magic_magic_open" >&6; }
19187 if test "x$ac_cv_lib_magic_magic_open" = xyes; then :
19188 libmagic_found="yes"
19191 LDFLAGS="$save_ldflags"
19197 CPPFLAGS="$save_cppflags"
19199 if test "$withval" != "no" && test "$libmagic_found" = "no"; then
19200 as_fn_error $? "--with-libmagic requested, but libmagic not found at $libmagic_prefix" "$LINENO" 5
19205 ac_fn_c_check_header_mongrel "$LINENO" "magic.h" "ac_cv_header_magic_h" "$ac_includes_default"
19206 if test "x$ac_cv_header_magic_h" = xyes; then :
19208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for magic_open in -lmagic" >&5
19209 $as_echo_n "checking for magic_open in -lmagic... " >&6; }
19210 if ${ac_cv_lib_magic_magic_open+:} false; then :
19211 $as_echo_n "(cached) " >&6
19213 ac_check_lib_save_LIBS=$LIBS
19214 LIBS="-lmagic $LIBS"
19215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19216 /* end confdefs.h. */
19218 /* Override any GCC internal prototype to avoid an error.
19219 Use char because int might match the return type of a GCC
19220 builtin and then its argument prototype would still apply. */
19224 char magic_open ();
19228 return magic_open ();
19233 if ac_fn_c_try_link "$LINENO"; then :
19234 ac_cv_lib_magic_magic_open=yes
19236 ac_cv_lib_magic_magic_open=no
19238 rm -f core conftest.err conftest.$ac_objext \
19239 conftest$ac_exeext conftest.$ac_ext
19240 LIBS=$ac_check_lib_save_LIBS
19242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_magic_magic_open" >&5
19243 $as_echo "$ac_cv_lib_magic_magic_open" >&6; }
19244 if test "x$ac_cv_lib_magic_magic_open" = xyes; then :
19245 libmagic_found="builtin"
19256 if test "$libmagic_found" != "no"; then
19258 $as_echo "#define SVN_HAVE_LIBMAGIC 1" >>confdefs.h
19260 SVN_MAGIC_LIBS="-lmagic"
19263 if test "$libmagic_found" = "yes"; then
19264 SVN_MAGIC_INCLUDES="-I$libmagic_prefix/include"
19265 LDFLAGS="$LDFLAGS `
19266 input_flags="-L$libmagic_prefix/lib"
19268 filtered_dirs="/lib /lib64 /usr/lib /usr/lib64"
19269 for flag in $input_flags; do
19271 for dir in $filtered_dirs; do
19272 if test "$flag" = "-L$dir" || test "$flag" = "-L$dir/"; then
19277 if test "$filter" = "no"; then
19278 output_flags="$output_flags $flag"
19281 if test -n "$output_flags"; then
19282 printf "%s" "${output_flags# }"
19292 # Check whether --with-kwallet was given.
19293 if test "${with_kwallet+set}" = set; then :
19294 withval=$with_kwallet; svn_lib_kwallet="$withval"
19300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to look for KWallet" >&5
19301 $as_echo_n "checking whether to look for KWallet... " >&6; }
19302 if test "$svn_lib_kwallet" != "no"; then
19303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19304 $as_echo "yes" >&6; }
19305 if test "$svn_enable_shared" = "yes"; then
19306 if test "$APR_HAS_DSO" = "yes"; then
19307 if test -n "$PKG_CONFIG"; then
19308 if test "$HAVE_DBUS" = "yes"; then
19309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for QtCore, QtDBus, QtGui" >&5
19310 $as_echo_n "checking for QtCore, QtDBus, QtGui... " >&6; }
19311 if $PKG_CONFIG --exists QtCore QtDBus QtGui; then
19312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19313 $as_echo "yes" >&6; }
19314 if test "$svn_lib_kwallet" != "yes"; then
19315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kde4-config" >&5
19316 $as_echo_n "checking for kde4-config... " >&6; }
19317 KDE4_CONFIG="$svn_lib_kwallet/bin/kde4-config"
19318 if test -f "$KDE4_CONFIG" && test -x "$KDE4_CONFIG"; then
19319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19320 $as_echo "yes" >&6; }
19323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19324 $as_echo "no" >&6; }
19327 # Extract the first word of "kde4-config", so it can be a program name with args.
19328 set dummy kde4-config; ac_word=$2
19329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19330 $as_echo_n "checking for $ac_word... " >&6; }
19331 if ${ac_cv_path_KDE4_CONFIG+:} false; then :
19332 $as_echo_n "(cached) " >&6
19334 case $KDE4_CONFIG in
19336 ac_cv_path_KDE4_CONFIG="$KDE4_CONFIG" # Let the user override the test with a path.
19339 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19340 for as_dir in $PATH
19343 test -z "$as_dir" && as_dir=.
19344 for ac_exec_ext in '' $ac_executable_extensions; do
19345 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19346 ac_cv_path_KDE4_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19347 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19357 KDE4_CONFIG=$ac_cv_path_KDE4_CONFIG
19358 if test -n "$KDE4_CONFIG"; then
19359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $KDE4_CONFIG" >&5
19360 $as_echo "$KDE4_CONFIG" >&6; }
19362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19363 $as_echo "no" >&6; }
19368 if test -n "$KDE4_CONFIG"; then
19369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for KWallet" >&5
19370 $as_echo_n "checking for KWallet... " >&6; }
19371 old_CXXFLAGS="$CXXFLAGS"
19372 old_LDFLAGS="$LDFLAGS"
19374 for d in `$PKG_CONFIG --cflags QtCore QtDBus QtGui`; do
19375 if test -n "`echo "$d" | $EGREP -- '^-D[^[:space:]]*'`"; then
19376 CPPFLAGS="$CPPFLAGS $d"
19379 qt_include_dirs="`$PKG_CONFIG --cflags-only-I QtCore QtDBus QtGui`"
19380 kde_dir="`$KDE4_CONFIG --prefix`"
19381 SVN_KWALLET_INCLUDES="$DBUS_CPPFLAGS $qt_include_dirs -I$kde_dir/include"
19382 qt_libs_other_options="`$PKG_CONFIG --libs-only-other QtCore QtDBus QtGui`"
19383 SVN_KWALLET_LIBS="$DBUS_LIBS -lQtCore -lQtDBus -lQtGui -lkdecore -lkdeui $qt_libs_other_options"
19384 CXXFLAGS="$CXXFLAGS $SVN_KWALLET_INCLUDES"
19385 LIBS="$LIBS $SVN_KWALLET_LIBS"
19386 qt_lib_dirs="`$PKG_CONFIG --libs-only-L QtCore QtDBus QtGui`"
19387 kde_lib_suffix="`$KDE4_CONFIG --libsuffix`"
19388 LDFLAGS="$old_LDFLAGS `
19389 input_flags="$qt_lib_dirs -L$kde_dir/lib$kde_lib_suffix"
19391 filtered_dirs="/lib /lib64 /usr/lib /usr/lib64"
19392 for flag in $input_flags; do
19394 for dir in $filtered_dirs; do
19395 if test "$flag" = "-L$dir" || test "$flag" = "-L$dir/"; then
19400 if test "$filter" = "no"; then
19401 output_flags="$output_flags $flag"
19404 if test -n "$output_flags"; then
19405 printf "%s" "${output_flags# }"
19409 ac_cpp='$CXXCPP $CPPFLAGS'
19410 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19411 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19412 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19415 /* end confdefs.h. */
19417 #include <kwallet.h>
19419 {KWallet::Wallet::walletList();}
19421 if ac_fn_cxx_try_link "$LINENO"; then :
19422 svn_lib_kwallet="yes"
19424 svn_lib_kwallet="no"
19426 rm -f core conftest.err conftest.$ac_objext \
19427 conftest$ac_exeext conftest.$ac_ext
19429 ac_cpp='$CPP $CPPFLAGS'
19430 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19431 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19432 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19434 if test "$svn_lib_kwallet" = "yes"; then
19435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19436 $as_echo "yes" >&6; }
19437 CXXFLAGS="$old_CXXFLAGS"
19440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19441 $as_echo "no" >&6; }
19442 as_fn_error $? "cannot find KWallet" "$LINENO" 5
19445 as_fn_error $? "cannot find kde4-config" "$LINENO" 5
19448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19449 $as_echo "no" >&6; }
19450 as_fn_error $? "cannot find QtCore, QtDBus, QtGui" "$LINENO" 5
19453 as_fn_error $? "cannot find D-Bus" "$LINENO" 5
19456 as_fn_error $? "cannot find pkg-config" "$LINENO" 5
19459 as_fn_error $? "APR does not have support for DSOs" "$LINENO" 5
19462 as_fn_error $? "--with-kwallet conflicts with --disable-shared" "$LINENO" 5
19465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19466 $as_echo "no" >&6; }
19472 if test "$svn_lib_kwallet" = "yes"; then
19474 $as_echo "#define SVN_HAVE_KWALLET 1" >>confdefs.h
19478 # Check whether --enable-plaintext-password-storage was given.
19479 if test "${enable_plaintext_password_storage+set}" = set; then :
19480 enableval=$enable_plaintext_password_storage;
19481 if test "$enableval" = "no"; then
19482 { $as_echo "$as_me:${as_lineno-$LINENO}: Disabling plaintext password/passphrase storage" >&5
19483 $as_echo "$as_me: Disabling plaintext password/passphrase storage" >&6;}
19485 $as_echo "#define SVN_DISABLE_PLAINTEXT_PASSWORD_STORAGE 1" >>confdefs.h
19493 INSTALL_STATIC_RULES="install-bin install-docs"
19494 INSTALL_RULES="install-fsmod-lib install-ramod-lib install-lib install-include install-static"
19495 INSTALL_RULES="$INSTALL_RULES $INSTALL_APACHE_RULE"
19496 BUILD_RULES="fsmod-lib ramod-lib lib bin test sub-test $BUILD_APACHE_RULE tools"
19498 if test "$svn_lib_berkeley_db" = "yes"; then
19499 BUILD_RULES="$BUILD_RULES bdb-lib bdb-test"
19500 INSTALL_RULES="`echo $INSTALL_RULES | $SED 's/install-fsmod-lib/install-fsmod-lib install-bdb-lib/'`"
19501 INSTALL_STATIC_RULES="$INSTALL_STATIC_RULES install-bdb-lib"
19502 BDB_TEST_DEPS="\$(BDB_TEST_DEPS)"
19503 BDB_TEST_PROGRAMS="\$(BDB_TEST_PROGRAMS)"
19506 if test "$svn_lib_serf" = "yes"; then
19507 BUILD_RULES="$BUILD_RULES serf-lib"
19508 INSTALL_RULES="`echo $INSTALL_RULES | $SED 's/install-ramod-lib/install-ramod-lib install-serf-lib/'`"
19509 INSTALL_STATIC_RULES="$INSTALL_STATIC_RULES install-serf-lib"
19512 if test "$svn_lib_kwallet" = "yes"; then
19513 BUILD_RULES="$BUILD_RULES kwallet-lib"
19514 INSTALL_RULES="`echo $INSTALL_RULES | $SED 's/install-lib/install-lib install-kwallet-lib/'`"
19515 INSTALL_STATIC_RULES="$INSTALL_STATIC_RULES install-kwallet-lib"
19518 if test "$found_gnome_keyring" = "yes"; then
19519 BUILD_RULES="$BUILD_RULES gnome-keyring-lib"
19520 INSTALL_RULES="`echo $INSTALL_RULES | $SED 's/install-lib/install-lib install-gnome-keyring-lib/'`"
19521 INSTALL_STATIC_RULES="$INSTALL_STATIC_RULES install-gnome-keyring-lib"
19524 if test "$USE_NLS" = "yes"; then
19525 BUILD_RULES="$BUILD_RULES locale"
19526 INSTALL_RULES="$INSTALL_RULES install-locale"
19536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
19537 $as_echo_n "checking for ANSI C header files... " >&6; }
19538 if ${ac_cv_header_stdc+:} false; then :
19539 $as_echo_n "(cached) " >&6
19541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19542 /* end confdefs.h. */
19543 #include <stdlib.h>
19544 #include <stdarg.h>
19545 #include <string.h>
19556 if ac_fn_c_try_compile "$LINENO"; then :
19557 ac_cv_header_stdc=yes
19559 ac_cv_header_stdc=no
19561 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19563 if test $ac_cv_header_stdc = yes; then
19564 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
19565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19566 /* end confdefs.h. */
19567 #include <string.h>
19570 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19571 $EGREP "memchr" >/dev/null 2>&1; then :
19574 ac_cv_header_stdc=no
19580 if test $ac_cv_header_stdc = yes; then
19581 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
19582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19583 /* end confdefs.h. */
19584 #include <stdlib.h>
19587 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19588 $EGREP "free" >/dev/null 2>&1; then :
19591 ac_cv_header_stdc=no
19597 if test $ac_cv_header_stdc = yes; then
19598 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
19599 if test "$cross_compiling" = yes; then :
19602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19603 /* end confdefs.h. */
19605 #include <stdlib.h>
19606 #if ((' ' & 0x0FF) == 0x020)
19607 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
19608 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
19610 # define ISLOWER(c) \
19611 (('a' <= (c) && (c) <= 'i') \
19612 || ('j' <= (c) && (c) <= 'r') \
19613 || ('s' <= (c) && (c) <= 'z'))
19614 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
19617 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
19622 for (i = 0; i < 256; i++)
19623 if (XOR (islower (i), ISLOWER (i))
19624 || toupper (i) != TOUPPER (i))
19629 if ac_fn_c_try_run "$LINENO"; then :
19632 ac_cv_header_stdc=no
19634 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19635 conftest.$ac_objext conftest.beam conftest.$ac_ext
19640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
19641 $as_echo "$ac_cv_header_stdc" >&6; }
19642 if test $ac_cv_header_stdc = yes; then
19644 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
19650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
19651 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
19652 if ${ac_cv_c_const+:} false; then :
19653 $as_echo_n "(cached) " >&6
19655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19656 /* end confdefs.h. */
19662 #ifndef __cplusplus
19663 /* Ultrix mips cc rejects this sort of thing. */
19664 typedef int charset[2];
19665 const charset cs = { 0, 0 };
19666 /* SunOS 4.1.1 cc rejects this. */
19667 char const *const *pcpcc;
19669 /* NEC SVR4.0.2 mips cc rejects this. */
19670 struct point {int x, y;};
19671 static struct point const zero = {0,0};
19672 /* AIX XL C 1.02.0.0 rejects this.
19673 It does not let you subtract one const X* pointer from another in
19674 an arm of an if-expression whose if-part is not a constant
19676 const char *g = "string";
19677 pcpcc = &g + (g ? g-g : 0);
19678 /* HPUX 7.0 cc rejects these. */
19680 ppc = (char**) pcpcc;
19681 pcpcc = (char const *const *) ppc;
19682 { /* SCO 3.2v4 cc rejects this sort of thing. */
19685 char const *s = 0 ? (char *) 0 : (char const *) 0;
19690 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
19691 int x[] = {25, 17};
19692 const int *foo = &x[0];
19695 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
19696 typedef const int *iptr;
19700 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
19701 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
19702 struct s { int j; const int *ap[3]; } bx;
19703 struct s *b = &bx; b->j = 5;
19705 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
19706 const int foo = 10;
19707 if (!foo) return 0;
19709 return !cs[0] && !zero.x;
19716 if ac_fn_c_try_compile "$LINENO"; then :
19721 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
19724 $as_echo "$ac_cv_c_const" >&6; }
19725 if test $ac_cv_c_const = no; then
19727 $as_echo "#define const /**/" >>confdefs.h
19732 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
19733 if test "x$ac_cv_type_size_t" = xyes; then :
19737 cat >>confdefs.h <<_ACEOF
19738 #define size_t unsigned int
19746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
19747 $as_echo_n "checking for working memcmp... " >&6; }
19748 if ${ac_cv_func_memcmp_working+:} false; then :
19749 $as_echo_n "(cached) " >&6
19751 if test "$cross_compiling" = yes; then :
19752 ac_cv_func_memcmp_working=no
19754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19755 /* end confdefs.h. */
19756 $ac_includes_default
19761 /* Some versions of memcmp are not 8-bit clean. */
19762 char c0 = '\100', c1 = '\200', c2 = '\201';
19763 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
19766 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
19767 or more and with at least one buffer not starting on a 4-byte boundary.
19768 William Lewis provided this test program. */
19773 for (i = 0; i < 4; i++)
19777 strcpy (a, "--------01111111");
19778 strcpy (b, "--------10000000");
19779 if (memcmp (a, b, 16) >= 0)
19789 if ac_fn_c_try_run "$LINENO"; then :
19790 ac_cv_func_memcmp_working=yes
19792 ac_cv_func_memcmp_working=no
19794 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19795 conftest.$ac_objext conftest.beam conftest.$ac_ext
19799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
19800 $as_echo "$ac_cv_func_memcmp_working" >&6; }
19801 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
19802 *" memcmp.$ac_objext "* ) ;;
19803 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
19809 for ac_func in vprintf
19811 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
19812 if test "x$ac_cv_func_vprintf" = xyes; then :
19813 cat >>confdefs.h <<_ACEOF
19814 #define HAVE_VPRINTF 1
19817 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
19818 if test "x$ac_cv_func__doprnt" = xyes; then :
19820 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
19829 for ac_func in symlink readlink
19831 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19832 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19833 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
19834 cat >>confdefs.h <<_ACEOF
19835 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19842 for ac_header in sys/utsname.h
19844 ac_fn_c_check_header_mongrel "$LINENO" "sys/utsname.h" "ac_cv_header_sys_utsname_h" "$ac_includes_default"
19845 if test "x$ac_cv_header_sys_utsname_h" = xyes; then :
19846 cat >>confdefs.h <<_ACEOF
19847 #define HAVE_SYS_UTSNAME_H 1
19849 for ac_func in uname
19851 ac_fn_c_check_func "$LINENO" "uname" "ac_cv_func_uname"
19852 if test "x$ac_cv_func_uname" = xyes; then :
19853 cat >>confdefs.h <<_ACEOF
19854 #define HAVE_UNAME 1
19865 ac_fn_c_check_header_mongrel "$LINENO" "termios.h" "ac_cv_header_termios_h" "$ac_includes_default"
19866 if test "x$ac_cv_header_termios_h" = xyes; then :
19868 for ac_func in tcgetattr tcsetattr
19870 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19871 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19872 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
19873 cat >>confdefs.h <<_ACEOF
19874 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19878 $as_echo "#define HAVE_TERMIOS_H 1" >>confdefs.h
19891 # Check whether --with-openssl was given.
19892 if test "${with_openssl+set}" = set; then :
19893 withval=$with_openssl;
19897 # Check whether --enable-debug was given.
19898 if test "${enable_debug+set}" = set; then :
19899 enableval=$enable_debug;
19900 if test "$enableval" = "yes" ; then
19901 enable_debugging="yes"
19903 enable_debugging="no"
19908 # Neither --enable-debug nor --disable-debug was passed.
19909 enable_debugging="maybe"
19914 # Check whether --enable-optimize was given.
19915 if test "${enable_optimize+set}" = set; then :
19916 enableval=$enable_optimize;
19917 if test "$enableval" = "yes" ; then
19918 enable_optimization="yes"
19920 enable_optimization="no"
19925 # Neither --enable-optimize nor --disable-optimize was passed.
19926 enable_optimization="maybe"
19931 # Check whether --enable-disallowing-of-undefined-references was given.
19932 if test "${enable_disallowing_of_undefined_references+set}" = set; then :
19933 enableval=$enable_disallowing_of_undefined_references;
19936 if test "$enable_disallowing_of_undefined_references" != "yes" && test "`uname`" != "Linux"; then
19937 enable_disallowing_of_undefined_references="no"
19939 if test "$enable_disallowing_of_undefined_references" != "no"; then
19940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -Wl,--no-undefined" >&5
19941 $as_echo_n "checking for -Wl,--no-undefined... " >&6; }
19942 old_LDFLAGS="$LDFLAGS"
19943 LDFLAGS="$LDFLAGS -Wl,--no-undefined"
19944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19945 /* end confdefs.h. */
19948 if ac_fn_c_try_link "$LINENO"; then :
19949 svn_wl_no_undefined="yes"
19951 svn_wl_no_undefined="no"
19953 rm -f core conftest.err conftest.$ac_objext \
19954 conftest$ac_exeext conftest.$ac_ext
19955 LDFLAGS="$old_LDFLAGS"
19956 if test "$svn_wl_no_undefined" = "yes"; then
19957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19958 $as_echo "yes" >&6; }
19959 for library_dir in "$abs_srcdir/subversion/libsvn_"*; do
19960 eval "`basename $library_dir`_LDFLAGS=-Wl,--no-undefined"
19963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19964 $as_echo "no" >&6; }
19965 if test "$enable_disallowing_of_undefined_references" = "yes"; then
19966 as_fn_error $? "--enable-disallowing-of-undefined-references explicitly requested, but -Wl,--no-undefined not supported" "$LINENO" 5
19988 # Check whether --enable-maintainer-mode was given.
19989 if test "${enable_maintainer_mode+set}" = set; then :
19990 enableval=$enable_maintainer_mode;
19991 if test "$enableval" = "yes" ; then
19992 if test "$enable_debugging" = "no" ; then
19993 as_fn_error $? "Can't have --disable-debug and --enable-maintainer-mode" "$LINENO" 5
19995 enable_debugging=yes
19997 if test "$GCC" = "yes"; then
19998 { $as_echo "$as_me:${as_lineno-$LINENO}: maintainer-mode: adding GCC warning flags" >&5
19999 $as_echo "$as_me: maintainer-mode: adding GCC warning flags" >&6;}
20002 CFLAGS_KEEP="$CFLAGS"
20006 _svn_xxflags__save="$CFLAGS"
20008 ac_cpp='$CPP $CPPFLAGS'
20009 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20010 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20011 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -Werror=implicit-function-declaration" >&5
20014 $as_echo_n "checking if $CC accepts -Werror=implicit-function-declaration... " >&6; }
20015 CFLAGS="-Werror=implicit-function-declaration $CFLAGS"
20016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20017 /* end confdefs.h. */
20020 if ac_fn_c_try_compile "$LINENO"; then :
20022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20023 $as_echo "yes" >&6; }
20028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20029 $as_echo "no" >&6; }
20030 CFLAGS="$_svn_xxflags__save"
20034 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20036 ac_cpp='$CPP $CPPFLAGS'
20037 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20038 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20039 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20043 _svn_xxflags__save="$CFLAGS"
20045 ac_cpp='$CPP $CPPFLAGS'
20046 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20047 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20048 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -Werror=declaration-after-statement" >&5
20051 $as_echo_n "checking if $CC accepts -Werror=declaration-after-statement... " >&6; }
20052 CFLAGS="-Werror=declaration-after-statement $CFLAGS"
20053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20054 /* end confdefs.h. */
20057 if ac_fn_c_try_compile "$LINENO"; then :
20059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20060 $as_echo "yes" >&6; }
20065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20066 $as_echo "no" >&6; }
20067 CFLAGS="$_svn_xxflags__save"
20071 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20073 ac_cpp='$CPP $CPPFLAGS'
20074 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20075 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20076 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20080 _svn_xxflags__save="$CFLAGS"
20082 ac_cpp='$CPP $CPPFLAGS'
20083 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20084 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20085 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -Wextra-tokens" >&5
20088 $as_echo_n "checking if $CC accepts -Wextra-tokens... " >&6; }
20089 CFLAGS="-Wextra-tokens $CFLAGS"
20090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20091 /* end confdefs.h. */
20094 if ac_fn_c_try_compile "$LINENO"; then :
20096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20097 $as_echo "yes" >&6; }
20102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20103 $as_echo "no" >&6; }
20104 CFLAGS="$_svn_xxflags__save"
20108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20110 ac_cpp='$CPP $CPPFLAGS'
20111 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20112 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20113 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20117 _svn_xxflags__save="$CFLAGS"
20119 ac_cpp='$CPP $CPPFLAGS'
20120 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20121 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20122 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -Wnewline-eof" >&5
20125 $as_echo_n "checking if $CC accepts -Wnewline-eof... " >&6; }
20126 CFLAGS="-Wnewline-eof $CFLAGS"
20127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20128 /* end confdefs.h. */
20131 if ac_fn_c_try_compile "$LINENO"; then :
20133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20134 $as_echo "yes" >&6; }
20139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20140 $as_echo "no" >&6; }
20141 CFLAGS="$_svn_xxflags__save"
20145 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20147 ac_cpp='$CPP $CPPFLAGS'
20148 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20149 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20150 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20154 _svn_xxflags__save="$CFLAGS"
20156 ac_cpp='$CPP $CPPFLAGS'
20157 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20158 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20159 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -Wshorten-64-to-32" >&5
20162 $as_echo_n "checking if $CC accepts -Wshorten-64-to-32... " >&6; }
20163 CFLAGS="-Wshorten-64-to-32 $CFLAGS"
20164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20165 /* end confdefs.h. */
20168 if ac_fn_c_try_compile "$LINENO"; then :
20170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20171 $as_echo "yes" >&6; }
20176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20177 $as_echo "no" >&6; }
20178 CFLAGS="$_svn_xxflags__save"
20182 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20184 ac_cpp='$CPP $CPPFLAGS'
20185 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20186 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20187 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20191 _svn_xxflags__save="$CFLAGS"
20193 ac_cpp='$CPP $CPPFLAGS'
20194 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20195 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20196 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -Wold-style-definition" >&5
20199 $as_echo_n "checking if $CC accepts -Wold-style-definition... " >&6; }
20200 CFLAGS="-Wold-style-definition $CFLAGS"
20201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20202 /* end confdefs.h. */
20205 if ac_fn_c_try_compile "$LINENO"; then :
20207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20208 $as_echo "yes" >&6; }
20213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20214 $as_echo "no" >&6; }
20215 CFLAGS="$_svn_xxflags__save"
20219 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20221 ac_cpp='$CPP $CPPFLAGS'
20222 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20223 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20224 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20228 _svn_xxflags__save="$CFLAGS"
20230 ac_cpp='$CPP $CPPFLAGS'
20231 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20232 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20233 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -Wno-system-headers" >&5
20236 $as_echo_n "checking if $CC accepts -Wno-system-headers... " >&6; }
20237 CFLAGS="-Wno-system-headers $CFLAGS"
20238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20239 /* end confdefs.h. */
20242 if ac_fn_c_try_compile "$LINENO"; then :
20244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20245 $as_echo "yes" >&6; }
20250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20251 $as_echo "no" >&6; }
20252 CFLAGS="$_svn_xxflags__save"
20256 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20258 ac_cpp='$CPP $CPPFLAGS'
20259 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20260 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20261 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20265 _svn_xxflags__save="$CFLAGS"
20267 ac_cpp='$CPP $CPPFLAGS'
20268 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20269 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20270 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -Wno-format-nonliteral" >&5
20273 $as_echo_n "checking if $CC accepts -Wno-format-nonliteral... " >&6; }
20274 CFLAGS="-Wno-format-nonliteral $CFLAGS"
20275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20276 /* end confdefs.h. */
20279 if ac_fn_c_try_compile "$LINENO"; then :
20281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20282 $as_echo "yes" >&6; }
20287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20288 $as_echo "no" >&6; }
20289 CFLAGS="$_svn_xxflags__save"
20293 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20295 ac_cpp='$CPP $CPPFLAGS'
20296 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20297 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20298 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20302 CMAINTAINERFLAGS="$CFLAGS $CMAINTAINERFLAGS"
20303 CFLAGS="$CFLAGS_KEEP"
20305 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"
20307 if test "$GXX" = "yes"; then
20308 { $as_echo "$as_me:${as_lineno-$LINENO}: maintainer-mode: adding G++ warning flags" >&5
20309 $as_echo "$as_me: maintainer-mode: adding G++ warning flags" >&6;}
20311 CXXFLAGS_KEEP="$CXXFLAGS"
20315 _svn_xxflags__save="$CXXFLAGS"
20317 ac_cpp='$CXXCPP $CPPFLAGS'
20318 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20319 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20320 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CXX accepts -Wextra-tokens" >&5
20323 $as_echo_n "checking if $CXX accepts -Wextra-tokens... " >&6; }
20324 CXXFLAGS="-Wextra-tokens $CXXFLAGS"
20325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20326 /* end confdefs.h. */
20329 if ac_fn_cxx_try_compile "$LINENO"; then :
20331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20332 $as_echo "yes" >&6; }
20337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20338 $as_echo "no" >&6; }
20339 CXXFLAGS="$_svn_xxflags__save"
20343 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20345 ac_cpp='$CPP $CPPFLAGS'
20346 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20347 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20348 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20352 _svn_xxflags__save="$CXXFLAGS"
20354 ac_cpp='$CXXCPP $CPPFLAGS'
20355 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20356 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20357 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CXX accepts -Wnewline-eof" >&5
20360 $as_echo_n "checking if $CXX accepts -Wnewline-eof... " >&6; }
20361 CXXFLAGS="-Wnewline-eof $CXXFLAGS"
20362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20363 /* end confdefs.h. */
20366 if ac_fn_cxx_try_compile "$LINENO"; then :
20368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20369 $as_echo "yes" >&6; }
20374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20375 $as_echo "no" >&6; }
20376 CXXFLAGS="$_svn_xxflags__save"
20380 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20382 ac_cpp='$CPP $CPPFLAGS'
20383 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20384 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20385 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20389 _svn_xxflags__save="$CXXFLAGS"
20391 ac_cpp='$CXXCPP $CPPFLAGS'
20392 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20393 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20394 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CXX accepts -Wshorten-64-to-32" >&5
20397 $as_echo_n "checking if $CXX accepts -Wshorten-64-to-32... " >&6; }
20398 CXXFLAGS="-Wshorten-64-to-32 $CXXFLAGS"
20399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20400 /* end confdefs.h. */
20403 if ac_fn_cxx_try_compile "$LINENO"; then :
20405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20406 $as_echo "yes" >&6; }
20411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20412 $as_echo "no" >&6; }
20413 CXXFLAGS="$_svn_xxflags__save"
20417 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20419 ac_cpp='$CPP $CPPFLAGS'
20420 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20421 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20422 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20426 _svn_xxflags__save="$CXXFLAGS"
20428 ac_cpp='$CXXCPP $CPPFLAGS'
20429 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20430 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20431 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CXX accepts -Wno-system-headers" >&5
20434 $as_echo_n "checking if $CXX accepts -Wno-system-headers... " >&6; }
20435 CXXFLAGS="-Wno-system-headers $CXXFLAGS"
20436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20437 /* end confdefs.h. */
20440 if ac_fn_cxx_try_compile "$LINENO"; then :
20442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20443 $as_echo "yes" >&6; }
20448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20449 $as_echo "no" >&6; }
20450 CXXFLAGS="$_svn_xxflags__save"
20454 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20456 ac_cpp='$CPP $CPPFLAGS'
20457 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20458 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20459 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20463 CXXMAINTAINERFLAGS="$CXXFLAGS $CXXMAINTAINERFLAGS"
20464 CXXFLAGS="$CXXFLAGS_KEEP"
20466 CXXMAINTAINERFLAGS="-Wall -Wpointer-arith -Wwrite-strings -Wshadow -Wunused -Wunreachable-code $CXXMAINTAINERFLAGS"
20473 if test "$enable_debugging" = "yes" ; then
20474 if test "$enable_optimization" != "yes"; then
20475 { $as_echo "$as_me:${as_lineno-$LINENO}: Disabling optimizations for debugging" >&5
20476 $as_echo "$as_me: Disabling optimizations for debugging" >&6;}
20477 CFLAGS="`echo $CFLAGS' ' | $SED -e 's/-O[^ ]* //g'`"
20478 CXXFLAGS="`echo $CXXFLAGS' ' | $SED -e 's/-O[^ ]* //g'`"
20480 if test -z "`echo $CUSERFLAGS' ' | $EGREP -- '-g[0-9]? '`"; then
20481 { $as_echo "$as_me:${as_lineno-$LINENO}: Enabling debugging for C" >&5
20482 $as_echo "$as_me: Enabling debugging for C" >&6;}
20483 CFLAGS="`echo $CFLAGS' ' | $SED -e 's/-g[0-9] //g' -e 's/-g //g'`"
20485 _svn_xxflags__save="$CFLAGS"
20487 ac_cpp='$CPP $CPPFLAGS'
20488 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20489 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20490 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -fno-inline" >&5
20493 $as_echo_n "checking if $CC accepts -fno-inline... " >&6; }
20494 CFLAGS="-fno-inline $CFLAGS"
20495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20496 /* end confdefs.h. */
20499 if ac_fn_c_try_compile "$LINENO"; then :
20501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20502 $as_echo "yes" >&6; }
20507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20508 $as_echo "no" >&6; }
20509 CFLAGS="$_svn_xxflags__save"
20513 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20515 ac_cpp='$CPP $CPPFLAGS'
20516 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20517 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20518 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20522 _svn_xxflags__save="$CFLAGS"
20524 ac_cpp='$CPP $CPPFLAGS'
20525 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20526 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20527 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -fno-omit-frame-pointer" >&5
20530 $as_echo_n "checking if $CC accepts -fno-omit-frame-pointer... " >&6; }
20531 CFLAGS="-fno-omit-frame-pointer $CFLAGS"
20532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20533 /* end confdefs.h. */
20536 if ac_fn_c_try_compile "$LINENO"; then :
20538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20539 $as_echo "yes" >&6; }
20544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20545 $as_echo "no" >&6; }
20546 CFLAGS="$_svn_xxflags__save"
20550 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20552 ac_cpp='$CPP $CPPFLAGS'
20553 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20554 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20555 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20559 _svn_xxflags__save="$CFLAGS"
20561 ac_cpp='$CPP $CPPFLAGS'
20562 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20563 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20564 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -g3" >&5
20567 $as_echo_n "checking if $CC accepts -g3... " >&6; }
20568 CFLAGS="-g3 $CFLAGS"
20569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20570 /* end confdefs.h. */
20573 if ac_fn_c_try_compile "$LINENO"; then :
20575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20576 $as_echo "yes" >&6; }
20581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20582 $as_echo "no" >&6; }
20583 CFLAGS="$_svn_xxflags__save"
20586 _svn_xxflags__save="$CFLAGS"
20588 ac_cpp='$CPP $CPPFLAGS'
20589 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20590 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20591 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -g2" >&5
20594 $as_echo_n "checking if $CC accepts -g2... " >&6; }
20595 CFLAGS="-g2 $CFLAGS"
20596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20597 /* end confdefs.h. */
20600 if ac_fn_c_try_compile "$LINENO"; then :
20602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20603 $as_echo "yes" >&6; }
20608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20609 $as_echo "no" >&6; }
20610 CFLAGS="$_svn_xxflags__save"
20613 _svn_xxflags__save="$CFLAGS"
20615 ac_cpp='$CPP $CPPFLAGS'
20616 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20617 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20618 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -g" >&5
20621 $as_echo_n "checking if $CC accepts -g... " >&6; }
20622 CFLAGS="-g $CFLAGS"
20623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20624 /* end confdefs.h. */
20627 if ac_fn_c_try_compile "$LINENO"; then :
20629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20630 $as_echo "yes" >&6; }
20635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20636 $as_echo "no" >&6; }
20637 CFLAGS="$_svn_xxflags__save"
20641 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20643 ac_cpp='$CPP $CPPFLAGS'
20644 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20645 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20646 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20651 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20653 ac_cpp='$CPP $CPPFLAGS'
20654 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20655 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20656 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20661 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20663 ac_cpp='$CPP $CPPFLAGS'
20664 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20665 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20666 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20670 if test -z "`echo $CXXUSERFLAGS' ' | $EGREP -- '-g[0-9]? '`"; then
20671 { $as_echo "$as_me:${as_lineno-$LINENO}: Enabling debugging for C++" >&5
20672 $as_echo "$as_me: Enabling debugging for C++" >&6;}
20673 CXXFLAGS="`echo $CXXFLAGS' ' | $SED -e 's/-g[0-9] //g' -e 's/-g //g'`"
20675 _svn_xxflags__save="$CXXFLAGS"
20677 ac_cpp='$CXXCPP $CPPFLAGS'
20678 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20679 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20680 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CXX accepts -fno-inline" >&5
20683 $as_echo_n "checking if $CXX accepts -fno-inline... " >&6; }
20684 CXXFLAGS="-fno-inline $CXXFLAGS"
20685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20686 /* end confdefs.h. */
20689 if ac_fn_cxx_try_compile "$LINENO"; then :
20691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20692 $as_echo "yes" >&6; }
20697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20698 $as_echo "no" >&6; }
20699 CXXFLAGS="$_svn_xxflags__save"
20703 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20705 ac_cpp='$CPP $CPPFLAGS'
20706 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20707 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20708 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20712 _svn_xxflags__save="$CXXFLAGS"
20714 ac_cpp='$CXXCPP $CPPFLAGS'
20715 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20716 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20717 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CXX accepts -fno-omit-frame-pointer" >&5
20720 $as_echo_n "checking if $CXX accepts -fno-omit-frame-pointer... " >&6; }
20721 CXXFLAGS="-fno-omit-frame-pointer $CXXFLAGS"
20722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20723 /* end confdefs.h. */
20726 if ac_fn_cxx_try_compile "$LINENO"; then :
20728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20729 $as_echo "yes" >&6; }
20734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20735 $as_echo "no" >&6; }
20736 CXXFLAGS="$_svn_xxflags__save"
20740 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20742 ac_cpp='$CPP $CPPFLAGS'
20743 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20744 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20745 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20749 _svn_xxflags__save="$CXXFLAGS"
20751 ac_cpp='$CXXCPP $CPPFLAGS'
20752 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20753 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20754 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CXX accepts -g3" >&5
20757 $as_echo_n "checking if $CXX accepts -g3... " >&6; }
20758 CXXFLAGS="-g3 $CXXFLAGS"
20759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20760 /* end confdefs.h. */
20763 if ac_fn_cxx_try_compile "$LINENO"; then :
20765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20766 $as_echo "yes" >&6; }
20771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20772 $as_echo "no" >&6; }
20773 CXXFLAGS="$_svn_xxflags__save"
20776 _svn_xxflags__save="$CXXFLAGS"
20778 ac_cpp='$CXXCPP $CPPFLAGS'
20779 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20780 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20781 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CXX accepts -g2" >&5
20784 $as_echo_n "checking if $CXX accepts -g2... " >&6; }
20785 CXXFLAGS="-g2 $CXXFLAGS"
20786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20787 /* end confdefs.h. */
20790 if ac_fn_cxx_try_compile "$LINENO"; then :
20792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20793 $as_echo "yes" >&6; }
20798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20799 $as_echo "no" >&6; }
20800 CXXFLAGS="$_svn_xxflags__save"
20803 _svn_xxflags__save="$CXXFLAGS"
20805 ac_cpp='$CXXCPP $CPPFLAGS'
20806 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20807 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20808 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CXX accepts -g" >&5
20811 $as_echo_n "checking if $CXX accepts -g... " >&6; }
20812 CXXFLAGS="-g $CXXFLAGS"
20813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20814 /* end confdefs.h. */
20817 if ac_fn_cxx_try_compile "$LINENO"; then :
20819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20820 $as_echo "yes" >&6; }
20825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20826 $as_echo "no" >&6; }
20827 CXXFLAGS="$_svn_xxflags__save"
20831 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20833 ac_cpp='$CXXCPP $CPPFLAGS'
20834 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20835 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20836 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20841 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20843 ac_cpp='$CXXCPP $CPPFLAGS'
20844 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20845 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20846 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20851 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20853 ac_cpp='$CPP $CPPFLAGS'
20854 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20855 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20856 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20860 CFLAGS="$CFLAGS -DSVN_DEBUG -DAP_DEBUG"
20861 CXXFLAGS="$CXXFLAGS -DSVN_DEBUG -DAP_DEBUG"
20862 elif test "$enable_debugging" = "no" ; then
20863 { $as_echo "$as_me:${as_lineno-$LINENO}: Disabling debugging" >&5
20864 $as_echo "$as_me: Disabling debugging" >&6;}
20865 CFLAGS="`echo $CFLAGS' ' | $SED -e 's/-g[0-9] //g' -e 's/-g //g'`"
20866 CXXFLAGS="`echo $CXXFLAGS' ' | $SED -e 's/-g[0-9] //g' -e 's/-g //g'`"
20867 CFLAGS="$CFLAGS -DNDEBUG"
20868 CXXFLAGS="$CXXFLAGS -DNDEBUG"
20869 # elif test "$enable_debugging" = "maybe" ; then
20873 if test "$enable_optimization" = "yes"; then
20874 if test -z "`echo $CUSERFLAGS' ' | $EGREP -- '-O[^ ]* '`"; then
20875 CFLAGS="`echo $CFLAGS' ' | $SED -e 's/-O[^ ]* //g'`"
20876 if test "$enable_debugging" = "yes"; then
20877 { $as_echo "$as_me:${as_lineno-$LINENO}: Enabling optimizations for C (with debugging enabled)" >&5
20878 $as_echo "$as_me: Enabling optimizations for C (with debugging enabled)" >&6;}
20880 _svn_xxflags__save="$CFLAGS"
20882 ac_cpp='$CPP $CPPFLAGS'
20883 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20884 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20885 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -O1" >&5
20888 $as_echo_n "checking if $CC accepts -O1... " >&6; }
20889 CFLAGS="-O1 $CFLAGS"
20890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20891 /* end confdefs.h. */
20894 if ac_fn_c_try_compile "$LINENO"; then :
20896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20897 $as_echo "yes" >&6; }
20902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20903 $as_echo "no" >&6; }
20904 CFLAGS="$_svn_xxflags__save"
20907 _svn_xxflags__save="$CFLAGS"
20909 ac_cpp='$CPP $CPPFLAGS'
20910 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20911 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20912 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -O" >&5
20915 $as_echo_n "checking if $CC accepts -O... " >&6; }
20916 CFLAGS="-O $CFLAGS"
20917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20918 /* end confdefs.h. */
20921 if ac_fn_c_try_compile "$LINENO"; then :
20923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20924 $as_echo "yes" >&6; }
20929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20930 $as_echo "no" >&6; }
20931 CFLAGS="$_svn_xxflags__save"
20935 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20937 ac_cpp='$CPP $CPPFLAGS'
20938 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20939 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20940 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20945 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20947 ac_cpp='$CPP $CPPFLAGS'
20948 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20949 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20950 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20954 { $as_echo "$as_me:${as_lineno-$LINENO}: Enabling optimizations for C" >&5
20955 $as_echo "$as_me: Enabling optimizations for C" >&6;}
20957 _svn_xxflags__save="$CFLAGS"
20959 ac_cpp='$CPP $CPPFLAGS'
20960 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20961 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20962 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -O3" >&5
20965 $as_echo_n "checking if $CC accepts -O3... " >&6; }
20966 CFLAGS="-O3 $CFLAGS"
20967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20968 /* end confdefs.h. */
20971 if ac_fn_c_try_compile "$LINENO"; then :
20973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20974 $as_echo "yes" >&6; }
20979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20980 $as_echo "no" >&6; }
20981 CFLAGS="$_svn_xxflags__save"
20984 _svn_xxflags__save="$CFLAGS"
20986 ac_cpp='$CPP $CPPFLAGS'
20987 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20988 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20989 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -O2" >&5
20992 $as_echo_n "checking if $CC accepts -O2... " >&6; }
20993 CFLAGS="-O2 $CFLAGS"
20994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20995 /* end confdefs.h. */
20998 if ac_fn_c_try_compile "$LINENO"; then :
21000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21001 $as_echo "yes" >&6; }
21006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21007 $as_echo "no" >&6; }
21008 CFLAGS="$_svn_xxflags__save"
21011 _svn_xxflags__save="$CFLAGS"
21013 ac_cpp='$CPP $CPPFLAGS'
21014 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21015 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21016 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -O1" >&5
21019 $as_echo_n "checking if $CC accepts -O1... " >&6; }
21020 CFLAGS="-O1 $CFLAGS"
21021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21022 /* end confdefs.h. */
21025 if ac_fn_c_try_compile "$LINENO"; then :
21027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21028 $as_echo "yes" >&6; }
21033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21034 $as_echo "no" >&6; }
21035 CFLAGS="$_svn_xxflags__save"
21038 _svn_xxflags__save="$CFLAGS"
21040 ac_cpp='$CPP $CPPFLAGS'
21041 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21042 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21043 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -O" >&5
21046 $as_echo_n "checking if $CC accepts -O... " >&6; }
21047 CFLAGS="-O $CFLAGS"
21048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21049 /* end confdefs.h. */
21052 if ac_fn_c_try_compile "$LINENO"; then :
21054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21055 $as_echo "yes" >&6; }
21060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21061 $as_echo "no" >&6; }
21062 CFLAGS="$_svn_xxflags__save"
21066 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21068 ac_cpp='$CPP $CPPFLAGS'
21069 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21070 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21071 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21076 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21078 ac_cpp='$CPP $CPPFLAGS'
21079 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21080 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21081 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21086 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21088 ac_cpp='$CPP $CPPFLAGS'
21089 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21090 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21091 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21096 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21098 ac_cpp='$CPP $CPPFLAGS'
21099 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21100 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21101 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21105 _svn_xxflags__save="$CFLAGS"
21107 ac_cpp='$CPP $CPPFLAGS'
21108 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21109 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21110 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -Wno-clobbered" >&5
21113 $as_echo_n "checking if $CC accepts -Wno-clobbered... " >&6; }
21114 CFLAGS="-Wno-clobbered $CFLAGS"
21115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21116 /* end confdefs.h. */
21119 if ac_fn_c_try_compile "$LINENO"; then :
21121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21122 $as_echo "yes" >&6; }
21127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21128 $as_echo "no" >&6; }
21129 CFLAGS="$_svn_xxflags__save"
21133 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21135 ac_cpp='$CPP $CPPFLAGS'
21136 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21137 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21138 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21142 _svn_xxflags__save="$CFLAGS"
21144 ac_cpp='$CPP $CPPFLAGS'
21145 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21146 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21147 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -flto" >&5
21150 $as_echo_n "checking if $CC accepts -flto... " >&6; }
21151 CFLAGS="-flto $CFLAGS"
21152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21153 /* end confdefs.h. */
21156 if ac_fn_c_try_compile "$LINENO"; then :
21158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21159 $as_echo "yes" >&6; }
21164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21165 $as_echo "no" >&6; }
21166 CFLAGS="$_svn_xxflags__save"
21170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21172 ac_cpp='$CPP $CPPFLAGS'
21173 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21174 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21175 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21180 if test -z "`echo $CXXUSERFLAGS' ' | $EGREP -- '-O[^ ]* '`"; then
21181 CXXFLAGS="`echo $CXXFLAGS' ' | $SED -e 's/-O[^ ]* //g'`"
21182 if test "$enable_debugging" = "yes"; then
21183 { $as_echo "$as_me:${as_lineno-$LINENO}: Enabling optimizations for C++ (with debugging enabled)" >&5
21184 $as_echo "$as_me: Enabling optimizations for C++ (with debugging enabled)" >&6;}
21186 _svn_xxflags__save="$CXXFLAGS"
21188 ac_cpp='$CXXCPP $CPPFLAGS'
21189 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21190 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21191 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CXX accepts -O1" >&5
21194 $as_echo_n "checking if $CXX accepts -O1... " >&6; }
21195 CXXFLAGS="-O1 $CXXFLAGS"
21196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21197 /* end confdefs.h. */
21200 if ac_fn_cxx_try_compile "$LINENO"; then :
21202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21203 $as_echo "yes" >&6; }
21208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21209 $as_echo "no" >&6; }
21210 CXXFLAGS="$_svn_xxflags__save"
21213 _svn_xxflags__save="$CXXFLAGS"
21215 ac_cpp='$CXXCPP $CPPFLAGS'
21216 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21217 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21218 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CXX accepts -O" >&5
21221 $as_echo_n "checking if $CXX accepts -O... " >&6; }
21222 CXXFLAGS="-O $CXXFLAGS"
21223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21224 /* end confdefs.h. */
21227 if ac_fn_cxx_try_compile "$LINENO"; then :
21229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21230 $as_echo "yes" >&6; }
21235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21236 $as_echo "no" >&6; }
21237 CXXFLAGS="$_svn_xxflags__save"
21241 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21243 ac_cpp='$CXXCPP $CPPFLAGS'
21244 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21245 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21246 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21251 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21253 ac_cpp='$CPP $CPPFLAGS'
21254 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21255 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21256 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21260 { $as_echo "$as_me:${as_lineno-$LINENO}: Enabling optimizations for C++" >&5
21261 $as_echo "$as_me: Enabling optimizations for C++" >&6;}
21263 _svn_xxflags__save="$CXXFLAGS"
21265 ac_cpp='$CXXCPP $CPPFLAGS'
21266 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21267 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21268 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CXX accepts -O3" >&5
21271 $as_echo_n "checking if $CXX accepts -O3... " >&6; }
21272 CXXFLAGS="-O3 $CXXFLAGS"
21273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21274 /* end confdefs.h. */
21277 if ac_fn_cxx_try_compile "$LINENO"; then :
21279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21280 $as_echo "yes" >&6; }
21285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21286 $as_echo "no" >&6; }
21287 CXXFLAGS="$_svn_xxflags__save"
21290 _svn_xxflags__save="$CXXFLAGS"
21292 ac_cpp='$CXXCPP $CPPFLAGS'
21293 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21294 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21295 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CXX accepts -O2" >&5
21298 $as_echo_n "checking if $CXX accepts -O2... " >&6; }
21299 CXXFLAGS="-O2 $CXXFLAGS"
21300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21301 /* end confdefs.h. */
21304 if ac_fn_cxx_try_compile "$LINENO"; then :
21306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21307 $as_echo "yes" >&6; }
21312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21313 $as_echo "no" >&6; }
21314 CXXFLAGS="$_svn_xxflags__save"
21317 _svn_xxflags__save="$CXXFLAGS"
21319 ac_cpp='$CXXCPP $CPPFLAGS'
21320 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21321 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21322 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CXX accepts -O1" >&5
21325 $as_echo_n "checking if $CXX accepts -O1... " >&6; }
21326 CXXFLAGS="-O1 $CXXFLAGS"
21327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21328 /* end confdefs.h. */
21331 if ac_fn_cxx_try_compile "$LINENO"; then :
21333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21334 $as_echo "yes" >&6; }
21339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21340 $as_echo "no" >&6; }
21341 CXXFLAGS="$_svn_xxflags__save"
21344 _svn_xxflags__save="$CXXFLAGS"
21346 ac_cpp='$CXXCPP $CPPFLAGS'
21347 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21348 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21349 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CXX accepts -O" >&5
21352 $as_echo_n "checking if $CXX accepts -O... " >&6; }
21353 CXXFLAGS="-O $CXXFLAGS"
21354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21355 /* end confdefs.h. */
21358 if ac_fn_cxx_try_compile "$LINENO"; then :
21360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21361 $as_echo "yes" >&6; }
21366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21367 $as_echo "no" >&6; }
21368 CXXFLAGS="$_svn_xxflags__save"
21372 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21374 ac_cpp='$CXXCPP $CPPFLAGS'
21375 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21376 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21377 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21382 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21384 ac_cpp='$CXXCPP $CPPFLAGS'
21385 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21386 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21387 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21392 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21394 ac_cpp='$CXXCPP $CPPFLAGS'
21395 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21396 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21397 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21402 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21404 ac_cpp='$CPP $CPPFLAGS'
21405 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21406 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21407 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21411 _svn_xxflags__save="$CXXFLAGS"
21413 ac_cpp='$CXXCPP $CPPFLAGS'
21414 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21415 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21416 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CXX accepts -Wno-clobbered" >&5
21419 $as_echo_n "checking if $CXX accepts -Wno-clobbered... " >&6; }
21420 CXXFLAGS="-Wno-clobbered $CXXFLAGS"
21421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21422 /* end confdefs.h. */
21425 if ac_fn_cxx_try_compile "$LINENO"; then :
21427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21428 $as_echo "yes" >&6; }
21433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21434 $as_echo "no" >&6; }
21435 CXXFLAGS="$_svn_xxflags__save"
21439 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21441 ac_cpp='$CPP $CPPFLAGS'
21442 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21443 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21444 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21448 _svn_xxflags__save="$CXXFLAGS"
21450 ac_cpp='$CXXCPP $CPPFLAGS'
21451 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21452 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21453 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CXX accepts -flto" >&5
21456 $as_echo_n "checking if $CXX accepts -flto... " >&6; }
21457 CXXFLAGS="-flto $CXXFLAGS"
21458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21459 /* end confdefs.h. */
21462 if ac_fn_cxx_try_compile "$LINENO"; then :
21464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21465 $as_echo "yes" >&6; }
21470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21471 $as_echo "no" >&6; }
21472 CXXFLAGS="$_svn_xxflags__save"
21476 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21478 ac_cpp='$CPP $CPPFLAGS'
21479 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21480 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21481 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21486 elif test "$enable_optimization" = "no"; then
21487 { $as_echo "$as_me:${as_lineno-$LINENO}: Disabling optimizations" >&5
21488 $as_echo "$as_me: Disabling optimizations" >&6;}
21489 CFLAGS="`echo $CFLAGS' ' | $SED -e 's/-O[^ ]* //g'`"
21490 CXXFLAGS="`echo $CXXFLAGS' ' | $SED -e 's/-O[^ ]* //g'`"
21491 # elif test "$enable_optimization" = "maybe" ; then
21495 { $as_echo "$as_me:${as_lineno-$LINENO}: C compiler flags: $CFLAGS" >&5
21496 $as_echo "$as_me: C compiler flags: $CFLAGS" >&6;}
21497 { $as_echo "$as_me:${as_lineno-$LINENO}: user-defined: $CUSERFLAGS" >&5
21498 $as_echo "$as_me: user-defined: $CUSERFLAGS" >&6;}
21499 { $as_echo "$as_me:${as_lineno-$LINENO}: maintainer-mode: $CMAINTAINERFLAGS" >&5
21500 $as_echo "$as_me: maintainer-mode: $CMAINTAINERFLAGS" >&6;}
21501 { $as_echo "$as_me:${as_lineno-$LINENO}: C++ compiler flags: $CXXFLAGS" >&5
21502 $as_echo "$as_me: C++ compiler flags: $CXXFLAGS" >&6;}
21503 { $as_echo "$as_me:${as_lineno-$LINENO}: user-defined: $CXXUSERFLAGS" >&5
21504 $as_echo "$as_me: user-defined: $CXXUSERFLAGS" >&6;}
21505 { $as_echo "$as_me:${as_lineno-$LINENO}: maintainer-mode: $CXXMAINTAINERFLAGS" >&5
21506 $as_echo "$as_me: maintainer-mode: $CXXMAINTAINERFLAGS" >&6;}
21508 # Check whether --enable-full-version-match was given.
21509 if test "${enable_full_version_match+set}" = set; then :
21510 enableval=$enable_full_version_match;
21511 if test "$enableval" = "no" ; then
21512 { $as_echo "$as_me:${as_lineno-$LINENO}: Disabling svn full version matching" >&5
21513 $as_echo "$as_me: Disabling svn full version matching" >&6;}
21515 $as_echo "#define SVN_DISABLE_FULL_VERSION_MATCH 1" >>confdefs.h
21523 # Check whether --with-editor was given.
21524 if test "${with_editor+set}" = set; then :
21525 withval=$with_editor;
21527 if test "$withval" = "yes" ; then
21528 as_fn_error $? "--with-editor requires an argument." "$LINENO" 5
21530 SVN_CLIENT_EDITOR=$withval
21532 cat >>confdefs.h <<_ACEOF
21533 #define SVN_CLIENT_EDITOR "$SVN_CLIENT_EDITOR"
21547 # Check whether --with-zlib was given.
21548 if test "${with_zlib+set}" = set; then :
21549 withval=$with_zlib;
21550 if test "$withval" = "yes" ; then
21551 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
21552 if test "x$ac_cv_header_zlib_h" = xyes; then :
21554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
21555 $as_echo_n "checking for inflate in -lz... " >&6; }
21556 if ${ac_cv_lib_z_inflate+:} false; then :
21557 $as_echo_n "(cached) " >&6
21559 ac_check_lib_save_LIBS=$LIBS
21561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21562 /* end confdefs.h. */
21564 /* Override any GCC internal prototype to avoid an error.
21565 Use char because int might match the return type of a GCC
21566 builtin and then its argument prototype would still apply. */
21579 if ac_fn_c_try_link "$LINENO"; then :
21580 ac_cv_lib_z_inflate=yes
21582 ac_cv_lib_z_inflate=no
21584 rm -f core conftest.err conftest.$ac_objext \
21585 conftest$ac_exeext conftest.$ac_ext
21586 LIBS=$ac_check_lib_save_LIBS
21588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
21589 $as_echo "$ac_cv_lib_z_inflate" >&6; }
21590 if test "x$ac_cv_lib_z_inflate" = xyes; then :
21591 zlib_found="builtin"
21598 elif test "$withval" = "no" ; then
21599 as_fn_error $? "cannot compile without zlib." "$LINENO" 5
21601 { $as_echo "$as_me:${as_lineno-$LINENO}: zlib library configuration" >&5
21602 $as_echo "$as_me: zlib library configuration" >&6;}
21603 zlib_prefix=$withval
21604 save_cppflags="$CPPFLAGS"
21605 CPPFLAGS="$CPPFLAGS -I$zlib_prefix/include"
21606 for ac_header in zlib.h
21608 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
21609 if test "x$ac_cv_header_zlib_h" = xyes; then :
21610 cat >>confdefs.h <<_ACEOF
21611 #define HAVE_ZLIB_H 1
21614 save_ldflags="$LDFLAGS"
21615 LDFLAGS="$LDFLAGS -L$zlib_prefix/lib"
21616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
21617 $as_echo_n "checking for inflate in -lz... " >&6; }
21618 if ${ac_cv_lib_z_inflate+:} false; then :
21619 $as_echo_n "(cached) " >&6
21621 ac_check_lib_save_LIBS=$LIBS
21623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21624 /* end confdefs.h. */
21626 /* Override any GCC internal prototype to avoid an error.
21627 Use char because int might match the return type of a GCC
21628 builtin and then its argument prototype would still apply. */
21641 if ac_fn_c_try_link "$LINENO"; then :
21642 ac_cv_lib_z_inflate=yes
21644 ac_cv_lib_z_inflate=no
21646 rm -f core conftest.err conftest.$ac_objext \
21647 conftest$ac_exeext conftest.$ac_ext
21648 LIBS=$ac_check_lib_save_LIBS
21650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
21651 $as_echo "$ac_cv_lib_z_inflate" >&6; }
21652 if test "x$ac_cv_lib_z_inflate" = xyes; then :
21656 LDFLAGS="$save_ldflags"
21662 CPPFLAGS="$save_cppflags"
21667 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
21668 if test "x$ac_cv_header_zlib_h" = xyes; then :
21670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
21671 $as_echo_n "checking for inflate in -lz... " >&6; }
21672 if ${ac_cv_lib_z_inflate+:} false; then :
21673 $as_echo_n "(cached) " >&6
21675 ac_check_lib_save_LIBS=$LIBS
21677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21678 /* end confdefs.h. */
21680 /* Override any GCC internal prototype to avoid an error.
21681 Use char because int might match the return type of a GCC
21682 builtin and then its argument prototype would still apply. */
21695 if ac_fn_c_try_link "$LINENO"; then :
21696 ac_cv_lib_z_inflate=yes
21698 ac_cv_lib_z_inflate=no
21700 rm -f core conftest.err conftest.$ac_objext \
21701 conftest$ac_exeext conftest.$ac_ext
21702 LIBS=$ac_check_lib_save_LIBS
21704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
21705 $as_echo "$ac_cv_lib_z_inflate" >&6; }
21706 if test "x$ac_cv_lib_z_inflate" = xyes; then :
21707 zlib_found="builtin"
21718 if test "$zlib_found" = "no"; then
21719 as_fn_error $? "subversion requires zlib" "$LINENO" 5
21722 if test "$zlib_found" = "yes"; then
21723 SVN_ZLIB_INCLUDES="-I$zlib_prefix/include"
21724 LDFLAGS="$LDFLAGS `
21725 input_flags="-L$zlib_prefix/lib"
21727 filtered_dirs="/lib /lib64 /usr/lib /usr/lib64"
21728 for flag in $input_flags; do
21730 for dir in $filtered_dirs; do
21731 if test "$flag" = "-L$dir" || test "$flag" = "-L$dir/"; then
21736 if test "$filter" = "no"; then
21737 output_flags="$output_flags $flag"
21740 if test -n "$output_flags"; then
21741 printf "%s" "${output_flags# }"
21746 SVN_ZLIB_LIBS="-lz"
21753 # Check whether --enable-mod-activation was given.
21754 if test "${enable_mod_activation+set}" = set; then :
21755 enableval=$enable_mod_activation;
21756 if test "$enableval" = "yes" ; then
21757 MOD_ACTIVATION="-a"
21758 { $as_echo "$as_me:${as_lineno-$LINENO}: Enabling apache module activation" >&5
21759 $as_echo "$as_me: Enabling apache module activation" >&6;}
21761 { $as_echo "$as_me:${as_lineno-$LINENO}: Disabling apache module activation" >&5
21762 $as_echo "$as_me: Disabling apache module activation" >&6;}
21771 # Check whether --enable-gcov was given.
21772 if test "${enable_gcov+set}" = set; then :
21773 enableval=$enable_gcov;
21774 if test "$enableval" = "yes" ; then
21775 if test "$GCC" = "yes"; then
21776 if test "$svn_enable_shared" = "yes" ; then
21777 as_fn_error $? "Can't have --enable-gcov without --disable-shared (we
21778 recommend also using --enable-all-static)." "$LINENO" 5
21780 if test ! "$enable_all_static" = "yes" ; then
21781 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: We recommend --enable-all-static with --enable-gcov." >&5
21782 $as_echo "$as_me: WARNING: We recommend --enable-all-static with --enable-gcov." >&2;}
21784 { $as_echo "$as_me:${as_lineno-$LINENO}: Enabling gcov coverage testing." >&5
21785 $as_echo "$as_me: Enabling gcov coverage testing." >&6;}
21786 CFLAGS="$CFLAGS -fprofile-arcs -ftest-coverage"
21787 CXXFLAGS="$CXXFLAGS -fprofile-arcs -ftest-coverage"
21789 as_fn_error $? "We only support --enable-gcov with GCC right now." "$LINENO" 5
21796 # Check whether --enable-gprof was given.
21797 if test "${enable_gprof+set}" = set; then :
21798 enableval=$enable_gprof;
21799 if test "$enableval" = "yes" ; then
21800 if test "$GCC" = "yes"; then
21801 if test "$svn_enable_shared" = "yes" ; then
21802 as_fn_error $? "Can't have --enable-gprof without --disable-shared (we
21803 recommend also using --enable-all-static)." "$LINENO" 5
21805 if test ! "$enable_all_static" = "yes" ; then
21806 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: We recommend --enable-all-static with --enable-gprof." >&5
21807 $as_echo "$as_me: WARNING: We recommend --enable-all-static with --enable-gprof." >&2;}
21809 { $as_echo "$as_me:${as_lineno-$LINENO}: Enabling gprof profiling data (to gmon.out)." >&5
21810 $as_echo "$as_me: Enabling gprof profiling data (to gmon.out)." >&6;}
21811 CFLAGS="$CFLAGS -pg"
21812 CXXFLAGS="$CXXFLAGS -pg"
21813 LT_LDFLAGS="$LT_LDFLAGS -pg"
21815 as_fn_error $? "We only support --enable-gprof with GCC right now." "$LINENO" 5
21823 # Scripting and Bindings languages
21825 # Python: Used for testsuite, and bindings
21828 PYTHON="`$abs_srcdir/build/find_python.sh`"
21829 if test -z "$PYTHON"; then
21830 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Python 2.5 or later is required to run the testsuite" >&5
21831 $as_echo "$as_me: WARNING: Python 2.5 or later is required to run the testsuite" >&2;}
21832 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: or to use the Subversion Python bindings" >&5
21833 $as_echo "$as_me: WARNING: or to use the Subversion Python bindings" >&2;}
21834 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: " >&5
21835 $as_echo "$as_me: WARNING: " >&2;}
21836 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: If you have a suitable Python installed, but not on the" >&5
21837 $as_echo "$as_me: WARNING: If you have a suitable Python installed, but not on the" >&2;}
21838 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PATH, set the environment variable PYTHON to the full path" >&5
21839 $as_echo "$as_me: WARNING: PATH, set the environment variable PYTHON to the full path" >&2;}
21840 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: to the Python executable, and re-run configure" >&5
21841 $as_echo "$as_me: WARNING: to the Python executable, and re-run configure" >&2;}
21843 for ac_prog in "$PYTHON"
21845 # Extract the first word of "$ac_prog", so it can be a program name with args.
21846 set dummy $ac_prog; ac_word=$2
21847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21848 $as_echo_n "checking for $ac_word... " >&6; }
21849 if ${ac_cv_path_PYTHON+:} false; then :
21850 $as_echo_n "(cached) " >&6
21854 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
21857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21858 for as_dir in $PATH
21861 test -z "$as_dir" && as_dir=.
21862 for ac_exec_ext in '' $ac_executable_extensions; do
21863 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21864 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
21865 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21875 PYTHON=$ac_cv_path_PYTHON
21876 if test -n "$PYTHON"; then
21877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
21878 $as_echo "$PYTHON" >&6; }
21880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21881 $as_echo "no" >&6; }
21885 test -n "$PYTHON" && break
21887 test -n "$PYTHON" || PYTHON="none"
21890 # The minimum version for the JVM runtime for our Java bytecode.
21891 JAVA_OLDEST_WORKING_VER='1.5'
21892 # SVN_CHECK_JDK sets $JAVA_CLASSPATH
21894 JAVA_OLDEST_WORKING_VER="$JAVA_OLDEST_WORKING_VER"
21896 # Check whether --with-jdk was given.
21897 if test "${with_jdk+set}" = set; then :
21906 JAVA_OLDEST_WORKING_VER="$JAVA_OLDEST_WORKING_VER"
21917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JDK" >&5
21918 $as_echo_n "checking for JDK... " >&6; }
21919 if test $where = check; then
21920 if test -x "$JAVA_HOME/bin/java"; then
21922 elif test -x "/Library/Java/Home/bin/java"; then
21923 JDK="/Library/Java/Home"
21924 elif test -x "/usr/bin/java"; then
21926 elif test -x "/usr/local/bin/java"; then
21934 if test "$os_arch" = "Darwin"; then
21935 OSX_VER=`/usr/bin/sw_vers | grep ProductVersion | cut -f2 | cut -d"." -f1,2`
21937 if test "$OSX_VER" = "10.4"; then
21941 OSX_SYS_JAVA_FRAMEWORK="/System/Library/Frameworks/JavaVM.framework"
21942 OSX_SDK_JAVA_FRAMEWORK="/Developer/SDKs/MacOSX$OSX_VER.sdk/System/Library"
21943 OSX_SDK_JAVA_FRAMEWORK="$OSX_SDK_JAVA_FRAMEWORK/Frameworks/JavaVM.framework"
21946 if test "$os_arch" = "Darwin" && test "$JDK" = "/usr" &&
21947 test -d "/Library/Java/Home"; then
21948 JDK="/Library/Java/Home"
21951 if test "$os_arch" = "Darwin" && test "$JDK" = "/Library/Java/Home"; then
21952 JRE_LIB_DIR="$OSX_SYS_JAVA_FRAMEWORK/Classes"
21954 JRE_LIB_DIR="$JDK/jre/lib"
21957 if test -f "$JDK/include/jni.h"; then
21958 JNI_INCLUDEDIR="$JDK/include"
21960 elif test "$os_arch" = "Darwin" && test -e "$JDK/Headers/jni.h"; then
21961 JNI_INCLUDEDIR="$JDK/Headers"
21963 elif test "$os_arch" = "Darwin" &&
21964 test -e "$OSX_SYS_JAVA_FRAMEWORK/Headers/jni.h"; then
21965 JNI_INCLUDEDIR="$OSX_SYS_JAVA_FRAMEWORK/Headers"
21967 elif test "$os_arch" = "Darwin" &&
21968 test -e "$OSX_SDK_JAVA_FRAMEWORK/Headers/jni.h"; then
21969 JNI_INCLUDEDIR="$OSX_SDK_JAVA_FRAMEWORK/Headers"
21974 if test "$JDK_SUITABLE" = "yes"; then
21975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JNI_INCLUDEDIR/jni.h" >&5
21976 $as_echo "$JNI_INCLUDEDIR/jni.h" >&6; }
21978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21979 $as_echo "no" >&6; }
21980 if test "$where" != "check"; then
21981 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no JNI header files found." >&5
21982 $as_echo "$as_me: WARNING: no JNI header files found." >&2;}
21983 if test "$os_arch" = "Darwin"; then
21984 { $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
21985 $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;}
21990 if test "$JDK_SUITABLE" = "yes"; then
21991 JAVA_BIN='$(JDK)/bin'
21993 JAVA="$JAVA_BIN/java"
21994 JAVAC="$JAVA_BIN/javac"
21995 JAVAH="$JAVA_BIN/javah"
21996 JAVADOC="$JAVA_BIN/javadoc"
21997 JAR="$JAVA_BIN/jar"
21999 jikes_options="/usr/local/bin/jikes /usr/bin/jikes"
22001 # Check whether --with-jikes was given.
22002 if test "${with_jikes+set}" = set; then :
22003 withval=$with_jikes;
22004 if test "$withval" != "no" && test "$withval" != "yes"; then
22005 jikes_options="$withval $jikes_options"
22007 requested_jikes="$withval" # will be 'yes' if path unspecified
22011 if test "$requested_jikes" != "no"; then
22012 for jikes in $jikes_options; do
22013 if test -z "$jikes_found" && test -x "$jikes"; then
22016 JAVA_CLASSPATH="$JRE_LIB_DIR"
22017 for jar in $JRE_LIB_DIR/*.jar; do
22018 JAVA_CLASSPATH="$JAVA_CLASSPATH:$jar"
22023 if test -n "$requested_jikes" && test "$requested_jikes" != "no"; then
22024 if test -z "$jikes_found"; then
22025 as_fn_error $? "Could not find a usable version of Jikes" "$LINENO" 5
22026 elif test -n "$jikes_found" && test "$requested_jikes" != "yes" &&
22027 test "$JAVAC" != "$requested_jikes"; then
22028 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-jikes PATH was invalid, substitute found" >&5
22029 $as_echo "$as_me: WARNING: --with-jikes PATH was invalid, substitute found" >&2;}
22033 # The release for "-source" could actually be greater than that
22034 # of "-target", if we want to cross-compile for lesser JVMs.
22035 if test -z "$JAVAC_FLAGS"; then
22036 JAVAC_FLAGS="-target $JAVA_OLDEST_WORKING_VER -source 1.5"
22037 if test "$enable_debugging" = "yes"; then
22038 JAVAC_FLAGS="-g -Xlint:unchecked $JAVAC_FLAGS"
22042 JNI_INCLUDES="-I$JNI_INCLUDEDIR"
22043 list="`find "$JNI_INCLUDEDIR" -type d -print`"
22044 for dir in $list; do
22045 JNI_INCLUDES="$JNI_INCLUDES -I$dir"
22062 JAVA_OLDEST_WORKING_VER="$JAVA_OLDEST_WORKING_VER"
22073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JDK" >&5
22074 $as_echo_n "checking for JDK... " >&6; }
22075 if test $where = check; then
22076 if test -x "$JAVA_HOME/bin/java"; then
22078 elif test -x "/Library/Java/Home/bin/java"; then
22079 JDK="/Library/Java/Home"
22080 elif test -x "/usr/bin/java"; then
22082 elif test -x "/usr/local/bin/java"; then
22090 if test "$os_arch" = "Darwin"; then
22091 OSX_VER=`/usr/bin/sw_vers | grep ProductVersion | cut -f2 | cut -d"." -f1,2`
22093 if test "$OSX_VER" = "10.4"; then
22097 OSX_SYS_JAVA_FRAMEWORK="/System/Library/Frameworks/JavaVM.framework"
22098 OSX_SDK_JAVA_FRAMEWORK="/Developer/SDKs/MacOSX$OSX_VER.sdk/System/Library"
22099 OSX_SDK_JAVA_FRAMEWORK="$OSX_SDK_JAVA_FRAMEWORK/Frameworks/JavaVM.framework"
22102 if test "$os_arch" = "Darwin" && test "$JDK" = "/usr" &&
22103 test -d "/Library/Java/Home"; then
22104 JDK="/Library/Java/Home"
22107 if test "$os_arch" = "Darwin" && test "$JDK" = "/Library/Java/Home"; then
22108 JRE_LIB_DIR="$OSX_SYS_JAVA_FRAMEWORK/Classes"
22110 JRE_LIB_DIR="$JDK/jre/lib"
22113 if test -f "$JDK/include/jni.h"; then
22114 JNI_INCLUDEDIR="$JDK/include"
22116 elif test "$os_arch" = "Darwin" && test -e "$JDK/Headers/jni.h"; then
22117 JNI_INCLUDEDIR="$JDK/Headers"
22119 elif test "$os_arch" = "Darwin" &&
22120 test -e "$OSX_SYS_JAVA_FRAMEWORK/Headers/jni.h"; then
22121 JNI_INCLUDEDIR="$OSX_SYS_JAVA_FRAMEWORK/Headers"
22123 elif test "$os_arch" = "Darwin" &&
22124 test -e "$OSX_SDK_JAVA_FRAMEWORK/Headers/jni.h"; then
22125 JNI_INCLUDEDIR="$OSX_SDK_JAVA_FRAMEWORK/Headers"
22130 if test "$JDK_SUITABLE" = "yes"; then
22131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JNI_INCLUDEDIR/jni.h" >&5
22132 $as_echo "$JNI_INCLUDEDIR/jni.h" >&6; }
22134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22135 $as_echo "no" >&6; }
22136 if test "$where" != "check"; then
22137 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no JNI header files found." >&5
22138 $as_echo "$as_me: WARNING: no JNI header files found." >&2;}
22139 if test "$os_arch" = "Darwin"; then
22140 { $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
22141 $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;}
22146 if test "$JDK_SUITABLE" = "yes"; then
22147 JAVA_BIN='$(JDK)/bin'
22149 JAVA="$JAVA_BIN/java"
22150 JAVAC="$JAVA_BIN/javac"
22151 JAVAH="$JAVA_BIN/javah"
22152 JAVADOC="$JAVA_BIN/javadoc"
22153 JAR="$JAVA_BIN/jar"
22155 jikes_options="/usr/local/bin/jikes /usr/bin/jikes"
22157 # Check whether --with-jikes was given.
22158 if test "${with_jikes+set}" = set; then :
22159 withval=$with_jikes;
22160 if test "$withval" != "no" && test "$withval" != "yes"; then
22161 jikes_options="$withval $jikes_options"
22163 requested_jikes="$withval" # will be 'yes' if path unspecified
22167 if test "$requested_jikes" != "no"; then
22168 for jikes in $jikes_options; do
22169 if test -z "$jikes_found" && test -x "$jikes"; then
22172 JAVA_CLASSPATH="$JRE_LIB_DIR"
22173 for jar in $JRE_LIB_DIR/*.jar; do
22174 JAVA_CLASSPATH="$JAVA_CLASSPATH:$jar"
22179 if test -n "$requested_jikes" && test "$requested_jikes" != "no"; then
22180 if test -z "$jikes_found"; then
22181 as_fn_error $? "Could not find a usable version of Jikes" "$LINENO" 5
22182 elif test -n "$jikes_found" && test "$requested_jikes" != "yes" &&
22183 test "$JAVAC" != "$requested_jikes"; then
22184 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-jikes PATH was invalid, substitute found" >&5
22185 $as_echo "$as_me: WARNING: --with-jikes PATH was invalid, substitute found" >&2;}
22189 # The release for "-source" could actually be greater than that
22190 # of "-target", if we want to cross-compile for lesser JVMs.
22191 if test -z "$JAVAC_FLAGS"; then
22192 JAVAC_FLAGS="-target $JAVA_OLDEST_WORKING_VER -source 1.5"
22193 if test "$enable_debugging" = "yes"; then
22194 JAVAC_FLAGS="-g -Xlint:unchecked $JAVAC_FLAGS"
22198 JNI_INCLUDES="-I$JNI_INCLUDEDIR"
22199 list="`find "$JNI_INCLUDEDIR" -type d -print`"
22200 for dir in $list; do
22201 JNI_INCLUDES="$JNI_INCLUDES -I$dir"
22221 JAVA_OLDEST_WORKING_VER="$JAVA_OLDEST_WORKING_VER"
22232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JDK" >&5
22233 $as_echo_n "checking for JDK... " >&6; }
22234 if test $where = check; then
22235 if test -x "$JAVA_HOME/bin/java"; then
22237 elif test -x "/Library/Java/Home/bin/java"; then
22238 JDK="/Library/Java/Home"
22239 elif test -x "/usr/bin/java"; then
22241 elif test -x "/usr/local/bin/java"; then
22249 if test "$os_arch" = "Darwin"; then
22250 OSX_VER=`/usr/bin/sw_vers | grep ProductVersion | cut -f2 | cut -d"." -f1,2`
22252 if test "$OSX_VER" = "10.4"; then
22256 OSX_SYS_JAVA_FRAMEWORK="/System/Library/Frameworks/JavaVM.framework"
22257 OSX_SDK_JAVA_FRAMEWORK="/Developer/SDKs/MacOSX$OSX_VER.sdk/System/Library"
22258 OSX_SDK_JAVA_FRAMEWORK="$OSX_SDK_JAVA_FRAMEWORK/Frameworks/JavaVM.framework"
22261 if test "$os_arch" = "Darwin" && test "$JDK" = "/usr" &&
22262 test -d "/Library/Java/Home"; then
22263 JDK="/Library/Java/Home"
22266 if test "$os_arch" = "Darwin" && test "$JDK" = "/Library/Java/Home"; then
22267 JRE_LIB_DIR="$OSX_SYS_JAVA_FRAMEWORK/Classes"
22269 JRE_LIB_DIR="$JDK/jre/lib"
22272 if test -f "$JDK/include/jni.h"; then
22273 JNI_INCLUDEDIR="$JDK/include"
22275 elif test "$os_arch" = "Darwin" && test -e "$JDK/Headers/jni.h"; then
22276 JNI_INCLUDEDIR="$JDK/Headers"
22278 elif test "$os_arch" = "Darwin" &&
22279 test -e "$OSX_SYS_JAVA_FRAMEWORK/Headers/jni.h"; then
22280 JNI_INCLUDEDIR="$OSX_SYS_JAVA_FRAMEWORK/Headers"
22282 elif test "$os_arch" = "Darwin" &&
22283 test -e "$OSX_SDK_JAVA_FRAMEWORK/Headers/jni.h"; then
22284 JNI_INCLUDEDIR="$OSX_SDK_JAVA_FRAMEWORK/Headers"
22289 if test "$JDK_SUITABLE" = "yes"; then
22290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JNI_INCLUDEDIR/jni.h" >&5
22291 $as_echo "$JNI_INCLUDEDIR/jni.h" >&6; }
22293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22294 $as_echo "no" >&6; }
22295 if test "$where" != "check"; then
22296 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no JNI header files found." >&5
22297 $as_echo "$as_me: WARNING: no JNI header files found." >&2;}
22298 if test "$os_arch" = "Darwin"; then
22299 { $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
22300 $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;}
22305 if test "$JDK_SUITABLE" = "yes"; then
22306 JAVA_BIN='$(JDK)/bin'
22308 JAVA="$JAVA_BIN/java"
22309 JAVAC="$JAVA_BIN/javac"
22310 JAVAH="$JAVA_BIN/javah"
22311 JAVADOC="$JAVA_BIN/javadoc"
22312 JAR="$JAVA_BIN/jar"
22314 jikes_options="/usr/local/bin/jikes /usr/bin/jikes"
22316 # Check whether --with-jikes was given.
22317 if test "${with_jikes+set}" = set; then :
22318 withval=$with_jikes;
22319 if test "$withval" != "no" && test "$withval" != "yes"; then
22320 jikes_options="$withval $jikes_options"
22322 requested_jikes="$withval" # will be 'yes' if path unspecified
22326 if test "$requested_jikes" != "no"; then
22327 for jikes in $jikes_options; do
22328 if test -z "$jikes_found" && test -x "$jikes"; then
22331 JAVA_CLASSPATH="$JRE_LIB_DIR"
22332 for jar in $JRE_LIB_DIR/*.jar; do
22333 JAVA_CLASSPATH="$JAVA_CLASSPATH:$jar"
22338 if test -n "$requested_jikes" && test "$requested_jikes" != "no"; then
22339 if test -z "$jikes_found"; then
22340 as_fn_error $? "Could not find a usable version of Jikes" "$LINENO" 5
22341 elif test -n "$jikes_found" && test "$requested_jikes" != "yes" &&
22342 test "$JAVAC" != "$requested_jikes"; then
22343 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-jikes PATH was invalid, substitute found" >&5
22344 $as_echo "$as_me: WARNING: --with-jikes PATH was invalid, substitute found" >&2;}
22348 # The release for "-source" could actually be greater than that
22349 # of "-target", if we want to cross-compile for lesser JVMs.
22350 if test -z "$JAVAC_FLAGS"; then
22351 JAVAC_FLAGS="-target $JAVA_OLDEST_WORKING_VER -source 1.5"
22352 if test "$enable_debugging" = "yes"; then
22353 JAVAC_FLAGS="-g -Xlint:unchecked $JAVAC_FLAGS"
22357 JNI_INCLUDES="-I$JNI_INCLUDEDIR"
22358 list="`find "$JNI_INCLUDEDIR" -type d -print`"
22359 for dir in $list; do
22360 JNI_INCLUDES="$JNI_INCLUDES -I$dir"
22378 # Extract the first word of "perl", so it can be a program name with args.
22379 set dummy perl; ac_word=$2
22380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22381 $as_echo_n "checking for $ac_word... " >&6; }
22382 if ${ac_cv_path_PERL+:} false; then :
22383 $as_echo_n "(cached) " >&6
22387 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
22390 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22391 for as_dir in $PATH
22394 test -z "$as_dir" && as_dir=.
22395 for ac_exec_ext in '' $ac_executable_extensions; do
22396 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22397 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
22398 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22405 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
22409 PERL=$ac_cv_path_PERL
22410 if test -n "$PERL"; then
22411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
22412 $as_echo "$PERL" >&6; }
22414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22415 $as_echo "no" >&6; }
22420 if test -n "$RUBY"; then
22421 # Extract the first word of ""$RUBY"", so it can be a program name with args.
22422 set dummy "$RUBY"; ac_word=$2
22423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22424 $as_echo_n "checking for $ac_word... " >&6; }
22425 if ${ac_cv_path_RUBY+:} false; then :
22426 $as_echo_n "(cached) " >&6
22430 ac_cv_path_RUBY="$RUBY" # Let the user override the test with a path.
22433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22434 for as_dir in $PATH
22437 test -z "$as_dir" && as_dir=.
22438 for ac_exec_ext in '' $ac_executable_extensions; do
22439 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22440 ac_cv_path_RUBY="$as_dir/$ac_word$ac_exec_ext"
22441 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22448 test -z "$ac_cv_path_RUBY" && ac_cv_path_RUBY="none"
22452 RUBY=$ac_cv_path_RUBY
22453 if test -n "$RUBY"; then
22454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUBY" >&5
22455 $as_echo "$RUBY" >&6; }
22457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22458 $as_echo "no" >&6; }
22463 for ac_prog in ruby ruby1.8 ruby18 ruby1.9 ruby1 ruby1.9.3 ruby193
22465 # Extract the first word of "$ac_prog", so it can be a program name with args.
22466 set dummy $ac_prog; ac_word=$2
22467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22468 $as_echo_n "checking for $ac_word... " >&6; }
22469 if ${ac_cv_path_RUBY+:} false; then :
22470 $as_echo_n "(cached) " >&6
22474 ac_cv_path_RUBY="$RUBY" # Let the user override the test with a path.
22477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22478 for as_dir in $PATH
22481 test -z "$as_dir" && as_dir=.
22482 for ac_exec_ext in '' $ac_executable_extensions; do
22483 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22484 ac_cv_path_RUBY="$as_dir/$ac_word$ac_exec_ext"
22485 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22495 RUBY=$ac_cv_path_RUBY
22496 if test -n "$RUBY"; then
22497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUBY" >&5
22498 $as_echo "$RUBY" >&6; }
22500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22501 $as_echo "no" >&6; }
22505 test -n "$RUBY" && break
22507 test -n "$RUBY" || RUBY="none"
22510 if test "$RUBY" != "none"; then
22511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking rb_hash_foreach" >&5
22512 $as_echo_n "checking rb_hash_foreach... " >&6; }
22513 if "$RUBY" -r mkmf -e 'exit(have_func("rb_hash_foreach") ? 0 : 1)' >/dev/null; then
22514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22515 $as_echo "yes" >&6; }
22516 if test -n "$RDOC"; then
22517 # Extract the first word of ""$RDOC"", so it can be a program name with args.
22518 set dummy "$RDOC"; ac_word=$2
22519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22520 $as_echo_n "checking for $ac_word... " >&6; }
22521 if ${ac_cv_path_RDOC+:} false; then :
22522 $as_echo_n "(cached) " >&6
22526 ac_cv_path_RDOC="$RDOC" # Let the user override the test with a path.
22529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22530 for as_dir in $PATH
22533 test -z "$as_dir" && as_dir=.
22534 for ac_exec_ext in '' $ac_executable_extensions; do
22535 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22536 ac_cv_path_RDOC="$as_dir/$ac_word$ac_exec_ext"
22537 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22544 test -z "$ac_cv_path_RDOC" && ac_cv_path_RDOC="none"
22548 RDOC=$ac_cv_path_RDOC
22549 if test -n "$RDOC"; then
22550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RDOC" >&5
22551 $as_echo "$RDOC" >&6; }
22553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22554 $as_echo "no" >&6; }
22559 for ac_prog in rdoc rdoc1.8 rdoc18 rdoc1.9 rdoc19 rdoc1.9.3 rdoc193
22561 # Extract the first word of "$ac_prog", so it can be a program name with args.
22562 set dummy $ac_prog; ac_word=$2
22563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22564 $as_echo_n "checking for $ac_word... " >&6; }
22565 if ${ac_cv_path_RDOC+:} false; then :
22566 $as_echo_n "(cached) " >&6
22570 ac_cv_path_RDOC="$RDOC" # Let the user override the test with a path.
22573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22574 for as_dir in $PATH
22577 test -z "$as_dir" && as_dir=.
22578 for ac_exec_ext in '' $ac_executable_extensions; do
22579 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22580 ac_cv_path_RDOC="$as_dir/$ac_word$ac_exec_ext"
22581 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22591 RDOC=$ac_cv_path_RDOC
22592 if test -n "$RDOC"; then
22593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RDOC" >&5
22594 $as_echo "$RDOC" >&6; }
22596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22597 $as_echo "no" >&6; }
22601 test -n "$RDOC" && break
22603 test -n "$RDOC" || RDOC="none"
22606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ruby major version" >&5
22607 $as_echo_n "checking for Ruby major version... " >&6; }
22608 if ${svn_cv_ruby_major+:} false; then :
22609 $as_echo_n "(cached) " >&6
22612 svn_cv_ruby_major="`$RUBY -rrbconfig -e 'print RbConfig::CONFIG.fetch(%q(MAJOR))'`"
22615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $svn_cv_ruby_major" >&5
22616 $as_echo "$svn_cv_ruby_major" >&6; }
22617 RUBY_MAJOR="$svn_cv_ruby_major"
22619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ruby minor version" >&5
22620 $as_echo_n "checking for Ruby minor version... " >&6; }
22621 if ${svn_cv_ruby_minor+:} false; then :
22622 $as_echo_n "(cached) " >&6
22625 svn_cv_ruby_minor="`$RUBY -rrbconfig -e 'print RbConfig::CONFIG.fetch(%q(MINOR))'`"
22628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $svn_cv_ruby_minor" >&5
22629 $as_echo "$svn_cv_ruby_minor" >&6; }
22630 RUBY_MINOR="$svn_cv_ruby_minor"
22632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ruby teeny version" >&5
22633 $as_echo_n "checking for Ruby teeny version... " >&6; }
22634 if ${svn_cv_ruby_teeny+:} false; then :
22635 $as_echo_n "(cached) " >&6
22638 svn_cv_ruby_teeny="`$RUBY -rrbconfig -e 'major, minor, teeny = RUBY_VERSION.split("."); print teeny;'`"
22641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $svn_cv_ruby_teeny" >&5
22642 $as_echo "$svn_cv_ruby_teeny" >&6; }
22643 RUBY_TEENY="$svn_cv_ruby_teeny"
22648 if test \( "$RUBY_MAJOR" -eq "1" -a "$RUBY_MINOR" -gt "8" -a "$RUBY_TEENY" -lt "3" \); then
22649 # Disallow Ruby between 1.8.7 and 1.9.3
22651 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The detected Ruby is between 1.9 and 1.9.3" >&5
22652 $as_echo "$as_me: WARNING: The detected Ruby is between 1.9 and 1.9.3" >&2;}
22653 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Only 1.8.x and 1.9.3 releases are supported at this time" >&5
22654 $as_echo "$as_me: WARNING: Only 1.8.x and 1.9.3 releases are supported at this time" >&2;}
22655 elif test \( "$RUBY_MAJOR" -eq "1" -a "$RUBY_MINOR" -eq "9" -a "$RUBY_TEENY" -eq "3" \); then
22656 #Warn about 1.9.3 support
22657 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: WARNING: The detected Ruby is 1.9.3" >&5
22658 $as_echo "$as_me: WARNING: WARNING: The detected Ruby is 1.9.3" >&2;}
22659 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: WARNING: Only 1.8.x releases are fully supported, 1.9.3 support is new" >&5
22660 $as_echo "$as_me: WARNING: WARNING: Only 1.8.x releases are fully supported, 1.9.3 support is new" >&2;}
22663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22664 $as_echo "no" >&6; }
22666 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The detected Ruby is too old for Subversion to use" >&5
22667 $as_echo "$as_me: WARNING: The detected Ruby is too old for Subversion to use" >&2;}
22668 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: A Ruby which has rb_hash_foreach is required to use the" >&5
22669 $as_echo "$as_me: WARNING: A Ruby which has rb_hash_foreach is required to use the" >&2;}
22670 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Subversion Ruby bindings" >&5
22671 $as_echo "$as_me: WARNING: Subversion Ruby bindings" >&2;}
22672 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Upgrade to the official 1.8.2 release, or later" >&5
22673 $as_echo "$as_me: WARNING: Upgrade to the official 1.8.2 release, or later" >&2;}
22679 # Check whether --with-swig was given.
22680 if test "${with_swig+set}" = set; then :
22681 withval=$with_swig;
22688 if test $where = no; then
22690 elif test $where = check; then
22691 # Extract the first word of "swig", so it can be a program name with args.
22692 set dummy swig; ac_word=$2
22693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22694 $as_echo_n "checking for $ac_word... " >&6; }
22695 if ${ac_cv_path_SWIG+:} false; then :
22696 $as_echo_n "(cached) " >&6
22700 ac_cv_path_SWIG="$SWIG" # Let the user override the test with a path.
22703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22704 for as_dir in $PATH
22707 test -z "$as_dir" && as_dir=.
22708 for ac_exec_ext in '' $ac_executable_extensions; do
22709 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22710 ac_cv_path_SWIG="$as_dir/$ac_word$ac_exec_ext"
22711 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22718 test -z "$ac_cv_path_SWIG" && ac_cv_path_SWIG="none"
22722 SWIG=$ac_cv_path_SWIG
22723 if test -n "$SWIG"; then
22724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG" >&5
22725 $as_echo "$SWIG" >&6; }
22727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22728 $as_echo "no" >&6; }
22733 if test -f "$where"; then
22736 SWIG="$where/bin/swig"
22738 if test ! -f "$SWIG" || test ! -x "$SWIG"; then
22739 as_fn_error $? "Could not find swig binary at $SWIG" "$LINENO" 5
22743 if test "$SWIG" != "none"; then
22744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking swig version" >&5
22745 $as_echo_n "checking swig version... " >&6; }
22746 SWIG_VERSION_RAW="`$SWIG -version 2>&1 | \
22747 $SED -ne 's/^.*Version \(.*\)$/\1/p'`"
22748 # We want the version as an integer so we can test against
22749 # which version we're using. SWIG doesn't provide this
22750 # to us so we have to come up with it on our own.
22751 # The major is passed straight through,
22752 # the minor is zero padded to two places,
22753 # and the patch level is zero padded to three places.
22754 # e.g. 1.3.24 becomes 103024
22755 SWIG_VERSION="`echo \"$SWIG_VERSION_RAW\" | \
22756 $SED -e 's/[^0-9\.].*$//' \
22757 -e 's/\.\([0-9]\)$/.0\1/' \
22758 -e 's/\.\([0-9][0-9]\)$/.0\1/' \
22759 -e 's/\.\([0-9]\)\./0\1/; s/\.//g;'`"
22760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG_VERSION_RAW" >&5
22761 $as_echo "$SWIG_VERSION_RAW" >&6; }
22762 # If you change the required swig version number, don't forget to update:
22763 # subversion/bindings/swig/INSTALL
22764 # packages/rpm/redhat-8+/subversion.spec
22765 # packages/rpm/redhat-7.x/subversion.spec
22766 # packages/rpm/rhel-3/subversion.spec
22767 # packages/rpm/rhel-4/subversion.spec
22768 if test -n "$SWIG_VERSION" && test "$SWIG_VERSION" -ge "103024"; then
22772 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Detected SWIG version $SWIG_VERSION_RAW" >&5
22773 $as_echo "$as_me: WARNING: Detected SWIG version $SWIG_VERSION_RAW" >&2;}
22774 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Subversion requires SWIG 1.3.24 or later" >&5
22775 $as_echo "$as_me: WARNING: Subversion requires SWIG 1.3.24 or later" >&2;}
22779 SWIG_PY_COMPILE="none"
22780 SWIG_PY_LINK="none"
22781 if test "$PYTHON" != "none"; then
22782 { $as_echo "$as_me:${as_lineno-$LINENO}: Configuring python swig binding" >&5
22783 $as_echo "$as_me: Configuring python swig binding" >&6;}
22785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python includes" >&5
22786 $as_echo_n "checking for Python includes... " >&6; }
22787 if ${ac_cv_python_includes+:} false; then :
22788 $as_echo_n "(cached) " >&6
22791 ac_cv_python_includes="`$PYTHON ${abs_srcdir}/build/get-py-info.py --includes`"
22794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_python_includes" >&5
22795 $as_echo "$ac_cv_python_includes" >&6; }
22796 SWIG_PY_INCLUDES="\$(SWIG_INCLUDES) $ac_cv_python_includes"
22798 if test "$ac_cv_python_includes" = "none"; then
22799 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: python bindings cannot be built without distutils module" >&5
22800 $as_echo "$as_me: WARNING: python bindings cannot be built without distutils module" >&2;}
22803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiling Python extensions" >&5
22804 $as_echo_n "checking for compiling Python extensions... " >&6; }
22805 if ${ac_cv_python_compile+:} false; then :
22806 $as_echo_n "(cached) " >&6
22809 ac_cv_python_compile="`$PYTHON ${abs_srcdir}/build/get-py-info.py --compile`"
22812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_python_compile" >&5
22813 $as_echo "$ac_cv_python_compile" >&6; }
22814 SWIG_PY_COMPILE="$ac_cv_python_compile $CFLAGS"
22816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linking Python extensions" >&5
22817 $as_echo_n "checking for linking Python extensions... " >&6; }
22818 if ${ac_cv_python_link+:} false; then :
22819 $as_echo_n "(cached) " >&6
22822 ac_cv_python_link="`$PYTHON ${abs_srcdir}/build/get-py-info.py --link`"
22825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_python_link" >&5
22826 $as_echo "$ac_cv_python_link" >&6; }
22827 SWIG_PY_LINK="$ac_cv_python_link"
22829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linking Python libraries" >&5
22830 $as_echo_n "checking for linking Python libraries... " >&6; }
22831 if ${ac_cv_python_libs+:} false; then :
22832 $as_echo_n "(cached) " >&6
22835 ac_cv_python_libs="`$PYTHON ${abs_srcdir}/build/get-py-info.py --libs`"
22838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_python_libs" >&5
22839 $as_echo "$ac_cv_python_libs" >&6; }
22841 input_flags="$ac_cv_python_libs"
22843 filtered_dirs="/lib /lib64 /usr/lib /usr/lib64"
22844 for flag in $input_flags; do
22846 for dir in $filtered_dirs; do
22847 if test "$flag" = "-L$dir" || test "$flag" = "-L$dir/"; then
22852 if test "$filter" = "no"; then
22853 output_flags="$output_flags $flag"
22856 if test -n "$output_flags"; then
22857 printf "%s" "${output_flags# }"
22861 SVN_PYCFMT_SAVE_CPPFLAGS="$CPPFLAGS"
22862 CPPFLAGS="$CPPFLAGS $SVN_APR_INCLUDES"
22863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for apr_int64_t Python/C API format string" >&5
22864 $as_echo_n "checking for apr_int64_t Python/C API format string... " >&6; }
22865 if ${svn_cv_pycfmt_apr_int64_t+:} false; then :
22866 $as_echo_n "(cached) " >&6
22869 if test "x$svn_cv_pycfmt_apr_int64_t" = "x"; then
22870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22871 /* end confdefs.h. */
22873 MaTcHtHiS APR_INT64_T_FMT EnDeNd
22875 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22876 $EGREP "MaTcHtHiS +\"lld\" +EnDeNd" >/dev/null 2>&1; then :
22877 svn_cv_pycfmt_apr_int64_t="L"
22882 if test "x$svn_cv_pycfmt_apr_int64_t" = "x"; then
22883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22884 /* end confdefs.h. */
22887 MaTcHtHiS APR_INT64_T_FMT EnDeNd
22889 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22890 $EGREP "MaTcHtHiS +\"ld\" +EnDeNd" >/dev/null 2>&1; then :
22891 svn_cv_pycfmt_apr_int64_t="l"
22896 if test "x$svn_cv_pycfmt_apr_int64_t" = "x"; then
22897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22898 /* end confdefs.h. */
22900 MaTcHtHiS APR_INT64_T_FMT EnDeNd
22902 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22903 $EGREP "MaTcHtHiS +\"d\" +EnDeNd" >/dev/null 2>&1; then :
22904 svn_cv_pycfmt_apr_int64_t="i"
22911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $svn_cv_pycfmt_apr_int64_t" >&5
22912 $as_echo "$svn_cv_pycfmt_apr_int64_t" >&6; }
22913 CPPFLAGS="$SVN_PYCFMT_SAVE_CPPFLAGS"
22914 if test "x$svn_cv_pycfmt_apr_int64_t" = "x"; then
22915 as_fn_error $? "failed to recognize APR_INT64_T_FMT on this platform" "$LINENO" 5
22918 cat >>confdefs.h <<_ACEOF
22919 #define SVN_APR_INT64_T_PYCFMT "$svn_cv_pycfmt_apr_int64_t"
22924 if test "$PERL" != "none"; then
22925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking perl version" >&5
22926 $as_echo_n "checking perl version... " >&6; }
22927 PERL_VERSION="`$PERL -e 'q([); print $] * 1000000,$/;'`"
22928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL_VERSION" >&5
22929 $as_echo "$PERL_VERSION" >&6; }
22930 if test "$PERL_VERSION" -ge "5008000"; then
22931 SWIG_PL_INCLUDES="\$(SWIG_INCLUDES) `$PERL -MExtUtils::Embed -e ccopts`"
22933 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: perl bindings require perl 5.8.0 or newer." >&5
22934 $as_echo "$as_me: WARNING: perl bindings require perl 5.8.0 or newer." >&2;}
22938 SWIG_RB_COMPILE="none"
22939 SWIG_RB_LINK="none"
22940 if test "$RUBY" != "none"; then
22941 rbconfig="$RUBY -rrbconfig -e "
22943 for var_name in arch archdir CC LDSHARED DLEXT LIBS LIBRUBYARG \
22944 rubyhdrdir sitedir sitelibdir sitearchdir libdir
22946 rbconfig_tmp=`$rbconfig "print RbConfig::CONFIG['$var_name']"`
22947 eval "rbconfig_$var_name=\"$rbconfig_tmp\""
22950 { $as_echo "$as_me:${as_lineno-$LINENO}: Configuring Ruby SWIG binding" >&5
22951 $as_echo "$as_me: Configuring Ruby SWIG binding" >&6;}
22953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ruby include path" >&5
22954 $as_echo_n "checking for Ruby include path... " >&6; }
22955 if ${svn_cv_ruby_includes+:} false; then :
22956 $as_echo_n "(cached) " >&6
22959 if test -d "$rbconfig_rubyhdrdir"; then
22960 svn_cv_ruby_includes="-I. -I$rbconfig_rubyhdrdir -I$rbconfig_rubyhdrdir/ruby -I$rbconfig_rubyhdrdir/ruby/backward -I$rbconfig_rubyhdrdir/$rbconfig_arch"
22962 svn_cv_ruby_includes="-I. -I$rbconfig_archdir"
22966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $svn_cv_ruby_includes" >&5
22967 $as_echo "$svn_cv_ruby_includes" >&6; }
22968 SWIG_RB_INCLUDES="\$(SWIG_INCLUDES) $svn_cv_ruby_includes"
22970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compile Ruby extensions" >&5
22971 $as_echo_n "checking how to compile Ruby extensions... " >&6; }
22972 if ${svn_cv_ruby_compile+:} false; then :
22973 $as_echo_n "(cached) " >&6
22976 svn_cv_ruby_compile="$rbconfig_CC $CFLAGS"
22979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $svn_cv_ruby_compile" >&5
22980 $as_echo "$svn_cv_ruby_compile" >&6; }
22981 SWIG_RB_COMPILE="$svn_cv_ruby_compile"
22983 SWIG_RB_COMPILE=`echo "$SWIG_RB_COMPILE" | $SED -e 's/-ansi//'`
22986 SWIG_RB_COMPILE=`echo "$SWIG_RB_COMPILE" | $SED -e 's/-std=c89//'`
22989 SWIG_RB_COMPILE=`echo "$SWIG_RB_COMPILE" | $SED -e 's/-std=c90//'`
22991 SWIG_RB_COMPILE="$SWIG_RB_COMPILE -Wno-int-to-pointer-cast"
22993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link Ruby extensions" >&5
22994 $as_echo_n "checking how to link Ruby extensions... " >&6; }
22995 if ${svn_cv_ruby_link+:} false; then :
22996 $as_echo_n "(cached) " >&6
22999 svn_cv_ruby_link="`$RUBY -e 'ARGV.shift; print ARGV.join(%q( ))' \
23000 $rbconfig_LDSHARED`"
23001 svn_cv_ruby_link="$rbconfig_CC $svn_cv_ruby_link"
23002 svn_cv_ruby_link="$svn_cv_ruby_link -shrext .$rbconfig_DLEXT"
23005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $svn_cv_ruby_link" >&5
23006 $as_echo "$svn_cv_ruby_link" >&6; }
23007 SWIG_RB_LINK="$svn_cv_ruby_link"
23009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link Ruby libraries" >&5
23010 $as_echo_n "checking how to link Ruby libraries... " >&6; }
23011 if ${ac_cv_ruby_libs+:} false; then :
23012 $as_echo_n "(cached) " >&6
23015 ac_cv_ruby_libs="$rbconfig_LIBRUBYARG $rbconfig_LIBS"
23018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_ruby_libs" >&5
23019 $as_echo "$ac_cv_ruby_libs" >&6; }
23021 input_flags="$ac_cv_ruby_libs"
23023 filtered_dirs="/lib /lib64 /usr/lib /usr/lib64"
23024 for flag in $input_flags; do
23026 for dir in $filtered_dirs; do
23027 if test "$flag" = "-L$dir" || test "$flag" = "-L$dir/"; then
23032 if test "$filter" = "no"; then
23033 output_flags="$output_flags $flag"
23036 if test -n "$output_flags"; then
23037 printf "%s" "${output_flags# }"
23041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rb_errinfo" >&5
23042 $as_echo_n "checking for rb_errinfo... " >&6; }
23043 old_CFLAGS="$CFLAGS"
23045 CFLAGS="$CFLAGS $svn_cv_ruby_includes"
23047 CFLAGS=`echo "$CFLAGS" | $SED -e 's/-ansi//'`
23050 CFLAGS=`echo "$CFLAGS" | $SED -e 's/-std=c89//'`
23053 CFLAGS=`echo "$CFLAGS" | $SED -e 's/-std=c90//'`
23055 LIBS="$SWIG_RB_LIBS"
23056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23057 /* end confdefs.h. */
23063 if ac_fn_c_try_link "$LINENO"; then :
23064 have_rb_errinfo="yes"
23066 have_rb_errinfo="no"
23068 rm -f core conftest.err conftest.$ac_objext \
23069 conftest$ac_exeext conftest.$ac_ext
23070 if test "$have_rb_errinfo" = "yes"; then
23071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23072 $as_echo "yes" >&6; }
23074 $as_echo "#define HAVE_RB_ERRINFO 1" >>confdefs.h
23077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23078 $as_echo "no" >&6; }
23080 CFLAGS="$old_CFLAGS"
23083 if ${svn_cv_ruby_sitedir+:} false; then :
23084 $as_echo_n "(cached) " >&6
23087 svn_cv_ruby_sitedir="$rbconfig_sitedir"
23092 # Check whether --with-ruby-sitedir was given.
23093 if test "${with_ruby_sitedir+set}" = set; then :
23094 withval=$with_ruby_sitedir; svn_ruby_installdir="$withval"
23096 svn_ruby_installdir="$svn_cv_ruby_sitedir"
23100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to install Ruby scripts" >&5
23101 $as_echo_n "checking where to install Ruby scripts... " >&6; }
23102 if ${svn_cv_ruby_sitedir_libsuffix+:} false; then :
23103 $as_echo_n "(cached) " >&6
23106 svn_cv_ruby_sitedir_libsuffix="`echo "$rbconfig_sitelibdir" | \
23107 $SED -e "s,^$rbconfig_sitedir,,"`"
23111 SWIG_RB_SITE_LIB_DIR="${svn_ruby_installdir}${svn_cv_ruby_sitedir_libsuffix}"
23112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG_RB_SITE_LIB_DIR" >&5
23113 $as_echo "$SWIG_RB_SITE_LIB_DIR" >&6; }
23115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to install Ruby extensions" >&5
23116 $as_echo_n "checking where to install Ruby extensions... " >&6; }
23117 if ${svn_cv_ruby_sitedir_archsuffix+:} false; then :
23118 $as_echo_n "(cached) " >&6
23121 svn_cv_ruby_sitedir_archsuffix="`echo "$rbconfig_sitearchdir" | \
23122 $SED -e "s,^$rbconfig_sitedir,,"`"
23126 SWIG_RB_SITE_ARCH_DIR="${svn_ruby_installdir}${svn_cv_ruby_sitedir_archsuffix}"
23127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG_RB_SITE_ARCH_DIR" >&5
23128 $as_echo "$SWIG_RB_SITE_ARCH_DIR" >&6; }
23130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to use output level for Ruby bindings tests" >&5
23131 $as_echo_n "checking how to use output level for Ruby bindings tests... " >&6; }
23132 if ${svn_cv_ruby_test_verbose+:} false; then :
23133 $as_echo_n "(cached) " >&6
23136 svn_cv_ruby_test_verbose="normal"
23141 # Check whether --with-ruby-test-verbose was given.
23142 if test "${with_ruby_test_verbose+set}" = set; then :
23143 withval=$with_ruby_test_verbose; svn_ruby_test_verbose="$withval"
23145 svn_ruby_test_verbose="$svn_cv_ruby_test_verbose"
23148 SWIG_RB_TEST_VERBOSE="$svn_ruby_test_verbose"
23149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG_RB_TEST_VERBOSE" >&5
23150 $as_echo "$SWIG_RB_TEST_VERBOSE" >&6; }
23171 if test $where = no; then
23173 elif test $where = check; then
23174 # Extract the first word of "swig", so it can be a program name with args.
23175 set dummy swig; ac_word=$2
23176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23177 $as_echo_n "checking for $ac_word... " >&6; }
23178 if ${ac_cv_path_SWIG+:} false; then :
23179 $as_echo_n "(cached) " >&6
23183 ac_cv_path_SWIG="$SWIG" # Let the user override the test with a path.
23186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23187 for as_dir in $PATH
23190 test -z "$as_dir" && as_dir=.
23191 for ac_exec_ext in '' $ac_executable_extensions; do
23192 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23193 ac_cv_path_SWIG="$as_dir/$ac_word$ac_exec_ext"
23194 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23201 test -z "$ac_cv_path_SWIG" && ac_cv_path_SWIG="none"
23205 SWIG=$ac_cv_path_SWIG
23206 if test -n "$SWIG"; then
23207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG" >&5
23208 $as_echo "$SWIG" >&6; }
23210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23211 $as_echo "no" >&6; }
23216 if test -f "$where"; then
23219 SWIG="$where/bin/swig"
23221 if test ! -f "$SWIG" || test ! -x "$SWIG"; then
23222 as_fn_error $? "Could not find swig binary at $SWIG" "$LINENO" 5
23226 if test "$SWIG" != "none"; then
23227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking swig version" >&5
23228 $as_echo_n "checking swig version... " >&6; }
23229 SWIG_VERSION_RAW="`$SWIG -version 2>&1 | \
23230 $SED -ne 's/^.*Version \(.*\)$/\1/p'`"
23231 # We want the version as an integer so we can test against
23232 # which version we're using. SWIG doesn't provide this
23233 # to us so we have to come up with it on our own.
23234 # The major is passed straight through,
23235 # the minor is zero padded to two places,
23236 # and the patch level is zero padded to three places.
23237 # e.g. 1.3.24 becomes 103024
23238 SWIG_VERSION="`echo \"$SWIG_VERSION_RAW\" | \
23239 $SED -e 's/[^0-9\.].*$//' \
23240 -e 's/\.\([0-9]\)$/.0\1/' \
23241 -e 's/\.\([0-9][0-9]\)$/.0\1/' \
23242 -e 's/\.\([0-9]\)\./0\1/; s/\.//g;'`"
23243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG_VERSION_RAW" >&5
23244 $as_echo "$SWIG_VERSION_RAW" >&6; }
23245 # If you change the required swig version number, don't forget to update:
23246 # subversion/bindings/swig/INSTALL
23247 # packages/rpm/redhat-8+/subversion.spec
23248 # packages/rpm/redhat-7.x/subversion.spec
23249 # packages/rpm/rhel-3/subversion.spec
23250 # packages/rpm/rhel-4/subversion.spec
23251 if test -n "$SWIG_VERSION" && test "$SWIG_VERSION" -ge "103024"; then
23255 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Detected SWIG version $SWIG_VERSION_RAW" >&5
23256 $as_echo "$as_me: WARNING: Detected SWIG version $SWIG_VERSION_RAW" >&2;}
23257 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Subversion requires SWIG 1.3.24 or later" >&5
23258 $as_echo "$as_me: WARNING: Subversion requires SWIG 1.3.24 or later" >&2;}
23262 SWIG_PY_COMPILE="none"
23263 SWIG_PY_LINK="none"
23264 if test "$PYTHON" != "none"; then
23265 { $as_echo "$as_me:${as_lineno-$LINENO}: Configuring python swig binding" >&5
23266 $as_echo "$as_me: Configuring python swig binding" >&6;}
23268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python includes" >&5
23269 $as_echo_n "checking for Python includes... " >&6; }
23270 if ${ac_cv_python_includes+:} false; then :
23271 $as_echo_n "(cached) " >&6
23274 ac_cv_python_includes="`$PYTHON ${abs_srcdir}/build/get-py-info.py --includes`"
23277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_python_includes" >&5
23278 $as_echo "$ac_cv_python_includes" >&6; }
23279 SWIG_PY_INCLUDES="\$(SWIG_INCLUDES) $ac_cv_python_includes"
23281 if test "$ac_cv_python_includes" = "none"; then
23282 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: python bindings cannot be built without distutils module" >&5
23283 $as_echo "$as_me: WARNING: python bindings cannot be built without distutils module" >&2;}
23286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiling Python extensions" >&5
23287 $as_echo_n "checking for compiling Python extensions... " >&6; }
23288 if ${ac_cv_python_compile+:} false; then :
23289 $as_echo_n "(cached) " >&6
23292 ac_cv_python_compile="`$PYTHON ${abs_srcdir}/build/get-py-info.py --compile`"
23295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_python_compile" >&5
23296 $as_echo "$ac_cv_python_compile" >&6; }
23297 SWIG_PY_COMPILE="$ac_cv_python_compile $CFLAGS"
23299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linking Python extensions" >&5
23300 $as_echo_n "checking for linking Python extensions... " >&6; }
23301 if ${ac_cv_python_link+:} false; then :
23302 $as_echo_n "(cached) " >&6
23305 ac_cv_python_link="`$PYTHON ${abs_srcdir}/build/get-py-info.py --link`"
23308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_python_link" >&5
23309 $as_echo "$ac_cv_python_link" >&6; }
23310 SWIG_PY_LINK="$ac_cv_python_link"
23312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linking Python libraries" >&5
23313 $as_echo_n "checking for linking Python libraries... " >&6; }
23314 if ${ac_cv_python_libs+:} false; then :
23315 $as_echo_n "(cached) " >&6
23318 ac_cv_python_libs="`$PYTHON ${abs_srcdir}/build/get-py-info.py --libs`"
23321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_python_libs" >&5
23322 $as_echo "$ac_cv_python_libs" >&6; }
23324 input_flags="$ac_cv_python_libs"
23326 filtered_dirs="/lib /lib64 /usr/lib /usr/lib64"
23327 for flag in $input_flags; do
23329 for dir in $filtered_dirs; do
23330 if test "$flag" = "-L$dir" || test "$flag" = "-L$dir/"; then
23335 if test "$filter" = "no"; then
23336 output_flags="$output_flags $flag"
23339 if test -n "$output_flags"; then
23340 printf "%s" "${output_flags# }"
23344 SVN_PYCFMT_SAVE_CPPFLAGS="$CPPFLAGS"
23345 CPPFLAGS="$CPPFLAGS $SVN_APR_INCLUDES"
23346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for apr_int64_t Python/C API format string" >&5
23347 $as_echo_n "checking for apr_int64_t Python/C API format string... " >&6; }
23348 if ${svn_cv_pycfmt_apr_int64_t+:} false; then :
23349 $as_echo_n "(cached) " >&6
23352 if test "x$svn_cv_pycfmt_apr_int64_t" = "x"; then
23353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23354 /* end confdefs.h. */
23356 MaTcHtHiS APR_INT64_T_FMT EnDeNd
23358 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23359 $EGREP "MaTcHtHiS +\"lld\" +EnDeNd" >/dev/null 2>&1; then :
23360 svn_cv_pycfmt_apr_int64_t="L"
23365 if test "x$svn_cv_pycfmt_apr_int64_t" = "x"; then
23366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23367 /* end confdefs.h. */
23370 MaTcHtHiS APR_INT64_T_FMT EnDeNd
23372 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23373 $EGREP "MaTcHtHiS +\"ld\" +EnDeNd" >/dev/null 2>&1; then :
23374 svn_cv_pycfmt_apr_int64_t="l"
23379 if test "x$svn_cv_pycfmt_apr_int64_t" = "x"; then
23380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23381 /* end confdefs.h. */
23383 MaTcHtHiS APR_INT64_T_FMT EnDeNd
23385 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23386 $EGREP "MaTcHtHiS +\"d\" +EnDeNd" >/dev/null 2>&1; then :
23387 svn_cv_pycfmt_apr_int64_t="i"
23394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $svn_cv_pycfmt_apr_int64_t" >&5
23395 $as_echo "$svn_cv_pycfmt_apr_int64_t" >&6; }
23396 CPPFLAGS="$SVN_PYCFMT_SAVE_CPPFLAGS"
23397 if test "x$svn_cv_pycfmt_apr_int64_t" = "x"; then
23398 as_fn_error $? "failed to recognize APR_INT64_T_FMT on this platform" "$LINENO" 5
23401 cat >>confdefs.h <<_ACEOF
23402 #define SVN_APR_INT64_T_PYCFMT "$svn_cv_pycfmt_apr_int64_t"
23407 if test "$PERL" != "none"; then
23408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking perl version" >&5
23409 $as_echo_n "checking perl version... " >&6; }
23410 PERL_VERSION="`$PERL -e 'q([); print $] * 1000000,$/;'`"
23411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL_VERSION" >&5
23412 $as_echo "$PERL_VERSION" >&6; }
23413 if test "$PERL_VERSION" -ge "5008000"; then
23414 SWIG_PL_INCLUDES="\$(SWIG_INCLUDES) `$PERL -MExtUtils::Embed -e ccopts`"
23416 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: perl bindings require perl 5.8.0 or newer." >&5
23417 $as_echo "$as_me: WARNING: perl bindings require perl 5.8.0 or newer." >&2;}
23421 SWIG_RB_COMPILE="none"
23422 SWIG_RB_LINK="none"
23423 if test "$RUBY" != "none"; then
23424 rbconfig="$RUBY -rrbconfig -e "
23426 for var_name in arch archdir CC LDSHARED DLEXT LIBS LIBRUBYARG \
23427 rubyhdrdir sitedir sitelibdir sitearchdir libdir
23429 rbconfig_tmp=`$rbconfig "print RbConfig::CONFIG['$var_name']"`
23430 eval "rbconfig_$var_name=\"$rbconfig_tmp\""
23433 { $as_echo "$as_me:${as_lineno-$LINENO}: Configuring Ruby SWIG binding" >&5
23434 $as_echo "$as_me: Configuring Ruby SWIG binding" >&6;}
23436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ruby include path" >&5
23437 $as_echo_n "checking for Ruby include path... " >&6; }
23438 if ${svn_cv_ruby_includes+:} false; then :
23439 $as_echo_n "(cached) " >&6
23442 if test -d "$rbconfig_rubyhdrdir"; then
23443 svn_cv_ruby_includes="-I. -I$rbconfig_rubyhdrdir -I$rbconfig_rubyhdrdir/ruby -I$rbconfig_rubyhdrdir/ruby/backward -I$rbconfig_rubyhdrdir/$rbconfig_arch"
23445 svn_cv_ruby_includes="-I. -I$rbconfig_archdir"
23449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $svn_cv_ruby_includes" >&5
23450 $as_echo "$svn_cv_ruby_includes" >&6; }
23451 SWIG_RB_INCLUDES="\$(SWIG_INCLUDES) $svn_cv_ruby_includes"
23453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compile Ruby extensions" >&5
23454 $as_echo_n "checking how to compile Ruby extensions... " >&6; }
23455 if ${svn_cv_ruby_compile+:} false; then :
23456 $as_echo_n "(cached) " >&6
23459 svn_cv_ruby_compile="$rbconfig_CC $CFLAGS"
23462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $svn_cv_ruby_compile" >&5
23463 $as_echo "$svn_cv_ruby_compile" >&6; }
23464 SWIG_RB_COMPILE="$svn_cv_ruby_compile"
23466 SWIG_RB_COMPILE=`echo "$SWIG_RB_COMPILE" | $SED -e 's/-ansi//'`
23469 SWIG_RB_COMPILE=`echo "$SWIG_RB_COMPILE" | $SED -e 's/-std=c89//'`
23472 SWIG_RB_COMPILE=`echo "$SWIG_RB_COMPILE" | $SED -e 's/-std=c90//'`
23474 SWIG_RB_COMPILE="$SWIG_RB_COMPILE -Wno-int-to-pointer-cast"
23476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link Ruby extensions" >&5
23477 $as_echo_n "checking how to link Ruby extensions... " >&6; }
23478 if ${svn_cv_ruby_link+:} false; then :
23479 $as_echo_n "(cached) " >&6
23482 svn_cv_ruby_link="`$RUBY -e 'ARGV.shift; print ARGV.join(%q( ))' \
23483 $rbconfig_LDSHARED`"
23484 svn_cv_ruby_link="$rbconfig_CC $svn_cv_ruby_link"
23485 svn_cv_ruby_link="$svn_cv_ruby_link -shrext .$rbconfig_DLEXT"
23488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $svn_cv_ruby_link" >&5
23489 $as_echo "$svn_cv_ruby_link" >&6; }
23490 SWIG_RB_LINK="$svn_cv_ruby_link"
23492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link Ruby libraries" >&5
23493 $as_echo_n "checking how to link Ruby libraries... " >&6; }
23494 if ${ac_cv_ruby_libs+:} false; then :
23495 $as_echo_n "(cached) " >&6
23498 ac_cv_ruby_libs="$rbconfig_LIBRUBYARG $rbconfig_LIBS"
23501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_ruby_libs" >&5
23502 $as_echo "$ac_cv_ruby_libs" >&6; }
23504 input_flags="$ac_cv_ruby_libs"
23506 filtered_dirs="/lib /lib64 /usr/lib /usr/lib64"
23507 for flag in $input_flags; do
23509 for dir in $filtered_dirs; do
23510 if test "$flag" = "-L$dir" || test "$flag" = "-L$dir/"; then
23515 if test "$filter" = "no"; then
23516 output_flags="$output_flags $flag"
23519 if test -n "$output_flags"; then
23520 printf "%s" "${output_flags# }"
23524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rb_errinfo" >&5
23525 $as_echo_n "checking for rb_errinfo... " >&6; }
23526 old_CFLAGS="$CFLAGS"
23528 CFLAGS="$CFLAGS $svn_cv_ruby_includes"
23530 CFLAGS=`echo "$CFLAGS" | $SED -e 's/-ansi//'`
23533 CFLAGS=`echo "$CFLAGS" | $SED -e 's/-std=c89//'`
23536 CFLAGS=`echo "$CFLAGS" | $SED -e 's/-std=c90//'`
23538 LIBS="$SWIG_RB_LIBS"
23539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23540 /* end confdefs.h. */
23546 if ac_fn_c_try_link "$LINENO"; then :
23547 have_rb_errinfo="yes"
23549 have_rb_errinfo="no"
23551 rm -f core conftest.err conftest.$ac_objext \
23552 conftest$ac_exeext conftest.$ac_ext
23553 if test "$have_rb_errinfo" = "yes"; then
23554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23555 $as_echo "yes" >&6; }
23557 $as_echo "#define HAVE_RB_ERRINFO 1" >>confdefs.h
23560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23561 $as_echo "no" >&6; }
23563 CFLAGS="$old_CFLAGS"
23566 if ${svn_cv_ruby_sitedir+:} false; then :
23567 $as_echo_n "(cached) " >&6
23570 svn_cv_ruby_sitedir="$rbconfig_sitedir"
23575 # Check whether --with-ruby-sitedir was given.
23576 if test "${with_ruby_sitedir+set}" = set; then :
23577 withval=$with_ruby_sitedir; svn_ruby_installdir="$withval"
23579 svn_ruby_installdir="$svn_cv_ruby_sitedir"
23583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to install Ruby scripts" >&5
23584 $as_echo_n "checking where to install Ruby scripts... " >&6; }
23585 if ${svn_cv_ruby_sitedir_libsuffix+:} false; then :
23586 $as_echo_n "(cached) " >&6
23589 svn_cv_ruby_sitedir_libsuffix="`echo "$rbconfig_sitelibdir" | \
23590 $SED -e "s,^$rbconfig_sitedir,,"`"
23594 SWIG_RB_SITE_LIB_DIR="${svn_ruby_installdir}${svn_cv_ruby_sitedir_libsuffix}"
23595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG_RB_SITE_LIB_DIR" >&5
23596 $as_echo "$SWIG_RB_SITE_LIB_DIR" >&6; }
23598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to install Ruby extensions" >&5
23599 $as_echo_n "checking where to install Ruby extensions... " >&6; }
23600 if ${svn_cv_ruby_sitedir_archsuffix+:} false; then :
23601 $as_echo_n "(cached) " >&6
23604 svn_cv_ruby_sitedir_archsuffix="`echo "$rbconfig_sitearchdir" | \
23605 $SED -e "s,^$rbconfig_sitedir,,"`"
23609 SWIG_RB_SITE_ARCH_DIR="${svn_ruby_installdir}${svn_cv_ruby_sitedir_archsuffix}"
23610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG_RB_SITE_ARCH_DIR" >&5
23611 $as_echo "$SWIG_RB_SITE_ARCH_DIR" >&6; }
23613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to use output level for Ruby bindings tests" >&5
23614 $as_echo_n "checking how to use output level for Ruby bindings tests... " >&6; }
23615 if ${svn_cv_ruby_test_verbose+:} false; then :
23616 $as_echo_n "(cached) " >&6
23619 svn_cv_ruby_test_verbose="normal"
23624 # Check whether --with-ruby-test-verbose was given.
23625 if test "${with_ruby_test_verbose+set}" = set; then :
23626 withval=$with_ruby_test_verbose; svn_ruby_test_verbose="$withval"
23628 svn_ruby_test_verbose="$svn_cv_ruby_test_verbose"
23631 SWIG_RB_TEST_VERBOSE="$svn_ruby_test_verbose"
23632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG_RB_TEST_VERBOSE" >&5
23633 $as_echo "$SWIG_RB_TEST_VERBOSE" >&6; }
23654 if test $where = no; then
23656 elif test $where = check; then
23657 # Extract the first word of "swig", so it can be a program name with args.
23658 set dummy swig; ac_word=$2
23659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23660 $as_echo_n "checking for $ac_word... " >&6; }
23661 if ${ac_cv_path_SWIG+:} false; then :
23662 $as_echo_n "(cached) " >&6
23666 ac_cv_path_SWIG="$SWIG" # Let the user override the test with a path.
23669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23670 for as_dir in $PATH
23673 test -z "$as_dir" && as_dir=.
23674 for ac_exec_ext in '' $ac_executable_extensions; do
23675 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23676 ac_cv_path_SWIG="$as_dir/$ac_word$ac_exec_ext"
23677 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23684 test -z "$ac_cv_path_SWIG" && ac_cv_path_SWIG="none"
23688 SWIG=$ac_cv_path_SWIG
23689 if test -n "$SWIG"; then
23690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG" >&5
23691 $as_echo "$SWIG" >&6; }
23693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23694 $as_echo "no" >&6; }
23699 if test -f "$where"; then
23702 SWIG="$where/bin/swig"
23704 if test ! -f "$SWIG" || test ! -x "$SWIG"; then
23705 as_fn_error $? "Could not find swig binary at $SWIG" "$LINENO" 5
23709 if test "$SWIG" != "none"; then
23710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking swig version" >&5
23711 $as_echo_n "checking swig version... " >&6; }
23712 SWIG_VERSION_RAW="`$SWIG -version 2>&1 | \
23713 $SED -ne 's/^.*Version \(.*\)$/\1/p'`"
23714 # We want the version as an integer so we can test against
23715 # which version we're using. SWIG doesn't provide this
23716 # to us so we have to come up with it on our own.
23717 # The major is passed straight through,
23718 # the minor is zero padded to two places,
23719 # and the patch level is zero padded to three places.
23720 # e.g. 1.3.24 becomes 103024
23721 SWIG_VERSION="`echo \"$SWIG_VERSION_RAW\" | \
23722 $SED -e 's/[^0-9\.].*$//' \
23723 -e 's/\.\([0-9]\)$/.0\1/' \
23724 -e 's/\.\([0-9][0-9]\)$/.0\1/' \
23725 -e 's/\.\([0-9]\)\./0\1/; s/\.//g;'`"
23726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG_VERSION_RAW" >&5
23727 $as_echo "$SWIG_VERSION_RAW" >&6; }
23728 # If you change the required swig version number, don't forget to update:
23729 # subversion/bindings/swig/INSTALL
23730 # packages/rpm/redhat-8+/subversion.spec
23731 # packages/rpm/redhat-7.x/subversion.spec
23732 # packages/rpm/rhel-3/subversion.spec
23733 # packages/rpm/rhel-4/subversion.spec
23734 if test -n "$SWIG_VERSION" && test "$SWIG_VERSION" -ge "103024"; then
23738 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Detected SWIG version $SWIG_VERSION_RAW" >&5
23739 $as_echo "$as_me: WARNING: Detected SWIG version $SWIG_VERSION_RAW" >&2;}
23740 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Subversion requires SWIG 1.3.24 or later" >&5
23741 $as_echo "$as_me: WARNING: Subversion requires SWIG 1.3.24 or later" >&2;}
23745 SWIG_PY_COMPILE="none"
23746 SWIG_PY_LINK="none"
23747 if test "$PYTHON" != "none"; then
23748 { $as_echo "$as_me:${as_lineno-$LINENO}: Configuring python swig binding" >&5
23749 $as_echo "$as_me: Configuring python swig binding" >&6;}
23751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python includes" >&5
23752 $as_echo_n "checking for Python includes... " >&6; }
23753 if ${ac_cv_python_includes+:} false; then :
23754 $as_echo_n "(cached) " >&6
23757 ac_cv_python_includes="`$PYTHON ${abs_srcdir}/build/get-py-info.py --includes`"
23760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_python_includes" >&5
23761 $as_echo "$ac_cv_python_includes" >&6; }
23762 SWIG_PY_INCLUDES="\$(SWIG_INCLUDES) $ac_cv_python_includes"
23764 if test "$ac_cv_python_includes" = "none"; then
23765 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: python bindings cannot be built without distutils module" >&5
23766 $as_echo "$as_me: WARNING: python bindings cannot be built without distutils module" >&2;}
23769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiling Python extensions" >&5
23770 $as_echo_n "checking for compiling Python extensions... " >&6; }
23771 if ${ac_cv_python_compile+:} false; then :
23772 $as_echo_n "(cached) " >&6
23775 ac_cv_python_compile="`$PYTHON ${abs_srcdir}/build/get-py-info.py --compile`"
23778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_python_compile" >&5
23779 $as_echo "$ac_cv_python_compile" >&6; }
23780 SWIG_PY_COMPILE="$ac_cv_python_compile $CFLAGS"
23782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linking Python extensions" >&5
23783 $as_echo_n "checking for linking Python extensions... " >&6; }
23784 if ${ac_cv_python_link+:} false; then :
23785 $as_echo_n "(cached) " >&6
23788 ac_cv_python_link="`$PYTHON ${abs_srcdir}/build/get-py-info.py --link`"
23791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_python_link" >&5
23792 $as_echo "$ac_cv_python_link" >&6; }
23793 SWIG_PY_LINK="$ac_cv_python_link"
23795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linking Python libraries" >&5
23796 $as_echo_n "checking for linking Python libraries... " >&6; }
23797 if ${ac_cv_python_libs+:} false; then :
23798 $as_echo_n "(cached) " >&6
23801 ac_cv_python_libs="`$PYTHON ${abs_srcdir}/build/get-py-info.py --libs`"
23804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_python_libs" >&5
23805 $as_echo "$ac_cv_python_libs" >&6; }
23807 input_flags="$ac_cv_python_libs"
23809 filtered_dirs="/lib /lib64 /usr/lib /usr/lib64"
23810 for flag in $input_flags; do
23812 for dir in $filtered_dirs; do
23813 if test "$flag" = "-L$dir" || test "$flag" = "-L$dir/"; then
23818 if test "$filter" = "no"; then
23819 output_flags="$output_flags $flag"
23822 if test -n "$output_flags"; then
23823 printf "%s" "${output_flags# }"
23827 SVN_PYCFMT_SAVE_CPPFLAGS="$CPPFLAGS"
23828 CPPFLAGS="$CPPFLAGS $SVN_APR_INCLUDES"
23829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for apr_int64_t Python/C API format string" >&5
23830 $as_echo_n "checking for apr_int64_t Python/C API format string... " >&6; }
23831 if ${svn_cv_pycfmt_apr_int64_t+:} false; then :
23832 $as_echo_n "(cached) " >&6
23835 if test "x$svn_cv_pycfmt_apr_int64_t" = "x"; then
23836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23837 /* end confdefs.h. */
23839 MaTcHtHiS APR_INT64_T_FMT EnDeNd
23841 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23842 $EGREP "MaTcHtHiS +\"lld\" +EnDeNd" >/dev/null 2>&1; then :
23843 svn_cv_pycfmt_apr_int64_t="L"
23848 if test "x$svn_cv_pycfmt_apr_int64_t" = "x"; then
23849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23850 /* end confdefs.h. */
23853 MaTcHtHiS APR_INT64_T_FMT EnDeNd
23855 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23856 $EGREP "MaTcHtHiS +\"ld\" +EnDeNd" >/dev/null 2>&1; then :
23857 svn_cv_pycfmt_apr_int64_t="l"
23862 if test "x$svn_cv_pycfmt_apr_int64_t" = "x"; then
23863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23864 /* end confdefs.h. */
23866 MaTcHtHiS APR_INT64_T_FMT EnDeNd
23868 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23869 $EGREP "MaTcHtHiS +\"d\" +EnDeNd" >/dev/null 2>&1; then :
23870 svn_cv_pycfmt_apr_int64_t="i"
23877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $svn_cv_pycfmt_apr_int64_t" >&5
23878 $as_echo "$svn_cv_pycfmt_apr_int64_t" >&6; }
23879 CPPFLAGS="$SVN_PYCFMT_SAVE_CPPFLAGS"
23880 if test "x$svn_cv_pycfmt_apr_int64_t" = "x"; then
23881 as_fn_error $? "failed to recognize APR_INT64_T_FMT on this platform" "$LINENO" 5
23884 cat >>confdefs.h <<_ACEOF
23885 #define SVN_APR_INT64_T_PYCFMT "$svn_cv_pycfmt_apr_int64_t"
23890 if test "$PERL" != "none"; then
23891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking perl version" >&5
23892 $as_echo_n "checking perl version... " >&6; }
23893 PERL_VERSION="`$PERL -e 'q([); print $] * 1000000,$/;'`"
23894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL_VERSION" >&5
23895 $as_echo "$PERL_VERSION" >&6; }
23896 if test "$PERL_VERSION" -ge "5008000"; then
23897 SWIG_PL_INCLUDES="\$(SWIG_INCLUDES) `$PERL -MExtUtils::Embed -e ccopts`"
23899 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: perl bindings require perl 5.8.0 or newer." >&5
23900 $as_echo "$as_me: WARNING: perl bindings require perl 5.8.0 or newer." >&2;}
23904 SWIG_RB_COMPILE="none"
23905 SWIG_RB_LINK="none"
23906 if test "$RUBY" != "none"; then
23907 rbconfig="$RUBY -rrbconfig -e "
23909 for var_name in arch archdir CC LDSHARED DLEXT LIBS LIBRUBYARG \
23910 rubyhdrdir sitedir sitelibdir sitearchdir libdir
23912 rbconfig_tmp=`$rbconfig "print RbConfig::CONFIG['$var_name']"`
23913 eval "rbconfig_$var_name=\"$rbconfig_tmp\""
23916 { $as_echo "$as_me:${as_lineno-$LINENO}: Configuring Ruby SWIG binding" >&5
23917 $as_echo "$as_me: Configuring Ruby SWIG binding" >&6;}
23919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ruby include path" >&5
23920 $as_echo_n "checking for Ruby include path... " >&6; }
23921 if ${svn_cv_ruby_includes+:} false; then :
23922 $as_echo_n "(cached) " >&6
23925 if test -d "$rbconfig_rubyhdrdir"; then
23926 svn_cv_ruby_includes="-I. -I$rbconfig_rubyhdrdir -I$rbconfig_rubyhdrdir/ruby -I$rbconfig_rubyhdrdir/ruby/backward -I$rbconfig_rubyhdrdir/$rbconfig_arch"
23928 svn_cv_ruby_includes="-I. -I$rbconfig_archdir"
23932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $svn_cv_ruby_includes" >&5
23933 $as_echo "$svn_cv_ruby_includes" >&6; }
23934 SWIG_RB_INCLUDES="\$(SWIG_INCLUDES) $svn_cv_ruby_includes"
23936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compile Ruby extensions" >&5
23937 $as_echo_n "checking how to compile Ruby extensions... " >&6; }
23938 if ${svn_cv_ruby_compile+:} false; then :
23939 $as_echo_n "(cached) " >&6
23942 svn_cv_ruby_compile="$rbconfig_CC $CFLAGS"
23945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $svn_cv_ruby_compile" >&5
23946 $as_echo "$svn_cv_ruby_compile" >&6; }
23947 SWIG_RB_COMPILE="$svn_cv_ruby_compile"
23949 SWIG_RB_COMPILE=`echo "$SWIG_RB_COMPILE" | $SED -e 's/-ansi//'`
23952 SWIG_RB_COMPILE=`echo "$SWIG_RB_COMPILE" | $SED -e 's/-std=c89//'`
23955 SWIG_RB_COMPILE=`echo "$SWIG_RB_COMPILE" | $SED -e 's/-std=c90//'`
23957 SWIG_RB_COMPILE="$SWIG_RB_COMPILE -Wno-int-to-pointer-cast"
23959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link Ruby extensions" >&5
23960 $as_echo_n "checking how to link Ruby extensions... " >&6; }
23961 if ${svn_cv_ruby_link+:} false; then :
23962 $as_echo_n "(cached) " >&6
23965 svn_cv_ruby_link="`$RUBY -e 'ARGV.shift; print ARGV.join(%q( ))' \
23966 $rbconfig_LDSHARED`"
23967 svn_cv_ruby_link="$rbconfig_CC $svn_cv_ruby_link"
23968 svn_cv_ruby_link="$svn_cv_ruby_link -shrext .$rbconfig_DLEXT"
23971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $svn_cv_ruby_link" >&5
23972 $as_echo "$svn_cv_ruby_link" >&6; }
23973 SWIG_RB_LINK="$svn_cv_ruby_link"
23975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link Ruby libraries" >&5
23976 $as_echo_n "checking how to link Ruby libraries... " >&6; }
23977 if ${ac_cv_ruby_libs+:} false; then :
23978 $as_echo_n "(cached) " >&6
23981 ac_cv_ruby_libs="$rbconfig_LIBRUBYARG $rbconfig_LIBS"
23984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_ruby_libs" >&5
23985 $as_echo "$ac_cv_ruby_libs" >&6; }
23987 input_flags="$ac_cv_ruby_libs"
23989 filtered_dirs="/lib /lib64 /usr/lib /usr/lib64"
23990 for flag in $input_flags; do
23992 for dir in $filtered_dirs; do
23993 if test "$flag" = "-L$dir" || test "$flag" = "-L$dir/"; then
23998 if test "$filter" = "no"; then
23999 output_flags="$output_flags $flag"
24002 if test -n "$output_flags"; then
24003 printf "%s" "${output_flags# }"
24007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rb_errinfo" >&5
24008 $as_echo_n "checking for rb_errinfo... " >&6; }
24009 old_CFLAGS="$CFLAGS"
24011 CFLAGS="$CFLAGS $svn_cv_ruby_includes"
24013 CFLAGS=`echo "$CFLAGS" | $SED -e 's/-ansi//'`
24016 CFLAGS=`echo "$CFLAGS" | $SED -e 's/-std=c89//'`
24019 CFLAGS=`echo "$CFLAGS" | $SED -e 's/-std=c90//'`
24021 LIBS="$SWIG_RB_LIBS"
24022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24023 /* end confdefs.h. */
24029 if ac_fn_c_try_link "$LINENO"; then :
24030 have_rb_errinfo="yes"
24032 have_rb_errinfo="no"
24034 rm -f core conftest.err conftest.$ac_objext \
24035 conftest$ac_exeext conftest.$ac_ext
24036 if test "$have_rb_errinfo" = "yes"; then
24037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24038 $as_echo "yes" >&6; }
24040 $as_echo "#define HAVE_RB_ERRINFO 1" >>confdefs.h
24043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24044 $as_echo "no" >&6; }
24046 CFLAGS="$old_CFLAGS"
24049 if ${svn_cv_ruby_sitedir+:} false; then :
24050 $as_echo_n "(cached) " >&6
24053 svn_cv_ruby_sitedir="$rbconfig_sitedir"
24058 # Check whether --with-ruby-sitedir was given.
24059 if test "${with_ruby_sitedir+set}" = set; then :
24060 withval=$with_ruby_sitedir; svn_ruby_installdir="$withval"
24062 svn_ruby_installdir="$svn_cv_ruby_sitedir"
24066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to install Ruby scripts" >&5
24067 $as_echo_n "checking where to install Ruby scripts... " >&6; }
24068 if ${svn_cv_ruby_sitedir_libsuffix+:} false; then :
24069 $as_echo_n "(cached) " >&6
24072 svn_cv_ruby_sitedir_libsuffix="`echo "$rbconfig_sitelibdir" | \
24073 $SED -e "s,^$rbconfig_sitedir,,"`"
24077 SWIG_RB_SITE_LIB_DIR="${svn_ruby_installdir}${svn_cv_ruby_sitedir_libsuffix}"
24078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG_RB_SITE_LIB_DIR" >&5
24079 $as_echo "$SWIG_RB_SITE_LIB_DIR" >&6; }
24081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to install Ruby extensions" >&5
24082 $as_echo_n "checking where to install Ruby extensions... " >&6; }
24083 if ${svn_cv_ruby_sitedir_archsuffix+:} false; then :
24084 $as_echo_n "(cached) " >&6
24087 svn_cv_ruby_sitedir_archsuffix="`echo "$rbconfig_sitearchdir" | \
24088 $SED -e "s,^$rbconfig_sitedir,,"`"
24092 SWIG_RB_SITE_ARCH_DIR="${svn_ruby_installdir}${svn_cv_ruby_sitedir_archsuffix}"
24093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG_RB_SITE_ARCH_DIR" >&5
24094 $as_echo "$SWIG_RB_SITE_ARCH_DIR" >&6; }
24096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to use output level for Ruby bindings tests" >&5
24097 $as_echo_n "checking how to use output level for Ruby bindings tests... " >&6; }
24098 if ${svn_cv_ruby_test_verbose+:} false; then :
24099 $as_echo_n "(cached) " >&6
24102 svn_cv_ruby_test_verbose="normal"
24107 # Check whether --with-ruby-test-verbose was given.
24108 if test "${with_ruby_test_verbose+set}" = set; then :
24109 withval=$with_ruby_test_verbose; svn_ruby_test_verbose="$withval"
24111 svn_ruby_test_verbose="$svn_cv_ruby_test_verbose"
24114 SWIG_RB_TEST_VERBOSE="$svn_ruby_test_verbose"
24115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG_RB_TEST_VERBOSE" >&5
24116 $as_echo "$SWIG_RB_TEST_VERBOSE" >&6; }
24140 if test $where = no; then
24142 elif test $where = check; then
24143 # Extract the first word of "swig", so it can be a program name with args.
24144 set dummy swig; ac_word=$2
24145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24146 $as_echo_n "checking for $ac_word... " >&6; }
24147 if ${ac_cv_path_SWIG+:} false; then :
24148 $as_echo_n "(cached) " >&6
24152 ac_cv_path_SWIG="$SWIG" # Let the user override the test with a path.
24155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24156 for as_dir in $PATH
24159 test -z "$as_dir" && as_dir=.
24160 for ac_exec_ext in '' $ac_executable_extensions; do
24161 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24162 ac_cv_path_SWIG="$as_dir/$ac_word$ac_exec_ext"
24163 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24170 test -z "$ac_cv_path_SWIG" && ac_cv_path_SWIG="none"
24174 SWIG=$ac_cv_path_SWIG
24175 if test -n "$SWIG"; then
24176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG" >&5
24177 $as_echo "$SWIG" >&6; }
24179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24180 $as_echo "no" >&6; }
24185 if test -f "$where"; then
24188 SWIG="$where/bin/swig"
24190 if test ! -f "$SWIG" || test ! -x "$SWIG"; then
24191 as_fn_error $? "Could not find swig binary at $SWIG" "$LINENO" 5
24195 if test "$SWIG" != "none"; then
24196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking swig version" >&5
24197 $as_echo_n "checking swig version... " >&6; }
24198 SWIG_VERSION_RAW="`$SWIG -version 2>&1 | \
24199 $SED -ne 's/^.*Version \(.*\)$/\1/p'`"
24200 # We want the version as an integer so we can test against
24201 # which version we're using. SWIG doesn't provide this
24202 # to us so we have to come up with it on our own.
24203 # The major is passed straight through,
24204 # the minor is zero padded to two places,
24205 # and the patch level is zero padded to three places.
24206 # e.g. 1.3.24 becomes 103024
24207 SWIG_VERSION="`echo \"$SWIG_VERSION_RAW\" | \
24208 $SED -e 's/[^0-9\.].*$//' \
24209 -e 's/\.\([0-9]\)$/.0\1/' \
24210 -e 's/\.\([0-9][0-9]\)$/.0\1/' \
24211 -e 's/\.\([0-9]\)\./0\1/; s/\.//g;'`"
24212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG_VERSION_RAW" >&5
24213 $as_echo "$SWIG_VERSION_RAW" >&6; }
24214 # If you change the required swig version number, don't forget to update:
24215 # subversion/bindings/swig/INSTALL
24216 # packages/rpm/redhat-8+/subversion.spec
24217 # packages/rpm/redhat-7.x/subversion.spec
24218 # packages/rpm/rhel-3/subversion.spec
24219 # packages/rpm/rhel-4/subversion.spec
24220 if test -n "$SWIG_VERSION" && test "$SWIG_VERSION" -ge "103024"; then
24224 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Detected SWIG version $SWIG_VERSION_RAW" >&5
24225 $as_echo "$as_me: WARNING: Detected SWIG version $SWIG_VERSION_RAW" >&2;}
24226 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Subversion requires SWIG 1.3.24 or later" >&5
24227 $as_echo "$as_me: WARNING: Subversion requires SWIG 1.3.24 or later" >&2;}
24231 SWIG_PY_COMPILE="none"
24232 SWIG_PY_LINK="none"
24233 if test "$PYTHON" != "none"; then
24234 { $as_echo "$as_me:${as_lineno-$LINENO}: Configuring python swig binding" >&5
24235 $as_echo "$as_me: Configuring python swig binding" >&6;}
24237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python includes" >&5
24238 $as_echo_n "checking for Python includes... " >&6; }
24239 if ${ac_cv_python_includes+:} false; then :
24240 $as_echo_n "(cached) " >&6
24243 ac_cv_python_includes="`$PYTHON ${abs_srcdir}/build/get-py-info.py --includes`"
24246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_python_includes" >&5
24247 $as_echo "$ac_cv_python_includes" >&6; }
24248 SWIG_PY_INCLUDES="\$(SWIG_INCLUDES) $ac_cv_python_includes"
24250 if test "$ac_cv_python_includes" = "none"; then
24251 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: python bindings cannot be built without distutils module" >&5
24252 $as_echo "$as_me: WARNING: python bindings cannot be built without distutils module" >&2;}
24255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiling Python extensions" >&5
24256 $as_echo_n "checking for compiling Python extensions... " >&6; }
24257 if ${ac_cv_python_compile+:} false; then :
24258 $as_echo_n "(cached) " >&6
24261 ac_cv_python_compile="`$PYTHON ${abs_srcdir}/build/get-py-info.py --compile`"
24264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_python_compile" >&5
24265 $as_echo "$ac_cv_python_compile" >&6; }
24266 SWIG_PY_COMPILE="$ac_cv_python_compile $CFLAGS"
24268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linking Python extensions" >&5
24269 $as_echo_n "checking for linking Python extensions... " >&6; }
24270 if ${ac_cv_python_link+:} false; then :
24271 $as_echo_n "(cached) " >&6
24274 ac_cv_python_link="`$PYTHON ${abs_srcdir}/build/get-py-info.py --link`"
24277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_python_link" >&5
24278 $as_echo "$ac_cv_python_link" >&6; }
24279 SWIG_PY_LINK="$ac_cv_python_link"
24281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linking Python libraries" >&5
24282 $as_echo_n "checking for linking Python libraries... " >&6; }
24283 if ${ac_cv_python_libs+:} false; then :
24284 $as_echo_n "(cached) " >&6
24287 ac_cv_python_libs="`$PYTHON ${abs_srcdir}/build/get-py-info.py --libs`"
24290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_python_libs" >&5
24291 $as_echo "$ac_cv_python_libs" >&6; }
24293 input_flags="$ac_cv_python_libs"
24295 filtered_dirs="/lib /lib64 /usr/lib /usr/lib64"
24296 for flag in $input_flags; do
24298 for dir in $filtered_dirs; do
24299 if test "$flag" = "-L$dir" || test "$flag" = "-L$dir/"; then
24304 if test "$filter" = "no"; then
24305 output_flags="$output_flags $flag"
24308 if test -n "$output_flags"; then
24309 printf "%s" "${output_flags# }"
24313 SVN_PYCFMT_SAVE_CPPFLAGS="$CPPFLAGS"
24314 CPPFLAGS="$CPPFLAGS $SVN_APR_INCLUDES"
24315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for apr_int64_t Python/C API format string" >&5
24316 $as_echo_n "checking for apr_int64_t Python/C API format string... " >&6; }
24317 if ${svn_cv_pycfmt_apr_int64_t+:} false; then :
24318 $as_echo_n "(cached) " >&6
24321 if test "x$svn_cv_pycfmt_apr_int64_t" = "x"; then
24322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24323 /* end confdefs.h. */
24325 MaTcHtHiS APR_INT64_T_FMT EnDeNd
24327 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24328 $EGREP "MaTcHtHiS +\"lld\" +EnDeNd" >/dev/null 2>&1; then :
24329 svn_cv_pycfmt_apr_int64_t="L"
24334 if test "x$svn_cv_pycfmt_apr_int64_t" = "x"; then
24335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24336 /* end confdefs.h. */
24339 MaTcHtHiS APR_INT64_T_FMT EnDeNd
24341 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24342 $EGREP "MaTcHtHiS +\"ld\" +EnDeNd" >/dev/null 2>&1; then :
24343 svn_cv_pycfmt_apr_int64_t="l"
24348 if test "x$svn_cv_pycfmt_apr_int64_t" = "x"; then
24349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24350 /* end confdefs.h. */
24352 MaTcHtHiS APR_INT64_T_FMT EnDeNd
24354 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24355 $EGREP "MaTcHtHiS +\"d\" +EnDeNd" >/dev/null 2>&1; then :
24356 svn_cv_pycfmt_apr_int64_t="i"
24363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $svn_cv_pycfmt_apr_int64_t" >&5
24364 $as_echo "$svn_cv_pycfmt_apr_int64_t" >&6; }
24365 CPPFLAGS="$SVN_PYCFMT_SAVE_CPPFLAGS"
24366 if test "x$svn_cv_pycfmt_apr_int64_t" = "x"; then
24367 as_fn_error $? "failed to recognize APR_INT64_T_FMT on this platform" "$LINENO" 5
24370 cat >>confdefs.h <<_ACEOF
24371 #define SVN_APR_INT64_T_PYCFMT "$svn_cv_pycfmt_apr_int64_t"
24376 if test "$PERL" != "none"; then
24377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking perl version" >&5
24378 $as_echo_n "checking perl version... " >&6; }
24379 PERL_VERSION="`$PERL -e 'q([); print $] * 1000000,$/;'`"
24380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL_VERSION" >&5
24381 $as_echo "$PERL_VERSION" >&6; }
24382 if test "$PERL_VERSION" -ge "5008000"; then
24383 SWIG_PL_INCLUDES="\$(SWIG_INCLUDES) `$PERL -MExtUtils::Embed -e ccopts`"
24385 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: perl bindings require perl 5.8.0 or newer." >&5
24386 $as_echo "$as_me: WARNING: perl bindings require perl 5.8.0 or newer." >&2;}
24390 SWIG_RB_COMPILE="none"
24391 SWIG_RB_LINK="none"
24392 if test "$RUBY" != "none"; then
24393 rbconfig="$RUBY -rrbconfig -e "
24395 for var_name in arch archdir CC LDSHARED DLEXT LIBS LIBRUBYARG \
24396 rubyhdrdir sitedir sitelibdir sitearchdir libdir
24398 rbconfig_tmp=`$rbconfig "print RbConfig::CONFIG['$var_name']"`
24399 eval "rbconfig_$var_name=\"$rbconfig_tmp\""
24402 { $as_echo "$as_me:${as_lineno-$LINENO}: Configuring Ruby SWIG binding" >&5
24403 $as_echo "$as_me: Configuring Ruby SWIG binding" >&6;}
24405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ruby include path" >&5
24406 $as_echo_n "checking for Ruby include path... " >&6; }
24407 if ${svn_cv_ruby_includes+:} false; then :
24408 $as_echo_n "(cached) " >&6
24411 if test -d "$rbconfig_rubyhdrdir"; then
24412 svn_cv_ruby_includes="-I. -I$rbconfig_rubyhdrdir -I$rbconfig_rubyhdrdir/ruby -I$rbconfig_rubyhdrdir/ruby/backward -I$rbconfig_rubyhdrdir/$rbconfig_arch"
24414 svn_cv_ruby_includes="-I. -I$rbconfig_archdir"
24418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $svn_cv_ruby_includes" >&5
24419 $as_echo "$svn_cv_ruby_includes" >&6; }
24420 SWIG_RB_INCLUDES="\$(SWIG_INCLUDES) $svn_cv_ruby_includes"
24422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compile Ruby extensions" >&5
24423 $as_echo_n "checking how to compile Ruby extensions... " >&6; }
24424 if ${svn_cv_ruby_compile+:} false; then :
24425 $as_echo_n "(cached) " >&6
24428 svn_cv_ruby_compile="$rbconfig_CC $CFLAGS"
24431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $svn_cv_ruby_compile" >&5
24432 $as_echo "$svn_cv_ruby_compile" >&6; }
24433 SWIG_RB_COMPILE="$svn_cv_ruby_compile"
24435 SWIG_RB_COMPILE=`echo "$SWIG_RB_COMPILE" | $SED -e 's/-ansi//'`
24438 SWIG_RB_COMPILE=`echo "$SWIG_RB_COMPILE" | $SED -e 's/-std=c89//'`
24441 SWIG_RB_COMPILE=`echo "$SWIG_RB_COMPILE" | $SED -e 's/-std=c90//'`
24443 SWIG_RB_COMPILE="$SWIG_RB_COMPILE -Wno-int-to-pointer-cast"
24445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link Ruby extensions" >&5
24446 $as_echo_n "checking how to link Ruby extensions... " >&6; }
24447 if ${svn_cv_ruby_link+:} false; then :
24448 $as_echo_n "(cached) " >&6
24451 svn_cv_ruby_link="`$RUBY -e 'ARGV.shift; print ARGV.join(%q( ))' \
24452 $rbconfig_LDSHARED`"
24453 svn_cv_ruby_link="$rbconfig_CC $svn_cv_ruby_link"
24454 svn_cv_ruby_link="$svn_cv_ruby_link -shrext .$rbconfig_DLEXT"
24457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $svn_cv_ruby_link" >&5
24458 $as_echo "$svn_cv_ruby_link" >&6; }
24459 SWIG_RB_LINK="$svn_cv_ruby_link"
24461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link Ruby libraries" >&5
24462 $as_echo_n "checking how to link Ruby libraries... " >&6; }
24463 if ${ac_cv_ruby_libs+:} false; then :
24464 $as_echo_n "(cached) " >&6
24467 ac_cv_ruby_libs="$rbconfig_LIBRUBYARG $rbconfig_LIBS"
24470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_ruby_libs" >&5
24471 $as_echo "$ac_cv_ruby_libs" >&6; }
24473 input_flags="$ac_cv_ruby_libs"
24475 filtered_dirs="/lib /lib64 /usr/lib /usr/lib64"
24476 for flag in $input_flags; do
24478 for dir in $filtered_dirs; do
24479 if test "$flag" = "-L$dir" || test "$flag" = "-L$dir/"; then
24484 if test "$filter" = "no"; then
24485 output_flags="$output_flags $flag"
24488 if test -n "$output_flags"; then
24489 printf "%s" "${output_flags# }"
24493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rb_errinfo" >&5
24494 $as_echo_n "checking for rb_errinfo... " >&6; }
24495 old_CFLAGS="$CFLAGS"
24497 CFLAGS="$CFLAGS $svn_cv_ruby_includes"
24499 CFLAGS=`echo "$CFLAGS" | $SED -e 's/-ansi//'`
24502 CFLAGS=`echo "$CFLAGS" | $SED -e 's/-std=c89//'`
24505 CFLAGS=`echo "$CFLAGS" | $SED -e 's/-std=c90//'`
24507 LIBS="$SWIG_RB_LIBS"
24508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24509 /* end confdefs.h. */
24515 if ac_fn_c_try_link "$LINENO"; then :
24516 have_rb_errinfo="yes"
24518 have_rb_errinfo="no"
24520 rm -f core conftest.err conftest.$ac_objext \
24521 conftest$ac_exeext conftest.$ac_ext
24522 if test "$have_rb_errinfo" = "yes"; then
24523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24524 $as_echo "yes" >&6; }
24526 $as_echo "#define HAVE_RB_ERRINFO 1" >>confdefs.h
24529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24530 $as_echo "no" >&6; }
24532 CFLAGS="$old_CFLAGS"
24535 if ${svn_cv_ruby_sitedir+:} false; then :
24536 $as_echo_n "(cached) " >&6
24539 svn_cv_ruby_sitedir="$rbconfig_sitedir"
24544 # Check whether --with-ruby-sitedir was given.
24545 if test "${with_ruby_sitedir+set}" = set; then :
24546 withval=$with_ruby_sitedir; svn_ruby_installdir="$withval"
24548 svn_ruby_installdir="$svn_cv_ruby_sitedir"
24552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to install Ruby scripts" >&5
24553 $as_echo_n "checking where to install Ruby scripts... " >&6; }
24554 if ${svn_cv_ruby_sitedir_libsuffix+:} false; then :
24555 $as_echo_n "(cached) " >&6
24558 svn_cv_ruby_sitedir_libsuffix="`echo "$rbconfig_sitelibdir" | \
24559 $SED -e "s,^$rbconfig_sitedir,,"`"
24563 SWIG_RB_SITE_LIB_DIR="${svn_ruby_installdir}${svn_cv_ruby_sitedir_libsuffix}"
24564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG_RB_SITE_LIB_DIR" >&5
24565 $as_echo "$SWIG_RB_SITE_LIB_DIR" >&6; }
24567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to install Ruby extensions" >&5
24568 $as_echo_n "checking where to install Ruby extensions... " >&6; }
24569 if ${svn_cv_ruby_sitedir_archsuffix+:} false; then :
24570 $as_echo_n "(cached) " >&6
24573 svn_cv_ruby_sitedir_archsuffix="`echo "$rbconfig_sitearchdir" | \
24574 $SED -e "s,^$rbconfig_sitedir,,"`"
24578 SWIG_RB_SITE_ARCH_DIR="${svn_ruby_installdir}${svn_cv_ruby_sitedir_archsuffix}"
24579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG_RB_SITE_ARCH_DIR" >&5
24580 $as_echo "$SWIG_RB_SITE_ARCH_DIR" >&6; }
24582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to use output level for Ruby bindings tests" >&5
24583 $as_echo_n "checking how to use output level for Ruby bindings tests... " >&6; }
24584 if ${svn_cv_ruby_test_verbose+:} false; then :
24585 $as_echo_n "(cached) " >&6
24588 svn_cv_ruby_test_verbose="normal"
24593 # Check whether --with-ruby-test-verbose was given.
24594 if test "${with_ruby_test_verbose+set}" = set; then :
24595 withval=$with_ruby_test_verbose; svn_ruby_test_verbose="$withval"
24597 svn_ruby_test_verbose="$svn_cv_ruby_test_verbose"
24600 SWIG_RB_TEST_VERBOSE="$svn_ruby_test_verbose"
24601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG_RB_TEST_VERBOSE" >&5
24602 $as_echo "$SWIG_RB_TEST_VERBOSE" >&6; }
24625 # Check whether --with-ctypesgen was given.
24626 if test "${with_ctypesgen+set}" = set; then :
24627 withval=$with_ctypesgen;
24635 if test $where = check; then
24636 # Extract the first word of ""ctypesgen.py"", so it can be a program name with args.
24637 set dummy "ctypesgen.py"; ac_word=$2
24638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24639 $as_echo_n "checking for $ac_word... " >&6; }
24640 if ${ac_cv_path_CTYPESGEN+:} false; then :
24641 $as_echo_n "(cached) " >&6
24645 ac_cv_path_CTYPESGEN="$CTYPESGEN" # Let the user override the test with a path.
24648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24649 for as_dir in $PATH
24652 test -z "$as_dir" && as_dir=.
24653 for ac_exec_ext in '' $ac_executable_extensions; do
24654 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24655 ac_cv_path_CTYPESGEN="$as_dir/$ac_word$ac_exec_ext"
24656 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24663 test -z "$ac_cv_path_CTYPESGEN" && ac_cv_path_CTYPESGEN="none"
24667 CTYPESGEN=$ac_cv_path_CTYPESGEN
24668 if test -n "$CTYPESGEN"; then
24669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CTYPESGEN" >&5
24670 $as_echo "$CTYPESGEN" >&6; }
24672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24673 $as_echo "no" >&6; }
24677 elif test $where != no; then
24678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctypesgen.py" >&5
24679 $as_echo_n "checking for ctypesgen.py... " >&6; }
24681 if test -f "$where"; then
24683 elif test -f "$where/bin/ctypesgen.py"; then
24684 CTYPESGEN="$where/bin/ctypesgen.py"
24686 CTYPESGEN="$where/ctypesgen.py"
24689 if test ! -f "$CTYPESGEN" || test ! -x "$CTYPESGEN"; then
24690 as_fn_error $? "Could not find ctypesgen at $where/ctypesgen.py or at
24691 $where/bin/ctypesgen.py" "$LINENO" 5
24693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CTYPESGEN" >&5
24694 $as_echo "$CTYPESGEN" >&6; }
24707 if test $where = check; then
24708 # Extract the first word of ""ctypesgen.py"", so it can be a program name with args.
24709 set dummy "ctypesgen.py"; ac_word=$2
24710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24711 $as_echo_n "checking for $ac_word... " >&6; }
24712 if ${ac_cv_path_CTYPESGEN+:} false; then :
24713 $as_echo_n "(cached) " >&6
24717 ac_cv_path_CTYPESGEN="$CTYPESGEN" # Let the user override the test with a path.
24720 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24721 for as_dir in $PATH
24724 test -z "$as_dir" && as_dir=.
24725 for ac_exec_ext in '' $ac_executable_extensions; do
24726 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24727 ac_cv_path_CTYPESGEN="$as_dir/$ac_word$ac_exec_ext"
24728 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24735 test -z "$ac_cv_path_CTYPESGEN" && ac_cv_path_CTYPESGEN="none"
24739 CTYPESGEN=$ac_cv_path_CTYPESGEN
24740 if test -n "$CTYPESGEN"; then
24741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CTYPESGEN" >&5
24742 $as_echo "$CTYPESGEN" >&6; }
24744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24745 $as_echo "no" >&6; }
24749 elif test $where != no; then
24750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctypesgen.py" >&5
24751 $as_echo_n "checking for ctypesgen.py... " >&6; }
24753 if test -f "$where"; then
24755 elif test -f "$where/bin/ctypesgen.py"; then
24756 CTYPESGEN="$where/bin/ctypesgen.py"
24758 CTYPESGEN="$where/ctypesgen.py"
24761 if test ! -f "$CTYPESGEN" || test ! -x "$CTYPESGEN"; then
24762 as_fn_error $? "Could not find ctypesgen at $where/ctypesgen.py or at
24763 $where/bin/ctypesgen.py" "$LINENO" 5
24765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CTYPESGEN" >&5
24766 $as_echo "$CTYPESGEN" >&6; }
24779 if test $where = check; then
24780 # Extract the first word of ""ctypesgen.py"", so it can be a program name with args.
24781 set dummy "ctypesgen.py"; ac_word=$2
24782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24783 $as_echo_n "checking for $ac_word... " >&6; }
24784 if ${ac_cv_path_CTYPESGEN+:} false; then :
24785 $as_echo_n "(cached) " >&6
24789 ac_cv_path_CTYPESGEN="$CTYPESGEN" # Let the user override the test with a path.
24792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24793 for as_dir in $PATH
24796 test -z "$as_dir" && as_dir=.
24797 for ac_exec_ext in '' $ac_executable_extensions; do
24798 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24799 ac_cv_path_CTYPESGEN="$as_dir/$ac_word$ac_exec_ext"
24800 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24807 test -z "$ac_cv_path_CTYPESGEN" && ac_cv_path_CTYPESGEN="none"
24811 CTYPESGEN=$ac_cv_path_CTYPESGEN
24812 if test -n "$CTYPESGEN"; then
24813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CTYPESGEN" >&5
24814 $as_echo "$CTYPESGEN" >&6; }
24816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24817 $as_echo "no" >&6; }
24821 elif test $where != no; then
24822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctypesgen.py" >&5
24823 $as_echo_n "checking for ctypesgen.py... " >&6; }
24825 if test -f "$where"; then
24827 elif test -f "$where/bin/ctypesgen.py"; then
24828 CTYPESGEN="$where/bin/ctypesgen.py"
24830 CTYPESGEN="$where/ctypesgen.py"
24833 if test ! -f "$CTYPESGEN" || test ! -x "$CTYPESGEN"; then
24834 as_fn_error $? "Could not find ctypesgen at $where/ctypesgen.py or at
24835 $where/bin/ctypesgen.py" "$LINENO" 5
24837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CTYPESGEN" >&5
24838 $as_echo "$CTYPESGEN" >&6; }
24854 if test $where = check; then
24855 # Extract the first word of ""ctypesgen.py"", so it can be a program name with args.
24856 set dummy "ctypesgen.py"; ac_word=$2
24857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24858 $as_echo_n "checking for $ac_word... " >&6; }
24859 if ${ac_cv_path_CTYPESGEN+:} false; then :
24860 $as_echo_n "(cached) " >&6
24864 ac_cv_path_CTYPESGEN="$CTYPESGEN" # Let the user override the test with a path.
24867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24868 for as_dir in $PATH
24871 test -z "$as_dir" && as_dir=.
24872 for ac_exec_ext in '' $ac_executable_extensions; do
24873 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24874 ac_cv_path_CTYPESGEN="$as_dir/$ac_word$ac_exec_ext"
24875 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24882 test -z "$ac_cv_path_CTYPESGEN" && ac_cv_path_CTYPESGEN="none"
24886 CTYPESGEN=$ac_cv_path_CTYPESGEN
24887 if test -n "$CTYPESGEN"; then
24888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CTYPESGEN" >&5
24889 $as_echo "$CTYPESGEN" >&6; }
24891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24892 $as_echo "no" >&6; }
24896 elif test $where != no; then
24897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctypesgen.py" >&5
24898 $as_echo_n "checking for ctypesgen.py... " >&6; }
24900 if test -f "$where"; then
24902 elif test -f "$where/bin/ctypesgen.py"; then
24903 CTYPESGEN="$where/bin/ctypesgen.py"
24905 CTYPESGEN="$where/ctypesgen.py"
24908 if test ! -f "$CTYPESGEN" || test ! -x "$CTYPESGEN"; then
24909 as_fn_error $? "Could not find ctypesgen at $where/ctypesgen.py or at
24910 $where/bin/ctypesgen.py" "$LINENO" 5
24912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CTYPESGEN" >&5
24913 $as_echo "$CTYPESGEN" >&6; }
24924 # Check whether --enable-runtime-module-search was given.
24925 if test "${enable_runtime_module_search+set}" = set; then :
24926 enableval=$enable_runtime_module_search;
24927 if test "$enableval" = "yes"; then
24929 if test "$svn_enable_shared" = "no"; then
24930 as_fn_error $? "--enable-runtime-module-search conflicts with --disable-shared" "$LINENO" 5
24933 $as_echo "#define SVN_USE_DSO 1" >>confdefs.h
24940 if test "$svn_enable_shared" = "no" || test "$use_dso" != "yes"; then
24942 $as_echo "#define SVN_LIBSVN_CLIENT_LINKS_RA_LOCAL 1" >>confdefs.h
24944 svn_ra_lib_deps="\$(RA_LOCAL_DEPS)"
24945 svn_ra_lib_install_deps="install-ramod-lib"
24946 svn_ra_lib_link="\$(RA_LOCAL_LINK)"
24949 $as_echo "#define SVN_LIBSVN_CLIENT_LINKS_RA_SVN 1" >>confdefs.h
24951 svn_ra_lib_deps="$svn_ra_lib_deps \$(RA_SVN_DEPS)"
24952 svn_ra_lib_link="$svn_ra_lib_link \$(RA_SVN_LINK)"
24954 if test "$svn_lib_serf" = "yes"; then
24956 $as_echo "#define SVN_LIBSVN_CLIENT_LINKS_RA_SERF 1" >>confdefs.h
24958 svn_ra_lib_deps="$svn_ra_lib_deps \$(RA_SERF_DEPS)"
24959 svn_ra_lib_install_deps="$svn_ra_lib_install_deps install-serf-lib"
24960 svn_ra_lib_link="$svn_ra_lib_link \$(RA_SERF_LINK)"
24963 SVN_RA_LIB_DEPS=$svn_ra_lib_deps
24964 SVN_RA_LIB_INSTALL_DEPS=$svn_ra_lib_install_deps
24965 SVN_RA_LIB_LINK=$svn_ra_lib_link
24968 $as_echo "#define SVN_LIBSVN_FS_LINKS_FS_FS 1" >>confdefs.h
24970 svn_fs_lib_deps="\$(FS_FS_DEPS)"
24971 svn_fs_lib_install_deps="install-fsmod-lib"
24972 svn_fs_lib_link="\$(FS_FS_LINK)"
24974 if test "$svn_lib_berkeley_db" = "yes"; then
24976 $as_echo "#define SVN_LIBSVN_FS_LINKS_FS_BASE 1" >>confdefs.h
24978 svn_fs_lib_deps="$svn_fs_lib_deps \$(FS_BASE_DEPS)"
24979 svn_fs_lib_install_deps="$svn_fs_lib_install_deps install-bdb-lib"
24980 svn_fs_lib_link="$svn_fs_lib_link \$(FS_BASE_LINK)"
24983 SVN_FS_LIB_DEPS=$svn_fs_lib_deps
24984 SVN_FS_LIB_INSTALL_DEPS=$svn_fs_lib_install_deps
24985 SVN_FS_LIB_LINK=$svn_fs_lib_link
24995 # ==== JavaHL ================================================================
24998 # Check whether --enable-javahl was given.
24999 if test "${enable_javahl+set}" = set; then :
25000 enableval=$enable_javahl; if test "$enableval" = "yes" ; then
25001 do_javahl_build="yes"
25008 INSTALL_EXTRA_JAVAHL_LIB=""
25010 JAVAHL_TESTS_TARGET=""
25011 JAVAHL_COMPAT_TESTS_TARGET=""
25013 if test "$do_javahl_build" = "yes"; then
25014 if test "$JDK_SUITABLE" = "no"; then
25015 as_fn_error $? "Cannot compile JavaHL without a suitable JDK.
25016 Please specify a suitable JDK using the --with-jdk option." "$LINENO" 5
25019 JAVAHL_OBJDIR='$(libsvnjavahl_PATH)/.libs'
25022 if test "$os_arch" = "Darwin"; then
25023 INSTALL_EXTRA_JAVAHL_LIB='ln -sf $(libdir)/libsvnjavahl-1.dylib $(libdir)/libsvnjavahl-1.jnilib'
25024 FIX_JAVAHL_LIB="ln -sf libsvnjavahl-1.dylib $JAVAHL_OBJDIR/libsvnjavahl-1.jnilib"
25026 # This segment (and the rest of r10800) is very likely unnecessary
25027 # with libtool 1.5, which automatically adds libstdc++ as a
25028 # dependency to the C++ libraries it builds. So at some future time
25029 # when autogen.sh requires libtool 1.5 or higher, we can get rid of
25031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for additional flags to link C++ libraries" >&5
25032 $as_echo_n "checking for additional flags to link C++ libraries... " >&6; }
25033 if test "x$ac_compiler_gnu" = "xyes"; then
25034 LT_CXX_LIBADD="-lstdc++"
25035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LT_CXX_LIBADD" >&5
25036 $as_echo "$LT_CXX_LIBADD" >&6; }
25038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
25039 $as_echo "none needed" >&6; }
25048 # Check whether --with-junit was given.
25049 if test "${with_junit+set}" = set; then :
25050 withval=$with_junit;
25051 if test "$withval" != "no"; then
25052 if test -n "$JAVA_CLASSPATH"; then
25053 JAVA_CLASSPATH="$withval:$JAVA_CLASSPATH"
25055 JAVA_CLASSPATH="$withval"
25057 JAVAHL_TESTS_TARGET="javahl-tests"
25058 JAVAHL_COMPAT_TESTS_TARGET="javahl-compat-tests"
25067 # ==== Miscellaneous bits ====================================================
25069 # Strip '-no-cpp-precomp' from CPPFLAGS for the clang compiler
25070 ### I think we get this flag from APR, so the fix probably belongs there
25071 if test "$CC" = "clang"; then
25073 CPPFLAGS=`echo "$CPPFLAGS" | $SED -e 's/-no-cpp-precomp //'`
25077 # Need to strip '-no-cpp-precomp' from CPPFLAGS for SWIG as well.
25078 SWIG_CPPFLAGS="$CPPFLAGS"
25080 SWIG_CPPFLAGS=`echo "$SWIG_CPPFLAGS" | $SED -e 's/-no-cpp-precomp //'`
25085 cat >>confdefs.h <<_ACEOF
25086 #define SVN_PATH_LOCAL_SEPARATOR '/'
25091 cat >>confdefs.h <<_ACEOF
25092 #define SVN_NULL_DEVICE_NAME "/dev/null"
25096 DEFAULT_FS_TYPE="fsfs"
25098 cat >>confdefs.h <<_ACEOF
25099 #define DEFAULT_FS_TYPE "$DEFAULT_FS_TYPE"
25103 DEFAULT_HTTP_LIBRARY="serf"
25105 cat >>confdefs.h <<_ACEOF
25106 #define DEFAULT_HTTP_LIBRARY "$DEFAULT_HTTP_LIBRARY"
25110 # BSD/OS (BSDi) needs to use a different include syntax in Makefile
25111 INCLUDE_OUTPUTS="include \$(top_srcdir)/build-outputs.mk"
25114 # Check whether they've installed GNU make
25115 if ! make --version > /dev/null 2>&1; then
25117 INCLUDE_OUTPUTS=".include \"\$(top_srcdir)/build-outputs.mk\""
25123 # ==== Detection complete - output and run config.status =====================
25125 ac_config_headers="$ac_config_headers subversion/svn_private_config.h.tmp:subversion/svn_private_config.h.in"
25127 ac_config_commands="$ac_config_commands svn_private_config.h.tmp"
25129 ac_config_files="$ac_config_files Makefile"
25133 SVN_CONFIG_SCRIPT_FILES="$SVN_CONFIG_SCRIPT_FILES tools/backup/hot-backup.py"
25134 ac_config_files="$ac_config_files tools/backup/hot-backup.py"
25137 SVN_CONFIG_SCRIPT_FILES="$SVN_CONFIG_SCRIPT_FILES tools/hook-scripts/commit-access-control.pl"
25138 ac_config_files="$ac_config_files tools/hook-scripts/commit-access-control.pl"
25141 SVN_CONFIG_SCRIPT_FILES="$SVN_CONFIG_SCRIPT_FILES subversion/bindings/swig/perl/native/Makefile.PL"
25142 ac_config_files="$ac_config_files subversion/bindings/swig/perl/native/Makefile.PL"
25144 if test -e packages/solaris/pkginfo.in; then
25146 SVN_CONFIG_SCRIPT_FILES="$SVN_CONFIG_SCRIPT_FILES packages/solaris/pkginfo"
25147 ac_config_files="$ac_config_files packages/solaris/pkginfo"
25152 # Ensure that SWIG is checked after reconfiguration.
25153 rm -f .swig_checked
25156 cat >>confdefs.h <<_ACEOF
25157 #define SVN_BUILD_HOST "${host}"
25162 cat >>confdefs.h <<_ACEOF
25163 #define SVN_BUILD_TARGET "${target}"
25167 cat >confcache <<\_ACEOF
25168 # This file is a shell script that caches the results of configure
25169 # tests run on this system so they can be shared between configure
25170 # scripts and configure runs, see configure's option --config-cache.
25171 # It is not useful on other systems. If it contains results you don't
25172 # want to keep, you may remove or edit it.
25174 # config.status only pays attention to the cache file if you give it
25175 # the --recheck option to rerun configure.
25177 # `ac_cv_env_foo' variables (set or unset) will be overridden when
25178 # loading this file, other *unset* `ac_cv_foo' will be assigned the
25179 # following values.
25183 # The following way of writing the cache mishandles newlines in values,
25184 # but we know of no workaround that is simple, portable, and efficient.
25185 # So, we kill variables containing newlines.
25186 # Ultrix sh set writes to stderr and can't be redirected directly,
25187 # and sets the high bit in the cache file unless we assign to the vars.
25189 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
25190 eval ac_val=\$$ac_var
25194 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
25195 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
25198 _ | IFS | as_nl) ;; #(
25199 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
25200 *) { eval $ac_var=; unset $ac_var;} ;;
25206 case $as_nl`(ac_space=' '; set) 2>&1` in #(
25207 *${as_nl}ac_space=\ *)
25208 # `set' does not quote correctly, so add quotes: double-quote
25209 # substitution turns \\\\ into \\, and sed turns \\ into \.
25212 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
25215 # `set' quotes correctly as required by POSIX, so do not add quotes.
25216 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
25225 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
25227 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
25229 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
25230 if test -w "$cache_file"; then
25231 if test "x$cache_file" != "x/dev/null"; then
25232 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
25233 $as_echo "$as_me: updating cache $cache_file" >&6;}
25234 if test ! -f "$cache_file" || test -h "$cache_file"; then
25235 cat confcache >"$cache_file"
25237 case $cache_file in #(
25239 mv -f confcache "$cache_file"$$ &&
25240 mv -f "$cache_file"$$ "$cache_file" ;; #(
25242 mv -f confcache "$cache_file" ;;
25247 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
25248 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
25253 test "x$prefix" = xNONE && prefix=$ac_default_prefix
25254 # Let make expand exec_prefix.
25255 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
25257 DEFS=-DHAVE_CONFIG_H
25262 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
25263 # 1. Remove the extension, and $U if already installed.
25264 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
25265 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
25266 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
25267 # will be set to the directory where LIBOBJS objects are built.
25268 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
25269 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
25271 LIBOBJS=$ac_libobjs
25273 LTLIBOBJS=$ac_ltlibobjs
25277 : "${CONFIG_STATUS=./config.status}"
25279 ac_clean_files_save=$ac_clean_files
25280 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
25281 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
25282 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
25284 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
25286 # Generated by $as_me.
25287 # Run this file to recreate the current configuration.
25288 # Compiler output produced by configure, useful for debugging
25289 # configure, is in config.log if it exists.
25292 ac_cs_recheck=false
25295 SHELL=\${CONFIG_SHELL-$SHELL}
25298 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
25299 ## -------------------- ##
25300 ## M4sh Initialization. ##
25301 ## -------------------- ##
25303 # Be more Bourne compatible
25304 DUALCASE=1; export DUALCASE # for MKS sh
25305 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
25308 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25309 # is contrary to our usage. Disable this feature.
25310 alias -g '${1+"$@"}'='"$@"'
25311 setopt NO_GLOB_SUBST
25313 case `(set -o) 2>/dev/null` in #(
25325 # Printing a long string crashes Solaris 7 /usr/bin/printf.
25326 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
25327 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
25328 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
25329 # Prefer a ksh shell builtin over an external printf program on Solaris,
25330 # but without wasting forks for bash or zsh.
25331 if test -z "$BASH_VERSION$ZSH_VERSION" \
25332 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
25333 as_echo='print -r --'
25334 as_echo_n='print -rn --'
25335 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
25336 as_echo='printf %s\n'
25337 as_echo_n='printf %s'
25339 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
25340 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
25341 as_echo_n='/usr/ucb/echo -n'
25343 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
25344 as_echo_n_body='eval
25348 expr "X$arg" : "X\\(.*\\)$as_nl";
25349 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
25351 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
25353 export as_echo_n_body
25354 as_echo_n='sh -c $as_echo_n_body as_echo'
25356 export as_echo_body
25357 as_echo='sh -c $as_echo_body as_echo'
25360 # The user is always right.
25361 if test "${PATH_SEPARATOR+set}" != set; then
25363 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
25364 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
25371 # We need space, tab and new line, in precisely that order. Quoting is
25372 # there to prevent editors from complaining about space-tab.
25373 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
25374 # splitting by setting IFS to empty value.)
25377 # Find who we are. Look in the path if we contain no directory separator.
25380 *[\\/]* ) as_myself=$0 ;;
25381 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25382 for as_dir in $PATH
25385 test -z "$as_dir" && as_dir=.
25386 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
25392 # We did not find ourselves, most probably we were run as `sh COMMAND'
25393 # in which case we are not to be found in the path.
25394 if test "x$as_myself" = x; then
25397 if test ! -f "$as_myself"; then
25398 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
25402 # Unset variables that we do not need and which cause bugs (e.g. in
25403 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
25404 # suppresses any "Segmentation fault" message there. '((' could
25405 # trigger a bug in pdksh 5.2.14.
25406 for as_var in BASH_ENV ENV MAIL MAILPATH
25407 do eval test x\${$as_var+set} = xset \
25408 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
25421 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
25424 # as_fn_error STATUS ERROR [LINENO LOG_FD]
25425 # ----------------------------------------
25426 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
25427 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
25428 # script with STATUS, using 1 if that was 0.
25431 as_status=$1; test $as_status -eq 0 && as_status=1
25433 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
25434 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
25436 $as_echo "$as_me: error: $2" >&2
25437 as_fn_exit $as_status
25441 # as_fn_set_status STATUS
25442 # -----------------------
25443 # Set $? to STATUS, without forking.
25444 as_fn_set_status ()
25447 } # as_fn_set_status
25449 # as_fn_exit STATUS
25450 # -----------------
25451 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
25455 as_fn_set_status $1
25461 # Portably unset VAR.
25464 { eval $1=; unset $1;}
25466 as_unset=as_fn_unset
25467 # as_fn_append VAR VALUE
25468 # ----------------------
25469 # Append the text in VALUE to the end of the definition contained in VAR. Take
25470 # advantage of any shell optimizations that allow amortized linear growth over
25471 # repeated appends, instead of the typical quadratic growth present in naive
25473 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
25474 eval 'as_fn_append ()
25485 # as_fn_arith ARG...
25486 # ------------------
25487 # Perform arithmetic evaluation on the ARGs, and store the result in the
25488 # global $as_val. Take advantage of shells that can avoid forks. The arguments
25489 # must be portable across $(()) and expr.
25490 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
25491 eval 'as_fn_arith ()
25498 as_val=`expr "$@" || test $? -eq 1`
25503 if expr a : '\(a\)' >/dev/null 2>&1 &&
25504 test "X`expr 00001 : '.*\(...\)'`" = X001; then
25510 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
25511 as_basename=basename
25516 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
25522 as_me=`$as_basename -- "$0" ||
25523 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
25524 X"$0" : 'X\(//\)$' \| \
25525 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
25527 sed '/^.*\/\([^/][^/]*\)\/*$/{
25541 # Avoid depending upon Character Ranges.
25542 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
25543 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
25544 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
25545 as_cr_digits='0123456789'
25546 as_cr_alnum=$as_cr_Letters$as_cr_digits
25548 ECHO_C= ECHO_N= ECHO_T=
25549 case `echo -n x` in #(((((
25551 case `echo 'xy\c'` in
25552 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
25554 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
25561 rm -f conf$$ conf$$.exe conf$$.file
25562 if test -d conf$$.dir; then
25563 rm -f conf$$.dir/conf$$.file
25566 mkdir conf$$.dir 2>/dev/null
25568 if (echo >conf$$.file) 2>/dev/null; then
25569 if ln -s conf$$.file conf$$ 2>/dev/null; then
25571 # ... but there are two gotchas:
25572 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
25573 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
25574 # In both cases, we have to default to `cp -pR'.
25575 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
25577 elif ln conf$$.file conf$$ 2>/dev/null; then
25585 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
25586 rmdir conf$$.dir 2>/dev/null
25591 # Create "$as_dir" as a directory, including parents if necessary.
25596 -*) as_dir=./$as_dir;;
25598 test -d "$as_dir" || eval $as_mkdir_p || {
25602 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
25603 *) as_qdir=$as_dir;;
25605 as_dirs="'$as_qdir' $as_dirs"
25606 as_dir=`$as_dirname -- "$as_dir" ||
25607 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25608 X"$as_dir" : 'X\(//\)[^/]' \| \
25609 X"$as_dir" : 'X\(//\)$' \| \
25610 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
25611 $as_echo X"$as_dir" |
25612 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25616 /^X\(\/\/\)[^/].*/{
25629 test -d "$as_dir" && break
25631 test -z "$as_dirs" || eval "mkdir $as_dirs"
25632 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
25636 if mkdir -p . 2>/dev/null; then
25637 as_mkdir_p='mkdir -p "$as_dir"'
25639 test -d ./-p && rmdir ./-p
25644 # as_fn_executable_p FILE
25645 # -----------------------
25646 # Test if FILE is an executable regular file.
25647 as_fn_executable_p ()
25649 test -f "$1" && test -x "$1"
25650 } # as_fn_executable_p
25651 as_test_x='test -x'
25652 as_executable_p=as_fn_executable_p
25654 # Sed expression to map a string onto a valid CPP name.
25655 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
25657 # Sed expression to map a string onto a valid variable name.
25658 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
25662 ## ----------------------------------- ##
25663 ## Main body of $CONFIG_STATUS script. ##
25664 ## ----------------------------------- ##
25666 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
25668 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25669 # Save the log message, to keep $0 and so on meaningful, and to
25670 # report actual input values of CONFIG_FILES etc. instead of their
25671 # values after options handling.
25673 This file was extended by subversion $as_me 1.8.8, which was
25674 generated by GNU Autoconf 2.69. Invocation command line was
25676 CONFIG_FILES = $CONFIG_FILES
25677 CONFIG_HEADERS = $CONFIG_HEADERS
25678 CONFIG_LINKS = $CONFIG_LINKS
25679 CONFIG_COMMANDS = $CONFIG_COMMANDS
25682 on `(hostname || uname -n) 2>/dev/null | sed 1q`
25687 case $ac_config_files in *"
25688 "*) set x $ac_config_files; shift; ac_config_files=$*;;
25691 case $ac_config_headers in *"
25692 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
25696 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25697 # Files that config.status was made for.
25698 config_files="$ac_config_files"
25699 config_headers="$ac_config_headers"
25700 config_commands="$ac_config_commands"
25704 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25706 \`$as_me' instantiates files and other configuration actions
25707 from templates according to the current configuration. Unless the files
25708 and actions are specified as TAGs, all are instantiated by default.
25710 Usage: $0 [OPTION]... [TAG]...
25712 -h, --help print this help, then exit
25713 -V, --version print version number and configuration settings, then exit
25714 --config print configuration, then exit
25715 -q, --quiet, --silent
25716 do not print progress messages
25717 -d, --debug don't remove temporary files
25718 --recheck update $as_me by reconfiguring in the same conditions
25719 --file=FILE[:TEMPLATE]
25720 instantiate the configuration file FILE
25721 --header=FILE[:TEMPLATE]
25722 instantiate the configuration header FILE
25724 Configuration files:
25727 Configuration headers:
25730 Configuration commands:
25733 Report bugs to <http://subversion.apache.org/>."
25736 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25737 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
25739 subversion config.status 1.8.8
25740 configured by $0, generated by GNU Autoconf 2.69,
25741 with options \\"\$ac_cs_config\\"
25743 Copyright (C) 2012 Free Software Foundation, Inc.
25744 This config.status script is free software; the Free Software Foundation
25745 gives unlimited permission to copy, distribute and modify it."
25751 test -n "\$AWK" || AWK=awk
25754 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25755 # The default lists apply if the user does not specify any file.
25761 ac_option=`expr "X$1" : 'X\([^=]*\)='`
25762 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
25766 ac_option=`expr "X$1" : 'X\([^=]*\)='`
25778 # Handling of the options.
25779 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
25781 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
25782 $as_echo "$ac_cs_version"; exit ;;
25783 --config | --confi | --conf | --con | --co | --c )
25784 $as_echo "$ac_cs_config"; exit ;;
25785 --debug | --debu | --deb | --de | --d | -d )
25787 --file | --fil | --fi | --f )
25790 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
25791 '') as_fn_error $? "missing file argument" ;;
25793 as_fn_append CONFIG_FILES " '$ac_optarg'"
25794 ac_need_defaults=false;;
25795 --header | --heade | --head | --hea )
25798 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
25800 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
25801 ac_need_defaults=false;;
25803 # Conflict between --help and --header
25804 as_fn_error $? "ambiguous option: \`$1'
25805 Try \`$0 --help' for more information.";;
25806 --help | --hel | -h )
25807 $as_echo "$ac_cs_usage"; exit ;;
25808 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
25809 | -silent | --silent | --silen | --sile | --sil | --si | --s)
25812 # This is an error.
25813 -*) as_fn_error $? "unrecognized option: \`$1'
25814 Try \`$0 --help' for more information." ;;
25816 *) as_fn_append ac_config_targets " $1"
25817 ac_need_defaults=false ;;
25823 ac_configure_extra_args=
25825 if $ac_cs_silent; then
25827 ac_configure_extra_args="$ac_configure_extra_args --silent"
25831 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25832 if \$ac_cs_recheck; then
25833 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
25835 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
25836 CONFIG_SHELL='$SHELL'
25837 export CONFIG_SHELL
25842 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25846 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
25847 ## Running $as_me. ##
25853 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25859 # The HP-UX ksh and POSIX shell print the target directory to stdout
25860 # if CDPATH is set.
25861 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
25863 sed_quote_subst='$sed_quote_subst'
25864 double_quote_subst='$double_quote_subst'
25865 delay_variable_subst='$delay_variable_subst'
25866 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
25867 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
25868 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
25869 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
25870 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
25871 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
25872 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
25873 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
25874 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
25875 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
25876 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
25877 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
25878 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
25879 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
25880 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
25881 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
25882 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
25883 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
25884 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
25885 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
25886 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
25887 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
25888 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
25889 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
25890 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
25891 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
25892 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
25893 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
25894 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
25895 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
25896 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
25897 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
25898 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
25899 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
25900 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
25901 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
25902 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
25903 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
25904 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
25905 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
25906 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
25907 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
25908 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
25909 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
25910 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
25911 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
25912 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
25913 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
25914 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
25915 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
25916 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
25917 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
25918 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
25919 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
25920 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
25921 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
25922 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"`'
25923 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
25924 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
25925 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
25926 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
25927 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
25928 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
25929 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
25930 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
25931 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
25932 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
25933 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
25934 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
25935 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
25936 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
25937 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
25938 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
25939 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
25940 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
25941 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
25942 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
25943 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
25944 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
25945 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
25946 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
25947 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
25948 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
25949 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
25950 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
25951 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
25952 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
25953 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
25954 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
25955 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
25956 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
25957 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
25958 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
25959 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
25960 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
25961 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
25962 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
25963 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
25964 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
25965 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
25966 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
25967 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
25968 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
25969 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
25970 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
25971 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
25972 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
25973 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
25974 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
25975 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
25976 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
25977 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
25978 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
25979 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
25980 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
25981 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
25982 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
25983 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
25984 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
25985 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
25986 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
25987 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
25988 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
25989 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
25990 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
25991 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
25992 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
25993 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
25994 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
25995 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
25996 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
25997 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
25998 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
25999 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
26000 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
26001 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
26002 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
26003 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
26004 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
26005 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
26006 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
26007 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
26008 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
26009 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
26010 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
26011 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
26012 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
26013 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
26014 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
26015 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
26016 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
26017 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
26018 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
26019 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
26020 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
26021 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
26022 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
26023 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
26024 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
26025 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
26026 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
26027 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
26028 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
26029 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
26030 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
26031 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
26032 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
26033 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
26034 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
26035 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
26036 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
26037 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
26038 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
26039 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
26040 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
26041 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
26042 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
26043 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
26044 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
26045 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
26046 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
26047 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
26048 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
26049 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
26052 LTCFLAGS='$LTCFLAGS'
26053 compiler='$compiler_DEFAULT'
26055 # A function that is used when there is no print builtin or printf.
26056 func_fallback_echo ()
26058 eval 'cat <<_LTECHO_EOF
26063 # Quote evaled strings.
26078 deplibs_check_method \
26083 sharedlib_from_linklib_cmd \
26086 archiver_list_spec \
26092 lt_cv_sys_global_symbol_pipe \
26093 lt_cv_sys_global_symbol_to_cdecl \
26094 lt_cv_sys_global_symbol_to_c_name_address \
26095 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
26096 nm_file_list_spec \
26097 lt_prog_compiler_no_builtin_flag \
26098 lt_prog_compiler_pic \
26099 lt_prog_compiler_wl \
26100 lt_prog_compiler_static \
26101 lt_cv_prog_compiler_c_o \
26110 export_dynamic_flag_spec \
26111 whole_archive_flag_spec \
26112 compiler_needs_object \
26114 allow_undefined_flag \
26115 no_undefined_flag \
26116 hardcode_libdir_flag_spec \
26117 hardcode_libdir_separator \
26121 variables_saved_for_relink \
26123 library_names_spec \
26125 install_override_mode \
26129 compiler_lib_search_dirs \
26134 compiler_lib_search_path \
26138 lt_prog_compiler_no_builtin_flag_CXX \
26139 lt_prog_compiler_pic_CXX \
26140 lt_prog_compiler_wl_CXX \
26141 lt_prog_compiler_static_CXX \
26142 lt_cv_prog_compiler_c_o_CXX \
26143 export_dynamic_flag_spec_CXX \
26144 whole_archive_flag_spec_CXX \
26145 compiler_needs_object_CXX \
26147 allow_undefined_flag_CXX \
26148 no_undefined_flag_CXX \
26149 hardcode_libdir_flag_spec_CXX \
26150 hardcode_libdir_separator_CXX \
26151 exclude_expsyms_CXX \
26152 include_expsyms_CXX \
26153 file_list_spec_CXX \
26154 compiler_lib_search_dirs_CXX \
26155 predep_objects_CXX \
26156 postdep_objects_CXX \
26159 compiler_lib_search_path_CXX; do
26160 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
26161 *[\\\\\\\`\\"\\\$]*)
26162 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
26165 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
26170 # Double-quote double-evaled strings.
26171 for var in reload_cmds \
26172 old_postinstall_cmds \
26173 old_postuninstall_cmds \
26175 extract_expsyms_cmds \
26176 old_archive_from_new_cmds \
26177 old_archive_from_expsyms_cmds \
26179 archive_expsym_cmds \
26181 module_expsym_cmds \
26182 export_symbols_cmds \
26186 postuninstall_cmds \
26188 sys_lib_search_path_spec \
26189 sys_lib_dlsearch_path_spec \
26191 old_archive_cmds_CXX \
26192 old_archive_from_new_cmds_CXX \
26193 old_archive_from_expsyms_cmds_CXX \
26195 archive_expsym_cmds_CXX \
26197 module_expsym_cmds_CXX \
26198 export_symbols_cmds_CXX \
26200 postlink_cmds_CXX; do
26201 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
26202 *[\\\\\\\`\\"\\\$]*)
26203 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
26206 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
26211 ac_aux_dir='$ac_aux_dir'
26212 xsi_shell='$xsi_shell'
26213 lt_shell_append='$lt_shell_append'
26215 # See if we are running on zsh, and set the options which allow our
26216 # commands through without removal of \ escapes INIT.
26217 if test -n "\${ZSH_VERSION+set}" ; then
26218 setopt NO_GLOB_SUBST
26224 TIMESTAMP='$TIMESTAMP'
26233 SVN_DB_HEADER="$SVN_DB_HEADER"
26237 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26239 # Handling of arguments.
26240 for ac_config_target in $ac_config_targets
26242 case $ac_config_target in
26243 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
26244 "subversion/svn_private_config.h.tmp") CONFIG_HEADERS="$CONFIG_HEADERS subversion/svn_private_config.h.tmp:subversion/svn_private_config.h.in" ;;
26245 "svn_private_config.h.tmp") CONFIG_COMMANDS="$CONFIG_COMMANDS svn_private_config.h.tmp" ;;
26246 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
26247 "tools/backup/hot-backup.py") CONFIG_FILES="$CONFIG_FILES tools/backup/hot-backup.py" ;;
26248 "tools/hook-scripts/commit-access-control.pl") CONFIG_FILES="$CONFIG_FILES tools/hook-scripts/commit-access-control.pl" ;;
26249 "subversion/bindings/swig/perl/native/Makefile.PL") CONFIG_FILES="$CONFIG_FILES subversion/bindings/swig/perl/native/Makefile.PL" ;;
26250 "packages/solaris/pkginfo") CONFIG_FILES="$CONFIG_FILES packages/solaris/pkginfo" ;;
26252 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
26257 # If the user did not use the arguments to specify the items to instantiate,
26258 # then the envvar interface is used. Set only those that are not.
26259 # We use the long form for the default assignment because of an extremely
26260 # bizarre bug on SunOS 4.1.3.
26261 if $ac_need_defaults; then
26262 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
26263 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
26264 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
26267 # Have a temporary directory for convenience. Make it in the build tree
26268 # simply because there is no reason against having it here, and in addition,
26269 # creating and moving files from /tmp can sometimes cause problems.
26270 # Hook for its removal unless debugging.
26271 # Note that there is a small window in which the directory will not be cleaned:
26272 # after its creation but before its name has been assigned to `$tmp'.
26276 trap 'exit_status=$?
26277 : "${ac_tmp:=$tmp}"
26278 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
26280 trap 'as_fn_exit 1' 1 2 13 15
26282 # Create a (secure) tmp directory for tmp files.
26285 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
26289 tmp=./conf$$-$RANDOM
26290 (umask 077 && mkdir "$tmp")
26291 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
26294 # Set up the scripts for CONFIG_FILES section.
26295 # No need to generate them if there are no CONFIG_FILES.
26296 # This happens for instance with `./config.status config.h'.
26297 if test -n "$CONFIG_FILES"; then
26300 ac_cr=`echo X | tr X '\015'`
26301 # On cygwin, bash can eat \r inside `` if the user requested igncr.
26302 # But we know of no other shell where ac_cr would be empty at this
26303 # point, so we can use a bashism as a fallback.
26304 if test "x$ac_cr" = x; then
26305 eval ac_cr=\$\'\\r\'
26307 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
26308 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
26311 ac_cs_awk_cr=$ac_cr
26314 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
26319 echo "cat >conf$$subs.awk <<_ACEOF" &&
26320 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
26322 } >conf$$subs.sh ||
26323 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
26324 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
26326 for ac_last_try in false false false false false :; do
26327 . ./conf$$subs.sh ||
26328 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
26330 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
26331 if test $ac_delim_n = $ac_delim_num; then
26333 elif $ac_last_try; then
26334 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
26336 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26339 rm -f conf$$subs.sh
26341 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26342 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
26346 s/^/S["/; s/!.*/"]=/
26356 s/\(.\{148\}\)..*/\1/
26358 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
26363 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
26370 s/\(.\{148\}\)..*/\1/
26372 s/["\\]/\\&/g; s/^/"/; s/$/"/
26376 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
26381 ' <conf$$subs.awk | sed '
26386 ' >>$CONFIG_STATUS || ac_write_fail=1
26387 rm -f conf$$subs.awk
26388 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26390 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
26391 for (key in S) S_is_set[key] = 1
26397 nfields = split(line, field, "@")
26399 len = length(field[1])
26400 for (i = 2; i < nfields; i++) {
26402 keylen = length(key)
26403 if (S_is_set[key]) {
26405 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
26406 len += length(value) + length(field[++i])
26417 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26418 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
26419 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
26422 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
26423 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
26426 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
26427 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
26428 # trailing colons and then remove the whole line if VPATH becomes empty
26429 # (actually we leave an empty line to preserve line numbers).
26430 if test "x$srcdir" = x.; then
26431 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
26449 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26450 fi # test -n "$CONFIG_FILES"
26452 # Set up the scripts for CONFIG_HEADERS section.
26453 # No need to generate them if there are no CONFIG_HEADERS.
26454 # This happens for instance with `./config.status Makefile'.
26455 if test -n "$CONFIG_HEADERS"; then
26456 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
26460 # Transform confdefs.h into an awk script `defines.awk', embedded as
26461 # here-document in config.status, that substitutes the proper values into
26462 # config.h.in to produce config.h.
26464 # Create a delimiter string that does not exist in confdefs.h, to ease
26465 # handling of long lines.
26467 for ac_last_try in false false :; do
26468 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
26469 if test -z "$ac_tt"; then
26471 elif $ac_last_try; then
26472 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
26474 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26478 # For the awk script, D is an array of macro values keyed by name,
26479 # likewise P contains macro parameters if any. Preserve backslash
26480 # newline sequences.
26482 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
26484 s/.\{148\}/&'"$ac_delim"'/g
26487 s/^[ ]*#[ ]*define[ ][ ]*/ /
26494 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
26496 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
26500 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
26501 D["\1"]=" \3\\\\\\n"\\/p
26503 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
26508 s/.\{148\}/&'"$ac_delim"'/g
26513 s/["\\]/\\&/g; s/^/"/; s/$/"/p
26516 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
26518 ' <confdefs.h | sed '
26519 s/'"$ac_delim"'/"\\\
26520 "/g' >>$CONFIG_STATUS || ac_write_fail=1
26522 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26523 for (key in D) D_is_set[key] = 1
26526 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
26528 split(line, arg, " ")
26529 if (arg[1] == "#") {
26533 defundef = substr(arg[1], 2)
26536 split(mac1, mac2, "(") #)
26538 prefix = substr(line, 1, index(line, defundef) - 1)
26539 if (D_is_set[macro]) {
26540 # Preserve the white space surrounding the "#".
26541 print prefix "define", macro P[macro] D[macro]
26544 # Replace #undef with comments. This is necessary, for example,
26545 # in the case of _POSIX_SOURCE, which is predefined and required
26546 # on some systems where configure will not decide to define it.
26547 if (defundef == "undef") {
26548 print "/*", prefix defundef, macro, "*/"
26556 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26557 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
26558 fi # test -n "$CONFIG_HEADERS"
26561 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
26566 :[FHLC]) ac_mode=$ac_tag; continue;;
26568 case $ac_mode$ac_tag in
26570 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
26571 :[FH]-) ac_tag=-:-;;
26572 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
26589 -) ac_f="$ac_tmp/stdin";;
26590 *) # Look for the file first in the build tree, then in the source tree
26591 # (if the path is not absolute). The absolute path cannot be DOS-style,
26592 # because $ac_f cannot contain `:'.
26596 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
26598 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
26600 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
26601 as_fn_append ac_file_inputs " '$ac_f'"
26604 # Let's still pretend it is `configure' which instantiates (i.e., don't
26605 # use $as_me), people would be surprised to read:
26606 # /* config.h. Generated by config.status. */
26607 configure_input='Generated from '`
26608 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
26610 if test x"$ac_file" != x-; then
26611 configure_input="$ac_file. $configure_input"
26612 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
26613 $as_echo "$as_me: creating $ac_file" >&6;}
26615 # Neutralize special characters interpreted by sed in replacement strings.
26616 case $configure_input in #(
26617 *\&* | *\|* | *\\* )
26618 ac_sed_conf_input=`$as_echo "$configure_input" |
26619 sed 's/[\\\\&|]/\\\\&/g'`;; #(
26620 *) ac_sed_conf_input=$configure_input;;
26624 *:-:* | *:-) cat >"$ac_tmp/stdin" \
26625 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
26630 ac_dir=`$as_dirname -- "$ac_file" ||
26631 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26632 X"$ac_file" : 'X\(//\)[^/]' \| \
26633 X"$ac_file" : 'X\(//\)$' \| \
26634 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
26635 $as_echo X"$ac_file" |
26636 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26640 /^X\(\/\/\)[^/].*/{
26653 as_dir="$ac_dir"; as_fn_mkdir_p
26657 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
26659 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
26660 # A ".." for each directory in $ac_dir_suffix.
26661 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
26662 case $ac_top_builddir_sub in
26663 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
26664 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
26667 ac_abs_top_builddir=$ac_pwd
26668 ac_abs_builddir=$ac_pwd$ac_dir_suffix
26669 # for backward compatibility:
26670 ac_top_builddir=$ac_top_build_prefix
26673 .) # We are building in place.
26675 ac_top_srcdir=$ac_top_builddir_sub
26676 ac_abs_top_srcdir=$ac_pwd ;;
26677 [\\/]* | ?:[\\/]* ) # Absolute name.
26678 ac_srcdir=$srcdir$ac_dir_suffix;
26679 ac_top_srcdir=$srcdir
26680 ac_abs_top_srcdir=$srcdir ;;
26681 *) # Relative name.
26682 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
26683 ac_top_srcdir=$ac_top_build_prefix$srcdir
26684 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
26686 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
26696 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
26697 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
26701 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26702 # If the template does not know about datarootdir, expand it.
26703 # FIXME: This hack should be removed a few years after 2.60.
26704 ac_datarootdir_hack=; ac_datarootdir_seen=
26715 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
26716 *datarootdir*) ac_datarootdir_seen=yes;;
26717 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
26718 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
26719 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
26721 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26722 ac_datarootdir_hack='
26723 s&@datadir@&$datadir&g
26724 s&@docdir@&$docdir&g
26725 s&@infodir@&$infodir&g
26726 s&@localedir@&$localedir&g
26727 s&@mandir@&$mandir&g
26728 s&\\\${datarootdir}&$datarootdir&g' ;;
26732 # Neutralize VPATH when `$srcdir' = `.'.
26733 # Shell code in configure.ac might set extrasub.
26734 # FIXME: do we really want to maintain this feature?
26735 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26736 ac_sed_extra="$ac_vpsub
26739 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26741 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
26742 s|@configure_input@|$ac_sed_conf_input|;t t
26743 s&@top_builddir@&$ac_top_builddir_sub&;t t
26744 s&@top_build_prefix@&$ac_top_build_prefix&;t t
26745 s&@srcdir@&$ac_srcdir&;t t
26746 s&@abs_srcdir@&$ac_abs_srcdir&;t t
26747 s&@top_srcdir@&$ac_top_srcdir&;t t
26748 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
26749 s&@builddir@&$ac_builddir&;t t
26750 s&@abs_builddir@&$ac_abs_builddir&;t t
26751 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
26752 s&@INSTALL@&$ac_INSTALL&;t t
26753 $ac_datarootdir_hack
26755 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
26756 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
26758 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
26759 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
26760 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
26761 "$ac_tmp/out"`; test -z "$ac_out"; } &&
26762 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
26763 which seems to be undefined. Please make sure it is defined" >&5
26764 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
26765 which seems to be undefined. Please make sure it is defined" >&2;}
26767 rm -f "$ac_tmp/stdin"
26769 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
26770 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
26772 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
26778 if test x"$ac_file" != x-; then
26780 $as_echo "/* $configure_input */" \
26781 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
26782 } >"$ac_tmp/config.h" \
26783 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
26784 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
26785 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
26786 $as_echo "$as_me: $ac_file is unchanged" >&6;}
26789 mv "$ac_tmp/config.h" "$ac_file" \
26790 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
26793 $as_echo "/* $configure_input */" \
26794 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
26795 || as_fn_error $? "could not create -" "$LINENO" 5
26799 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
26800 $as_echo "$as_me: executing $ac_file commands" >&6;}
26805 case $ac_file$ac_mode in
26808 # See if we are running on zsh, and set the options which allow our
26809 # commands through without removal of \ escapes.
26810 if test -n "${ZSH_VERSION+set}" ; then
26811 setopt NO_GLOB_SUBST
26814 cfgfile="${ofile}T"
26815 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
26818 cat <<_LT_EOF >> "$cfgfile"
26821 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
26822 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
26823 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26824 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
26826 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
26827 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
26829 # Written by Gordon Matzigkeit, 1996
26831 # This file is part of GNU Libtool.
26833 # GNU Libtool is free software; you can redistribute it and/or
26834 # modify it under the terms of the GNU General Public License as
26835 # published by the Free Software Foundation; either version 2 of
26836 # the License, or (at your option) any later version.
26838 # As a special exception to the GNU General Public License,
26839 # if you distribute this file as part of a program or library that
26840 # is built using GNU Libtool, you may include this file under the
26841 # same distribution terms that you use for the rest of that program.
26843 # GNU Libtool is distributed in the hope that it will be useful,
26844 # but WITHOUT ANY WARRANTY; without even the implied warranty of
26845 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
26846 # GNU General Public License for more details.
26848 # You should have received a copy of the GNU General Public License
26849 # along with GNU Libtool; see the file COPYING. If not, a copy
26850 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
26851 # obtained by writing to the Free Software Foundation, Inc.,
26852 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
26855 # The names of the tagged configurations supported by this script.
26856 available_tags="CXX "
26858 # ### BEGIN LIBTOOL CONFIG
26860 # Which release of libtool.m4 was used?
26861 macro_version=$macro_version
26862 macro_revision=$macro_revision
26864 # Whether or not to build shared libraries.
26865 build_libtool_libs=$enable_shared
26867 # Whether or not to build static libraries.
26868 build_old_libs=$enable_static
26870 # What type of objects to build.
26873 # Whether or not to optimize for fast installation.
26874 fast_install=$enable_fast_install
26876 # Shell to use when invoking shell scripts.
26879 # An echo program that protects backslashes.
26882 # The PATH separator for the build system.
26883 PATH_SEPARATOR=$lt_PATH_SEPARATOR
26886 host_alias=$host_alias
26890 # The build system.
26891 build_alias=$build_alias
26895 # A sed program that does not truncate output.
26898 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
26899 Xsed="\$SED -e 1s/^X//"
26901 # A grep program that handles long lines.
26907 # A literal string matcher.
26910 # A BSD- or MS-compatible name lister.
26913 # Whether we need soft or hard links.
26916 # What is the maximum length of a command?
26917 max_cmd_len=$max_cmd_len
26919 # Object file suffix (normally "o").
26922 # Executable file suffix (normally "").
26925 # whether the shell understands "unset".
26928 # turn spaces into newlines.
26931 # turn newlines into spaces.
26934 # convert \$build file names to \$host format.
26935 to_host_file_cmd=$lt_cv_to_host_file_cmd
26937 # convert \$build files to toolchain format.
26938 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
26940 # An object symbol dumper.
26941 OBJDUMP=$lt_OBJDUMP
26943 # Method to check whether dependent libraries are shared objects.
26944 deplibs_check_method=$lt_deplibs_check_method
26946 # Command to use when deplibs_check_method = "file_magic".
26947 file_magic_cmd=$lt_file_magic_cmd
26949 # How to find potential files when deplibs_check_method = "file_magic".
26950 file_magic_glob=$lt_file_magic_glob
26952 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
26953 want_nocaseglob=$lt_want_nocaseglob
26955 # DLL creation program.
26956 DLLTOOL=$lt_DLLTOOL
26958 # Command to associate shared and link libraries.
26959 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
26964 # Flags to create an archive.
26965 AR_FLAGS=$lt_AR_FLAGS
26967 # How to feed a file listing to the archiver.
26968 archiver_list_spec=$lt_archiver_list_spec
26970 # A symbol stripping program.
26973 # Commands used to install an old-style archive.
26975 old_postinstall_cmds=$lt_old_postinstall_cmds
26976 old_postuninstall_cmds=$lt_old_postuninstall_cmds
26978 # Whether to use a lock for old archive extraction.
26979 lock_old_archive_extraction=$lock_old_archive_extraction
26984 # LTCC compiler flags.
26985 LTCFLAGS=$lt_CFLAGS
26987 # Take the output of nm and produce a listing of raw symbols and C names.
26988 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26990 # Transform the output of nm in a proper C declaration.
26991 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26993 # Transform the output of nm in a C name address pair.
26994 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26996 # Transform the output of nm in a C name address pair when lib prefix is needed.
26997 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
26999 # Specify filename containing input files for \$NM.
27000 nm_file_list_spec=$lt_nm_file_list_spec
27002 # The root where to search for dependent libraries,and in which our libraries should be installed.
27003 lt_sysroot=$lt_sysroot
27005 # The name of the directory that contains temporary libtool files.
27008 # Used to examine libraries when file_magic_cmd begins with "file".
27009 MAGIC_CMD=$MAGIC_CMD
27011 # Must we lock files when doing compilation?
27012 need_locks=$lt_need_locks
27015 MANIFEST_TOOL=$lt_MANIFEST_TOOL
27017 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
27018 DSYMUTIL=$lt_DSYMUTIL
27020 # Tool to change global to local symbols on Mac OS X.
27023 # Tool to manipulate fat objects and archives on Mac OS X.
27026 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
27029 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
27030 OTOOL64=$lt_OTOOL64
27032 # Old archive suffix (normally "a").
27035 # Shared library suffix (normally ".so").
27036 shrext_cmds=$lt_shrext_cmds
27038 # The commands to extract the exported symbol list from a shared archive.
27039 extract_expsyms_cmds=$lt_extract_expsyms_cmds
27041 # Variables whose values should be saved in libtool wrapper scripts and
27042 # restored at link time.
27043 variables_saved_for_relink=$lt_variables_saved_for_relink
27045 # Do we need the "lib" prefix for modules?
27046 need_lib_prefix=$need_lib_prefix
27048 # Do we need a version for libraries?
27049 need_version=$need_version
27051 # Library versioning type.
27052 version_type=$version_type
27054 # Shared library runtime path variable.
27055 runpath_var=$runpath_var
27057 # Shared library path variable.
27058 shlibpath_var=$shlibpath_var
27060 # Is shlibpath searched before the hard-coded library search path?
27061 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
27063 # Format of library name prefix.
27064 libname_spec=$lt_libname_spec
27066 # List of archive names. First name is the real one, the rest are links.
27067 # The last name is the one that the linker finds with -lNAME
27068 library_names_spec=$lt_library_names_spec
27070 # The coded name of the library, if different from the real name.
27071 soname_spec=$lt_soname_spec
27073 # Permission mode override for installation of shared libraries.
27074 install_override_mode=$lt_install_override_mode
27076 # Command to use after installation of a shared archive.
27077 postinstall_cmds=$lt_postinstall_cmds
27079 # Command to use after uninstallation of a shared archive.
27080 postuninstall_cmds=$lt_postuninstall_cmds
27082 # Commands used to finish a libtool library installation in a directory.
27083 finish_cmds=$lt_finish_cmds
27085 # As "finish_cmds", except a single script fragment to be evaled but
27087 finish_eval=$lt_finish_eval
27089 # Whether we should hardcode library paths into libraries.
27090 hardcode_into_libs=$hardcode_into_libs
27092 # Compile-time system search path for libraries.
27093 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
27095 # Run-time system search path for libraries.
27096 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
27098 # Whether dlopen is supported.
27099 dlopen_support=$enable_dlopen
27101 # Whether dlopen of programs is supported.
27102 dlopen_self=$enable_dlopen_self
27104 # Whether dlopen of statically linked programs is supported.
27105 dlopen_self_static=$enable_dlopen_self_static
27107 # Commands to strip libraries.
27108 old_striplib=$lt_old_striplib
27109 striplib=$lt_striplib
27112 # The linker used to build libraries.
27115 # How to create reloadable object files.
27116 reload_flag=$lt_reload_flag
27117 reload_cmds=$lt_reload_cmds
27119 # Commands used to build an old-style archive.
27120 old_archive_cmds=$lt_old_archive_cmds
27122 # A language specific compiler.
27125 # Is the compiler the GNU compiler?
27128 # Compiler flag to turn off builtin functions.
27129 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
27131 # Additional compiler flags for building library objects.
27132 pic_flag=$lt_lt_prog_compiler_pic
27134 # How to pass a linker flag through the compiler.
27135 wl=$lt_lt_prog_compiler_wl
27137 # Compiler flag to prevent dynamic linking.
27138 link_static_flag=$lt_lt_prog_compiler_static
27140 # Does compiler simultaneously support -c and -o options?
27141 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
27143 # Whether or not to add -lc for building shared libraries.
27144 build_libtool_need_lc=$archive_cmds_need_lc
27146 # Whether or not to disallow shared libs when runtime libs are static.
27147 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
27149 # Compiler flag to allow reflexive dlopens.
27150 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
27152 # Compiler flag to generate shared objects directly from archives.
27153 whole_archive_flag_spec=$lt_whole_archive_flag_spec
27155 # Whether the compiler copes with passing no objects directly.
27156 compiler_needs_object=$lt_compiler_needs_object
27158 # Create an old-style archive from a shared archive.
27159 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
27161 # Create a temporary old-style archive to link instead of a shared archive.
27162 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
27164 # Commands used to build a shared archive.
27165 archive_cmds=$lt_archive_cmds
27166 archive_expsym_cmds=$lt_archive_expsym_cmds
27168 # Commands used to build a loadable module if different from building
27169 # a shared archive.
27170 module_cmds=$lt_module_cmds
27171 module_expsym_cmds=$lt_module_expsym_cmds
27173 # Whether we are building with GNU ld or not.
27174 with_gnu_ld=$lt_with_gnu_ld
27176 # Flag that allows shared libraries with undefined symbols to be built.
27177 allow_undefined_flag=$lt_allow_undefined_flag
27179 # Flag that enforces no undefined symbols.
27180 no_undefined_flag=$lt_no_undefined_flag
27182 # Flag to hardcode \$libdir into a binary during linking.
27183 # This must work even if \$libdir does not exist
27184 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
27186 # Whether we need a single "-rpath" flag with a separated argument.
27187 hardcode_libdir_separator=$lt_hardcode_libdir_separator
27189 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
27190 # DIR into the resulting binary.
27191 hardcode_direct=$hardcode_direct
27193 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
27194 # DIR into the resulting binary and the resulting library dependency is
27195 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
27196 # library is relocated.
27197 hardcode_direct_absolute=$hardcode_direct_absolute
27199 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
27200 # into the resulting binary.
27201 hardcode_minus_L=$hardcode_minus_L
27203 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
27204 # into the resulting binary.
27205 hardcode_shlibpath_var=$hardcode_shlibpath_var
27207 # Set to "yes" if building a shared library automatically hardcodes DIR
27208 # into the library and all subsequent libraries and executables linked
27210 hardcode_automatic=$hardcode_automatic
27212 # Set to yes if linker adds runtime paths of dependent libraries
27213 # to runtime path list.
27214 inherit_rpath=$inherit_rpath
27216 # Whether libtool must link a program against all its dependency libraries.
27217 link_all_deplibs=$link_all_deplibs
27219 # Set to "yes" if exported symbols are required.
27220 always_export_symbols=$always_export_symbols
27222 # The commands to list exported symbols.
27223 export_symbols_cmds=$lt_export_symbols_cmds
27225 # Symbols that should not be listed in the preloaded symbols.
27226 exclude_expsyms=$lt_exclude_expsyms
27228 # Symbols that must always be exported.
27229 include_expsyms=$lt_include_expsyms
27231 # Commands necessary for linking programs (against libraries) with templates.
27232 prelink_cmds=$lt_prelink_cmds
27234 # Commands necessary for finishing linking programs.
27235 postlink_cmds=$lt_postlink_cmds
27237 # Specify filename containing input files.
27238 file_list_spec=$lt_file_list_spec
27240 # How to hardcode a shared library path into an executable.
27241 hardcode_action=$hardcode_action
27243 # The directories searched by this compiler when creating a shared library.
27244 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
27246 # Dependencies to place before and after the objects being linked to
27247 # create a shared library.
27248 predep_objects=$lt_predep_objects
27249 postdep_objects=$lt_postdep_objects
27250 predeps=$lt_predeps
27251 postdeps=$lt_postdeps
27253 # The library search path used internally by the compiler when linking
27254 # a shared library.
27255 compiler_lib_search_path=$lt_compiler_lib_search_path
27257 # ### END LIBTOOL CONFIG
27263 cat <<\_LT_EOF >> "$cfgfile"
27264 # AIX sometimes has problems with the GCC collect2 program. For some
27265 # reason, if we set the COLLECT_NAMES environment variable, the problems
27266 # vanish in a puff of smoke.
27267 if test "X${COLLECT_NAMES+set}" != Xset; then
27269 export COLLECT_NAMES
27276 ltmain="$ac_aux_dir/ltmain.sh"
27279 # We use sed instead of cat because bash on DJGPP gets confused if
27280 # if finds mixed CR/LF and LF-only lines. Since sed operates in
27281 # text mode, it properly converts lines to CR/LF. This bash problem
27282 # is reportedly fixed, but why not run on old versions too?
27283 sed '$q' "$ltmain" >> "$cfgfile" \
27284 || (rm -f "$cfgfile"; exit 1)
27286 if test x"$xsi_shell" = xyes; then
27287 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
27291 \ */*) func_dirname_result="${1%/*}${2}" ;;\
27292 \ * ) func_dirname_result="${3}" ;;\
27294 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
27295 && mv -f "$cfgfile.tmp" "$cfgfile" \
27296 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
27297 test 0 -eq $? || _lt_function_replace_fail=:
27300 sed -e '/^func_basename ()$/,/^} # func_basename /c\
27303 \ func_basename_result="${1##*/}"\
27304 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
27305 && mv -f "$cfgfile.tmp" "$cfgfile" \
27306 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
27307 test 0 -eq $? || _lt_function_replace_fail=:
27310 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
27311 func_dirname_and_basename ()\
27314 \ */*) func_dirname_result="${1%/*}${2}" ;;\
27315 \ * ) func_dirname_result="${3}" ;;\
27317 \ func_basename_result="${1##*/}"\
27318 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
27319 && mv -f "$cfgfile.tmp" "$cfgfile" \
27320 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
27321 test 0 -eq $? || _lt_function_replace_fail=:
27324 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
27327 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
27328 \ # positional parameters, so assign one to ordinary parameter first.\
27329 \ func_stripname_result=${3}\
27330 \ func_stripname_result=${func_stripname_result#"${1}"}\
27331 \ func_stripname_result=${func_stripname_result%"${2}"}\
27332 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
27333 && mv -f "$cfgfile.tmp" "$cfgfile" \
27334 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
27335 test 0 -eq $? || _lt_function_replace_fail=:
27338 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
27339 func_split_long_opt ()\
27341 \ func_split_long_opt_name=${1%%=*}\
27342 \ func_split_long_opt_arg=${1#*=}\
27343 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
27344 && mv -f "$cfgfile.tmp" "$cfgfile" \
27345 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
27346 test 0 -eq $? || _lt_function_replace_fail=:
27349 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
27350 func_split_short_opt ()\
27352 \ func_split_short_opt_arg=${1#??}\
27353 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
27354 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
27355 && mv -f "$cfgfile.tmp" "$cfgfile" \
27356 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
27357 test 0 -eq $? || _lt_function_replace_fail=:
27360 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
27364 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
27365 \ *) func_lo2o_result=${1} ;;\
27367 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
27368 && mv -f "$cfgfile.tmp" "$cfgfile" \
27369 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
27370 test 0 -eq $? || _lt_function_replace_fail=:
27373 sed -e '/^func_xform ()$/,/^} # func_xform /c\
27376 func_xform_result=${1%.*}.lo\
27377 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
27378 && mv -f "$cfgfile.tmp" "$cfgfile" \
27379 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
27380 test 0 -eq $? || _lt_function_replace_fail=:
27383 sed -e '/^func_arith ()$/,/^} # func_arith /c\
27386 func_arith_result=$(( $* ))\
27387 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
27388 && mv -f "$cfgfile.tmp" "$cfgfile" \
27389 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
27390 test 0 -eq $? || _lt_function_replace_fail=:
27393 sed -e '/^func_len ()$/,/^} # func_len /c\
27396 func_len_result=${#1}\
27397 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
27398 && mv -f "$cfgfile.tmp" "$cfgfile" \
27399 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
27400 test 0 -eq $? || _lt_function_replace_fail=:
27404 if test x"$lt_shell_append" = xyes; then
27405 sed -e '/^func_append ()$/,/^} # func_append /c\
27408 eval "${1}+=\\${2}"\
27409 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
27410 && mv -f "$cfgfile.tmp" "$cfgfile" \
27411 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
27412 test 0 -eq $? || _lt_function_replace_fail=:
27415 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
27416 func_append_quoted ()\
27418 \ func_quote_for_eval "${2}"\
27419 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
27420 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
27421 && mv -f "$cfgfile.tmp" "$cfgfile" \
27422 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
27423 test 0 -eq $? || _lt_function_replace_fail=:
27426 # Save a `func_append' function call where possible by direct use of '+='
27427 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
27428 && mv -f "$cfgfile.tmp" "$cfgfile" \
27429 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
27430 test 0 -eq $? || _lt_function_replace_fail=:
27432 # Save a `func_append' function call even when '+=' is not available
27433 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
27434 && mv -f "$cfgfile.tmp" "$cfgfile" \
27435 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
27436 test 0 -eq $? || _lt_function_replace_fail=:
27439 if test x"$_lt_function_replace_fail" = x":"; then
27440 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
27441 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
27445 mv -f "$cfgfile" "$ofile" ||
27446 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
27450 cat <<_LT_EOF >> "$ofile"
27452 # ### BEGIN LIBTOOL TAG CONFIG: CXX
27454 # The linker used to build libraries.
27457 # How to create reloadable object files.
27458 reload_flag=$lt_reload_flag_CXX
27459 reload_cmds=$lt_reload_cmds_CXX
27461 # Commands used to build an old-style archive.
27462 old_archive_cmds=$lt_old_archive_cmds_CXX
27464 # A language specific compiler.
27465 CC=$lt_compiler_CXX
27467 # Is the compiler the GNU compiler?
27470 # Compiler flag to turn off builtin functions.
27471 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
27473 # Additional compiler flags for building library objects.
27474 pic_flag=$lt_lt_prog_compiler_pic_CXX
27476 # How to pass a linker flag through the compiler.
27477 wl=$lt_lt_prog_compiler_wl_CXX
27479 # Compiler flag to prevent dynamic linking.
27480 link_static_flag=$lt_lt_prog_compiler_static_CXX
27482 # Does compiler simultaneously support -c and -o options?
27483 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
27485 # Whether or not to add -lc for building shared libraries.
27486 build_libtool_need_lc=$archive_cmds_need_lc_CXX
27488 # Whether or not to disallow shared libs when runtime libs are static.
27489 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
27491 # Compiler flag to allow reflexive dlopens.
27492 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
27494 # Compiler flag to generate shared objects directly from archives.
27495 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
27497 # Whether the compiler copes with passing no objects directly.
27498 compiler_needs_object=$lt_compiler_needs_object_CXX
27500 # Create an old-style archive from a shared archive.
27501 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
27503 # Create a temporary old-style archive to link instead of a shared archive.
27504 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
27506 # Commands used to build a shared archive.
27507 archive_cmds=$lt_archive_cmds_CXX
27508 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
27510 # Commands used to build a loadable module if different from building
27511 # a shared archive.
27512 module_cmds=$lt_module_cmds_CXX
27513 module_expsym_cmds=$lt_module_expsym_cmds_CXX
27515 # Whether we are building with GNU ld or not.
27516 with_gnu_ld=$lt_with_gnu_ld_CXX
27518 # Flag that allows shared libraries with undefined symbols to be built.
27519 allow_undefined_flag=$lt_allow_undefined_flag_CXX
27521 # Flag that enforces no undefined symbols.
27522 no_undefined_flag=$lt_no_undefined_flag_CXX
27524 # Flag to hardcode \$libdir into a binary during linking.
27525 # This must work even if \$libdir does not exist
27526 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
27528 # Whether we need a single "-rpath" flag with a separated argument.
27529 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
27531 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
27532 # DIR into the resulting binary.
27533 hardcode_direct=$hardcode_direct_CXX
27535 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
27536 # DIR into the resulting binary and the resulting library dependency is
27537 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
27538 # library is relocated.
27539 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
27541 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
27542 # into the resulting binary.
27543 hardcode_minus_L=$hardcode_minus_L_CXX
27545 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
27546 # into the resulting binary.
27547 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
27549 # Set to "yes" if building a shared library automatically hardcodes DIR
27550 # into the library and all subsequent libraries and executables linked
27552 hardcode_automatic=$hardcode_automatic_CXX
27554 # Set to yes if linker adds runtime paths of dependent libraries
27555 # to runtime path list.
27556 inherit_rpath=$inherit_rpath_CXX
27558 # Whether libtool must link a program against all its dependency libraries.
27559 link_all_deplibs=$link_all_deplibs_CXX
27561 # Set to "yes" if exported symbols are required.
27562 always_export_symbols=$always_export_symbols_CXX
27564 # The commands to list exported symbols.
27565 export_symbols_cmds=$lt_export_symbols_cmds_CXX
27567 # Symbols that should not be listed in the preloaded symbols.
27568 exclude_expsyms=$lt_exclude_expsyms_CXX
27570 # Symbols that must always be exported.
27571 include_expsyms=$lt_include_expsyms_CXX
27573 # Commands necessary for linking programs (against libraries) with templates.
27574 prelink_cmds=$lt_prelink_cmds_CXX
27576 # Commands necessary for finishing linking programs.
27577 postlink_cmds=$lt_postlink_cmds_CXX
27579 # Specify filename containing input files.
27580 file_list_spec=$lt_file_list_spec_CXX
27582 # How to hardcode a shared library path into an executable.
27583 hardcode_action=$hardcode_action_CXX
27585 # The directories searched by this compiler when creating a shared library.
27586 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
27588 # Dependencies to place before and after the objects being linked to
27589 # create a shared library.
27590 predep_objects=$lt_predep_objects_CXX
27591 postdep_objects=$lt_postdep_objects_CXX
27592 predeps=$lt_predeps_CXX
27593 postdeps=$lt_postdeps_CXX
27595 # The library search path used internally by the compiler when linking
27596 # a shared library.
27597 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
27599 # ### END LIBTOOL TAG CONFIG: CXX
27603 "svn_private_config.h.tmp":C) svn_cf=subversion/svn_private_config.h;
27604 $SED -e "s/@SVN_DB_HEADER@/$SVN_DB_HEADER/" $svn_cf.tmp > $svn_cf.tmp.new
27605 cmp -s $svn_cf.tmp.new $svn_cf || mv -f $svn_cf.tmp.new $svn_cf
27606 rm -f $svn_cf.tmp.new $svn_cf.tmp ;;
27607 "tools/backup/hot-backup.py":F) chmod +x tools/backup/hot-backup.py ;;
27608 "tools/hook-scripts/commit-access-control.pl":F) chmod +x tools/hook-scripts/commit-access-control.pl ;;
27609 "subversion/bindings/swig/perl/native/Makefile.PL":F) chmod +x subversion/bindings/swig/perl/native/Makefile.PL ;;
27610 "packages/solaris/pkginfo":F) chmod +x packages/solaris/pkginfo ;;
27618 ac_clean_files=$ac_clean_files_save
27620 test $ac_write_fail = 0 ||
27621 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
27624 # configure is writing to config.log, and then calls config.status.
27625 # config.status does its own redirection, appending to config.log.
27626 # Unfortunately, on DOS this fails, as config.log is still kept open
27627 # by configure, so config.status won't be able to write to it; its
27628 # output is simply discarded. So we exec the FD to /dev/null,
27629 # effectively closing config.log, so it can be properly (re)opened and
27630 # appended to by config.status. When coming back to configure, we
27631 # need to make the FD available again.
27632 if test "$no_create" != yes; then
27634 ac_config_status_args=
27635 test "$silent" = yes &&
27636 ac_config_status_args="$ac_config_status_args --quiet"
27638 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
27640 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
27641 # would make configure fail if this is the last instruction.
27642 $ac_cs_success || as_fn_exit 1
27644 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
27645 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
27646 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
27650 # ==== Print final messages to user ==========================================
27653 if test "$svn_have_berkeley_db" = "no6" && test "$enable_bdb6" != "no"; then
27654 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: We have configured without BDB filesystem support
27657 Berkeley DB 6 was found, but not used. Please re-run configure (see
27658 ./config.nice) with the '--enable-bdb6' flag to use it,
27659 or explicitly specify '--disable-bdb6' or '--without-berkeley-db'
27660 to silence this warning.
27662 Please note that some versions of Berkeley DB 6+ are under the GNU Affero
27663 General Public License, version 3:
27664 https://oss.oracle.com/pipermail/bdb/2013-June/000056.html
27666 The AGPL-3.0 licence may impose special requirements for making available
27667 source code of server-side software. The text of the licence is:
27668 https://www.gnu.org/licenses/agpl-3.0.html
27669 http://opensource.org/licenses/AGPL-3.0
27671 The Berkeley DB backend to Subversion is deprecated; see
27672 http://subversion.apache.org/docs/release-notes/1.8#bdb-deprecated
27674 The Subversion developers have not tested Subversion with Berkeley DB 6 for
27675 technical problems or bugs.
27677 $as_echo "$as_me: WARNING: We have configured without BDB filesystem support
27680 Berkeley DB 6 was found, but not used. Please re-run configure (see
27681 ./config.nice) with the '--enable-bdb6' flag to use it,
27682 or explicitly specify '--disable-bdb6' or '--without-berkeley-db'
27683 to silence this warning.
27685 Please note that some versions of Berkeley DB 6+ are under the GNU Affero
27686 General Public License, version 3:
27687 https://oss.oracle.com/pipermail/bdb/2013-June/000056.html
27689 The AGPL-3.0 licence may impose special requirements for making available
27690 source code of server-side software. The text of the licence is:
27691 https://www.gnu.org/licenses/agpl-3.0.html
27692 http://opensource.org/licenses/AGPL-3.0
27694 The Berkeley DB backend to Subversion is deprecated; see
27695 http://subversion.apache.org/docs/release-notes/1.8#bdb-deprecated
27697 The Subversion developers have not tested Subversion with Berkeley DB 6 for
27698 technical problems or bugs.