]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - contrib/subversion/configure
bhyvectl(8): Normalize the man page date
[FreeBSD/FreeBSD.git] / contrib / subversion / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for subversion 1.14.0.
4 #
5 # Report bugs to <http://subversion.apache.org/>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 #
10 #
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 ## -------------------- ##
16
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 :
20   emulate sh
21   NULLCMD=:
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+"$@"}'='"$@"'
25   setopt NO_GLOB_SUBST
26 else
27   case `(set -o) 2>/dev/null` in #(
28   *posix*) :
29     set -o posix ;; #(
30   *) :
31      ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
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
47   as_echo='print -r --'
48   as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50   as_echo='printf %s\n'
51   as_echo_n='printf %s'
52 else
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'
56   else
57     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58     as_echo_n_body='eval
59       arg=$1;
60       case $arg in #(
61       *"$as_nl"*)
62         expr "X$arg" : "X\\(.*\\)$as_nl";
63         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64       esac;
65       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66     '
67     export as_echo_n_body
68     as_echo_n='sh -c $as_echo_n_body as_echo'
69   fi
70   export as_echo_body
71   as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76   PATH_SEPARATOR=:
77   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79       PATH_SEPARATOR=';'
80   }
81 fi
82
83
84 # IFS
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.)
89 IFS=" ""        $as_nl"
90
91 # Find who we are.  Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94   *[\\/]* ) as_myself=$0 ;;
95   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
97 do
98   IFS=$as_save_IFS
99   test -z "$as_dir" && as_dir=.
100     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101   done
102 IFS=$as_save_IFS
103
104      ;;
105 esac
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
109   as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113   exit 1
114 fi
115
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 || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
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.
145 BASH_ENV=/dev/null
146 ENV=/dev/null
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148 case $- in # ((((
149   *v*x* | *x*v* ) as_opts=-vx ;;
150   *v* ) as_opts=-v ;;
151   *x* ) as_opts=-x ;;
152   * ) as_opts= ;;
153 esac
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
158 as_fn_exit 255
159   fi
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 :
164   emulate sh
165   NULLCMD=:
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+\"\$@\"}'='\"\$@\"'
169   setopt NO_GLOB_SUBST
170 else
171   case \`(set -o) 2>/dev/null\` in #(
172   *posix*) :
173     set -o posix ;; #(
174   *) :
175      ;;
176 esac
177 fi
178 "
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; }
184
185 exitcode=0
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 :
191
192 else
193   exitcode=1; echo positional parameters were not saved.
194 fi
195 test x\$exitcode = x0 || exit 1
196 test -x / || 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
202
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 :
211   as_have_required=yes
212 else
213   as_have_required=no
214 fi
215   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217 else
218   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219 as_found=false
220 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221 do
222   IFS=$as_save_IFS
223   test -z "$as_dir" && as_dir=.
224   as_found=:
225   case $as_dir in #(
226          /*)
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 :
234   break 2
235 fi
236 fi
237            done;;
238        esac
239   as_found=false
240 done
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
244 fi; }
245 IFS=$as_save_IFS
246
247
248       if test "x$CONFIG_SHELL" != x; then :
249   export CONFIG_SHELL
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.
254 BASH_ENV=/dev/null
255 ENV=/dev/null
256 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257 case $- in # ((((
258   *v*x* | *x*v* ) as_opts=-vx ;;
259   *v* ) as_opts=-v ;;
260   *x* ) as_opts=-x ;;
261   * ) as_opts= ;;
262 esac
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
267 exit 255
268 fi
269
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."
276   else
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."
282   fi
283   exit 1
284 fi
285 fi
286 fi
287 SHELL=${CONFIG_SHELL-/bin/sh}
288 export SHELL
289 # Unset more variables known to interfere with behavior of common tools.
290 CLICOLOR_FORCE= GREP_OPTIONS=
291 unset CLICOLOR_FORCE GREP_OPTIONS
292
293 ## --------------------- ##
294 ## M4sh Shell Functions. ##
295 ## --------------------- ##
296 # as_fn_unset VAR
297 # ---------------
298 # Portably unset VAR.
299 as_fn_unset ()
300 {
301   { eval $1=; unset $1;}
302 }
303 as_unset=as_fn_unset
304
305 # as_fn_set_status STATUS
306 # -----------------------
307 # Set $? to STATUS, without forking.
308 as_fn_set_status ()
309 {
310   return $1
311 } # as_fn_set_status
312
313 # as_fn_exit STATUS
314 # -----------------
315 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
316 as_fn_exit ()
317 {
318   set +e
319   as_fn_set_status $1
320   exit $1
321 } # as_fn_exit
322
323 # as_fn_mkdir_p
324 # -------------
325 # Create "$as_dir" as a directory, including parents if necessary.
326 as_fn_mkdir_p ()
327 {
328
329   case $as_dir in #(
330   -*) as_dir=./$as_dir;;
331   esac
332   test -d "$as_dir" || eval $as_mkdir_p || {
333     as_dirs=
334     while :; do
335       case $as_dir in #(
336       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
337       *) as_qdir=$as_dir;;
338       esac
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\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
347             s//\1/
348             q
349           }
350           /^X\(\/\/\)[^/].*/{
351             s//\1/
352             q
353           }
354           /^X\(\/\/\)$/{
355             s//\1/
356             q
357           }
358           /^X\(\/\).*/{
359             s//\1/
360             q
361           }
362           s/.*/./; q'`
363       test -d "$as_dir" && break
364     done
365     test -z "$as_dirs" || eval "mkdir $as_dirs"
366   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
367
368
369 } # as_fn_mkdir_p
370
371 # as_fn_executable_p FILE
372 # -----------------------
373 # Test if FILE is an executable regular file.
374 as_fn_executable_p ()
375 {
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
383 # implementations.
384 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
385   eval 'as_fn_append ()
386   {
387     eval $1+=\$2
388   }'
389 else
390   as_fn_append ()
391   {
392     eval $1=\$$1\$2
393   }
394 fi # as_fn_append
395
396 # as_fn_arith ARG...
397 # ------------------
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 :
402   eval 'as_fn_arith ()
403   {
404     as_val=$(( $* ))
405   }'
406 else
407   as_fn_arith ()
408   {
409     as_val=`expr "$@" || test $? -eq 1`
410   }
411 fi # as_fn_arith
412
413
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.
419 as_fn_error ()
420 {
421   as_status=$1; test $as_status -eq 0 && as_status=1
422   if test "$4"; then
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
425   fi
426   $as_echo "$as_me: error: $2" >&2
427   as_fn_exit $as_status
428 } # as_fn_error
429
430 if expr a : '\(a\)' >/dev/null 2>&1 &&
431    test "X`expr 00001 : '.*\(...\)'`" = X001; then
432   as_expr=expr
433 else
434   as_expr=false
435 fi
436
437 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
438   as_basename=basename
439 else
440   as_basename=false
441 fi
442
443 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
444   as_dirname=dirname
445 else
446   as_dirname=false
447 fi
448
449 as_me=`$as_basename -- "$0" ||
450 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451          X"$0" : 'X\(//\)$' \| \
452          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
453 $as_echo X/"$0" |
454     sed '/^.*\/\([^/][^/]*\)\/*$/{
455             s//\1/
456             q
457           }
458           /^X\/\(\/\/\)$/{
459             s//\1/
460             q
461           }
462           /^X\/\(\/\).*/{
463             s//\1/
464             q
465           }
466           s/.*/./; q'`
467
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
474
475
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.  :-)
481   sed -n '
482     p
483     /[$]LINENO/=
484   ' <$as_myself |
485     sed '
486       s/[$]LINENO.*/&-/
487       t lineno
488       b
489       :lineno
490       N
491       :loop
492       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
493       t loop
494       s/-\n.*//
495     ' >$as_me.lineno &&
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; }
498
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).
506   . "./$as_me.lineno"
507   # Exit status is that of the last command.
508   exit
509 }
510
511 ECHO_C= ECHO_N= ECHO_T=
512 case `echo -n x` in #(((((
513 -n*)
514   case `echo 'xy\c'` in
515   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
516   xy)  ECHO_C='\c';;
517   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
518        ECHO_T=' ';;
519   esac;;
520 *)
521   ECHO_N='-n';;
522 esac
523
524 rm -f conf$$ conf$$.exe conf$$.file
525 if test -d conf$$.dir; then
526   rm -f conf$$.dir/conf$$.file
527 else
528   rm -f conf$$.dir
529   mkdir conf$$.dir 2>/dev/null
530 fi
531 if (echo >conf$$.file) 2>/dev/null; then
532   if ln -s conf$$.file conf$$ 2>/dev/null; then
533     as_ln_s='ln -s'
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 ||
539       as_ln_s='cp -pR'
540   elif ln conf$$.file conf$$ 2>/dev/null; then
541     as_ln_s=ln
542   else
543     as_ln_s='cp -pR'
544   fi
545 else
546   as_ln_s='cp -pR'
547 fi
548 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549 rmdir conf$$.dir 2>/dev/null
550
551 if mkdir -p . 2>/dev/null; then
552   as_mkdir_p='mkdir -p "$as_dir"'
553 else
554   test -d ./-p && rmdir ./-p
555   as_mkdir_p=false
556 fi
557
558 as_test_x='test -x'
559 as_executable_p=as_fn_executable_p
560
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'"
563
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'"
566
567 SHELL=${CONFIG_SHELL-/bin/sh}
568
569
570 test -n "$DJDIR" || exec 7<&0 </dev/null
571 exec 6>&1
572
573 # Name of the host.
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`
577
578 #
579 # Initializations.
580 #
581 ac_default_prefix=/usr/local
582 ac_clean_files=
583 ac_config_libobj_dir=.
584 LIBOBJS=
585 cross_compiling=no
586 subdirs=
587 MFLAGS=
588 MAKEFLAGS=
589
590 # Identity of this package.
591 PACKAGE_NAME='subversion'
592 PACKAGE_TARNAME='subversion'
593 PACKAGE_VERSION='1.14.0'
594 PACKAGE_STRING='subversion 1.14.0'
595 PACKAGE_BUGREPORT='http://subversion.apache.org/'
596 PACKAGE_URL=''
597
598 ac_unique_file="subversion/include/svn_types.h"
599 # Factoring default headers for most tests.
600 ac_includes_default="\
601 #include <stdio.h>
602 #ifdef HAVE_SYS_TYPES_H
603 # include <sys/types.h>
604 #endif
605 #ifdef HAVE_SYS_STAT_H
606 # include <sys/stat.h>
607 #endif
608 #ifdef STDC_HEADERS
609 # include <stdlib.h>
610 # include <stddef.h>
611 #else
612 # ifdef HAVE_STDLIB_H
613 #  include <stdlib.h>
614 # endif
615 #endif
616 #ifdef HAVE_STRING_H
617 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
618 #  include <memory.h>
619 # endif
620 # include <string.h>
621 #endif
622 #ifdef HAVE_STRINGS_H
623 # include <strings.h>
624 #endif
625 #ifdef HAVE_INTTYPES_H
626 # include <inttypes.h>
627 #endif
628 #ifdef HAVE_STDINT_H
629 # include <stdint.h>
630 #endif
631 #ifdef HAVE_UNISTD_H
632 # include <unistd.h>
633 #endif"
634
635 ac_subst_vars='LTLIBOBJS
636 SVN_CONFIG_SCRIPT_FILES
637 INCLUDE_OUTPUTS
638 JAVAHL_COMPAT_TESTS_TARGET
639 JAVAHL_TESTS_TARGET
640 JAVA_CLASSPATH
641 LT_CXX_LIBADD
642 FIX_JAVAHL_LIB
643 JAVAHL_OBJDIR
644 INSTALL_EXTRA_JAVAHL_LIB
645 SVN_BUILD_SVNXX_TESTS
646 SVN_BUILD_SVNXX
647 BOOST_LDFLAGS
648 BOOST_CPPFLAGS
649 BOOST_UNIT_TEST_FRAMEWORK_LIB
650 SVN_FS_LIB_LINK
651 SVN_FS_LIB_INSTALL_DEPS
652 SVN_FS_LIB_DEPS
653 SVN_RA_LIB_LINK
654 SVN_RA_LIB_INSTALL_DEPS
655 SVN_RA_LIB_DEPS
656 CTYPESGEN
657 SWIG_PY_FEATURES
658 SWIG_PL_FEATURES
659 SWIG_RB_FEATURES
660 SWIG_FEATURES
661 SWIG_RB_ERRMSG
662 SWIG_RB_TEST_VERBOSE
663 SWIG_RB_SITE_ARCH_DIR
664 SWIG_RB_SITE_LIB_DIR
665 SWIG_RB_COMPILE
666 SWIG_RB_INCLUDES
667 SWIG_RB_LIBS
668 SWIG_RB_LINK
669 SWIG_PL_ERRMSG
670 SWIG_PL_LINK
671 SWIG_PL_INCLUDES
672 SWIG_PY_ERRMSG
673 SWIG_PY_OPTS
674 SWIG_PY_LIBS
675 SWIG_PY_LINK
676 SWIG_PY_COMPILE
677 SWIG_PY_INCLUDES
678 SVN_PY3C_INCLUDES
679 SWIG
680 RUBY_TEENY
681 RUBY_MINOR
682 RUBY_MAJOR
683 RDOC
684 RUBY
685 PERL
686 JNI_INCLUDES
687 JAR
688 JAVAH
689 JAVADOC
690 JAVAC_COMPAT_FLAGS
691 JAVAC_FLAGS
692 JAVAC
693 JAVA
694 JDK
695 PYTHON
696 MOD_ACTIVATION
697 SVN_UTF8PROC_LIBS
698 SVN_UTF8PROC_INCLUDES
699 SVN_LZ4_LIBS
700 SVN_LZ4_INCLUDES
701 SVN_ZLIB_LIBS
702 SVN_ZLIB_INCLUDES
703 shared_only_LDFLAGS
704 libsvn_wc_LDFLAGS
705 libsvn_subr_LDFLAGS
706 libsvn_repos_LDFLAGS
707 libsvn_ra_svn_LDFLAGS
708 libsvn_ra_serf_LDFLAGS
709 libsvn_ra_local_LDFLAGS
710 libsvn_ra_LDFLAGS
711 libsvn_fs_util_LDFLAGS
712 libsvn_fs_fs_LDFLAGS
713 libsvn_fs_base_LDFLAGS
714 libsvn_fs_LDFLAGS
715 libsvn_diff_LDFLAGS
716 libsvn_delta_LDFLAGS
717 libsvn_client_LDFLAGS
718 LIBOBJS
719 BDB_TEST_PROGRAMS
720 BDB_TEST_DEPS
721 INSTALL_RULES
722 INSTALL_STATIC_RULES
723 BUILD_RULES
724 SVN_KWALLET_LIBS
725 SVN_KWALLET_INCLUDES
726 KDE_CONFIG
727 SVN_MAGIC_LIBS
728 SVN_MAGIC_INCLUDES
729 MSGFMTFLAGS
730 NO_GETTEXT_CODESET
731 GETTEXT_CODESET
732 SVN_INTL_LIBS
733 XGETTEXT
734 MSGMERGE
735 MSGFMT
736 SVN_GNOME_KEYRING_PCLIBS
737 SVN_GNOME_KEYRING_LIBS
738 SVN_GNOME_KEYRING_INCLUDES
739 SVN_HAVE_GPG_AGENT
740 SVN_MACOS_KEYCHAIN_LIBS
741 SVN_MACOS_PLIST_LIBS
742 SVN_SASL_LIBS
743 SVN_SASL_INCLUDES
744 SVN_DB_LIBS
745 SVN_DB_INCLUDES
746 SVN_XML_LIBS
747 SVN_XML_INCLUDES
748 DOXYGEN
749 TRANG
750 LT_NO_UNDEFINED
751 TRANSFORM_LIBTOOL_SCRIPTS
752 LT_LDFLAGS
753 LT_CFLAGS
754 SVN_LIBTOOL
755 CXXCPP
756 LT_SYS_LIBRARY_PATH
757 OTOOL64
758 OTOOL
759 LIPO
760 NMEDIT
761 DSYMUTIL
762 MANIFEST_TOOL
763 AWK
764 RANLIB
765 STRIP
766 ac_ct_AR
767 AR
768 DLLTOOL
769 OBJDUMP
770 NM
771 ac_ct_DUMPBIN
772 DUMPBIN
773 LD
774 FGREP
775 LIBTOOL
776 SVN_BINDIR
777 SVN_SQLITE_LIBS
778 SVN_SQLITE_INCLUDES
779 HTTPD_VERSION
780 INSTALL_APACHE_MODS
781 APACHE_LIBEXECDIR
782 APACHE_INCLUDES
783 APACHE_LDFLAGS
784 APXS
785 HTTPD_WHITELIST
786 SVN_APR_MEMCACHE_LIBS
787 SVN_APR_MEMCACHE_INCLUDES
788 SVN_SERF_LIBS
789 SVN_SERF_INCLUDES
790 PKG_CONFIG
791 SVN_LT_SOVERSION
792 SVN_APR_MAJOR_VERSION
793 SVN_APRUTIL_LIBS
794 SVN_APRUTIL_CONFIG
795 SVN_APRUTIL_INCLUDES
796 SVN_APR_SHLIB_PATH_VAR
797 SVN_APR_LIBS
798 SVN_APR_INCLUDES
799 SVN_APR_CONFIG
800 MKDIR
801 INSTALL_DATA
802 INSTALL_SCRIPT
803 INSTALL_PROGRAM
804 LN_S
805 EGREP
806 GREP
807 target_os
808 target_vendor
809 target_cpu
810 target
811 host_os
812 host_vendor
813 host_cpu
814 host
815 build_os
816 build_vendor
817 build_cpu
818 build
819 SED
820 CPP
821 CXXUSERFLAGS
822 CXXMAINTAINERFLAGS
823 CXXNOWARNFLAGS
824 CXXMODEFLAGS
825 ac_ct_CXX
826 CXXFLAGS
827 CXX
828 CUSERFLAGS
829 CMAINTAINERFLAGS
830 CNOWARNFLAGS
831 CMODEFLAGS
832 OBJEXT
833 EXEEXT
834 ac_ct_CC
835 CPPFLAGS
836 LDFLAGS
837 CFLAGS
838 CC
839 SWIG_LDFLAGS
840 canonicalized_srcdir
841 abs_builddir
842 abs_srcdir
843 target_alias
844 host_alias
845 build_alias
846 LIBS
847 ECHO_T
848 ECHO_N
849 ECHO_C
850 DEFS
851 mandir
852 localedir
853 libdir
854 psdir
855 pdfdir
856 dvidir
857 htmldir
858 infodir
859 docdir
860 oldincludedir
861 includedir
862 localstatedir
863 sharedstatedir
864 sysconfdir
865 datadir
866 datarootdir
867 libexecdir
868 sbindir
869 bindir
870 program_transform_name
871 prefix
872 exec_prefix
873 PACKAGE_URL
874 PACKAGE_BUGREPORT
875 PACKAGE_STRING
876 PACKAGE_VERSION
877 PACKAGE_TARNAME
878 PACKAGE_NAME
879 PATH_SEPARATOR
880 SHELL'
881 ac_subst_files=''
882 ac_user_opts='
883 enable_option_checking
884 with_apr
885 with_apr_util
886 with_serf
887 with_apr_memcache
888 enable_apache_whitelist
889 with_apxs
890 with_apache_libexecdir
891 enable_broken_httpd_auth
892 with_sqlite
893 enable_sqlite_compatibility_version
894 enable_shared
895 enable_static
896 with_pic
897 enable_fast_install
898 with_aix_soname
899 with_gnu_ld
900 with_sysroot
901 enable_libtool_lock
902 enable_experimental_libtool
903 enable_all_static
904 enable_local_library_preloading
905 with_trang
906 with_doxygen
907 with_expat
908 with_berkeley_db
909 enable_bdb6
910 with_sasl
911 enable_keychain
912 with_gpg_agent
913 with_old_gnome_keyring
914 with_gnome_keyring
915 enable_ev2_impl
916 enable_nls
917 with_libmagic
918 with_kwallet
919 enable_plaintext_password_storage
920 enable_debug
921 enable_optimize
922 enable_disallowing_of_undefined_references
923 enable_maintainer_mode
924 enable_full_version_match
925 with_editor
926 with_zlib
927 with_lz4
928 with_utf8proc
929 enable_mod_activation
930 enable_gcov
931 enable_gprof
932 with_jdk
933 with_jikes
934 with_swig
935 with_py3c
936 with_ruby_sitedir
937 with_ruby_test_verbose
938 with_ctypesgen
939 enable_runtime_module_search
940 enable_svnxx
941 enable_svnxx_tests
942 with_boost
943 with_boost_libdir
944 with_boost_unit_test_framework
945 enable_javahl
946 with_junit
947 '
948       ac_precious_vars='build_alias
949 host_alias
950 target_alias
951 CC
952 CFLAGS
953 LDFLAGS
954 LIBS
955 CPPFLAGS
956 CXX
957 CXXFLAGS
958 CCC
959 CPP
960 LT_SYS_LIBRARY_PATH
961 CXXCPP
962 PYTHON
963 SWIG_FEATURES
964 SWIG_RB_FEATURES
965 SWIG_PL_FEATURES
966 SWIG_PY_FEATURES'
967
968
969 # Initialize some variables set by options.
970 ac_init_help=
971 ac_init_version=false
972 ac_unrecognized_opts=
973 ac_unrecognized_sep=
974 # The variables have the same names as the options, with
975 # dashes changed to underlines.
976 cache_file=/dev/null
977 exec_prefix=NONE
978 no_create=
979 no_recursion=
980 prefix=NONE
981 program_prefix=NONE
982 program_suffix=NONE
983 program_transform_name=s,x,x,
984 silent=
985 site=
986 srcdir=
987 verbose=
988 x_includes=NONE
989 x_libraries=NONE
990
991 # Installation directory options.
992 # These are left unexpanded so users can "make install exec_prefix=/foo"
993 # and all the variables that are supposed to be based on exec_prefix
994 # by default will actually change.
995 # Use braces instead of parens because sh, perl, etc. also accept them.
996 # (The list follows the same order as the GNU Coding Standards.)
997 bindir='${exec_prefix}/bin'
998 sbindir='${exec_prefix}/sbin'
999 libexecdir='${exec_prefix}/libexec'
1000 datarootdir='${prefix}/share'
1001 datadir='${datarootdir}'
1002 sysconfdir='${prefix}/etc'
1003 sharedstatedir='${prefix}/com'
1004 localstatedir='${prefix}/var'
1005 includedir='${prefix}/include'
1006 oldincludedir='/usr/include'
1007 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1008 infodir='${datarootdir}/info'
1009 htmldir='${docdir}'
1010 dvidir='${docdir}'
1011 pdfdir='${docdir}'
1012 psdir='${docdir}'
1013 libdir='${exec_prefix}/lib'
1014 localedir='${datarootdir}/locale'
1015 mandir='${datarootdir}/man'
1016
1017 ac_prev=
1018 ac_dashdash=
1019 for ac_option
1020 do
1021   # If the previous option needs an argument, assign it.
1022   if test -n "$ac_prev"; then
1023     eval $ac_prev=\$ac_option
1024     ac_prev=
1025     continue
1026   fi
1027
1028   case $ac_option in
1029   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1030   *=)   ac_optarg= ;;
1031   *)    ac_optarg=yes ;;
1032   esac
1033
1034   # Accept the important Cygnus configure options, so we can diagnose typos.
1035
1036   case $ac_dashdash$ac_option in
1037   --)
1038     ac_dashdash=yes ;;
1039
1040   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1041     ac_prev=bindir ;;
1042   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1043     bindir=$ac_optarg ;;
1044
1045   -build | --build | --buil | --bui | --bu)
1046     ac_prev=build_alias ;;
1047   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1048     build_alias=$ac_optarg ;;
1049
1050   -cache-file | --cache-file | --cache-fil | --cache-fi \
1051   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1052     ac_prev=cache_file ;;
1053   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1054   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1055     cache_file=$ac_optarg ;;
1056
1057   --config-cache | -C)
1058     cache_file=config.cache ;;
1059
1060   -datadir | --datadir | --datadi | --datad)
1061     ac_prev=datadir ;;
1062   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1063     datadir=$ac_optarg ;;
1064
1065   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1066   | --dataroo | --dataro | --datar)
1067     ac_prev=datarootdir ;;
1068   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1069   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1070     datarootdir=$ac_optarg ;;
1071
1072   -disable-* | --disable-*)
1073     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1074     # Reject names that are not valid shell variable names.
1075     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1076       as_fn_error $? "invalid feature name: $ac_useropt"
1077     ac_useropt_orig=$ac_useropt
1078     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1079     case $ac_user_opts in
1080       *"
1081 "enable_$ac_useropt"
1082 "*) ;;
1083       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1084          ac_unrecognized_sep=', ';;
1085     esac
1086     eval enable_$ac_useropt=no ;;
1087
1088   -docdir | --docdir | --docdi | --doc | --do)
1089     ac_prev=docdir ;;
1090   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1091     docdir=$ac_optarg ;;
1092
1093   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1094     ac_prev=dvidir ;;
1095   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1096     dvidir=$ac_optarg ;;
1097
1098   -enable-* | --enable-*)
1099     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1100     # Reject names that are not valid shell variable names.
1101     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1102       as_fn_error $? "invalid feature name: $ac_useropt"
1103     ac_useropt_orig=$ac_useropt
1104     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1105     case $ac_user_opts in
1106       *"
1107 "enable_$ac_useropt"
1108 "*) ;;
1109       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1110          ac_unrecognized_sep=', ';;
1111     esac
1112     eval enable_$ac_useropt=\$ac_optarg ;;
1113
1114   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1115   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1116   | --exec | --exe | --ex)
1117     ac_prev=exec_prefix ;;
1118   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1119   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1120   | --exec=* | --exe=* | --ex=*)
1121     exec_prefix=$ac_optarg ;;
1122
1123   -gas | --gas | --ga | --g)
1124     # Obsolete; use --with-gas.
1125     with_gas=yes ;;
1126
1127   -help | --help | --hel | --he | -h)
1128     ac_init_help=long ;;
1129   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1130     ac_init_help=recursive ;;
1131   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1132     ac_init_help=short ;;
1133
1134   -host | --host | --hos | --ho)
1135     ac_prev=host_alias ;;
1136   -host=* | --host=* | --hos=* | --ho=*)
1137     host_alias=$ac_optarg ;;
1138
1139   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1140     ac_prev=htmldir ;;
1141   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1142   | --ht=*)
1143     htmldir=$ac_optarg ;;
1144
1145   -includedir | --includedir | --includedi | --included | --include \
1146   | --includ | --inclu | --incl | --inc)
1147     ac_prev=includedir ;;
1148   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1149   | --includ=* | --inclu=* | --incl=* | --inc=*)
1150     includedir=$ac_optarg ;;
1151
1152   -infodir | --infodir | --infodi | --infod | --info | --inf)
1153     ac_prev=infodir ;;
1154   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1155     infodir=$ac_optarg ;;
1156
1157   -libdir | --libdir | --libdi | --libd)
1158     ac_prev=libdir ;;
1159   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1160     libdir=$ac_optarg ;;
1161
1162   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1163   | --libexe | --libex | --libe)
1164     ac_prev=libexecdir ;;
1165   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1166   | --libexe=* | --libex=* | --libe=*)
1167     libexecdir=$ac_optarg ;;
1168
1169   -localedir | --localedir | --localedi | --localed | --locale)
1170     ac_prev=localedir ;;
1171   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1172     localedir=$ac_optarg ;;
1173
1174   -localstatedir | --localstatedir | --localstatedi | --localstated \
1175   | --localstate | --localstat | --localsta | --localst | --locals)
1176     ac_prev=localstatedir ;;
1177   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1178   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1179     localstatedir=$ac_optarg ;;
1180
1181   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1182     ac_prev=mandir ;;
1183   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1184     mandir=$ac_optarg ;;
1185
1186   -nfp | --nfp | --nf)
1187     # Obsolete; use --without-fp.
1188     with_fp=no ;;
1189
1190   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1191   | --no-cr | --no-c | -n)
1192     no_create=yes ;;
1193
1194   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1195   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1196     no_recursion=yes ;;
1197
1198   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1199   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1200   | --oldin | --oldi | --old | --ol | --o)
1201     ac_prev=oldincludedir ;;
1202   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1203   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1204   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1205     oldincludedir=$ac_optarg ;;
1206
1207   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1208     ac_prev=prefix ;;
1209   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1210     prefix=$ac_optarg ;;
1211
1212   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1213   | --program-pre | --program-pr | --program-p)
1214     ac_prev=program_prefix ;;
1215   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1216   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1217     program_prefix=$ac_optarg ;;
1218
1219   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1220   | --program-suf | --program-su | --program-s)
1221     ac_prev=program_suffix ;;
1222   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1223   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1224     program_suffix=$ac_optarg ;;
1225
1226   -program-transform-name | --program-transform-name \
1227   | --program-transform-nam | --program-transform-na \
1228   | --program-transform-n | --program-transform- \
1229   | --program-transform | --program-transfor \
1230   | --program-transfo | --program-transf \
1231   | --program-trans | --program-tran \
1232   | --progr-tra | --program-tr | --program-t)
1233     ac_prev=program_transform_name ;;
1234   -program-transform-name=* | --program-transform-name=* \
1235   | --program-transform-nam=* | --program-transform-na=* \
1236   | --program-transform-n=* | --program-transform-=* \
1237   | --program-transform=* | --program-transfor=* \
1238   | --program-transfo=* | --program-transf=* \
1239   | --program-trans=* | --program-tran=* \
1240   | --progr-tra=* | --program-tr=* | --program-t=*)
1241     program_transform_name=$ac_optarg ;;
1242
1243   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1244     ac_prev=pdfdir ;;
1245   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1246     pdfdir=$ac_optarg ;;
1247
1248   -psdir | --psdir | --psdi | --psd | --ps)
1249     ac_prev=psdir ;;
1250   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1251     psdir=$ac_optarg ;;
1252
1253   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1254   | -silent | --silent | --silen | --sile | --sil)
1255     silent=yes ;;
1256
1257   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1258     ac_prev=sbindir ;;
1259   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1260   | --sbi=* | --sb=*)
1261     sbindir=$ac_optarg ;;
1262
1263   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1264   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1265   | --sharedst | --shareds | --shared | --share | --shar \
1266   | --sha | --sh)
1267     ac_prev=sharedstatedir ;;
1268   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1269   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1270   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1271   | --sha=* | --sh=*)
1272     sharedstatedir=$ac_optarg ;;
1273
1274   -site | --site | --sit)
1275     ac_prev=site ;;
1276   -site=* | --site=* | --sit=*)
1277     site=$ac_optarg ;;
1278
1279   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1280     ac_prev=srcdir ;;
1281   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1282     srcdir=$ac_optarg ;;
1283
1284   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1285   | --syscon | --sysco | --sysc | --sys | --sy)
1286     ac_prev=sysconfdir ;;
1287   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1288   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1289     sysconfdir=$ac_optarg ;;
1290
1291   -target | --target | --targe | --targ | --tar | --ta | --t)
1292     ac_prev=target_alias ;;
1293   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1294     target_alias=$ac_optarg ;;
1295
1296   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1297     verbose=yes ;;
1298
1299   -version | --version | --versio | --versi | --vers | -V)
1300     ac_init_version=: ;;
1301
1302   -with-* | --with-*)
1303     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1304     # Reject names that are not valid shell variable names.
1305     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1306       as_fn_error $? "invalid package name: $ac_useropt"
1307     ac_useropt_orig=$ac_useropt
1308     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1309     case $ac_user_opts in
1310       *"
1311 "with_$ac_useropt"
1312 "*) ;;
1313       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1314          ac_unrecognized_sep=', ';;
1315     esac
1316     eval with_$ac_useropt=\$ac_optarg ;;
1317
1318   -without-* | --without-*)
1319     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1320     # Reject names that are not valid shell variable names.
1321     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1322       as_fn_error $? "invalid package name: $ac_useropt"
1323     ac_useropt_orig=$ac_useropt
1324     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1325     case $ac_user_opts in
1326       *"
1327 "with_$ac_useropt"
1328 "*) ;;
1329       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1330          ac_unrecognized_sep=', ';;
1331     esac
1332     eval with_$ac_useropt=no ;;
1333
1334   --x)
1335     # Obsolete; use --with-x.
1336     with_x=yes ;;
1337
1338   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1339   | --x-incl | --x-inc | --x-in | --x-i)
1340     ac_prev=x_includes ;;
1341   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1342   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1343     x_includes=$ac_optarg ;;
1344
1345   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1346   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1347     ac_prev=x_libraries ;;
1348   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1349   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1350     x_libraries=$ac_optarg ;;
1351
1352   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1353 Try \`$0 --help' for more information"
1354     ;;
1355
1356   *=*)
1357     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1358     # Reject names that are not valid shell variable names.
1359     case $ac_envvar in #(
1360       '' | [0-9]* | *[!_$as_cr_alnum]* )
1361       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1362     esac
1363     eval $ac_envvar=\$ac_optarg
1364     export $ac_envvar ;;
1365
1366   *)
1367     # FIXME: should be removed in autoconf 3.0.
1368     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1369     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1370       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1371     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1372     ;;
1373
1374   esac
1375 done
1376
1377 if test -n "$ac_prev"; then
1378   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1379   as_fn_error $? "missing argument to $ac_option"
1380 fi
1381
1382 if test -n "$ac_unrecognized_opts"; then
1383   case $enable_option_checking in
1384     no) ;;
1385     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1386     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1387   esac
1388 fi
1389
1390 # Check all directory arguments for consistency.
1391 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1392                 datadir sysconfdir sharedstatedir localstatedir includedir \
1393                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1394                 libdir localedir mandir
1395 do
1396   eval ac_val=\$$ac_var
1397   # Remove trailing slashes.
1398   case $ac_val in
1399     */ )
1400       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1401       eval $ac_var=\$ac_val;;
1402   esac
1403   # Be sure to have absolute directory names.
1404   case $ac_val in
1405     [\\/$]* | ?:[\\/]* )  continue;;
1406     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1407   esac
1408   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1409 done
1410
1411 # There might be people who depend on the old broken behavior: `$host'
1412 # used to hold the argument of --host etc.
1413 # FIXME: To remove some day.
1414 build=$build_alias
1415 host=$host_alias
1416 target=$target_alias
1417
1418 # FIXME: To remove some day.
1419 if test "x$host_alias" != x; then
1420   if test "x$build_alias" = x; then
1421     cross_compiling=maybe
1422   elif test "x$build_alias" != "x$host_alias"; then
1423     cross_compiling=yes
1424   fi
1425 fi
1426
1427 ac_tool_prefix=
1428 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1429
1430 test "$silent" = yes && exec 6>/dev/null
1431
1432
1433 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1434 ac_ls_di=`ls -di .` &&
1435 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1436   as_fn_error $? "working directory cannot be determined"
1437 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1438   as_fn_error $? "pwd does not report name of working directory"
1439
1440
1441 # Find the source files, if location was not specified.
1442 if test -z "$srcdir"; then
1443   ac_srcdir_defaulted=yes
1444   # Try the directory containing this script, then the parent directory.
1445   ac_confdir=`$as_dirname -- "$as_myself" ||
1446 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1447          X"$as_myself" : 'X\(//\)[^/]' \| \
1448          X"$as_myself" : 'X\(//\)$' \| \
1449          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1450 $as_echo X"$as_myself" |
1451     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1452             s//\1/
1453             q
1454           }
1455           /^X\(\/\/\)[^/].*/{
1456             s//\1/
1457             q
1458           }
1459           /^X\(\/\/\)$/{
1460             s//\1/
1461             q
1462           }
1463           /^X\(\/\).*/{
1464             s//\1/
1465             q
1466           }
1467           s/.*/./; q'`
1468   srcdir=$ac_confdir
1469   if test ! -r "$srcdir/$ac_unique_file"; then
1470     srcdir=..
1471   fi
1472 else
1473   ac_srcdir_defaulted=no
1474 fi
1475 if test ! -r "$srcdir/$ac_unique_file"; then
1476   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1477   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1478 fi
1479 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1480 ac_abs_confdir=`(
1481         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1482         pwd)`
1483 # When building in place, set srcdir=.
1484 if test "$ac_abs_confdir" = "$ac_pwd"; then
1485   srcdir=.
1486 fi
1487 # Remove unnecessary trailing slashes from srcdir.
1488 # Double slashes in file names in object file debugging info
1489 # mess up M-x gdb in Emacs.
1490 case $srcdir in
1491 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1492 esac
1493 for ac_var in $ac_precious_vars; do
1494   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1495   eval ac_env_${ac_var}_value=\$${ac_var}
1496   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1497   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1498 done
1499
1500 #
1501 # Report the --help message.
1502 #
1503 if test "$ac_init_help" = "long"; then
1504   # Omit some internal or obsolete options to make the list less imposing.
1505   # This message is too long to be a string in the A/UX 3.1 sh.
1506   cat <<_ACEOF
1507 \`configure' configures subversion 1.14.0 to adapt to many kinds of systems.
1508
1509 Usage: $0 [OPTION]... [VAR=VALUE]...
1510
1511 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1512 VAR=VALUE.  See below for descriptions of some of the useful variables.
1513
1514 Defaults for the options are specified in brackets.
1515
1516 Configuration:
1517   -h, --help              display this help and exit
1518       --help=short        display options specific to this package
1519       --help=recursive    display the short help of all the included packages
1520   -V, --version           display version information and exit
1521   -q, --quiet, --silent   do not print \`checking ...' messages
1522       --cache-file=FILE   cache test results in FILE [disabled]
1523   -C, --config-cache      alias for \`--cache-file=config.cache'
1524   -n, --no-create         do not create output files
1525       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1526
1527 Installation directories:
1528   --prefix=PREFIX         install architecture-independent files in PREFIX
1529                           [$ac_default_prefix]
1530   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1531                           [PREFIX]
1532
1533 By default, \`make install' will install all the files in
1534 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1535 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1536 for instance \`--prefix=\$HOME'.
1537
1538 For better control, use the options below.
1539
1540 Fine tuning of the installation directories:
1541   --bindir=DIR            user executables [EPREFIX/bin]
1542   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1543   --libexecdir=DIR        program executables [EPREFIX/libexec]
1544   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1545   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1546   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1547   --libdir=DIR            object code libraries [EPREFIX/lib]
1548   --includedir=DIR        C header files [PREFIX/include]
1549   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1550   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1551   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1552   --infodir=DIR           info documentation [DATAROOTDIR/info]
1553   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1554   --mandir=DIR            man documentation [DATAROOTDIR/man]
1555   --docdir=DIR            documentation root [DATAROOTDIR/doc/subversion]
1556   --htmldir=DIR           html documentation [DOCDIR]
1557   --dvidir=DIR            dvi documentation [DOCDIR]
1558   --pdfdir=DIR            pdf documentation [DOCDIR]
1559   --psdir=DIR             ps documentation [DOCDIR]
1560 _ACEOF
1561
1562   cat <<\_ACEOF
1563
1564 System types:
1565   --build=BUILD     configure for building on BUILD [guessed]
1566   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1567   --target=TARGET   configure for building compilers for TARGET [HOST]
1568 _ACEOF
1569 fi
1570
1571 if test -n "$ac_init_help"; then
1572   case $ac_init_help in
1573      short | recursive ) echo "Configuration of subversion 1.14.0:";;
1574    esac
1575   cat <<\_ACEOF
1576
1577 Optional Features:
1578   --disable-option-checking  ignore unrecognized --enable/--with options
1579   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1580   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1581   --enable-apache-whitelist=VER
1582                           Whitelist a particular Apache version number,
1583                           typically used to enable the use of a old version
1584                           patched by a distribution.
1585   --enable-broken-httpd-auth
1586                           Force build against httpd 2.4 with broken auth.
1587                           (This is not recommended as Subversion will be
1588                           vulnerable to CVE-2015-3184.)
1589   --enable-sqlite-compatibility-version=X.Y.Z
1590                           Allow binary to run against SQLite as old as ARG
1591   --enable-shared[=PKGS]  build shared libraries [default=yes]
1592   --enable-static[=PKGS]  build static libraries [default=yes]
1593   --enable-fast-install[=PKGS]
1594                           optimize for fast installation [default=yes]
1595   --disable-libtool-lock  avoid locking (might break parallel builds)
1596   --enable-experimental-libtool
1597                           Use APR's libtool
1598   --enable-static         Build static libraries
1599   --enable-shared         Build shared libraries
1600   --enable-all-static     Build completely static (standalone) binaries.
1601   --enable-local-library-preloading
1602                           Enable preloading of locally built libraries in
1603                           locally built executables. This may be necessary for
1604                           testing prior to installation on some platforms. It
1605                           does not work on some platforms (Darwin, OpenBSD,
1606                           ...).
1607   --enable-bdb6           Allow building against BDB 6+. See
1608                           --with-berkeley-db for specifying the location of
1609                           the Berkeley DB installation. Using BDB 6 will fail
1610                           if this option is not used.
1611   --disable-keychain      Disable use of Mac OS KeyChain for auth credentials
1612   --enable-ev2-impl       Use Ev2 implementations, where available
1613                           [EXPERIMENTAL]
1614   --disable-nls           Disable gettext functionality
1615   --enable-plaintext-password-storage
1616                           Enable on-disk caching of plaintext passwords and
1617                           passphrases. (Enabling this functionality will not
1618                           force Subversion to store passwords in plaintext,
1619                           but does permit users to explicitly allow that
1620                           behavior via runtime configuration.)
1621   --enable-debug          Turn on debugging
1622   --enable-optimize       Turn on optimizations
1623   --enable-disallowing-of-undefined-references
1624                           Use -Wl,--no-undefined flag during linking of some
1625                           libraries to disallow undefined references
1626   --enable-maintainer-mode
1627                           Turn on debugging and very strict compile-time
1628                           warnings
1629   --disable-full-version-match
1630                           Disable the full version match rules when checking
1631                           Subversion library compatibility.
1632   --enable-mod-activation Enable mod_dav_svn in httpd.conf
1633   --enable-gcov           Turn on gcov coverage testing (GCC only).
1634   --enable-gprof          Produce gprof profiling data in 'gmon.out' (GCC
1635                           only).
1636   --enable-runtime-module-search
1637                           Turn on dynamic loading of RA/FS libraries including
1638                           third-party FS libraries
1639   --enable-svnxx          Enable compilation of the C++ bindings (requires
1640                           C++)
1641   --enable-svnxx-tests    Enable compilation of tests for the C++ bindings
1642                           (implies --enable-svnxx, requires Boost and
1643                           Boost.Test)
1644   --enable-javahl         Enable compilation of Java high-level bindings
1645                           (requires C++)
1646
1647 Optional Packages:
1648   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1649   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1650   --with-apr=PATH         prefix for installed APR or the full path to
1651                              apr-config
1652   --with-apr-util=PATH    prefix for installed APU or the full path to
1653                              apu-config
1654   --with-serf=PREFIX      Serf HTTP client library (enabled by default if
1655                           found)
1656   --with-apr_memcache=PREFIX
1657                           Standalone apr_memcache client library
1658   --with-apxs[=FILE]      Build shared Apache modules. FILE is the optional
1659                           pathname to the Apache apxs tool; defaults to
1660                           "apxs".
1661   --with-apache-libexecdir[=PATH]
1662                           Install Apache modules to Apache's configured
1663                           modules directory instead of LIBEXECDIR; if PATH is
1664                           given, install to PATH.
1665   --with-sqlite=PREFIX    Use installed SQLite library or amalgamation file.
1666   --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1667                           both]
1668   --with-aix-soname=aix|svr4|both
1669                           shared library versioning (aka "SONAME") variant to
1670                           provide on AIX, [default=aix].
1671   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1672   --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
1673                           compiler's sysroot if not specified).
1674   --with-trang=PATH       Specify the command to run the trang schema
1675                           converter
1676   --with-doxygen=PATH     Specify the command to run doxygen
1677   --with-expat=INCLUDES:LIB_SEARCH_DIRS:LIBS
1678                           Specify location of Expat
1679   --with-berkeley-db[=HEADER:INCLUDES:LIB_SEARCH_DIRS:LIBS]
1680                           The Subversion Berkeley DB based filesystem library
1681                           requires Berkeley DB $db_version or $db_alt_version.
1682                           If you specify `--without-berkeley-db', that library
1683                           will not be built. If you omit the argument of this
1684                           option completely, the configure script will use
1685                           Berkeley DB used by APR-UTIL.
1686   --with-sasl=PATH        Compile with libsasl2 in PATH
1687   --without-gpg-agent     Disable support for GPG-Agent
1688   --with-old-gnome-keyring
1689                           Enable old GNOME Keyring for auth credentials
1690                           (prefer --with-gnome-keyring)
1691   --with-gnome-keyring    Enable GNOME Keyring for auth credentials (enabled
1692                           by default if found)
1693   --with-libmagic=PREFIX  libmagic filetype detection library
1694   --with-kwallet[=PATH|INCDIR:LIBDIR]
1695                           Enable use of KWallet (KDE 5 or 4) for auth
1696                           credentials. PATH is the KDE install path,
1697                           alternatively INCDIR:LIBDIR are the header and
1698                           library install paths.
1699   --with-editor=PATH      Specify a default editor for the subversion client.
1700   --with-zlib=PREFIX      zlib compression library
1701   --with-lz4=PREFIX|internal
1702                           look for lz4 in PREFIX or use the internal code
1703   --with-utf8proc=PREFIX|internal
1704                           look for utf8proc in PREFIX or use the internal code
1705   --with-jdk=PATH         Try to use 'PATH/include' to find the JNI headers.
1706                           If PATH is not specified, look for a Java
1707                           Development Kit at JAVA_HOME.
1708   --with-jikes=PATH       Deprecated. Provided for backward compatibility.
1709   --with-swig=PATH        Try to use 'PATH/bin/swig' to build the swig
1710                           bindings. If PATH is not specified, look for a
1711                           'swig' binary in your PATH.
1712   --with-py3c=PREFIX      py3c python extension compatibility library
1713   --with-ruby-sitedir=SITEDIR
1714                           install Ruby bindings in SITEDIR (default is same as
1715                           ruby's one)
1716   --with-ruby-test-verbose=LEVEL
1717                           how to use output level for Ruby bindings tests
1718                           (default is normal)
1719   --with-ctypesgen=PATH   Specify the path to ctypesgen. This can either be
1720                           the full path to a ctypesgen installation, the full
1721                           path to a ctypesgen source tree or the full path to
1722                           ctypesgen.py.
1723   --with-boost[=ARG]      use Boost library from a standard location
1724                           (ARG=yes), from the specified location (ARG=<path>),
1725                           or disable it (ARG=no) [ARG=yes]
1726   --with-boost-libdir=LIB_DIR
1727                           Force given directory for boost libraries. Note that
1728                           this will override library path detection, so use
1729                           this parameter only if default library detection
1730                           fails and you know exactly where your boost
1731                           libraries are located.
1732   --with-boost-unit-test-framework[=special-lib]
1733                           use the Unit_Test_Framework library from boost - it
1734                           is possible to specify a certain library for the
1735                           linker e.g.
1736                           --with-boost-unit-test-framework=boost_unit_test_framework-gcc
1737   --with-junit=PATH       Specify a path to the junit JAR file.
1738
1739 Some influential environment variables:
1740   CC          C compiler command
1741   CFLAGS      C compiler flags
1742   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1743               nonstandard directory <lib dir>
1744   LIBS        libraries to pass to the linker, e.g. -l<library>
1745   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1746               you have headers in a nonstandard directory <include dir>
1747   CXX         C++ compiler command
1748   CXXFLAGS    C++ compiler flags
1749   CPP         C preprocessor
1750   LT_SYS_LIBRARY_PATH
1751               User-defined run-time library search path.
1752   CXXCPP      C++ preprocessor
1753   PYTHON      Python interpreter command
1754   SWIG_FEATURES
1755               SWIG feature flags common to all bindings
1756   SWIG_RB_FEATURES
1757               SWIG feature flags specific to Ruby bindings
1758   SWIG_PL_FEATURES
1759               SWIG feature flags specific to Perl bindings
1760   SWIG_PY_FEATURES
1761               SWIG feature flags specific to Python bindings
1762
1763 Use these variables to override the choices made by `configure' or to help
1764 it to find libraries and programs with nonstandard names/locations.
1765
1766 Report bugs to <http://subversion.apache.org/>.
1767 _ACEOF
1768 ac_status=$?
1769 fi
1770
1771 if test "$ac_init_help" = "recursive"; then
1772   # If there are subdirs, report their specific --help.
1773   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1774     test -d "$ac_dir" ||
1775       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1776       continue
1777     ac_builddir=.
1778
1779 case "$ac_dir" in
1780 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1781 *)
1782   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1783   # A ".." for each directory in $ac_dir_suffix.
1784   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1785   case $ac_top_builddir_sub in
1786   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1787   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1788   esac ;;
1789 esac
1790 ac_abs_top_builddir=$ac_pwd
1791 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1792 # for backward compatibility:
1793 ac_top_builddir=$ac_top_build_prefix
1794
1795 case $srcdir in
1796   .)  # We are building in place.
1797     ac_srcdir=.
1798     ac_top_srcdir=$ac_top_builddir_sub
1799     ac_abs_top_srcdir=$ac_pwd ;;
1800   [\\/]* | ?:[\\/]* )  # Absolute name.
1801     ac_srcdir=$srcdir$ac_dir_suffix;
1802     ac_top_srcdir=$srcdir
1803     ac_abs_top_srcdir=$srcdir ;;
1804   *) # Relative name.
1805     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1806     ac_top_srcdir=$ac_top_build_prefix$srcdir
1807     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1808 esac
1809 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1810
1811     cd "$ac_dir" || { ac_status=$?; continue; }
1812     # Check for guested configure.
1813     if test -f "$ac_srcdir/configure.gnu"; then
1814       echo &&
1815       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1816     elif test -f "$ac_srcdir/configure"; then
1817       echo &&
1818       $SHELL "$ac_srcdir/configure" --help=recursive
1819     else
1820       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1821     fi || ac_status=$?
1822     cd "$ac_pwd" || { ac_status=$?; break; }
1823   done
1824 fi
1825
1826 test -n "$ac_init_help" && exit $ac_status
1827 if $ac_init_version; then
1828   cat <<\_ACEOF
1829 subversion configure 1.14.0
1830 generated by GNU Autoconf 2.69
1831
1832 Copyright (C) 2012 Free Software Foundation, Inc.
1833 This configure script is free software; the Free Software Foundation
1834 gives unlimited permission to copy, distribute and modify it.
1835 _ACEOF
1836   exit
1837 fi
1838
1839 ## ------------------------ ##
1840 ## Autoconf initialization. ##
1841 ## ------------------------ ##
1842
1843 # ac_fn_c_try_compile LINENO
1844 # --------------------------
1845 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1846 ac_fn_c_try_compile ()
1847 {
1848   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1849   rm -f conftest.$ac_objext
1850   if { { ac_try="$ac_compile"
1851 case "(($ac_try" in
1852   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1853   *) ac_try_echo=$ac_try;;
1854 esac
1855 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1856 $as_echo "$ac_try_echo"; } >&5
1857   (eval "$ac_compile") 2>conftest.err
1858   ac_status=$?
1859   if test -s conftest.err; then
1860     grep -v '^ *+' conftest.err >conftest.er1
1861     cat conftest.er1 >&5
1862     mv -f conftest.er1 conftest.err
1863   fi
1864   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1865   test $ac_status = 0; } && {
1866          test -z "$ac_c_werror_flag" ||
1867          test ! -s conftest.err
1868        } && test -s conftest.$ac_objext; then :
1869   ac_retval=0
1870 else
1871   $as_echo "$as_me: failed program was:" >&5
1872 sed 's/^/| /' conftest.$ac_ext >&5
1873
1874         ac_retval=1
1875 fi
1876   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1877   as_fn_set_status $ac_retval
1878
1879 } # ac_fn_c_try_compile
1880
1881 # ac_fn_c_try_link LINENO
1882 # -----------------------
1883 # Try to link conftest.$ac_ext, and return whether this succeeded.
1884 ac_fn_c_try_link ()
1885 {
1886   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1887   rm -f conftest.$ac_objext conftest$ac_exeext
1888   if { { ac_try="$ac_link"
1889 case "(($ac_try" in
1890   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1891   *) ac_try_echo=$ac_try;;
1892 esac
1893 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1894 $as_echo "$ac_try_echo"; } >&5
1895   (eval "$ac_link") 2>conftest.err
1896   ac_status=$?
1897   if test -s conftest.err; then
1898     grep -v '^ *+' conftest.err >conftest.er1
1899     cat conftest.er1 >&5
1900     mv -f conftest.er1 conftest.err
1901   fi
1902   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1903   test $ac_status = 0; } && {
1904          test -z "$ac_c_werror_flag" ||
1905          test ! -s conftest.err
1906        } && test -s conftest$ac_exeext && {
1907          test "$cross_compiling" = yes ||
1908          test -x conftest$ac_exeext
1909        }; then :
1910   ac_retval=0
1911 else
1912   $as_echo "$as_me: failed program was:" >&5
1913 sed 's/^/| /' conftest.$ac_ext >&5
1914
1915         ac_retval=1
1916 fi
1917   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1918   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1919   # interfere with the next link command; also delete a directory that is
1920   # left behind by Apple's compiler.  We do this before executing the actions.
1921   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1922   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1923   as_fn_set_status $ac_retval
1924
1925 } # ac_fn_c_try_link
1926
1927 # ac_fn_cxx_try_compile LINENO
1928 # ----------------------------
1929 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1930 ac_fn_cxx_try_compile ()
1931 {
1932   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1933   rm -f conftest.$ac_objext
1934   if { { ac_try="$ac_compile"
1935 case "(($ac_try" in
1936   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1937   *) ac_try_echo=$ac_try;;
1938 esac
1939 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1940 $as_echo "$ac_try_echo"; } >&5
1941   (eval "$ac_compile") 2>conftest.err
1942   ac_status=$?
1943   if test -s conftest.err; then
1944     grep -v '^ *+' conftest.err >conftest.er1
1945     cat conftest.er1 >&5
1946     mv -f conftest.er1 conftest.err
1947   fi
1948   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1949   test $ac_status = 0; } && {
1950          test -z "$ac_cxx_werror_flag" ||
1951          test ! -s conftest.err
1952        } && test -s conftest.$ac_objext; then :
1953   ac_retval=0
1954 else
1955   $as_echo "$as_me: failed program was:" >&5
1956 sed 's/^/| /' conftest.$ac_ext >&5
1957
1958         ac_retval=1
1959 fi
1960   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1961   as_fn_set_status $ac_retval
1962
1963 } # ac_fn_cxx_try_compile
1964
1965 # ac_fn_cxx_try_link LINENO
1966 # -------------------------
1967 # Try to link conftest.$ac_ext, and return whether this succeeded.
1968 ac_fn_cxx_try_link ()
1969 {
1970   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1971   rm -f conftest.$ac_objext conftest$ac_exeext
1972   if { { ac_try="$ac_link"
1973 case "(($ac_try" in
1974   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1975   *) ac_try_echo=$ac_try;;
1976 esac
1977 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1978 $as_echo "$ac_try_echo"; } >&5
1979   (eval "$ac_link") 2>conftest.err
1980   ac_status=$?
1981   if test -s conftest.err; then
1982     grep -v '^ *+' conftest.err >conftest.er1
1983     cat conftest.er1 >&5
1984     mv -f conftest.er1 conftest.err
1985   fi
1986   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1987   test $ac_status = 0; } && {
1988          test -z "$ac_cxx_werror_flag" ||
1989          test ! -s conftest.err
1990        } && test -s conftest$ac_exeext && {
1991          test "$cross_compiling" = yes ||
1992          test -x conftest$ac_exeext
1993        }; then :
1994   ac_retval=0
1995 else
1996   $as_echo "$as_me: failed program was:" >&5
1997 sed 's/^/| /' conftest.$ac_ext >&5
1998
1999         ac_retval=1
2000 fi
2001   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2002   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2003   # interfere with the next link command; also delete a directory that is
2004   # left behind by Apple's compiler.  We do this before executing the actions.
2005   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2006   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2007   as_fn_set_status $ac_retval
2008
2009 } # ac_fn_cxx_try_link
2010
2011 # ac_fn_c_try_cpp LINENO
2012 # ----------------------
2013 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2014 ac_fn_c_try_cpp ()
2015 {
2016   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2017   if { { ac_try="$ac_cpp conftest.$ac_ext"
2018 case "(($ac_try" in
2019   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2020   *) ac_try_echo=$ac_try;;
2021 esac
2022 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2023 $as_echo "$ac_try_echo"; } >&5
2024   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2025   ac_status=$?
2026   if test -s conftest.err; then
2027     grep -v '^ *+' conftest.err >conftest.er1
2028     cat conftest.er1 >&5
2029     mv -f conftest.er1 conftest.err
2030   fi
2031   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2032   test $ac_status = 0; } > conftest.i && {
2033          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2034          test ! -s conftest.err
2035        }; then :
2036   ac_retval=0
2037 else
2038   $as_echo "$as_me: failed program was:" >&5
2039 sed 's/^/| /' conftest.$ac_ext >&5
2040
2041     ac_retval=1
2042 fi
2043   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2044   as_fn_set_status $ac_retval
2045
2046 } # ac_fn_c_try_cpp
2047
2048 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2049 # -------------------------------------------------------
2050 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2051 # the include files in INCLUDES and setting the cache variable VAR
2052 # accordingly.
2053 ac_fn_c_check_header_mongrel ()
2054 {
2055   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2056   if eval \${$3+:} false; then :
2057   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2058 $as_echo_n "checking for $2... " >&6; }
2059 if eval \${$3+:} false; then :
2060   $as_echo_n "(cached) " >&6
2061 fi
2062 eval ac_res=\$$3
2063                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2064 $as_echo "$ac_res" >&6; }
2065 else
2066   # Is the header compilable?
2067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2068 $as_echo_n "checking $2 usability... " >&6; }
2069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2070 /* end confdefs.h.  */
2071 $4
2072 #include <$2>
2073 _ACEOF
2074 if ac_fn_c_try_compile "$LINENO"; then :
2075   ac_header_compiler=yes
2076 else
2077   ac_header_compiler=no
2078 fi
2079 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2081 $as_echo "$ac_header_compiler" >&6; }
2082
2083 # Is the header present?
2084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2085 $as_echo_n "checking $2 presence... " >&6; }
2086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2087 /* end confdefs.h.  */
2088 #include <$2>
2089 _ACEOF
2090 if ac_fn_c_try_cpp "$LINENO"; then :
2091   ac_header_preproc=yes
2092 else
2093   ac_header_preproc=no
2094 fi
2095 rm -f conftest.err conftest.i conftest.$ac_ext
2096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2097 $as_echo "$ac_header_preproc" >&6; }
2098
2099 # So?  What about this header?
2100 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2101   yes:no: )
2102     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2103 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2104     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2105 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2106     ;;
2107   no:yes:* )
2108     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2109 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2110     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2111 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2112     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2113 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2114     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2115 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2116     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2117 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2118 ( $as_echo "## -------------------------------------------- ##
2119 ## Report this to http://subversion.apache.org/ ##
2120 ## -------------------------------------------- ##"
2121      ) | sed "s/^/$as_me: WARNING:     /" >&2
2122     ;;
2123 esac
2124   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2125 $as_echo_n "checking for $2... " >&6; }
2126 if eval \${$3+:} false; then :
2127   $as_echo_n "(cached) " >&6
2128 else
2129   eval "$3=\$ac_header_compiler"
2130 fi
2131 eval ac_res=\$$3
2132                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2133 $as_echo "$ac_res" >&6; }
2134 fi
2135   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2136
2137 } # ac_fn_c_check_header_mongrel
2138
2139 # ac_fn_c_try_run LINENO
2140 # ----------------------
2141 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2142 # that executables *can* be run.
2143 ac_fn_c_try_run ()
2144 {
2145   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2146   if { { ac_try="$ac_link"
2147 case "(($ac_try" in
2148   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2149   *) ac_try_echo=$ac_try;;
2150 esac
2151 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2152 $as_echo "$ac_try_echo"; } >&5
2153   (eval "$ac_link") 2>&5
2154   ac_status=$?
2155   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2156   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2157   { { case "(($ac_try" in
2158   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2159   *) ac_try_echo=$ac_try;;
2160 esac
2161 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2162 $as_echo "$ac_try_echo"; } >&5
2163   (eval "$ac_try") 2>&5
2164   ac_status=$?
2165   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2166   test $ac_status = 0; }; }; then :
2167   ac_retval=0
2168 else
2169   $as_echo "$as_me: program exited with status $ac_status" >&5
2170        $as_echo "$as_me: failed program was:" >&5
2171 sed 's/^/| /' conftest.$ac_ext >&5
2172
2173        ac_retval=$ac_status
2174 fi
2175   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2176   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2177   as_fn_set_status $ac_retval
2178
2179 } # ac_fn_c_try_run
2180
2181 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2182 # -------------------------------------------------------
2183 # Tests whether HEADER exists and can be compiled using the include files in
2184 # INCLUDES, setting the cache variable VAR accordingly.
2185 ac_fn_c_check_header_compile ()
2186 {
2187   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2188   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2189 $as_echo_n "checking for $2... " >&6; }
2190 if eval \${$3+:} false; then :
2191   $as_echo_n "(cached) " >&6
2192 else
2193   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2194 /* end confdefs.h.  */
2195 $4
2196 #include <$2>
2197 _ACEOF
2198 if ac_fn_c_try_compile "$LINENO"; then :
2199   eval "$3=yes"
2200 else
2201   eval "$3=no"
2202 fi
2203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2204 fi
2205 eval ac_res=\$$3
2206                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2207 $as_echo "$ac_res" >&6; }
2208   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2209
2210 } # ac_fn_c_check_header_compile
2211
2212 # ac_fn_c_check_func LINENO FUNC VAR
2213 # ----------------------------------
2214 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2215 ac_fn_c_check_func ()
2216 {
2217   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2218   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2219 $as_echo_n "checking for $2... " >&6; }
2220 if eval \${$3+:} false; then :
2221   $as_echo_n "(cached) " >&6
2222 else
2223   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2224 /* end confdefs.h.  */
2225 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2226    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2227 #define $2 innocuous_$2
2228
2229 /* System header to define __stub macros and hopefully few prototypes,
2230     which can conflict with char $2 (); below.
2231     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2232     <limits.h> exists even on freestanding compilers.  */
2233
2234 #ifdef __STDC__
2235 # include <limits.h>
2236 #else
2237 # include <assert.h>
2238 #endif
2239
2240 #undef $2
2241
2242 /* Override any GCC internal prototype to avoid an error.
2243    Use char because int might match the return type of a GCC
2244    builtin and then its argument prototype would still apply.  */
2245 #ifdef __cplusplus
2246 extern "C"
2247 #endif
2248 char $2 ();
2249 /* The GNU C library defines this for functions which it implements
2250     to always fail with ENOSYS.  Some functions are actually named
2251     something starting with __ and the normal name is an alias.  */
2252 #if defined __stub_$2 || defined __stub___$2
2253 choke me
2254 #endif
2255
2256 int
2257 main ()
2258 {
2259 return $2 ();
2260   ;
2261   return 0;
2262 }
2263 _ACEOF
2264 if ac_fn_c_try_link "$LINENO"; then :
2265   eval "$3=yes"
2266 else
2267   eval "$3=no"
2268 fi
2269 rm -f core conftest.err conftest.$ac_objext \
2270     conftest$ac_exeext conftest.$ac_ext
2271 fi
2272 eval ac_res=\$$3
2273                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2274 $as_echo "$ac_res" >&6; }
2275   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2276
2277 } # ac_fn_c_check_func
2278
2279 # ac_fn_cxx_try_cpp LINENO
2280 # ------------------------
2281 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2282 ac_fn_cxx_try_cpp ()
2283 {
2284   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2285   if { { ac_try="$ac_cpp conftest.$ac_ext"
2286 case "(($ac_try" in
2287   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2288   *) ac_try_echo=$ac_try;;
2289 esac
2290 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2291 $as_echo "$ac_try_echo"; } >&5
2292   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2293   ac_status=$?
2294   if test -s conftest.err; then
2295     grep -v '^ *+' conftest.err >conftest.er1
2296     cat conftest.er1 >&5
2297     mv -f conftest.er1 conftest.err
2298   fi
2299   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2300   test $ac_status = 0; } > conftest.i && {
2301          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2302          test ! -s conftest.err
2303        }; then :
2304   ac_retval=0
2305 else
2306   $as_echo "$as_me: failed program was:" >&5
2307 sed 's/^/| /' conftest.$ac_ext >&5
2308
2309     ac_retval=1
2310 fi
2311   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2312   as_fn_set_status $ac_retval
2313
2314 } # ac_fn_cxx_try_cpp
2315
2316 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2317 # -------------------------------------------
2318 # Tests whether TYPE exists after having included INCLUDES, setting cache
2319 # variable VAR accordingly.
2320 ac_fn_c_check_type ()
2321 {
2322   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2323   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2324 $as_echo_n "checking for $2... " >&6; }
2325 if eval \${$3+:} false; then :
2326   $as_echo_n "(cached) " >&6
2327 else
2328   eval "$3=no"
2329   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2330 /* end confdefs.h.  */
2331 $4
2332 int
2333 main ()
2334 {
2335 if (sizeof ($2))
2336          return 0;
2337   ;
2338   return 0;
2339 }
2340 _ACEOF
2341 if ac_fn_c_try_compile "$LINENO"; then :
2342   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2343 /* end confdefs.h.  */
2344 $4
2345 int
2346 main ()
2347 {
2348 if (sizeof (($2)))
2349             return 0;
2350   ;
2351   return 0;
2352 }
2353 _ACEOF
2354 if ac_fn_c_try_compile "$LINENO"; then :
2355
2356 else
2357   eval "$3=yes"
2358 fi
2359 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2360 fi
2361 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2362 fi
2363 eval ac_res=\$$3
2364                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2365 $as_echo "$ac_res" >&6; }
2366   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2367
2368 } # ac_fn_c_check_type
2369 cat >config.log <<_ACEOF
2370 This file contains any messages produced by compilers while
2371 running configure, to aid debugging if configure makes a mistake.
2372
2373 It was created by subversion $as_me 1.14.0, which was
2374 generated by GNU Autoconf 2.69.  Invocation command line was
2375
2376   $ $0 $@
2377
2378 _ACEOF
2379 exec 5>>config.log
2380 {
2381 cat <<_ASUNAME
2382 ## --------- ##
2383 ## Platform. ##
2384 ## --------- ##
2385
2386 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2387 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2388 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2389 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2390 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2391
2392 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2393 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2394
2395 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2396 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2397 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2398 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2399 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2400 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2401 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2402
2403 _ASUNAME
2404
2405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2406 for as_dir in $PATH
2407 do
2408   IFS=$as_save_IFS
2409   test -z "$as_dir" && as_dir=.
2410     $as_echo "PATH: $as_dir"
2411   done
2412 IFS=$as_save_IFS
2413
2414 } >&5
2415
2416 cat >&5 <<_ACEOF
2417
2418
2419 ## ----------- ##
2420 ## Core tests. ##
2421 ## ----------- ##
2422
2423 _ACEOF
2424
2425
2426 # Keep a trace of the command line.
2427 # Strip out --no-create and --no-recursion so they do not pile up.
2428 # Strip out --silent because we don't want to record it for future runs.
2429 # Also quote any args containing shell meta-characters.
2430 # Make two passes to allow for proper duplicate-argument suppression.
2431 ac_configure_args=
2432 ac_configure_args0=
2433 ac_configure_args1=
2434 ac_must_keep_next=false
2435 for ac_pass in 1 2
2436 do
2437   for ac_arg
2438   do
2439     case $ac_arg in
2440     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2441     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2442     | -silent | --silent | --silen | --sile | --sil)
2443       continue ;;
2444     *\'*)
2445       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2446     esac
2447     case $ac_pass in
2448     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2449     2)
2450       as_fn_append ac_configure_args1 " '$ac_arg'"
2451       if test $ac_must_keep_next = true; then
2452         ac_must_keep_next=false # Got value, back to normal.
2453       else
2454         case $ac_arg in
2455           *=* | --config-cache | -C | -disable-* | --disable-* \
2456           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2457           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2458           | -with-* | --with-* | -without-* | --without-* | --x)
2459             case "$ac_configure_args0 " in
2460               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2461             esac
2462             ;;
2463           -* ) ac_must_keep_next=true ;;
2464         esac
2465       fi
2466       as_fn_append ac_configure_args " '$ac_arg'"
2467       ;;
2468     esac
2469   done
2470 done
2471 { ac_configure_args0=; unset ac_configure_args0;}
2472 { ac_configure_args1=; unset ac_configure_args1;}
2473
2474 # When interrupted or exit'd, cleanup temporary files, and complete
2475 # config.log.  We remove comments because anyway the quotes in there
2476 # would cause problems or look ugly.
2477 # WARNING: Use '\'' to represent an apostrophe within the trap.
2478 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2479 trap 'exit_status=$?
2480   # Save into config.log some information that might help in debugging.
2481   {
2482     echo
2483
2484     $as_echo "## ---------------- ##
2485 ## Cache variables. ##
2486 ## ---------------- ##"
2487     echo
2488     # The following way of writing the cache mishandles newlines in values,
2489 (
2490   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2491     eval ac_val=\$$ac_var
2492     case $ac_val in #(
2493     *${as_nl}*)
2494       case $ac_var in #(
2495       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2496 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2497       esac
2498       case $ac_var in #(
2499       _ | IFS | as_nl) ;; #(
2500       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2501       *) { eval $ac_var=; unset $ac_var;} ;;
2502       esac ;;
2503     esac
2504   done
2505   (set) 2>&1 |
2506     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2507     *${as_nl}ac_space=\ *)
2508       sed -n \
2509         "s/'\''/'\''\\\\'\'''\''/g;
2510           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2511       ;; #(
2512     *)
2513       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2514       ;;
2515     esac |
2516     sort
2517 )
2518     echo
2519
2520     $as_echo "## ----------------- ##
2521 ## Output variables. ##
2522 ## ----------------- ##"
2523     echo
2524     for ac_var in $ac_subst_vars
2525     do
2526       eval ac_val=\$$ac_var
2527       case $ac_val in
2528       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2529       esac
2530       $as_echo "$ac_var='\''$ac_val'\''"
2531     done | sort
2532     echo
2533
2534     if test -n "$ac_subst_files"; then
2535       $as_echo "## ------------------- ##
2536 ## File substitutions. ##
2537 ## ------------------- ##"
2538       echo
2539       for ac_var in $ac_subst_files
2540       do
2541         eval ac_val=\$$ac_var
2542         case $ac_val in
2543         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2544         esac
2545         $as_echo "$ac_var='\''$ac_val'\''"
2546       done | sort
2547       echo
2548     fi
2549
2550     if test -s confdefs.h; then
2551       $as_echo "## ----------- ##
2552 ## confdefs.h. ##
2553 ## ----------- ##"
2554       echo
2555       cat confdefs.h
2556       echo
2557     fi
2558     test "$ac_signal" != 0 &&
2559       $as_echo "$as_me: caught signal $ac_signal"
2560     $as_echo "$as_me: exit $exit_status"
2561   } >&5
2562   rm -f core *.core core.conftest.* &&
2563     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2564     exit $exit_status
2565 ' 0
2566 for ac_signal in 1 2 13 15; do
2567   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2568 done
2569 ac_signal=0
2570
2571 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2572 rm -f -r conftest* confdefs.h
2573
2574 $as_echo "/* confdefs.h */" > confdefs.h
2575
2576 # Predefined preprocessor variables.
2577
2578 cat >>confdefs.h <<_ACEOF
2579 #define PACKAGE_NAME "$PACKAGE_NAME"
2580 _ACEOF
2581
2582 cat >>confdefs.h <<_ACEOF
2583 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2584 _ACEOF
2585
2586 cat >>confdefs.h <<_ACEOF
2587 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2588 _ACEOF
2589
2590 cat >>confdefs.h <<_ACEOF
2591 #define PACKAGE_STRING "$PACKAGE_STRING"
2592 _ACEOF
2593
2594 cat >>confdefs.h <<_ACEOF
2595 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2596 _ACEOF
2597
2598 cat >>confdefs.h <<_ACEOF
2599 #define PACKAGE_URL "$PACKAGE_URL"
2600 _ACEOF
2601
2602
2603 # Let the site file select an alternate cache file if it wants to.
2604 # Prefer an explicitly selected file to automatically selected ones.
2605 ac_site_file1=NONE
2606 ac_site_file2=NONE
2607 if test -n "$CONFIG_SITE"; then
2608   # We do not want a PATH search for config.site.
2609   case $CONFIG_SITE in #((
2610     -*)  ac_site_file1=./$CONFIG_SITE;;
2611     */*) ac_site_file1=$CONFIG_SITE;;
2612     *)   ac_site_file1=./$CONFIG_SITE;;
2613   esac
2614 elif test "x$prefix" != xNONE; then
2615   ac_site_file1=$prefix/share/config.site
2616   ac_site_file2=$prefix/etc/config.site
2617 else
2618   ac_site_file1=$ac_default_prefix/share/config.site
2619   ac_site_file2=$ac_default_prefix/etc/config.site
2620 fi
2621 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2622 do
2623   test "x$ac_site_file" = xNONE && continue
2624   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2625     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2626 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2627     sed 's/^/| /' "$ac_site_file" >&5
2628     . "$ac_site_file" \
2629       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2630 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2631 as_fn_error $? "failed to load site script $ac_site_file
2632 See \`config.log' for more details" "$LINENO" 5; }
2633   fi
2634 done
2635
2636 if test -r "$cache_file"; then
2637   # Some versions of bash will fail to source /dev/null (special files
2638   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2639   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2640     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2641 $as_echo "$as_me: loading cache $cache_file" >&6;}
2642     case $cache_file in
2643       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2644       *)                      . "./$cache_file";;
2645     esac
2646   fi
2647 else
2648   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2649 $as_echo "$as_me: creating cache $cache_file" >&6;}
2650   >$cache_file
2651 fi
2652
2653 # Check that the precious variables saved in the cache have kept the same
2654 # value.
2655 ac_cache_corrupted=false
2656 for ac_var in $ac_precious_vars; do
2657   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2658   eval ac_new_set=\$ac_env_${ac_var}_set
2659   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2660   eval ac_new_val=\$ac_env_${ac_var}_value
2661   case $ac_old_set,$ac_new_set in
2662     set,)
2663       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2664 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2665       ac_cache_corrupted=: ;;
2666     ,set)
2667       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2668 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2669       ac_cache_corrupted=: ;;
2670     ,);;
2671     *)
2672       if test "x$ac_old_val" != "x$ac_new_val"; then
2673         # differences in whitespace do not lead to failure.
2674         ac_old_val_w=`echo x $ac_old_val`
2675         ac_new_val_w=`echo x $ac_new_val`
2676         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2677           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2678 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2679           ac_cache_corrupted=:
2680         else
2681           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2682 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2683           eval $ac_var=\$ac_old_val
2684         fi
2685         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2686 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2687         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2688 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2689       fi;;
2690   esac
2691   # Pass precious variables to config.status.
2692   if test "$ac_new_set" = set; then
2693     case $ac_new_val in
2694     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2695     *) ac_arg=$ac_var=$ac_new_val ;;
2696     esac
2697     case " $ac_configure_args " in
2698       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2699       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2700     esac
2701   fi
2702 done
2703 if $ac_cache_corrupted; then
2704   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2705 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2706   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2707 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2708   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2709 fi
2710 ## -------------------- ##
2711 ## Main body of script. ##
2712 ## -------------------- ##
2713
2714 ac_ext=c
2715 ac_cpp='$CPP $CPPFLAGS'
2716 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2717 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2718 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2719
2720
2721
2722
2723 ac_aux_dir=
2724 for ac_dir in build "$srcdir"/build; do
2725   if test -f "$ac_dir/install-sh"; then
2726     ac_aux_dir=$ac_dir
2727     ac_install_sh="$ac_aux_dir/install-sh -c"
2728     break
2729   elif test -f "$ac_dir/install.sh"; then
2730     ac_aux_dir=$ac_dir
2731     ac_install_sh="$ac_aux_dir/install.sh -c"
2732     break
2733   elif test -f "$ac_dir/shtool"; then
2734     ac_aux_dir=$ac_dir
2735     ac_install_sh="$ac_aux_dir/shtool install -c"
2736     break
2737   fi
2738 done
2739 if test -z "$ac_aux_dir"; then
2740   as_fn_error $? "cannot find install-sh, install.sh, or shtool in build \"$srcdir\"/build" "$LINENO" 5
2741 fi
2742
2743 # These three variables are undocumented and unsupported,
2744 # and are intended to be withdrawn in a future Autoconf release.
2745 # They can cause serious problems if a builder's source tree is in a directory
2746 # whose full name contains unusual characters.
2747 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2748 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2749 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2750
2751
2752
2753 { $as_echo "$as_me:${as_lineno-$LINENO}: Configuring Subversion 1.14.0" >&5
2754 $as_echo "$as_me: Configuring Subversion 1.14.0" >&6;}
2755
2756 abs_srcdir="`cd $srcdir && pwd`"
2757
2758 abs_builddir="`pwd`"
2759
2760 if test "$abs_srcdir" = "$abs_builddir"; then
2761   canonicalized_srcdir=""
2762 else
2763   canonicalized_srcdir="$srcdir/"
2764 fi
2765
2766
2767 SWIG_LDFLAGS="$LDFLAGS"
2768
2769
2770 # Generate config.nice early (before the arguments are munged)
2771
2772   { $as_echo "$as_me:${as_lineno-$LINENO}: creating config.nice" >&5
2773 $as_echo "$as_me: creating config.nice" >&6;}
2774   # This little dance satisfies Cygwin, which cannot overwrite in-use files.
2775   if test -f "config.nice"; then
2776     mv "config.nice" "config.nice.old"
2777   fi
2778
2779   cat >"config.nice" <<EOF
2780 #! /bin/sh
2781 #
2782 # Created by configure
2783
2784 '$0' $ac_configure_args "\$@"
2785 EOF
2786
2787   chmod +x "config.nice"
2788   rm -f "config.nice.old"
2789
2790
2791 # ==== Check for programs ====================================================
2792
2793 # Look for a C compiler (before anything can set CFLAGS)
2794 CUSERFLAGS="$CFLAGS"
2795 ac_ext=c
2796 ac_cpp='$CPP $CPPFLAGS'
2797 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2798 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2799 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2800 if test -n "$ac_tool_prefix"; then
2801   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2802 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2804 $as_echo_n "checking for $ac_word... " >&6; }
2805 if ${ac_cv_prog_CC+:} false; then :
2806   $as_echo_n "(cached) " >&6
2807 else
2808   if test -n "$CC"; then
2809   ac_cv_prog_CC="$CC" # Let the user override the test.
2810 else
2811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2812 for as_dir in $PATH
2813 do
2814   IFS=$as_save_IFS
2815   test -z "$as_dir" && as_dir=.
2816     for ac_exec_ext in '' $ac_executable_extensions; do
2817   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2818     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2819     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2820     break 2
2821   fi
2822 done
2823   done
2824 IFS=$as_save_IFS
2825
2826 fi
2827 fi
2828 CC=$ac_cv_prog_CC
2829 if test -n "$CC"; then
2830   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2831 $as_echo "$CC" >&6; }
2832 else
2833   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2834 $as_echo "no" >&6; }
2835 fi
2836
2837
2838 fi
2839 if test -z "$ac_cv_prog_CC"; then
2840   ac_ct_CC=$CC
2841   # Extract the first word of "gcc", so it can be a program name with args.
2842 set dummy gcc; ac_word=$2
2843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2844 $as_echo_n "checking for $ac_word... " >&6; }
2845 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2846   $as_echo_n "(cached) " >&6
2847 else
2848   if test -n "$ac_ct_CC"; then
2849   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2850 else
2851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2852 for as_dir in $PATH
2853 do
2854   IFS=$as_save_IFS
2855   test -z "$as_dir" && as_dir=.
2856     for ac_exec_ext in '' $ac_executable_extensions; do
2857   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2858     ac_cv_prog_ac_ct_CC="gcc"
2859     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2860     break 2
2861   fi
2862 done
2863   done
2864 IFS=$as_save_IFS
2865
2866 fi
2867 fi
2868 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2869 if test -n "$ac_ct_CC"; then
2870   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2871 $as_echo "$ac_ct_CC" >&6; }
2872 else
2873   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2874 $as_echo "no" >&6; }
2875 fi
2876
2877   if test "x$ac_ct_CC" = x; then
2878     CC=""
2879   else
2880     case $cross_compiling:$ac_tool_warned in
2881 yes:)
2882 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2883 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2884 ac_tool_warned=yes ;;
2885 esac
2886     CC=$ac_ct_CC
2887   fi
2888 else
2889   CC="$ac_cv_prog_CC"
2890 fi
2891
2892 if test -z "$CC"; then
2893           if test -n "$ac_tool_prefix"; then
2894     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2895 set dummy ${ac_tool_prefix}cc; ac_word=$2
2896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2897 $as_echo_n "checking for $ac_word... " >&6; }
2898 if ${ac_cv_prog_CC+:} false; then :
2899   $as_echo_n "(cached) " >&6
2900 else
2901   if test -n "$CC"; then
2902   ac_cv_prog_CC="$CC" # Let the user override the test.
2903 else
2904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2905 for as_dir in $PATH
2906 do
2907   IFS=$as_save_IFS
2908   test -z "$as_dir" && as_dir=.
2909     for ac_exec_ext in '' $ac_executable_extensions; do
2910   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2911     ac_cv_prog_CC="${ac_tool_prefix}cc"
2912     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2913     break 2
2914   fi
2915 done
2916   done
2917 IFS=$as_save_IFS
2918
2919 fi
2920 fi
2921 CC=$ac_cv_prog_CC
2922 if test -n "$CC"; then
2923   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2924 $as_echo "$CC" >&6; }
2925 else
2926   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2927 $as_echo "no" >&6; }
2928 fi
2929
2930
2931   fi
2932 fi
2933 if test -z "$CC"; then
2934   # Extract the first word of "cc", so it can be a program name with args.
2935 set dummy cc; ac_word=$2
2936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2937 $as_echo_n "checking for $ac_word... " >&6; }
2938 if ${ac_cv_prog_CC+:} false; then :
2939   $as_echo_n "(cached) " >&6
2940 else
2941   if test -n "$CC"; then
2942   ac_cv_prog_CC="$CC" # Let the user override the test.
2943 else
2944   ac_prog_rejected=no
2945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2946 for as_dir in $PATH
2947 do
2948   IFS=$as_save_IFS
2949   test -z "$as_dir" && as_dir=.
2950     for ac_exec_ext in '' $ac_executable_extensions; do
2951   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2952     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2953        ac_prog_rejected=yes
2954        continue
2955      fi
2956     ac_cv_prog_CC="cc"
2957     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2958     break 2
2959   fi
2960 done
2961   done
2962 IFS=$as_save_IFS
2963
2964 if test $ac_prog_rejected = yes; then
2965   # We found a bogon in the path, so make sure we never use it.
2966   set dummy $ac_cv_prog_CC
2967   shift
2968   if test $# != 0; then
2969     # We chose a different compiler from the bogus one.
2970     # However, it has the same basename, so the bogon will be chosen
2971     # first if we set CC to just the basename; use the full file name.
2972     shift
2973     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2974   fi
2975 fi
2976 fi
2977 fi
2978 CC=$ac_cv_prog_CC
2979 if test -n "$CC"; then
2980   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2981 $as_echo "$CC" >&6; }
2982 else
2983   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2984 $as_echo "no" >&6; }
2985 fi
2986
2987
2988 fi
2989 if test -z "$CC"; then
2990   if test -n "$ac_tool_prefix"; then
2991   for ac_prog in cl.exe
2992   do
2993     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2994 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2996 $as_echo_n "checking for $ac_word... " >&6; }
2997 if ${ac_cv_prog_CC+:} false; then :
2998   $as_echo_n "(cached) " >&6
2999 else
3000   if test -n "$CC"; then
3001   ac_cv_prog_CC="$CC" # Let the user override the test.
3002 else
3003 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3004 for as_dir in $PATH
3005 do
3006   IFS=$as_save_IFS
3007   test -z "$as_dir" && as_dir=.
3008     for ac_exec_ext in '' $ac_executable_extensions; do
3009   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3010     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3011     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3012     break 2
3013   fi
3014 done
3015   done
3016 IFS=$as_save_IFS
3017
3018 fi
3019 fi
3020 CC=$ac_cv_prog_CC
3021 if test -n "$CC"; then
3022   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3023 $as_echo "$CC" >&6; }
3024 else
3025   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3026 $as_echo "no" >&6; }
3027 fi
3028
3029
3030     test -n "$CC" && break
3031   done
3032 fi
3033 if test -z "$CC"; then
3034   ac_ct_CC=$CC
3035   for ac_prog in cl.exe
3036 do
3037   # Extract the first word of "$ac_prog", so it can be a program name with args.
3038 set dummy $ac_prog; ac_word=$2
3039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3040 $as_echo_n "checking for $ac_word... " >&6; }
3041 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3042   $as_echo_n "(cached) " >&6
3043 else
3044   if test -n "$ac_ct_CC"; then
3045   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3046 else
3047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3048 for as_dir in $PATH
3049 do
3050   IFS=$as_save_IFS
3051   test -z "$as_dir" && as_dir=.
3052     for ac_exec_ext in '' $ac_executable_extensions; do
3053   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3054     ac_cv_prog_ac_ct_CC="$ac_prog"
3055     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3056     break 2
3057   fi
3058 done
3059   done
3060 IFS=$as_save_IFS
3061
3062 fi
3063 fi
3064 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3065 if test -n "$ac_ct_CC"; then
3066   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3067 $as_echo "$ac_ct_CC" >&6; }
3068 else
3069   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3070 $as_echo "no" >&6; }
3071 fi
3072
3073
3074   test -n "$ac_ct_CC" && break
3075 done
3076
3077   if test "x$ac_ct_CC" = x; then
3078     CC=""
3079   else
3080     case $cross_compiling:$ac_tool_warned in
3081 yes:)
3082 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3083 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3084 ac_tool_warned=yes ;;
3085 esac
3086     CC=$ac_ct_CC
3087   fi
3088 fi
3089
3090 fi
3091
3092
3093 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3094 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3095 as_fn_error $? "no acceptable C compiler found in \$PATH
3096 See \`config.log' for more details" "$LINENO" 5; }
3097
3098 # Provide some information about the compiler.
3099 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3100 set X $ac_compile
3101 ac_compiler=$2
3102 for ac_option in --version -v -V -qversion; do
3103   { { ac_try="$ac_compiler $ac_option >&5"
3104 case "(($ac_try" in
3105   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3106   *) ac_try_echo=$ac_try;;
3107 esac
3108 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3109 $as_echo "$ac_try_echo"; } >&5
3110   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3111   ac_status=$?
3112   if test -s conftest.err; then
3113     sed '10a\
3114 ... rest of stderr output deleted ...
3115          10q' conftest.err >conftest.er1
3116     cat conftest.er1 >&5
3117   fi
3118   rm -f conftest.er1 conftest.err
3119   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3120   test $ac_status = 0; }
3121 done
3122
3123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3124 /* end confdefs.h.  */
3125
3126 int
3127 main ()
3128 {
3129
3130   ;
3131   return 0;
3132 }
3133 _ACEOF
3134 ac_clean_files_save=$ac_clean_files
3135 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3136 # Try to create an executable without -o first, disregard a.out.
3137 # It will help us diagnose broken compilers, and finding out an intuition
3138 # of exeext.
3139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3140 $as_echo_n "checking whether the C compiler works... " >&6; }
3141 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3142
3143 # The possible output files:
3144 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3145
3146 ac_rmfiles=
3147 for ac_file in $ac_files
3148 do
3149   case $ac_file in
3150     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3151     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3152   esac
3153 done
3154 rm -f $ac_rmfiles
3155
3156 if { { ac_try="$ac_link_default"
3157 case "(($ac_try" in
3158   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3159   *) ac_try_echo=$ac_try;;
3160 esac
3161 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3162 $as_echo "$ac_try_echo"; } >&5
3163   (eval "$ac_link_default") 2>&5
3164   ac_status=$?
3165   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3166   test $ac_status = 0; }; then :
3167   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3168 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3169 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3170 # so that the user can short-circuit this test for compilers unknown to
3171 # Autoconf.
3172 for ac_file in $ac_files ''
3173 do
3174   test -f "$ac_file" || continue
3175   case $ac_file in
3176     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3177         ;;
3178     [ab].out )
3179         # We found the default executable, but exeext='' is most
3180         # certainly right.
3181         break;;
3182     *.* )
3183         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3184         then :; else
3185            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3186         fi
3187         # We set ac_cv_exeext here because the later test for it is not
3188         # safe: cross compilers may not add the suffix if given an `-o'
3189         # argument, so we may need to know it at that point already.
3190         # Even if this section looks crufty: it has the advantage of
3191         # actually working.
3192         break;;
3193     * )
3194         break;;
3195   esac
3196 done
3197 test "$ac_cv_exeext" = no && ac_cv_exeext=
3198
3199 else
3200   ac_file=''
3201 fi
3202 if test -z "$ac_file"; then :
3203   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3204 $as_echo "no" >&6; }
3205 $as_echo "$as_me: failed program was:" >&5
3206 sed 's/^/| /' conftest.$ac_ext >&5
3207
3208 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3209 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3210 as_fn_error 77 "C compiler cannot create executables
3211 See \`config.log' for more details" "$LINENO" 5; }
3212 else
3213   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3214 $as_echo "yes" >&6; }
3215 fi
3216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3217 $as_echo_n "checking for C compiler default output file name... " >&6; }
3218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3219 $as_echo "$ac_file" >&6; }
3220 ac_exeext=$ac_cv_exeext
3221
3222 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3223 ac_clean_files=$ac_clean_files_save
3224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3225 $as_echo_n "checking for suffix of executables... " >&6; }
3226 if { { ac_try="$ac_link"
3227 case "(($ac_try" in
3228   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3229   *) ac_try_echo=$ac_try;;
3230 esac
3231 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3232 $as_echo "$ac_try_echo"; } >&5
3233   (eval "$ac_link") 2>&5
3234   ac_status=$?
3235   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3236   test $ac_status = 0; }; then :
3237   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3238 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3239 # work properly (i.e., refer to `conftest.exe'), while it won't with
3240 # `rm'.
3241 for ac_file in conftest.exe conftest conftest.*; do
3242   test -f "$ac_file" || continue
3243   case $ac_file in
3244     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3245     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3246           break;;
3247     * ) break;;
3248   esac
3249 done
3250 else
3251   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3252 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3253 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3254 See \`config.log' for more details" "$LINENO" 5; }
3255 fi
3256 rm -f conftest conftest$ac_cv_exeext
3257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3258 $as_echo "$ac_cv_exeext" >&6; }
3259
3260 rm -f conftest.$ac_ext
3261 EXEEXT=$ac_cv_exeext
3262 ac_exeext=$EXEEXT
3263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3264 /* end confdefs.h.  */
3265 #include <stdio.h>
3266 int
3267 main ()
3268 {
3269 FILE *f = fopen ("conftest.out", "w");
3270  return ferror (f) || fclose (f) != 0;
3271
3272   ;
3273   return 0;
3274 }
3275 _ACEOF
3276 ac_clean_files="$ac_clean_files conftest.out"
3277 # Check that the compiler produces executables we can run.  If not, either
3278 # the compiler is broken, or we cross compile.
3279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3280 $as_echo_n "checking whether we are cross compiling... " >&6; }
3281 if test "$cross_compiling" != yes; then
3282   { { ac_try="$ac_link"
3283 case "(($ac_try" in
3284   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3285   *) ac_try_echo=$ac_try;;
3286 esac
3287 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3288 $as_echo "$ac_try_echo"; } >&5
3289   (eval "$ac_link") 2>&5
3290   ac_status=$?
3291   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3292   test $ac_status = 0; }
3293   if { ac_try='./conftest$ac_cv_exeext'
3294   { { case "(($ac_try" in
3295   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3296   *) ac_try_echo=$ac_try;;
3297 esac
3298 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3299 $as_echo "$ac_try_echo"; } >&5
3300   (eval "$ac_try") 2>&5
3301   ac_status=$?
3302   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3303   test $ac_status = 0; }; }; then
3304     cross_compiling=no
3305   else
3306     if test "$cross_compiling" = maybe; then
3307         cross_compiling=yes
3308     else
3309         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3310 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3311 as_fn_error $? "cannot run C compiled programs.
3312 If you meant to cross compile, use \`--host'.
3313 See \`config.log' for more details" "$LINENO" 5; }
3314     fi
3315   fi
3316 fi
3317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3318 $as_echo "$cross_compiling" >&6; }
3319
3320 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3321 ac_clean_files=$ac_clean_files_save
3322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3323 $as_echo_n "checking for suffix of object files... " >&6; }
3324 if ${ac_cv_objext+:} false; then :
3325   $as_echo_n "(cached) " >&6
3326 else
3327   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3328 /* end confdefs.h.  */
3329
3330 int
3331 main ()
3332 {
3333
3334   ;
3335   return 0;
3336 }
3337 _ACEOF
3338 rm -f conftest.o conftest.obj
3339 if { { ac_try="$ac_compile"
3340 case "(($ac_try" in
3341   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3342   *) ac_try_echo=$ac_try;;
3343 esac
3344 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3345 $as_echo "$ac_try_echo"; } >&5
3346   (eval "$ac_compile") 2>&5
3347   ac_status=$?
3348   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3349   test $ac_status = 0; }; then :
3350   for ac_file in conftest.o conftest.obj conftest.*; do
3351   test -f "$ac_file" || continue;
3352   case $ac_file in
3353     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3354     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3355        break;;
3356   esac
3357 done
3358 else
3359   $as_echo "$as_me: failed program was:" >&5
3360 sed 's/^/| /' conftest.$ac_ext >&5
3361
3362 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3363 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3364 as_fn_error $? "cannot compute suffix of object files: cannot compile
3365 See \`config.log' for more details" "$LINENO" 5; }
3366 fi
3367 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3368 fi
3369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3370 $as_echo "$ac_cv_objext" >&6; }
3371 OBJEXT=$ac_cv_objext
3372 ac_objext=$OBJEXT
3373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3374 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3375 if ${ac_cv_c_compiler_gnu+:} false; then :
3376   $as_echo_n "(cached) " >&6
3377 else
3378   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3379 /* end confdefs.h.  */
3380
3381 int
3382 main ()
3383 {
3384 #ifndef __GNUC__
3385        choke me
3386 #endif
3387
3388   ;
3389   return 0;
3390 }
3391 _ACEOF
3392 if ac_fn_c_try_compile "$LINENO"; then :
3393   ac_compiler_gnu=yes
3394 else
3395   ac_compiler_gnu=no
3396 fi
3397 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3398 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3399
3400 fi
3401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3402 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3403 if test $ac_compiler_gnu = yes; then
3404   GCC=yes
3405 else
3406   GCC=
3407 fi
3408 ac_test_CFLAGS=${CFLAGS+set}
3409 ac_save_CFLAGS=$CFLAGS
3410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3411 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3412 if ${ac_cv_prog_cc_g+:} false; then :
3413   $as_echo_n "(cached) " >&6
3414 else
3415   ac_save_c_werror_flag=$ac_c_werror_flag
3416    ac_c_werror_flag=yes
3417    ac_cv_prog_cc_g=no
3418    CFLAGS="-g"
3419    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3420 /* end confdefs.h.  */
3421
3422 int
3423 main ()
3424 {
3425
3426   ;
3427   return 0;
3428 }
3429 _ACEOF
3430 if ac_fn_c_try_compile "$LINENO"; then :
3431   ac_cv_prog_cc_g=yes
3432 else
3433   CFLAGS=""
3434       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3435 /* end confdefs.h.  */
3436
3437 int
3438 main ()
3439 {
3440
3441   ;
3442   return 0;
3443 }
3444 _ACEOF
3445 if ac_fn_c_try_compile "$LINENO"; then :
3446
3447 else
3448   ac_c_werror_flag=$ac_save_c_werror_flag
3449          CFLAGS="-g"
3450          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3451 /* end confdefs.h.  */
3452
3453 int
3454 main ()
3455 {
3456
3457   ;
3458   return 0;
3459 }
3460 _ACEOF
3461 if ac_fn_c_try_compile "$LINENO"; then :
3462   ac_cv_prog_cc_g=yes
3463 fi
3464 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3465 fi
3466 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3467 fi
3468 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3469    ac_c_werror_flag=$ac_save_c_werror_flag
3470 fi
3471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3472 $as_echo "$ac_cv_prog_cc_g" >&6; }
3473 if test "$ac_test_CFLAGS" = set; then
3474   CFLAGS=$ac_save_CFLAGS
3475 elif test $ac_cv_prog_cc_g = yes; then
3476   if test "$GCC" = yes; then
3477     CFLAGS="-g -O2"
3478   else
3479     CFLAGS="-g"
3480   fi
3481 else
3482   if test "$GCC" = yes; then
3483     CFLAGS="-O2"
3484   else
3485     CFLAGS=
3486   fi
3487 fi
3488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3489 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3490 if ${ac_cv_prog_cc_c89+:} false; then :
3491   $as_echo_n "(cached) " >&6
3492 else
3493   ac_cv_prog_cc_c89=no
3494 ac_save_CC=$CC
3495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3496 /* end confdefs.h.  */
3497 #include <stdarg.h>
3498 #include <stdio.h>
3499 struct stat;
3500 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3501 struct buf { int x; };
3502 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3503 static char *e (p, i)
3504      char **p;
3505      int i;
3506 {
3507   return p[i];
3508 }
3509 static char *f (char * (*g) (char **, int), char **p, ...)
3510 {
3511   char *s;
3512   va_list v;
3513   va_start (v,p);
3514   s = g (p, va_arg (v,int));
3515   va_end (v);
3516   return s;
3517 }
3518
3519 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3520    function prototypes and stuff, but not '\xHH' hex character constants.
3521    These don't provoke an error unfortunately, instead are silently treated
3522    as 'x'.  The following induces an error, until -std is added to get
3523    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3524    array size at least.  It's necessary to write '\x00'==0 to get something
3525    that's true only with -std.  */
3526 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3527
3528 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3529    inside strings and character constants.  */
3530 #define FOO(x) 'x'
3531 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3532
3533 int test (int i, double x);
3534 struct s1 {int (*f) (int a);};
3535 struct s2 {int (*f) (double a);};
3536 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3537 int argc;
3538 char **argv;
3539 int
3540 main ()
3541 {
3542 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3543   ;
3544   return 0;
3545 }
3546 _ACEOF
3547 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3548         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3549 do
3550   CC="$ac_save_CC $ac_arg"
3551   if ac_fn_c_try_compile "$LINENO"; then :
3552   ac_cv_prog_cc_c89=$ac_arg
3553 fi
3554 rm -f core conftest.err conftest.$ac_objext
3555   test "x$ac_cv_prog_cc_c89" != "xno" && break
3556 done
3557 rm -f conftest.$ac_ext
3558 CC=$ac_save_CC
3559
3560 fi
3561 # AC_CACHE_VAL
3562 case "x$ac_cv_prog_cc_c89" in
3563   x)
3564     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3565 $as_echo "none needed" >&6; } ;;
3566   xno)
3567     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3568 $as_echo "unsupported" >&6; } ;;
3569   *)
3570     CC="$CC $ac_cv_prog_cc_c89"
3571     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3572 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3573 esac
3574 if test "x$ac_cv_prog_cc_c89" != xno; then :
3575
3576 fi
3577
3578 ac_ext=c
3579 ac_cpp='$CPP $CPPFLAGS'
3580 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3581 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3582 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3583
3584
3585
3586   CFLAGS_KEEP="$CFLAGS"
3587   CFLAGS=""
3588
3589   if test "$GCC" = "yes"; then
3590
3591   _svn_xxflags__save="$CFLAGS"
3592   ac_ext=c
3593 ac_cpp='$CPP $CPPFLAGS'
3594 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3595 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3596 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3597
3598   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -std=c90" >&5
3599 $as_echo_n "checking if $CC accepts -std=c90... " >&6; }
3600   CFLAGS="-std=c90 $CFLAGS"
3601         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3602 /* end confdefs.h.  */
3603 int main(void){return 0;}
3604 _ACEOF
3605 if ac_fn_c_try_link "$LINENO"; then :
3606
3607     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3608 $as_echo "yes" >&6; }
3609
3610
3611 else
3612
3613     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3614 $as_echo "no" >&6; }
3615     CFLAGS="$_svn_xxflags__save"
3616
3617
3618   _svn_xxflags__save="$CFLAGS"
3619   ac_ext=c
3620 ac_cpp='$CPP $CPPFLAGS'
3621 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3622 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3623 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3624
3625   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -std=c89" >&5
3626 $as_echo_n "checking if $CC accepts -std=c89... " >&6; }
3627   CFLAGS="-std=c89 $CFLAGS"
3628         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3629 /* end confdefs.h.  */
3630 int main(void){return 0;}
3631 _ACEOF
3632 if ac_fn_c_try_link "$LINENO"; then :
3633
3634     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3635 $as_echo "yes" >&6; }
3636
3637
3638 else
3639
3640     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3641 $as_echo "no" >&6; }
3642     CFLAGS="$_svn_xxflags__save"
3643
3644
3645   _svn_xxflags__save="$CFLAGS"
3646   ac_ext=c
3647 ac_cpp='$CPP $CPPFLAGS'
3648 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3649 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3650 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3651
3652   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -ansi" >&5
3653 $as_echo_n "checking if $CC accepts -ansi... " >&6; }
3654   CFLAGS="-ansi $CFLAGS"
3655         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3656 /* end confdefs.h.  */
3657 int main(void){return 0;}
3658 _ACEOF
3659 if ac_fn_c_try_link "$LINENO"; then :
3660
3661     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3662 $as_echo "yes" >&6; }
3663
3664
3665 else
3666
3667     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3668 $as_echo "no" >&6; }
3669     CFLAGS="$_svn_xxflags__save"
3670
3671
3672 fi
3673 rm -f core conftest.err conftest.$ac_objext \
3674     conftest$ac_exeext conftest.$ac_ext
3675   ac_ext=c
3676 ac_cpp='$CPP $CPPFLAGS'
3677 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3678 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3679 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3680
3681
3682
3683
3684 fi
3685 rm -f core conftest.err conftest.$ac_objext \
3686     conftest$ac_exeext conftest.$ac_ext
3687   ac_ext=c
3688 ac_cpp='$CPP $CPPFLAGS'
3689 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3690 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3691 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3692
3693
3694
3695
3696 fi
3697 rm -f core conftest.err conftest.$ac_objext \
3698     conftest$ac_exeext conftest.$ac_ext
3699   ac_ext=c
3700 ac_cpp='$CPP $CPPFLAGS'
3701 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3702 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3703 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3704
3705
3706   fi
3707
3708   CMODEFLAGS="$CFLAGS"
3709   CFLAGS=""
3710
3711   if test "$GCC" = "yes"; then
3712
3713   _svn_xxflags__save="$CFLAGS"
3714   ac_ext=c
3715 ac_cpp='$CPP $CPPFLAGS'
3716 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3717 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3718 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3719
3720   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -w" >&5
3721 $as_echo_n "checking if $CC accepts -w... " >&6; }
3722   CFLAGS="-w $CFLAGS"
3723         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3724 /* end confdefs.h.  */
3725 int main(void){return 0;}
3726 _ACEOF
3727 if ac_fn_c_try_link "$LINENO"; then :
3728
3729     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3730 $as_echo "yes" >&6; }
3731
3732
3733 else
3734
3735     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3736 $as_echo "no" >&6; }
3737     CFLAGS="$_svn_xxflags__save"
3738
3739
3740 fi
3741 rm -f core conftest.err conftest.$ac_objext \
3742     conftest$ac_exeext conftest.$ac_ext
3743   ac_ext=c
3744 ac_cpp='$CPP $CPPFLAGS'
3745 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3746 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3747 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3748
3749
3750   fi
3751
3752   CNOWARNFLAGS="$CFLAGS"
3753   CFLAGS="$CFLAGS_KEEP"
3754
3755
3756
3757
3758
3759
3760   if test "$GCC" = "yes"; then
3761
3762   _svn_xxflags__save="$CFLAGS"
3763   ac_ext=c
3764 ac_cpp='$CPP $CPPFLAGS'
3765 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3766 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3767 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3768
3769   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -Werror=unknown-warning-option" >&5
3770 $as_echo_n "checking if $CC accepts -Werror=unknown-warning-option... " >&6; }
3771   CFLAGS="-Werror=unknown-warning-option $CFLAGS"
3772         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3773 /* end confdefs.h.  */
3774 int main(void){return 0;}
3775 _ACEOF
3776 if ac_fn_c_try_link "$LINENO"; then :
3777
3778     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3779 $as_echo "yes" >&6; }
3780
3781
3782 else
3783
3784     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3785 $as_echo "no" >&6; }
3786     CFLAGS="$_svn_xxflags__save"
3787
3788
3789 fi
3790 rm -f core conftest.err conftest.$ac_objext \
3791     conftest$ac_exeext conftest.$ac_ext
3792   ac_ext=c
3793 ac_cpp='$CPP $CPPFLAGS'
3794 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3795 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3796 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3797
3798
3799   fi
3800
3801
3802 # Look for a C++ compiler (before anything can set CXXFLAGS)
3803 CXXUSERFLAGS="$CXXFLAGS"
3804 ac_ext=cpp
3805 ac_cpp='$CXXCPP $CPPFLAGS'
3806 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3807 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3808 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3809 if test -z "$CXX"; then
3810   if test -n "$CCC"; then
3811     CXX=$CCC
3812   else
3813     if test -n "$ac_tool_prefix"; then
3814   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3815   do
3816     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3817 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3819 $as_echo_n "checking for $ac_word... " >&6; }
3820 if ${ac_cv_prog_CXX+:} false; then :
3821   $as_echo_n "(cached) " >&6
3822 else
3823   if test -n "$CXX"; then
3824   ac_cv_prog_CXX="$CXX" # Let the user override the test.
3825 else
3826 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3827 for as_dir in $PATH
3828 do
3829   IFS=$as_save_IFS
3830   test -z "$as_dir" && as_dir=.
3831     for ac_exec_ext in '' $ac_executable_extensions; do
3832   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3833     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3834     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3835     break 2
3836   fi
3837 done
3838   done
3839 IFS=$as_save_IFS
3840
3841 fi
3842 fi
3843 CXX=$ac_cv_prog_CXX
3844 if test -n "$CXX"; then
3845   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3846 $as_echo "$CXX" >&6; }
3847 else
3848   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3849 $as_echo "no" >&6; }
3850 fi
3851
3852
3853     test -n "$CXX" && break
3854   done
3855 fi
3856 if test -z "$CXX"; then
3857   ac_ct_CXX=$CXX
3858   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3859 do
3860   # Extract the first word of "$ac_prog", so it can be a program name with args.
3861 set dummy $ac_prog; ac_word=$2
3862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3863 $as_echo_n "checking for $ac_word... " >&6; }
3864 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
3865   $as_echo_n "(cached) " >&6
3866 else
3867   if test -n "$ac_ct_CXX"; then
3868   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3869 else
3870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3871 for as_dir in $PATH
3872 do
3873   IFS=$as_save_IFS
3874   test -z "$as_dir" && as_dir=.
3875     for ac_exec_ext in '' $ac_executable_extensions; do
3876   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3877     ac_cv_prog_ac_ct_CXX="$ac_prog"
3878     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3879     break 2
3880   fi
3881 done
3882   done
3883 IFS=$as_save_IFS
3884
3885 fi
3886 fi
3887 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3888 if test -n "$ac_ct_CXX"; then
3889   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3890 $as_echo "$ac_ct_CXX" >&6; }
3891 else
3892   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3893 $as_echo "no" >&6; }
3894 fi
3895
3896
3897   test -n "$ac_ct_CXX" && break
3898 done
3899
3900   if test "x$ac_ct_CXX" = x; then
3901     CXX="g++"
3902   else
3903     case $cross_compiling:$ac_tool_warned in
3904 yes:)
3905 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3906 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3907 ac_tool_warned=yes ;;
3908 esac
3909     CXX=$ac_ct_CXX
3910   fi
3911 fi
3912
3913   fi
3914 fi
3915 # Provide some information about the compiler.
3916 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3917 set X $ac_compile
3918 ac_compiler=$2
3919 for ac_option in --version -v -V -qversion; do
3920   { { ac_try="$ac_compiler $ac_option >&5"
3921 case "(($ac_try" in
3922   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3923   *) ac_try_echo=$ac_try;;
3924 esac
3925 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3926 $as_echo "$ac_try_echo"; } >&5
3927   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3928   ac_status=$?
3929   if test -s conftest.err; then
3930     sed '10a\
3931 ... rest of stderr output deleted ...
3932          10q' conftest.err >conftest.er1
3933     cat conftest.er1 >&5
3934   fi
3935   rm -f conftest.er1 conftest.err
3936   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3937   test $ac_status = 0; }
3938 done
3939
3940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3941 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3942 if ${ac_cv_cxx_compiler_gnu+:} false; then :
3943   $as_echo_n "(cached) " >&6
3944 else
3945   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3946 /* end confdefs.h.  */
3947
3948 int
3949 main ()
3950 {
3951 #ifndef __GNUC__
3952        choke me
3953 #endif
3954
3955   ;
3956   return 0;
3957 }
3958 _ACEOF
3959 if ac_fn_cxx_try_compile "$LINENO"; then :
3960   ac_compiler_gnu=yes
3961 else
3962   ac_compiler_gnu=no
3963 fi
3964 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3965 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3966
3967 fi
3968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3969 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3970 if test $ac_compiler_gnu = yes; then
3971   GXX=yes
3972 else
3973   GXX=
3974 fi
3975 ac_test_CXXFLAGS=${CXXFLAGS+set}
3976 ac_save_CXXFLAGS=$CXXFLAGS
3977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3978 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3979 if ${ac_cv_prog_cxx_g+:} false; then :
3980   $as_echo_n "(cached) " >&6
3981 else
3982   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3983    ac_cxx_werror_flag=yes
3984    ac_cv_prog_cxx_g=no
3985    CXXFLAGS="-g"
3986    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3987 /* end confdefs.h.  */
3988
3989 int
3990 main ()
3991 {
3992
3993   ;
3994   return 0;
3995 }
3996 _ACEOF
3997 if ac_fn_cxx_try_compile "$LINENO"; then :
3998   ac_cv_prog_cxx_g=yes
3999 else
4000   CXXFLAGS=""
4001       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4002 /* end confdefs.h.  */
4003
4004 int
4005 main ()
4006 {
4007
4008   ;
4009   return 0;
4010 }
4011 _ACEOF
4012 if ac_fn_cxx_try_compile "$LINENO"; then :
4013
4014 else
4015   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4016          CXXFLAGS="-g"
4017          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4018 /* end confdefs.h.  */
4019
4020 int
4021 main ()
4022 {
4023
4024   ;
4025   return 0;
4026 }
4027 _ACEOF
4028 if ac_fn_cxx_try_compile "$LINENO"; then :
4029   ac_cv_prog_cxx_g=yes
4030 fi
4031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4032 fi
4033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4034 fi
4035 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4036    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4037 fi
4038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4039 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4040 if test "$ac_test_CXXFLAGS" = set; then
4041   CXXFLAGS=$ac_save_CXXFLAGS
4042 elif test $ac_cv_prog_cxx_g = yes; then
4043   if test "$GXX" = yes; then
4044     CXXFLAGS="-g -O2"
4045   else
4046     CXXFLAGS="-g"
4047   fi
4048 else
4049   if test "$GXX" = yes; then
4050     CXXFLAGS="-O2"
4051   else
4052     CXXFLAGS=
4053   fi
4054 fi
4055 ac_ext=c
4056 ac_cpp='$CPP $CPPFLAGS'
4057 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4058 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4059 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4060
4061
4062
4063   CXXFLAGS_KEEP="$CXXFLAGS"
4064   CXXFLAGS=""
4065
4066   if test "$GXX" = "yes"; then
4067
4068   _svn_xxflags__save="$CXXFLAGS"
4069   ac_ext=cpp
4070 ac_cpp='$CXXCPP $CPPFLAGS'
4071 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4072 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4073 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4074
4075   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CXX accepts -std=c++11" >&5
4076 $as_echo_n "checking if $CXX accepts -std=c++11... " >&6; }
4077   CXXFLAGS="-std=c++11 $CXXFLAGS"
4078         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4079 /* end confdefs.h.  */
4080 int main(){}
4081 _ACEOF
4082 if ac_fn_cxx_try_link "$LINENO"; then :
4083
4084     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4085 $as_echo "yes" >&6; }
4086
4087
4088 else
4089
4090     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4091 $as_echo "no" >&6; }
4092     CXXFLAGS="$_svn_xxflags__save"
4093
4094
4095 fi
4096 rm -f core conftest.err conftest.$ac_objext \
4097     conftest$ac_exeext conftest.$ac_ext
4098   ac_ext=c
4099 ac_cpp='$CPP $CPPFLAGS'
4100 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4101 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4102 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4103
4104
4105   fi
4106
4107   CXXMODEFLAGS="$CXXFLAGS"
4108   CXXFLAGS=""
4109
4110   if test "$GXX" = "yes"; then
4111
4112   _svn_xxflags__save="$CXXFLAGS"
4113   ac_ext=cpp
4114 ac_cpp='$CXXCPP $CPPFLAGS'
4115 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4116 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4117 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4118
4119   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CXX accepts -w" >&5
4120 $as_echo_n "checking if $CXX accepts -w... " >&6; }
4121   CXXFLAGS="-w $CXXFLAGS"
4122         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4123 /* end confdefs.h.  */
4124 int main(){}
4125 _ACEOF
4126 if ac_fn_cxx_try_link "$LINENO"; then :
4127
4128     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4129 $as_echo "yes" >&6; }
4130
4131
4132 else
4133
4134     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4135 $as_echo "no" >&6; }
4136     CXXFLAGS="$_svn_xxflags__save"
4137
4138
4139 fi
4140 rm -f core conftest.err conftest.$ac_objext \
4141     conftest$ac_exeext conftest.$ac_ext
4142   ac_ext=c
4143 ac_cpp='$CPP $CPPFLAGS'
4144 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4145 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4146 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4147
4148
4149   fi
4150
4151   CXXNOWARNFLAGS="$CXXFLAGS"
4152   CXXFLAGS="$CXXFLAGS_KEEP"
4153
4154
4155
4156
4157
4158
4159   if test "$GXX" = "yes"; then
4160
4161   _svn_xxflags__save="$CXXFLAGS"
4162   ac_ext=cpp
4163 ac_cpp='$CXXCPP $CPPFLAGS'
4164 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4165 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4166 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4167
4168   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CXX accepts -Werror=unknown-warning-option" >&5
4169 $as_echo_n "checking if $CXX accepts -Werror=unknown-warning-option... " >&6; }
4170   CXXFLAGS="-Werror=unknown-warning-option $CXXFLAGS"
4171         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4172 /* end confdefs.h.  */
4173 int main(){}
4174 _ACEOF
4175 if ac_fn_cxx_try_link "$LINENO"; then :
4176
4177     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4178 $as_echo "yes" >&6; }
4179
4180
4181 else
4182
4183     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4184 $as_echo "no" >&6; }
4185     CXXFLAGS="$_svn_xxflags__save"
4186
4187
4188 fi
4189 rm -f core conftest.err conftest.$ac_objext \
4190     conftest$ac_exeext conftest.$ac_ext
4191   ac_ext=c
4192 ac_cpp='$CPP $CPPFLAGS'
4193 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4194 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4195 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4196
4197
4198   fi
4199
4200
4201 # Look for a C pre-processor
4202 ac_ext=c
4203 ac_cpp='$CPP $CPPFLAGS'
4204 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4205 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4206 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4208 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4209 # On Suns, sometimes $CPP names a directory.
4210 if test -n "$CPP" && test -d "$CPP"; then
4211   CPP=
4212 fi
4213 if test -z "$CPP"; then
4214   if ${ac_cv_prog_CPP+:} false; then :
4215   $as_echo_n "(cached) " >&6
4216 else
4217       # Double quotes because CPP needs to be expanded
4218     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4219     do
4220       ac_preproc_ok=false
4221 for ac_c_preproc_warn_flag in '' yes
4222 do
4223   # Use a header file that comes with gcc, so configuring glibc
4224   # with a fresh cross-compiler works.
4225   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4226   # <limits.h> exists even on freestanding compilers.
4227   # On the NeXT, cc -E runs the code through the compiler's parser,
4228   # not just through cpp. "Syntax error" is here to catch this case.
4229   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4230 /* end confdefs.h.  */
4231 #ifdef __STDC__
4232 # include <limits.h>
4233 #else
4234 # include <assert.h>
4235 #endif
4236                      Syntax error
4237 _ACEOF
4238 if ac_fn_c_try_cpp "$LINENO"; then :
4239
4240 else
4241   # Broken: fails on valid input.
4242 continue
4243 fi
4244 rm -f conftest.err conftest.i conftest.$ac_ext
4245
4246   # OK, works on sane cases.  Now check whether nonexistent headers
4247   # can be detected and how.
4248   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4249 /* end confdefs.h.  */
4250 #include <ac_nonexistent.h>
4251 _ACEOF
4252 if ac_fn_c_try_cpp "$LINENO"; then :
4253   # Broken: success on invalid input.
4254 continue
4255 else
4256   # Passes both tests.
4257 ac_preproc_ok=:
4258 break
4259 fi
4260 rm -f conftest.err conftest.i conftest.$ac_ext
4261
4262 done
4263 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4264 rm -f conftest.i conftest.err conftest.$ac_ext
4265 if $ac_preproc_ok; then :
4266   break
4267 fi
4268
4269     done
4270     ac_cv_prog_CPP=$CPP
4271
4272 fi
4273   CPP=$ac_cv_prog_CPP
4274 else
4275   ac_cv_prog_CPP=$CPP
4276 fi
4277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4278 $as_echo "$CPP" >&6; }
4279 ac_preproc_ok=false
4280 for ac_c_preproc_warn_flag in '' yes
4281 do
4282   # Use a header file that comes with gcc, so configuring glibc
4283   # with a fresh cross-compiler works.
4284   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4285   # <limits.h> exists even on freestanding compilers.
4286   # On the NeXT, cc -E runs the code through the compiler's parser,
4287   # not just through cpp. "Syntax error" is here to catch this case.
4288   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4289 /* end confdefs.h.  */
4290 #ifdef __STDC__
4291 # include <limits.h>
4292 #else
4293 # include <assert.h>
4294 #endif
4295                      Syntax error
4296 _ACEOF
4297 if ac_fn_c_try_cpp "$LINENO"; then :
4298
4299 else
4300   # Broken: fails on valid input.
4301 continue
4302 fi
4303 rm -f conftest.err conftest.i conftest.$ac_ext
4304
4305   # OK, works on sane cases.  Now check whether nonexistent headers
4306   # can be detected and how.
4307   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4308 /* end confdefs.h.  */
4309 #include <ac_nonexistent.h>
4310 _ACEOF
4311 if ac_fn_c_try_cpp "$LINENO"; then :
4312   # Broken: success on invalid input.
4313 continue
4314 else
4315   # Passes both tests.
4316 ac_preproc_ok=:
4317 break
4318 fi
4319 rm -f conftest.err conftest.i conftest.$ac_ext
4320
4321 done
4322 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4323 rm -f conftest.i conftest.err conftest.$ac_ext
4324 if $ac_preproc_ok; then :
4325
4326 else
4327   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4328 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4329 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4330 See \`config.log' for more details" "$LINENO" 5; }
4331 fi
4332
4333 ac_ext=c
4334 ac_cpp='$CPP $CPPFLAGS'
4335 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4336 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4337 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4338
4339
4340 # Look for a good sed
4341 # AC_PROG_SED was introduced in Autoconf 2.59b
4342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4343 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4344 if ${ac_cv_path_SED+:} false; then :
4345   $as_echo_n "(cached) " >&6
4346 else
4347             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4348      for ac_i in 1 2 3 4 5 6 7; do
4349        ac_script="$ac_script$as_nl$ac_script"
4350      done
4351      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4352      { ac_script=; unset ac_script;}
4353      if test -z "$SED"; then
4354   ac_path_SED_found=false
4355   # Loop through the user's path and test for each of PROGNAME-LIST
4356   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4357 for as_dir in $PATH
4358 do
4359   IFS=$as_save_IFS
4360   test -z "$as_dir" && as_dir=.
4361     for ac_prog in sed gsed; do
4362     for ac_exec_ext in '' $ac_executable_extensions; do
4363       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4364       as_fn_executable_p "$ac_path_SED" || continue
4365 # Check for GNU ac_path_SED and select it if it is found.
4366   # Check for GNU $ac_path_SED
4367 case `"$ac_path_SED" --version 2>&1` in
4368 *GNU*)
4369   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4370 *)
4371   ac_count=0
4372   $as_echo_n 0123456789 >"conftest.in"
4373   while :
4374   do
4375     cat "conftest.in" "conftest.in" >"conftest.tmp"
4376     mv "conftest.tmp" "conftest.in"
4377     cp "conftest.in" "conftest.nl"
4378     $as_echo '' >> "conftest.nl"
4379     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4380     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4381     as_fn_arith $ac_count + 1 && ac_count=$as_val
4382     if test $ac_count -gt ${ac_path_SED_max-0}; then
4383       # Best one so far, save it but keep looking for a better one
4384       ac_cv_path_SED="$ac_path_SED"
4385       ac_path_SED_max=$ac_count
4386     fi
4387     # 10*(2^10) chars as input seems more than enough
4388     test $ac_count -gt 10 && break
4389   done
4390   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4391 esac
4392
4393       $ac_path_SED_found && break 3
4394     done
4395   done
4396   done
4397 IFS=$as_save_IFS
4398   if test -z "$ac_cv_path_SED"; then
4399     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4400   fi
4401 else
4402   ac_cv_path_SED=$SED
4403 fi
4404
4405 fi
4406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4407 $as_echo "$ac_cv_path_SED" >&6; }
4408  SED="$ac_cv_path_SED"
4409   rm -f conftest.sed
4410
4411
4412 # Grab target_cpu, so we can use it in the Solaris pkginfo file
4413 # Make sure we can run config.sub.
4414 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4415   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4416
4417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4418 $as_echo_n "checking build system type... " >&6; }
4419 if ${ac_cv_build+:} false; then :
4420   $as_echo_n "(cached) " >&6
4421 else
4422   ac_build_alias=$build_alias
4423 test "x$ac_build_alias" = x &&
4424   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4425 test "x$ac_build_alias" = x &&
4426   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4427 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4428   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4429
4430 fi
4431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4432 $as_echo "$ac_cv_build" >&6; }
4433 case $ac_cv_build in
4434 *-*-*) ;;
4435 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4436 esac
4437 build=$ac_cv_build
4438 ac_save_IFS=$IFS; IFS='-'
4439 set x $ac_cv_build
4440 shift
4441 build_cpu=$1
4442 build_vendor=$2
4443 shift; shift
4444 # Remember, the first character of IFS is used to create $*,
4445 # except with old shells:
4446 build_os=$*
4447 IFS=$ac_save_IFS
4448 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4449
4450
4451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4452 $as_echo_n "checking host system type... " >&6; }
4453 if ${ac_cv_host+:} false; then :
4454   $as_echo_n "(cached) " >&6
4455 else
4456   if test "x$host_alias" = x; then
4457   ac_cv_host=$ac_cv_build
4458 else
4459   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4460     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4461 fi
4462
4463 fi
4464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4465 $as_echo "$ac_cv_host" >&6; }
4466 case $ac_cv_host in
4467 *-*-*) ;;
4468 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4469 esac
4470 host=$ac_cv_host
4471 ac_save_IFS=$IFS; IFS='-'
4472 set x $ac_cv_host
4473 shift
4474 host_cpu=$1
4475 host_vendor=$2
4476 shift; shift
4477 # Remember, the first character of IFS is used to create $*,
4478 # except with old shells:
4479 host_os=$*
4480 IFS=$ac_save_IFS
4481 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4482
4483
4484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
4485 $as_echo_n "checking target system type... " >&6; }
4486 if ${ac_cv_target+:} false; then :
4487   $as_echo_n "(cached) " >&6
4488 else
4489   if test "x$target_alias" = x; then
4490   ac_cv_target=$ac_cv_host
4491 else
4492   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
4493     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
4494 fi
4495
4496 fi
4497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
4498 $as_echo "$ac_cv_target" >&6; }
4499 case $ac_cv_target in
4500 *-*-*) ;;
4501 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
4502 esac
4503 target=$ac_cv_target
4504 ac_save_IFS=$IFS; IFS='-'
4505 set x $ac_cv_target
4506 shift
4507 target_cpu=$1
4508 target_vendor=$2
4509 shift; shift
4510 # Remember, the first character of IFS is used to create $*,
4511 # except with old shells:
4512 target_os=$*
4513 IFS=$ac_save_IFS
4514 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
4515
4516
4517 # The aliases save the names the user supplied, while $host etc.
4518 # will get canonicalized.
4519 test -n "$target_alias" &&
4520   test "$program_prefix$program_suffix$program_transform_name" = \
4521     NONENONEs,x,x, &&
4522   program_prefix=${target_alias}-
4523
4524 # Look for an extended grep
4525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4526 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4527 if ${ac_cv_path_GREP+:} false; then :
4528   $as_echo_n "(cached) " >&6
4529 else
4530   if test -z "$GREP"; then
4531   ac_path_GREP_found=false
4532   # Loop through the user's path and test for each of PROGNAME-LIST
4533   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4534 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4535 do
4536   IFS=$as_save_IFS
4537   test -z "$as_dir" && as_dir=.
4538     for ac_prog in grep ggrep; do
4539     for ac_exec_ext in '' $ac_executable_extensions; do
4540       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4541       as_fn_executable_p "$ac_path_GREP" || continue
4542 # Check for GNU ac_path_GREP and select it if it is found.
4543   # Check for GNU $ac_path_GREP
4544 case `"$ac_path_GREP" --version 2>&1` in
4545 *GNU*)
4546   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4547 *)
4548   ac_count=0
4549   $as_echo_n 0123456789 >"conftest.in"
4550   while :
4551   do
4552     cat "conftest.in" "conftest.in" >"conftest.tmp"
4553     mv "conftest.tmp" "conftest.in"
4554     cp "conftest.in" "conftest.nl"
4555     $as_echo 'GREP' >> "conftest.nl"
4556     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4557     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4558     as_fn_arith $ac_count + 1 && ac_count=$as_val
4559     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4560       # Best one so far, save it but keep looking for a better one
4561       ac_cv_path_GREP="$ac_path_GREP"
4562       ac_path_GREP_max=$ac_count
4563     fi
4564     # 10*(2^10) chars as input seems more than enough
4565     test $ac_count -gt 10 && break
4566   done
4567   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4568 esac
4569
4570       $ac_path_GREP_found && break 3
4571     done
4572   done
4573   done
4574 IFS=$as_save_IFS
4575   if test -z "$ac_cv_path_GREP"; then
4576     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4577   fi
4578 else
4579   ac_cv_path_GREP=$GREP
4580 fi
4581
4582 fi
4583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4584 $as_echo "$ac_cv_path_GREP" >&6; }
4585  GREP="$ac_cv_path_GREP"
4586
4587
4588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4589 $as_echo_n "checking for egrep... " >&6; }
4590 if ${ac_cv_path_EGREP+:} false; then :
4591   $as_echo_n "(cached) " >&6
4592 else
4593   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4594    then ac_cv_path_EGREP="$GREP -E"
4595    else
4596      if test -z "$EGREP"; then
4597   ac_path_EGREP_found=false
4598   # Loop through the user's path and test for each of PROGNAME-LIST
4599   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4600 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4601 do
4602   IFS=$as_save_IFS
4603   test -z "$as_dir" && as_dir=.
4604     for ac_prog in egrep; do
4605     for ac_exec_ext in '' $ac_executable_extensions; do
4606       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4607       as_fn_executable_p "$ac_path_EGREP" || continue
4608 # Check for GNU ac_path_EGREP and select it if it is found.
4609   # Check for GNU $ac_path_EGREP
4610 case `"$ac_path_EGREP" --version 2>&1` in
4611 *GNU*)
4612   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4613 *)
4614   ac_count=0
4615   $as_echo_n 0123456789 >"conftest.in"
4616   while :
4617   do
4618     cat "conftest.in" "conftest.in" >"conftest.tmp"
4619     mv "conftest.tmp" "conftest.in"
4620     cp "conftest.in" "conftest.nl"
4621     $as_echo 'EGREP' >> "conftest.nl"
4622     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4623     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4624     as_fn_arith $ac_count + 1 && ac_count=$as_val
4625     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4626       # Best one so far, save it but keep looking for a better one
4627       ac_cv_path_EGREP="$ac_path_EGREP"
4628       ac_path_EGREP_max=$ac_count
4629     fi
4630     # 10*(2^10) chars as input seems more than enough
4631     test $ac_count -gt 10 && break
4632   done
4633   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4634 esac
4635
4636       $ac_path_EGREP_found && break 3
4637     done
4638   done
4639   done
4640 IFS=$as_save_IFS
4641   if test -z "$ac_cv_path_EGREP"; then
4642     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4643   fi
4644 else
4645   ac_cv_path_EGREP=$EGREP
4646 fi
4647
4648    fi
4649 fi
4650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4651 $as_echo "$ac_cv_path_EGREP" >&6; }
4652  EGREP="$ac_cv_path_EGREP"
4653
4654
4655
4656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4657 $as_echo_n "checking whether ln -s works... " >&6; }
4658 LN_S=$as_ln_s
4659 if test "$LN_S" = "ln -s"; then
4660   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4661 $as_echo "yes" >&6; }
4662 else
4663   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4664 $as_echo "no, using $LN_S" >&6; }
4665 fi
4666
4667
4668 # Find a good install program.  We prefer a C program (faster),
4669 # so one script is as good as another.  But avoid the broken or
4670 # incompatible versions:
4671 # SysV /etc/install, /usr/sbin/install
4672 # SunOS /usr/etc/install
4673 # IRIX /sbin/install
4674 # AIX /bin/install
4675 # AmigaOS /C/install, which installs bootblocks on floppy discs
4676 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4677 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4678 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4679 # OS/2's system install, which has a completely different semantic
4680 # ./install, which can be erroneously created by make from ./install.sh.
4681 # Reject install programs that cannot install multiple files.
4682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4683 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4684 if test -z "$INSTALL"; then
4685 if ${ac_cv_path_install+:} false; then :
4686   $as_echo_n "(cached) " >&6
4687 else
4688   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4689 for as_dir in $PATH
4690 do
4691   IFS=$as_save_IFS
4692   test -z "$as_dir" && as_dir=.
4693     # Account for people who put trailing slashes in PATH elements.
4694 case $as_dir/ in #((
4695   ./ | .// | /[cC]/* | \
4696   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4697   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4698   /usr/ucb/* ) ;;
4699   *)
4700     # OSF1 and SCO ODT 3.0 have their own names for install.
4701     # Don't use installbsd from OSF since it installs stuff as root
4702     # by default.
4703     for ac_prog in ginstall scoinst install; do
4704       for ac_exec_ext in '' $ac_executable_extensions; do
4705         if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4706           if test $ac_prog = install &&
4707             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4708             # AIX install.  It has an incompatible calling convention.
4709             :
4710           elif test $ac_prog = install &&
4711             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4712             # program-specific install script used by HP pwplus--don't use.
4713             :
4714           else
4715             rm -rf conftest.one conftest.two conftest.dir
4716             echo one > conftest.one
4717             echo two > conftest.two
4718             mkdir conftest.dir
4719             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4720               test -s conftest.one && test -s conftest.two &&
4721               test -s conftest.dir/conftest.one &&
4722               test -s conftest.dir/conftest.two
4723             then
4724               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4725               break 3
4726             fi
4727           fi
4728         fi
4729       done
4730     done
4731     ;;
4732 esac
4733
4734   done
4735 IFS=$as_save_IFS
4736
4737 rm -rf conftest.one conftest.two conftest.dir
4738
4739 fi
4740   if test "${ac_cv_path_install+set}" = set; then
4741     INSTALL=$ac_cv_path_install
4742   else
4743     # As a last resort, use the slow shell script.  Don't cache a
4744     # value for INSTALL within a source directory, because that will
4745     # break other packages using the cache if that directory is
4746     # removed, or if the value is a relative name.
4747     INSTALL=$ac_install_sh
4748   fi
4749 fi
4750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4751 $as_echo "$INSTALL" >&6; }
4752
4753 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4754 # It thinks the first close brace ends the variable substitution.
4755 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4756
4757 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4758
4759 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4760
4761 # If $INSTALL is relative path to our fallback install-sh, then convert
4762 # to an absolute path, as in some cases (e.g. Solaris VPATH build), libtool
4763 # may try to use it from a changed working directory.
4764 if test "$INSTALL" = "build/install-sh -c"; then
4765   INSTALL="$abs_srcdir/$INSTALL"
4766 fi
4767
4768 if test -z "$MKDIR"; then
4769   MKDIR="$INSTALL -d"
4770 fi
4771
4772
4773 # ==== Libraries, for which we may have source to build ======================
4774
4775
4776 APR_VER_REGEXES="1\.[5-9]\. 2\."
4777
4778
4779   APR_WANTED_REGEXES="$APR_VER_REGEXES"
4780
4781   { $as_echo "$as_me:${as_lineno-$LINENO}: Apache Portable Runtime (APR) library configuration" >&5
4782 $as_echo "$as_me: Apache Portable Runtime (APR) library configuration" >&6;}
4783
4784
4785   apr_found="no"
4786
4787   if test "$target_os" = "os2-emx"; then
4788     # Scripts don't pass test -x on OS/2
4789     TEST_X="test -f"
4790   else
4791     TEST_X="test -x"
4792   fi
4793
4794   acceptable_majors="2 1 0"
4795
4796   apr_temp_acceptable_apr_config=""
4797   for apr_temp_major in $acceptable_majors
4798   do
4799     case $apr_temp_major in
4800       0)
4801       apr_temp_acceptable_apr_config="$apr_temp_acceptable_apr_config apr-config"
4802       ;;
4803       *)
4804       apr_temp_acceptable_apr_config="$apr_temp_acceptable_apr_config apr-$apr_temp_major-config"
4805       ;;
4806     esac
4807   done
4808
4809   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for APR" >&5
4810 $as_echo_n "checking for APR... " >&6; }
4811
4812 # Check whether --with-apr was given.
4813 if test "${with_apr+set}" = set; then :
4814   withval=$with_apr;
4815     if test "$withval" = "no" || test "$withval" = "yes"; then
4816       as_fn_error $? "--with-apr requires a directory or file to be provided" "$LINENO" 5
4817     fi
4818
4819     for apr_temp_apr_config_file in $apr_temp_acceptable_apr_config
4820     do
4821       for lookdir in "$withval/bin" "$withval"
4822       do
4823         if $TEST_X "$lookdir/$apr_temp_apr_config_file"; then
4824           apr_config="$lookdir/$apr_temp_apr_config_file"
4825
4826           apr_found="yes"
4827           break 2
4828         fi
4829       done
4830     done
4831
4832     if test "$apr_found" != "yes" && $TEST_X "$withval" && $withval --help > /dev/null 2>&1 ; then
4833       apr_config="$withval"
4834       apr_found="yes"
4835     fi
4836
4837             if test "$apr_found" != "yes"; then
4838       as_fn_error $? "the --with-apr parameter is incorrect. It must specify an install prefix, a build directory, or an apr-config file." "$LINENO" 5
4839     fi
4840
4841 else
4842
4843         if test -n "1" && test "1" = "1"; then
4844       for apr_temp_apr_config_file in $apr_temp_acceptable_apr_config
4845       do
4846         if $apr_temp_apr_config_file --help > /dev/null 2>&1 ; then
4847           apr_config="$apr_temp_apr_config_file"
4848
4849           apr_found="yes"
4850           break
4851         else
4852                     for lookdir in /usr /usr/local /usr/local/apr /opt/apr; do
4853             if $TEST_X "$lookdir/bin/$apr_temp_apr_config_file"; then
4854               apr_config="$lookdir/bin/$apr_temp_apr_config_file"
4855
4856               apr_found="yes"
4857               break 2
4858             fi
4859           done
4860         fi
4861       done
4862     fi
4863         if test "$apr_found" = "no" && test -d """"; then
4864       apr_temp_abs_srcdir="`cd \"""\" && pwd`"
4865       apr_found="reconfig"
4866       apr_bundled_major="`sed -n '/#define.*APR_MAJOR_VERSION/s/^[^0-9]*\([0-9]*\).*$/\1/p' \"""/include/apr_version.h\"`"
4867       case $apr_bundled_major in
4868         "")
4869           as_fn_error $? "failed to find major version of bundled APR" "$LINENO" 5
4870         ;;
4871         0)
4872           apr_temp_apr_config_file="apr-config"
4873         ;;
4874         *)
4875           apr_temp_apr_config_file="apr-$apr_bundled_major-config"
4876         ;;
4877       esac
4878       if test -n """"; then
4879         apr_config="""/$apr_temp_apr_config_file"
4880       else
4881         apr_config="""/$apr_temp_apr_config_file"
4882       fi
4883     fi
4884
4885 fi
4886
4887
4888   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_found" >&5
4889 $as_echo "$apr_found" >&6; }
4890
4891
4892   if test $apr_found = "no"; then
4893     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: APR not found" >&5
4894 $as_echo "$as_me: WARNING: APR not found" >&2;}
4895
4896   echo "The Apache Portable Runtime (APR) library cannot be found."
4897   echo "Please install APR on this system and configure Subversion"
4898   echo "with the appropriate --with-apr option."
4899   echo ""
4900   echo "You probably need to do something similar with the Apache"
4901   echo "Portable Runtime Utility (APRUTIL) library and then configure"
4902   echo "Subversion with both the --with-apr and --with-apr-util options."
4903   echo ""
4904   as_fn_error $? "no suitable APR found" "$LINENO" 5
4905
4906   fi
4907
4908   if test $apr_found = "reconfig"; then
4909     as_fn_error $? "Unexpected APR reconfig" "$LINENO" 5
4910   fi
4911
4912
4913   { $as_echo "$as_me:${as_lineno-$LINENO}: checking APR version" >&5
4914 $as_echo_n "checking APR version... " >&6; }
4915   apr_version="`$apr_config --version`"
4916   if test $? -ne 0; then
4917     as_fn_error $? "apr-config --version failed" "$LINENO" 5
4918   fi
4919   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_version" >&5
4920 $as_echo "$apr_version" >&6; }
4921
4922   APR_WANTED_REGEX_MATCH=0
4923   for apr_wanted_regex in $APR_WANTED_REGEXES; do
4924     if test `expr $apr_version : $apr_wanted_regex` -ne 0; then
4925       APR_WANTED_REGEX_MATCH=1
4926       break
4927     fi
4928   done
4929
4930   if test $APR_WANTED_REGEX_MATCH -eq 0; then
4931     echo "wanted regexes are $APR_WANTED_REGEXES"
4932     as_fn_error $? "invalid apr version found" "$LINENO" 5
4933   fi
4934
4935
4936   CPPFLAGS="$CPPFLAGS `$apr_config --cppflags`"
4937   if test $? -ne 0; then
4938     as_fn_error $? "apr-config --cppflags failed" "$LINENO" 5
4939   fi
4940
4941   CFLAGS="$CFLAGS `$apr_config --cflags`"
4942   if test $? -ne 0; then
4943     as_fn_error $? "apr-config --cflags failed" "$LINENO" 5
4944   fi
4945
4946   apr_ldflags="`$apr_config --ldflags`"
4947   if test $? -ne 0; then
4948     as_fn_error $? "apr-config --ldflags failed" "$LINENO" 5
4949   fi
4950   LDFLAGS="$LDFLAGS `
4951   input_flags="$apr_ldflags"
4952   output_flags=""
4953   filtered_dirs="/lib /lib64 /usr/lib /usr/lib64"
4954   for flag in $input_flags; do
4955     filter="no"
4956     for dir in $filtered_dirs; do
4957       if test "$flag" = "-L$dir" || test "$flag" = "-L$dir/"; then
4958         filter="yes"
4959         break
4960       fi
4961     done
4962     if test "$filter" = "no"; then
4963       output_flags="$output_flags $flag"
4964     fi
4965   done
4966   if test -n "$output_flags"; then
4967     printf "%s" "${output_flags# }"
4968   fi
4969 `"
4970
4971   SVN_APR_INCLUDES="`$apr_config --includes`"
4972   if test $? -ne 0; then
4973     as_fn_error $? "apr-config --includes failed" "$LINENO" 5
4974   fi
4975
4976   if test "$enable_all_static" = "yes"; then
4977     SVN_APR_LIBS="`$apr_config --link-ld --libs`"
4978     if test $? -ne 0; then
4979       as_fn_error $? "apr-config --link-ld --libs failed" "$LINENO" 5
4980     fi
4981   else
4982     SVN_APR_LIBS="`$apr_config --link-ld`"
4983     if test $? -ne 0; then
4984       as_fn_error $? "apr-config --link-ld failed" "$LINENO" 5
4985     fi
4986   fi
4987   SVN_APR_LIBS="`
4988   input_flags="$SVN_APR_LIBS"
4989   output_flags=""
4990   filtered_dirs="/lib /lib64 /usr/lib /usr/lib64"
4991   for flag in $input_flags; do
4992     filter="no"
4993     for dir in $filtered_dirs; do
4994       if test "$flag" = "-L$dir" || test "$flag" = "-L$dir/"; then
4995         filter="yes"
4996         break
4997       fi
4998     done
4999     if test "$filter" = "no"; then
5000       output_flags="$output_flags $flag"
5001     fi
5002   done
5003   if test -n "$output_flags"; then
5004     printf "%s" "${output_flags# }"
5005   fi
5006 `"
5007
5008   SVN_APR_SHLIB_PATH_VAR="`$apr_config --shlib-path-var`"
5009   if test $? -ne 0; then
5010     as_fn_error $? "apr-config --shlib-path-var failed" "$LINENO" 5
5011   fi
5012
5013   SVN_APR_CONFIG="$apr_config"
5014
5015
5016
5017
5018
5019
5020 if test `expr $apr_version : 2` -ne 0; then
5021       svn_lib_ver=2
5022     apu_config=$apr_config
5023
5024   SVN_APRUTIL_CONFIG="$apu_config"
5025
5026
5027   SVN_APR_MAJOR_VERSION=2
5028 else
5029   svn_lib_ver=0
5030   APU_VER_REGEXES="1\.[3-9]\."
5031
5032   APRUTIL_WANTED_REGEXES="$APU_VER_REGEXES"
5033
5034   { $as_echo "$as_me:${as_lineno-$LINENO}: Apache Portable Runtime Utility (APRUTIL) library configuration" >&5
5035 $as_echo "$as_me: Apache Portable Runtime Utility (APRUTIL) library configuration" >&6;}
5036
5037
5038   apu_found="no"
5039
5040   if test "$target_os" = "os2-emx"; then
5041     # Scripts don't pass test -x on OS/2
5042     TEST_X="test -f"
5043   else
5044     TEST_X="test -x"
5045   fi
5046
5047   acceptable_majors="1 0"
5048
5049   apu_temp_acceptable_apu_config=""
5050   for apu_temp_major in $acceptable_majors
5051   do
5052     case $apu_temp_major in
5053       0)
5054       apu_temp_acceptable_apu_config="$apu_temp_acceptable_apu_config apu-config"
5055       ;;
5056       *)
5057       apu_temp_acceptable_apu_config="$apu_temp_acceptable_apu_config apu-$apu_temp_major-config"
5058       ;;
5059     esac
5060   done
5061
5062   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for APR-util" >&5
5063 $as_echo_n "checking for APR-util... " >&6; }
5064
5065 # Check whether --with-apr-util was given.
5066 if test "${with_apr_util+set}" = set; then :
5067   withval=$with_apr_util;
5068     if test "$withval" = "no" || test "$withval" = "yes"; then
5069       as_fn_error $? "--with-apr-util requires a directory or file to be provided" "$LINENO" 5
5070     fi
5071
5072     for apu_temp_apu_config_file in $apu_temp_acceptable_apu_config
5073     do
5074       for lookdir in "$withval/bin" "$withval"
5075       do
5076         if $TEST_X "$lookdir/$apu_temp_apu_config_file"; then
5077           apu_config="$lookdir/$apu_temp_apu_config_file"
5078
5079           apu_found="yes"
5080           break 2
5081         fi
5082       done
5083     done
5084
5085     if test "$apu_found" != "yes" && $TEST_X "$withval" && $withval --help > /dev/null 2>&1 ; then
5086       apu_config="$withval"
5087       apu_found="yes"
5088     fi
5089
5090             if test "$apu_found" != "yes"; then
5091       as_fn_error $? "the --with-apr-util parameter is incorrect. It must specify an install prefix, a build directory, or an apu-config file." "$LINENO" 5
5092     fi
5093
5094 else
5095
5096     if test -n "1" && test "1" = "1"; then
5097       for apu_temp_apu_config_file in $apu_temp_acceptable_apu_config
5098       do
5099         if $apu_temp_apu_config_file --help > /dev/null 2>&1 ; then
5100           apu_config="$apu_temp_apu_config_file"
5101
5102           apu_found="yes"
5103           break
5104         else
5105                     for lookdir in /usr /usr/local /usr/local/apr /opt/apr; do
5106             if $TEST_X "$lookdir/bin/$apu_temp_apu_config_file"; then
5107               apu_config="$lookdir/bin/$apu_temp_apu_config_file"
5108
5109               apu_found="yes"
5110               break 2
5111             fi
5112           done
5113         fi
5114       done
5115     fi
5116         if test "$apu_found" = "no" && test -d """"; then
5117       apu_temp_abs_srcdir="`cd \"""\" && pwd`"
5118       apu_found="reconfig"
5119       apu_bundled_major="`sed -n '/#define.*APU_MAJOR_VERSION/s/^[^0-9]*\([0-9]*\).*$/\1/p' \"""/include/apu_version.h\"`"
5120       case $apu_bundled_major in
5121         "")
5122           as_fn_error $? "failed to find major version of bundled APU" "$LINENO" 5
5123         ;;
5124         0)
5125           apu_temp_apu_config_file="apu-config"
5126         ;;
5127         *)
5128           apu_temp_apu_config_file="apu-$apu_bundled_major-config"
5129         ;;
5130       esac
5131       if test -n """"; then
5132         apu_config="""/$apu_temp_apu_config_file"
5133       else
5134         apu_config="""/$apu_temp_apu_config_file"
5135       fi
5136     fi
5137
5138 fi
5139
5140
5141   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apu_found" >&5
5142 $as_echo "$apu_found" >&6; }
5143
5144
5145   if test $apu_found = "no"; then
5146     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: APRUTIL not found" >&5
5147 $as_echo "$as_me: WARNING: APRUTIL not found" >&2;}
5148
5149   echo "The Apache Portable Runtime Utility (APRUTIL) library cannot be found."
5150   echo "Install APRUTIL on this system and configure Subversion with the"
5151   echo " appropriate --with-apr-util option."
5152   echo ""
5153   as_fn_error $? "no suitable APRUTIL found" "$LINENO" 5
5154
5155   fi
5156
5157   if test $apu_found = "reconfig"; then
5158     as_fn_error $? "Unexpected APRUTIL reconfig" "$LINENO" 5
5159   fi
5160
5161
5162   { $as_echo "$as_me:${as_lineno-$LINENO}: checking APRUTIL version" >&5
5163 $as_echo_n "checking APRUTIL version... " >&6; }
5164   apu_version="`$apu_config --version`"
5165   if test $? -ne 0; then
5166     # This is a hack as suggested by Ben Collins-Sussman.  It can be
5167     # removed after apache 2.0.44 has been released.  (The apu-config
5168     # shipped in 2.0.43 contains a correct version number, but
5169     # stupidly doesn't understand the --version switch.)
5170     apu_version=`grep "APRUTIL_DOTTED_VERSION=" $(which $apu_config) | tr -d "APRUTIL_DOTTED_VERSION="| tr -d '"'`
5171     #AC_MSG_ERROR([
5172     #    apu-config --version failed.
5173     #    Your apu-config doesn't support the --version switch, please upgrade
5174     #    to APR-UTIL more recent than 2002-Nov-05.])
5175   fi
5176   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apu_version" >&5
5177 $as_echo "$apu_version" >&6; }
5178
5179   APU_WANTED_REGEX_MATCH=0
5180   for apu_wanted_regex in $APRUTIL_WANTED_REGEXES; do
5181     if test `expr $apu_version : $apu_wanted_regex` -ne 0; then
5182       APU_WANTED_REGEX_MATCH=1
5183       break
5184     fi
5185   done
5186
5187   if test $APU_WANTED_REGEX_MATCH -eq 0; then
5188     echo "wanted regexes are $APRUTIL_WANTED_REGEXES"
5189     as_fn_error $? "invalid APRUTIL version found" "$LINENO" 5
5190   fi
5191
5192
5193   apu_ldflags="`$apu_config --ldflags`"
5194   if test $? -ne 0; then
5195     as_fn_error $? "apu-config --ldflags failed" "$LINENO" 5
5196   fi
5197   LDFLAGS="$LDFLAGS `
5198   input_flags="$apu_ldflags"
5199   output_flags=""
5200   filtered_dirs="/lib /lib64 /usr/lib /usr/lib64"
5201   for flag in $input_flags; do
5202     filter="no"
5203     for dir in $filtered_dirs; do
5204       if test "$flag" = "-L$dir" || test "$flag" = "-L$dir/"; then
5205         filter="yes"
5206         break
5207       fi
5208     done
5209     if test "$filter" = "no"; then
5210       output_flags="$output_flags $flag"
5211     fi
5212   done
5213   if test -n "$output_flags"; then
5214     printf "%s" "${output_flags# }"
5215   fi
5216 `"
5217
5218   SVN_APRUTIL_INCLUDES="`$apu_config --includes`"
5219   if test $? -ne 0; then
5220     as_fn_error $? "apu-config --includes failed" "$LINENO" 5
5221   fi
5222
5223   if test "$enable_all_static" = "yes"; then
5224     SVN_APRUTIL_LIBS="`$apu_config --link-ld --libs`"
5225     if test $? -ne 0; then
5226       as_fn_error $? "apu-config --link-ld --libs failed" "$LINENO" 5
5227     fi
5228   else
5229     SVN_APRUTIL_LIBS="`$apu_config --link-ld`"
5230     if test $? -ne 0; then
5231       as_fn_error $? "apu-config --link-ld failed" "$LINENO" 5
5232     fi
5233   fi
5234   SVN_APRUTIL_LIBS="`
5235   input_flags="$SVN_APRUTIL_LIBS"
5236   output_flags=""
5237   filtered_dirs="/lib /lib64 /usr/lib /usr/lib64"
5238   for flag in $input_flags; do
5239     filter="no"
5240     for dir in $filtered_dirs; do
5241       if test "$flag" = "-L$dir" || test "$flag" = "-L$dir/"; then
5242         filter="yes"
5243         break
5244       fi
5245     done
5246     if test "$filter" = "no"; then
5247       output_flags="$output_flags $flag"
5248     fi
5249   done
5250   if test -n "$output_flags"; then
5251     printf "%s" "${output_flags# }"
5252   fi
5253 `"
5254
5255
5256   SVN_APRUTIL_CONFIG="$apu_config"
5257
5258
5259
5260     SVN_HAVE_OLD_EXPAT="`$apu_config --old-expat`"
5261   if test "$SVN_HAVE_OLD_EXPAT" = "yes"; then
5262
5263 $as_echo "#define SVN_HAVE_OLD_EXPAT 1" >>confdefs.h
5264
5265   fi
5266
5267   SVN_APR_MAJOR_VERSION=1
5268 fi
5269
5270 SVN_LT_SOVERSION="-version-info $svn_lib_ver"
5271
5272
5273 cat >>confdefs.h <<_ACEOF
5274 #define SVN_SOVERSION $svn_lib_ver
5275 _ACEOF
5276
5277
5278 # Extract the first word of "pkg-config", so it can be a program name with args.
5279 set dummy pkg-config; ac_word=$2
5280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5281 $as_echo_n "checking for $ac_word... " >&6; }
5282 if ${ac_cv_path_PKG_CONFIG+:} false; then :
5283   $as_echo_n "(cached) " >&6
5284 else
5285   case $PKG_CONFIG in
5286   [\\/]* | ?:[\\/]*)
5287   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5288   ;;
5289   *)
5290   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5291 for as_dir in $PATH
5292 do
5293   IFS=$as_save_IFS
5294   test -z "$as_dir" && as_dir=.
5295     for ac_exec_ext in '' $ac_executable_extensions; do
5296   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5297     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5298     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5299     break 2
5300   fi
5301 done
5302   done
5303 IFS=$as_save_IFS
5304
5305   ;;
5306 esac
5307 fi
5308 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5309 if test -n "$PKG_CONFIG"; then
5310   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5311 $as_echo "$PKG_CONFIG" >&6; }
5312 else
5313   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5314 $as_echo "no" >&6; }
5315 fi
5316
5317
5318
5319
5320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5321 $as_echo_n "checking for ANSI C header files... " >&6; }
5322 if ${ac_cv_header_stdc+:} false; then :
5323   $as_echo_n "(cached) " >&6
5324 else
5325   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5326 /* end confdefs.h.  */
5327 #include <stdlib.h>
5328 #include <stdarg.h>
5329 #include <string.h>
5330 #include <float.h>
5331
5332 int
5333 main ()
5334 {
5335
5336   ;
5337   return 0;
5338 }
5339 _ACEOF
5340 if ac_fn_c_try_compile "$LINENO"; then :
5341   ac_cv_header_stdc=yes
5342 else
5343   ac_cv_header_stdc=no
5344 fi
5345 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5346
5347 if test $ac_cv_header_stdc = yes; then
5348   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5349   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5350 /* end confdefs.h.  */
5351 #include <string.h>
5352
5353 _ACEOF
5354 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5355   $EGREP "memchr" >/dev/null 2>&1; then :
5356
5357 else
5358   ac_cv_header_stdc=no
5359 fi
5360 rm -f conftest*
5361
5362 fi
5363
5364 if test $ac_cv_header_stdc = yes; then
5365   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5366   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5367 /* end confdefs.h.  */
5368 #include <stdlib.h>
5369
5370 _ACEOF
5371 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5372   $EGREP "free" >/dev/null 2>&1; then :
5373
5374 else
5375   ac_cv_header_stdc=no
5376 fi
5377 rm -f conftest*
5378
5379 fi
5380
5381 if test $ac_cv_header_stdc = yes; then
5382   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5383   if test "$cross_compiling" = yes; then :
5384   :
5385 else
5386   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5387 /* end confdefs.h.  */
5388 #include <ctype.h>
5389 #include <stdlib.h>
5390 #if ((' ' & 0x0FF) == 0x020)
5391 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5392 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5393 #else
5394 # define ISLOWER(c) \
5395                    (('a' <= (c) && (c) <= 'i') \
5396                      || ('j' <= (c) && (c) <= 'r') \
5397                      || ('s' <= (c) && (c) <= 'z'))
5398 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5399 #endif
5400
5401 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5402 int
5403 main ()
5404 {
5405   int i;
5406   for (i = 0; i < 256; i++)
5407     if (XOR (islower (i), ISLOWER (i))
5408         || toupper (i) != TOUPPER (i))
5409       return 2;
5410   return 0;
5411 }
5412 _ACEOF
5413 if ac_fn_c_try_run "$LINENO"; then :
5414
5415 else
5416   ac_cv_header_stdc=no
5417 fi
5418 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5419   conftest.$ac_objext conftest.beam conftest.$ac_ext
5420 fi
5421
5422 fi
5423 fi
5424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5425 $as_echo "$ac_cv_header_stdc" >&6; }
5426 if test $ac_cv_header_stdc = yes; then
5427
5428 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5429
5430 fi
5431
5432 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5433 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5434                   inttypes.h stdint.h unistd.h
5435 do :
5436   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5437 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5438 "
5439 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5440   cat >>confdefs.h <<_ACEOF
5441 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5442 _ACEOF
5443
5444 fi
5445
5446 done
5447
5448
5449
5450   serf_found=no
5451   serf_required=no
5452   serf_skip=no
5453
5454   serf_check_major="1"
5455   serf_check_minor="3"
5456   serf_check_patch="4"
5457   serf_check_version="1.3.4"
5458
5459
5460 # Check whether --with-serf was given.
5461 if test "${with_serf+set}" = set; then :
5462   withval=$with_serf;
5463     if test "$withval" = "yes" ; then
5464       serf_required=yes
5465     elif test "$withval" = "no" ; then
5466       serf_skip=yes
5467     else
5468       serf_required=yes
5469       serf_prefix="$withval"
5470     fi
5471
5472 fi
5473
5474
5475   if test "$serf_skip" = "no" ; then
5476
5477   { $as_echo "$as_me:${as_lineno-$LINENO}: serf library configuration via pkg-config" >&5
5478 $as_echo "$as_me: serf library configuration via pkg-config" >&6;}
5479   if test -n "$PKG_CONFIG"; then
5480     for serf_major in serf-2 serf-1; do
5481       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $serf_major library" >&5
5482 $as_echo_n "checking for $serf_major library... " >&6; }
5483       if test -n "$serf_prefix" ; then
5484                                                         if test -e "$serf_prefix/$serf_major.pc" ; then
5485           serf_pc_arg="$serf_prefix/$serf_major.pc"
5486         elif test -e "$serf_prefix/lib/pkgconfig/$serf_major.pc" ; then
5487           serf_pc_arg="$serf_prefix/lib/pkgconfig/$serf_major.pc"
5488         else
5489           { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5490 $as_echo "no" >&6; }
5491           continue
5492         fi
5493       else
5494         serf_pc_arg="$serf_major"
5495       fi
5496       if $PKG_CONFIG $serf_pc_arg --exists; then
5497         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5498 $as_echo "yes" >&6; }
5499         { $as_echo "$as_me:${as_lineno-$LINENO}: checking serf library version" >&5
5500 $as_echo_n "checking serf library version... " >&6; }
5501         SERF_VERSION=`$PKG_CONFIG $serf_pc_arg --modversion`
5502         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SERF_VERSION" >&5
5503 $as_echo "$SERF_VERSION" >&6; }
5504         { $as_echo "$as_me:${as_lineno-$LINENO}: checking serf version is suitable" >&5
5505 $as_echo_n "checking serf version is suitable... " >&6; }
5506         if $PKG_CONFIG $serf_pc_arg --atleast-version=$serf_check_version; then
5507           { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5508 $as_echo "yes" >&6; }
5509           serf_found=yes
5510           SVN_SERF_INCLUDES=`$PKG_CONFIG $serf_pc_arg --cflags-only-I`
5511           SVN_SERF_LIBS=`$PKG_CONFIG $serf_pc_arg --libs-only-l`
5512                     LDFLAGS="$LDFLAGS `$PKG_CONFIG $serf_pc_arg --libs | $SED -e 's/-l[^ ]*//g'`"
5513           break
5514         else
5515           { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5516 $as_echo "no" >&6; }
5517           { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Serf version too old: need $serf_check_version" >&5
5518 $as_echo "$as_me: WARNING: Serf version too old: need $serf_check_version" >&2;}
5519         fi
5520       else
5521         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5522 $as_echo "no" >&6; }
5523       fi
5524     done
5525   fi
5526
5527     if test -n "$serf_prefix" && test "$serf_found" = "no" ; then
5528
5529   { $as_echo "$as_me:${as_lineno-$LINENO}: serf library configuration via prefix" >&5
5530 $as_echo "$as_me: serf library configuration via prefix" >&6;}
5531   serf_required=yes
5532   for serf_major in serf-2 serf-1; do
5533     if ! test -d $serf_prefix/include/$serf_major; then continue; fi
5534     save_cppflags="$CPPFLAGS"
5535     CPPFLAGS="$CPPFLAGS $SVN_APR_INCLUDES $SVN_APRUTIL_INCLUDES -I$serf_prefix/include/$serf_major"
5536     for ac_header in serf.h
5537 do :
5538   ac_fn_c_check_header_mongrel "$LINENO" "serf.h" "ac_cv_header_serf_h" "$ac_includes_default"
5539 if test "x$ac_cv_header_serf_h" = xyes; then :
5540   cat >>confdefs.h <<_ACEOF
5541 #define HAVE_SERF_H 1
5542 _ACEOF
5543
5544       save_ldflags="$LDFLAGS"
5545       LDFLAGS="$LDFLAGS `
5546   input_flags="-L$serf_prefix/lib"
5547   output_flags=""
5548   filtered_dirs="/lib /lib64 /usr/lib /usr/lib64"
5549   for flag in $input_flags; do
5550     filter="no"
5551     for dir in $filtered_dirs; do
5552       if test "$flag" = "-L$dir" || test "$flag" = "-L$dir/"; then
5553         filter="yes"
5554         break
5555       fi
5556     done
5557     if test "$filter" = "no"; then
5558       output_flags="$output_flags $flag"
5559     fi
5560   done
5561   if test -n "$output_flags"; then
5562     printf "%s" "${output_flags# }"
5563   fi
5564 `"
5565       as_ac_Lib=`$as_echo "ac_cv_lib_$serf_major''_serf_context_create" | $as_tr_sh`
5566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for serf_context_create in -l$serf_major" >&5
5567 $as_echo_n "checking for serf_context_create in -l$serf_major... " >&6; }
5568 if eval \${$as_ac_Lib+:} false; then :
5569   $as_echo_n "(cached) " >&6
5570 else
5571   ac_check_lib_save_LIBS=$LIBS
5572 LIBS="-l$serf_major $SVN_APRUTIL_LIBS $SVN_APR_LIBS -lz $LIBS"
5573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5574 /* end confdefs.h.  */
5575
5576 /* Override any GCC internal prototype to avoid an error.
5577    Use char because int might match the return type of a GCC
5578    builtin and then its argument prototype would still apply.  */
5579 #ifdef __cplusplus
5580 extern "C"
5581 #endif
5582 char serf_context_create ();
5583 int
5584 main ()
5585 {
5586 return serf_context_create ();
5587   ;
5588   return 0;
5589 }
5590 _ACEOF
5591 if ac_fn_c_try_link "$LINENO"; then :
5592   eval "$as_ac_Lib=yes"
5593 else
5594   eval "$as_ac_Lib=no"
5595 fi
5596 rm -f core conftest.err conftest.$ac_objext \
5597     conftest$ac_exeext conftest.$ac_ext
5598 LIBS=$ac_check_lib_save_LIBS
5599 fi
5600 eval ac_res=\$$as_ac_Lib
5601                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5602 $as_echo "$ac_res" >&6; }
5603 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
5604
5605         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5606 /* end confdefs.h.  */
5607
5608 #include <stdlib.h>
5609 #include "serf.h"
5610
5611 int
5612 main ()
5613 {
5614
5615 #if ! SERF_VERSION_AT_LEAST($serf_check_major, $serf_check_minor, $serf_check_patch)
5616 #error Serf version too old: need $serf_check_version
5617 #endif
5618
5619   ;
5620   return 0;
5621 }
5622 _ACEOF
5623 if ac_fn_c_try_compile "$LINENO"; then :
5624   serf_found=yes
5625 else
5626   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Serf version too old: need $serf_check_version" >&5
5627 $as_echo "$as_me: WARNING: Serf version too old: need $serf_check_version" >&2;}
5628       serf_found=no
5629 fi
5630 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5631 fi
5632
5633     LDFLAGS="$save_ldflags"
5634 fi
5635
5636 done
5637
5638     CPPFLAGS="$save_cppflags"
5639     test $serf_found = yes && break
5640   done
5641
5642   if test $serf_found = "yes"; then
5643     SVN_SERF_INCLUDES="-I$serf_prefix/include/$serf_major"
5644     if test -e "$serf_prefix/lib/lib$serf_major.la"; then
5645       SVN_SERF_LIBS="$serf_prefix/lib/lib$serf_major.la"
5646     else
5647       SVN_SERF_LIBS="-l$serf_major"
5648       LDFLAGS="$LDFLAGS `
5649   input_flags="-L$serf_prefix/lib"
5650   output_flags=""
5651   filtered_dirs="/lib /lib64 /usr/lib /usr/lib64"
5652   for flag in $input_flags; do
5653     filter="no"
5654     for dir in $filtered_dirs; do
5655       if test "$flag" = "-L$dir" || test "$flag" = "-L$dir/"; then
5656         filter="yes"
5657         break
5658       fi
5659     done
5660     if test "$filter" = "no"; then
5661       output_flags="$output_flags $flag"
5662     fi
5663   done
5664   if test -n "$output_flags"; then
5665     printf "%s" "${output_flags# }"
5666   fi
5667 `"
5668     fi
5669   fi
5670
5671     fi
5672
5673     { $as_echo "$as_me:${as_lineno-$LINENO}: checking was serf enabled" >&5
5674 $as_echo_n "checking was serf enabled... " >&6; }
5675     if test "$serf_found" = "yes"; then
5676       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5677 $as_echo "yes" >&6; }
5678     else
5679       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5680 $as_echo "no" >&6; }
5681
5682   echo ""
5683   echo "An appropriate version of serf could not be found, so libsvn_ra_serf"
5684   echo "will not be built.  If you want to build libsvn_ra_serf, please"
5685   echo "install serf $serf_check_version or newer."
5686   echo ""
5687
5688       if test "$serf_required" = "yes"; then
5689         as_fn_error $? "Serf was explicitly enabled but an appropriate version was not found." "$LINENO" 5
5690       fi
5691     fi
5692   fi
5693
5694   svn_lib_serf=$serf_found
5695
5696
5697
5698
5699
5700 if test "$svn_lib_serf" = "yes"; then
5701
5702 $as_echo "#define SVN_HAVE_SERF 1" >>confdefs.h
5703
5704 fi
5705
5706
5707   apr_memcache_found=no
5708
5709
5710 # Check whether --with-apr_memcache was given.
5711 if test "${with_apr_memcache+set}" = set; then :
5712   withval=$with_apr_memcache;
5713     if test "$withval" = "yes" ; then
5714       as_fn_error $? "--with-apr_memcache requires an argument." "$LINENO" 5
5715     else
5716       { $as_echo "$as_me:${as_lineno-$LINENO}: looking for separate apr_memcache package" >&5
5717 $as_echo "$as_me: looking for separate apr_memcache package" >&6;}
5718       apr_memcache_prefix=$withval
5719       save_cppflags="$CPPFLAGS"
5720       CPPFLAGS="$CPPFLAGS $SVN_APR_INCLUDES $SVN_APRUTIL_INCLUDES -I$apr_memcache_prefix/include/apr_memcache-0"
5721       ac_fn_c_check_header_mongrel "$LINENO" "apr_memcache.h" "ac_cv_header_apr_memcache_h" "$ac_includes_default"
5722 if test "x$ac_cv_header_apr_memcache_h" = xyes; then :
5723
5724         save_ldflags="$LDFLAGS"
5725         LDFLAGS="$LDFLAGS -L$apr_memcache_prefix/lib"
5726         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for apr_memcache_create in -lapr_memcache" >&5
5727 $as_echo_n "checking for apr_memcache_create in -lapr_memcache... " >&6; }
5728 if ${ac_cv_lib_apr_memcache_apr_memcache_create+:} false; then :
5729   $as_echo_n "(cached) " >&6
5730 else
5731   ac_check_lib_save_LIBS=$LIBS
5732 LIBS="-lapr_memcache  $LIBS"
5733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5734 /* end confdefs.h.  */
5735
5736 /* Override any GCC internal prototype to avoid an error.
5737    Use char because int might match the return type of a GCC
5738    builtin and then its argument prototype would still apply.  */
5739 #ifdef __cplusplus
5740 extern "C"
5741 #endif
5742 char apr_memcache_create ();
5743 int
5744 main ()
5745 {
5746 return apr_memcache_create ();
5747   ;
5748   return 0;
5749 }
5750 _ACEOF
5751 if ac_fn_c_try_link "$LINENO"; then :
5752   ac_cv_lib_apr_memcache_apr_memcache_create=yes
5753 else
5754   ac_cv_lib_apr_memcache_apr_memcache_create=no
5755 fi
5756 rm -f core conftest.err conftest.$ac_objext \
5757     conftest$ac_exeext conftest.$ac_ext
5758 LIBS=$ac_check_lib_save_LIBS
5759 fi
5760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_apr_memcache_apr_memcache_create" >&5
5761 $as_echo "$ac_cv_lib_apr_memcache_apr_memcache_create" >&6; }
5762 if test "x$ac_cv_lib_apr_memcache_apr_memcache_create" = xyes; then :
5763   apr_memcache_found="standalone"
5764 fi
5765
5766         LDFLAGS="$save_ldflags"
5767 fi
5768
5769
5770       CPPFLAGS="$save_cppflags"
5771     fi
5772
5773 else
5774
5775     { $as_echo "$as_me:${as_lineno-$LINENO}: looking for apr_memcache as part of apr-util" >&5
5776 $as_echo "$as_me: looking for apr_memcache as part of apr-util" >&6;}
5777     save_cppflags="$CPPFLAGS"
5778     CPPFLAGS="$CPPFLAGS $SVN_APR_INCLUDES $SVN_APRUTIL_INCLUDES"
5779     ac_fn_c_check_header_mongrel "$LINENO" "apr_memcache.h" "ac_cv_header_apr_memcache_h" "$ac_includes_default"
5780 if test "x$ac_cv_header_apr_memcache_h" = xyes; then :
5781
5782       save_ldflags="$LDFLAGS"
5783       LDFLAGS="$LDFLAGS $SVN_APRUTIL_LIBS"
5784       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for apr_memcache_create in -laprutil-1" >&5
5785 $as_echo_n "checking for apr_memcache_create in -laprutil-1... " >&6; }
5786 if ${ac_cv_lib_aprutil_1_apr_memcache_create+:} false; then :
5787   $as_echo_n "(cached) " >&6
5788 else
5789   ac_check_lib_save_LIBS=$LIBS
5790 LIBS="-laprutil-1  $LIBS"
5791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5792 /* end confdefs.h.  */
5793
5794 /* Override any GCC internal prototype to avoid an error.
5795    Use char because int might match the return type of a GCC
5796    builtin and then its argument prototype would still apply.  */
5797 #ifdef __cplusplus
5798 extern "C"
5799 #endif
5800 char apr_memcache_create ();
5801 int
5802 main ()
5803 {
5804 return apr_memcache_create ();
5805   ;
5806   return 0;
5807 }
5808 _ACEOF
5809 if ac_fn_c_try_link "$LINENO"; then :
5810   ac_cv_lib_aprutil_1_apr_memcache_create=yes
5811 else
5812   ac_cv_lib_aprutil_1_apr_memcache_create=no
5813 fi
5814 rm -f core conftest.err conftest.$ac_objext \
5815     conftest$ac_exeext conftest.$ac_ext
5816 LIBS=$ac_check_lib_save_LIBS
5817 fi
5818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_aprutil_1_apr_memcache_create" >&5
5819 $as_echo "$ac_cv_lib_aprutil_1_apr_memcache_create" >&6; }
5820 if test "x$ac_cv_lib_aprutil_1_apr_memcache_create" = xyes; then :
5821   apr_memcache_found="aprutil"
5822 fi
5823
5824       LDFLAGS="$save_ldflags"
5825 fi
5826
5827
5828     CPPFLAGS="$save_cppflags"
5829
5830 fi
5831
5832
5833
5834   if test $apr_memcache_found = "standalone"; then
5835     SVN_APR_MEMCACHE_INCLUDES="-I$apr_memcache_prefix/include/apr_memcache-0"
5836     SVN_APR_MEMCACHE_LIBS="$apr_memcache_prefix/lib/libapr_memcache.la"
5837     svn_lib_apr_memcache=yes
5838   elif test $apr_memcache_found = "aprutil"; then
5839     SVN_APR_MEMCACHE_INCLUDES=""
5840     SVN_APR_MEMCACHE_LIBS=""
5841     svn_lib_apr_memcache=yes
5842   elif test $apr_memcache_found = "reconfig"; then
5843     svn_lib_apr_memcache=yes
5844   else
5845     svn_lib_apr_memcache=no
5846   fi
5847
5848
5849
5850
5851
5852 if test "$svn_lib_apr_memcache" = "yes"; then
5853
5854 $as_echo "#define SVN_HAVE_MEMCACHE 1" >>confdefs.h
5855
5856 fi
5857
5858 # Check whether --enable-apache-whitelist was given.
5859 if test "${enable_apache_whitelist+set}" = set; then :
5860   enableval=$enable_apache_whitelist; apache_whitelist_ver=$enableval
5861 else
5862   apache_whitelist_ver=no
5863 fi
5864
5865 HTTPD_WHITELIST="$apache_whitelist_ver"
5866
5867
5868
5869
5870
5871 HTTPD_WANTED_MMN="20051115"
5872
5873 HTTPD_WHITELIST_VER="$apache_whitelist_ver"
5874
5875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Apache module support via DSO through APXS" >&5
5876 $as_echo_n "checking for Apache module support via DSO through APXS... " >&6; }
5877
5878 # Check whether --with-apxs was given.
5879 if test "${with_apxs+set}" = set; then :
5880   withval=$with_apxs;
5881     if test "$withval" = "yes"; then
5882       APXS=apxs
5883     else
5884       APXS="$withval"
5885     fi
5886     APXS_EXPLICIT=1
5887
5888 fi
5889
5890
5891 if test -z "$APXS"; then
5892   for i in /usr/local/apache2/bin /usr/local/apache/bin /usr/bin /usr/sbin ; do
5893     if test -f "$i/apxs2"; then
5894       APXS="$i/apxs2"
5895       break
5896     fi
5897     if test -f "$i/apxs"; then
5898       APXS="$i/apxs"
5899       break
5900     fi
5901   done
5902 fi
5903
5904 if test -n "$APXS" && test "$APXS" != "no"; then
5905     APXS_INCLUDE="`$APXS -q INCLUDEDIR`"
5906     if test -r $APXS_INCLUDE/mod_dav.h; then
5907         { $as_echo "$as_me:${as_lineno-$LINENO}: result: found at $APXS" >&5
5908 $as_echo "found at $APXS" >&6; }
5909
5910         { $as_echo "$as_me:${as_lineno-$LINENO}: checking httpd version" >&5
5911 $as_echo_n "checking httpd version... " >&6; }
5912         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5913 /* end confdefs.h.  */
5914
5915 #include "$APXS_INCLUDE/ap_mmn.h"
5916 #if AP_MODULE_MAGIC_AT_LEAST($HTTPD_WANTED_MMN,0)
5917 VERSION_OKAY
5918 #endif
5919 _ACEOF
5920 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5921   $EGREP "VERSION_OKAY" >/dev/null 2>&1; then :
5922   { $as_echo "$as_me:${as_lineno-$LINENO}: result: recent enough" >&5
5923 $as_echo "recent enough" >&6; }
5924 else
5925   { $as_echo "$as_me:${as_lineno-$LINENO}: result: apache too old:  mmn must be at least $HTTPD_WANTED_MMN" >&5
5926 $as_echo "apache too old:  mmn must be at least $HTTPD_WANTED_MMN" >&6; }
5927          if test "$APXS_EXPLICIT" != ""; then
5928              as_fn_error $? "Apache APXS build explicitly requested, but apache version is too old" "$LINENO" 5
5929          fi
5930          APXS=""
5931
5932 fi
5933 rm -f conftest*
5934
5935
5936     elif test "$APXS_EXPLICIT" != ""; then
5937         as_fn_error $? "no - APXS refers to an old version of Apache
5938                       Unable to locate $APXS_INCLUDE/mod_dav.h" "$LINENO" 5
5939     else
5940         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no - Unable to locate $APXS_INCLUDE/mod_dav.h" >&5
5941 $as_echo "no - Unable to locate $APXS_INCLUDE/mod_dav.h" >&6; }
5942         APXS=""
5943     fi
5944 else
5945     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5946 $as_echo "no" >&6; }
5947 fi
5948
5949 # check for some busted versions of mod_dav
5950 # in particular 2.2.25, 2.4.5, and 2.4.6 had the following bugs which are
5951 # troublesome for Subversion:
5952 # PR 55304: https://issues.apache.org/bugzilla/show_bug.cgi?id=55304
5953 # PR 55306: https://issues.apache.org/bugzilla/show_bug.cgi?id=55306
5954 # PR 55397: https://issues.apache.org/bugzilla/show_bug.cgi?id=55397
5955 if test -n "$APXS" && test "$APXS" != "no"; then
5956   { $as_echo "$as_me:${as_lineno-$LINENO}: checking mod_dav version" >&5
5957 $as_echo_n "checking mod_dav version... " >&6; }
5958   HTTPD_MAJOR=`$SED -ne '/^#define AP_SERVER_MAJORVERSION_NUMBER/p' "$APXS_INCLUDE/ap_release.h" | $SED -e 's/^.*NUMBER *//'`
5959   HTTPD_MINOR=`$SED -ne '/^#define AP_SERVER_MINORVERSION_NUMBER/p' "$APXS_INCLUDE/ap_release.h" | $SED -e 's/^.*NUMBER *//'`
5960   HTTPD_PATCH=`$SED -ne '/^#define AP_SERVER_PATCHLEVEL_NUMBER/p' "$APXS_INCLUDE/ap_release.h" | $SED -e 's/^.*NUMBER *//'`
5961   HTTPD_VERSION="${HTTPD_MAJOR}.${HTTPD_MINOR}.${HTTPD_PATCH}"
5962   case "$HTTPD_VERSION" in
5963     $HTTPD_WHITELIST_VER)
5964       { $as_echo "$as_me:${as_lineno-$LINENO}: result: acceptable (whitelist)" >&5
5965 $as_echo "acceptable (whitelist)" >&6; }
5966       ;;
5967     2.2.25 | 2.4.[5-6])
5968       { $as_echo "$as_me:${as_lineno-$LINENO}: result: broken" >&5
5969 $as_echo "broken" >&6; }
5970       as_fn_error $? "Apache httpd version $HTTPD_VERSION includes a broken mod_dav; use a newer version of httpd" "$LINENO" 5
5971       ;;
5972     2.[0-9]*.[0-9]*)
5973       { $as_echo "$as_me:${as_lineno-$LINENO}: result: acceptable" >&5
5974 $as_echo "acceptable" >&6; }
5975       ;;
5976     *)
5977       { $as_echo "$as_me:${as_lineno-$LINENO}: result: unrecognised" >&5
5978 $as_echo "unrecognised" >&6; }
5979       as_fn_error $? "Apache httpd version $HTTPD_VERSION not recognised" "$LINENO" 5
5980       ;;
5981   esac
5982 fi
5983
5984 if test -n "$APXS" && test "$APXS" != "no"; then
5985   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Apache version is compatible with APR version" >&5
5986 $as_echo_n "checking whether Apache version is compatible with APR version... " >&6; }
5987   apr_major_version="${apr_version%%.*}"
5988   case "$apr_major_version" in
5989     0)
5990       apache_minor_version_wanted_regex="0"
5991       ;;
5992     1)
5993       apache_minor_version_wanted_regex="[1-5]"
5994       ;;
5995     2)
5996       apache_minor_version_wanted_regex="[3-5]"
5997       ;;
5998     *)
5999       as_fn_error $? "unknown APR version" "$LINENO" 5
6000       ;;
6001   esac
6002   case $HTTPD_MINOR in
6003     $apache_minor_version_wanted_regex)
6004       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6005 $as_echo "yes" >&6; }
6006       ;;
6007     *)
6008       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6009 $as_echo "no" >&6; }
6010       as_fn_error $? "Apache version $HTTPD_VERSION incompatible with APR version $apr_version" "$LINENO" 5
6011       ;;
6012   esac
6013 fi
6014
6015
6016 # Check whether --with-apache-libexecdir was given.
6017 if test "${with_apache_libexecdir+set}" = set; then :
6018   withval=$with_apache_libexecdir; APACHE_LIBEXECDIR="$withval"
6019 else
6020   APACHE_LIBEXECDIR='no'
6021 fi
6022
6023
6024 INSTALL_APACHE_MODS=false
6025 if test -n "$APXS" && test "$APXS" != "no"; then
6026     APXS_CC="`$APXS -q CC`"
6027     APACHE_INCLUDES="$APACHE_INCLUDES -I$APXS_INCLUDE"
6028
6029     if test "$APACHE_LIBEXECDIR" = 'no'; then
6030         APACHE_LIBEXECDIR="$libexecdir"
6031     elif test "$APACHE_LIBEXECDIR" = 'yes'; then
6032         APACHE_LIBEXECDIR="`$APXS -q libexecdir`"
6033     fi
6034
6035     for ac_header in unistd.h
6036 do :
6037   ac_fn_c_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
6038 if test "x$ac_cv_header_unistd_h" = xyes; then :
6039   cat >>confdefs.h <<_ACEOF
6040 #define HAVE_UNISTD_H 1
6041 _ACEOF
6042  for ac_func in getpid
6043 do :
6044   ac_fn_c_check_func "$LINENO" "getpid" "ac_cv_func_getpid"
6045 if test "x$ac_cv_func_getpid" = xyes; then :
6046   cat >>confdefs.h <<_ACEOF
6047 #define HAVE_GETPID 1
6048 _ACEOF
6049
6050 fi
6051 done
6052
6053 fi
6054
6055 done
6056
6057
6058     MMN_MAJOR=`$SED -ne '/^#define MODULE_MAGIC_NUMBER_MAJOR/p' "$APXS_INCLUDE/ap_mmn.h" | $SED -e 's/^.*MAJOR *//'`
6059     MMN_MINOR=`$SED -ne '/^#define MODULE_MAGIC_NUMBER_MINOR/p' "$APXS_INCLUDE/ap_mmn.h" | $SED -e 's/^.*MINOR *//' | $SED -e 's/ .*//'`
6060     if test "$MMN_MAJOR" = "20120211" && test "$MMN_MINOR" -lt "47" ; then
6061       # This is httpd 2.4 and it doesn't appear to have the required
6062       # API but the installation may have been patched.
6063       # Check whether --enable-broken-httpd-auth was given.
6064 if test "${enable_broken_httpd_auth+set}" = set; then :
6065   enableval=$enable_broken_httpd_auth; broken_httpd_auth=$enableval
6066 else
6067   broken_httpd_auth=no
6068 fi
6069
6070       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ap_some_authn_required" >&5
6071 $as_echo_n "checking for ap_some_authn_required... " >&6; }
6072       old_CPPFLAGS="$CPPFLAGS"
6073       CPPFLAGS="$CPPFLAGS $APACHE_INCLUDES $SVN_APR_INCLUDES"
6074       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6075 /* end confdefs.h.  */
6076 #include "http_request.h"
6077 _ACEOF
6078 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6079   $EGREP "int.*\sap_some_authn_required\s*\(" >/dev/null 2>&1; then :
6080   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6081 $as_echo "yes" >&6; }
6082                     working_auth=yes
6083 else
6084   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6085 $as_echo "no" >&6; }
6086 fi
6087 rm -f conftest*
6088
6089       CPPFLAGS="$old_CPPFLAGS"
6090       if test "$working_auth" = "yes" ; then
6091
6092 $as_echo "#define SVN_USE_FORCE_AUTHN 1" >>confdefs.h
6093
6094       elif test "$enable_broken_httpd_auth" = "yes"; then
6095         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ==============================================" >&5
6096 $as_echo "$as_me: WARNING: ==============================================" >&2;}
6097         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Apache httpd $HTTPD_VERSION MMN $MMN_MAJOR.$MMN_MINOR" >&5
6098 $as_echo "$as_me: WARNING: Apache httpd $HTTPD_VERSION MMN $MMN_MAJOR.$MMN_MINOR" >&2;}
6099         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Subversion will be vulnerable to CVE-2015-3184" >&5
6100 $as_echo "$as_me: WARNING: Subversion will be vulnerable to CVE-2015-3184" >&2;}
6101         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ==============================================" >&5
6102 $as_echo "$as_me: WARNING: ==============================================" >&2;}
6103
6104 $as_echo "#define SVN_ALLOW_BROKEN_HTTPD_AUTH 1" >>confdefs.h
6105
6106       else
6107         as_fn_error $? "Apache httpd $HTTPD_VERSION MMN $MMN_MAJOR.$MMN_MINOR has broken auth (CVE-2015-3184)" "$LINENO" 5
6108       fi
6109     fi
6110
6111     BUILD_APACHE_RULE=apache-mod
6112     INSTALL_APACHE_RULE=install-mods-shared
6113     INSTALL_APACHE_MODS=true
6114     case $host in
6115       *-*-cygwin*)
6116         APACHE_LDFLAGS="-shrext .so"
6117         ;;
6118     esac
6119 elif test x"$APXS" != x"no"; then
6120     echo "=================================================================="
6121     echo "WARNING: skipping the build of mod_dav_svn"
6122     echo "         try using --with-apxs"
6123     echo "=================================================================="
6124 fi
6125
6126
6127
6128
6129
6130
6131
6132
6133 # there aren't any flags that interest us ...
6134 #if test -n "$APXS" && test "$APXS" != "no"; then
6135 #  CFLAGS="$CFLAGS `$APXS -q CFLAGS CFLAGS_SHLIB`"
6136 #fi
6137
6138 if test -n "$APXS_CC" && test "$APXS_CC" != "$CC" ; then
6139   echo "=================================================================="
6140   echo "WARNING: You have chosen to compile Subversion with a different"
6141   echo "         compiler than the one used to compile Apache."
6142   echo ""
6143   echo "    Current compiler:      $CC"
6144   echo "   Apache's compiler:      $APXS_CC"
6145   echo ""
6146   echo "This could cause some problems."
6147   echo "=================================================================="
6148 fi
6149
6150
6151
6152 SQLITE_MINIMUM_VER="3.8.2"
6153 SQLITE_RECOMMENDED_VER="3.8.11.1"
6154 SQLITE_RECOMMENDED_VER_REL_YEAR="2015"
6155 SQLITE_URL="https://www.sqlite.org/$SQLITE_RECOMMENDED_VER_REL_YEAR/sqlite-amalgamation-$(printf %d%02d%02d%02d $(echo ${SQLITE_RECOMMENDED_VER} | sed -e 's/\./ /g')).zip"
6156
6157
6158   SQLITE_MINIMUM_VER="${SQLITE_MINIMUM_VER}"
6159   SQLITE_RECOMMENDED_VER="${SQLITE_RECOMMENDED_VER}"
6160   SQLITE_URL="${SQLITE_URL}"
6161   SQLITE_PKGNAME="sqlite3"
6162
6163
6164
6165   version_string="$SQLITE_MINIMUM_VER"
6166
6167   major=`expr $version_string : '\([0-9]*\)'`
6168   minor=`expr $version_string : '[0-9]*\.\([0-9]*\)'`
6169   micro=`expr $version_string : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
6170   if test -z "$micro"; then
6171     micro=0
6172   fi
6173   sqlite_min_ver_num=`expr $major \* 1000000 \
6174         \+ $minor \* 1000 \
6175         \+ $micro`
6176
6177
6178
6179   { $as_echo "$as_me:${as_lineno-$LINENO}: checking sqlite library" >&5
6180 $as_echo "$as_me: checking sqlite library" >&6;}
6181
6182
6183 # Check whether --with-sqlite was given.
6184 if test "${with_sqlite+set}" = set; then :
6185   withval=$with_sqlite;
6186     if test "$withval" = "yes" ; then
6187       as_fn_error $? "--with-sqlite requires an argument." "$LINENO" 5
6188     else
6189       sqlite_dir="$withval"
6190     fi
6191
6192     if test -d $sqlite_dir; then
6193
6194   if test -z "$sqlite_dir"; then
6195     sqlite_dir=""
6196     sqlite_include="sqlite3.h"
6197   else
6198     sqlite_dir="$sqlite_dir"
6199     sqlite_include="$sqlite_dir/include/sqlite3.h"
6200   fi
6201
6202   save_CPPFLAGS="$CPPFLAGS"
6203   save_LDFLAGS="$LDFLAGS"
6204
6205   if test ! -z "$sqlite_dir"; then
6206     CPPFLAGS="$CPPFLAGS -I$sqlite_dir/include"
6207     LDFLAGS="$LDFLAGS -L$sqlite_dir/lib"
6208   fi
6209
6210   ac_fn_c_check_header_mongrel "$LINENO" "sqlite3.h" "ac_cv_header_sqlite3_h" "$ac_includes_default"
6211 if test "x$ac_cv_header_sqlite3_h" = xyes; then :
6212
6213       { $as_echo "$as_me:${as_lineno-$LINENO}: checking sqlite library version (via header)" >&5
6214 $as_echo_n "checking sqlite library version (via header)... " >&6; }
6215       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6216 /* end confdefs.h.  */
6217
6218 #include "$sqlite_include"
6219 #if SQLITE_VERSION_NUMBER >= $sqlite_min_ver_num
6220 SQLITE_VERSION_OKAY
6221 #endif
6222 _ACEOF
6223 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6224   $EGREP "SQLITE_VERSION_OKAY" >/dev/null 2>&1; then :
6225   { $as_echo "$as_me:${as_lineno-$LINENO}: result: okay" >&5
6226 $as_echo "okay" >&6; }
6227                    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite3_close in -lsqlite3" >&5
6228 $as_echo_n "checking for sqlite3_close in -lsqlite3... " >&6; }
6229 if ${ac_cv_lib_sqlite3_sqlite3_close+:} false; then :
6230   $as_echo_n "(cached) " >&6
6231 else
6232   ac_check_lib_save_LIBS=$LIBS
6233 LIBS="-lsqlite3  $LIBS"
6234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6235 /* end confdefs.h.  */
6236
6237 /* Override any GCC internal prototype to avoid an error.
6238    Use char because int might match the return type of a GCC
6239    builtin and then its argument prototype would still apply.  */
6240 #ifdef __cplusplus
6241 extern "C"
6242 #endif
6243 char sqlite3_close ();
6244 int
6245 main ()
6246 {
6247 return sqlite3_close ();
6248   ;
6249   return 0;
6250 }
6251 _ACEOF
6252 if ac_fn_c_try_link "$LINENO"; then :
6253   ac_cv_lib_sqlite3_sqlite3_close=yes
6254 else
6255   ac_cv_lib_sqlite3_sqlite3_close=no
6256 fi
6257 rm -f core conftest.err conftest.$ac_objext \
6258     conftest$ac_exeext conftest.$ac_ext
6259 LIBS=$ac_check_lib_save_LIBS
6260 fi
6261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_close" >&5
6262 $as_echo "$ac_cv_lib_sqlite3_sqlite3_close" >&6; }
6263 if test "x$ac_cv_lib_sqlite3_sqlite3_close" = xyes; then :
6264
6265                       svn_lib_sqlite="yes"
6266                       if test -z "$sqlite_dir" -o ! -d "$sqlite_dir"; then
6267                         SVN_SQLITE_LIBS="-lsqlite3"
6268                       else
6269                         SVN_SQLITE_INCLUDES="-I$sqlite_dir/include"
6270                         SVN_SQLITE_LIBS="`
6271   input_flags="-L$sqlite_dir/lib -lsqlite3"
6272   output_flags=""
6273   filtered_dirs="/lib /lib64 /usr/lib /usr/lib64"
6274   for flag in $input_flags; do
6275     filter="no"
6276     for dir in $filtered_dirs; do
6277       if test "$flag" = "-L$dir" || test "$flag" = "-L$dir/"; then
6278         filter="yes"
6279         break
6280       fi
6281     done
6282     if test "$filter" = "no"; then
6283       output_flags="$output_flags $flag"
6284     fi
6285   done
6286   if test -n "$output_flags"; then
6287     printf "%s" "${output_flags# }"
6288   fi
6289 `"
6290                       fi
6291
6292 fi
6293
6294 else
6295   { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported SQLite version" >&5
6296 $as_echo "unsupported SQLite version" >&6; }
6297 fi
6298 rm -f conftest*
6299
6300
6301 fi
6302
6303
6304
6305   CPPFLAGS="$save_CPPFLAGS"
6306   LDFLAGS="$save_LDFLAGS"
6307
6308     else
6309
6310   sqlite_amalg="$sqlite_dir"
6311   { $as_echo "$as_me:${as_lineno-$LINENO}: checking sqlite amalgamation" >&5
6312 $as_echo_n "checking sqlite amalgamation... " >&6; }
6313   if test ! -e $sqlite_amalg; then
6314     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6315 $as_echo "no" >&6; }
6316   else
6317     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6318 $as_echo "yes" >&6; }
6319     { $as_echo "$as_me:${as_lineno-$LINENO}: checking sqlite amalgamation file version" >&5
6320 $as_echo_n "checking sqlite amalgamation file version... " >&6; }
6321     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6322 /* end confdefs.h.  */
6323
6324 #include "$sqlite_amalg"
6325 #if SQLITE_VERSION_NUMBER >= $sqlite_min_ver_num
6326 SQLITE_VERSION_OKAY
6327 #endif
6328 _ACEOF
6329 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6330   $EGREP "SQLITE_VERSION_OKAY" >/dev/null 2>&1; then :
6331   { $as_echo "$as_me:${as_lineno-$LINENO}: result: amalgamation found and is okay" >&5
6332 $as_echo "amalgamation found and is okay" >&6; }
6333
6334   case $host_os in
6335   beos* | mingw* | pw32* | cegcc* | cygwin*)
6336     svn_sqlite_dso_ldflags=
6337     ;;
6338
6339   darwin*)
6340   # if libdl is installed we need to link against it
6341     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
6342 $as_echo_n "checking for dlopen in -ldl... " >&6; }
6343 if ${ac_cv_lib_dl_dlopen+:} false; then :
6344   $as_echo_n "(cached) " >&6
6345 else
6346   ac_check_lib_save_LIBS=$LIBS
6347 LIBS="-ldl  $LIBS"
6348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6349 /* end confdefs.h.  */
6350
6351 /* Override any GCC internal prototype to avoid an error.
6352    Use char because int might match the return type of a GCC
6353    builtin and then its argument prototype would still apply.  */
6354 #ifdef __cplusplus
6355 extern "C"
6356 #endif
6357 char dlopen ();
6358 int
6359 main ()
6360 {
6361 return dlopen ();
6362   ;
6363   return 0;
6364 }
6365 _ACEOF
6366 if ac_fn_c_try_link "$LINENO"; then :
6367   ac_cv_lib_dl_dlopen=yes
6368 else
6369   ac_cv_lib_dl_dlopen=no
6370 fi
6371 rm -f core conftest.err conftest.$ac_objext \
6372     conftest$ac_exeext conftest.$ac_ext
6373 LIBS=$ac_check_lib_save_LIBS
6374 fi
6375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
6376 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
6377 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
6378   lt_cv_dlopen="dlopen" svn_sqlite_dso_ldflags="-ldl"
6379 else
6380
6381     svn_sqlite_dso_ldflags=
6382
6383 fi
6384
6385     ;;
6386
6387   *)
6388     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
6389 if test "x$ac_cv_func_shl_load" = xyes; then :
6390   svn_sqlite_dso_ldflags=
6391 else
6392   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
6393 $as_echo_n "checking for shl_load in -ldld... " >&6; }
6394 if ${ac_cv_lib_dld_shl_load+:} false; then :
6395   $as_echo_n "(cached) " >&6
6396 else
6397   ac_check_lib_save_LIBS=$LIBS
6398 LIBS="-ldld  $LIBS"
6399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6400 /* end confdefs.h.  */
6401
6402 /* Override any GCC internal prototype to avoid an error.
6403    Use char because int might match the return type of a GCC
6404    builtin and then its argument prototype would still apply.  */
6405 #ifdef __cplusplus
6406 extern "C"
6407 #endif
6408 char shl_load ();
6409 int
6410 main ()
6411 {
6412 return shl_load ();
6413   ;
6414   return 0;
6415 }
6416 _ACEOF
6417 if ac_fn_c_try_link "$LINENO"; then :
6418   ac_cv_lib_dld_shl_load=yes
6419 else
6420   ac_cv_lib_dld_shl_load=no
6421 fi
6422 rm -f core conftest.err conftest.$ac_objext \
6423     conftest$ac_exeext conftest.$ac_ext
6424 LIBS=$ac_check_lib_save_LIBS
6425 fi
6426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
6427 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
6428 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
6429   svn_sqlite_dso_ldflags="-ldld"
6430 else
6431   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
6432 if test "x$ac_cv_func_dlopen" = xyes; then :
6433   svn_sqlite_dso_ldflags=
6434 else
6435   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
6436 $as_echo_n "checking for dlopen in -ldl... " >&6; }
6437 if ${ac_cv_lib_dl_dlopen+:} false; then :
6438   $as_echo_n "(cached) " >&6
6439 else
6440   ac_check_lib_save_LIBS=$LIBS
6441 LIBS="-ldl  $LIBS"
6442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6443 /* end confdefs.h.  */
6444
6445 /* Override any GCC internal prototype to avoid an error.
6446    Use char because int might match the return type of a GCC
6447    builtin and then its argument prototype would still apply.  */
6448 #ifdef __cplusplus
6449 extern "C"
6450 #endif
6451 char dlopen ();
6452 int
6453 main ()
6454 {
6455 return dlopen ();
6456   ;
6457   return 0;
6458 }
6459 _ACEOF
6460 if ac_fn_c_try_link "$LINENO"; then :
6461   ac_cv_lib_dl_dlopen=yes
6462 else
6463   ac_cv_lib_dl_dlopen=no
6464 fi
6465 rm -f core conftest.err conftest.$ac_objext \
6466     conftest$ac_exeext conftest.$ac_ext
6467 LIBS=$ac_check_lib_save_LIBS
6468 fi
6469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
6470 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
6471 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
6472   svn_sqlite_dso_ldflags="-ldl"
6473 else
6474   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
6475 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
6476 if ${ac_cv_lib_svld_dlopen+:} false; then :
6477   $as_echo_n "(cached) " >&6
6478 else
6479   ac_check_lib_save_LIBS=$LIBS
6480 LIBS="-lsvld  $LIBS"
6481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6482 /* end confdefs.h.  */
6483
6484 /* Override any GCC internal prototype to avoid an error.
6485    Use char because int might match the return type of a GCC
6486    builtin and then its argument prototype would still apply.  */
6487 #ifdef __cplusplus
6488 extern "C"
6489 #endif
6490 char dlopen ();
6491 int
6492 main ()
6493 {
6494 return dlopen ();
6495   ;
6496   return 0;
6497 }
6498 _ACEOF
6499 if ac_fn_c_try_link "$LINENO"; then :
6500   ac_cv_lib_svld_dlopen=yes
6501 else
6502   ac_cv_lib_svld_dlopen=no
6503 fi
6504 rm -f core conftest.err conftest.$ac_objext \
6505     conftest$ac_exeext conftest.$ac_ext
6506 LIBS=$ac_check_lib_save_LIBS
6507 fi
6508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
6509 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
6510 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
6511   svn_sqlite_dso_ldflags="-lsvld"
6512 else
6513   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
6514 $as_echo_n "checking for dld_link in -ldld... " >&6; }
6515 if ${ac_cv_lib_dld_dld_link+:} false; then :
6516   $as_echo_n "(cached) " >&6
6517 else
6518   ac_check_lib_save_LIBS=$LIBS
6519 LIBS="-ldld  $LIBS"
6520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6521 /* end confdefs.h.  */
6522
6523 /* Override any GCC internal prototype to avoid an error.
6524    Use char because int might match the return type of a GCC
6525    builtin and then its argument prototype would still apply.  */
6526 #ifdef __cplusplus
6527 extern "C"
6528 #endif
6529 char dld_link ();
6530 int
6531 main ()
6532 {
6533 return dld_link ();
6534   ;
6535   return 0;
6536 }
6537 _ACEOF
6538 if ac_fn_c_try_link "$LINENO"; then :
6539   ac_cv_lib_dld_dld_link=yes
6540 else
6541   ac_cv_lib_dld_dld_link=no
6542 fi
6543 rm -f core conftest.err conftest.$ac_objext \
6544     conftest$ac_exeext conftest.$ac_ext
6545 LIBS=$ac_check_lib_save_LIBS
6546 fi
6547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
6548 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
6549 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
6550   svn_sqlite_dso_ldflags="-ldld"
6551 fi
6552
6553
6554 fi
6555
6556
6557 fi
6558
6559
6560 fi
6561
6562
6563 fi
6564
6565
6566 fi
6567
6568     ;;
6569   esac
6570
6571   { $as_echo "$as_me:${as_lineno-$LINENO}: checking additional libraries for sqlite" >&5
6572 $as_echo_n "checking additional libraries for sqlite... " >&6; }
6573   if test -n "$svn_sqlite_dso_ldflags"; then
6574     { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${svn_sqlite_dso_ldflags}" >&5
6575 $as_echo "${svn_sqlite_dso_ldflags}" >&6; }
6576   else
6577     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6578 $as_echo "none" >&6; }
6579   fi
6580
6581
6582 $as_echo "#define SVN_SQLITE_INLINE 1" >>confdefs.h
6583
6584                   SVN_SQLITE_INCLUDES="-I`dirname $sqlite_amalg`"
6585                   if test -n "$svn_sqlite_dso_ldflags"; then
6586                     SVN_SQLITE_LIBS="$svn_sqlite_dso_ldflags -lpthread"
6587                   else
6588                     SVN_SQLITE_LIBS="-lpthread"
6589                   fi
6590                   svn_lib_sqlite="yes"
6591 else
6592   { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported amalgamation SQLite version" >&5
6593 $as_echo "unsupported amalgamation SQLite version" >&6; }
6594 fi
6595 rm -f conftest*
6596
6597   fi
6598
6599     fi
6600
6601     if test -z "$svn_lib_sqlite"; then
6602       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no suitable sqlite found in $sqlite_dir" >&5
6603 $as_echo "$as_me: WARNING: no suitable sqlite found in $sqlite_dir" >&2;}
6604
6605   echo ""
6606   echo "An appropriate version of sqlite could not be found.  We recommmend"
6607   echo "${SQLITE_RECOMMENDED_VER}, but require at least ${SQLITE_MINIMUM_VER}."
6608   echo "Please either install a newer sqlite on this system"
6609   echo ""
6610   echo "or"
6611   echo ""
6612   echo "get the sqlite ${SQLITE_RECOMMENDED_VER} amalgamation from:"
6613   echo "    ${SQLITE_URL}"
6614   echo "unpack the archive using unzip and rename the resulting"
6615   echo "directory to:"
6616   echo "$abs_srcdir/sqlite-amalgamation"
6617   if test x"$abs_srcdir" != x"$abs_builddir"; then
6618     echo "or to:"
6619     echo "$abs_builddir/sqlite-amalgamation"
6620   fi
6621   echo ""
6622   as_fn_error $? "Subversion requires SQLite" "$LINENO" 5
6623
6624     fi
6625
6626 else
6627
6628
6629   sqlite_amalg="$abs_srcdir/sqlite-amalgamation/sqlite3.c"
6630   { $as_echo "$as_me:${as_lineno-$LINENO}: checking sqlite amalgamation" >&5
6631 $as_echo_n "checking sqlite amalgamation... " >&6; }
6632   if test ! -e $sqlite_amalg; then
6633     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6634 $as_echo "no" >&6; }
6635   else
6636     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6637 $as_echo "yes" >&6; }
6638     { $as_echo "$as_me:${as_lineno-$LINENO}: checking sqlite amalgamation file version" >&5
6639 $as_echo_n "checking sqlite amalgamation file version... " >&6; }
6640     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6641 /* end confdefs.h.  */
6642
6643 #include "$sqlite_amalg"
6644 #if SQLITE_VERSION_NUMBER >= $sqlite_min_ver_num
6645 SQLITE_VERSION_OKAY
6646 #endif
6647 _ACEOF
6648 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6649   $EGREP "SQLITE_VERSION_OKAY" >/dev/null 2>&1; then :
6650   { $as_echo "$as_me:${as_lineno-$LINENO}: result: amalgamation found and is okay" >&5
6651 $as_echo "amalgamation found and is okay" >&6; }
6652
6653   case $host_os in
6654   beos* | mingw* | pw32* | cegcc* | cygwin*)
6655     svn_sqlite_dso_ldflags=
6656     ;;
6657
6658   darwin*)
6659   # if libdl is installed we need to link against it
6660     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
6661 $as_echo_n "checking for dlopen in -ldl... " >&6; }
6662 if ${ac_cv_lib_dl_dlopen+:} false; then :
6663   $as_echo_n "(cached) " >&6
6664 else
6665   ac_check_lib_save_LIBS=$LIBS
6666 LIBS="-ldl  $LIBS"
6667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6668 /* end confdefs.h.  */
6669
6670 /* Override any GCC internal prototype to avoid an error.
6671    Use char because int might match the return type of a GCC
6672    builtin and then its argument prototype would still apply.  */
6673 #ifdef __cplusplus
6674 extern "C"
6675 #endif
6676 char dlopen ();
6677 int
6678 main ()
6679 {
6680 return dlopen ();
6681   ;
6682   return 0;
6683 }
6684 _ACEOF
6685 if ac_fn_c_try_link "$LINENO"; then :
6686   ac_cv_lib_dl_dlopen=yes
6687 else
6688   ac_cv_lib_dl_dlopen=no
6689 fi
6690 rm -f core conftest.err conftest.$ac_objext \
6691     conftest$ac_exeext conftest.$ac_ext
6692 LIBS=$ac_check_lib_save_LIBS
6693 fi
6694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
6695 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
6696 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
6697   lt_cv_dlopen="dlopen" svn_sqlite_dso_ldflags="-ldl"
6698 else
6699
6700     svn_sqlite_dso_ldflags=
6701
6702 fi
6703
6704     ;;
6705
6706   *)
6707     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
6708 if test "x$ac_cv_func_shl_load" = xyes; then :
6709   svn_sqlite_dso_ldflags=
6710 else
6711   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
6712 $as_echo_n "checking for shl_load in -ldld... " >&6; }
6713 if ${ac_cv_lib_dld_shl_load+:} false; then :
6714   $as_echo_n "(cached) " >&6
6715 else
6716   ac_check_lib_save_LIBS=$LIBS
6717 LIBS="-ldld  $LIBS"
6718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6719 /* end confdefs.h.  */
6720
6721 /* Override any GCC internal prototype to avoid an error.
6722    Use char because int might match the return type of a GCC
6723    builtin and then its argument prototype would still apply.  */
6724 #ifdef __cplusplus
6725 extern "C"
6726 #endif
6727 char shl_load ();
6728 int
6729 main ()
6730 {
6731 return shl_load ();
6732   ;
6733   return 0;
6734 }
6735 _ACEOF
6736 if ac_fn_c_try_link "$LINENO"; then :
6737   ac_cv_lib_dld_shl_load=yes
6738 else
6739   ac_cv_lib_dld_shl_load=no
6740 fi
6741 rm -f core conftest.err conftest.$ac_objext \
6742     conftest$ac_exeext conftest.$ac_ext
6743 LIBS=$ac_check_lib_save_LIBS
6744 fi
6745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
6746 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
6747 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
6748   svn_sqlite_dso_ldflags="-ldld"
6749 else
6750   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
6751 if test "x$ac_cv_func_dlopen" = xyes; then :
6752   svn_sqlite_dso_ldflags=
6753 else
6754   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
6755 $as_echo_n "checking for dlopen in -ldl... " >&6; }
6756 if ${ac_cv_lib_dl_dlopen+:} false; then :
6757   $as_echo_n "(cached) " >&6
6758 else
6759   ac_check_lib_save_LIBS=$LIBS
6760 LIBS="-ldl  $LIBS"
6761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6762 /* end confdefs.h.  */
6763
6764 /* Override any GCC internal prototype to avoid an error.
6765    Use char because int might match the return type of a GCC
6766    builtin and then its argument prototype would still apply.  */
6767 #ifdef __cplusplus
6768 extern "C"
6769 #endif
6770 char dlopen ();
6771 int
6772 main ()
6773 {
6774 return dlopen ();
6775   ;
6776   return 0;
6777 }
6778 _ACEOF
6779 if ac_fn_c_try_link "$LINENO"; then :
6780   ac_cv_lib_dl_dlopen=yes
6781 else
6782   ac_cv_lib_dl_dlopen=no
6783 fi
6784 rm -f core conftest.err conftest.$ac_objext \
6785     conftest$ac_exeext conftest.$ac_ext
6786 LIBS=$ac_check_lib_save_LIBS
6787 fi
6788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
6789 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
6790 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
6791   svn_sqlite_dso_ldflags="-ldl"
6792 else
6793   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
6794 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
6795 if ${ac_cv_lib_svld_dlopen+:} false; then :
6796   $as_echo_n "(cached) " >&6
6797 else
6798   ac_check_lib_save_LIBS=$LIBS
6799 LIBS="-lsvld  $LIBS"
6800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6801 /* end confdefs.h.  */
6802
6803 /* Override any GCC internal prototype to avoid an error.
6804    Use char because int might match the return type of a GCC
6805    builtin and then its argument prototype would still apply.  */
6806 #ifdef __cplusplus
6807 extern "C"
6808 #endif
6809 char dlopen ();
6810 int
6811 main ()
6812 {
6813 return dlopen ();
6814   ;
6815   return 0;
6816 }
6817 _ACEOF
6818 if ac_fn_c_try_link "$LINENO"; then :
6819   ac_cv_lib_svld_dlopen=yes
6820 else
6821   ac_cv_lib_svld_dlopen=no
6822 fi
6823 rm -f core conftest.err conftest.$ac_objext \
6824     conftest$ac_exeext conftest.$ac_ext
6825 LIBS=$ac_check_lib_save_LIBS
6826 fi
6827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
6828 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
6829 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
6830   svn_sqlite_dso_ldflags="-lsvld"
6831 else
6832   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
6833 $as_echo_n "checking for dld_link in -ldld... " >&6; }
6834 if ${ac_cv_lib_dld_dld_link+:} false; then :
6835   $as_echo_n "(cached) " >&6
6836 else
6837   ac_check_lib_save_LIBS=$LIBS
6838 LIBS="-ldld  $LIBS"
6839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6840 /* end confdefs.h.  */
6841
6842 /* Override any GCC internal prototype to avoid an error.
6843    Use char because int might match the return type of a GCC
6844    builtin and then its argument prototype would still apply.  */
6845 #ifdef __cplusplus
6846 extern "C"
6847 #endif
6848 char dld_link ();
6849 int
6850 main ()
6851 {
6852 return dld_link ();
6853   ;
6854   return 0;
6855 }
6856 _ACEOF
6857 if ac_fn_c_try_link "$LINENO"; then :
6858   ac_cv_lib_dld_dld_link=yes
6859 else
6860   ac_cv_lib_dld_dld_link=no
6861 fi
6862 rm -f core conftest.err conftest.$ac_objext \
6863     conftest$ac_exeext conftest.$ac_ext
6864 LIBS=$ac_check_lib_save_LIBS
6865 fi
6866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
6867 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
6868 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
6869   svn_sqlite_dso_ldflags="-ldld"
6870 fi
6871
6872
6873 fi
6874
6875
6876 fi
6877
6878
6879 fi
6880
6881
6882 fi
6883
6884
6885 fi
6886
6887     ;;
6888   esac
6889
6890   { $as_echo "$as_me:${as_lineno-$LINENO}: checking additional libraries for sqlite" >&5
6891 $as_echo_n "checking additional libraries for sqlite... " >&6; }
6892   if test -n "$svn_sqlite_dso_ldflags"; then
6893     { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${svn_sqlite_dso_ldflags}" >&5
6894 $as_echo "${svn_sqlite_dso_ldflags}" >&6; }
6895   else
6896     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6897 $as_echo "none" >&6; }
6898   fi
6899
6900
6901 $as_echo "#define SVN_SQLITE_INLINE 1" >>confdefs.h
6902
6903                   SVN_SQLITE_INCLUDES="-I`dirname $sqlite_amalg`"
6904                   if test -n "$svn_sqlite_dso_ldflags"; then
6905                     SVN_SQLITE_LIBS="$svn_sqlite_dso_ldflags -lpthread"
6906                   else
6907                     SVN_SQLITE_LIBS="-lpthread"
6908                   fi
6909                   svn_lib_sqlite="yes"
6910 else
6911   { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported amalgamation SQLite version" >&5
6912 $as_echo "unsupported amalgamation SQLite version" >&6; }
6913 fi
6914 rm -f conftest*
6915
6916   fi
6917
6918
6919     if test -z "$svn_lib_sqlite"; then
6920
6921   sqlite_amalg="$abs_builddir/sqlite-amalgamation/sqlite3.c"
6922   { $as_echo "$as_me:${as_lineno-$LINENO}: checking sqlite amalgamation" >&5
6923 $as_echo_n "checking sqlite amalgamation... " >&6; }
6924   if test ! -e $sqlite_amalg; then
6925     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6926 $as_echo "no" >&6; }
6927   else
6928     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6929 $as_echo "yes" >&6; }
6930     { $as_echo "$as_me:${as_lineno-$LINENO}: checking sqlite amalgamation file version" >&5
6931 $as_echo_n "checking sqlite amalgamation file version... " >&6; }
6932     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6933 /* end confdefs.h.  */
6934
6935 #include "$sqlite_amalg"
6936 #if SQLITE_VERSION_NUMBER >= $sqlite_min_ver_num
6937 SQLITE_VERSION_OKAY
6938 #endif
6939 _ACEOF
6940 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6941   $EGREP "SQLITE_VERSION_OKAY" >/dev/null 2>&1; then :
6942   { $as_echo "$as_me:${as_lineno-$LINENO}: result: amalgamation found and is okay" >&5
6943 $as_echo "amalgamation found and is okay" >&6; }
6944
6945   case $host_os in
6946   beos* | mingw* | pw32* | cegcc* | cygwin*)
6947     svn_sqlite_dso_ldflags=
6948     ;;
6949
6950   darwin*)
6951   # if libdl is installed we need to link against it
6952     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
6953 $as_echo_n "checking for dlopen in -ldl... " >&6; }
6954 if ${ac_cv_lib_dl_dlopen+:} false; then :
6955   $as_echo_n "(cached) " >&6
6956 else
6957   ac_check_lib_save_LIBS=$LIBS
6958 LIBS="-ldl  $LIBS"
6959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6960 /* end confdefs.h.  */
6961
6962 /* Override any GCC internal prototype to avoid an error.
6963    Use char because int might match the return type of a GCC
6964    builtin and then its argument prototype would still apply.  */
6965 #ifdef __cplusplus
6966 extern "C"
6967 #endif
6968 char dlopen ();
6969 int
6970 main ()
6971 {
6972 return dlopen ();
6973   ;
6974   return 0;
6975 }
6976 _ACEOF
6977 if ac_fn_c_try_link "$LINENO"; then :
6978   ac_cv_lib_dl_dlopen=yes
6979 else
6980   ac_cv_lib_dl_dlopen=no
6981 fi
6982 rm -f core conftest.err conftest.$ac_objext \
6983     conftest$ac_exeext conftest.$ac_ext
6984 LIBS=$ac_check_lib_save_LIBS
6985 fi
6986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
6987 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
6988 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
6989   lt_cv_dlopen="dlopen" svn_sqlite_dso_ldflags="-ldl"
6990 else
6991
6992     svn_sqlite_dso_ldflags=
6993
6994 fi
6995
6996     ;;
6997
6998   *)
6999     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
7000 if test "x$ac_cv_func_shl_load" = xyes; then :
7001   svn_sqlite_dso_ldflags=
7002 else
7003   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
7004 $as_echo_n "checking for shl_load in -ldld... " >&6; }
7005 if ${ac_cv_lib_dld_shl_load+:} false; then :
7006   $as_echo_n "(cached) " >&6
7007 else
7008   ac_check_lib_save_LIBS=$LIBS
7009 LIBS="-ldld  $LIBS"
7010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7011 /* end confdefs.h.  */
7012
7013 /* Override any GCC internal prototype to avoid an error.
7014    Use char because int might match the return type of a GCC
7015    builtin and then its argument prototype would still apply.  */
7016 #ifdef __cplusplus
7017 extern "C"
7018 #endif
7019 char shl_load ();
7020 int
7021 main ()
7022 {
7023 return shl_load ();
7024   ;
7025   return 0;
7026 }
7027 _ACEOF
7028 if ac_fn_c_try_link "$LINENO"; then :
7029   ac_cv_lib_dld_shl_load=yes
7030 else
7031   ac_cv_lib_dld_shl_load=no
7032 fi
7033 rm -f core conftest.err conftest.$ac_objext \
7034     conftest$ac_exeext conftest.$ac_ext
7035 LIBS=$ac_check_lib_save_LIBS
7036 fi
7037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
7038 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
7039 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
7040   svn_sqlite_dso_ldflags="-ldld"
7041 else
7042   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
7043 if test "x$ac_cv_func_dlopen" = xyes; then :
7044   svn_sqlite_dso_ldflags=
7045 else
7046   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
7047 $as_echo_n "checking for dlopen in -ldl... " >&6; }
7048 if ${ac_cv_lib_dl_dlopen+:} false; then :
7049   $as_echo_n "(cached) " >&6
7050 else
7051   ac_check_lib_save_LIBS=$LIBS
7052 LIBS="-ldl  $LIBS"
7053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7054 /* end confdefs.h.  */
7055
7056 /* Override any GCC internal prototype to avoid an error.
7057    Use char because int might match the return type of a GCC
7058    builtin and then its argument prototype would still apply.  */
7059 #ifdef __cplusplus
7060 extern "C"
7061 #endif
7062 char dlopen ();
7063 int
7064 main ()
7065 {
7066 return dlopen ();
7067   ;
7068   return 0;
7069 }
7070 _ACEOF
7071 if ac_fn_c_try_link "$LINENO"; then :
7072   ac_cv_lib_dl_dlopen=yes
7073 else
7074   ac_cv_lib_dl_dlopen=no
7075 fi
7076 rm -f core conftest.err conftest.$ac_objext \
7077     conftest$ac_exeext conftest.$ac_ext
7078 LIBS=$ac_check_lib_save_LIBS
7079 fi
7080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
7081 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
7082 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
7083   svn_sqlite_dso_ldflags="-ldl"
7084 else
7085   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
7086 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
7087 if ${ac_cv_lib_svld_dlopen+:} false; then :
7088   $as_echo_n "(cached) " >&6
7089 else
7090   ac_check_lib_save_LIBS=$LIBS
7091 LIBS="-lsvld  $LIBS"
7092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7093 /* end confdefs.h.  */
7094
7095 /* Override any GCC internal prototype to avoid an error.
7096    Use char because int might match the return type of a GCC
7097    builtin and then its argument prototype would still apply.  */
7098 #ifdef __cplusplus
7099 extern "C"
7100 #endif
7101 char dlopen ();
7102 int
7103 main ()
7104 {
7105 return dlopen ();
7106   ;
7107   return 0;
7108 }
7109 _ACEOF
7110 if ac_fn_c_try_link "$LINENO"; then :
7111   ac_cv_lib_svld_dlopen=yes
7112 else
7113   ac_cv_lib_svld_dlopen=no
7114 fi
7115 rm -f core conftest.err conftest.$ac_objext \
7116     conftest$ac_exeext conftest.$ac_ext
7117 LIBS=$ac_check_lib_save_LIBS
7118 fi
7119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
7120 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
7121 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
7122   svn_sqlite_dso_ldflags="-lsvld"
7123 else
7124   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
7125 $as_echo_n "checking for dld_link in -ldld... " >&6; }
7126 if ${ac_cv_lib_dld_dld_link+:} false; then :
7127   $as_echo_n "(cached) " >&6
7128 else
7129   ac_check_lib_save_LIBS=$LIBS
7130 LIBS="-ldld  $LIBS"
7131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7132 /* end confdefs.h.  */
7133
7134 /* Override any GCC internal prototype to avoid an error.
7135    Use char because int might match the return type of a GCC
7136    builtin and then its argument prototype would still apply.  */
7137 #ifdef __cplusplus
7138 extern "C"
7139 #endif
7140 char dld_link ();
7141 int
7142 main ()
7143 {
7144 return dld_link ();
7145   ;
7146   return 0;
7147 }
7148 _ACEOF
7149 if ac_fn_c_try_link "$LINENO"; then :
7150   ac_cv_lib_dld_dld_link=yes
7151 else
7152   ac_cv_lib_dld_dld_link=no
7153 fi
7154 rm -f core conftest.err conftest.$ac_objext \
7155     conftest$ac_exeext conftest.$ac_ext
7156 LIBS=$ac_check_lib_save_LIBS
7157 fi
7158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
7159 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
7160 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
7161   svn_sqlite_dso_ldflags="-ldld"
7162 fi
7163
7164
7165 fi
7166
7167
7168 fi
7169
7170
7171 fi
7172
7173
7174 fi
7175
7176
7177 fi
7178
7179     ;;
7180   esac
7181
7182   { $as_echo "$as_me:${as_lineno-$LINENO}: checking additional libraries for sqlite" >&5
7183 $as_echo_n "checking additional libraries for sqlite... " >&6; }
7184   if test -n "$svn_sqlite_dso_ldflags"; then
7185     { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${svn_sqlite_dso_ldflags}" >&5
7186 $as_echo "${svn_sqlite_dso_ldflags}" >&6; }
7187   else
7188     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
7189 $as_echo "none" >&6; }
7190   fi
7191
7192
7193 $as_echo "#define SVN_SQLITE_INLINE 1" >>confdefs.h
7194
7195                   SVN_SQLITE_INCLUDES="-I`dirname $sqlite_amalg`"
7196                   if test -n "$svn_sqlite_dso_ldflags"; then
7197                     SVN_SQLITE_LIBS="$svn_sqlite_dso_ldflags -lpthread"
7198                   else
7199                     SVN_SQLITE_LIBS="-lpthread"
7200                   fi
7201                   svn_lib_sqlite="yes"
7202 else
7203   { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported amalgamation SQLite version" >&5
7204 $as_echo "unsupported amalgamation SQLite version" >&6; }
7205 fi
7206 rm -f conftest*
7207
7208   fi
7209
7210     fi
7211
7212     if test -z "$svn_lib_sqlite"; then
7213
7214   if test -z ""; then
7215     sqlite_dir=""
7216     sqlite_include="sqlite3.h"
7217   else
7218     sqlite_dir=""
7219     sqlite_include="/include/sqlite3.h"
7220   fi
7221
7222   save_CPPFLAGS="$CPPFLAGS"
7223   save_LDFLAGS="$LDFLAGS"
7224
7225   if test ! -z ""; then
7226     CPPFLAGS="$CPPFLAGS -I$sqlite_dir/include"
7227     LDFLAGS="$LDFLAGS -L$sqlite_dir/lib"
7228   fi
7229
7230   ac_fn_c_check_header_mongrel "$LINENO" "sqlite3.h" "ac_cv_header_sqlite3_h" "$ac_includes_default"
7231 if test "x$ac_cv_header_sqlite3_h" = xyes; then :
7232
7233       { $as_echo "$as_me:${as_lineno-$LINENO}: checking sqlite library version (via header)" >&5
7234 $as_echo_n "checking sqlite library version (via header)... " >&6; }
7235       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7236 /* end confdefs.h.  */
7237
7238 #include "$sqlite_include"
7239 #if SQLITE_VERSION_NUMBER >= $sqlite_min_ver_num
7240 SQLITE_VERSION_OKAY
7241 #endif
7242 _ACEOF
7243 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7244   $EGREP "SQLITE_VERSION_OKAY" >/dev/null 2>&1; then :
7245   { $as_echo "$as_me:${as_lineno-$LINENO}: result: okay" >&5
7246 $as_echo "okay" >&6; }
7247                    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite3_close in -lsqlite3" >&5
7248 $as_echo_n "checking for sqlite3_close in -lsqlite3... " >&6; }
7249 if ${ac_cv_lib_sqlite3_sqlite3_close+:} false; then :
7250   $as_echo_n "(cached) " >&6
7251 else
7252   ac_check_lib_save_LIBS=$LIBS
7253 LIBS="-lsqlite3  $LIBS"
7254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7255 /* end confdefs.h.  */
7256
7257 /* Override any GCC internal prototype to avoid an error.
7258    Use char because int might match the return type of a GCC
7259    builtin and then its argument prototype would still apply.  */
7260 #ifdef __cplusplus
7261 extern "C"
7262 #endif
7263 char sqlite3_close ();
7264 int
7265 main ()
7266 {
7267 return sqlite3_close ();
7268   ;
7269   return 0;
7270 }
7271 _ACEOF
7272 if ac_fn_c_try_link "$LINENO"; then :
7273   ac_cv_lib_sqlite3_sqlite3_close=yes
7274 else
7275   ac_cv_lib_sqlite3_sqlite3_close=no
7276 fi
7277 rm -f core conftest.err conftest.$ac_objext \
7278     conftest$ac_exeext conftest.$ac_ext
7279 LIBS=$ac_check_lib_save_LIBS
7280 fi
7281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_close" >&5
7282 $as_echo "$ac_cv_lib_sqlite3_sqlite3_close" >&6; }
7283 if test "x$ac_cv_lib_sqlite3_sqlite3_close" = xyes; then :
7284
7285                       svn_lib_sqlite="yes"
7286                       if test -z "$sqlite_dir" -o ! -d "$sqlite_dir"; then
7287                         SVN_SQLITE_LIBS="-lsqlite3"
7288                       else
7289                         SVN_SQLITE_INCLUDES="-I$sqlite_dir/include"
7290                         SVN_SQLITE_LIBS="`
7291   input_flags="-L$sqlite_dir/lib -lsqlite3"
7292   output_flags=""
7293   filtered_dirs="/lib /lib64 /usr/lib /usr/lib64"
7294   for flag in $input_flags; do
7295     filter="no"
7296     for dir in $filtered_dirs; do
7297       if test "$flag" = "-L$dir" || test "$flag" = "-L$dir/"; then
7298         filter="yes"
7299         break
7300       fi
7301     done
7302     if test "$filter" = "no"; then
7303       output_flags="$output_flags $flag"
7304     fi
7305   done
7306   if test -n "$output_flags"; then
7307     printf "%s" "${output_flags# }"
7308   fi
7309 `"
7310                       fi
7311
7312 fi
7313
7314 else
7315   { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported SQLite version" >&5
7316 $as_echo "unsupported SQLite version" >&6; }
7317 fi
7318 rm -f conftest*
7319
7320
7321 fi
7322
7323
7324
7325   CPPFLAGS="$save_CPPFLAGS"
7326   LDFLAGS="$save_LDFLAGS"
7327
7328     fi
7329
7330     if test -z "$svn_lib_sqlite"; then
7331
7332     if test -n "$PKG_CONFIG"; then
7333       { $as_echo "$as_me:${as_lineno-$LINENO}: checking sqlite library version (via pkg-config)" >&5
7334 $as_echo_n "checking sqlite library version (via pkg-config)... " >&6; }
7335       sqlite_version=`$PKG_CONFIG $SQLITE_PKGNAME --modversion --silence-errors`
7336
7337       if test -n "$sqlite_version"; then
7338
7339   version_string="$sqlite_version"
7340
7341   major=`expr $version_string : '\([0-9]*\)'`
7342   minor=`expr $version_string : '[0-9]*\.\([0-9]*\)'`
7343   micro=`expr $version_string : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
7344   if test -z "$micro"; then
7345     micro=0
7346   fi
7347   sqlite_ver_num=`expr $major \* 1000000 \
7348         \+ $minor \* 1000 \
7349         \+ $micro`
7350
7351
7352         if test "$sqlite_ver_num" -ge "$sqlite_min_ver_num"; then
7353           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sqlite_version" >&5
7354 $as_echo "$sqlite_version" >&6; }
7355           svn_lib_sqlite="yes"
7356           SVN_SQLITE_INCLUDES="`$PKG_CONFIG $SQLITE_PKGNAME --cflags`"
7357           SVN_SQLITE_LIBS="`$PKG_CONFIG $SQLITE_PKGNAME --libs`"
7358         else
7359           { $as_echo "$as_me:${as_lineno-$LINENO}: result: none or unsupported $sqlite_version" >&5
7360 $as_echo "none or unsupported $sqlite_version" >&6; }
7361         fi
7362       fi
7363     fi
7364
7365     if test -z "$svn_lib_sqlite"; then
7366       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7367 $as_echo "no" >&6; }
7368     fi
7369
7370     fi
7371
7372     if test -z "$svn_lib_sqlite"; then
7373
7374   echo ""
7375   echo "An appropriate version of sqlite could not be found.  We recommmend"
7376   echo "${SQLITE_RECOMMENDED_VER}, but require at least ${SQLITE_MINIMUM_VER}."
7377   echo "Please either install a newer sqlite on this system"
7378   echo ""
7379   echo "or"
7380   echo ""
7381   echo "get the sqlite ${SQLITE_RECOMMENDED_VER} amalgamation from:"
7382   echo "    ${SQLITE_URL}"
7383   echo "unpack the archive using unzip and rename the resulting"
7384   echo "directory to:"
7385   echo "$abs_srcdir/sqlite-amalgamation"
7386   if test x"$abs_srcdir" != x"$abs_builddir"; then
7387     echo "or to:"
7388     echo "$abs_builddir/sqlite-amalgamation"
7389   fi
7390   echo ""
7391   as_fn_error $? "Subversion requires SQLite" "$LINENO" 5
7392
7393     fi
7394
7395 fi
7396
7397
7398
7399
7400
7401
7402 # Check whether --enable-sqlite-compatibility-version was given.
7403 if test "${enable_sqlite_compatibility_version+set}" = set; then :
7404   enableval=$enable_sqlite_compatibility_version; sqlite_compat_ver=$enableval
7405 else
7406   sqlite_compat_ver=no
7407 fi
7408
7409
7410 if test -n "$sqlite_compat_ver" && test "$sqlite_compat_ver" != no; then
7411
7412   version_string="$sqlite_compat_ver"
7413
7414   major=`expr $version_string : '\([0-9]*\)'`
7415   minor=`expr $version_string : '[0-9]*\.\([0-9]*\)'`
7416   micro=`expr $version_string : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
7417   if test -z "$micro"; then
7418     micro=0
7419   fi
7420   sqlite_compat_ver_num=`expr $major \* 1000000 \
7421         \+ $minor \* 1000 \
7422         \+ $micro`
7423
7424   CFLAGS="-DSVN_SQLITE_MIN_VERSION='\"$sqlite_compat_ver\"' $CFLAGS"
7425   CFLAGS="-DSVN_SQLITE_MIN_VERSION_NUMBER=$sqlite_compat_ver_num $CFLAGS"
7426 fi
7427
7428
7429   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler provides atomic builtins" >&5
7430 $as_echo_n "checking whether the compiler provides atomic builtins... " >&6; }
7431 if ${svn_cv_atomic_builtins+:} false; then :
7432   $as_echo_n "(cached) " >&6
7433 else
7434   if test "$cross_compiling" = yes; then :
7435   svn_cv_atomic_builtins=no
7436 else
7437   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7438 /* end confdefs.h.  */
7439
7440   int main()
7441   {
7442       unsigned long long val = 1010, tmp, *mem = &val;
7443
7444       if (__sync_fetch_and_add(&val, 1010) != 1010 || val != 2020)
7445           return 1;
7446
7447       tmp = val;
7448
7449       if (__sync_fetch_and_sub(mem, 1010) != tmp || val != 1010)
7450           return 1;
7451
7452       if (__sync_sub_and_fetch(&val, 1010) != 0 || val != 0)
7453           return 1;
7454
7455       tmp = 3030;
7456
7457       if (__sync_val_compare_and_swap(mem, 0, tmp) != 0 || val != tmp)
7458           return 1;
7459
7460       if (__sync_lock_test_and_set(&val, 4040) != 3030)
7461           return 1;
7462
7463       mem = &tmp;
7464
7465       if (__sync_val_compare_and_swap(&mem, &tmp, &val) != &tmp)
7466           return 1;
7467
7468       __sync_synchronize();
7469
7470       if (mem != &val)
7471           return 1;
7472
7473       return 0;
7474   }
7475 _ACEOF
7476 if ac_fn_c_try_run "$LINENO"; then :
7477   svn_cv_atomic_builtins=yes
7478 else
7479   svn_cv_atomic_builtins=no
7480 fi
7481 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7482   conftest.$ac_objext conftest.beam conftest.$ac_ext
7483 fi
7484
7485 fi
7486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $svn_cv_atomic_builtins" >&5
7487 $as_echo "$svn_cv_atomic_builtins" >&6; }
7488
7489 if test "$svn_cv_atomic_builtins" = "yes"; then
7490
7491 $as_echo "#define SVN_HAS_ATOMIC_BUILTINS 1" >>confdefs.h
7492
7493 fi
7494
7495
7496 if test "${bindir}" = '${exec_prefix}/bin'; then
7497         if test "${exec_prefix}" = "NONE"; then
7498                 if test "${prefix}" = "NONE"; then
7499                         SVN_BINDIR="${ac_default_prefix}/bin"
7500                 else
7501                         SVN_BINDIR="${prefix}/bin"
7502                 fi
7503         else
7504                 SVN_BINDIR="${exec_prefix}/bin"
7505         fi
7506 else
7507         SVN_BINDIR="${bindir}"
7508 fi
7509
7510 SVN_BINDIR="`eval echo ${SVN_BINDIR}`"
7511
7512
7513
7514 cat >>confdefs.h <<_ACEOF
7515 #define SVN_BINDIR "${SVN_BINDIR}"
7516 _ACEOF
7517
7518
7519 localedir='${datadir}/locale'
7520
7521
7522 if test "${prefix}" = "NONE" \
7523   && ( test "${datadir}" = '${prefix}/share' \
7524        || ( test "${datadir}" = '${datarootdir}' \
7525             && test "${datarootdir}" = '${prefix}/share' ) ); then
7526   exp_localedir='${ac_default_prefix}/share/locale'
7527 else
7528   exp_localedir=$localedir
7529 fi
7530
7531 svn_last=
7532 svn_cur=""${exp_localedir}""
7533 while test "x${svn_cur}" != "x${svn_last}";
7534 do
7535   svn_last="${svn_cur}"
7536   svn_cur=`eval "echo ${svn_cur}"`
7537 done
7538 svn_localedir="${svn_cur}"
7539
7540
7541 cat >>confdefs.h <<_ACEOF
7542 #define SVN_LOCALE_DIR "${svn_localedir}"
7543 _ACEOF
7544
7545
7546 { $as_echo "$as_me:${as_lineno-$LINENO}: configuring libtool now" >&5
7547 $as_echo "$as_me: configuring libtool now" >&6;}
7548 case `pwd` in
7549   *\ * | *\     *)
7550     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
7551 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
7552 esac
7553
7554
7555
7556 macro_version='2.4.6'
7557 macro_revision='2.4.6'
7558
7559
7560
7561
7562
7563
7564
7565
7566
7567
7568
7569
7570
7571 ltmain=$ac_aux_dir/ltmain.sh
7572
7573 # Backslashify metacharacters that are still active within
7574 # double-quoted strings.
7575 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7576
7577 # Same as above, but do not quote variable references.
7578 double_quote_subst='s/\(["`\\]\)/\\\1/g'
7579
7580 # Sed substitution to delay expansion of an escaped shell variable in a
7581 # double_quote_subst'ed string.
7582 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7583
7584 # Sed substitution to delay expansion of an escaped single quote.
7585 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7586
7587 # Sed substitution to avoid accidental globbing in evaled expressions
7588 no_glob_subst='s/\*/\\\*/g'
7589
7590 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7591 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
7592 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
7593
7594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
7595 $as_echo_n "checking how to print strings... " >&6; }
7596 # Test print first, because it will be a builtin if present.
7597 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
7598    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
7599   ECHO='print -r --'
7600 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
7601   ECHO='printf %s\n'
7602 else
7603   # Use this function as a fallback that always works.
7604   func_fallback_echo ()
7605   {
7606     eval 'cat <<_LTECHO_EOF
7607 $1
7608 _LTECHO_EOF'
7609   }
7610   ECHO='func_fallback_echo'
7611 fi
7612
7613 # func_echo_all arg...
7614 # Invoke $ECHO with all args, space-separated.
7615 func_echo_all ()
7616 {
7617     $ECHO ""
7618 }
7619
7620 case $ECHO in
7621   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
7622 $as_echo "printf" >&6; } ;;
7623   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
7624 $as_echo "print -r" >&6; } ;;
7625   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
7626 $as_echo "cat" >&6; } ;;
7627 esac
7628
7629
7630
7631
7632
7633
7634
7635
7636
7637
7638
7639
7640
7641
7642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
7643 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
7644 if ${ac_cv_path_SED+:} false; then :
7645   $as_echo_n "(cached) " >&6
7646 else
7647             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
7648      for ac_i in 1 2 3 4 5 6 7; do
7649        ac_script="$ac_script$as_nl$ac_script"
7650      done
7651      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
7652      { ac_script=; unset ac_script;}
7653      if test -z "$SED"; then
7654   ac_path_SED_found=false
7655   # Loop through the user's path and test for each of PROGNAME-LIST
7656   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7657 for as_dir in $PATH
7658 do
7659   IFS=$as_save_IFS
7660   test -z "$as_dir" && as_dir=.
7661     for ac_prog in sed gsed; do
7662     for ac_exec_ext in '' $ac_executable_extensions; do
7663       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
7664       as_fn_executable_p "$ac_path_SED" || continue
7665 # Check for GNU ac_path_SED and select it if it is found.
7666   # Check for GNU $ac_path_SED
7667 case `"$ac_path_SED" --version 2>&1` in
7668 *GNU*)
7669   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
7670 *)
7671   ac_count=0
7672   $as_echo_n 0123456789 >"conftest.in"
7673   while :
7674   do
7675     cat "conftest.in" "conftest.in" >"conftest.tmp"
7676     mv "conftest.tmp" "conftest.in"
7677     cp "conftest.in" "conftest.nl"
7678     $as_echo '' >> "conftest.nl"
7679     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
7680     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7681     as_fn_arith $ac_count + 1 && ac_count=$as_val
7682     if test $ac_count -gt ${ac_path_SED_max-0}; then
7683       # Best one so far, save it but keep looking for a better one
7684       ac_cv_path_SED="$ac_path_SED"
7685       ac_path_SED_max=$ac_count
7686     fi
7687     # 10*(2^10) chars as input seems more than enough
7688     test $ac_count -gt 10 && break
7689   done
7690   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7691 esac
7692
7693       $ac_path_SED_found && break 3
7694     done
7695   done
7696   done
7697 IFS=$as_save_IFS
7698   if test -z "$ac_cv_path_SED"; then
7699     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
7700   fi
7701 else
7702   ac_cv_path_SED=$SED
7703 fi
7704
7705 fi
7706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
7707 $as_echo "$ac_cv_path_SED" >&6; }
7708  SED="$ac_cv_path_SED"
7709   rm -f conftest.sed
7710
7711 test -z "$SED" && SED=sed
7712 Xsed="$SED -e 1s/^X//"
7713
7714
7715
7716
7717
7718
7719
7720
7721
7722
7723
7724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
7725 $as_echo_n "checking for fgrep... " >&6; }
7726 if ${ac_cv_path_FGREP+:} false; then :
7727   $as_echo_n "(cached) " >&6
7728 else
7729   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
7730    then ac_cv_path_FGREP="$GREP -F"
7731    else
7732      if test -z "$FGREP"; then
7733   ac_path_FGREP_found=false
7734   # Loop through the user's path and test for each of PROGNAME-LIST
7735   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7736 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7737 do
7738   IFS=$as_save_IFS
7739   test -z "$as_dir" && as_dir=.
7740     for ac_prog in fgrep; do
7741     for ac_exec_ext in '' $ac_executable_extensions; do
7742       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
7743       as_fn_executable_p "$ac_path_FGREP" || continue
7744 # Check for GNU ac_path_FGREP and select it if it is found.
7745   # Check for GNU $ac_path_FGREP
7746 case `"$ac_path_FGREP" --version 2>&1` in
7747 *GNU*)
7748   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
7749 *)
7750   ac_count=0
7751   $as_echo_n 0123456789 >"conftest.in"
7752   while :
7753   do
7754     cat "conftest.in" "conftest.in" >"conftest.tmp"
7755     mv "conftest.tmp" "conftest.in"
7756     cp "conftest.in" "conftest.nl"
7757     $as_echo 'FGREP' >> "conftest.nl"
7758     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
7759     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7760     as_fn_arith $ac_count + 1 && ac_count=$as_val
7761     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
7762       # Best one so far, save it but keep looking for a better one
7763       ac_cv_path_FGREP="$ac_path_FGREP"
7764       ac_path_FGREP_max=$ac_count
7765     fi
7766     # 10*(2^10) chars as input seems more than enough
7767     test $ac_count -gt 10 && break
7768   done
7769   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7770 esac
7771
7772       $ac_path_FGREP_found && break 3
7773     done
7774   done
7775   done
7776 IFS=$as_save_IFS
7777   if test -z "$ac_cv_path_FGREP"; then
7778     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7779   fi
7780 else
7781   ac_cv_path_FGREP=$FGREP
7782 fi
7783
7784    fi
7785 fi
7786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
7787 $as_echo "$ac_cv_path_FGREP" >&6; }
7788  FGREP="$ac_cv_path_FGREP"
7789
7790
7791 test -z "$GREP" && GREP=grep
7792
7793
7794
7795
7796
7797
7798
7799
7800
7801
7802
7803
7804
7805
7806
7807
7808
7809
7810
7811 # Check whether --with-gnu-ld was given.
7812 if test "${with_gnu_ld+set}" = set; then :
7813   withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
7814 else
7815   with_gnu_ld=no
7816 fi
7817
7818 ac_prog=ld
7819 if test yes = "$GCC"; then
7820   # Check if gcc -print-prog-name=ld gives a path.
7821   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7822 $as_echo_n "checking for ld used by $CC... " >&6; }
7823   case $host in
7824   *-*-mingw*)
7825     # gcc leaves a trailing carriage return, which upsets mingw
7826     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7827   *)
7828     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7829   esac
7830   case $ac_prog in
7831     # Accept absolute paths.
7832     [\\/]* | ?:[\\/]*)
7833       re_direlt='/[^/][^/]*/\.\./'
7834       # Canonicalize the pathname of ld
7835       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
7836       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
7837         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
7838       done
7839       test -z "$LD" && LD=$ac_prog
7840       ;;
7841   "")
7842     # If it fails, then pretend we aren't using GCC.
7843     ac_prog=ld
7844     ;;
7845   *)
7846     # If it is relative, then search for the first ld in PATH.
7847     with_gnu_ld=unknown
7848     ;;
7849   esac
7850 elif test yes = "$with_gnu_ld"; then
7851   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7852 $as_echo_n "checking for GNU ld... " >&6; }
7853 else
7854   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7855 $as_echo_n "checking for non-GNU ld... " >&6; }
7856 fi
7857 if ${lt_cv_path_LD+:} false; then :
7858   $as_echo_n "(cached) " >&6
7859 else
7860   if test -z "$LD"; then
7861   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
7862   for ac_dir in $PATH; do
7863     IFS=$lt_save_ifs
7864     test -z "$ac_dir" && ac_dir=.
7865     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7866       lt_cv_path_LD=$ac_dir/$ac_prog
7867       # Check to see if the program is GNU ld.  I'd rather use --version,
7868       # but apparently some variants of GNU ld only accept -v.
7869       # Break only if it was the GNU/non-GNU ld that we prefer.
7870       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7871       *GNU* | *'with BFD'*)
7872         test no != "$with_gnu_ld" && break
7873         ;;
7874       *)
7875         test yes != "$with_gnu_ld" && break
7876         ;;
7877       esac
7878     fi
7879   done
7880   IFS=$lt_save_ifs
7881 else
7882   lt_cv_path_LD=$LD # Let the user override the test with a path.
7883 fi
7884 fi
7885
7886 LD=$lt_cv_path_LD
7887 if test -n "$LD"; then
7888   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7889 $as_echo "$LD" >&6; }
7890 else
7891   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7892 $as_echo "no" >&6; }
7893 fi
7894 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
7895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7896 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7897 if ${lt_cv_prog_gnu_ld+:} false; then :
7898   $as_echo_n "(cached) " >&6
7899 else
7900   # I'd rather use --version here, but apparently some GNU lds only accept -v.
7901 case `$LD -v 2>&1 </dev/null` in
7902 *GNU* | *'with BFD'*)
7903   lt_cv_prog_gnu_ld=yes
7904   ;;
7905 *)
7906   lt_cv_prog_gnu_ld=no
7907   ;;
7908 esac
7909 fi
7910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
7911 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
7912 with_gnu_ld=$lt_cv_prog_gnu_ld
7913
7914
7915
7916
7917
7918
7919
7920
7921
7922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
7923 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
7924 if ${lt_cv_path_NM+:} false; then :
7925   $as_echo_n "(cached) " >&6
7926 else
7927   if test -n "$NM"; then
7928   # Let the user override the test.
7929   lt_cv_path_NM=$NM
7930 else
7931   lt_nm_to_check=${ac_tool_prefix}nm
7932   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
7933     lt_nm_to_check="$lt_nm_to_check nm"
7934   fi
7935   for lt_tmp_nm in $lt_nm_to_check; do
7936     lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
7937     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
7938       IFS=$lt_save_ifs
7939       test -z "$ac_dir" && ac_dir=.
7940       tmp_nm=$ac_dir/$lt_tmp_nm
7941       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
7942         # Check to see if the nm accepts a BSD-compat flag.
7943         # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
7944         #   nm: unknown option "B" ignored
7945         # Tru64's nm complains that /dev/null is an invalid object file
7946         # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
7947         case $build_os in
7948         mingw*) lt_bad_file=conftest.nm/nofile ;;
7949         *) lt_bad_file=/dev/null ;;
7950         esac
7951         case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
7952         *$lt_bad_file* | *'Invalid file or object type'*)
7953           lt_cv_path_NM="$tmp_nm -B"
7954           break 2
7955           ;;
7956         *)
7957           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
7958           */dev/null*)
7959             lt_cv_path_NM="$tmp_nm -p"
7960             break 2
7961             ;;
7962           *)
7963             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
7964             continue # so that we can try to find one that supports BSD flags
7965             ;;
7966           esac
7967           ;;
7968         esac
7969       fi
7970     done
7971     IFS=$lt_save_ifs
7972   done
7973   : ${lt_cv_path_NM=no}
7974 fi
7975 fi
7976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
7977 $as_echo "$lt_cv_path_NM" >&6; }
7978 if test no != "$lt_cv_path_NM"; then
7979   NM=$lt_cv_path_NM
7980 else
7981   # Didn't find any BSD compatible name lister, look for dumpbin.
7982   if test -n "$DUMPBIN"; then :
7983     # Let the user override the test.
7984   else
7985     if test -n "$ac_tool_prefix"; then
7986   for ac_prog in dumpbin "link -dump"
7987   do
7988     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7989 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7991 $as_echo_n "checking for $ac_word... " >&6; }
7992 if ${ac_cv_prog_DUMPBIN+:} false; then :
7993   $as_echo_n "(cached) " >&6
7994 else
7995   if test -n "$DUMPBIN"; then
7996   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
7997 else
7998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7999 for as_dir in $PATH
8000 do
8001   IFS=$as_save_IFS
8002   test -z "$as_dir" && as_dir=.
8003     for ac_exec_ext in '' $ac_executable_extensions; do
8004   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8005     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
8006     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8007     break 2
8008   fi
8009 done
8010   done
8011 IFS=$as_save_IFS
8012
8013 fi
8014 fi
8015 DUMPBIN=$ac_cv_prog_DUMPBIN
8016 if test -n "$DUMPBIN"; then
8017   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
8018 $as_echo "$DUMPBIN" >&6; }
8019 else
8020   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8021 $as_echo "no" >&6; }
8022 fi
8023
8024
8025     test -n "$DUMPBIN" && break
8026   done
8027 fi
8028 if test -z "$DUMPBIN"; then
8029   ac_ct_DUMPBIN=$DUMPBIN
8030   for ac_prog in dumpbin "link -dump"
8031 do
8032   # Extract the first word of "$ac_prog", so it can be a program name with args.
8033 set dummy $ac_prog; ac_word=$2
8034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8035 $as_echo_n "checking for $ac_word... " >&6; }
8036 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
8037   $as_echo_n "(cached) " >&6
8038 else
8039   if test -n "$ac_ct_DUMPBIN"; then
8040   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
8041 else
8042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8043 for as_dir in $PATH
8044 do
8045   IFS=$as_save_IFS
8046   test -z "$as_dir" && as_dir=.
8047     for ac_exec_ext in '' $ac_executable_extensions; do
8048   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8049     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
8050     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8051     break 2
8052   fi
8053 done
8054   done
8055 IFS=$as_save_IFS
8056
8057 fi
8058 fi
8059 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
8060 if test -n "$ac_ct_DUMPBIN"; then
8061   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
8062 $as_echo "$ac_ct_DUMPBIN" >&6; }
8063 else
8064   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8065 $as_echo "no" >&6; }
8066 fi
8067
8068
8069   test -n "$ac_ct_DUMPBIN" && break
8070 done
8071
8072   if test "x$ac_ct_DUMPBIN" = x; then
8073     DUMPBIN=":"
8074   else
8075     case $cross_compiling:$ac_tool_warned in
8076 yes:)
8077 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8078 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8079 ac_tool_warned=yes ;;
8080 esac
8081     DUMPBIN=$ac_ct_DUMPBIN
8082   fi
8083 fi
8084
8085     case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
8086     *COFF*)
8087       DUMPBIN="$DUMPBIN -symbols -headers"
8088       ;;
8089     *)
8090       DUMPBIN=:
8091       ;;
8092     esac
8093   fi
8094
8095   if test : != "$DUMPBIN"; then
8096     NM=$DUMPBIN
8097   fi
8098 fi
8099 test -z "$NM" && NM=nm
8100
8101
8102
8103
8104
8105
8106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
8107 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
8108 if ${lt_cv_nm_interface+:} false; then :
8109   $as_echo_n "(cached) " >&6
8110 else
8111   lt_cv_nm_interface="BSD nm"
8112   echo "int some_variable = 0;" > conftest.$ac_ext
8113   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
8114   (eval "$ac_compile" 2>conftest.err)
8115   cat conftest.err >&5
8116   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
8117   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
8118   cat conftest.err >&5
8119   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
8120   cat conftest.out >&5
8121   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
8122     lt_cv_nm_interface="MS dumpbin"
8123   fi
8124   rm -f conftest*
8125 fi
8126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
8127 $as_echo "$lt_cv_nm_interface" >&6; }
8128
8129 # find the maximum length of command line arguments
8130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
8131 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
8132 if ${lt_cv_sys_max_cmd_len+:} false; then :
8133   $as_echo_n "(cached) " >&6
8134 else
8135     i=0
8136   teststring=ABCD
8137
8138   case $build_os in
8139   msdosdjgpp*)
8140     # On DJGPP, this test can blow up pretty badly due to problems in libc
8141     # (any single argument exceeding 2000 bytes causes a buffer overrun
8142     # during glob expansion).  Even if it were fixed, the result of this
8143     # check would be larger than it should be.
8144     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
8145     ;;
8146
8147   gnu*)
8148     # Under GNU Hurd, this test is not required because there is
8149     # no limit to the length of command line arguments.
8150     # Libtool will interpret -1 as no limit whatsoever
8151     lt_cv_sys_max_cmd_len=-1;
8152     ;;
8153
8154   cygwin* | mingw* | cegcc*)
8155     # On Win9x/ME, this test blows up -- it succeeds, but takes
8156     # about 5 minutes as the teststring grows exponentially.
8157     # Worse, since 9x/ME are not pre-emptively multitasking,
8158     # you end up with a "frozen" computer, even though with patience
8159     # the test eventually succeeds (with a max line length of 256k).
8160     # Instead, let's just punt: use the minimum linelength reported by
8161     # all of the supported platforms: 8192 (on NT/2K/XP).
8162     lt_cv_sys_max_cmd_len=8192;
8163     ;;
8164
8165   mint*)
8166     # On MiNT this can take a long time and run out of memory.
8167     lt_cv_sys_max_cmd_len=8192;
8168     ;;
8169
8170   amigaos*)
8171     # On AmigaOS with pdksh, this test takes hours, literally.
8172     # So we just punt and use a minimum line length of 8192.
8173     lt_cv_sys_max_cmd_len=8192;
8174     ;;
8175
8176   bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
8177     # This has been around since 386BSD, at least.  Likely further.
8178     if test -x /sbin/sysctl; then
8179       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
8180     elif test -x /usr/sbin/sysctl; then
8181       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
8182     else
8183       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
8184     fi
8185     # And add a safety zone
8186     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
8187     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
8188     ;;
8189
8190   interix*)
8191     # We know the value 262144 and hardcode it with a safety zone (like BSD)
8192     lt_cv_sys_max_cmd_len=196608
8193     ;;
8194
8195   os2*)
8196     # The test takes a long time on OS/2.
8197     lt_cv_sys_max_cmd_len=8192
8198     ;;
8199
8200   osf*)
8201     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
8202     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
8203     # nice to cause kernel panics so lets avoid the loop below.
8204     # First set a reasonable default.
8205     lt_cv_sys_max_cmd_len=16384
8206     #
8207     if test -x /sbin/sysconfig; then
8208       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
8209         *1*) lt_cv_sys_max_cmd_len=-1 ;;
8210       esac
8211     fi
8212     ;;
8213   sco3.2v5*)
8214     lt_cv_sys_max_cmd_len=102400
8215     ;;
8216   sysv5* | sco5v6* | sysv4.2uw2*)
8217     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
8218     if test -n "$kargmax"; then
8219       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
8220     else
8221       lt_cv_sys_max_cmd_len=32768
8222     fi
8223     ;;
8224   *)
8225     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
8226     if test -n "$lt_cv_sys_max_cmd_len" && \
8227        test undefined != "$lt_cv_sys_max_cmd_len"; then
8228       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
8229       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
8230     else
8231       # Make teststring a little bigger before we do anything with it.
8232       # a 1K string should be a reasonable start.
8233       for i in 1 2 3 4 5 6 7 8; do
8234         teststring=$teststring$teststring
8235       done
8236       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
8237       # If test is not a shell built-in, we'll probably end up computing a
8238       # maximum length that is only half of the actual maximum length, but
8239       # we can't tell.
8240       while { test X`env echo "$teststring$teststring" 2>/dev/null` \
8241                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
8242               test 17 != "$i" # 1/2 MB should be enough
8243       do
8244         i=`expr $i + 1`
8245         teststring=$teststring$teststring
8246       done
8247       # Only check the string length outside the loop.
8248       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
8249       teststring=
8250       # Add a significant safety factor because C++ compilers can tack on
8251       # massive amounts of additional arguments before passing them to the
8252       # linker.  It appears as though 1/2 is a usable value.
8253       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
8254     fi
8255     ;;
8256   esac
8257
8258 fi
8259
8260 if test -n "$lt_cv_sys_max_cmd_len"; then
8261   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
8262 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
8263 else
8264   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
8265 $as_echo "none" >&6; }
8266 fi
8267 max_cmd_len=$lt_cv_sys_max_cmd_len
8268
8269
8270
8271
8272
8273
8274 : ${CP="cp -f"}
8275 : ${MV="mv -f"}
8276 : ${RM="rm -f"}
8277
8278 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
8279   lt_unset=unset
8280 else
8281   lt_unset=false
8282 fi
8283
8284
8285
8286
8287
8288 # test EBCDIC or ASCII
8289 case `echo X|tr X '\101'` in
8290  A) # ASCII based system
8291     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
8292   lt_SP2NL='tr \040 \012'
8293   lt_NL2SP='tr \015\012 \040\040'
8294   ;;
8295  *) # EBCDIC based system
8296   lt_SP2NL='tr \100 \n'
8297   lt_NL2SP='tr \r\n \100\100'
8298   ;;
8299 esac
8300
8301
8302
8303
8304
8305
8306
8307
8308
8309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
8310 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
8311 if ${lt_cv_to_host_file_cmd+:} false; then :
8312   $as_echo_n "(cached) " >&6
8313 else
8314   case $host in
8315   *-*-mingw* )
8316     case $build in
8317       *-*-mingw* ) # actually msys
8318         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
8319         ;;
8320       *-*-cygwin* )
8321         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
8322         ;;
8323       * ) # otherwise, assume *nix
8324         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
8325         ;;
8326     esac
8327     ;;
8328   *-*-cygwin* )
8329     case $build in
8330       *-*-mingw* ) # actually msys
8331         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
8332         ;;
8333       *-*-cygwin* )
8334         lt_cv_to_host_file_cmd=func_convert_file_noop
8335         ;;
8336       * ) # otherwise, assume *nix
8337         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
8338         ;;
8339     esac
8340     ;;
8341   * ) # unhandled hosts (and "normal" native builds)
8342     lt_cv_to_host_file_cmd=func_convert_file_noop
8343     ;;
8344 esac
8345
8346 fi
8347
8348 to_host_file_cmd=$lt_cv_to_host_file_cmd
8349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
8350 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
8351
8352
8353
8354
8355
8356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
8357 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
8358 if ${lt_cv_to_tool_file_cmd+:} false; then :
8359   $as_echo_n "(cached) " >&6
8360 else
8361   #assume ordinary cross tools, or native build.
8362 lt_cv_to_tool_file_cmd=func_convert_file_noop
8363 case $host in
8364   *-*-mingw* )
8365     case $build in
8366       *-*-mingw* ) # actually msys
8367         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
8368         ;;
8369     esac
8370     ;;
8371 esac
8372
8373 fi
8374
8375 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
8376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
8377 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
8378
8379
8380
8381
8382
8383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
8384 $as_echo_n "checking for $LD option to reload object files... " >&6; }
8385 if ${lt_cv_ld_reload_flag+:} false; then :
8386   $as_echo_n "(cached) " >&6
8387 else
8388   lt_cv_ld_reload_flag='-r'
8389 fi
8390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
8391 $as_echo "$lt_cv_ld_reload_flag" >&6; }
8392 reload_flag=$lt_cv_ld_reload_flag
8393 case $reload_flag in
8394 "" | " "*) ;;
8395 *) reload_flag=" $reload_flag" ;;
8396 esac
8397 reload_cmds='$LD$reload_flag -o $output$reload_objs'
8398 case $host_os in
8399   cygwin* | mingw* | pw32* | cegcc*)
8400     if test yes != "$GCC"; then
8401       reload_cmds=false
8402     fi
8403     ;;
8404   darwin*)
8405     if test yes = "$GCC"; then
8406       reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
8407     else
8408       reload_cmds='$LD$reload_flag -o $output$reload_objs'
8409     fi
8410     ;;
8411 esac
8412
8413
8414
8415
8416
8417
8418
8419
8420
8421 if test -n "$ac_tool_prefix"; then
8422   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
8423 set dummy ${ac_tool_prefix}objdump; ac_word=$2
8424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8425 $as_echo_n "checking for $ac_word... " >&6; }
8426 if ${ac_cv_prog_OBJDUMP+:} false; then :
8427   $as_echo_n "(cached) " >&6
8428 else
8429   if test -n "$OBJDUMP"; then
8430   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
8431 else
8432 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8433 for as_dir in $PATH
8434 do
8435   IFS=$as_save_IFS
8436   test -z "$as_dir" && as_dir=.
8437     for ac_exec_ext in '' $ac_executable_extensions; do
8438   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8439     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
8440     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8441     break 2
8442   fi
8443 done
8444   done
8445 IFS=$as_save_IFS
8446
8447 fi
8448 fi
8449 OBJDUMP=$ac_cv_prog_OBJDUMP
8450 if test -n "$OBJDUMP"; then
8451   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
8452 $as_echo "$OBJDUMP" >&6; }
8453 else
8454   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8455 $as_echo "no" >&6; }
8456 fi
8457
8458
8459 fi
8460 if test -z "$ac_cv_prog_OBJDUMP"; then
8461   ac_ct_OBJDUMP=$OBJDUMP
8462   # Extract the first word of "objdump", so it can be a program name with args.
8463 set dummy objdump; ac_word=$2
8464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8465 $as_echo_n "checking for $ac_word... " >&6; }
8466 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
8467   $as_echo_n "(cached) " >&6
8468 else
8469   if test -n "$ac_ct_OBJDUMP"; then
8470   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
8471 else
8472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8473 for as_dir in $PATH
8474 do
8475   IFS=$as_save_IFS
8476   test -z "$as_dir" && as_dir=.
8477     for ac_exec_ext in '' $ac_executable_extensions; do
8478   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8479     ac_cv_prog_ac_ct_OBJDUMP="objdump"
8480     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8481     break 2
8482   fi
8483 done
8484   done
8485 IFS=$as_save_IFS
8486
8487 fi
8488 fi
8489 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
8490 if test -n "$ac_ct_OBJDUMP"; then
8491   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
8492 $as_echo "$ac_ct_OBJDUMP" >&6; }
8493 else
8494   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8495 $as_echo "no" >&6; }
8496 fi
8497
8498   if test "x$ac_ct_OBJDUMP" = x; then
8499     OBJDUMP="false"
8500   else
8501     case $cross_compiling:$ac_tool_warned in
8502 yes:)
8503 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8504 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8505 ac_tool_warned=yes ;;
8506 esac
8507     OBJDUMP=$ac_ct_OBJDUMP
8508   fi
8509 else
8510   OBJDUMP="$ac_cv_prog_OBJDUMP"
8511 fi
8512
8513 test -z "$OBJDUMP" && OBJDUMP=objdump
8514
8515
8516
8517
8518
8519
8520
8521
8522
8523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
8524 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
8525 if ${lt_cv_deplibs_check_method+:} false; then :
8526   $as_echo_n "(cached) " >&6
8527 else
8528   lt_cv_file_magic_cmd='$MAGIC_CMD'
8529 lt_cv_file_magic_test_file=
8530 lt_cv_deplibs_check_method='unknown'
8531 # Need to set the preceding variable on all platforms that support
8532 # interlibrary dependencies.
8533 # 'none' -- dependencies not supported.
8534 # 'unknown' -- same as none, but documents that we really don't know.
8535 # 'pass_all' -- all dependencies passed with no checks.
8536 # 'test_compile' -- check by making test program.
8537 # 'file_magic [[regex]]' -- check by looking for files in library path
8538 # that responds to the $file_magic_cmd with a given extended regex.
8539 # If you have 'file' or equivalent on your system and you're not sure
8540 # whether 'pass_all' will *always* work, you probably want this one.
8541
8542 case $host_os in
8543 aix[4-9]*)
8544   lt_cv_deplibs_check_method=pass_all
8545   ;;
8546
8547 beos*)
8548   lt_cv_deplibs_check_method=pass_all
8549   ;;
8550
8551 bsdi[45]*)
8552   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
8553   lt_cv_file_magic_cmd='/usr/bin/file -L'
8554   lt_cv_file_magic_test_file=/shlib/libc.so
8555   ;;
8556
8557 cygwin*)
8558   # func_win32_libid is a shell function defined in ltmain.sh
8559   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
8560   lt_cv_file_magic_cmd='func_win32_libid'
8561   ;;
8562
8563 mingw* | pw32*)
8564   # Base MSYS/MinGW do not provide the 'file' command needed by
8565   # func_win32_libid shell function, so use a weaker test based on 'objdump',
8566   # unless we find 'file', for example because we are cross-compiling.
8567   if ( file / ) >/dev/null 2>&1; then
8568     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
8569     lt_cv_file_magic_cmd='func_win32_libid'
8570   else
8571     # Keep this pattern in sync with the one in func_win32_libid.
8572     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
8573     lt_cv_file_magic_cmd='$OBJDUMP -f'
8574   fi
8575   ;;
8576
8577 cegcc*)
8578   # use the weaker test based on 'objdump'. See mingw*.
8579   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
8580   lt_cv_file_magic_cmd='$OBJDUMP -f'
8581   ;;
8582
8583 darwin* | rhapsody*)
8584   lt_cv_deplibs_check_method=pass_all
8585   ;;
8586
8587 freebsd* | dragonfly*)
8588   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8589     case $host_cpu in
8590     i*86 )
8591       # Not sure whether the presence of OpenBSD here was a mistake.
8592       # Let's accept both of them until this is cleared up.
8593       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
8594       lt_cv_file_magic_cmd=/usr/bin/file
8595       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
8596       ;;
8597     esac
8598   else
8599     lt_cv_deplibs_check_method=pass_all
8600   fi
8601   ;;
8602
8603 haiku*)
8604   lt_cv_deplibs_check_method=pass_all
8605   ;;
8606
8607 hpux10.20* | hpux11*)
8608   lt_cv_file_magic_cmd=/usr/bin/file
8609   case $host_cpu in
8610   ia64*)
8611     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
8612     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
8613     ;;
8614   hppa*64*)
8615     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
8616     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
8617     ;;
8618   *)
8619     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
8620     lt_cv_file_magic_test_file=/usr/lib/libc.sl
8621     ;;
8622   esac
8623   ;;
8624
8625 interix[3-9]*)
8626   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
8627   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
8628   ;;
8629
8630 irix5* | irix6* | nonstopux*)
8631   case $LD in
8632   *-32|*"-32 ") libmagic=32-bit;;
8633   *-n32|*"-n32 ") libmagic=N32;;
8634   *-64|*"-64 ") libmagic=64-bit;;
8635   *) libmagic=never-match;;
8636   esac
8637   lt_cv_deplibs_check_method=pass_all
8638   ;;
8639
8640 # This must be glibc/ELF.
8641 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8642   lt_cv_deplibs_check_method=pass_all
8643   ;;
8644
8645 netbsd*)
8646   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8647     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8648   else
8649     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
8650   fi
8651   ;;
8652
8653 newos6*)
8654   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
8655   lt_cv_file_magic_cmd=/usr/bin/file
8656   lt_cv_file_magic_test_file=/usr/lib/libnls.so
8657   ;;
8658
8659 *nto* | *qnx*)
8660   lt_cv_deplibs_check_method=pass_all
8661   ;;
8662
8663 openbsd* | bitrig*)
8664   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
8665     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
8666   else
8667     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8668   fi
8669   ;;
8670
8671 osf3* | osf4* | osf5*)
8672   lt_cv_deplibs_check_method=pass_all
8673   ;;
8674
8675 rdos*)
8676   lt_cv_deplibs_check_method=pass_all
8677   ;;
8678
8679 solaris*)
8680   lt_cv_deplibs_check_method=pass_all
8681   ;;
8682
8683 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8684   lt_cv_deplibs_check_method=pass_all
8685   ;;
8686
8687 sysv4 | sysv4.3*)
8688   case $host_vendor in
8689   motorola)
8690     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
8691     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
8692     ;;
8693   ncr)
8694     lt_cv_deplibs_check_method=pass_all
8695     ;;
8696   sequent)
8697     lt_cv_file_magic_cmd='/bin/file'
8698     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
8699     ;;
8700   sni)
8701     lt_cv_file_magic_cmd='/bin/file'
8702     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
8703     lt_cv_file_magic_test_file=/lib/libc.so
8704     ;;
8705   siemens)
8706     lt_cv_deplibs_check_method=pass_all
8707     ;;
8708   pc)
8709     lt_cv_deplibs_check_method=pass_all
8710     ;;
8711   esac
8712   ;;
8713
8714 tpf*)
8715   lt_cv_deplibs_check_method=pass_all
8716   ;;
8717 os2*)
8718   lt_cv_deplibs_check_method=pass_all
8719   ;;
8720 esac
8721
8722 fi
8723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
8724 $as_echo "$lt_cv_deplibs_check_method" >&6; }
8725
8726 file_magic_glob=
8727 want_nocaseglob=no
8728 if test "$build" = "$host"; then
8729   case $host_os in
8730   mingw* | pw32*)
8731     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
8732       want_nocaseglob=yes
8733     else
8734       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
8735     fi
8736     ;;
8737   esac
8738 fi
8739
8740 file_magic_cmd=$lt_cv_file_magic_cmd
8741 deplibs_check_method=$lt_cv_deplibs_check_method
8742 test -z "$deplibs_check_method" && deplibs_check_method=unknown
8743
8744
8745
8746
8747
8748
8749
8750
8751
8752
8753
8754
8755
8756
8757
8758
8759
8760
8761
8762
8763
8764
8765 if test -n "$ac_tool_prefix"; then
8766   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
8767 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
8768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8769 $as_echo_n "checking for $ac_word... " >&6; }
8770 if ${ac_cv_prog_DLLTOOL+:} false; then :
8771   $as_echo_n "(cached) " >&6
8772 else
8773   if test -n "$DLLTOOL"; then
8774   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8775 else
8776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8777 for as_dir in $PATH
8778 do
8779   IFS=$as_save_IFS
8780   test -z "$as_dir" && as_dir=.
8781     for ac_exec_ext in '' $ac_executable_extensions; do
8782   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8783     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
8784     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8785     break 2
8786   fi
8787 done
8788   done
8789 IFS=$as_save_IFS
8790
8791 fi
8792 fi
8793 DLLTOOL=$ac_cv_prog_DLLTOOL
8794 if test -n "$DLLTOOL"; then
8795   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8796 $as_echo "$DLLTOOL" >&6; }
8797 else
8798   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8799 $as_echo "no" >&6; }
8800 fi
8801
8802
8803 fi
8804 if test -z "$ac_cv_prog_DLLTOOL"; then
8805   ac_ct_DLLTOOL=$DLLTOOL
8806   # Extract the first word of "dlltool", so it can be a program name with args.
8807 set dummy dlltool; ac_word=$2
8808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8809 $as_echo_n "checking for $ac_word... " >&6; }
8810 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
8811   $as_echo_n "(cached) " >&6
8812 else
8813   if test -n "$ac_ct_DLLTOOL"; then
8814   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
8815 else
8816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8817 for as_dir in $PATH
8818 do
8819   IFS=$as_save_IFS
8820   test -z "$as_dir" && as_dir=.
8821     for ac_exec_ext in '' $ac_executable_extensions; do
8822   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8823     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
8824     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8825     break 2
8826   fi
8827 done
8828   done
8829 IFS=$as_save_IFS
8830
8831 fi
8832 fi
8833 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
8834 if test -n "$ac_ct_DLLTOOL"; then
8835   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
8836 $as_echo "$ac_ct_DLLTOOL" >&6; }
8837 else
8838   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8839 $as_echo "no" >&6; }
8840 fi
8841
8842   if test "x$ac_ct_DLLTOOL" = x; then
8843     DLLTOOL="false"
8844   else
8845     case $cross_compiling:$ac_tool_warned in
8846 yes:)
8847 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8848 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8849 ac_tool_warned=yes ;;
8850 esac
8851     DLLTOOL=$ac_ct_DLLTOOL
8852   fi
8853 else
8854   DLLTOOL="$ac_cv_prog_DLLTOOL"
8855 fi
8856
8857 test -z "$DLLTOOL" && DLLTOOL=dlltool
8858
8859
8860
8861
8862
8863
8864
8865
8866
8867
8868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
8869 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
8870 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
8871   $as_echo_n "(cached) " >&6
8872 else
8873   lt_cv_sharedlib_from_linklib_cmd='unknown'
8874
8875 case $host_os in
8876 cygwin* | mingw* | pw32* | cegcc*)
8877   # two different shell functions defined in ltmain.sh;
8878   # decide which one to use based on capabilities of $DLLTOOL
8879   case `$DLLTOOL --help 2>&1` in
8880   *--identify-strict*)
8881     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
8882     ;;
8883   *)
8884     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
8885     ;;
8886   esac
8887   ;;
8888 *)
8889   # fallback: assume linklib IS sharedlib
8890   lt_cv_sharedlib_from_linklib_cmd=$ECHO
8891   ;;
8892 esac
8893
8894 fi
8895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
8896 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
8897 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
8898 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
8899
8900
8901
8902
8903
8904
8905
8906 if test -n "$ac_tool_prefix"; then
8907   for ac_prog in ar
8908   do
8909     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8910 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8912 $as_echo_n "checking for $ac_word... " >&6; }
8913 if ${ac_cv_prog_AR+:} false; then :
8914   $as_echo_n "(cached) " >&6
8915 else
8916   if test -n "$AR"; then
8917   ac_cv_prog_AR="$AR" # Let the user override the test.
8918 else
8919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8920 for as_dir in $PATH
8921 do
8922   IFS=$as_save_IFS
8923   test -z "$as_dir" && as_dir=.
8924     for ac_exec_ext in '' $ac_executable_extensions; do
8925   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8926     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
8927     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8928     break 2
8929   fi
8930 done
8931   done
8932 IFS=$as_save_IFS
8933
8934 fi
8935 fi
8936 AR=$ac_cv_prog_AR
8937 if test -n "$AR"; then
8938   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8939 $as_echo "$AR" >&6; }
8940 else
8941   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8942 $as_echo "no" >&6; }
8943 fi
8944
8945
8946     test -n "$AR" && break
8947   done
8948 fi
8949 if test -z "$AR"; then
8950   ac_ct_AR=$AR
8951   for ac_prog in ar
8952 do
8953   # Extract the first word of "$ac_prog", so it can be a program name with args.
8954 set dummy $ac_prog; ac_word=$2
8955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8956 $as_echo_n "checking for $ac_word... " >&6; }
8957 if ${ac_cv_prog_ac_ct_AR+:} false; then :
8958   $as_echo_n "(cached) " >&6
8959 else
8960   if test -n "$ac_ct_AR"; then
8961   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8962 else
8963 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8964 for as_dir in $PATH
8965 do
8966   IFS=$as_save_IFS
8967   test -z "$as_dir" && as_dir=.
8968     for ac_exec_ext in '' $ac_executable_extensions; do
8969   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8970     ac_cv_prog_ac_ct_AR="$ac_prog"
8971     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8972     break 2
8973   fi
8974 done
8975   done
8976 IFS=$as_save_IFS
8977
8978 fi
8979 fi
8980 ac_ct_AR=$ac_cv_prog_ac_ct_AR
8981 if test -n "$ac_ct_AR"; then
8982   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
8983 $as_echo "$ac_ct_AR" >&6; }
8984 else
8985   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8986 $as_echo "no" >&6; }
8987 fi
8988
8989
8990   test -n "$ac_ct_AR" && break
8991 done
8992
8993   if test "x$ac_ct_AR" = x; then
8994     AR="false"
8995   else
8996     case $cross_compiling:$ac_tool_warned in
8997 yes:)
8998 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8999 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9000 ac_tool_warned=yes ;;
9001 esac
9002     AR=$ac_ct_AR
9003   fi
9004 fi
9005
9006 : ${AR=ar}
9007 : ${AR_FLAGS=cru}
9008
9009
9010
9011
9012
9013
9014
9015
9016
9017
9018
9019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
9020 $as_echo_n "checking for archiver @FILE support... " >&6; }
9021 if ${lt_cv_ar_at_file+:} false; then :
9022   $as_echo_n "(cached) " >&6
9023 else
9024   lt_cv_ar_at_file=no
9025    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9026 /* end confdefs.h.  */
9027
9028 int
9029 main ()
9030 {
9031
9032   ;
9033   return 0;
9034 }
9035 _ACEOF
9036 if ac_fn_c_try_compile "$LINENO"; then :
9037   echo conftest.$ac_objext > conftest.lst
9038       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
9039       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
9040   (eval $lt_ar_try) 2>&5
9041   ac_status=$?
9042   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9043   test $ac_status = 0; }
9044       if test 0 -eq "$ac_status"; then
9045         # Ensure the archiver fails upon bogus file names.
9046         rm -f conftest.$ac_objext libconftest.a
9047         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
9048   (eval $lt_ar_try) 2>&5
9049   ac_status=$?
9050   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9051   test $ac_status = 0; }
9052         if test 0 -ne "$ac_status"; then
9053           lt_cv_ar_at_file=@
9054         fi
9055       fi
9056       rm -f conftest.* libconftest.a
9057
9058 fi
9059 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9060
9061 fi
9062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
9063 $as_echo "$lt_cv_ar_at_file" >&6; }
9064
9065 if test no = "$lt_cv_ar_at_file"; then
9066   archiver_list_spec=
9067 else
9068   archiver_list_spec=$lt_cv_ar_at_file
9069 fi
9070
9071
9072
9073
9074
9075
9076
9077 if test -n "$ac_tool_prefix"; then
9078   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
9079 set dummy ${ac_tool_prefix}strip; ac_word=$2
9080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9081 $as_echo_n "checking for $ac_word... " >&6; }
9082 if ${ac_cv_prog_STRIP+:} false; then :
9083   $as_echo_n "(cached) " >&6
9084 else
9085   if test -n "$STRIP"; then
9086   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9087 else
9088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9089 for as_dir in $PATH
9090 do
9091   IFS=$as_save_IFS
9092   test -z "$as_dir" && as_dir=.
9093     for ac_exec_ext in '' $ac_executable_extensions; do
9094   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9095     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
9096     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9097     break 2
9098   fi
9099 done
9100   done
9101 IFS=$as_save_IFS
9102
9103 fi
9104 fi
9105 STRIP=$ac_cv_prog_STRIP
9106 if test -n "$STRIP"; then
9107   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9108 $as_echo "$STRIP" >&6; }
9109 else
9110   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9111 $as_echo "no" >&6; }
9112 fi
9113
9114
9115 fi
9116 if test -z "$ac_cv_prog_STRIP"; then
9117   ac_ct_STRIP=$STRIP
9118   # Extract the first word of "strip", so it can be a program name with args.
9119 set dummy strip; ac_word=$2
9120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9121 $as_echo_n "checking for $ac_word... " >&6; }
9122 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
9123   $as_echo_n "(cached) " >&6
9124 else
9125   if test -n "$ac_ct_STRIP"; then
9126   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
9127 else
9128 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9129 for as_dir in $PATH
9130 do
9131   IFS=$as_save_IFS
9132   test -z "$as_dir" && as_dir=.
9133     for ac_exec_ext in '' $ac_executable_extensions; do
9134   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9135     ac_cv_prog_ac_ct_STRIP="strip"
9136     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9137     break 2
9138   fi
9139 done
9140   done
9141 IFS=$as_save_IFS
9142
9143 fi
9144 fi
9145 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
9146 if test -n "$ac_ct_STRIP"; then
9147   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
9148 $as_echo "$ac_ct_STRIP" >&6; }
9149 else
9150   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9151 $as_echo "no" >&6; }
9152 fi
9153
9154   if test "x$ac_ct_STRIP" = x; then
9155     STRIP=":"
9156   else
9157     case $cross_compiling:$ac_tool_warned in
9158 yes:)
9159 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9160 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9161 ac_tool_warned=yes ;;
9162 esac
9163     STRIP=$ac_ct_STRIP
9164   fi
9165 else
9166   STRIP="$ac_cv_prog_STRIP"
9167 fi
9168
9169 test -z "$STRIP" && STRIP=:
9170
9171
9172
9173
9174
9175
9176 if test -n "$ac_tool_prefix"; then
9177   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
9178 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
9179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9180 $as_echo_n "checking for $ac_word... " >&6; }
9181 if ${ac_cv_prog_RANLIB+:} false; then :
9182   $as_echo_n "(cached) " >&6
9183 else
9184   if test -n "$RANLIB"; then
9185   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9186 else
9187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9188 for as_dir in $PATH
9189 do
9190   IFS=$as_save_IFS
9191   test -z "$as_dir" && as_dir=.
9192     for ac_exec_ext in '' $ac_executable_extensions; do
9193   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9194     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
9195     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9196     break 2
9197   fi
9198 done
9199   done
9200 IFS=$as_save_IFS
9201
9202 fi
9203 fi
9204 RANLIB=$ac_cv_prog_RANLIB
9205 if test -n "$RANLIB"; then
9206   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9207 $as_echo "$RANLIB" >&6; }
9208 else
9209   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9210 $as_echo "no" >&6; }
9211 fi
9212
9213
9214 fi
9215 if test -z "$ac_cv_prog_RANLIB"; then
9216   ac_ct_RANLIB=$RANLIB
9217   # Extract the first word of "ranlib", so it can be a program name with args.
9218 set dummy ranlib; ac_word=$2
9219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9220 $as_echo_n "checking for $ac_word... " >&6; }
9221 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
9222   $as_echo_n "(cached) " >&6
9223 else
9224   if test -n "$ac_ct_RANLIB"; then
9225   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
9226 else
9227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9228 for as_dir in $PATH
9229 do
9230   IFS=$as_save_IFS
9231   test -z "$as_dir" && as_dir=.
9232     for ac_exec_ext in '' $ac_executable_extensions; do
9233   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9234     ac_cv_prog_ac_ct_RANLIB="ranlib"
9235     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9236     break 2
9237   fi
9238 done
9239   done
9240 IFS=$as_save_IFS
9241
9242 fi
9243 fi
9244 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
9245 if test -n "$ac_ct_RANLIB"; then
9246   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
9247 $as_echo "$ac_ct_RANLIB" >&6; }
9248 else
9249   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9250 $as_echo "no" >&6; }
9251 fi
9252
9253   if test "x$ac_ct_RANLIB" = x; then
9254     RANLIB=":"
9255   else
9256     case $cross_compiling:$ac_tool_warned in
9257 yes:)
9258 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9259 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9260 ac_tool_warned=yes ;;
9261 esac
9262     RANLIB=$ac_ct_RANLIB
9263   fi
9264 else
9265   RANLIB="$ac_cv_prog_RANLIB"
9266 fi
9267
9268 test -z "$RANLIB" && RANLIB=:
9269
9270
9271
9272
9273
9274
9275 # Determine commands to create old-style static archives.
9276 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
9277 old_postinstall_cmds='chmod 644 $oldlib'
9278 old_postuninstall_cmds=
9279
9280 if test -n "$RANLIB"; then
9281   case $host_os in
9282   bitrig* | openbsd*)
9283     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
9284     ;;
9285   *)
9286     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
9287     ;;
9288   esac
9289   old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
9290 fi
9291
9292 case $host_os in
9293   darwin*)
9294     lock_old_archive_extraction=yes ;;
9295   *)
9296     lock_old_archive_extraction=no ;;
9297 esac
9298
9299
9300
9301
9302
9303
9304
9305
9306
9307
9308
9309
9310
9311
9312
9313
9314
9315
9316
9317
9318
9319 for ac_prog in gawk mawk nawk awk
9320 do
9321   # Extract the first word of "$ac_prog", so it can be a program name with args.
9322 set dummy $ac_prog; ac_word=$2
9323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9324 $as_echo_n "checking for $ac_word... " >&6; }
9325 if ${ac_cv_prog_AWK+:} false; then :
9326   $as_echo_n "(cached) " >&6
9327 else
9328   if test -n "$AWK"; then
9329   ac_cv_prog_AWK="$AWK" # Let the user override the test.
9330 else
9331 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9332 for as_dir in $PATH
9333 do
9334   IFS=$as_save_IFS
9335   test -z "$as_dir" && as_dir=.
9336     for ac_exec_ext in '' $ac_executable_extensions; do
9337   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9338     ac_cv_prog_AWK="$ac_prog"
9339     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9340     break 2
9341   fi
9342 done
9343   done
9344 IFS=$as_save_IFS
9345
9346 fi
9347 fi
9348 AWK=$ac_cv_prog_AWK
9349 if test -n "$AWK"; then
9350   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
9351 $as_echo "$AWK" >&6; }
9352 else
9353   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9354 $as_echo "no" >&6; }
9355 fi
9356
9357
9358   test -n "$AWK" && break
9359 done
9360
9361
9362
9363
9364
9365
9366
9367
9368
9369
9370
9371
9372
9373
9374
9375
9376
9377
9378
9379 # If no C compiler was specified, use CC.
9380 LTCC=${LTCC-"$CC"}
9381
9382 # If no C compiler flags were specified, use CFLAGS.
9383 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9384
9385 # Allow CC to be a program name with arguments.
9386 compiler=$CC
9387
9388
9389 # Check for command to grab the raw symbol name followed by C symbol from nm.
9390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
9391 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
9392 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
9393   $as_echo_n "(cached) " >&6
9394 else
9395
9396 # These are sane defaults that work on at least a few old systems.
9397 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
9398
9399 # Character class describing NM global symbol codes.
9400 symcode='[BCDEGRST]'
9401
9402 # Regexp to match symbols that can be accessed directly from C.
9403 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9404
9405 # Define system-specific variables.
9406 case $host_os in
9407 aix*)
9408   symcode='[BCDT]'
9409   ;;
9410 cygwin* | mingw* | pw32* | cegcc*)
9411   symcode='[ABCDGISTW]'
9412   ;;
9413 hpux*)
9414   if test ia64 = "$host_cpu"; then
9415     symcode='[ABCDEGRST]'
9416   fi
9417   ;;
9418 irix* | nonstopux*)
9419   symcode='[BCDEGRST]'
9420   ;;
9421 osf*)
9422   symcode='[BCDEGQRST]'
9423   ;;
9424 solaris*)
9425   symcode='[BDRT]'
9426   ;;
9427 sco3.2v5*)
9428   symcode='[DT]'
9429   ;;
9430 sysv4.2uw2*)
9431   symcode='[DT]'
9432   ;;
9433 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9434   symcode='[ABDT]'
9435   ;;
9436 sysv4)
9437   symcode='[DFNSTU]'
9438   ;;
9439 esac
9440
9441 # If we're using GNU nm, then use its standard symbol codes.
9442 case `$NM -V 2>&1` in
9443 *GNU* | *'with BFD'*)
9444   symcode='[ABCDGIRSTW]' ;;
9445 esac
9446
9447 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9448   # Gets list of data symbols to import.
9449   lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
9450   # Adjust the below global symbol transforms to fixup imported variables.
9451   lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
9452   lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
9453   lt_c_name_lib_hook="\
9454   -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
9455   -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
9456 else
9457   # Disable hooks by default.
9458   lt_cv_sys_global_symbol_to_import=
9459   lt_cdecl_hook=
9460   lt_c_name_hook=
9461   lt_c_name_lib_hook=
9462 fi
9463
9464 # Transform an extracted symbol line into a proper C declaration.
9465 # Some systems (esp. on ia64) link data and code symbols differently,
9466 # so use this general approach.
9467 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
9468 $lt_cdecl_hook\
9469 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
9470 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
9471
9472 # Transform an extracted symbol line into symbol name and symbol address
9473 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
9474 $lt_c_name_hook\
9475 " -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
9476 " -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
9477
9478 # Transform an extracted symbol line into symbol name with lib prefix and
9479 # symbol address.
9480 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
9481 $lt_c_name_lib_hook\
9482 " -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
9483 " -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
9484 " -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
9485
9486 # Handle CRLF in mingw tool chain
9487 opt_cr=
9488 case $build_os in
9489 mingw*)
9490   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9491   ;;
9492 esac
9493
9494 # Try without a prefix underscore, then with it.
9495 for ac_symprfx in "" "_"; do
9496
9497   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9498   symxfrm="\\1 $ac_symprfx\\2 \\2"
9499
9500   # Write the raw and C identifiers.
9501   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9502     # Fake it for dumpbin and say T for any non-static function,
9503     # D for any global variable and I for any imported variable.
9504     # Also find C++ and __fastcall symbols from MSVC++,
9505     # which start with @ or ?.
9506     lt_cv_sys_global_symbol_pipe="$AWK '"\
9507 "     {last_section=section; section=\$ 3};"\
9508 "     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
9509 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
9510 "     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
9511 "     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
9512 "     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
9513 "     \$ 0!~/External *\|/{next};"\
9514 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
9515 "     {if(hide[section]) next};"\
9516 "     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
9517 "     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
9518 "     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
9519 "     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
9520 "     ' prfx=^$ac_symprfx"
9521   else
9522     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9523   fi
9524   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
9525
9526   # Check to see that the pipe works correctly.
9527   pipe_works=no
9528
9529   rm -f conftest*
9530   cat > conftest.$ac_ext <<_LT_EOF
9531 #ifdef __cplusplus
9532 extern "C" {
9533 #endif
9534 char nm_test_var;
9535 void nm_test_func(void);
9536 void nm_test_func(void){}
9537 #ifdef __cplusplus
9538 }
9539 #endif
9540 int main(){nm_test_var='a';nm_test_func();return(0);}
9541 _LT_EOF
9542
9543   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9544   (eval $ac_compile) 2>&5
9545   ac_status=$?
9546   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9547   test $ac_status = 0; }; then
9548     # Now try to grab the symbols.
9549     nlist=conftest.nm
9550     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
9551   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
9552   ac_status=$?
9553   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9554   test $ac_status = 0; } && test -s "$nlist"; then
9555       # Try sorting and uniquifying the output.
9556       if sort "$nlist" | uniq > "$nlist"T; then
9557         mv -f "$nlist"T "$nlist"
9558       else
9559         rm -f "$nlist"T
9560       fi
9561
9562       # Make sure that we snagged all the symbols we need.
9563       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
9564         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
9565           cat <<_LT_EOF > conftest.$ac_ext
9566 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
9567 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
9568 /* DATA imports from DLLs on WIN32 can't be const, because runtime
9569    relocations are performed -- see ld's documentation on pseudo-relocs.  */
9570 # define LT_DLSYM_CONST
9571 #elif defined __osf__
9572 /* This system does not cope well with relocations in const data.  */
9573 # define LT_DLSYM_CONST
9574 #else
9575 # define LT_DLSYM_CONST const
9576 #endif
9577
9578 #ifdef __cplusplus
9579 extern "C" {
9580 #endif
9581
9582 _LT_EOF
9583           # Now generate the symbol file.
9584           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
9585
9586           cat <<_LT_EOF >> conftest.$ac_ext
9587
9588 /* The mapping between symbol names and symbols.  */
9589 LT_DLSYM_CONST struct {
9590   const char *name;
9591   void       *address;
9592 }
9593 lt__PROGRAM__LTX_preloaded_symbols[] =
9594 {
9595   { "@PROGRAM@", (void *) 0 },
9596 _LT_EOF
9597           $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
9598           cat <<\_LT_EOF >> conftest.$ac_ext
9599   {0, (void *) 0}
9600 };
9601
9602 /* This works around a problem in FreeBSD linker */
9603 #ifdef FREEBSD_WORKAROUND
9604 static const void *lt_preloaded_setup() {
9605   return lt__PROGRAM__LTX_preloaded_symbols;
9606 }
9607 #endif
9608
9609 #ifdef __cplusplus
9610 }
9611 #endif
9612 _LT_EOF
9613           # Now try linking the two files.
9614           mv conftest.$ac_objext conftstm.$ac_objext
9615           lt_globsym_save_LIBS=$LIBS
9616           lt_globsym_save_CFLAGS=$CFLAGS
9617           LIBS=conftstm.$ac_objext
9618           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9619           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
9620   (eval $ac_link) 2>&5
9621   ac_status=$?
9622   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9623   test $ac_status = 0; } && test -s conftest$ac_exeext; then
9624             pipe_works=yes
9625           fi
9626           LIBS=$lt_globsym_save_LIBS
9627           CFLAGS=$lt_globsym_save_CFLAGS
9628         else
9629           echo "cannot find nm_test_func in $nlist" >&5
9630         fi
9631       else
9632         echo "cannot find nm_test_var in $nlist" >&5
9633       fi
9634     else
9635       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9636     fi
9637   else
9638     echo "$progname: failed program was:" >&5
9639     cat conftest.$ac_ext >&5
9640   fi
9641   rm -rf conftest* conftst*
9642
9643   # Do not use the global_symbol_pipe unless it works.
9644   if test yes = "$pipe_works"; then
9645     break
9646   else
9647     lt_cv_sys_global_symbol_pipe=
9648   fi
9649 done
9650
9651 fi
9652
9653 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9654   lt_cv_sys_global_symbol_to_cdecl=
9655 fi
9656 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9657   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
9658 $as_echo "failed" >&6; }
9659 else
9660   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
9661 $as_echo "ok" >&6; }
9662 fi
9663
9664 # Response file support.
9665 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9666   nm_file_list_spec='@'
9667 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
9668   nm_file_list_spec='@'
9669 fi
9670
9671
9672
9673
9674
9675
9676
9677
9678
9679
9680
9681
9682
9683
9684
9685
9686
9687
9688
9689
9690
9691
9692
9693
9694
9695
9696
9697
9698
9699
9700
9701
9702
9703
9704
9705
9706
9707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
9708 $as_echo_n "checking for sysroot... " >&6; }
9709
9710 # Check whether --with-sysroot was given.
9711 if test "${with_sysroot+set}" = set; then :
9712   withval=$with_sysroot;
9713 else
9714   with_sysroot=no
9715 fi
9716
9717
9718 lt_sysroot=
9719 case $with_sysroot in #(
9720  yes)
9721    if test yes = "$GCC"; then
9722      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
9723    fi
9724    ;; #(
9725  /*)
9726    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
9727    ;; #(
9728  no|'')
9729    ;; #(
9730  *)
9731    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
9732 $as_echo "$with_sysroot" >&6; }
9733    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
9734    ;;
9735 esac
9736
9737  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
9738 $as_echo "${lt_sysroot:-no}" >&6; }
9739
9740
9741
9742
9743
9744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
9745 $as_echo_n "checking for a working dd... " >&6; }
9746 if ${ac_cv_path_lt_DD+:} false; then :
9747   $as_echo_n "(cached) " >&6
9748 else
9749   printf 0123456789abcdef0123456789abcdef >conftest.i
9750 cat conftest.i conftest.i >conftest2.i
9751 : ${lt_DD:=$DD}
9752 if test -z "$lt_DD"; then
9753   ac_path_lt_DD_found=false
9754   # Loop through the user's path and test for each of PROGNAME-LIST
9755   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9756 for as_dir in $PATH
9757 do
9758   IFS=$as_save_IFS
9759   test -z "$as_dir" && as_dir=.
9760     for ac_prog in dd; do
9761     for ac_exec_ext in '' $ac_executable_extensions; do
9762       ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
9763       as_fn_executable_p "$ac_path_lt_DD" || continue
9764 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
9765   cmp -s conftest.i conftest.out \
9766   && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
9767 fi
9768       $ac_path_lt_DD_found && break 3
9769     done
9770   done
9771   done
9772 IFS=$as_save_IFS
9773   if test -z "$ac_cv_path_lt_DD"; then
9774     :
9775   fi
9776 else
9777   ac_cv_path_lt_DD=$lt_DD
9778 fi
9779
9780 rm -f conftest.i conftest2.i conftest.out
9781 fi
9782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
9783 $as_echo "$ac_cv_path_lt_DD" >&6; }
9784
9785
9786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
9787 $as_echo_n "checking how to truncate binary pipes... " >&6; }
9788 if ${lt_cv_truncate_bin+:} false; then :
9789   $as_echo_n "(cached) " >&6
9790 else
9791   printf 0123456789abcdef0123456789abcdef >conftest.i
9792 cat conftest.i conftest.i >conftest2.i
9793 lt_cv_truncate_bin=
9794 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
9795   cmp -s conftest.i conftest.out \
9796   && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
9797 fi
9798 rm -f conftest.i conftest2.i conftest.out
9799 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
9800 fi
9801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
9802 $as_echo "$lt_cv_truncate_bin" >&6; }
9803
9804
9805
9806
9807
9808
9809
9810 # Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
9811 func_cc_basename ()
9812 {
9813     for cc_temp in $*""; do
9814       case $cc_temp in
9815         compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9816         distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9817         \-*) ;;
9818         *) break;;
9819       esac
9820     done
9821     func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9822 }
9823
9824 # Check whether --enable-libtool-lock was given.
9825 if test "${enable_libtool_lock+set}" = set; then :
9826   enableval=$enable_libtool_lock;
9827 fi
9828
9829 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
9830
9831 # Some flags need to be propagated to the compiler or linker for good
9832 # libtool support.
9833 case $host in
9834 ia64-*-hpux*)
9835   # Find out what ABI is being produced by ac_compile, and set mode
9836   # options accordingly.
9837   echo 'int i;' > conftest.$ac_ext
9838   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9839   (eval $ac_compile) 2>&5
9840   ac_status=$?
9841   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9842   test $ac_status = 0; }; then
9843     case `/usr/bin/file conftest.$ac_objext` in
9844       *ELF-32*)
9845         HPUX_IA64_MODE=32
9846         ;;
9847       *ELF-64*)
9848         HPUX_IA64_MODE=64
9849         ;;
9850     esac
9851   fi
9852   rm -rf conftest*
9853   ;;
9854 *-*-irix6*)
9855   # Find out what ABI is being produced by ac_compile, and set linker
9856   # options accordingly.
9857   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
9858   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9859   (eval $ac_compile) 2>&5
9860   ac_status=$?
9861   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9862   test $ac_status = 0; }; then
9863     if test yes = "$lt_cv_prog_gnu_ld"; then
9864       case `/usr/bin/file conftest.$ac_objext` in
9865         *32-bit*)
9866           LD="${LD-ld} -melf32bsmip"
9867           ;;
9868         *N32*)
9869           LD="${LD-ld} -melf32bmipn32"
9870           ;;
9871         *64-bit*)
9872           LD="${LD-ld} -melf64bmip"
9873         ;;
9874       esac
9875     else
9876       case `/usr/bin/file conftest.$ac_objext` in
9877         *32-bit*)
9878           LD="${LD-ld} -32"
9879           ;;
9880         *N32*)
9881           LD="${LD-ld} -n32"
9882           ;;
9883         *64-bit*)
9884           LD="${LD-ld} -64"
9885           ;;
9886       esac
9887     fi
9888   fi
9889   rm -rf conftest*
9890   ;;
9891
9892 mips64*-*linux*)
9893   # Find out what ABI is being produced by ac_compile, and set linker
9894   # options accordingly.
9895   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
9896   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9897   (eval $ac_compile) 2>&5
9898   ac_status=$?
9899   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9900   test $ac_status = 0; }; then
9901     emul=elf
9902     case `/usr/bin/file conftest.$ac_objext` in
9903       *32-bit*)
9904         emul="${emul}32"
9905         ;;
9906       *64-bit*)
9907         emul="${emul}64"
9908         ;;
9909     esac
9910     case `/usr/bin/file conftest.$ac_objext` in
9911       *MSB*)
9912         emul="${emul}btsmip"
9913         ;;
9914       *LSB*)
9915         emul="${emul}ltsmip"
9916         ;;
9917     esac
9918     case `/usr/bin/file conftest.$ac_objext` in
9919       *N32*)
9920         emul="${emul}n32"
9921         ;;
9922     esac
9923     LD="${LD-ld} -m $emul"
9924   fi
9925   rm -rf conftest*
9926   ;;
9927
9928 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
9929 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
9930   # Find out what ABI is being produced by ac_compile, and set linker
9931   # options accordingly.  Note that the listed cases only cover the
9932   # situations where additional linker options are needed (such as when
9933   # doing 32-bit compilation for a host where ld defaults to 64-bit, or
9934   # vice versa); the common cases where no linker options are needed do
9935   # not appear in the list.
9936   echo 'int i;' > conftest.$ac_ext
9937   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9938   (eval $ac_compile) 2>&5
9939   ac_status=$?
9940   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9941   test $ac_status = 0; }; then
9942     case `/usr/bin/file conftest.o` in
9943       *32-bit*)
9944         case $host in
9945           x86_64-*kfreebsd*-gnu)
9946             LD="${LD-ld} -m elf_i386_fbsd"
9947             ;;
9948           x86_64-*linux*)
9949             case `/usr/bin/file conftest.o` in
9950               *x86-64*)
9951                 LD="${LD-ld} -m elf32_x86_64"
9952                 ;;
9953               *)
9954                 LD="${LD-ld} -m elf_i386"
9955                 ;;
9956             esac
9957             ;;
9958           powerpc64le-*linux*)
9959             LD="${LD-ld} -m elf32lppclinux"
9960             ;;
9961           powerpc64-*linux*)
9962             LD="${LD-ld} -m elf32ppclinux"
9963             ;;
9964           s390x-*linux*)
9965             LD="${LD-ld} -m elf_s390"
9966             ;;
9967           sparc64-*linux*)
9968             LD="${LD-ld} -m elf32_sparc"
9969             ;;
9970         esac
9971         ;;
9972       *64-bit*)
9973         case $host in
9974           x86_64-*kfreebsd*-gnu)
9975             LD="${LD-ld} -m elf_x86_64_fbsd"
9976             ;;
9977           x86_64-*linux*)
9978             LD="${LD-ld} -m elf_x86_64"
9979             ;;
9980           powerpcle-*linux*)
9981             LD="${LD-ld} -m elf64lppc"
9982             ;;
9983           powerpc-*linux*)
9984             LD="${LD-ld} -m elf64ppc"
9985             ;;
9986           s390*-*linux*|s390*-*tpf*)
9987             LD="${LD-ld} -m elf64_s390"
9988             ;;
9989           sparc*-*linux*)
9990             LD="${LD-ld} -m elf64_sparc"
9991             ;;
9992         esac
9993         ;;
9994     esac
9995   fi
9996   rm -rf conftest*
9997   ;;
9998
9999 *-*-sco3.2v5*)
10000   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
10001   SAVE_CFLAGS=$CFLAGS
10002   CFLAGS="$CFLAGS -belf"
10003   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
10004 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
10005 if ${lt_cv_cc_needs_belf+:} false; then :
10006   $as_echo_n "(cached) " >&6
10007 else
10008   ac_ext=c
10009 ac_cpp='$CPP $CPPFLAGS'
10010 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10011 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10012 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10013
10014      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10015 /* end confdefs.h.  */
10016
10017 int
10018 main ()
10019 {
10020
10021   ;
10022   return 0;
10023 }
10024 _ACEOF
10025 if ac_fn_c_try_link "$LINENO"; then :
10026   lt_cv_cc_needs_belf=yes
10027 else
10028   lt_cv_cc_needs_belf=no
10029 fi
10030 rm -f core conftest.err conftest.$ac_objext \
10031     conftest$ac_exeext conftest.$ac_ext
10032      ac_ext=c
10033 ac_cpp='$CPP $CPPFLAGS'
10034 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10035 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10036 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10037
10038 fi
10039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
10040 $as_echo "$lt_cv_cc_needs_belf" >&6; }
10041   if test yes != "$lt_cv_cc_needs_belf"; then
10042     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
10043     CFLAGS=$SAVE_CFLAGS
10044   fi
10045   ;;
10046 *-*solaris*)
10047   # Find out what ABI is being produced by ac_compile, and set linker
10048   # options accordingly.
10049   echo 'int i;' > conftest.$ac_ext
10050   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10051   (eval $ac_compile) 2>&5
10052   ac_status=$?
10053   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10054   test $ac_status = 0; }; then
10055     case `/usr/bin/file conftest.o` in
10056     *64-bit*)
10057       case $lt_cv_prog_gnu_ld in
10058       yes*)
10059         case $host in
10060         i?86-*-solaris*|x86_64-*-solaris*)
10061           LD="${LD-ld} -m elf_x86_64"
10062           ;;
10063         sparc*-*-solaris*)
10064           LD="${LD-ld} -m elf64_sparc"
10065           ;;
10066         esac
10067         # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
10068         if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
10069           LD=${LD-ld}_sol2
10070         fi
10071         ;;
10072       *)
10073         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
10074           LD="${LD-ld} -64"
10075         fi
10076         ;;
10077       esac
10078       ;;
10079     esac
10080   fi
10081   rm -rf conftest*
10082   ;;
10083 esac
10084
10085 need_locks=$enable_libtool_lock
10086
10087 if test -n "$ac_tool_prefix"; then
10088   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
10089 set dummy ${ac_tool_prefix}mt; ac_word=$2
10090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10091 $as_echo_n "checking for $ac_word... " >&6; }
10092 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
10093   $as_echo_n "(cached) " >&6
10094 else
10095   if test -n "$MANIFEST_TOOL"; then
10096   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
10097 else
10098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10099 for as_dir in $PATH
10100 do
10101   IFS=$as_save_IFS
10102   test -z "$as_dir" && as_dir=.
10103     for ac_exec_ext in '' $ac_executable_extensions; do
10104   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10105     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
10106     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10107     break 2
10108   fi
10109 done
10110   done
10111 IFS=$as_save_IFS
10112
10113 fi
10114 fi
10115 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
10116 if test -n "$MANIFEST_TOOL"; then
10117   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
10118 $as_echo "$MANIFEST_TOOL" >&6; }
10119 else
10120   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10121 $as_echo "no" >&6; }
10122 fi
10123
10124
10125 fi
10126 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
10127   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
10128   # Extract the first word of "mt", so it can be a program name with args.
10129 set dummy mt; ac_word=$2
10130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10131 $as_echo_n "checking for $ac_word... " >&6; }
10132 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
10133   $as_echo_n "(cached) " >&6
10134 else
10135   if test -n "$ac_ct_MANIFEST_TOOL"; then
10136   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
10137 else
10138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10139 for as_dir in $PATH
10140 do
10141   IFS=$as_save_IFS
10142   test -z "$as_dir" && as_dir=.
10143     for ac_exec_ext in '' $ac_executable_extensions; do
10144   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10145     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
10146     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10147     break 2
10148   fi
10149 done
10150   done
10151 IFS=$as_save_IFS
10152
10153 fi
10154 fi
10155 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
10156 if test -n "$ac_ct_MANIFEST_TOOL"; then
10157   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
10158 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
10159 else
10160   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10161 $as_echo "no" >&6; }
10162 fi
10163
10164   if test "x$ac_ct_MANIFEST_TOOL" = x; then
10165     MANIFEST_TOOL=":"
10166   else
10167     case $cross_compiling:$ac_tool_warned in
10168 yes:)
10169 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10170 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10171 ac_tool_warned=yes ;;
10172 esac
10173     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
10174   fi
10175 else
10176   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
10177 fi
10178
10179 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
10180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
10181 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
10182 if ${lt_cv_path_mainfest_tool+:} false; then :
10183   $as_echo_n "(cached) " >&6
10184 else
10185   lt_cv_path_mainfest_tool=no
10186   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
10187   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
10188   cat conftest.err >&5
10189   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
10190     lt_cv_path_mainfest_tool=yes
10191   fi
10192   rm -f conftest*
10193 fi
10194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
10195 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
10196 if test yes != "$lt_cv_path_mainfest_tool"; then
10197   MANIFEST_TOOL=:
10198 fi
10199
10200
10201
10202
10203
10204
10205   case $host_os in
10206     rhapsody* | darwin*)
10207     if test -n "$ac_tool_prefix"; then
10208   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
10209 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
10210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10211 $as_echo_n "checking for $ac_word... " >&6; }
10212 if ${ac_cv_prog_DSYMUTIL+:} false; then :
10213   $as_echo_n "(cached) " >&6
10214 else
10215   if test -n "$DSYMUTIL"; then
10216   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
10217 else
10218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10219 for as_dir in $PATH
10220 do
10221   IFS=$as_save_IFS
10222   test -z "$as_dir" && as_dir=.
10223     for ac_exec_ext in '' $ac_executable_extensions; do
10224   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10225     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
10226     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10227     break 2
10228   fi
10229 done
10230   done
10231 IFS=$as_save_IFS
10232
10233 fi
10234 fi
10235 DSYMUTIL=$ac_cv_prog_DSYMUTIL
10236 if test -n "$DSYMUTIL"; then
10237   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
10238 $as_echo "$DSYMUTIL" >&6; }
10239 else
10240   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10241 $as_echo "no" >&6; }
10242 fi
10243
10244
10245 fi
10246 if test -z "$ac_cv_prog_DSYMUTIL"; then
10247   ac_ct_DSYMUTIL=$DSYMUTIL
10248   # Extract the first word of "dsymutil", so it can be a program name with args.
10249 set dummy dsymutil; ac_word=$2
10250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10251 $as_echo_n "checking for $ac_word... " >&6; }
10252 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
10253   $as_echo_n "(cached) " >&6
10254 else
10255   if test -n "$ac_ct_DSYMUTIL"; then
10256   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
10257 else
10258 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10259 for as_dir in $PATH
10260 do
10261   IFS=$as_save_IFS
10262   test -z "$as_dir" && as_dir=.
10263     for ac_exec_ext in '' $ac_executable_extensions; do
10264   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10265     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
10266     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10267     break 2
10268   fi
10269 done
10270   done
10271 IFS=$as_save_IFS
10272
10273 fi
10274 fi
10275 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
10276 if test -n "$ac_ct_DSYMUTIL"; then
10277   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
10278 $as_echo "$ac_ct_DSYMUTIL" >&6; }
10279 else
10280   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10281 $as_echo "no" >&6; }
10282 fi
10283
10284   if test "x$ac_ct_DSYMUTIL" = x; then
10285     DSYMUTIL=":"
10286   else
10287     case $cross_compiling:$ac_tool_warned in
10288 yes:)
10289 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10290 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10291 ac_tool_warned=yes ;;
10292 esac
10293     DSYMUTIL=$ac_ct_DSYMUTIL
10294   fi
10295 else
10296   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
10297 fi
10298
10299     if test -n "$ac_tool_prefix"; then
10300   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
10301 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
10302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10303 $as_echo_n "checking for $ac_word... " >&6; }
10304 if ${ac_cv_prog_NMEDIT+:} false; then :
10305   $as_echo_n "(cached) " >&6
10306 else
10307   if test -n "$NMEDIT"; then
10308   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
10309 else
10310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10311 for as_dir in $PATH
10312 do
10313   IFS=$as_save_IFS
10314   test -z "$as_dir" && as_dir=.
10315     for ac_exec_ext in '' $ac_executable_extensions; do
10316   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10317     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
10318     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10319     break 2
10320   fi
10321 done
10322   done
10323 IFS=$as_save_IFS
10324
10325 fi
10326 fi
10327 NMEDIT=$ac_cv_prog_NMEDIT
10328 if test -n "$NMEDIT"; then
10329   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
10330 $as_echo "$NMEDIT" >&6; }
10331 else
10332   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10333 $as_echo "no" >&6; }
10334 fi
10335
10336
10337 fi
10338 if test -z "$ac_cv_prog_NMEDIT"; then
10339   ac_ct_NMEDIT=$NMEDIT
10340   # Extract the first word of "nmedit", so it can be a program name with args.
10341 set dummy nmedit; ac_word=$2
10342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10343 $as_echo_n "checking for $ac_word... " >&6; }
10344 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
10345   $as_echo_n "(cached) " >&6
10346 else
10347   if test -n "$ac_ct_NMEDIT"; then
10348   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
10349 else
10350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10351 for as_dir in $PATH
10352 do
10353   IFS=$as_save_IFS
10354   test -z "$as_dir" && as_dir=.
10355     for ac_exec_ext in '' $ac_executable_extensions; do
10356   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10357     ac_cv_prog_ac_ct_NMEDIT="nmedit"
10358     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10359     break 2
10360   fi
10361 done
10362   done
10363 IFS=$as_save_IFS
10364
10365 fi
10366 fi
10367 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
10368 if test -n "$ac_ct_NMEDIT"; then
10369   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
10370 $as_echo "$ac_ct_NMEDIT" >&6; }
10371 else
10372   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10373 $as_echo "no" >&6; }
10374 fi
10375
10376   if test "x$ac_ct_NMEDIT" = x; then
10377     NMEDIT=":"
10378   else
10379     case $cross_compiling:$ac_tool_warned in
10380 yes:)
10381 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10382 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10383 ac_tool_warned=yes ;;
10384 esac
10385     NMEDIT=$ac_ct_NMEDIT
10386   fi
10387 else
10388   NMEDIT="$ac_cv_prog_NMEDIT"
10389 fi
10390
10391     if test -n "$ac_tool_prefix"; then
10392   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
10393 set dummy ${ac_tool_prefix}lipo; ac_word=$2
10394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10395 $as_echo_n "checking for $ac_word... " >&6; }
10396 if ${ac_cv_prog_LIPO+:} false; then :
10397   $as_echo_n "(cached) " >&6
10398 else
10399   if test -n "$LIPO"; then
10400   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
10401 else
10402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10403 for as_dir in $PATH
10404 do
10405   IFS=$as_save_IFS
10406   test -z "$as_dir" && as_dir=.
10407     for ac_exec_ext in '' $ac_executable_extensions; do
10408   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10409     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
10410     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10411     break 2
10412   fi
10413 done
10414   done
10415 IFS=$as_save_IFS
10416
10417 fi
10418 fi
10419 LIPO=$ac_cv_prog_LIPO
10420 if test -n "$LIPO"; then
10421   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
10422 $as_echo "$LIPO" >&6; }
10423 else
10424   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10425 $as_echo "no" >&6; }
10426 fi
10427
10428
10429 fi
10430 if test -z "$ac_cv_prog_LIPO"; then
10431   ac_ct_LIPO=$LIPO
10432   # Extract the first word of "lipo", so it can be a program name with args.
10433 set dummy lipo; ac_word=$2
10434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10435 $as_echo_n "checking for $ac_word... " >&6; }
10436 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
10437   $as_echo_n "(cached) " >&6
10438 else
10439   if test -n "$ac_ct_LIPO"; then
10440   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
10441 else
10442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10443 for as_dir in $PATH
10444 do
10445   IFS=$as_save_IFS
10446   test -z "$as_dir" && as_dir=.
10447     for ac_exec_ext in '' $ac_executable_extensions; do
10448   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10449     ac_cv_prog_ac_ct_LIPO="lipo"
10450     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10451     break 2
10452   fi
10453 done
10454   done
10455 IFS=$as_save_IFS
10456
10457 fi
10458 fi
10459 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
10460 if test -n "$ac_ct_LIPO"; then
10461   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
10462 $as_echo "$ac_ct_LIPO" >&6; }
10463 else
10464   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10465 $as_echo "no" >&6; }
10466 fi
10467
10468   if test "x$ac_ct_LIPO" = x; then
10469     LIPO=":"
10470   else
10471     case $cross_compiling:$ac_tool_warned in
10472 yes:)
10473 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10474 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10475 ac_tool_warned=yes ;;
10476 esac
10477     LIPO=$ac_ct_LIPO
10478   fi
10479 else
10480   LIPO="$ac_cv_prog_LIPO"
10481 fi
10482
10483     if test -n "$ac_tool_prefix"; then
10484   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
10485 set dummy ${ac_tool_prefix}otool; ac_word=$2
10486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10487 $as_echo_n "checking for $ac_word... " >&6; }
10488 if ${ac_cv_prog_OTOOL+:} false; then :
10489   $as_echo_n "(cached) " >&6
10490 else
10491   if test -n "$OTOOL"; then
10492   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
10493 else
10494 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10495 for as_dir in $PATH
10496 do
10497   IFS=$as_save_IFS
10498   test -z "$as_dir" && as_dir=.
10499     for ac_exec_ext in '' $ac_executable_extensions; do
10500   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10501     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
10502     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10503     break 2
10504   fi
10505 done
10506   done
10507 IFS=$as_save_IFS
10508
10509 fi
10510 fi
10511 OTOOL=$ac_cv_prog_OTOOL
10512 if test -n "$OTOOL"; then
10513   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
10514 $as_echo "$OTOOL" >&6; }
10515 else
10516   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10517 $as_echo "no" >&6; }
10518 fi
10519
10520
10521 fi
10522 if test -z "$ac_cv_prog_OTOOL"; then
10523   ac_ct_OTOOL=$OTOOL
10524   # Extract the first word of "otool", so it can be a program name with args.
10525 set dummy otool; ac_word=$2
10526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10527 $as_echo_n "checking for $ac_word... " >&6; }
10528 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
10529   $as_echo_n "(cached) " >&6
10530 else
10531   if test -n "$ac_ct_OTOOL"; then
10532   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
10533 else
10534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10535 for as_dir in $PATH
10536 do
10537   IFS=$as_save_IFS
10538   test -z "$as_dir" && as_dir=.
10539     for ac_exec_ext in '' $ac_executable_extensions; do
10540   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10541     ac_cv_prog_ac_ct_OTOOL="otool"
10542     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10543     break 2
10544   fi
10545 done
10546   done
10547 IFS=$as_save_IFS
10548
10549 fi
10550 fi
10551 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
10552 if test -n "$ac_ct_OTOOL"; then
10553   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
10554 $as_echo "$ac_ct_OTOOL" >&6; }
10555 else
10556   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10557 $as_echo "no" >&6; }
10558 fi
10559
10560   if test "x$ac_ct_OTOOL" = x; then
10561     OTOOL=":"
10562   else
10563     case $cross_compiling:$ac_tool_warned in
10564 yes:)
10565 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10566 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10567 ac_tool_warned=yes ;;
10568 esac
10569     OTOOL=$ac_ct_OTOOL
10570   fi
10571 else
10572   OTOOL="$ac_cv_prog_OTOOL"
10573 fi
10574
10575     if test -n "$ac_tool_prefix"; then
10576   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
10577 set dummy ${ac_tool_prefix}otool64; ac_word=$2
10578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10579 $as_echo_n "checking for $ac_word... " >&6; }
10580 if ${ac_cv_prog_OTOOL64+:} false; then :
10581   $as_echo_n "(cached) " >&6
10582 else
10583   if test -n "$OTOOL64"; then
10584   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
10585 else
10586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10587 for as_dir in $PATH
10588 do
10589   IFS=$as_save_IFS
10590   test -z "$as_dir" && as_dir=.
10591     for ac_exec_ext in '' $ac_executable_extensions; do
10592   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10593     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
10594     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10595     break 2
10596   fi
10597 done
10598   done
10599 IFS=$as_save_IFS
10600
10601 fi
10602 fi
10603 OTOOL64=$ac_cv_prog_OTOOL64
10604 if test -n "$OTOOL64"; then
10605   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
10606 $as_echo "$OTOOL64" >&6; }
10607 else
10608   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10609 $as_echo "no" >&6; }
10610 fi
10611
10612
10613 fi
10614 if test -z "$ac_cv_prog_OTOOL64"; then
10615   ac_ct_OTOOL64=$OTOOL64
10616   # Extract the first word of "otool64", so it can be a program name with args.
10617 set dummy otool64; ac_word=$2
10618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10619 $as_echo_n "checking for $ac_word... " >&6; }
10620 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
10621   $as_echo_n "(cached) " >&6
10622 else
10623   if test -n "$ac_ct_OTOOL64"; then
10624   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
10625 else
10626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10627 for as_dir in $PATH
10628 do
10629   IFS=$as_save_IFS
10630   test -z "$as_dir" && as_dir=.
10631     for ac_exec_ext in '' $ac_executable_extensions; do
10632   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10633     ac_cv_prog_ac_ct_OTOOL64="otool64"
10634     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10635     break 2
10636   fi
10637 done
10638   done
10639 IFS=$as_save_IFS
10640
10641 fi
10642 fi
10643 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
10644 if test -n "$ac_ct_OTOOL64"; then
10645   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
10646 $as_echo "$ac_ct_OTOOL64" >&6; }
10647 else
10648   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10649 $as_echo "no" >&6; }
10650 fi
10651
10652   if test "x$ac_ct_OTOOL64" = x; then
10653     OTOOL64=":"
10654   else
10655     case $cross_compiling:$ac_tool_warned in
10656 yes:)
10657 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10658 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10659 ac_tool_warned=yes ;;
10660 esac
10661     OTOOL64=$ac_ct_OTOOL64
10662   fi
10663 else
10664   OTOOL64="$ac_cv_prog_OTOOL64"
10665 fi
10666
10667
10668
10669
10670
10671
10672
10673
10674
10675
10676
10677
10678
10679
10680
10681
10682
10683
10684
10685
10686
10687
10688
10689
10690
10691
10692
10693     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
10694 $as_echo_n "checking for -single_module linker flag... " >&6; }
10695 if ${lt_cv_apple_cc_single_mod+:} false; then :
10696   $as_echo_n "(cached) " >&6
10697 else
10698   lt_cv_apple_cc_single_mod=no
10699       if test -z "$LT_MULTI_MODULE"; then
10700         # By default we will add the -single_module flag. You can override
10701         # by either setting the environment variable LT_MULTI_MODULE
10702         # non-empty at configure time, or by adding -multi_module to the
10703         # link flags.
10704         rm -rf libconftest.dylib*
10705         echo "int foo(void){return 1;}" > conftest.c
10706         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
10707 -dynamiclib -Wl,-single_module conftest.c" >&5
10708         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
10709           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
10710         _lt_result=$?
10711         # If there is a non-empty error log, and "single_module"
10712         # appears in it, assume the flag caused a linker warning
10713         if test -s conftest.err && $GREP single_module conftest.err; then
10714           cat conftest.err >&5
10715         # Otherwise, if the output was created with a 0 exit code from
10716         # the compiler, it worked.
10717         elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
10718           lt_cv_apple_cc_single_mod=yes
10719         else
10720           cat conftest.err >&5
10721         fi
10722         rm -rf libconftest.dylib*
10723         rm -f conftest.*
10724       fi
10725 fi
10726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
10727 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
10728
10729     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
10730 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
10731 if ${lt_cv_ld_exported_symbols_list+:} false; then :
10732   $as_echo_n "(cached) " >&6
10733 else
10734   lt_cv_ld_exported_symbols_list=no
10735       save_LDFLAGS=$LDFLAGS
10736       echo "_main" > conftest.sym
10737       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
10738       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10739 /* end confdefs.h.  */
10740
10741 int
10742 main ()
10743 {
10744
10745   ;
10746   return 0;
10747 }
10748 _ACEOF
10749 if ac_fn_c_try_link "$LINENO"; then :
10750   lt_cv_ld_exported_symbols_list=yes
10751 else
10752   lt_cv_ld_exported_symbols_list=no
10753 fi
10754 rm -f core conftest.err conftest.$ac_objext \
10755     conftest$ac_exeext conftest.$ac_ext
10756         LDFLAGS=$save_LDFLAGS
10757
10758 fi
10759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
10760 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
10761
10762     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
10763 $as_echo_n "checking for -force_load linker flag... " >&6; }
10764 if ${lt_cv_ld_force_load+:} false; then :
10765   $as_echo_n "(cached) " >&6
10766 else
10767   lt_cv_ld_force_load=no
10768       cat > conftest.c << _LT_EOF
10769 int forced_loaded() { return 2;}
10770 _LT_EOF
10771       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
10772       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
10773       echo "$AR cru libconftest.a conftest.o" >&5
10774       $AR cru libconftest.a conftest.o 2>&5
10775       echo "$RANLIB libconftest.a" >&5
10776       $RANLIB libconftest.a 2>&5
10777       cat > conftest.c << _LT_EOF
10778 int main() { return 0;}
10779 _LT_EOF
10780       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
10781       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
10782       _lt_result=$?
10783       if test -s conftest.err && $GREP force_load conftest.err; then
10784         cat conftest.err >&5
10785       elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
10786         lt_cv_ld_force_load=yes
10787       else
10788         cat conftest.err >&5
10789       fi
10790         rm -f conftest.err libconftest.a conftest conftest.c
10791         rm -rf conftest.dSYM
10792
10793 fi
10794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
10795 $as_echo "$lt_cv_ld_force_load" >&6; }
10796     case $host_os in
10797     rhapsody* | darwin1.[012])
10798       _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
10799     darwin1.*)
10800       _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
10801     darwin*) # darwin 5.x on
10802       # if running on 10.5 or later, the deployment target defaults
10803       # to the OS version, if on x86, and 10.4, the deployment
10804       # target defaults to 10.4. Don't you love it?
10805       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
10806         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
10807           _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
10808         10.[012][,.]*)
10809           _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
10810         10.*)
10811           _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
10812       esac
10813     ;;
10814   esac
10815     if test yes = "$lt_cv_apple_cc_single_mod"; then
10816       _lt_dar_single_mod='$single_module'
10817     fi
10818     if test yes = "$lt_cv_ld_exported_symbols_list"; then
10819       _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
10820     else
10821       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
10822     fi
10823     if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
10824       _lt_dsymutil='~$DSYMUTIL $lib || :'
10825     else
10826       _lt_dsymutil=
10827     fi
10828     ;;
10829   esac
10830
10831 # func_munge_path_list VARIABLE PATH
10832 # -----------------------------------
10833 # VARIABLE is name of variable containing _space_ separated list of
10834 # directories to be munged by the contents of PATH, which is string
10835 # having a format:
10836 # "DIR[:DIR]:"
10837 #       string "DIR[ DIR]" will be prepended to VARIABLE
10838 # ":DIR[:DIR]"
10839 #       string "DIR[ DIR]" will be appended to VARIABLE
10840 # "DIRP[:DIRP]::[DIRA:]DIRA"
10841 #       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
10842 #       "DIRA[ DIRA]" will be appended to VARIABLE
10843 # "DIR[:DIR]"
10844 #       VARIABLE will be replaced by "DIR[ DIR]"
10845 func_munge_path_list ()
10846 {
10847     case x$2 in
10848     x)
10849         ;;
10850     *:)
10851         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
10852         ;;
10853     x:*)
10854         eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
10855         ;;
10856     *::*)
10857         eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
10858         eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
10859         ;;
10860     *)
10861         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
10862         ;;
10863     esac
10864 }
10865
10866 for ac_header in dlfcn.h
10867 do :
10868   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
10869 "
10870 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
10871   cat >>confdefs.h <<_ACEOF
10872 #define HAVE_DLFCN_H 1
10873 _ACEOF
10874
10875 fi
10876
10877 done
10878
10879
10880
10881 func_stripname_cnf ()
10882 {
10883   case $2 in
10884   .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;;
10885   *)  func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;;
10886   esac
10887 } # func_stripname_cnf
10888
10889
10890
10891
10892
10893 # Set options
10894
10895
10896
10897         enable_dlopen=no
10898
10899
10900   enable_win32_dll=no
10901
10902
10903             # Check whether --enable-shared was given.
10904 if test "${enable_shared+set}" = set; then :
10905   enableval=$enable_shared; p=${PACKAGE-default}
10906     case $enableval in
10907     yes) enable_shared=yes ;;
10908     no) enable_shared=no ;;
10909     *)
10910       enable_shared=no
10911       # Look at the argument we got.  We use all the common list separators.
10912       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10913       for pkg in $enableval; do
10914         IFS=$lt_save_ifs
10915         if test "X$pkg" = "X$p"; then
10916           enable_shared=yes
10917         fi
10918       done
10919       IFS=$lt_save_ifs
10920       ;;
10921     esac
10922 else
10923   enable_shared=yes
10924 fi
10925
10926
10927
10928
10929
10930
10931
10932
10933
10934   # Check whether --enable-static was given.
10935 if test "${enable_static+set}" = set; then :
10936   enableval=$enable_static; p=${PACKAGE-default}
10937     case $enableval in
10938     yes) enable_static=yes ;;
10939     no) enable_static=no ;;
10940     *)
10941      enable_static=no
10942       # Look at the argument we got.  We use all the common list separators.
10943       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10944       for pkg in $enableval; do
10945         IFS=$lt_save_ifs
10946         if test "X$pkg" = "X$p"; then
10947           enable_static=yes
10948         fi
10949       done
10950       IFS=$lt_save_ifs
10951       ;;
10952     esac
10953 else
10954   enable_static=yes
10955 fi
10956
10957
10958
10959
10960
10961
10962
10963
10964
10965
10966 # Check whether --with-pic was given.
10967 if test "${with_pic+set}" = set; then :
10968   withval=$with_pic; lt_p=${PACKAGE-default}
10969     case $withval in
10970     yes|no) pic_mode=$withval ;;
10971     *)
10972       pic_mode=default
10973       # Look at the argument we got.  We use all the common list separators.
10974       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10975       for lt_pkg in $withval; do
10976         IFS=$lt_save_ifs
10977         if test "X$lt_pkg" = "X$lt_p"; then
10978           pic_mode=yes
10979         fi
10980       done
10981       IFS=$lt_save_ifs
10982       ;;
10983     esac
10984 else
10985   pic_mode=default
10986 fi
10987
10988
10989
10990
10991
10992
10993
10994
10995   # Check whether --enable-fast-install was given.
10996 if test "${enable_fast_install+set}" = set; then :
10997   enableval=$enable_fast_install; p=${PACKAGE-default}
10998     case $enableval in
10999     yes) enable_fast_install=yes ;;
11000     no) enable_fast_install=no ;;
11001     *)
11002       enable_fast_install=no
11003       # Look at the argument we got.  We use all the common list separators.
11004       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
11005       for pkg in $enableval; do
11006         IFS=$lt_save_ifs
11007         if test "X$pkg" = "X$p"; then
11008           enable_fast_install=yes
11009         fi
11010       done
11011       IFS=$lt_save_ifs
11012       ;;
11013     esac
11014 else
11015   enable_fast_install=yes
11016 fi
11017
11018
11019
11020
11021
11022
11023
11024
11025   shared_archive_member_spec=
11026 case $host,$enable_shared in
11027 power*-*-aix[5-9]*,yes)
11028   { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
11029 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
11030
11031 # Check whether --with-aix-soname was given.
11032 if test "${with_aix_soname+set}" = set; then :
11033   withval=$with_aix_soname; case $withval in
11034     aix|svr4|both)
11035       ;;
11036     *)
11037       as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
11038       ;;
11039     esac
11040     lt_cv_with_aix_soname=$with_aix_soname
11041 else
11042   if ${lt_cv_with_aix_soname+:} false; then :
11043   $as_echo_n "(cached) " >&6
11044 else
11045   lt_cv_with_aix_soname=aix
11046 fi
11047
11048     with_aix_soname=$lt_cv_with_aix_soname
11049 fi
11050
11051   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
11052 $as_echo "$with_aix_soname" >&6; }
11053   if test aix != "$with_aix_soname"; then
11054     # For the AIX way of multilib, we name the shared archive member
11055     # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
11056     # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
11057     # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
11058     # the AIX toolchain works better with OBJECT_MODE set (default 32).
11059     if test 64 = "${OBJECT_MODE-32}"; then
11060       shared_archive_member_spec=shr_64
11061     else
11062       shared_archive_member_spec=shr
11063     fi
11064   fi
11065   ;;
11066 *)
11067   with_aix_soname=aix
11068   ;;
11069 esac
11070
11071
11072
11073
11074
11075
11076
11077
11078
11079
11080 # This can be used to rebuild libtool when needed
11081 LIBTOOL_DEPS=$ltmain
11082
11083 # Always use our own libtool.
11084 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
11085
11086
11087
11088
11089
11090
11091
11092
11093
11094
11095
11096
11097
11098
11099
11100
11101
11102
11103
11104
11105
11106
11107
11108
11109
11110
11111
11112
11113
11114
11115 test -z "$LN_S" && LN_S="ln -s"
11116
11117
11118
11119
11120
11121
11122
11123
11124
11125
11126
11127
11128
11129
11130 if test -n "${ZSH_VERSION+set}"; then
11131    setopt NO_GLOB_SUBST
11132 fi
11133
11134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
11135 $as_echo_n "checking for objdir... " >&6; }
11136 if ${lt_cv_objdir+:} false; then :
11137   $as_echo_n "(cached) " >&6
11138 else
11139   rm -f .libs 2>/dev/null
11140 mkdir .libs 2>/dev/null
11141 if test -d .libs; then
11142   lt_cv_objdir=.libs
11143 else
11144   # MS-DOS does not allow filenames that begin with a dot.
11145   lt_cv_objdir=_libs
11146 fi
11147 rmdir .libs 2>/dev/null
11148 fi
11149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
11150 $as_echo "$lt_cv_objdir" >&6; }
11151 objdir=$lt_cv_objdir
11152
11153
11154
11155
11156
11157 cat >>confdefs.h <<_ACEOF
11158 #define LT_OBJDIR "$lt_cv_objdir/"
11159 _ACEOF
11160
11161
11162
11163
11164 case $host_os in
11165 aix3*)
11166   # AIX sometimes has problems with the GCC collect2 program.  For some
11167   # reason, if we set the COLLECT_NAMES environment variable, the problems
11168   # vanish in a puff of smoke.
11169   if test set != "${COLLECT_NAMES+set}"; then
11170     COLLECT_NAMES=
11171     export COLLECT_NAMES
11172   fi
11173   ;;
11174 esac
11175
11176 # Global variables:
11177 ofile=libtool
11178 can_build_shared=yes
11179
11180 # All known linkers require a '.a' archive for static linking (except MSVC,
11181 # which needs '.lib').
11182 libext=a
11183
11184 with_gnu_ld=$lt_cv_prog_gnu_ld
11185
11186 old_CC=$CC
11187 old_CFLAGS=$CFLAGS
11188
11189 # Set sane defaults for various variables
11190 test -z "$CC" && CC=cc
11191 test -z "$LTCC" && LTCC=$CC
11192 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
11193 test -z "$LD" && LD=ld
11194 test -z "$ac_objext" && ac_objext=o
11195
11196 func_cc_basename $compiler
11197 cc_basename=$func_cc_basename_result
11198
11199
11200 # Only perform the check for file, if the check method requires it
11201 test -z "$MAGIC_CMD" && MAGIC_CMD=file
11202 case $deplibs_check_method in
11203 file_magic*)
11204   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
11205     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
11206 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
11207 if ${lt_cv_path_MAGIC_CMD+:} false; then :
11208   $as_echo_n "(cached) " >&6
11209 else
11210   case $MAGIC_CMD in
11211 [\\/*] |  ?:[\\/]*)
11212   lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
11213   ;;
11214 *)
11215   lt_save_MAGIC_CMD=$MAGIC_CMD
11216   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
11217   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11218   for ac_dir in $ac_dummy; do
11219     IFS=$lt_save_ifs
11220     test -z "$ac_dir" && ac_dir=.
11221     if test -f "$ac_dir/${ac_tool_prefix}file"; then
11222       lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
11223       if test -n "$file_magic_test_file"; then
11224         case $deplibs_check_method in
11225         "file_magic "*)
11226           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
11227           MAGIC_CMD=$lt_cv_path_MAGIC_CMD
11228           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11229             $EGREP "$file_magic_regex" > /dev/null; then
11230             :
11231           else
11232             cat <<_LT_EOF 1>&2
11233
11234 *** Warning: the command libtool uses to detect shared libraries,
11235 *** $file_magic_cmd, produces output that libtool cannot recognize.
11236 *** The result is that libtool may fail to recognize shared libraries
11237 *** as such.  This will affect the creation of libtool libraries that
11238 *** depend on shared libraries, but programs linked with such libtool
11239 *** libraries will work regardless of this problem.  Nevertheless, you
11240 *** may want to report the problem to your system manager and/or to
11241 *** bug-libtool@gnu.org
11242
11243 _LT_EOF
11244           fi ;;
11245         esac
11246       fi
11247       break
11248     fi
11249   done
11250   IFS=$lt_save_ifs
11251   MAGIC_CMD=$lt_save_MAGIC_CMD
11252   ;;
11253 esac
11254 fi
11255
11256 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
11257 if test -n "$MAGIC_CMD"; then
11258   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
11259 $as_echo "$MAGIC_CMD" >&6; }
11260 else
11261   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11262 $as_echo "no" >&6; }
11263 fi
11264
11265
11266
11267
11268
11269 if test -z "$lt_cv_path_MAGIC_CMD"; then
11270   if test -n "$ac_tool_prefix"; then
11271     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
11272 $as_echo_n "checking for file... " >&6; }
11273 if ${lt_cv_path_MAGIC_CMD+:} false; then :
11274   $as_echo_n "(cached) " >&6
11275 else
11276   case $MAGIC_CMD in
11277 [\\/*] |  ?:[\\/]*)
11278   lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
11279   ;;
11280 *)
11281   lt_save_MAGIC_CMD=$MAGIC_CMD
11282   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
11283   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11284   for ac_dir in $ac_dummy; do
11285     IFS=$lt_save_ifs
11286     test -z "$ac_dir" && ac_dir=.
11287     if test -f "$ac_dir/file"; then
11288       lt_cv_path_MAGIC_CMD=$ac_dir/"file"
11289       if test -n "$file_magic_test_file"; then
11290         case $deplibs_check_method in
11291         "file_magic "*)
11292           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
11293           MAGIC_CMD=$lt_cv_path_MAGIC_CMD
11294           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11295             $EGREP "$file_magic_regex" > /dev/null; then
11296             :
11297           else
11298             cat <<_LT_EOF 1>&2
11299
11300 *** Warning: the command libtool uses to detect shared libraries,
11301 *** $file_magic_cmd, produces output that libtool cannot recognize.
11302 *** The result is that libtool may fail to recognize shared libraries
11303 *** as such.  This will affect the creation of libtool libraries that
11304 *** depend on shared libraries, but programs linked with such libtool
11305 *** libraries will work regardless of this problem.  Nevertheless, you
11306 *** may want to report the problem to your system manager and/or to
11307 *** bug-libtool@gnu.org
11308
11309 _LT_EOF
11310           fi ;;
11311         esac
11312       fi
11313       break
11314     fi
11315   done
11316   IFS=$lt_save_ifs
11317   MAGIC_CMD=$lt_save_MAGIC_CMD
11318   ;;
11319 esac
11320 fi
11321
11322 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
11323 if test -n "$MAGIC_CMD"; then
11324   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
11325 $as_echo "$MAGIC_CMD" >&6; }
11326 else
11327   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11328 $as_echo "no" >&6; }
11329 fi
11330
11331
11332   else
11333     MAGIC_CMD=:
11334   fi
11335 fi
11336
11337   fi
11338   ;;
11339 esac
11340
11341 # Use C for the default configuration in the libtool script
11342
11343 lt_save_CC=$CC
11344 ac_ext=c
11345 ac_cpp='$CPP $CPPFLAGS'
11346 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11347 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11348 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11349
11350
11351 # Source file extension for C test sources.
11352 ac_ext=c
11353
11354 # Object file extension for compiled C test sources.
11355 objext=o
11356 objext=$objext
11357
11358 # Code to be used in simple compile tests
11359 lt_simple_compile_test_code="int some_variable = 0;"
11360
11361 # Code to be used in simple link tests
11362 lt_simple_link_test_code='int main(){return(0);}'
11363
11364
11365
11366
11367
11368
11369
11370 # If no C compiler was specified, use CC.
11371 LTCC=${LTCC-"$CC"}
11372
11373 # If no C compiler flags were specified, use CFLAGS.
11374 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11375
11376 # Allow CC to be a program name with arguments.
11377 compiler=$CC
11378
11379 # Save the default compiler, since it gets overwritten when the other
11380 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
11381 compiler_DEFAULT=$CC
11382
11383 # save warnings/boilerplate of simple test code
11384 ac_outfile=conftest.$ac_objext
11385 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11386 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11387 _lt_compiler_boilerplate=`cat conftest.err`
11388 $RM conftest*
11389
11390 ac_outfile=conftest.$ac_objext
11391 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11392 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11393 _lt_linker_boilerplate=`cat conftest.err`
11394 $RM -r conftest*
11395
11396
11397 ## CAVEAT EMPTOR:
11398 ## There is no encapsulation within the following macros, do not change
11399 ## the running order or otherwise move them around unless you know exactly
11400 ## what you are doing...
11401 if test -n "$compiler"; then
11402
11403 lt_prog_compiler_no_builtin_flag=
11404
11405 if test yes = "$GCC"; then
11406   case $cc_basename in
11407   nvcc*)
11408     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
11409   *)
11410     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
11411   esac
11412
11413   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
11414 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
11415 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
11416   $as_echo_n "(cached) " >&6
11417 else
11418   lt_cv_prog_compiler_rtti_exceptions=no
11419    ac_outfile=conftest.$ac_objext
11420    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11421    lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
11422    # Insert the option either (1) after the last *FLAGS variable, or
11423    # (2) before a word containing "conftest.", or (3) at the end.
11424    # Note that $ac_compile itself does not contain backslashes and begins
11425    # with a dollar sign (not a hyphen), so the echo should work correctly.
11426    # The option is referenced via a variable to avoid confusing sed.
11427    lt_compile=`echo "$ac_compile" | $SED \
11428    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11429    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11430    -e 's:$: $lt_compiler_flag:'`
11431    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11432    (eval "$lt_compile" 2>conftest.err)
11433    ac_status=$?
11434    cat conftest.err >&5
11435    echo "$as_me:$LINENO: \$? = $ac_status" >&5
11436    if (exit $ac_status) && test -s "$ac_outfile"; then
11437      # The compiler can only warn and ignore the option if not recognized
11438      # So say no if there are warnings other than the usual output.
11439      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11440      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11441      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11442        lt_cv_prog_compiler_rtti_exceptions=yes
11443      fi
11444    fi
11445    $RM conftest*
11446
11447 fi
11448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
11449 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
11450
11451 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
11452     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
11453 else
11454     :
11455 fi
11456
11457 fi
11458
11459
11460
11461
11462
11463
11464   lt_prog_compiler_wl=
11465 lt_prog_compiler_pic=
11466 lt_prog_compiler_static=
11467
11468
11469   if test yes = "$GCC"; then
11470     lt_prog_compiler_wl='-Wl,'
11471     lt_prog_compiler_static='-static'
11472
11473     case $host_os in
11474       aix*)
11475       # All AIX code is PIC.
11476       if test ia64 = "$host_cpu"; then
11477         # AIX 5 now supports IA64 processor
11478         lt_prog_compiler_static='-Bstatic'
11479       fi
11480       lt_prog_compiler_pic='-fPIC'
11481       ;;
11482
11483     amigaos*)
11484       case $host_cpu in
11485       powerpc)
11486             # see comment about AmigaOS4 .so support
11487             lt_prog_compiler_pic='-fPIC'
11488         ;;
11489       m68k)
11490             # FIXME: we need at least 68020 code to build shared libraries, but
11491             # adding the '-m68020' flag to GCC prevents building anything better,
11492             # like '-m68040'.
11493             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
11494         ;;
11495       esac
11496       ;;
11497
11498     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11499       # PIC is the default for these OSes.
11500       ;;
11501
11502     mingw* | cygwin* | pw32* | os2* | cegcc*)
11503       # This hack is so that the source file can tell whether it is being
11504       # built for inclusion in a dll (and should export symbols for example).
11505       # Although the cygwin gcc ignores -fPIC, still need this for old-style
11506       # (--disable-auto-import) libraries
11507       lt_prog_compiler_pic='-DDLL_EXPORT'
11508       case $host_os in
11509       os2*)
11510         lt_prog_compiler_static='$wl-static'
11511         ;;
11512       esac
11513       ;;
11514
11515     darwin* | rhapsody*)
11516       # PIC is the default on this platform
11517       # Common symbols not allowed in MH_DYLIB files
11518       lt_prog_compiler_pic='-fno-common'
11519       ;;
11520
11521     haiku*)
11522       # PIC is the default for Haiku.
11523       # The "-static" flag exists, but is broken.
11524       lt_prog_compiler_static=
11525       ;;
11526
11527     hpux*)
11528       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
11529       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
11530       # sets the default TLS model and affects inlining.
11531       case $host_cpu in
11532       hppa*64*)
11533         # +Z the default
11534         ;;
11535       *)
11536         lt_prog_compiler_pic='-fPIC'
11537         ;;
11538       esac
11539       ;;
11540
11541     interix[3-9]*)
11542       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11543       # Instead, we relocate shared libraries at runtime.
11544       ;;
11545
11546     msdosdjgpp*)
11547       # Just because we use GCC doesn't mean we suddenly get shared libraries
11548       # on systems that don't support them.
11549       lt_prog_compiler_can_build_shared=no
11550       enable_shared=no
11551       ;;
11552
11553     *nto* | *qnx*)
11554       # QNX uses GNU C++, but need to define -shared option too, otherwise
11555       # it will coredump.
11556       lt_prog_compiler_pic='-fPIC -shared'
11557       ;;
11558
11559     sysv4*MP*)
11560       if test -d /usr/nec; then
11561         lt_prog_compiler_pic=-Kconform_pic
11562       fi
11563       ;;
11564
11565     *)
11566       lt_prog_compiler_pic='-fPIC'
11567       ;;
11568     esac
11569
11570     case $cc_basename in
11571     nvcc*) # Cuda Compiler Driver 2.2
11572       lt_prog_compiler_wl='-Xlinker '
11573       if test -n "$lt_prog_compiler_pic"; then
11574         lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
11575       fi
11576       ;;
11577     esac
11578   else
11579     # PORTME Check for flag to pass linker flags through the system compiler.
11580     case $host_os in
11581     aix*)
11582       lt_prog_compiler_wl='-Wl,'
11583       if test ia64 = "$host_cpu"; then
11584         # AIX 5 now supports IA64 processor
11585         lt_prog_compiler_static='-Bstatic'
11586       else
11587         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
11588       fi
11589       ;;
11590
11591     darwin* | rhapsody*)
11592       # PIC is the default on this platform
11593       # Common symbols not allowed in MH_DYLIB files
11594       lt_prog_compiler_pic='-fno-common'
11595       case $cc_basename in
11596       nagfor*)
11597         # NAG Fortran compiler
11598         lt_prog_compiler_wl='-Wl,-Wl,,'
11599         lt_prog_compiler_pic='-PIC'
11600         lt_prog_compiler_static='-Bstatic'
11601         ;;
11602       esac
11603       ;;
11604
11605     mingw* | cygwin* | pw32* | os2* | cegcc*)
11606       # This hack is so that the source file can tell whether it is being
11607       # built for inclusion in a dll (and should export symbols for example).
11608       lt_prog_compiler_pic='-DDLL_EXPORT'
11609       case $host_os in
11610       os2*)
11611         lt_prog_compiler_static='$wl-static'
11612         ;;
11613       esac
11614       ;;
11615
11616     hpux9* | hpux10* | hpux11*)
11617       lt_prog_compiler_wl='-Wl,'
11618       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11619       # not for PA HP-UX.
11620       case $host_cpu in
11621       hppa*64*|ia64*)
11622         # +Z the default
11623         ;;
11624       *)
11625         lt_prog_compiler_pic='+Z'
11626         ;;
11627       esac
11628       # Is there a better lt_prog_compiler_static that works with the bundled CC?
11629       lt_prog_compiler_static='$wl-a ${wl}archive'
11630       ;;
11631
11632     irix5* | irix6* | nonstopux*)
11633       lt_prog_compiler_wl='-Wl,'
11634       # PIC (with -KPIC) is the default.
11635       lt_prog_compiler_static='-non_shared'
11636       ;;
11637
11638     linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11639       case $cc_basename in
11640       # old Intel for x86_64, which still supported -KPIC.
11641       ecc*)
11642         lt_prog_compiler_wl='-Wl,'
11643         lt_prog_compiler_pic='-KPIC'
11644         lt_prog_compiler_static='-static'
11645         ;;
11646       # icc used to be incompatible with GCC.
11647       # ICC 10 doesn't accept -KPIC any more.
11648       icc* | ifort*)
11649         lt_prog_compiler_wl='-Wl,'
11650         lt_prog_compiler_pic='-fPIC'
11651         lt_prog_compiler_static='-static'
11652         ;;
11653       # Lahey Fortran 8.1.
11654       lf95*)
11655         lt_prog_compiler_wl='-Wl,'
11656         lt_prog_compiler_pic='--shared'
11657         lt_prog_compiler_static='--static'
11658         ;;
11659       nagfor*)
11660         # NAG Fortran compiler
11661         lt_prog_compiler_wl='-Wl,-Wl,,'
11662         lt_prog_compiler_pic='-PIC'
11663         lt_prog_compiler_static='-Bstatic'
11664         ;;
11665       tcc*)
11666         # Fabrice Bellard et al's Tiny C Compiler
11667         lt_prog_compiler_wl='-Wl,'
11668         lt_prog_compiler_pic='-fPIC'
11669         lt_prog_compiler_static='-static'
11670         ;;
11671       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
11672         # Portland Group compilers (*not* the Pentium gcc compiler,
11673         # which looks to be a dead project)
11674         lt_prog_compiler_wl='-Wl,'
11675         lt_prog_compiler_pic='-fpic'
11676         lt_prog_compiler_static='-Bstatic'
11677         ;;
11678       ccc*)
11679         lt_prog_compiler_wl='-Wl,'
11680         # All Alpha code is PIC.
11681         lt_prog_compiler_static='-non_shared'
11682         ;;
11683       xl* | bgxl* | bgf* | mpixl*)
11684         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
11685         lt_prog_compiler_wl='-Wl,'
11686         lt_prog_compiler_pic='-qpic'
11687         lt_prog_compiler_static='-qstaticlink'
11688         ;;
11689       *)
11690         case `$CC -V 2>&1 | sed 5q` in
11691         *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
11692           # Sun Fortran 8.3 passes all unrecognized flags to the linker
11693           lt_prog_compiler_pic='-KPIC'
11694           lt_prog_compiler_static='-Bstatic'
11695           lt_prog_compiler_wl=''
11696           ;;
11697         *Sun\ F* | *Sun*Fortran*)
11698           lt_prog_compiler_pic='-KPIC'
11699           lt_prog_compiler_static='-Bstatic'
11700           lt_prog_compiler_wl='-Qoption ld '
11701           ;;
11702         *Sun\ C*)
11703           # Sun C 5.9
11704           lt_prog_compiler_pic='-KPIC'
11705           lt_prog_compiler_static='-Bstatic'
11706           lt_prog_compiler_wl='-Wl,'
11707           ;;
11708         *Intel*\ [CF]*Compiler*)
11709           lt_prog_compiler_wl='-Wl,'
11710           lt_prog_compiler_pic='-fPIC'
11711           lt_prog_compiler_static='-static'
11712           ;;
11713         *Portland\ Group*)
11714           lt_prog_compiler_wl='-Wl,'
11715           lt_prog_compiler_pic='-fpic'
11716           lt_prog_compiler_static='-Bstatic'
11717           ;;
11718         esac
11719         ;;
11720       esac
11721       ;;
11722
11723     newsos6)
11724       lt_prog_compiler_pic='-KPIC'
11725       lt_prog_compiler_static='-Bstatic'
11726       ;;
11727
11728     *nto* | *qnx*)
11729       # QNX uses GNU C++, but need to define -shared option too, otherwise
11730       # it will coredump.
11731       lt_prog_compiler_pic='-fPIC -shared'
11732       ;;
11733
11734     osf3* | osf4* | osf5*)
11735       lt_prog_compiler_wl='-Wl,'
11736       # All OSF/1 code is PIC.
11737       lt_prog_compiler_static='-non_shared'
11738       ;;
11739
11740     rdos*)
11741       lt_prog_compiler_static='-non_shared'
11742       ;;
11743
11744     solaris*)
11745       lt_prog_compiler_pic='-KPIC'
11746       lt_prog_compiler_static='-Bstatic'
11747       case $cc_basename in
11748       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
11749         lt_prog_compiler_wl='-Qoption ld ';;
11750       *)
11751         lt_prog_compiler_wl='-Wl,';;
11752       esac
11753       ;;
11754
11755     sunos4*)
11756       lt_prog_compiler_wl='-Qoption ld '
11757       lt_prog_compiler_pic='-PIC'
11758       lt_prog_compiler_static='-Bstatic'
11759       ;;
11760
11761     sysv4 | sysv4.2uw2* | sysv4.3*)
11762       lt_prog_compiler_wl='-Wl,'
11763       lt_prog_compiler_pic='-KPIC'
11764       lt_prog_compiler_static='-Bstatic'
11765       ;;
11766
11767     sysv4*MP*)
11768       if test -d /usr/nec; then
11769         lt_prog_compiler_pic='-Kconform_pic'
11770         lt_prog_compiler_static='-Bstatic'
11771       fi
11772       ;;
11773
11774     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11775       lt_prog_compiler_wl='-Wl,'
11776       lt_prog_compiler_pic='-KPIC'
11777       lt_prog_compiler_static='-Bstatic'
11778       ;;
11779
11780     unicos*)
11781       lt_prog_compiler_wl='-Wl,'
11782       lt_prog_compiler_can_build_shared=no
11783       ;;
11784
11785     uts4*)
11786       lt_prog_compiler_pic='-pic'
11787       lt_prog_compiler_static='-Bstatic'
11788       ;;
11789
11790     *)
11791       lt_prog_compiler_can_build_shared=no
11792       ;;
11793     esac
11794   fi
11795
11796 case $host_os in
11797   # For platforms that do not support PIC, -DPIC is meaningless:
11798   *djgpp*)
11799     lt_prog_compiler_pic=
11800     ;;
11801   *)
11802     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
11803     ;;
11804 esac
11805
11806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
11807 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
11808 if ${lt_cv_prog_compiler_pic+:} false; then :
11809   $as_echo_n "(cached) " >&6
11810 else
11811   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
11812 fi
11813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
11814 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
11815 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
11816
11817 #
11818 # Check to make sure the PIC flag actually works.
11819 #
11820 if test -n "$lt_prog_compiler_pic"; then
11821   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
11822 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
11823 if ${lt_cv_prog_compiler_pic_works+:} false; then :
11824   $as_echo_n "(cached) " >&6
11825 else
11826   lt_cv_prog_compiler_pic_works=no
11827    ac_outfile=conftest.$ac_objext
11828    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11829    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
11830    # Insert the option either (1) after the last *FLAGS variable, or
11831    # (2) before a word containing "conftest.", or (3) at the end.
11832    # Note that $ac_compile itself does not contain backslashes and begins
11833    # with a dollar sign (not a hyphen), so the echo should work correctly.
11834    # The option is referenced via a variable to avoid confusing sed.
11835    lt_compile=`echo "$ac_compile" | $SED \
11836    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11837    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11838    -e 's:$: $lt_compiler_flag:'`
11839    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11840    (eval "$lt_compile" 2>conftest.err)
11841    ac_status=$?
11842    cat conftest.err >&5
11843    echo "$as_me:$LINENO: \$? = $ac_status" >&5
11844    if (exit $ac_status) && test -s "$ac_outfile"; then
11845      # The compiler can only warn and ignore the option if not recognized
11846      # So say no if there are warnings other than the usual output.
11847      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11848      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11849      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11850        lt_cv_prog_compiler_pic_works=yes
11851      fi
11852    fi
11853    $RM conftest*
11854
11855 fi
11856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
11857 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
11858
11859 if test yes = "$lt_cv_prog_compiler_pic_works"; then
11860     case $lt_prog_compiler_pic in
11861      "" | " "*) ;;
11862      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
11863      esac
11864 else
11865     lt_prog_compiler_pic=
11866      lt_prog_compiler_can_build_shared=no
11867 fi
11868
11869 fi
11870
11871
11872
11873
11874
11875
11876
11877
11878
11879
11880
11881 #
11882 # Check to make sure the static flag actually works.
11883 #
11884 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
11885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11886 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
11887 if ${lt_cv_prog_compiler_static_works+:} false; then :
11888   $as_echo_n "(cached) " >&6
11889 else
11890   lt_cv_prog_compiler_static_works=no
11891    save_LDFLAGS=$LDFLAGS
11892    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11893    echo "$lt_simple_link_test_code" > conftest.$ac_ext
11894    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11895      # The linker can only warn and ignore the option if not recognized
11896      # So say no if there are warnings
11897      if test -s conftest.err; then
11898        # Append any errors to the config.log.
11899        cat conftest.err 1>&5
11900        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11901        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11902        if diff conftest.exp conftest.er2 >/dev/null; then
11903          lt_cv_prog_compiler_static_works=yes
11904        fi
11905      else
11906        lt_cv_prog_compiler_static_works=yes
11907      fi
11908    fi
11909    $RM -r conftest*
11910    LDFLAGS=$save_LDFLAGS
11911
11912 fi
11913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
11914 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
11915
11916 if test yes = "$lt_cv_prog_compiler_static_works"; then
11917     :
11918 else
11919     lt_prog_compiler_static=
11920 fi
11921
11922
11923
11924
11925
11926
11927
11928   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11929 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11930 if ${lt_cv_prog_compiler_c_o+:} false; then :
11931   $as_echo_n "(cached) " >&6
11932 else
11933   lt_cv_prog_compiler_c_o=no
11934    $RM -r conftest 2>/dev/null
11935    mkdir conftest
11936    cd conftest
11937    mkdir out
11938    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11939
11940    lt_compiler_flag="-o out/conftest2.$ac_objext"
11941    # Insert the option either (1) after the last *FLAGS variable, or
11942    # (2) before a word containing "conftest.", or (3) at the end.
11943    # Note that $ac_compile itself does not contain backslashes and begins
11944    # with a dollar sign (not a hyphen), so the echo should work correctly.
11945    lt_compile=`echo "$ac_compile" | $SED \
11946    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11947    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11948    -e 's:$: $lt_compiler_flag:'`
11949    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11950    (eval "$lt_compile" 2>out/conftest.err)
11951    ac_status=$?
11952    cat out/conftest.err >&5
11953    echo "$as_me:$LINENO: \$? = $ac_status" >&5
11954    if (exit $ac_status) && test -s out/conftest2.$ac_objext
11955    then
11956      # The compiler can only warn and ignore the option if not recognized
11957      # So say no if there are warnings
11958      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
11959      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11960      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11961        lt_cv_prog_compiler_c_o=yes
11962      fi
11963    fi
11964    chmod u+w . 2>&5
11965    $RM conftest*
11966    # SGI C++ compiler will create directory out/ii_files/ for
11967    # template instantiation
11968    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11969    $RM out/* && rmdir out
11970    cd ..
11971    $RM -r conftest
11972    $RM conftest*
11973
11974 fi
11975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
11976 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
11977
11978
11979
11980
11981
11982
11983   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11984 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11985 if ${lt_cv_prog_compiler_c_o+:} false; then :
11986   $as_echo_n "(cached) " >&6
11987 else
11988   lt_cv_prog_compiler_c_o=no
11989    $RM -r conftest 2>/dev/null
11990    mkdir conftest
11991    cd conftest
11992    mkdir out
11993    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11994
11995    lt_compiler_flag="-o out/conftest2.$ac_objext"
11996    # Insert the option either (1) after the last *FLAGS variable, or
11997    # (2) before a word containing "conftest.", or (3) at the end.
11998    # Note that $ac_compile itself does not contain backslashes and begins
11999    # with a dollar sign (not a hyphen), so the echo should work correctly.
12000    lt_compile=`echo "$ac_compile" | $SED \
12001    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12002    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12003    -e 's:$: $lt_compiler_flag:'`
12004    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12005    (eval "$lt_compile" 2>out/conftest.err)
12006    ac_status=$?
12007    cat out/conftest.err >&5
12008    echo "$as_me:$LINENO: \$? = $ac_status" >&5
12009    if (exit $ac_status) && test -s out/conftest2.$ac_objext
12010    then
12011      # The compiler can only warn and ignore the option if not recognized
12012      # So say no if there are warnings
12013      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12014      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12015      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12016        lt_cv_prog_compiler_c_o=yes
12017      fi
12018    fi
12019    chmod u+w . 2>&5
12020    $RM conftest*
12021    # SGI C++ compiler will create directory out/ii_files/ for
12022    # template instantiation
12023    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12024    $RM out/* && rmdir out
12025    cd ..
12026    $RM -r conftest
12027    $RM conftest*
12028
12029 fi
12030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
12031 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
12032
12033
12034
12035
12036 hard_links=nottested
12037 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
12038   # do not overwrite the value of need_locks provided by the user
12039   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
12040 $as_echo_n "checking if we can lock with hard links... " >&6; }
12041   hard_links=yes
12042   $RM conftest*
12043   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12044   touch conftest.a
12045   ln conftest.a conftest.b 2>&5 || hard_links=no
12046   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12047   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
12048 $as_echo "$hard_links" >&6; }
12049   if test no = "$hard_links"; then
12050     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
12051 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
12052     need_locks=warn
12053   fi
12054 else
12055   need_locks=no
12056 fi
12057
12058
12059
12060
12061
12062
12063   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12064 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12065
12066   runpath_var=
12067   allow_undefined_flag=
12068   always_export_symbols=no
12069   archive_cmds=
12070   archive_expsym_cmds=
12071   compiler_needs_object=no
12072   enable_shared_with_static_runtimes=no
12073   export_dynamic_flag_spec=
12074   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12075   hardcode_automatic=no
12076   hardcode_direct=no
12077   hardcode_direct_absolute=no
12078   hardcode_libdir_flag_spec=
12079   hardcode_libdir_separator=
12080   hardcode_minus_L=no
12081   hardcode_shlibpath_var=unsupported
12082   inherit_rpath=no
12083   link_all_deplibs=unknown
12084   module_cmds=
12085   module_expsym_cmds=
12086   old_archive_from_new_cmds=
12087   old_archive_from_expsyms_cmds=
12088   thread_safe_flag_spec=
12089   whole_archive_flag_spec=
12090   # include_expsyms should be a list of space-separated symbols to be *always*
12091   # included in the symbol list
12092   include_expsyms=
12093   # exclude_expsyms can be an extended regexp of symbols to exclude
12094   # it will be wrapped by ' (' and ')$', so one must not match beginning or
12095   # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
12096   # as well as any symbol that contains 'd'.
12097   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12098   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12099   # platforms (ab)use it in PIC code, but their linkers get confused if
12100   # the symbol is explicitly referenced.  Since portable code cannot
12101   # rely on this symbol name, it's probably fine to never include it in
12102   # preloaded symbol tables.
12103   # Exclude shared library initialization/finalization symbols.
12104   extract_expsyms_cmds=
12105
12106   case $host_os in
12107   cygwin* | mingw* | pw32* | cegcc*)
12108     # FIXME: the MSVC++ port hasn't been tested in a loooong time
12109     # When not using gcc, we currently assume that we are using
12110     # Microsoft Visual C++.
12111     if test yes != "$GCC"; then
12112       with_gnu_ld=no
12113     fi
12114     ;;
12115   interix*)
12116     # we just hope/assume this is gcc and not c89 (= MSVC++)
12117     with_gnu_ld=yes
12118     ;;
12119   openbsd* | bitrig*)
12120     with_gnu_ld=no
12121     ;;
12122   esac
12123
12124   ld_shlibs=yes
12125
12126   # On some targets, GNU ld is compatible enough with the native linker
12127   # that we're better off using the native interface for both.
12128   lt_use_gnu_ld_interface=no
12129   if test yes = "$with_gnu_ld"; then
12130     case $host_os in
12131       aix*)
12132         # The AIX port of GNU ld has always aspired to compatibility
12133         # with the native linker.  However, as the warning in the GNU ld
12134         # block says, versions before 2.19.5* couldn't really create working
12135         # shared libraries, regardless of the interface used.
12136         case `$LD -v 2>&1` in
12137           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
12138           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
12139           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
12140           *)
12141             lt_use_gnu_ld_interface=yes
12142             ;;
12143         esac
12144         ;;
12145       *)
12146         lt_use_gnu_ld_interface=yes
12147         ;;
12148     esac
12149   fi
12150
12151   if test yes = "$lt_use_gnu_ld_interface"; then
12152     # If archive_cmds runs LD, not CC, wlarc should be empty
12153     wlarc='$wl'
12154
12155     # Set some defaults for GNU ld with shared library support. These
12156     # are reset later if shared libraries are not supported. Putting them
12157     # here allows them to be overridden if necessary.
12158     runpath_var=LD_RUN_PATH
12159     hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12160     export_dynamic_flag_spec='$wl--export-dynamic'
12161     # ancient GNU ld didn't support --whole-archive et. al.
12162     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
12163       whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
12164     else
12165       whole_archive_flag_spec=
12166     fi
12167     supports_anon_versioning=no
12168     case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
12169       *GNU\ gold*) supports_anon_versioning=yes ;;
12170       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12171       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12172       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12173       *\ 2.11.*) ;; # other 2.11 versions
12174       *) supports_anon_versioning=yes ;;
12175     esac
12176
12177     # See if GNU ld supports shared libraries.
12178     case $host_os in
12179     aix[3-9]*)
12180       # On AIX/PPC, the GNU linker is very broken
12181       if test ia64 != "$host_cpu"; then
12182         ld_shlibs=no
12183         cat <<_LT_EOF 1>&2
12184
12185 *** Warning: the GNU linker, at least up to release 2.19, is reported
12186 *** to be unable to reliably create shared libraries on AIX.
12187 *** Therefore, libtool is disabling shared libraries support.  If you
12188 *** really care for shared libraries, you may want to install binutils
12189 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
12190 *** You will then need to restart the configuration process.
12191
12192 _LT_EOF
12193       fi
12194       ;;
12195
12196     amigaos*)
12197       case $host_cpu in
12198       powerpc)
12199             # see comment about AmigaOS4 .so support
12200             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12201             archive_expsym_cmds=''
12202         ;;
12203       m68k)
12204             archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
12205             hardcode_libdir_flag_spec='-L$libdir'
12206             hardcode_minus_L=yes
12207         ;;
12208       esac
12209       ;;
12210
12211     beos*)
12212       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12213         allow_undefined_flag=unsupported
12214         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12215         # support --undefined.  This deserves some investigation.  FIXME
12216         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12217       else
12218         ld_shlibs=no
12219       fi
12220       ;;
12221
12222     cygwin* | mingw* | pw32* | cegcc*)
12223       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
12224       # as there is no search path for DLLs.
12225       hardcode_libdir_flag_spec='-L$libdir'
12226       export_dynamic_flag_spec='$wl--export-all-symbols'
12227       allow_undefined_flag=unsupported
12228       always_export_symbols=no
12229       enable_shared_with_static_runtimes=yes
12230       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
12231       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
12232
12233       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12234         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12235         # If the export-symbols file already is a .def file, use it as
12236         # is; otherwise, prepend EXPORTS...
12237         archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[   ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([     ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
12238           cp $export_symbols $output_objdir/$soname.def;
12239         else
12240           echo EXPORTS > $output_objdir/$soname.def;
12241           cat $export_symbols >> $output_objdir/$soname.def;
12242         fi~
12243         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12244       else
12245         ld_shlibs=no
12246       fi
12247       ;;
12248
12249     haiku*)
12250       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12251       link_all_deplibs=yes
12252       ;;
12253
12254     os2*)
12255       hardcode_libdir_flag_spec='-L$libdir'
12256       hardcode_minus_L=yes
12257       allow_undefined_flag=unsupported
12258       shrext_cmds=.dll
12259       archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12260         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12261         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12262         $ECHO EXPORTS >> $output_objdir/$libname.def~
12263         emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
12264         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12265         emximp -o $lib $output_objdir/$libname.def'
12266       archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12267         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12268         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12269         $ECHO EXPORTS >> $output_objdir/$libname.def~
12270         prefix_cmds="$SED"~
12271         if test EXPORTS = "`$SED 1q $export_symbols`"; then
12272           prefix_cmds="$prefix_cmds -e 1d";
12273         fi~
12274         prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
12275         cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
12276         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12277         emximp -o $lib $output_objdir/$libname.def'
12278       old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
12279       enable_shared_with_static_runtimes=yes
12280       ;;
12281
12282     interix[3-9]*)
12283       hardcode_direct=no
12284       hardcode_shlibpath_var=no
12285       hardcode_libdir_flag_spec='$wl-rpath,$libdir'
12286       export_dynamic_flag_spec='$wl-E'
12287       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12288       # Instead, shared libraries are loaded at an image base (0x10000000 by
12289       # default) and relocated if they conflict, which is a slow very memory
12290       # consuming and fragmenting process.  To avoid this, we pick a random,
12291       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12292       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
12293       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
12294       archive_expsym_cmds='sed "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--retain-symbols-file,$output_objdir/$soname.expsym $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
12295       ;;
12296
12297     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
12298       tmp_diet=no
12299       if test linux-dietlibc = "$host_os"; then
12300         case $cc_basename in
12301           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
12302         esac
12303       fi
12304       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
12305          && test no = "$tmp_diet"
12306       then
12307         tmp_addflag=' $pic_flag'
12308         tmp_sharedflag='-shared'
12309         case $cc_basename,$host_cpu in
12310         pgcc*)                          # Portland Group C compiler
12311           whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
12312           tmp_addflag=' $pic_flag'
12313           ;;
12314         pgf77* | pgf90* | pgf95* | pgfortran*)
12315                                         # Portland Group f77 and f90 compilers
12316           whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
12317           tmp_addflag=' $pic_flag -Mnomain' ;;
12318         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
12319           tmp_addflag=' -i_dynamic' ;;
12320         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
12321           tmp_addflag=' -i_dynamic -nofor_main' ;;
12322         ifc* | ifort*)                  # Intel Fortran compiler
12323           tmp_addflag=' -nofor_main' ;;
12324         lf95*)                          # Lahey Fortran 8.1
12325           whole_archive_flag_spec=
12326           tmp_sharedflag='--shared' ;;
12327         nagfor*)                        # NAGFOR 5.3
12328           tmp_sharedflag='-Wl,-shared' ;;
12329         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
12330           tmp_sharedflag='-qmkshrobj'
12331           tmp_addflag= ;;
12332         nvcc*)  # Cuda Compiler Driver 2.2
12333           whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
12334           compiler_needs_object=yes
12335           ;;
12336         esac
12337         case `$CC -V 2>&1 | sed 5q` in
12338         *Sun\ C*)                       # Sun C 5.9
12339           whole_archive_flag_spec='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
12340           compiler_needs_object=yes
12341           tmp_sharedflag='-G' ;;
12342         *Sun\ F*)                       # Sun Fortran 8.3
12343           tmp_sharedflag='-G' ;;
12344         esac
12345         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12346
12347         if test yes = "$supports_anon_versioning"; then
12348           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
12349             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12350             echo "local: *; };" >> $output_objdir/$libname.ver~
12351             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
12352         fi
12353
12354         case $cc_basename in
12355         tcc*)
12356           export_dynamic_flag_spec='-rdynamic'
12357           ;;
12358         xlf* | bgf* | bgxlf* | mpixlf*)
12359           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
12360           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
12361           hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12362           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
12363           if test yes = "$supports_anon_versioning"; then
12364             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
12365               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12366               echo "local: *; };" >> $output_objdir/$libname.ver~
12367               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
12368           fi
12369           ;;
12370         esac
12371       else
12372         ld_shlibs=no
12373       fi
12374       ;;
12375
12376     netbsd*)
12377       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12378         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12379         wlarc=
12380       else
12381         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12382         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12383       fi
12384       ;;
12385
12386     solaris*)
12387       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
12388         ld_shlibs=no
12389         cat <<_LT_EOF 1>&2
12390
12391 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
12392 *** create shared libraries on Solaris systems.  Therefore, libtool
12393 *** is disabling shared libraries support.  We urge you to upgrade GNU
12394 *** binutils to release 2.9.1 or newer.  Another option is to modify
12395 *** your PATH or compiler configuration so that the native linker is
12396 *** used, and then restart.
12397
12398 _LT_EOF
12399       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12400         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12401         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12402       else
12403         ld_shlibs=no
12404       fi
12405       ;;
12406
12407     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
12408       case `$LD -v 2>&1` in
12409         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
12410         ld_shlibs=no
12411         cat <<_LT_EOF 1>&2
12412
12413 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
12414 *** reliably create shared libraries on SCO systems.  Therefore, libtool
12415 *** is disabling shared libraries support.  We urge you to upgrade GNU
12416 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
12417 *** your PATH or compiler configuration so that the native linker is
12418 *** used, and then restart.
12419
12420 _LT_EOF
12421         ;;
12422         *)
12423           # For security reasons, it is highly recommended that you always
12424           # use absolute paths for naming shared libraries, and exclude the
12425           # DT_RUNPATH tag from executables and libraries.  But doing so
12426           # requires that you compile everything twice, which is a pain.
12427           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12428             hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12429             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12430             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12431           else
12432             ld_shlibs=no
12433           fi
12434         ;;
12435       esac
12436       ;;
12437
12438     sunos4*)
12439       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12440       wlarc=
12441       hardcode_direct=yes
12442       hardcode_shlibpath_var=no
12443       ;;
12444
12445     *)
12446       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12447         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12448         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12449       else
12450         ld_shlibs=no
12451       fi
12452       ;;
12453     esac
12454
12455     if test no = "$ld_shlibs"; then
12456       runpath_var=
12457       hardcode_libdir_flag_spec=
12458       export_dynamic_flag_spec=
12459       whole_archive_flag_spec=
12460     fi
12461   else
12462     # PORTME fill in a description of your system's linker (not GNU ld)
12463     case $host_os in
12464     aix3*)
12465       allow_undefined_flag=unsupported
12466       always_export_symbols=yes
12467       archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
12468       # Note: this linker hardcodes the directories in LIBPATH if there
12469       # are no directories specified by -L.
12470       hardcode_minus_L=yes
12471       if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
12472         # Neither direct hardcoding nor static linking is supported with a
12473         # broken collect2.
12474         hardcode_direct=unsupported
12475       fi
12476       ;;
12477
12478     aix[4-9]*)
12479       if test ia64 = "$host_cpu"; then
12480         # On IA64, the linker does run time linking by default, so we don't
12481         # have to do anything special.
12482         aix_use_runtimelinking=no
12483         exp_sym_flag='-Bexport'
12484         no_entry_flag=
12485       else
12486         # If we're using GNU nm, then we don't want the "-C" option.
12487         # -C means demangle to GNU nm, but means don't demangle to AIX nm.
12488         # Without the "-l" option, or with the "-B" option, AIX nm treats
12489         # weak defined symbols like other global defined symbols, whereas
12490         # GNU nm marks them as "W".
12491         # While the 'weak' keyword is ignored in the Export File, we need
12492         # it in the Import File for the 'aix-soname' feature, so we have
12493         # to replace the "-B" option with "-P" for AIX nm.
12494         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
12495           export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
12496         else
12497           export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
12498         fi
12499         aix_use_runtimelinking=no
12500
12501         # Test if we are trying to use run time linking or normal
12502         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12503         # have runtime linking enabled, and use it for executables.
12504         # For shared libraries, we enable/disable runtime linking
12505         # depending on the kind of the shared library created -
12506         # when "with_aix_soname,aix_use_runtimelinking" is:
12507         # "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
12508         # "aix,yes"  lib.so          shared, rtl:yes, for executables
12509         #            lib.a           static archive
12510         # "both,no"  lib.so.V(shr.o) shared, rtl:yes
12511         #            lib.a(lib.so.V) shared, rtl:no,  for executables
12512         # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
12513         #            lib.a(lib.so.V) shared, rtl:no
12514         # "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
12515         #            lib.a           static archive
12516         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12517           for ld_flag in $LDFLAGS; do
12518           if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
12519             aix_use_runtimelinking=yes
12520             break
12521           fi
12522           done
12523           if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
12524             # With aix-soname=svr4, we create the lib.so.V shared archives only,
12525             # so we don't have lib.a shared libs to link our executables.
12526             # We have to force runtime linking in this case.
12527             aix_use_runtimelinking=yes
12528             LDFLAGS="$LDFLAGS -Wl,-brtl"
12529           fi
12530           ;;
12531         esac
12532
12533         exp_sym_flag='-bexport'
12534         no_entry_flag='-bnoentry'
12535       fi
12536
12537       # When large executables or shared objects are built, AIX ld can
12538       # have problems creating the table of contents.  If linking a library
12539       # or program results in "error TOC overflow" add -mminimal-toc to
12540       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
12541       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12542
12543       archive_cmds=''
12544       hardcode_direct=yes
12545       hardcode_direct_absolute=yes
12546       hardcode_libdir_separator=':'
12547       link_all_deplibs=yes
12548       file_list_spec='$wl-f,'
12549       case $with_aix_soname,$aix_use_runtimelinking in
12550       aix,*) ;; # traditional, no import file
12551       svr4,* | *,yes) # use import file
12552         # The Import File defines what to hardcode.
12553         hardcode_direct=no
12554         hardcode_direct_absolute=no
12555         ;;
12556       esac
12557
12558       if test yes = "$GCC"; then
12559         case $host_os in aix4.[012]|aix4.[012].*)
12560         # We only want to do this on AIX 4.2 and lower, the check
12561         # below for broken collect2 doesn't work under 4.3+
12562           collect2name=`$CC -print-prog-name=collect2`
12563           if test -f "$collect2name" &&
12564            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12565           then
12566           # We have reworked collect2
12567           :
12568           else
12569           # We have old collect2
12570           hardcode_direct=unsupported
12571           # It fails to find uninstalled libraries when the uninstalled
12572           # path is not listed in the libpath.  Setting hardcode_minus_L
12573           # to unsupported forces relinking
12574           hardcode_minus_L=yes
12575           hardcode_libdir_flag_spec='-L$libdir'
12576           hardcode_libdir_separator=
12577           fi
12578           ;;
12579         esac
12580         shared_flag='-shared'
12581         if test yes = "$aix_use_runtimelinking"; then
12582           shared_flag="$shared_flag "'$wl-G'
12583         fi
12584         # Need to ensure runtime linking is disabled for the traditional
12585         # shared library, or the linker may eventually find shared libraries
12586         # /with/ Import File - we do not want to mix them.
12587         shared_flag_aix='-shared'
12588         shared_flag_svr4='-shared $wl-G'
12589       else
12590         # not using gcc
12591         if test ia64 = "$host_cpu"; then
12592         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12593         # chokes on -Wl,-G. The following line is correct:
12594           shared_flag='-G'
12595         else
12596           if test yes = "$aix_use_runtimelinking"; then
12597             shared_flag='$wl-G'
12598           else
12599             shared_flag='$wl-bM:SRE'
12600           fi
12601           shared_flag_aix='$wl-bM:SRE'
12602           shared_flag_svr4='$wl-G'
12603         fi
12604       fi
12605
12606       export_dynamic_flag_spec='$wl-bexpall'
12607       # It seems that -bexpall does not export symbols beginning with
12608       # underscore (_), so it is better to generate a list of symbols to export.
12609       always_export_symbols=yes
12610       if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
12611         # Warning - without using the other runtime loading flags (-brtl),
12612         # -berok will link without error, but may produce a broken library.
12613         allow_undefined_flag='-berok'
12614         # Determine the default libpath from the value encoded in an
12615         # empty executable.
12616         if test set = "${lt_cv_aix_libpath+set}"; then
12617   aix_libpath=$lt_cv_aix_libpath
12618 else
12619   if ${lt_cv_aix_libpath_+:} false; then :
12620   $as_echo_n "(cached) " >&6
12621 else
12622   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12623 /* end confdefs.h.  */
12624
12625 int
12626 main ()
12627 {
12628
12629   ;
12630   return 0;
12631 }
12632 _ACEOF
12633 if ac_fn_c_try_link "$LINENO"; then :
12634
12635   lt_aix_libpath_sed='
12636       /Import File Strings/,/^$/ {
12637           /^0/ {
12638               s/^0  *\([^ ]*\) *$/\1/
12639               p
12640           }
12641       }'
12642   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12643   # Check for a 64-bit object if we didn't find anything.
12644   if test -z "$lt_cv_aix_libpath_"; then
12645     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12646   fi
12647 fi
12648 rm -f core conftest.err conftest.$ac_objext \
12649     conftest$ac_exeext conftest.$ac_ext
12650   if test -z "$lt_cv_aix_libpath_"; then
12651     lt_cv_aix_libpath_=/usr/lib:/lib
12652   fi
12653
12654 fi
12655
12656   aix_libpath=$lt_cv_aix_libpath_
12657 fi
12658
12659         hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
12660         archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
12661       else
12662         if test ia64 = "$host_cpu"; then
12663           hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
12664           allow_undefined_flag="-z nodefs"
12665           archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\$wl$no_entry_flag"' $compiler_flags $wl$allow_undefined_flag '"\$wl$exp_sym_flag:\$export_symbols"
12666         else
12667          # Determine the default libpath from the value encoded in an
12668          # empty executable.
12669          if test set = "${lt_cv_aix_libpath+set}"; then
12670   aix_libpath=$lt_cv_aix_libpath
12671 else
12672   if ${lt_cv_aix_libpath_+:} false; then :
12673   $as_echo_n "(cached) " >&6
12674 else
12675   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12676 /* end confdefs.h.  */
12677
12678 int
12679 main ()
12680 {
12681
12682   ;
12683   return 0;
12684 }
12685 _ACEOF
12686 if ac_fn_c_try_link "$LINENO"; then :
12687
12688   lt_aix_libpath_sed='
12689       /Import File Strings/,/^$/ {
12690           /^0/ {
12691               s/^0  *\([^ ]*\) *$/\1/
12692               p
12693           }
12694       }'
12695   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12696   # Check for a 64-bit object if we didn't find anything.
12697   if test -z "$lt_cv_aix_libpath_"; then
12698     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12699   fi
12700 fi
12701 rm -f core conftest.err conftest.$ac_objext \
12702     conftest$ac_exeext conftest.$ac_ext
12703   if test -z "$lt_cv_aix_libpath_"; then
12704     lt_cv_aix_libpath_=/usr/lib:/lib
12705   fi
12706
12707 fi
12708
12709   aix_libpath=$lt_cv_aix_libpath_
12710 fi
12711
12712          hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
12713           # Warning - without using the other run time loading flags,
12714           # -berok will link without error, but may produce a broken library.
12715           no_undefined_flag=' $wl-bernotok'
12716           allow_undefined_flag=' $wl-berok'
12717           if test yes = "$with_gnu_ld"; then
12718             # We only use this code for GNU lds that support --whole-archive.
12719             whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
12720           else
12721             # Exported symbols can be pulled into shared objects from archives
12722             whole_archive_flag_spec='$convenience'
12723           fi
12724           archive_cmds_need_lc=yes
12725           archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
12726           # -brtl affects multiple linker settings, -berok does not and is overridden later
12727           compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
12728           if test svr4 != "$with_aix_soname"; then
12729             # This is similar to how AIX traditionally builds its shared libraries.
12730             archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
12731           fi
12732           if test aix != "$with_aix_soname"; then
12733             archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
12734           else
12735             # used by -dlpreopen to get the symbols
12736             archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
12737           fi
12738           archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
12739         fi
12740       fi
12741       ;;
12742
12743     amigaos*)
12744       case $host_cpu in
12745       powerpc)
12746             # see comment about AmigaOS4 .so support
12747             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12748             archive_expsym_cmds=''
12749         ;;
12750       m68k)
12751             archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
12752             hardcode_libdir_flag_spec='-L$libdir'
12753             hardcode_minus_L=yes
12754         ;;
12755       esac
12756       ;;
12757
12758     bsdi[45]*)
12759       export_dynamic_flag_spec=-rdynamic
12760       ;;
12761
12762     cygwin* | mingw* | pw32* | cegcc*)
12763       # When not using gcc, we currently assume that we are using
12764       # Microsoft Visual C++.
12765       # hardcode_libdir_flag_spec is actually meaningless, as there is
12766       # no search path for DLLs.
12767       case $cc_basename in
12768       cl*)
12769         # Native MSVC
12770         hardcode_libdir_flag_spec=' '
12771         allow_undefined_flag=unsupported
12772         always_export_symbols=yes
12773         file_list_spec='@'
12774         # Tell ltmain to make .lib files, not .a files.
12775         libext=lib
12776         # Tell ltmain to make .dll files, not .so files.
12777         shrext_cmds=.dll
12778         # FIXME: Setting linknames here is a bad hack.
12779         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
12780         archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[   ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([     ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
12781             cp "$export_symbols" "$output_objdir/$soname.def";
12782             echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
12783           else
12784             $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
12785           fi~
12786           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
12787           linknames='
12788         # The linker will not automatically build a static lib if we build a DLL.
12789         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
12790         enable_shared_with_static_runtimes=yes
12791         exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
12792         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
12793         # Don't use ranlib
12794         old_postinstall_cmds='chmod 644 $oldlib'
12795         postlink_cmds='lt_outputfile="@OUTPUT@"~
12796           lt_tool_outputfile="@TOOL_OUTPUT@"~
12797           case $lt_outputfile in
12798             *.exe|*.EXE) ;;
12799             *)
12800               lt_outputfile=$lt_outputfile.exe
12801               lt_tool_outputfile=$lt_tool_outputfile.exe
12802               ;;
12803           esac~
12804           if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
12805             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
12806             $RM "$lt_outputfile.manifest";
12807           fi'
12808         ;;
12809       *)
12810         # Assume MSVC wrapper
12811         hardcode_libdir_flag_spec=' '
12812         allow_undefined_flag=unsupported
12813         # Tell ltmain to make .lib files, not .a files.
12814         libext=lib
12815         # Tell ltmain to make .dll files, not .so files.
12816         shrext_cmds=.dll
12817         # FIXME: Setting linknames here is a bad hack.
12818         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
12819         # The linker will automatically build a .lib file if we build a DLL.
12820         old_archive_from_new_cmds='true'
12821         # FIXME: Should let the user specify the lib program.
12822         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
12823         enable_shared_with_static_runtimes=yes
12824         ;;
12825       esac
12826       ;;
12827
12828     darwin* | rhapsody*)
12829
12830
12831   archive_cmds_need_lc=no
12832   hardcode_direct=no
12833   hardcode_automatic=yes
12834   hardcode_shlibpath_var=unsupported
12835   if test yes = "$lt_cv_ld_force_load"; then
12836     whole_archive_flag_spec='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
12837
12838   else
12839     whole_archive_flag_spec=''
12840   fi
12841   link_all_deplibs=yes
12842   allow_undefined_flag=$_lt_dar_allow_undefined
12843   case $cc_basename in
12844      ifort*|nagfor*) _lt_dar_can_shared=yes ;;
12845      *) _lt_dar_can_shared=$GCC ;;
12846   esac
12847   if test yes = "$_lt_dar_can_shared"; then
12848     output_verbose_link_cmd=func_echo_all
12849     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
12850     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
12851     archive_expsym_cmds="sed 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dar_export_syms$_lt_dsymutil"
12852     module_expsym_cmds="sed -e 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dar_export_syms$_lt_dsymutil"
12853
12854   else
12855   ld_shlibs=no
12856   fi
12857
12858       ;;
12859
12860     dgux*)
12861       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12862       hardcode_libdir_flag_spec='-L$libdir'
12863       hardcode_shlibpath_var=no
12864       ;;
12865
12866     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12867     # support.  Future versions do this automatically, but an explicit c++rt0.o
12868     # does not break anything, and helps significantly (at the cost of a little
12869     # extra space).
12870     freebsd2.2*)
12871       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
12872       hardcode_libdir_flag_spec='-R$libdir'
12873       hardcode_direct=yes
12874       hardcode_shlibpath_var=no
12875       ;;
12876
12877     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
12878     freebsd2.*)
12879       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12880       hardcode_direct=yes
12881       hardcode_minus_L=yes
12882       hardcode_shlibpath_var=no
12883       ;;
12884
12885     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
12886     freebsd* | dragonfly*)
12887       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12888       hardcode_libdir_flag_spec='-R$libdir'
12889       hardcode_direct=yes
12890       hardcode_shlibpath_var=no
12891       ;;
12892
12893     hpux9*)
12894       if test yes = "$GCC"; then
12895         archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
12896       else
12897         archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
12898       fi
12899       hardcode_libdir_flag_spec='$wl+b $wl$libdir'
12900       hardcode_libdir_separator=:
12901       hardcode_direct=yes
12902
12903       # hardcode_minus_L: Not really in the search PATH,
12904       # but as the default location of the library.
12905       hardcode_minus_L=yes
12906       export_dynamic_flag_spec='$wl-E'
12907       ;;
12908
12909     hpux10*)
12910       if test yes,no = "$GCC,$with_gnu_ld"; then
12911         archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12912       else
12913         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12914       fi
12915       if test no = "$with_gnu_ld"; then
12916         hardcode_libdir_flag_spec='$wl+b $wl$libdir'
12917         hardcode_libdir_separator=:
12918         hardcode_direct=yes
12919         hardcode_direct_absolute=yes
12920         export_dynamic_flag_spec='$wl-E'
12921         # hardcode_minus_L: Not really in the search PATH,
12922         # but as the default location of the library.
12923         hardcode_minus_L=yes
12924       fi
12925       ;;
12926
12927     hpux11*)
12928       if test yes,no = "$GCC,$with_gnu_ld"; then
12929         case $host_cpu in
12930         hppa*64*)
12931           archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
12932           ;;
12933         ia64*)
12934           archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12935           ;;
12936         *)
12937           archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12938           ;;
12939         esac
12940       else
12941         case $host_cpu in
12942         hppa*64*)
12943           archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
12944           ;;
12945         ia64*)
12946           archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12947           ;;
12948         *)
12949
12950           # Older versions of the 11.00 compiler do not understand -b yet
12951           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
12952           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
12953 $as_echo_n "checking if $CC understands -b... " >&6; }
12954 if ${lt_cv_prog_compiler__b+:} false; then :
12955   $as_echo_n "(cached) " >&6
12956 else
12957   lt_cv_prog_compiler__b=no
12958    save_LDFLAGS=$LDFLAGS
12959    LDFLAGS="$LDFLAGS -b"
12960    echo "$lt_simple_link_test_code" > conftest.$ac_ext
12961    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12962      # The linker can only warn and ignore the option if not recognized
12963      # So say no if there are warnings
12964      if test -s conftest.err; then
12965        # Append any errors to the config.log.
12966        cat conftest.err 1>&5
12967        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
12968        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12969        if diff conftest.exp conftest.er2 >/dev/null; then
12970          lt_cv_prog_compiler__b=yes
12971        fi
12972      else
12973        lt_cv_prog_compiler__b=yes
12974      fi
12975    fi
12976    $RM -r conftest*
12977    LDFLAGS=$save_LDFLAGS
12978
12979 fi
12980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
12981 $as_echo "$lt_cv_prog_compiler__b" >&6; }
12982
12983 if test yes = "$lt_cv_prog_compiler__b"; then
12984     archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12985 else
12986     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12987 fi
12988
12989           ;;
12990         esac
12991       fi
12992       if test no = "$with_gnu_ld"; then
12993         hardcode_libdir_flag_spec='$wl+b $wl$libdir'
12994         hardcode_libdir_separator=:
12995
12996         case $host_cpu in
12997         hppa*64*|ia64*)
12998           hardcode_direct=no
12999           hardcode_shlibpath_var=no
13000           ;;
13001         *)
13002           hardcode_direct=yes
13003           hardcode_direct_absolute=yes
13004           export_dynamic_flag_spec='$wl-E'
13005
13006           # hardcode_minus_L: Not really in the search PATH,
13007           # but as the default location of the library.
13008           hardcode_minus_L=yes
13009           ;;
13010         esac
13011       fi
13012       ;;
13013
13014     irix5* | irix6* | nonstopux*)
13015       if test yes = "$GCC"; then
13016         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
13017         # Try to use the -exported_symbol ld option, if it does not
13018         # work, assume that -exports_file does not work either and
13019         # implicitly export all symbols.
13020         # This should be the same for all languages, so no per-tag cache variable.
13021         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
13022 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
13023 if ${lt_cv_irix_exported_symbol+:} false; then :
13024   $as_echo_n "(cached) " >&6
13025 else
13026   save_LDFLAGS=$LDFLAGS
13027            LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
13028            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13029 /* end confdefs.h.  */
13030 int foo (void) { return 0; }
13031 _ACEOF
13032 if ac_fn_c_try_link "$LINENO"; then :
13033   lt_cv_irix_exported_symbol=yes
13034 else
13035   lt_cv_irix_exported_symbol=no
13036 fi
13037 rm -f core conftest.err conftest.$ac_objext \
13038     conftest$ac_exeext conftest.$ac_ext
13039            LDFLAGS=$save_LDFLAGS
13040 fi
13041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
13042 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
13043         if test yes = "$lt_cv_irix_exported_symbol"; then
13044           archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations $wl-exports_file $wl$export_symbols -o $lib'
13045         fi
13046       else
13047         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
13048         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -exports_file $export_symbols -o $lib'
13049       fi
13050       archive_cmds_need_lc='no'
13051       hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13052       hardcode_libdir_separator=:
13053       inherit_rpath=yes
13054       link_all_deplibs=yes
13055       ;;
13056
13057     linux*)
13058       case $cc_basename in
13059       tcc*)
13060         # Fabrice Bellard et al's Tiny C Compiler
13061         ld_shlibs=yes
13062         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13063         ;;
13064       esac
13065       ;;
13066
13067     netbsd*)
13068       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13069         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
13070       else
13071         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
13072       fi
13073       hardcode_libdir_flag_spec='-R$libdir'
13074       hardcode_direct=yes
13075       hardcode_shlibpath_var=no
13076       ;;
13077
13078     newsos6)
13079       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13080       hardcode_direct=yes
13081       hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13082       hardcode_libdir_separator=:
13083       hardcode_shlibpath_var=no
13084       ;;
13085
13086     *nto* | *qnx*)
13087       ;;
13088
13089     openbsd* | bitrig*)
13090       if test -f /usr/libexec/ld.so; then
13091         hardcode_direct=yes
13092         hardcode_shlibpath_var=no
13093         hardcode_direct_absolute=yes
13094         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
13095           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13096           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
13097           hardcode_libdir_flag_spec='$wl-rpath,$libdir'
13098           export_dynamic_flag_spec='$wl-E'
13099         else
13100           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13101           hardcode_libdir_flag_spec='$wl-rpath,$libdir'
13102         fi
13103       else
13104         ld_shlibs=no
13105       fi
13106       ;;
13107
13108     os2*)
13109       hardcode_libdir_flag_spec='-L$libdir'
13110       hardcode_minus_L=yes
13111       allow_undefined_flag=unsupported
13112       shrext_cmds=.dll
13113       archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
13114         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
13115         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
13116         $ECHO EXPORTS >> $output_objdir/$libname.def~
13117         emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
13118         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
13119         emximp -o $lib $output_objdir/$libname.def'
13120       archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
13121         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
13122         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
13123         $ECHO EXPORTS >> $output_objdir/$libname.def~
13124         prefix_cmds="$SED"~
13125         if test EXPORTS = "`$SED 1q $export_symbols`"; then
13126           prefix_cmds="$prefix_cmds -e 1d";
13127         fi~
13128         prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
13129         cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
13130         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
13131         emximp -o $lib $output_objdir/$libname.def'
13132       old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
13133       enable_shared_with_static_runtimes=yes
13134       ;;
13135
13136     osf3*)
13137       if test yes = "$GCC"; then
13138         allow_undefined_flag=' $wl-expect_unresolved $wl\*'
13139         archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
13140       else
13141         allow_undefined_flag=' -expect_unresolved \*'
13142         archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
13143       fi
13144       archive_cmds_need_lc='no'
13145       hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13146       hardcode_libdir_separator=:
13147       ;;
13148
13149     osf4* | osf5*)      # as osf3* with the addition of -msym flag
13150       if test yes = "$GCC"; then
13151         allow_undefined_flag=' $wl-expect_unresolved $wl\*'
13152         archive_cmds='$CC -shared$allow_undefined_flag $pic_flag $libobjs $deplibs $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
13153         hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13154       else
13155         allow_undefined_flag=' -expect_unresolved \*'
13156         archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
13157         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
13158           $CC -shared$allow_undefined_flag $wl-input $wl$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~$RM $lib.exp'
13159
13160         # Both c and cxx compiler support -rpath directly
13161         hardcode_libdir_flag_spec='-rpath $libdir'
13162       fi
13163       archive_cmds_need_lc='no'
13164       hardcode_libdir_separator=:
13165       ;;
13166
13167     solaris*)
13168       no_undefined_flag=' -z defs'
13169       if test yes = "$GCC"; then
13170         wlarc='$wl'
13171         archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
13172         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13173           $CC -shared $pic_flag $wl-z ${wl}text $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13174       else
13175         case `$CC -V 2>&1` in
13176         *"Compilers 5.0"*)
13177           wlarc=''
13178           archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
13179           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13180             $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
13181           ;;
13182         *)
13183           wlarc='$wl'
13184           archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
13185           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13186             $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13187           ;;
13188         esac
13189       fi
13190       hardcode_libdir_flag_spec='-R$libdir'
13191       hardcode_shlibpath_var=no
13192       case $host_os in
13193       solaris2.[0-5] | solaris2.[0-5].*) ;;
13194       *)
13195         # The compiler driver will combine and reorder linker options,
13196         # but understands '-z linker_flag'.  GCC discards it without '$wl',
13197         # but is careful enough not to reorder.
13198         # Supported since Solaris 2.6 (maybe 2.5.1?)
13199         if test yes = "$GCC"; then
13200           whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
13201         else
13202           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
13203         fi
13204         ;;
13205       esac
13206       link_all_deplibs=yes
13207       ;;
13208
13209     sunos4*)
13210       if test sequent = "$host_vendor"; then
13211         # Use $CC to link under sequent, because it throws in some extra .o
13212         # files that make .init and .fini sections work.
13213         archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13214       else
13215         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13216       fi
13217       hardcode_libdir_flag_spec='-L$libdir'
13218       hardcode_direct=yes
13219       hardcode_minus_L=yes
13220       hardcode_shlibpath_var=no
13221       ;;
13222
13223     sysv4)
13224       case $host_vendor in
13225         sni)
13226           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13227           hardcode_direct=yes # is this really true???
13228         ;;
13229         siemens)
13230           ## LD is ld it makes a PLAMLIB
13231           ## CC just makes a GrossModule.
13232           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13233           reload_cmds='$CC -r -o $output$reload_objs'
13234           hardcode_direct=no
13235         ;;
13236         motorola)
13237           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13238           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
13239         ;;
13240       esac
13241       runpath_var='LD_RUN_PATH'
13242       hardcode_shlibpath_var=no
13243       ;;
13244
13245     sysv4.3*)
13246       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13247       hardcode_shlibpath_var=no
13248       export_dynamic_flag_spec='-Bexport'
13249       ;;
13250
13251     sysv4*MP*)
13252       if test -d /usr/nec; then
13253         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13254         hardcode_shlibpath_var=no
13255         runpath_var=LD_RUN_PATH
13256         hardcode_runpath_var=yes
13257         ld_shlibs=yes
13258       fi
13259       ;;
13260
13261     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13262       no_undefined_flag='$wl-z,text'
13263       archive_cmds_need_lc=no
13264       hardcode_shlibpath_var=no
13265       runpath_var='LD_RUN_PATH'
13266
13267       if test yes = "$GCC"; then
13268         archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13269         archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13270       else
13271         archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13272         archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13273       fi
13274       ;;
13275
13276     sysv5* | sco3.2v5* | sco5v6*)
13277       # Note: We CANNOT use -z defs as we might desire, because we do not
13278       # link with -lc, and that would cause any symbols used from libc to
13279       # always be unresolved, which means just about no library would
13280       # ever link correctly.  If we're not using GNU ld we use -z text
13281       # though, which does catch some bad symbols but isn't as heavy-handed
13282       # as -z defs.
13283       no_undefined_flag='$wl-z,text'
13284       allow_undefined_flag='$wl-z,nodefs'
13285       archive_cmds_need_lc=no
13286       hardcode_shlibpath_var=no
13287       hardcode_libdir_flag_spec='$wl-R,$libdir'
13288       hardcode_libdir_separator=':'
13289       link_all_deplibs=yes
13290       export_dynamic_flag_spec='$wl-Bexport'
13291       runpath_var='LD_RUN_PATH'
13292
13293       if test yes = "$GCC"; then
13294         archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13295         archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13296       else
13297         archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13298         archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13299       fi
13300       ;;
13301
13302     uts4*)
13303       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13304       hardcode_libdir_flag_spec='-L$libdir'
13305       hardcode_shlibpath_var=no
13306       ;;
13307
13308     *)
13309       ld_shlibs=no
13310       ;;
13311     esac
13312
13313     if test sni = "$host_vendor"; then
13314       case $host in
13315       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13316         export_dynamic_flag_spec='$wl-Blargedynsym'
13317         ;;
13318       esac
13319     fi
13320   fi
13321
13322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
13323 $as_echo "$ld_shlibs" >&6; }
13324 test no = "$ld_shlibs" && can_build_shared=no
13325
13326 with_gnu_ld=$with_gnu_ld
13327
13328
13329
13330
13331
13332
13333
13334
13335
13336
13337
13338
13339
13340
13341
13342 #
13343 # Do we need to explicitly link libc?
13344 #
13345 case "x$archive_cmds_need_lc" in
13346 x|xyes)
13347   # Assume -lc should be added
13348   archive_cmds_need_lc=yes
13349
13350   if test yes,yes = "$GCC,$enable_shared"; then
13351     case $archive_cmds in
13352     *'~'*)
13353       # FIXME: we may have to deal with multi-command sequences.
13354       ;;
13355     '$CC '*)
13356       # Test whether the compiler implicitly links with -lc since on some
13357       # systems, -lgcc has to come before -lc. If gcc already passes -lc
13358       # to ld, don't add -lc before -lgcc.
13359       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13360 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13361 if ${lt_cv_archive_cmds_need_lc+:} false; then :
13362   $as_echo_n "(cached) " >&6
13363 else
13364   $RM conftest*
13365         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13366
13367         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13368   (eval $ac_compile) 2>&5
13369   ac_status=$?
13370   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13371   test $ac_status = 0; } 2>conftest.err; then
13372           soname=conftest
13373           lib=conftest
13374           libobjs=conftest.$ac_objext
13375           deplibs=
13376           wl=$lt_prog_compiler_wl
13377           pic_flag=$lt_prog_compiler_pic
13378           compiler_flags=-v
13379           linker_flags=-v
13380           verstring=
13381           output_objdir=.
13382           libname=conftest
13383           lt_save_allow_undefined_flag=$allow_undefined_flag
13384           allow_undefined_flag=
13385           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13386   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13387   ac_status=$?
13388   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13389   test $ac_status = 0; }
13390           then
13391             lt_cv_archive_cmds_need_lc=no
13392           else
13393             lt_cv_archive_cmds_need_lc=yes
13394           fi
13395           allow_undefined_flag=$lt_save_allow_undefined_flag
13396         else
13397           cat conftest.err 1>&5
13398         fi
13399         $RM conftest*
13400
13401 fi
13402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
13403 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
13404       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
13405       ;;
13406     esac
13407   fi
13408   ;;
13409 esac
13410
13411
13412
13413
13414
13415
13416
13417
13418
13419
13420
13421
13422
13423
13424
13425
13426
13427
13428
13429
13430
13431
13432
13433
13434
13435
13436
13437
13438
13439
13440
13441
13442
13443
13444
13445
13446
13447
13448
13449
13450
13451
13452
13453
13454
13455
13456
13457
13458
13459
13460
13461
13462
13463
13464
13465
13466
13467
13468
13469
13470
13471
13472
13473
13474
13475
13476
13477
13478
13479
13480
13481
13482
13483
13484
13485
13486
13487
13488
13489
13490
13491
13492
13493
13494
13495
13496
13497
13498
13499
13500
13501
13502
13503
13504
13505
13506
13507
13508
13509
13510
13511
13512
13513
13514
13515
13516
13517
13518
13519
13520
13521
13522
13523
13524
13525
13526
13527
13528
13529
13530
13531
13532
13533
13534
13535
13536
13537
13538
13539
13540
13541
13542
13543
13544
13545
13546
13547
13548
13549
13550
13551
13552
13553
13554
13555
13556
13557
13558
13559
13560
13561
13562   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
13563 $as_echo_n "checking dynamic linker characteristics... " >&6; }
13564
13565 if test yes = "$GCC"; then
13566   case $host_os in
13567     darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
13568     *) lt_awk_arg='/^libraries:/' ;;
13569   esac
13570   case $host_os in
13571     mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
13572     *) lt_sed_strip_eq='s|=/|/|g' ;;
13573   esac
13574   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
13575   case $lt_search_path_spec in
13576   *\;*)
13577     # if the path contains ";" then we assume it to be the separator
13578     # otherwise default to the standard path separator (i.e. ":") - it is
13579     # assumed that no part of a normal pathname contains ";" but that should
13580     # okay in the real world where ";" in dirpaths is itself problematic.
13581     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
13582     ;;
13583   *)
13584     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
13585     ;;
13586   esac
13587   # Ok, now we have the path, separated by spaces, we can step through it
13588   # and add multilib dir if necessary...
13589   lt_tmp_lt_search_path_spec=
13590   lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
13591   # ...but if some path component already ends with the multilib dir we assume
13592   # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
13593   case "$lt_multi_os_dir; $lt_search_path_spec " in
13594   "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
13595     lt_multi_os_dir=
13596     ;;
13597   esac
13598   for lt_sys_path in $lt_search_path_spec; do
13599     if test -d "$lt_sys_path$lt_multi_os_dir"; then
13600       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
13601     elif test -n "$lt_multi_os_dir"; then
13602       test -d "$lt_sys_path" && \
13603         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
13604     fi
13605   done
13606   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
13607 BEGIN {RS = " "; FS = "/|\n";} {
13608   lt_foo = "";
13609   lt_count = 0;
13610   for (lt_i = NF; lt_i > 0; lt_i--) {
13611     if ($lt_i != "" && $lt_i != ".") {
13612       if ($lt_i == "..") {
13613         lt_count++;
13614       } else {
13615         if (lt_count == 0) {
13616           lt_foo = "/" $lt_i lt_foo;
13617         } else {
13618           lt_count--;
13619         }
13620       }
13621     }
13622   }
13623   if (lt_foo != "") { lt_freq[lt_foo]++; }
13624   if (lt_freq[lt_foo] == 1) { print lt_foo; }
13625 }'`
13626   # AWK program above erroneously prepends '/' to C:/dos/paths
13627   # for these hosts.
13628   case $host_os in
13629     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
13630       $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
13631   esac
13632   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
13633 else
13634   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13635 fi
13636 library_names_spec=
13637 libname_spec='lib$name'
13638 soname_spec=
13639 shrext_cmds=.so
13640 postinstall_cmds=
13641 postuninstall_cmds=
13642 finish_cmds=
13643 finish_eval=
13644 shlibpath_var=
13645 shlibpath_overrides_runpath=unknown
13646 version_type=none
13647 dynamic_linker="$host_os ld.so"
13648 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13649 need_lib_prefix=unknown
13650 hardcode_into_libs=no
13651
13652 # when you set need_version to no, make sure it does not cause -set_version
13653 # flags to be left without arguments
13654 need_version=unknown
13655
13656
13657
13658 case $host_os in
13659 aix3*)
13660   version_type=linux # correct to gnu/linux during the next big refactor
13661   library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
13662   shlibpath_var=LIBPATH
13663
13664   # AIX 3 has no versioning support, so we append a major version to the name.
13665   soname_spec='$libname$release$shared_ext$major'
13666   ;;
13667
13668 aix[4-9]*)
13669   version_type=linux # correct to gnu/linux during the next big refactor
13670   need_lib_prefix=no
13671   need_version=no
13672   hardcode_into_libs=yes
13673   if test ia64 = "$host_cpu"; then
13674     # AIX 5 supports IA64
13675     library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
13676     shlibpath_var=LD_LIBRARY_PATH
13677   else
13678     # With GCC up to 2.95.x, collect2 would create an import file
13679     # for dependence libraries.  The import file would start with
13680     # the line '#! .'.  This would cause the generated library to
13681     # depend on '.', always an invalid library.  This was fixed in
13682     # development snapshots of GCC prior to 3.0.
13683     case $host_os in
13684       aix4 | aix4.[01] | aix4.[01].*)
13685       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13686            echo ' yes '
13687            echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
13688         :
13689       else
13690         can_build_shared=no
13691       fi
13692       ;;
13693     esac
13694     # Using Import Files as archive members, it is possible to support
13695     # filename-based versioning of shared library archives on AIX. While
13696     # this would work for both with and without runtime linking, it will
13697     # prevent static linking of such archives. So we do filename-based
13698     # shared library versioning with .so extension only, which is used
13699     # when both runtime linking and shared linking is enabled.
13700     # Unfortunately, runtime linking may impact performance, so we do
13701     # not want this to be the default eventually. Also, we use the
13702     # versioned .so libs for executables only if there is the -brtl
13703     # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
13704     # To allow for filename-based versioning support, we need to create
13705     # libNAME.so.V as an archive file, containing:
13706     # *) an Import File, referring to the versioned filename of the
13707     #    archive as well as the shared archive member, telling the
13708     #    bitwidth (32 or 64) of that shared object, and providing the
13709     #    list of exported symbols of that shared object, eventually
13710     #    decorated with the 'weak' keyword
13711     # *) the shared object with the F_LOADONLY flag set, to really avoid
13712     #    it being seen by the linker.
13713     # At run time we better use the real file rather than another symlink,
13714     # but for link time we create the symlink libNAME.so -> libNAME.so.V
13715
13716     case $with_aix_soname,$aix_use_runtimelinking in
13717     # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
13718     # soname into executable. Probably we can add versioning support to
13719     # collect2, so additional links can be useful in future.
13720     aix,yes) # traditional libtool
13721       dynamic_linker='AIX unversionable lib.so'
13722       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13723       # instead of lib<name>.a to let people know that these are not
13724       # typical AIX shared libraries.
13725       library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13726       ;;
13727     aix,no) # traditional AIX only
13728       dynamic_linker='AIX lib.a(lib.so.V)'
13729       # We preserve .a as extension for shared libraries through AIX4.2
13730       # and later when we are not doing run time linking.
13731       library_names_spec='$libname$release.a $libname.a'
13732       soname_spec='$libname$release$shared_ext$major'
13733       ;;
13734     svr4,*) # full svr4 only
13735       dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
13736       library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
13737       # We do not specify a path in Import Files, so LIBPATH fires.
13738       shlibpath_overrides_runpath=yes
13739       ;;
13740     *,yes) # both, prefer svr4
13741       dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
13742       library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
13743       # unpreferred sharedlib libNAME.a needs extra handling
13744       postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
13745       postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
13746       # We do not specify a path in Import Files, so LIBPATH fires.
13747       shlibpath_overrides_runpath=yes
13748       ;;
13749     *,no) # both, prefer aix
13750       dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
13751       library_names_spec='$libname$release.a $libname.a'
13752       soname_spec='$libname$release$shared_ext$major'
13753       # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
13754       postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
13755       postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
13756       ;;
13757     esac
13758     shlibpath_var=LIBPATH
13759   fi
13760   ;;
13761
13762 amigaos*)
13763   case $host_cpu in
13764   powerpc)
13765     # Since July 2007 AmigaOS4 officially supports .so libraries.
13766     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
13767     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13768     ;;
13769   m68k)
13770     library_names_spec='$libname.ixlibrary $libname.a'
13771     # Create ${libname}_ixlibrary.a entries in /sys/libs.
13772     finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
13773     ;;
13774   esac
13775   ;;
13776
13777 beos*)
13778   library_names_spec='$libname$shared_ext'
13779   dynamic_linker="$host_os ld.so"
13780   shlibpath_var=LIBRARY_PATH
13781   ;;
13782
13783 bsdi[45]*)
13784   version_type=linux # correct to gnu/linux during the next big refactor
13785   need_version=no
13786   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13787   soname_spec='$libname$release$shared_ext$major'
13788   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13789   shlibpath_var=LD_LIBRARY_PATH
13790   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13791   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13792   # the default ld.so.conf also contains /usr/contrib/lib and
13793   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13794   # libtool to hard-code these into programs
13795   ;;
13796
13797 cygwin* | mingw* | pw32* | cegcc*)
13798   version_type=windows
13799   shrext_cmds=.dll
13800   need_version=no
13801   need_lib_prefix=no
13802
13803   case $GCC,$cc_basename in
13804   yes,*)
13805     # gcc
13806     library_names_spec='$libname.dll.a'
13807     # DLL is installed to $(libdir)/../bin by postinstall_cmds
13808     postinstall_cmds='base_file=`basename \$file`~
13809       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
13810       dldir=$destdir/`dirname \$dlpath`~
13811       test -d \$dldir || mkdir -p \$dldir~
13812       $install_prog $dir/$dlname \$dldir/$dlname~
13813       chmod a+x \$dldir/$dlname~
13814       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13815         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13816       fi'
13817     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13818       dlpath=$dir/\$dldll~
13819        $RM \$dlpath'
13820     shlibpath_overrides_runpath=yes
13821
13822     case $host_os in
13823     cygwin*)
13824       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13825       soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13826
13827       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
13828       ;;
13829     mingw* | cegcc*)
13830       # MinGW DLLs use traditional 'lib' prefix
13831       soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13832       ;;
13833     pw32*)
13834       # pw32 DLLs use 'pw' prefix rather than 'lib'
13835       library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13836       ;;
13837     esac
13838     dynamic_linker='Win32 ld.exe'
13839     ;;
13840
13841   *,cl*)
13842     # Native MSVC
13843     libname_spec='$name'
13844     soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13845     library_names_spec='$libname.dll.lib'
13846
13847     case $build_os in
13848     mingw*)
13849       sys_lib_search_path_spec=
13850       lt_save_ifs=$IFS
13851       IFS=';'
13852       for lt_path in $LIB
13853       do
13854         IFS=$lt_save_ifs
13855         # Let DOS variable expansion print the short 8.3 style file name.
13856         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
13857         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
13858       done
13859       IFS=$lt_save_ifs
13860       # Convert to MSYS style.
13861       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
13862       ;;
13863     cygwin*)
13864       # Convert to unix form, then to dos form, then back to unix form
13865       # but this time dos style (no spaces!) so that the unix form looks
13866       # like /cygdrive/c/PROGRA~1:/cygdr...
13867       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
13868       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
13869       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13870       ;;
13871     *)
13872       sys_lib_search_path_spec=$LIB
13873       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
13874         # It is most probably a Windows format PATH.
13875         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13876       else
13877         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13878       fi
13879       # FIXME: find the short name or the path components, as spaces are
13880       # common. (e.g. "Program Files" -> "PROGRA~1")
13881       ;;
13882     esac
13883
13884     # DLL is installed to $(libdir)/../bin by postinstall_cmds
13885     postinstall_cmds='base_file=`basename \$file`~
13886       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
13887       dldir=$destdir/`dirname \$dlpath`~
13888       test -d \$dldir || mkdir -p \$dldir~
13889       $install_prog $dir/$dlname \$dldir/$dlname'
13890     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13891       dlpath=$dir/\$dldll~
13892        $RM \$dlpath'
13893     shlibpath_overrides_runpath=yes
13894     dynamic_linker='Win32 link.exe'
13895     ;;
13896
13897   *)
13898     # Assume MSVC wrapper
13899     library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
13900     dynamic_linker='Win32 ld.exe'
13901     ;;
13902   esac
13903   # FIXME: first we should search . and the directory the executable is in
13904   shlibpath_var=PATH
13905   ;;
13906
13907 darwin* | rhapsody*)
13908   dynamic_linker="$host_os dyld"
13909   version_type=darwin
13910   need_lib_prefix=no
13911   need_version=no
13912   library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
13913   soname_spec='$libname$release$major$shared_ext'
13914   shlibpath_overrides_runpath=yes
13915   shlibpath_var=DYLD_LIBRARY_PATH
13916   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13917
13918   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
13919   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13920   ;;
13921
13922 dgux*)
13923   version_type=linux # correct to gnu/linux during the next big refactor
13924   need_lib_prefix=no
13925   need_version=no
13926   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13927   soname_spec='$libname$release$shared_ext$major'
13928   shlibpath_var=LD_LIBRARY_PATH
13929   ;;
13930
13931 freebsd* | dragonfly*)
13932   # DragonFly does not have aout.  When/if they implement a new
13933   # versioning mechanism, adjust this.
13934   if test -x /usr/bin/objformat; then
13935     objformat=`/usr/bin/objformat`
13936   else
13937     case $host_os in
13938     freebsd[23].*) objformat=aout ;;
13939     *) objformat=elf ;;
13940     esac
13941   fi
13942   version_type=freebsd-$objformat
13943   case $version_type in
13944     freebsd-elf*)
13945       library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13946       soname_spec='$libname$release$shared_ext$major'
13947       need_version=no
13948       need_lib_prefix=no
13949       ;;
13950     freebsd-*)
13951       library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13952       need_version=yes
13953       ;;
13954   esac
13955   shlibpath_var=LD_LIBRARY_PATH
13956   case $host_os in
13957   freebsd2.*)
13958     shlibpath_overrides_runpath=yes
13959     ;;
13960   freebsd3.[01]* | freebsdelf3.[01]*)
13961     shlibpath_overrides_runpath=yes
13962     hardcode_into_libs=yes
13963     ;;
13964   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13965   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13966     shlibpath_overrides_runpath=no
13967     hardcode_into_libs=yes
13968     ;;
13969   *) # from 4.6 on, and DragonFly
13970     shlibpath_overrides_runpath=yes
13971     hardcode_into_libs=yes
13972     ;;
13973   esac
13974   ;;
13975
13976 haiku*)
13977   version_type=linux # correct to gnu/linux during the next big refactor
13978   need_lib_prefix=no
13979   need_version=no
13980   dynamic_linker="$host_os runtime_loader"
13981   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13982   soname_spec='$libname$release$shared_ext$major'
13983   shlibpath_var=LIBRARY_PATH
13984   shlibpath_overrides_runpath=no
13985   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
13986   hardcode_into_libs=yes
13987   ;;
13988
13989 hpux9* | hpux10* | hpux11*)
13990   # Give a soname corresponding to the major version so that dld.sl refuses to
13991   # link against other versions.
13992   version_type=sunos
13993   need_lib_prefix=no
13994   need_version=no
13995   case $host_cpu in
13996   ia64*)
13997     shrext_cmds='.so'
13998     hardcode_into_libs=yes
13999     dynamic_linker="$host_os dld.so"
14000     shlibpath_var=LD_LIBRARY_PATH
14001     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14002     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14003     soname_spec='$libname$release$shared_ext$major'
14004     if test 32 = "$HPUX_IA64_MODE"; then
14005       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14006       sys_lib_dlsearch_path_spec=/usr/lib/hpux32
14007     else
14008       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14009       sys_lib_dlsearch_path_spec=/usr/lib/hpux64
14010     fi
14011     ;;
14012   hppa*64*)
14013     shrext_cmds='.sl'
14014     hardcode_into_libs=yes
14015     dynamic_linker="$host_os dld.sl"
14016     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14017     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14018     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14019     soname_spec='$libname$release$shared_ext$major'
14020     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14021     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14022     ;;
14023   *)
14024     shrext_cmds='.sl'
14025     dynamic_linker="$host_os dld.sl"
14026     shlibpath_var=SHLIB_PATH
14027     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14028     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14029     soname_spec='$libname$release$shared_ext$major'
14030     ;;
14031   esac
14032   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14033   postinstall_cmds='chmod 555 $lib'
14034   # or fails outright, so override atomically:
14035   install_override_mode=555
14036   ;;
14037
14038 interix[3-9]*)
14039   version_type=linux # correct to gnu/linux during the next big refactor
14040   need_lib_prefix=no
14041   need_version=no
14042   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14043   soname_spec='$libname$release$shared_ext$major'
14044   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14045   shlibpath_var=LD_LIBRARY_PATH
14046   shlibpath_overrides_runpath=no
14047   hardcode_into_libs=yes
14048   ;;
14049
14050 irix5* | irix6* | nonstopux*)
14051   case $host_os in
14052     nonstopux*) version_type=nonstopux ;;
14053     *)
14054         if test yes = "$lt_cv_prog_gnu_ld"; then
14055                 version_type=linux # correct to gnu/linux during the next big refactor
14056         else
14057                 version_type=irix
14058         fi ;;
14059   esac
14060   need_lib_prefix=no
14061   need_version=no
14062   soname_spec='$libname$release$shared_ext$major'
14063   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
14064   case $host_os in
14065   irix5* | nonstopux*)
14066     libsuff= shlibsuff=
14067     ;;
14068   *)
14069     case $LD in # libtool.m4 will add one of these switches to LD
14070     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14071       libsuff= shlibsuff= libmagic=32-bit;;
14072     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14073       libsuff=32 shlibsuff=N32 libmagic=N32;;
14074     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14075       libsuff=64 shlibsuff=64 libmagic=64-bit;;
14076     *) libsuff= shlibsuff= libmagic=never-match;;
14077     esac
14078     ;;
14079   esac
14080   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14081   shlibpath_overrides_runpath=no
14082   sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
14083   sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
14084   hardcode_into_libs=yes
14085   ;;
14086
14087 # No shared lib support for Linux oldld, aout, or coff.
14088 linux*oldld* | linux*aout* | linux*coff*)
14089   dynamic_linker=no
14090   ;;
14091
14092 linux*android*)
14093   version_type=none # Android doesn't support versioned libraries.
14094   need_lib_prefix=no
14095   need_version=no
14096   library_names_spec='$libname$release$shared_ext'
14097   soname_spec='$libname$release$shared_ext'
14098   finish_cmds=
14099   shlibpath_var=LD_LIBRARY_PATH
14100   shlibpath_overrides_runpath=yes
14101
14102   # This implies no fast_install, which is unacceptable.
14103   # Some rework will be needed to allow for fast_install
14104   # before this can be enabled.
14105   hardcode_into_libs=yes
14106
14107   dynamic_linker='Android linker'
14108   # Don't embed -rpath directories since the linker doesn't support them.
14109   hardcode_libdir_flag_spec='-L$libdir'
14110   ;;
14111
14112 # This must be glibc/ELF.
14113 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14114   version_type=linux # correct to gnu/linux during the next big refactor
14115   need_lib_prefix=no
14116   need_version=no
14117   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14118   soname_spec='$libname$release$shared_ext$major'
14119   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14120   shlibpath_var=LD_LIBRARY_PATH
14121   shlibpath_overrides_runpath=no
14122
14123   # Some binutils ld are patched to set DT_RUNPATH
14124   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
14125   $as_echo_n "(cached) " >&6
14126 else
14127   lt_cv_shlibpath_overrides_runpath=no
14128     save_LDFLAGS=$LDFLAGS
14129     save_libdir=$libdir
14130     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
14131          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
14132     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14133 /* end confdefs.h.  */
14134
14135 int
14136 main ()
14137 {
14138
14139   ;
14140   return 0;
14141 }
14142 _ACEOF
14143 if ac_fn_c_try_link "$LINENO"; then :
14144   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14145   lt_cv_shlibpath_overrides_runpath=yes
14146 fi
14147 fi
14148 rm -f core conftest.err conftest.$ac_objext \
14149     conftest$ac_exeext conftest.$ac_ext
14150     LDFLAGS=$save_LDFLAGS
14151     libdir=$save_libdir
14152
14153 fi
14154
14155   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
14156
14157   # This implies no fast_install, which is unacceptable.
14158   # Some rework will be needed to allow for fast_install
14159   # before this can be enabled.
14160   hardcode_into_libs=yes
14161
14162   # Ideally, we could use ldconfig to report *all* directores which are
14163   # searched for libraries, however this is still not possible.  Aside from not
14164   # being certain /sbin/ldconfig is available, command
14165   # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
14166   # even though it is searched at run-time.  Try to do the best guess by
14167   # appending ld.so.conf contents (and includes) to the search path.
14168   if test -f /etc/ld.so.conf; then
14169     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[       ]*hwcap[        ]/d;s/[:,      ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
14170     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14171   fi
14172
14173   # We used to test for /lib/ld.so.1 and disable shared libraries on
14174   # powerpc, because MkLinux only supported shared libraries with the
14175   # GNU dynamic linker.  Since this was broken with cross compilers,
14176   # most powerpc-linux boxes support dynamic linking these days and
14177   # people can always --disable-shared, the test was removed, and we
14178   # assume the GNU/Linux dynamic linker is in use.
14179   dynamic_linker='GNU/Linux ld.so'
14180   ;;
14181
14182 netbsd*)
14183   version_type=sunos
14184   need_lib_prefix=no
14185   need_version=no
14186   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14187     library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
14188     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14189     dynamic_linker='NetBSD (a.out) ld.so'
14190   else
14191     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14192     soname_spec='$libname$release$shared_ext$major'
14193     dynamic_linker='NetBSD ld.elf_so'
14194   fi
14195   shlibpath_var=LD_LIBRARY_PATH
14196   shlibpath_overrides_runpath=yes
14197   hardcode_into_libs=yes
14198   ;;
14199
14200 newsos6)
14201   version_type=linux # correct to gnu/linux during the next big refactor
14202   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14203   shlibpath_var=LD_LIBRARY_PATH
14204   shlibpath_overrides_runpath=yes
14205   ;;
14206
14207 *nto* | *qnx*)
14208   version_type=qnx
14209   need_lib_prefix=no
14210   need_version=no
14211   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14212   soname_spec='$libname$release$shared_ext$major'
14213   shlibpath_var=LD_LIBRARY_PATH
14214   shlibpath_overrides_runpath=no
14215   hardcode_into_libs=yes
14216   dynamic_linker='ldqnx.so'
14217   ;;
14218
14219 openbsd* | bitrig*)
14220   version_type=sunos
14221   sys_lib_dlsearch_path_spec=/usr/lib
14222   need_lib_prefix=no
14223   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
14224     need_version=no
14225   else
14226     need_version=yes
14227   fi
14228   library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
14229   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14230   shlibpath_var=LD_LIBRARY_PATH
14231   shlibpath_overrides_runpath=yes
14232   ;;
14233
14234 os2*)
14235   libname_spec='$name'
14236   version_type=windows
14237   shrext_cmds=.dll
14238   need_version=no
14239   need_lib_prefix=no
14240   # OS/2 can only load a DLL with a base name of 8 characters or less.
14241   soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
14242     v=$($ECHO $release$versuffix | tr -d .-);
14243     n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
14244     $ECHO $n$v`$shared_ext'
14245   library_names_spec='${libname}_dll.$libext'
14246   dynamic_linker='OS/2 ld.exe'
14247   shlibpath_var=BEGINLIBPATH
14248   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14249   sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14250   postinstall_cmds='base_file=`basename \$file`~
14251     dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
14252     dldir=$destdir/`dirname \$dlpath`~
14253     test -d \$dldir || mkdir -p \$dldir~
14254     $install_prog $dir/$dlname \$dldir/$dlname~
14255     chmod a+x \$dldir/$dlname~
14256     if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14257       eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14258     fi'
14259   postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
14260     dlpath=$dir/\$dldll~
14261     $RM \$dlpath'
14262   ;;
14263
14264 osf3* | osf4* | osf5*)
14265   version_type=osf
14266   need_lib_prefix=no
14267   need_version=no
14268   soname_spec='$libname$release$shared_ext$major'
14269   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14270   shlibpath_var=LD_LIBRARY_PATH
14271   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14272   sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14273   ;;
14274
14275 rdos*)
14276   dynamic_linker=no
14277   ;;
14278
14279 solaris*)
14280   version_type=linux # correct to gnu/linux during the next big refactor
14281   need_lib_prefix=no
14282   need_version=no
14283   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14284   soname_spec='$libname$release$shared_ext$major'
14285   shlibpath_var=LD_LIBRARY_PATH
14286   shlibpath_overrides_runpath=yes
14287   hardcode_into_libs=yes
14288   # ldd complains unless libraries are executable
14289   postinstall_cmds='chmod +x $lib'
14290   ;;
14291
14292 sunos4*)
14293   version_type=sunos
14294   library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
14295   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14296   shlibpath_var=LD_LIBRARY_PATH
14297   shlibpath_overrides_runpath=yes
14298   if test yes = "$with_gnu_ld"; then
14299     need_lib_prefix=no
14300   fi
14301   need_version=yes
14302   ;;
14303
14304 sysv4 | sysv4.3*)
14305   version_type=linux # correct to gnu/linux during the next big refactor
14306   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14307   soname_spec='$libname$release$shared_ext$major'
14308   shlibpath_var=LD_LIBRARY_PATH
14309   case $host_vendor in
14310     sni)
14311       shlibpath_overrides_runpath=no
14312       need_lib_prefix=no
14313       runpath_var=LD_RUN_PATH
14314       ;;
14315     siemens)
14316       need_lib_prefix=no
14317       ;;
14318     motorola)
14319       need_lib_prefix=no
14320       need_version=no
14321       shlibpath_overrides_runpath=no
14322       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14323       ;;
14324   esac
14325   ;;
14326
14327 sysv4*MP*)
14328   if test -d /usr/nec; then
14329     version_type=linux # correct to gnu/linux during the next big refactor
14330     library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
14331     soname_spec='$libname$shared_ext.$major'
14332     shlibpath_var=LD_LIBRARY_PATH
14333   fi
14334   ;;
14335
14336 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14337   version_type=sco
14338   need_lib_prefix=no
14339   need_version=no
14340   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
14341   soname_spec='$libname$release$shared_ext$major'
14342   shlibpath_var=LD_LIBRARY_PATH
14343   shlibpath_overrides_runpath=yes
14344   hardcode_into_libs=yes
14345   if test yes = "$with_gnu_ld"; then
14346     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14347   else
14348     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14349     case $host_os in
14350       sco3.2v5*)
14351         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14352         ;;
14353     esac
14354   fi
14355   sys_lib_dlsearch_path_spec='/usr/lib'
14356   ;;
14357
14358 tpf*)
14359   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
14360   version_type=linux # correct to gnu/linux during the next big refactor
14361   need_lib_prefix=no
14362   need_version=no
14363   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14364   shlibpath_var=LD_LIBRARY_PATH
14365   shlibpath_overrides_runpath=no
14366   hardcode_into_libs=yes
14367   ;;
14368
14369 uts4*)
14370   version_type=linux # correct to gnu/linux during the next big refactor
14371   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14372   soname_spec='$libname$release$shared_ext$major'
14373   shlibpath_var=LD_LIBRARY_PATH
14374   ;;
14375
14376 *)
14377   dynamic_linker=no
14378   ;;
14379 esac
14380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14381 $as_echo "$dynamic_linker" >&6; }
14382 test no = "$dynamic_linker" && can_build_shared=no
14383
14384 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14385 if test yes = "$GCC"; then
14386   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14387 fi
14388
14389 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
14390   sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
14391 fi
14392
14393 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
14394   sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
14395 fi
14396
14397 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
14398 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
14399
14400 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
14401 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
14402
14403 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
14404 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
14405
14406
14407
14408
14409
14410
14411
14412
14413
14414
14415
14416
14417
14418
14419
14420
14421
14422
14423
14424
14425
14426
14427
14428
14429
14430
14431
14432
14433
14434
14435
14436
14437
14438
14439
14440
14441
14442
14443
14444
14445
14446
14447
14448
14449
14450
14451
14452
14453
14454
14455
14456
14457
14458
14459
14460
14461
14462
14463
14464
14465
14466
14467
14468
14469
14470
14471
14472
14473
14474
14475
14476
14477
14478
14479
14480
14481
14482
14483
14484
14485
14486
14487
14488
14489
14490
14491
14492
14493
14494
14495
14496
14497
14498
14499
14500
14501
14502   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14503 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14504 hardcode_action=
14505 if test -n "$hardcode_libdir_flag_spec" ||
14506    test -n "$runpath_var" ||
14507    test yes = "$hardcode_automatic"; then
14508
14509   # We can hardcode non-existent directories.
14510   if test no != "$hardcode_direct" &&
14511      # If the only mechanism to avoid hardcoding is shlibpath_var, we
14512      # have to relink, otherwise we might link with an installed library
14513      # when we should be linking with a yet-to-be-installed one
14514      ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
14515      test no != "$hardcode_minus_L"; then
14516     # Linking always hardcodes the temporary library directory.
14517     hardcode_action=relink
14518   else
14519     # We can link without hardcoding, and we can hardcode nonexisting dirs.
14520     hardcode_action=immediate
14521   fi
14522 else
14523   # We cannot hardcode anything, or else we can only hardcode existing
14524   # directories.
14525   hardcode_action=unsupported
14526 fi
14527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
14528 $as_echo "$hardcode_action" >&6; }
14529
14530 if test relink = "$hardcode_action" ||
14531    test yes = "$inherit_rpath"; then
14532   # Fast installation is not supported
14533   enable_fast_install=no
14534 elif test yes = "$shlibpath_overrides_runpath" ||
14535      test no = "$enable_shared"; then
14536   # Fast installation is not necessary
14537   enable_fast_install=needless
14538 fi
14539
14540
14541
14542
14543
14544
14545   if test yes != "$enable_dlopen"; then
14546   enable_dlopen=unknown
14547   enable_dlopen_self=unknown
14548   enable_dlopen_self_static=unknown
14549 else
14550   lt_cv_dlopen=no
14551   lt_cv_dlopen_libs=
14552
14553   case $host_os in
14554   beos*)
14555     lt_cv_dlopen=load_add_on
14556     lt_cv_dlopen_libs=
14557     lt_cv_dlopen_self=yes
14558     ;;
14559
14560   mingw* | pw32* | cegcc*)
14561     lt_cv_dlopen=LoadLibrary
14562     lt_cv_dlopen_libs=
14563     ;;
14564
14565   cygwin*)
14566     lt_cv_dlopen=dlopen
14567     lt_cv_dlopen_libs=
14568     ;;
14569
14570   darwin*)
14571     # if libdl is installed we need to link against it
14572     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14573 $as_echo_n "checking for dlopen in -ldl... " >&6; }
14574 if ${ac_cv_lib_dl_dlopen+:} false; then :
14575   $as_echo_n "(cached) " >&6
14576 else
14577   ac_check_lib_save_LIBS=$LIBS
14578 LIBS="-ldl  $LIBS"
14579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14580 /* end confdefs.h.  */
14581
14582 /* Override any GCC internal prototype to avoid an error.
14583    Use char because int might match the return type of a GCC
14584    builtin and then its argument prototype would still apply.  */
14585 #ifdef __cplusplus
14586 extern "C"
14587 #endif
14588 char dlopen ();
14589 int
14590 main ()
14591 {
14592 return dlopen ();
14593   ;
14594   return 0;
14595 }
14596 _ACEOF
14597 if ac_fn_c_try_link "$LINENO"; then :
14598   ac_cv_lib_dl_dlopen=yes
14599 else
14600   ac_cv_lib_dl_dlopen=no
14601 fi
14602 rm -f core conftest.err conftest.$ac_objext \
14603     conftest$ac_exeext conftest.$ac_ext
14604 LIBS=$ac_check_lib_save_LIBS
14605 fi
14606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14607 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
14608 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
14609   lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
14610 else
14611
14612     lt_cv_dlopen=dyld
14613     lt_cv_dlopen_libs=
14614     lt_cv_dlopen_self=yes
14615
14616 fi
14617
14618     ;;
14619
14620   tpf*)
14621     # Don't try to run any link tests for TPF.  We know it's impossible
14622     # because TPF is a cross-compiler, and we know how we open DSOs.
14623     lt_cv_dlopen=dlopen
14624     lt_cv_dlopen_libs=
14625     lt_cv_dlopen_self=no
14626     ;;
14627
14628   *)
14629     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
14630 if test "x$ac_cv_func_shl_load" = xyes; then :
14631   lt_cv_dlopen=shl_load
14632 else
14633   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
14634 $as_echo_n "checking for shl_load in -ldld... " >&6; }
14635 if ${ac_cv_lib_dld_shl_load+:} false; then :
14636   $as_echo_n "(cached) " >&6
14637 else
14638   ac_check_lib_save_LIBS=$LIBS
14639 LIBS="-ldld  $LIBS"
14640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14641 /* end confdefs.h.  */
14642
14643 /* Override any GCC internal prototype to avoid an error.
14644    Use char because int might match the return type of a GCC
14645    builtin and then its argument prototype would still apply.  */
14646 #ifdef __cplusplus
14647 extern "C"
14648 #endif
14649 char shl_load ();
14650 int
14651 main ()
14652 {
14653 return shl_load ();
14654   ;
14655   return 0;
14656 }
14657 _ACEOF
14658 if ac_fn_c_try_link "$LINENO"; then :
14659   ac_cv_lib_dld_shl_load=yes
14660 else
14661   ac_cv_lib_dld_shl_load=no
14662 fi
14663 rm -f core conftest.err conftest.$ac_objext \
14664     conftest$ac_exeext conftest.$ac_ext
14665 LIBS=$ac_check_lib_save_LIBS
14666 fi
14667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
14668 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
14669 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
14670   lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
14671 else
14672   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
14673 if test "x$ac_cv_func_dlopen" = xyes; then :
14674   lt_cv_dlopen=dlopen
14675 else
14676   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14677 $as_echo_n "checking for dlopen in -ldl... " >&6; }
14678 if ${ac_cv_lib_dl_dlopen+:} false; then :
14679   $as_echo_n "(cached) " >&6
14680 else
14681   ac_check_lib_save_LIBS=$LIBS
14682 LIBS="-ldl  $LIBS"
14683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14684 /* end confdefs.h.  */
14685
14686 /* Override any GCC internal prototype to avoid an error.
14687    Use char because int might match the return type of a GCC
14688    builtin and then its argument prototype would still apply.  */
14689 #ifdef __cplusplus
14690 extern "C"
14691 #endif
14692 char dlopen ();
14693 int
14694 main ()
14695 {
14696 return dlopen ();
14697   ;
14698   return 0;
14699 }
14700 _ACEOF
14701 if ac_fn_c_try_link "$LINENO"; then :
14702   ac_cv_lib_dl_dlopen=yes
14703 else
14704   ac_cv_lib_dl_dlopen=no
14705 fi
14706 rm -f core conftest.err conftest.$ac_objext \
14707     conftest$ac_exeext conftest.$ac_ext
14708 LIBS=$ac_check_lib_save_LIBS
14709 fi
14710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14711 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
14712 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
14713   lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
14714 else
14715   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
14716 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
14717 if ${ac_cv_lib_svld_dlopen+:} false; then :
14718   $as_echo_n "(cached) " >&6
14719 else
14720   ac_check_lib_save_LIBS=$LIBS
14721 LIBS="-lsvld  $LIBS"
14722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14723 /* end confdefs.h.  */
14724
14725 /* Override any GCC internal prototype to avoid an error.
14726    Use char because int might match the return type of a GCC
14727    builtin and then its argument prototype would still apply.  */
14728 #ifdef __cplusplus
14729 extern "C"
14730 #endif
14731 char dlopen ();
14732 int
14733 main ()
14734 {
14735 return dlopen ();
14736   ;
14737   return 0;
14738 }
14739 _ACEOF
14740 if ac_fn_c_try_link "$LINENO"; then :
14741   ac_cv_lib_svld_dlopen=yes
14742 else
14743   ac_cv_lib_svld_dlopen=no
14744 fi
14745 rm -f core conftest.err conftest.$ac_objext \
14746     conftest$ac_exeext conftest.$ac_ext
14747 LIBS=$ac_check_lib_save_LIBS
14748 fi
14749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
14750 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
14751 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
14752   lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
14753 else
14754   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
14755 $as_echo_n "checking for dld_link in -ldld... " >&6; }
14756 if ${ac_cv_lib_dld_dld_link+:} false; then :
14757   $as_echo_n "(cached) " >&6
14758 else
14759   ac_check_lib_save_LIBS=$LIBS
14760 LIBS="-ldld  $LIBS"
14761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14762 /* end confdefs.h.  */
14763
14764 /* Override any GCC internal prototype to avoid an error.
14765    Use char because int might match the return type of a GCC
14766    builtin and then its argument prototype would still apply.  */
14767 #ifdef __cplusplus
14768 extern "C"
14769 #endif
14770 char dld_link ();
14771 int
14772 main ()
14773 {
14774 return dld_link ();
14775   ;
14776   return 0;
14777 }
14778 _ACEOF
14779 if ac_fn_c_try_link "$LINENO"; then :
14780   ac_cv_lib_dld_dld_link=yes
14781 else
14782   ac_cv_lib_dld_dld_link=no
14783 fi
14784 rm -f core conftest.err conftest.$ac_objext \
14785     conftest$ac_exeext conftest.$ac_ext
14786 LIBS=$ac_check_lib_save_LIBS
14787 fi
14788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
14789 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
14790 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
14791   lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
14792 fi
14793
14794
14795 fi
14796
14797
14798 fi
14799
14800
14801 fi
14802
14803
14804 fi
14805
14806
14807 fi
14808
14809     ;;
14810   esac
14811
14812   if test no = "$lt_cv_dlopen"; then
14813     enable_dlopen=no
14814   else
14815     enable_dlopen=yes
14816   fi
14817
14818   case $lt_cv_dlopen in
14819   dlopen)
14820     save_CPPFLAGS=$CPPFLAGS
14821     test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
14822
14823     save_LDFLAGS=$LDFLAGS
14824     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
14825
14826     save_LIBS=$LIBS
14827     LIBS="$lt_cv_dlopen_libs $LIBS"
14828
14829     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
14830 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
14831 if ${lt_cv_dlopen_self+:} false; then :
14832   $as_echo_n "(cached) " >&6
14833 else
14834           if test yes = "$cross_compiling"; then :
14835   lt_cv_dlopen_self=cross
14836 else
14837   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14838   lt_status=$lt_dlunknown
14839   cat > conftest.$ac_ext <<_LT_EOF
14840 #line $LINENO "configure"
14841 #include "confdefs.h"
14842
14843 #if HAVE_DLFCN_H
14844 #include <dlfcn.h>
14845 #endif
14846
14847 #include <stdio.h>
14848
14849 #ifdef RTLD_GLOBAL
14850 #  define LT_DLGLOBAL           RTLD_GLOBAL
14851 #else
14852 #  ifdef DL_GLOBAL
14853 #    define LT_DLGLOBAL         DL_GLOBAL
14854 #  else
14855 #    define LT_DLGLOBAL         0
14856 #  endif
14857 #endif
14858
14859 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14860    find out it does not work in some platform. */
14861 #ifndef LT_DLLAZY_OR_NOW
14862 #  ifdef RTLD_LAZY
14863 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
14864 #  else
14865 #    ifdef DL_LAZY
14866 #      define LT_DLLAZY_OR_NOW          DL_LAZY
14867 #    else
14868 #      ifdef RTLD_NOW
14869 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
14870 #      else
14871 #        ifdef DL_NOW
14872 #          define LT_DLLAZY_OR_NOW      DL_NOW
14873 #        else
14874 #          define LT_DLLAZY_OR_NOW      0
14875 #        endif
14876 #      endif
14877 #    endif
14878 #  endif
14879 #endif
14880
14881 /* When -fvisibility=hidden is used, assume the code has been annotated
14882    correspondingly for the symbols needed.  */
14883 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
14884 int fnord () __attribute__((visibility("default")));
14885 #endif
14886
14887 int fnord () { return 42; }
14888 int main ()
14889 {
14890   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14891   int status = $lt_dlunknown;
14892
14893   if (self)
14894     {
14895       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
14896       else
14897         {
14898           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
14899           else puts (dlerror ());
14900         }
14901       /* dlclose (self); */
14902     }
14903   else
14904     puts (dlerror ());
14905
14906   return status;
14907 }
14908 _LT_EOF
14909   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14910   (eval $ac_link) 2>&5
14911   ac_status=$?
14912   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14913   test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
14914     (./conftest; exit; ) >&5 2>/dev/null
14915     lt_status=$?
14916     case x$lt_status in
14917       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
14918       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
14919       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
14920     esac
14921   else :
14922     # compilation failed
14923     lt_cv_dlopen_self=no
14924   fi
14925 fi
14926 rm -fr conftest*
14927
14928
14929 fi
14930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
14931 $as_echo "$lt_cv_dlopen_self" >&6; }
14932
14933     if test yes = "$lt_cv_dlopen_self"; then
14934       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
14935       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
14936 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
14937 if ${lt_cv_dlopen_self_static+:} false; then :
14938   $as_echo_n "(cached) " >&6
14939 else
14940           if test yes = "$cross_compiling"; then :
14941   lt_cv_dlopen_self_static=cross
14942 else
14943   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14944   lt_status=$lt_dlunknown
14945   cat > conftest.$ac_ext <<_LT_EOF
14946 #line $LINENO "configure"
14947 #include "confdefs.h"
14948
14949 #if HAVE_DLFCN_H
14950 #include <dlfcn.h>
14951 #endif
14952
14953 #include <stdio.h>
14954
14955 #ifdef RTLD_GLOBAL
14956 #  define LT_DLGLOBAL           RTLD_GLOBAL
14957 #else
14958 #  ifdef DL_GLOBAL
14959 #    define LT_DLGLOBAL         DL_GLOBAL
14960 #  else
14961 #    define LT_DLGLOBAL         0
14962 #  endif
14963 #endif
14964
14965 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14966    find out it does not work in some platform. */
14967 #ifndef LT_DLLAZY_OR_NOW
14968 #  ifdef RTLD_LAZY
14969 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
14970 #  else
14971 #    ifdef DL_LAZY
14972 #      define LT_DLLAZY_OR_NOW          DL_LAZY
14973 #    else
14974 #      ifdef RTLD_NOW
14975 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
14976 #      else
14977 #        ifdef DL_NOW
14978 #          define LT_DLLAZY_OR_NOW      DL_NOW
14979 #        else
14980 #          define LT_DLLAZY_OR_NOW      0
14981 #        endif
14982 #      endif
14983 #    endif
14984 #  endif
14985 #endif
14986
14987 /* When -fvisibility=hidden is used, assume the code has been annotated
14988    correspondingly for the symbols needed.  */
14989 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
14990 int fnord () __attribute__((visibility("default")));
14991 #endif
14992
14993 int fnord () { return 42; }
14994 int main ()
14995 {
14996   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14997   int status = $lt_dlunknown;
14998
14999   if (self)
15000     {
15001       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
15002       else
15003         {
15004           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
15005           else puts (dlerror ());
15006         }
15007       /* dlclose (self); */
15008     }
15009   else
15010     puts (dlerror ());
15011
15012   return status;
15013 }
15014 _LT_EOF
15015   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
15016   (eval $ac_link) 2>&5
15017   ac_status=$?
15018   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15019   test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
15020     (./conftest; exit; ) >&5 2>/dev/null
15021     lt_status=$?
15022     case x$lt_status in
15023       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
15024       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
15025       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
15026     esac
15027   else :
15028     # compilation failed
15029     lt_cv_dlopen_self_static=no
15030   fi
15031 fi
15032 rm -fr conftest*
15033
15034
15035 fi
15036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
15037 $as_echo "$lt_cv_dlopen_self_static" >&6; }
15038     fi
15039
15040     CPPFLAGS=$save_CPPFLAGS
15041     LDFLAGS=$save_LDFLAGS
15042     LIBS=$save_LIBS
15043     ;;
15044   esac
15045
15046   case $lt_cv_dlopen_self in
15047   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
15048   *) enable_dlopen_self=unknown ;;
15049   esac
15050
15051   case $lt_cv_dlopen_self_static in
15052   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
15053   *) enable_dlopen_self_static=unknown ;;
15054   esac
15055 fi
15056
15057
15058
15059
15060
15061
15062
15063
15064
15065
15066
15067
15068
15069
15070
15071
15072
15073 striplib=
15074 old_striplib=
15075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
15076 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
15077 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
15078   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15079   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15080   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15081 $as_echo "yes" >&6; }
15082 else
15083 # FIXME - insert some real tests, host_os isn't really good enough
15084   case $host_os in
15085   darwin*)
15086     if test -n "$STRIP"; then
15087       striplib="$STRIP -x"
15088       old_striplib="$STRIP -S"
15089       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15090 $as_echo "yes" >&6; }
15091     else
15092       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15093 $as_echo "no" >&6; }
15094     fi
15095     ;;
15096   *)
15097     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15098 $as_echo "no" >&6; }
15099     ;;
15100   esac
15101 fi
15102
15103
15104
15105
15106
15107
15108
15109
15110
15111
15112
15113
15114   # Report what library types will actually be built
15115   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
15116 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
15117   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
15118 $as_echo "$can_build_shared" >&6; }
15119
15120   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
15121 $as_echo_n "checking whether to build shared libraries... " >&6; }
15122   test no = "$can_build_shared" && enable_shared=no
15123
15124   # On AIX, shared libraries and static libraries use the same namespace, and
15125   # are all built from PIC.
15126   case $host_os in
15127   aix3*)
15128     test yes = "$enable_shared" && enable_static=no
15129     if test -n "$RANLIB"; then
15130       archive_cmds="$archive_cmds~\$RANLIB \$lib"
15131       postinstall_cmds='$RANLIB $lib'
15132     fi
15133     ;;
15134
15135   aix[4-9]*)
15136     if test ia64 != "$host_cpu"; then
15137       case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
15138       yes,aix,yes) ;;                   # shared object as lib.so file only
15139       yes,svr4,*) ;;                    # shared object as lib.so archive member only
15140       yes,*) enable_static=no ;;        # shared object in lib.a archive as well
15141       esac
15142     fi
15143     ;;
15144   esac
15145   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
15146 $as_echo "$enable_shared" >&6; }
15147
15148   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
15149 $as_echo_n "checking whether to build static libraries... " >&6; }
15150   # Make sure either enable_shared or enable_static is yes.
15151   test yes = "$enable_shared" || enable_static=yes
15152   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
15153 $as_echo "$enable_static" >&6; }
15154
15155
15156
15157
15158 fi
15159 ac_ext=c
15160 ac_cpp='$CPP $CPPFLAGS'
15161 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15162 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15163 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15164
15165 CC=$lt_save_CC
15166
15167       if test -n "$CXX" && ( test no != "$CXX" &&
15168     ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
15169     (test g++ != "$CXX"))); then
15170   ac_ext=cpp
15171 ac_cpp='$CXXCPP $CPPFLAGS'
15172 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15173 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15174 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
15176 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
15177 if test -z "$CXXCPP"; then
15178   if ${ac_cv_prog_CXXCPP+:} false; then :
15179   $as_echo_n "(cached) " >&6
15180 else
15181       # Double quotes because CXXCPP needs to be expanded
15182     for CXXCPP in "$CXX -E" "/lib/cpp"
15183     do
15184       ac_preproc_ok=false
15185 for ac_cxx_preproc_warn_flag in '' yes
15186 do
15187   # Use a header file that comes with gcc, so configuring glibc
15188   # with a fresh cross-compiler works.
15189   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15190   # <limits.h> exists even on freestanding compilers.
15191   # On the NeXT, cc -E runs the code through the compiler's parser,
15192   # not just through cpp. "Syntax error" is here to catch this case.
15193   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15194 /* end confdefs.h.  */
15195 #ifdef __STDC__
15196 # include <limits.h>
15197 #else
15198 # include <assert.h>
15199 #endif
15200                      Syntax error
15201 _ACEOF
15202 if ac_fn_cxx_try_cpp "$LINENO"; then :
15203
15204 else
15205   # Broken: fails on valid input.
15206 continue
15207 fi
15208 rm -f conftest.err conftest.i conftest.$ac_ext
15209
15210   # OK, works on sane cases.  Now check whether nonexistent headers
15211   # can be detected and how.
15212   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15213 /* end confdefs.h.  */
15214 #include <ac_nonexistent.h>
15215 _ACEOF
15216 if ac_fn_cxx_try_cpp "$LINENO"; then :
15217   # Broken: success on invalid input.
15218 continue
15219 else
15220   # Passes both tests.
15221 ac_preproc_ok=:
15222 break
15223 fi
15224 rm -f conftest.err conftest.i conftest.$ac_ext
15225
15226 done
15227 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
15228 rm -f conftest.i conftest.err conftest.$ac_ext
15229 if $ac_preproc_ok; then :
15230   break
15231 fi
15232
15233     done
15234     ac_cv_prog_CXXCPP=$CXXCPP
15235
15236 fi
15237   CXXCPP=$ac_cv_prog_CXXCPP
15238 else
15239   ac_cv_prog_CXXCPP=$CXXCPP
15240 fi
15241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
15242 $as_echo "$CXXCPP" >&6; }
15243 ac_preproc_ok=false
15244 for ac_cxx_preproc_warn_flag in '' yes
15245 do
15246   # Use a header file that comes with gcc, so configuring glibc
15247   # with a fresh cross-compiler works.
15248   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15249   # <limits.h> exists even on freestanding compilers.
15250   # On the NeXT, cc -E runs the code through the compiler's parser,
15251   # not just through cpp. "Syntax error" is here to catch this case.
15252   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15253 /* end confdefs.h.  */
15254 #ifdef __STDC__
15255 # include <limits.h>
15256 #else
15257 # include <assert.h>
15258 #endif
15259                      Syntax error
15260 _ACEOF
15261 if ac_fn_cxx_try_cpp "$LINENO"; then :
15262
15263 else
15264   # Broken: fails on valid input.
15265 continue
15266 fi
15267 rm -f conftest.err conftest.i conftest.$ac_ext
15268
15269   # OK, works on sane cases.  Now check whether nonexistent headers
15270   # can be detected and how.
15271   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15272 /* end confdefs.h.  */
15273 #include <ac_nonexistent.h>
15274 _ACEOF
15275 if ac_fn_cxx_try_cpp "$LINENO"; then :
15276   # Broken: success on invalid input.
15277 continue
15278 else
15279   # Passes both tests.
15280 ac_preproc_ok=:
15281 break
15282 fi
15283 rm -f conftest.err conftest.i conftest.$ac_ext
15284
15285 done
15286 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
15287 rm -f conftest.i conftest.err conftest.$ac_ext
15288 if $ac_preproc_ok; then :
15289
15290 else
15291   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15292 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15293 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
15294 See \`config.log' for more details" "$LINENO" 5; }
15295 fi
15296
15297 ac_ext=c
15298 ac_cpp='$CPP $CPPFLAGS'
15299 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15300 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15301 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15302
15303 else
15304   _lt_caught_CXX_error=yes
15305 fi
15306
15307 ac_ext=cpp
15308 ac_cpp='$CXXCPP $CPPFLAGS'
15309 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15310 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15311 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15312
15313 archive_cmds_need_lc_CXX=no
15314 allow_undefined_flag_CXX=
15315 always_export_symbols_CXX=no
15316 archive_expsym_cmds_CXX=
15317 compiler_needs_object_CXX=no
15318 export_dynamic_flag_spec_CXX=
15319 hardcode_direct_CXX=no
15320 hardcode_direct_absolute_CXX=no
15321 hardcode_libdir_flag_spec_CXX=
15322 hardcode_libdir_separator_CXX=
15323 hardcode_minus_L_CXX=no
15324 hardcode_shlibpath_var_CXX=unsupported
15325 hardcode_automatic_CXX=no
15326 inherit_rpath_CXX=no
15327 module_cmds_CXX=
15328 module_expsym_cmds_CXX=
15329 link_all_deplibs_CXX=unknown
15330 old_archive_cmds_CXX=$old_archive_cmds
15331 reload_flag_CXX=$reload_flag
15332 reload_cmds_CXX=$reload_cmds
15333 no_undefined_flag_CXX=
15334 whole_archive_flag_spec_CXX=
15335 enable_shared_with_static_runtimes_CXX=no
15336
15337 # Source file extension for C++ test sources.
15338 ac_ext=cpp
15339
15340 # Object file extension for compiled C++ test sources.
15341 objext=o
15342 objext_CXX=$objext
15343
15344 # No sense in running all these tests if we already determined that
15345 # the CXX compiler isn't working.  Some variables (like enable_shared)
15346 # are currently assumed to apply to all compilers on this platform,
15347 # and will be corrupted by setting them based on a non-working compiler.
15348 if test yes != "$_lt_caught_CXX_error"; then
15349   # Code to be used in simple compile tests
15350   lt_simple_compile_test_code="int some_variable = 0;"
15351
15352   # Code to be used in simple link tests
15353   lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
15354
15355   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15356
15357
15358
15359
15360
15361
15362 # If no C compiler was specified, use CC.
15363 LTCC=${LTCC-"$CC"}
15364
15365 # If no C compiler flags were specified, use CFLAGS.
15366 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15367
15368 # Allow CC to be a program name with arguments.
15369 compiler=$CC
15370
15371
15372   # save warnings/boilerplate of simple test code
15373   ac_outfile=conftest.$ac_objext
15374 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15375 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15376 _lt_compiler_boilerplate=`cat conftest.err`
15377 $RM conftest*
15378
15379   ac_outfile=conftest.$ac_objext
15380 echo "$lt_simple_link_test_code" >conftest.$ac_ext
15381 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15382 _lt_linker_boilerplate=`cat conftest.err`
15383 $RM -r conftest*
15384
15385
15386   # Allow CC to be a program name with arguments.
15387   lt_save_CC=$CC
15388   lt_save_CFLAGS=$CFLAGS
15389   lt_save_LD=$LD
15390   lt_save_GCC=$GCC
15391   GCC=$GXX
15392   lt_save_with_gnu_ld=$with_gnu_ld
15393   lt_save_path_LD=$lt_cv_path_LD
15394   if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
15395     lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
15396   else
15397     $as_unset lt_cv_prog_gnu_ld
15398   fi
15399   if test -n "${lt_cv_path_LDCXX+set}"; then
15400     lt_cv_path_LD=$lt_cv_path_LDCXX
15401   else
15402     $as_unset lt_cv_path_LD
15403   fi
15404   test -z "${LDCXX+set}" || LD=$LDCXX
15405   CC=${CXX-"c++"}
15406   CFLAGS=$CXXFLAGS
15407   compiler=$CC
15408   compiler_CXX=$CC
15409   func_cc_basename $compiler
15410 cc_basename=$func_cc_basename_result
15411
15412
15413   if test -n "$compiler"; then
15414     # We don't want -fno-exception when compiling C++ code, so set the
15415     # no_builtin_flag separately
15416     if test yes = "$GXX"; then
15417       lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
15418     else
15419       lt_prog_compiler_no_builtin_flag_CXX=
15420     fi
15421
15422     if test yes = "$GXX"; then
15423       # Set up default GNU C++ configuration
15424
15425
15426
15427 # Check whether --with-gnu-ld was given.
15428 if test "${with_gnu_ld+set}" = set; then :
15429   withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
15430 else
15431   with_gnu_ld=no
15432 fi
15433
15434 ac_prog=ld
15435 if test yes = "$GCC"; then
15436   # Check if gcc -print-prog-name=ld gives a path.
15437   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
15438 $as_echo_n "checking for ld used by $CC... " >&6; }
15439   case $host in
15440   *-*-mingw*)
15441     # gcc leaves a trailing carriage return, which upsets mingw
15442     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
15443   *)
15444     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
15445   esac
15446   case $ac_prog in
15447     # Accept absolute paths.
15448     [\\/]* | ?:[\\/]*)
15449       re_direlt='/[^/][^/]*/\.\./'
15450       # Canonicalize the pathname of ld
15451       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
15452       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
15453         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
15454       done
15455       test -z "$LD" && LD=$ac_prog
15456       ;;
15457   "")
15458     # If it fails, then pretend we aren't using GCC.
15459     ac_prog=ld
15460     ;;
15461   *)
15462     # If it is relative, then search for the first ld in PATH.
15463     with_gnu_ld=unknown
15464     ;;
15465   esac
15466 elif test yes = "$with_gnu_ld"; then
15467   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
15468 $as_echo_n "checking for GNU ld... " >&6; }
15469 else
15470   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
15471 $as_echo_n "checking for non-GNU ld... " >&6; }
15472 fi
15473 if ${lt_cv_path_LD+:} false; then :
15474   $as_echo_n "(cached) " >&6
15475 else
15476   if test -z "$LD"; then
15477   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
15478   for ac_dir in $PATH; do
15479     IFS=$lt_save_ifs
15480     test -z "$ac_dir" && ac_dir=.
15481     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
15482       lt_cv_path_LD=$ac_dir/$ac_prog
15483       # Check to see if the program is GNU ld.  I'd rather use --version,
15484       # but apparently some variants of GNU ld only accept -v.
15485       # Break only if it was the GNU/non-GNU ld that we prefer.
15486       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
15487       *GNU* | *'with BFD'*)
15488         test no != "$with_gnu_ld" && break
15489         ;;
15490       *)
15491         test yes != "$with_gnu_ld" && break
15492         ;;
15493       esac
15494     fi
15495   done
15496   IFS=$lt_save_ifs
15497 else
15498   lt_cv_path_LD=$LD # Let the user override the test with a path.
15499 fi
15500 fi
15501
15502 LD=$lt_cv_path_LD
15503 if test -n "$LD"; then
15504   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
15505 $as_echo "$LD" >&6; }
15506 else
15507   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15508 $as_echo "no" >&6; }
15509 fi
15510 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
15511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
15512 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
15513 if ${lt_cv_prog_gnu_ld+:} false; then :
15514   $as_echo_n "(cached) " >&6
15515 else
15516   # I'd rather use --version here, but apparently some GNU lds only accept -v.
15517 case `$LD -v 2>&1 </dev/null` in
15518 *GNU* | *'with BFD'*)
15519   lt_cv_prog_gnu_ld=yes
15520   ;;
15521 *)
15522   lt_cv_prog_gnu_ld=no
15523   ;;
15524 esac
15525 fi
15526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
15527 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
15528 with_gnu_ld=$lt_cv_prog_gnu_ld
15529
15530
15531
15532
15533
15534
15535
15536       # Check if GNU C++ uses GNU ld as the underlying linker, since the
15537       # archiving commands below assume that GNU ld is being used.
15538       if test yes = "$with_gnu_ld"; then
15539         archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
15540         archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
15541
15542         hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
15543         export_dynamic_flag_spec_CXX='$wl--export-dynamic'
15544
15545         # If archive_cmds runs LD, not CC, wlarc should be empty
15546         # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
15547         #     investigate it a little bit more. (MM)
15548         wlarc='$wl'
15549
15550         # ancient GNU ld didn't support --whole-archive et. al.
15551         if eval "`$CC -print-prog-name=ld` --help 2>&1" |
15552           $GREP 'no-whole-archive' > /dev/null; then
15553           whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
15554         else
15555           whole_archive_flag_spec_CXX=
15556         fi
15557       else
15558         with_gnu_ld=no
15559         wlarc=
15560
15561         # A generic and very simple default shared library creation
15562         # command for GNU C++ for the case where it uses the native
15563         # linker, instead of GNU ld.  If possible, this setting should
15564         # overridden to take advantage of the native linker features on
15565         # the platform it is being used on.
15566         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15567       fi
15568
15569       # Commands to make compiler produce verbose output that lists
15570       # what "hidden" libraries, object files and flags are used when
15571       # linking a shared library.
15572       output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
15573
15574     else
15575       GXX=no
15576       with_gnu_ld=no
15577       wlarc=
15578     fi
15579
15580     # PORTME: fill in a description of your system's C++ link characteristics
15581     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15582 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15583     ld_shlibs_CXX=yes
15584     case $host_os in
15585       aix3*)
15586         # FIXME: insert proper C++ library support
15587         ld_shlibs_CXX=no
15588         ;;
15589       aix[4-9]*)
15590         if test ia64 = "$host_cpu"; then
15591           # On IA64, the linker does run time linking by default, so we don't
15592           # have to do anything special.
15593           aix_use_runtimelinking=no
15594           exp_sym_flag='-Bexport'
15595           no_entry_flag=
15596         else
15597           aix_use_runtimelinking=no
15598
15599           # Test if we are trying to use run time linking or normal
15600           # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15601           # have runtime linking enabled, and use it for executables.
15602           # For shared libraries, we enable/disable runtime linking
15603           # depending on the kind of the shared library created -
15604           # when "with_aix_soname,aix_use_runtimelinking" is:
15605           # "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
15606           # "aix,yes"  lib.so          shared, rtl:yes, for executables
15607           #            lib.a           static archive
15608           # "both,no"  lib.so.V(shr.o) shared, rtl:yes
15609           #            lib.a(lib.so.V) shared, rtl:no,  for executables
15610           # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
15611           #            lib.a(lib.so.V) shared, rtl:no
15612           # "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
15613           #            lib.a           static archive
15614           case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15615             for ld_flag in $LDFLAGS; do
15616               case $ld_flag in
15617               *-brtl*)
15618                 aix_use_runtimelinking=yes
15619                 break
15620                 ;;
15621               esac
15622             done
15623             if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
15624               # With aix-soname=svr4, we create the lib.so.V shared archives only,
15625               # so we don't have lib.a shared libs to link our executables.
15626               # We have to force runtime linking in this case.
15627               aix_use_runtimelinking=yes
15628               LDFLAGS="$LDFLAGS -Wl,-brtl"
15629             fi
15630             ;;
15631           esac
15632
15633           exp_sym_flag='-bexport'
15634           no_entry_flag='-bnoentry'
15635         fi
15636
15637         # When large executables or shared objects are built, AIX ld can
15638         # have problems creating the table of contents.  If linking a library
15639         # or program results in "error TOC overflow" add -mminimal-toc to
15640         # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15641         # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15642
15643         archive_cmds_CXX=''
15644         hardcode_direct_CXX=yes
15645         hardcode_direct_absolute_CXX=yes
15646         hardcode_libdir_separator_CXX=':'
15647         link_all_deplibs_CXX=yes
15648         file_list_spec_CXX='$wl-f,'
15649         case $with_aix_soname,$aix_use_runtimelinking in
15650         aix,*) ;;       # no import file
15651         svr4,* | *,yes) # use import file
15652           # The Import File defines what to hardcode.
15653           hardcode_direct_CXX=no
15654           hardcode_direct_absolute_CXX=no
15655           ;;
15656         esac
15657
15658         if test yes = "$GXX"; then
15659           case $host_os in aix4.[012]|aix4.[012].*)
15660           # We only want to do this on AIX 4.2 and lower, the check
15661           # below for broken collect2 doesn't work under 4.3+
15662           collect2name=`$CC -print-prog-name=collect2`
15663           if test -f "$collect2name" &&
15664              strings "$collect2name" | $GREP resolve_lib_name >/dev/null
15665           then
15666             # We have reworked collect2
15667             :
15668           else
15669             # We have old collect2
15670             hardcode_direct_CXX=unsupported
15671             # It fails to find uninstalled libraries when the uninstalled
15672             # path is not listed in the libpath.  Setting hardcode_minus_L
15673             # to unsupported forces relinking
15674             hardcode_minus_L_CXX=yes
15675             hardcode_libdir_flag_spec_CXX='-L$libdir'
15676             hardcode_libdir_separator_CXX=
15677           fi
15678           esac
15679           shared_flag='-shared'
15680           if test yes = "$aix_use_runtimelinking"; then
15681             shared_flag=$shared_flag' $wl-G'
15682           fi
15683           # Need to ensure runtime linking is disabled for the traditional
15684           # shared library, or the linker may eventually find shared libraries
15685           # /with/ Import File - we do not want to mix them.
15686           shared_flag_aix='-shared'
15687           shared_flag_svr4='-shared $wl-G'
15688         else
15689           # not using gcc
15690           if test ia64 = "$host_cpu"; then
15691           # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15692           # chokes on -Wl,-G. The following line is correct:
15693           shared_flag='-G'
15694           else
15695             if test yes = "$aix_use_runtimelinking"; then
15696               shared_flag='$wl-G'
15697             else
15698               shared_flag='$wl-bM:SRE'
15699             fi
15700             shared_flag_aix='$wl-bM:SRE'
15701             shared_flag_svr4='$wl-G'
15702           fi
15703         fi
15704
15705         export_dynamic_flag_spec_CXX='$wl-bexpall'
15706         # It seems that -bexpall does not export symbols beginning with
15707         # underscore (_), so it is better to generate a list of symbols to
15708         # export.
15709         always_export_symbols_CXX=yes
15710         if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
15711           # Warning - without using the other runtime loading flags (-brtl),
15712           # -berok will link without error, but may produce a broken library.
15713           # The "-G" linker flag allows undefined symbols.
15714           no_undefined_flag_CXX='-bernotok'
15715           # Determine the default libpath from the value encoded in an empty
15716           # executable.
15717           if test set = "${lt_cv_aix_libpath+set}"; then
15718   aix_libpath=$lt_cv_aix_libpath
15719 else
15720   if ${lt_cv_aix_libpath__CXX+:} false; then :
15721   $as_echo_n "(cached) " >&6
15722 else
15723   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15724 /* end confdefs.h.  */
15725
15726 int
15727 main ()
15728 {
15729
15730   ;
15731   return 0;
15732 }
15733 _ACEOF
15734 if ac_fn_cxx_try_link "$LINENO"; then :
15735
15736   lt_aix_libpath_sed='
15737       /Import File Strings/,/^$/ {
15738           /^0/ {
15739               s/^0  *\([^ ]*\) *$/\1/
15740               p
15741           }
15742       }'
15743   lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15744   # Check for a 64-bit object if we didn't find anything.
15745   if test -z "$lt_cv_aix_libpath__CXX"; then
15746     lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15747   fi
15748 fi
15749 rm -f core conftest.err conftest.$ac_objext \
15750     conftest$ac_exeext conftest.$ac_ext
15751   if test -z "$lt_cv_aix_libpath__CXX"; then
15752     lt_cv_aix_libpath__CXX=/usr/lib:/lib
15753   fi
15754
15755 fi
15756
15757   aix_libpath=$lt_cv_aix_libpath__CXX
15758 fi
15759
15760           hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
15761
15762           archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
15763         else
15764           if test ia64 = "$host_cpu"; then
15765             hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib'
15766             allow_undefined_flag_CXX="-z nodefs"
15767             archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\$wl$no_entry_flag"' $compiler_flags $wl$allow_undefined_flag '"\$wl$exp_sym_flag:\$export_symbols"
15768           else
15769             # Determine the default libpath from the value encoded in an
15770             # empty executable.
15771             if test set = "${lt_cv_aix_libpath+set}"; then
15772   aix_libpath=$lt_cv_aix_libpath
15773 else
15774   if ${lt_cv_aix_libpath__CXX+:} false; then :
15775   $as_echo_n "(cached) " >&6
15776 else
15777   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15778 /* end confdefs.h.  */
15779
15780 int
15781 main ()
15782 {
15783
15784   ;
15785   return 0;
15786 }
15787 _ACEOF
15788 if ac_fn_cxx_try_link "$LINENO"; then :
15789
15790   lt_aix_libpath_sed='
15791       /Import File Strings/,/^$/ {
15792           /^0/ {
15793               s/^0  *\([^ ]*\) *$/\1/
15794               p
15795           }
15796       }'
15797   lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15798   # Check for a 64-bit object if we didn't find anything.
15799   if test -z "$lt_cv_aix_libpath__CXX"; then
15800     lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15801   fi
15802 fi
15803 rm -f core conftest.err conftest.$ac_objext \
15804     conftest$ac_exeext conftest.$ac_ext
15805   if test -z "$lt_cv_aix_libpath__CXX"; then
15806     lt_cv_aix_libpath__CXX=/usr/lib:/lib
15807   fi
15808
15809 fi
15810
15811   aix_libpath=$lt_cv_aix_libpath__CXX
15812 fi
15813
15814             hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
15815             # Warning - without using the other run time loading flags,
15816             # -berok will link without error, but may produce a broken library.
15817             no_undefined_flag_CXX=' $wl-bernotok'
15818             allow_undefined_flag_CXX=' $wl-berok'
15819             if test yes = "$with_gnu_ld"; then
15820               # We only use this code for GNU lds that support --whole-archive.
15821               whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
15822             else
15823               # Exported symbols can be pulled into shared objects from archives
15824               whole_archive_flag_spec_CXX='$convenience'
15825             fi
15826             archive_cmds_need_lc_CXX=yes
15827             archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
15828             # -brtl affects multiple linker settings, -berok does not and is overridden later
15829             compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
15830             if test svr4 != "$with_aix_soname"; then
15831               # This is similar to how AIX traditionally builds its shared
15832               # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
15833               archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
15834             fi
15835             if test aix != "$with_aix_soname"; then
15836               archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
15837             else
15838               # used by -dlpreopen to get the symbols
15839               archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
15840             fi
15841             archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d'
15842           fi
15843         fi
15844         ;;
15845
15846       beos*)
15847         if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15848           allow_undefined_flag_CXX=unsupported
15849           # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15850           # support --undefined.  This deserves some investigation.  FIXME
15851           archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15852         else
15853           ld_shlibs_CXX=no
15854         fi
15855         ;;
15856
15857       chorus*)
15858         case $cc_basename in
15859           *)
15860           # FIXME: insert proper C++ library support
15861           ld_shlibs_CXX=no
15862           ;;
15863         esac
15864         ;;
15865
15866       cygwin* | mingw* | pw32* | cegcc*)
15867         case $GXX,$cc_basename in
15868         ,cl* | no,cl*)
15869           # Native MSVC
15870           # hardcode_libdir_flag_spec is actually meaningless, as there is
15871           # no search path for DLLs.
15872           hardcode_libdir_flag_spec_CXX=' '
15873           allow_undefined_flag_CXX=unsupported
15874           always_export_symbols_CXX=yes
15875           file_list_spec_CXX='@'
15876           # Tell ltmain to make .lib files, not .a files.
15877           libext=lib
15878           # Tell ltmain to make .dll files, not .so files.
15879           shrext_cmds=.dll
15880           # FIXME: Setting linknames here is a bad hack.
15881           archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
15882           archive_expsym_cmds_CXX='if   test DEF = "`$SED -n     -e '\''s/^[     ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([     ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
15883               cp "$export_symbols" "$output_objdir/$soname.def";
15884               echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
15885             else
15886               $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
15887             fi~
15888             $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
15889             linknames='
15890           # The linker will not automatically build a static lib if we build a DLL.
15891           # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
15892           enable_shared_with_static_runtimes_CXX=yes
15893           # Don't use ranlib
15894           old_postinstall_cmds_CXX='chmod 644 $oldlib'
15895           postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
15896             lt_tool_outputfile="@TOOL_OUTPUT@"~
15897             case $lt_outputfile in
15898               *.exe|*.EXE) ;;
15899               *)
15900                 lt_outputfile=$lt_outputfile.exe
15901                 lt_tool_outputfile=$lt_tool_outputfile.exe
15902                 ;;
15903             esac~
15904             func_to_tool_file "$lt_outputfile"~
15905             if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
15906               $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
15907               $RM "$lt_outputfile.manifest";
15908             fi'
15909           ;;
15910         *)
15911           # g++
15912           # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
15913           # as there is no search path for DLLs.
15914           hardcode_libdir_flag_spec_CXX='-L$libdir'
15915           export_dynamic_flag_spec_CXX='$wl--export-all-symbols'
15916           allow_undefined_flag_CXX=unsupported
15917           always_export_symbols_CXX=no
15918           enable_shared_with_static_runtimes_CXX=yes
15919
15920           if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
15921             archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15922             # If the export-symbols file already is a .def file, use it as
15923             # is; otherwise, prepend EXPORTS...
15924             archive_expsym_cmds_CXX='if   test DEF = "`$SED -n     -e '\''s/^[   ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([     ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
15925               cp $export_symbols $output_objdir/$soname.def;
15926             else
15927               echo EXPORTS > $output_objdir/$soname.def;
15928               cat $export_symbols >> $output_objdir/$soname.def;
15929             fi~
15930             $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15931           else
15932             ld_shlibs_CXX=no
15933           fi
15934           ;;
15935         esac
15936         ;;
15937       darwin* | rhapsody*)
15938
15939
15940   archive_cmds_need_lc_CXX=no
15941   hardcode_direct_CXX=no
15942   hardcode_automatic_CXX=yes
15943   hardcode_shlibpath_var_CXX=unsupported
15944   if test yes = "$lt_cv_ld_force_load"; then
15945     whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
15946
15947   else
15948     whole_archive_flag_spec_CXX=''
15949   fi
15950   link_all_deplibs_CXX=yes
15951   allow_undefined_flag_CXX=$_lt_dar_allow_undefined
15952   case $cc_basename in
15953      ifort*|nagfor*) _lt_dar_can_shared=yes ;;
15954      *) _lt_dar_can_shared=$GCC ;;
15955   esac
15956   if test yes = "$_lt_dar_can_shared"; then
15957     output_verbose_link_cmd=func_echo_all
15958     archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
15959     module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
15960     archive_expsym_cmds_CXX="sed 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dar_export_syms$_lt_dsymutil"
15961     module_expsym_cmds_CXX="sed -e 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dar_export_syms$_lt_dsymutil"
15962        if test yes != "$lt_cv_apple_cc_single_mod"; then
15963       archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \$lib-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$lib-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring$_lt_dsymutil"
15964       archive_expsym_cmds_CXX="sed 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \$lib-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$lib-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring$_lt_dar_export_syms$_lt_dsymutil"
15965     fi
15966
15967   else
15968   ld_shlibs_CXX=no
15969   fi
15970
15971         ;;
15972
15973       os2*)
15974         hardcode_libdir_flag_spec_CXX='-L$libdir'
15975         hardcode_minus_L_CXX=yes
15976         allow_undefined_flag_CXX=unsupported
15977         shrext_cmds=.dll
15978         archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
15979           $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
15980           $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
15981           $ECHO EXPORTS >> $output_objdir/$libname.def~
15982           emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
15983           $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
15984           emximp -o $lib $output_objdir/$libname.def'
15985         archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
15986           $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
15987           $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
15988           $ECHO EXPORTS >> $output_objdir/$libname.def~
15989           prefix_cmds="$SED"~
15990           if test EXPORTS = "`$SED 1q $export_symbols`"; then
15991             prefix_cmds="$prefix_cmds -e 1d";
15992           fi~
15993           prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
15994           cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
15995           $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
15996           emximp -o $lib $output_objdir/$libname.def'
15997         old_archive_From_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
15998         enable_shared_with_static_runtimes_CXX=yes
15999         ;;
16000
16001       dgux*)
16002         case $cc_basename in
16003           ec++*)
16004             # FIXME: insert proper C++ library support
16005             ld_shlibs_CXX=no
16006             ;;
16007           ghcx*)
16008             # Green Hills C++ Compiler
16009             # FIXME: insert proper C++ library support
16010             ld_shlibs_CXX=no
16011             ;;
16012           *)
16013             # FIXME: insert proper C++ library support
16014             ld_shlibs_CXX=no
16015             ;;
16016         esac
16017         ;;
16018
16019       freebsd2.*)
16020         # C++ shared libraries reported to be fairly broken before
16021         # switch to ELF
16022         ld_shlibs_CXX=no
16023         ;;
16024
16025       freebsd-elf*)
16026         archive_cmds_need_lc_CXX=no
16027         ;;
16028
16029       freebsd* | dragonfly*)
16030         # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
16031         # conventions
16032         ld_shlibs_CXX=yes
16033         ;;
16034
16035       haiku*)
16036         archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16037         link_all_deplibs_CXX=yes
16038         ;;
16039
16040       hpux9*)
16041         hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
16042         hardcode_libdir_separator_CXX=:
16043         export_dynamic_flag_spec_CXX='$wl-E'
16044         hardcode_direct_CXX=yes
16045         hardcode_minus_L_CXX=yes # Not in the search PATH,
16046                                              # but as the default
16047                                              # location of the library.
16048
16049         case $cc_basename in
16050           CC*)
16051             # FIXME: insert proper C++ library support
16052             ld_shlibs_CXX=no
16053             ;;
16054           aCC*)
16055             archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
16056             # Commands to make compiler produce verbose output that lists
16057             # what "hidden" libraries, object files and flags are used when
16058             # linking a shared library.
16059             #
16060             # There doesn't appear to be a way to prevent this compiler from
16061             # explicitly linking system object files so we need to strip them
16062             # from the output so that they don't get included in the library
16063             # dependencies.
16064             output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
16065             ;;
16066           *)
16067             if test yes = "$GXX"; then
16068               archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
16069             else
16070               # FIXME: insert proper C++ library support
16071               ld_shlibs_CXX=no
16072             fi
16073             ;;
16074         esac
16075         ;;
16076
16077       hpux10*|hpux11*)
16078         if test no = "$with_gnu_ld"; then
16079           hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
16080           hardcode_libdir_separator_CXX=:
16081
16082           case $host_cpu in
16083             hppa*64*|ia64*)
16084               ;;
16085             *)
16086               export_dynamic_flag_spec_CXX='$wl-E'
16087               ;;
16088           esac
16089         fi
16090         case $host_cpu in
16091           hppa*64*|ia64*)
16092             hardcode_direct_CXX=no
16093             hardcode_shlibpath_var_CXX=no
16094             ;;
16095           *)
16096             hardcode_direct_CXX=yes
16097             hardcode_direct_absolute_CXX=yes
16098             hardcode_minus_L_CXX=yes # Not in the search PATH,
16099                                                  # but as the default
16100                                                  # location of the library.
16101             ;;
16102         esac
16103
16104         case $cc_basename in
16105           CC*)
16106             # FIXME: insert proper C++ library support
16107             ld_shlibs_CXX=no
16108             ;;
16109           aCC*)
16110             case $host_cpu in
16111               hppa*64*)
16112                 archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16113                 ;;
16114               ia64*)
16115                 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16116                 ;;
16117               *)
16118                 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16119                 ;;
16120             esac
16121             # Commands to make compiler produce verbose output that lists
16122             # what "hidden" libraries, object files and flags are used when
16123             # linking a shared library.
16124             #
16125             # There doesn't appear to be a way to prevent this compiler from
16126             # explicitly linking system object files so we need to strip them
16127             # from the output so that they don't get included in the library
16128             # dependencies.
16129             output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
16130             ;;
16131           *)
16132             if test yes = "$GXX"; then
16133               if test no = "$with_gnu_ld"; then
16134                 case $host_cpu in
16135                   hppa*64*)
16136                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16137                     ;;
16138                   ia64*)
16139                     archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16140                     ;;
16141                   *)
16142                     archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16143                     ;;
16144                 esac
16145               fi
16146             else
16147               # FIXME: insert proper C++ library support
16148               ld_shlibs_CXX=no
16149             fi
16150             ;;
16151         esac
16152         ;;
16153
16154       interix[3-9]*)
16155         hardcode_direct_CXX=no
16156         hardcode_shlibpath_var_CXX=no
16157         hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
16158         export_dynamic_flag_spec_CXX='$wl-E'
16159         # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16160         # Instead, shared libraries are loaded at an image base (0x10000000 by
16161         # default) and relocated if they conflict, which is a slow very memory
16162         # consuming and fragmenting process.  To avoid this, we pick a random,
16163         # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16164         # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
16165         archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16166         archive_expsym_cmds_CXX='sed "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--retain-symbols-file,$output_objdir/$soname.expsym $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16167         ;;
16168       irix5* | irix6*)
16169         case $cc_basename in
16170           CC*)
16171             # SGI C++
16172             archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
16173
16174             # Archives containing C++ object files must be created using
16175             # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
16176             # necessary to make sure instantiated templates are included
16177             # in the archive.
16178             old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
16179             ;;
16180           *)
16181             if test yes = "$GXX"; then
16182               if test no = "$with_gnu_ld"; then
16183                 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
16184               else
16185                 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` -o $lib'
16186               fi
16187             fi
16188             link_all_deplibs_CXX=yes
16189             ;;
16190         esac
16191         hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
16192         hardcode_libdir_separator_CXX=:
16193         inherit_rpath_CXX=yes
16194         ;;
16195
16196       linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
16197         case $cc_basename in
16198           KCC*)
16199             # Kuck and Associates, Inc. (KAI) C++ Compiler
16200
16201             # KCC will only create a shared library if the output file
16202             # ends with ".so" (or ".sl" for HP-UX), so rename the library
16203             # to its proper name (with version) after linking.
16204             archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
16205             archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib $wl-retain-symbols-file,$export_symbols; mv \$templib $lib'
16206             # Commands to make compiler produce verbose output that lists
16207             # what "hidden" libraries, object files and flags are used when
16208             # linking a shared library.
16209             #
16210             # There doesn't appear to be a way to prevent this compiler from
16211             # explicitly linking system object files so we need to strip them
16212             # from the output so that they don't get included in the library
16213             # dependencies.
16214             output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
16215
16216             hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
16217             export_dynamic_flag_spec_CXX='$wl--export-dynamic'
16218
16219             # Archives containing C++ object files must be created using
16220             # "CC -Bstatic", where "CC" is the KAI C++ compiler.
16221             old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
16222             ;;
16223           icpc* | ecpc* )
16224             # Intel C++
16225             with_gnu_ld=yes
16226             # version 8.0 and above of icpc choke on multiply defined symbols
16227             # if we add $predep_objects and $postdep_objects, however 7.1 and
16228             # earlier do not add the objects themselves.
16229             case `$CC -V 2>&1` in
16230               *"Version 7."*)
16231                 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
16232                 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
16233                 ;;
16234               *)  # Version 8.0 or newer
16235                 tmp_idyn=
16236                 case $host_cpu in
16237                   ia64*) tmp_idyn=' -i_dynamic';;
16238                 esac
16239                 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16240                 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
16241                 ;;
16242             esac
16243             archive_cmds_need_lc_CXX=no
16244             hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
16245             export_dynamic_flag_spec_CXX='$wl--export-dynamic'
16246             whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
16247             ;;
16248           pgCC* | pgcpp*)
16249             # Portland Group C++ compiler
16250             case `$CC -V` in
16251             *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
16252               prelink_cmds_CXX='tpldir=Template.dir~
16253                rm -rf $tpldir~
16254                $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
16255                compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
16256               old_archive_cmds_CXX='tpldir=Template.dir~
16257                 rm -rf $tpldir~
16258                 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
16259                 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
16260                 $RANLIB $oldlib'
16261               archive_cmds_CXX='tpldir=Template.dir~
16262                 rm -rf $tpldir~
16263                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
16264                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
16265               archive_expsym_cmds_CXX='tpldir=Template.dir~
16266                 rm -rf $tpldir~
16267                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
16268                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
16269               ;;
16270             *) # Version 6 and above use weak symbols
16271               archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
16272               archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
16273               ;;
16274             esac
16275
16276             hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir'
16277             export_dynamic_flag_spec_CXX='$wl--export-dynamic'
16278             whole_archive_flag_spec_CXX='$wl--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
16279             ;;
16280           cxx*)
16281             # Compaq C++
16282             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
16283             archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname  -o $lib $wl-retain-symbols-file $wl$export_symbols'
16284
16285             runpath_var=LD_RUN_PATH
16286             hardcode_libdir_flag_spec_CXX='-rpath $libdir'
16287             hardcode_libdir_separator_CXX=:
16288
16289             # Commands to make compiler produce verbose output that lists
16290             # what "hidden" libraries, object files and flags are used when
16291             # linking a shared library.
16292             #
16293             # There doesn't appear to be a way to prevent this compiler from
16294             # explicitly linking system object files so we need to strip them
16295             # from the output so that they don't get included in the library
16296             # dependencies.
16297             output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
16298             ;;
16299           xl* | mpixl* | bgxl*)
16300             # IBM XL 8.0 on PPC, with GNU ld
16301             hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
16302             export_dynamic_flag_spec_CXX='$wl--export-dynamic'
16303             archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16304             if test yes = "$supports_anon_versioning"; then
16305               archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
16306                 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16307                 echo "local: *; };" >> $output_objdir/$libname.ver~
16308                 $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
16309             fi
16310             ;;
16311           *)
16312             case `$CC -V 2>&1 | sed 5q` in
16313             *Sun\ C*)
16314               # Sun C++ 5.9
16315               no_undefined_flag_CXX=' -zdefs'
16316               archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16317               archive_expsym_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file $wl$export_symbols'
16318               hardcode_libdir_flag_spec_CXX='-R$libdir'
16319               whole_archive_flag_spec_CXX='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
16320               compiler_needs_object_CXX=yes
16321
16322               # Not sure whether something based on
16323               # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
16324               # would be better.
16325               output_verbose_link_cmd='func_echo_all'
16326
16327               # Archives containing C++ object files must be created using
16328               # "CC -xar", where "CC" is the Sun C++ compiler.  This is
16329               # necessary to make sure instantiated templates are included
16330               # in the archive.
16331               old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
16332               ;;
16333             esac
16334             ;;
16335         esac
16336         ;;
16337
16338       lynxos*)
16339         # FIXME: insert proper C++ library support
16340         ld_shlibs_CXX=no
16341         ;;
16342
16343       m88k*)
16344         # FIXME: insert proper C++ library support
16345         ld_shlibs_CXX=no
16346         ;;
16347
16348       mvs*)
16349         case $cc_basename in
16350           cxx*)
16351             # FIXME: insert proper C++ library support
16352             ld_shlibs_CXX=no
16353             ;;
16354           *)
16355             # FIXME: insert proper C++ library support
16356             ld_shlibs_CXX=no
16357             ;;
16358         esac
16359         ;;
16360
16361       netbsd*)
16362         if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16363           archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
16364           wlarc=
16365           hardcode_libdir_flag_spec_CXX='-R$libdir'
16366           hardcode_direct_CXX=yes
16367           hardcode_shlibpath_var_CXX=no
16368         fi
16369         # Workaround some broken pre-1.5 toolchains
16370         output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
16371         ;;
16372
16373       *nto* | *qnx*)
16374         ld_shlibs_CXX=yes
16375         ;;
16376
16377       openbsd* | bitrig*)
16378         if test -f /usr/libexec/ld.so; then
16379           hardcode_direct_CXX=yes
16380           hardcode_shlibpath_var_CXX=no
16381           hardcode_direct_absolute_CXX=yes
16382           archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
16383           hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
16384           if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
16385             archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib'
16386             export_dynamic_flag_spec_CXX='$wl-E'
16387             whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
16388           fi
16389           output_verbose_link_cmd=func_echo_all
16390         else
16391           ld_shlibs_CXX=no
16392         fi
16393         ;;
16394
16395       osf3* | osf4* | osf5*)
16396         case $cc_basename in
16397           KCC*)
16398             # Kuck and Associates, Inc. (KAI) C++ Compiler
16399
16400             # KCC will only create a shared library if the output file
16401             # ends with ".so" (or ".sl" for HP-UX), so rename the library
16402             # to its proper name (with version) after linking.
16403             archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
16404
16405             hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
16406             hardcode_libdir_separator_CXX=:
16407
16408             # Archives containing C++ object files must be created using
16409             # the KAI C++ compiler.
16410             case $host in
16411               osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
16412               *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
16413             esac
16414             ;;
16415           RCC*)
16416             # Rational C++ 2.4.1
16417             # FIXME: insert proper C++ library support
16418             ld_shlibs_CXX=no
16419             ;;
16420           cxx*)
16421             case $host in
16422               osf3*)
16423                 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
16424                 archive_cmds_CXX='$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $soname `test -n "$verstring" && func_echo_all "$wl-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
16425                 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
16426                 ;;
16427               *)
16428                 allow_undefined_flag_CXX=' -expect_unresolved \*'
16429                 archive_cmds_CXX='$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
16430                 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
16431                   echo "-hidden">> $lib.exp~
16432                   $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname $wl-input $wl$lib.exp  `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~
16433                   $RM $lib.exp'
16434                 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
16435                 ;;
16436             esac
16437
16438             hardcode_libdir_separator_CXX=:
16439
16440             # Commands to make compiler produce verbose output that lists
16441             # what "hidden" libraries, object files and flags are used when
16442             # linking a shared library.
16443             #
16444             # There doesn't appear to be a way to prevent this compiler from
16445             # explicitly linking system object files so we need to strip them
16446             # from the output so that they don't get included in the library
16447             # dependencies.
16448             output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
16449             ;;
16450           *)
16451             if test yes,no = "$GXX,$with_gnu_ld"; then
16452               allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
16453               case $host in
16454                 osf3*)
16455                   archive_cmds_CXX='$CC -shared -nostdlib $allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
16456                   ;;
16457                 *)
16458                   archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
16459                   ;;
16460               esac
16461
16462               hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
16463               hardcode_libdir_separator_CXX=:
16464
16465               # Commands to make compiler produce verbose output that lists
16466               # what "hidden" libraries, object files and flags are used when
16467               # linking a shared library.
16468               output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
16469
16470             else
16471               # FIXME: insert proper C++ library support
16472               ld_shlibs_CXX=no
16473             fi
16474             ;;
16475         esac
16476         ;;
16477
16478       psos*)
16479         # FIXME: insert proper C++ library support
16480         ld_shlibs_CXX=no
16481         ;;
16482
16483       sunos4*)
16484         case $cc_basename in
16485           CC*)
16486             # Sun C++ 4.x
16487             # FIXME: insert proper C++ library support
16488             ld_shlibs_CXX=no
16489             ;;
16490           lcc*)
16491             # Lucid
16492             # FIXME: insert proper C++ library support
16493             ld_shlibs_CXX=no
16494             ;;
16495           *)
16496             # FIXME: insert proper C++ library support
16497             ld_shlibs_CXX=no
16498             ;;
16499         esac
16500         ;;
16501
16502       solaris*)
16503         case $cc_basename in
16504           CC* | sunCC*)
16505             # Sun C++ 4.2, 5.x and Centerline C++
16506             archive_cmds_need_lc_CXX=yes
16507             no_undefined_flag_CXX=' -zdefs'
16508             archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16509             archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16510               $CC -G$allow_undefined_flag $wl-M $wl$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
16511
16512             hardcode_libdir_flag_spec_CXX='-R$libdir'
16513             hardcode_shlibpath_var_CXX=no
16514             case $host_os in
16515               solaris2.[0-5] | solaris2.[0-5].*) ;;
16516               *)
16517                 # The compiler driver will combine and reorder linker options,
16518                 # but understands '-z linker_flag'.
16519                 # Supported since Solaris 2.6 (maybe 2.5.1?)
16520                 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
16521                 ;;
16522             esac
16523             link_all_deplibs_CXX=yes
16524
16525             output_verbose_link_cmd='func_echo_all'
16526
16527             # Archives containing C++ object files must be created using
16528             # "CC -xar", where "CC" is the Sun C++ compiler.  This is
16529             # necessary to make sure instantiated templates are included
16530             # in the archive.
16531             old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
16532             ;;
16533           gcx*)
16534             # Green Hills C++ Compiler
16535             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
16536
16537             # The C++ compiler must be used to create the archive.
16538             old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
16539             ;;
16540           *)
16541             # GNU C++ compiler with Solaris linker
16542             if test yes,no = "$GXX,$with_gnu_ld"; then
16543               no_undefined_flag_CXX=' $wl-z ${wl}defs'
16544               if $CC --version | $GREP -v '^2\.7' > /dev/null; then
16545                 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
16546                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16547                   $CC -shared $pic_flag -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
16548
16549                 # Commands to make compiler produce verbose output that lists
16550                 # what "hidden" libraries, object files and flags are used when
16551                 # linking a shared library.
16552                 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
16553               else
16554                 # g++ 2.7 appears to require '-G' NOT '-shared' on this
16555                 # platform.
16556                 archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
16557                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16558                   $CC -G -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
16559
16560                 # Commands to make compiler produce verbose output that lists
16561                 # what "hidden" libraries, object files and flags are used when
16562                 # linking a shared library.
16563                 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
16564               fi
16565
16566               hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir'
16567               case $host_os in
16568                 solaris2.[0-5] | solaris2.[0-5].*) ;;
16569                 *)
16570                   whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
16571                   ;;
16572               esac
16573             fi
16574             ;;
16575         esac
16576         ;;
16577
16578     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
16579       no_undefined_flag_CXX='$wl-z,text'
16580       archive_cmds_need_lc_CXX=no
16581       hardcode_shlibpath_var_CXX=no
16582       runpath_var='LD_RUN_PATH'
16583
16584       case $cc_basename in
16585         CC*)
16586           archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16587           archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16588           ;;
16589         *)
16590           archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16591           archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16592           ;;
16593       esac
16594       ;;
16595
16596       sysv5* | sco3.2v5* | sco5v6*)
16597         # Note: We CANNOT use -z defs as we might desire, because we do not
16598         # link with -lc, and that would cause any symbols used from libc to
16599         # always be unresolved, which means just about no library would
16600         # ever link correctly.  If we're not using GNU ld we use -z text
16601         # though, which does catch some bad symbols but isn't as heavy-handed
16602         # as -z defs.
16603         no_undefined_flag_CXX='$wl-z,text'
16604         allow_undefined_flag_CXX='$wl-z,nodefs'
16605         archive_cmds_need_lc_CXX=no
16606         hardcode_shlibpath_var_CXX=no
16607         hardcode_libdir_flag_spec_CXX='$wl-R,$libdir'
16608         hardcode_libdir_separator_CXX=':'
16609         link_all_deplibs_CXX=yes
16610         export_dynamic_flag_spec_CXX='$wl-Bexport'
16611         runpath_var='LD_RUN_PATH'
16612
16613         case $cc_basename in
16614           CC*)
16615             archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16616             archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16617             old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
16618               '"$old_archive_cmds_CXX"
16619             reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
16620               '"$reload_cmds_CXX"
16621             ;;
16622           *)
16623             archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16624             archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16625             ;;
16626         esac
16627       ;;
16628
16629       tandem*)
16630         case $cc_basename in
16631           NCC*)
16632             # NonStop-UX NCC 3.20
16633             # FIXME: insert proper C++ library support
16634             ld_shlibs_CXX=no
16635             ;;
16636           *)
16637             # FIXME: insert proper C++ library support
16638             ld_shlibs_CXX=no
16639             ;;
16640         esac
16641         ;;
16642
16643       vxworks*)
16644         # FIXME: insert proper C++ library support
16645         ld_shlibs_CXX=no
16646         ;;
16647
16648       *)
16649         # FIXME: insert proper C++ library support
16650         ld_shlibs_CXX=no
16651         ;;
16652     esac
16653
16654     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
16655 $as_echo "$ld_shlibs_CXX" >&6; }
16656     test no = "$ld_shlibs_CXX" && can_build_shared=no
16657
16658     GCC_CXX=$GXX
16659     LD_CXX=$LD
16660
16661     ## CAVEAT EMPTOR:
16662     ## There is no encapsulation within the following macros, do not change
16663     ## the running order or otherwise move them around unless you know exactly
16664     ## what you are doing...
16665     # Dependencies to place before and after the object being linked:
16666 predep_objects_CXX=
16667 postdep_objects_CXX=
16668 predeps_CXX=
16669 postdeps_CXX=
16670 compiler_lib_search_path_CXX=
16671
16672 cat > conftest.$ac_ext <<_LT_EOF
16673 class Foo
16674 {
16675 public:
16676   Foo (void) { a = 0; }
16677 private:
16678   int a;
16679 };
16680 _LT_EOF
16681
16682
16683 _lt_libdeps_save_CFLAGS=$CFLAGS
16684 case "$CC $CFLAGS " in #(
16685 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
16686 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
16687 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
16688 esac
16689
16690 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16691   (eval $ac_compile) 2>&5
16692   ac_status=$?
16693   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16694   test $ac_status = 0; }; then
16695   # Parse the compiler output and extract the necessary
16696   # objects, libraries and library flags.
16697
16698   # Sentinel used to keep track of whether or not we are before
16699   # the conftest object file.
16700   pre_test_object_deps_done=no
16701
16702   for p in `eval "$output_verbose_link_cmd"`; do
16703     case $prev$p in
16704
16705     -L* | -R* | -l*)
16706        # Some compilers place space between "-{L,R}" and the path.
16707        # Remove the space.
16708        if test x-L = "$p" ||
16709           test x-R = "$p"; then
16710          prev=$p
16711          continue
16712        fi
16713
16714        # Expand the sysroot to ease extracting the directories later.
16715        if test -z "$prev"; then
16716          case $p in
16717          -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
16718          -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
16719          -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
16720          esac
16721        fi
16722        case $p in
16723        =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
16724        esac
16725        if test no = "$pre_test_object_deps_done"; then
16726          case $prev in
16727          -L | -R)
16728            # Internal compiler library paths should come after those
16729            # provided the user.  The postdeps already come after the
16730            # user supplied libs so there is no need to process them.
16731            if test -z "$compiler_lib_search_path_CXX"; then
16732              compiler_lib_search_path_CXX=$prev$p
16733            else
16734              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p"
16735            fi
16736            ;;
16737          # The "-l" case would never come before the object being
16738          # linked, so don't bother handling this case.
16739          esac
16740        else
16741          if test -z "$postdeps_CXX"; then
16742            postdeps_CXX=$prev$p
16743          else
16744            postdeps_CXX="${postdeps_CXX} $prev$p"
16745          fi
16746        fi
16747        prev=
16748        ;;
16749
16750     *.lto.$objext) ;; # Ignore GCC LTO objects
16751     *.$objext)
16752        # This assumes that the test object file only shows up
16753        # once in the compiler output.
16754        if test "$p" = "conftest.$objext"; then
16755          pre_test_object_deps_done=yes
16756          continue
16757        fi
16758
16759        if test no = "$pre_test_object_deps_done"; then
16760          if test -z "$predep_objects_CXX"; then
16761            predep_objects_CXX=$p
16762          else
16763            predep_objects_CXX="$predep_objects_CXX $p"
16764          fi
16765        else
16766          if test -z "$postdep_objects_CXX"; then
16767            postdep_objects_CXX=$p
16768          else
16769            postdep_objects_CXX="$postdep_objects_CXX $p"
16770          fi
16771        fi
16772        ;;
16773
16774     *) ;; # Ignore the rest.
16775
16776     esac
16777   done
16778
16779   # Clean up.
16780   rm -f a.out a.exe
16781 else
16782   echo "libtool.m4: error: problem compiling CXX test program"
16783 fi
16784
16785 $RM -f confest.$objext
16786 CFLAGS=$_lt_libdeps_save_CFLAGS
16787
16788 # PORTME: override above test on systems where it is broken
16789 case $host_os in
16790 interix[3-9]*)
16791   # Interix 3.5 installs completely hosed .la files for C++, so rather than
16792   # hack all around it, let's just trust "g++" to DTRT.
16793   predep_objects_CXX=
16794   postdep_objects_CXX=
16795   postdeps_CXX=
16796   ;;
16797 esac
16798
16799
16800 case " $postdeps_CXX " in
16801 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
16802 esac
16803  compiler_lib_search_dirs_CXX=
16804 if test -n "${compiler_lib_search_path_CXX}"; then
16805  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'`
16806 fi
16807
16808
16809
16810
16811
16812
16813
16814
16815
16816
16817
16818
16819
16820
16821
16822
16823
16824
16825
16826
16827
16828
16829
16830
16831
16832
16833
16834
16835
16836
16837
16838     lt_prog_compiler_wl_CXX=
16839 lt_prog_compiler_pic_CXX=
16840 lt_prog_compiler_static_CXX=
16841
16842
16843   # C++ specific cases for pic, static, wl, etc.
16844   if test yes = "$GXX"; then
16845     lt_prog_compiler_wl_CXX='-Wl,'
16846     lt_prog_compiler_static_CXX='-static'
16847
16848     case $host_os in
16849     aix*)
16850       # All AIX code is PIC.
16851       if test ia64 = "$host_cpu"; then
16852         # AIX 5 now supports IA64 processor
16853         lt_prog_compiler_static_CXX='-Bstatic'
16854       fi
16855       lt_prog_compiler_pic_CXX='-fPIC'
16856       ;;
16857
16858     amigaos*)
16859       case $host_cpu in
16860       powerpc)
16861             # see comment about AmigaOS4 .so support
16862             lt_prog_compiler_pic_CXX='-fPIC'
16863         ;;
16864       m68k)
16865             # FIXME: we need at least 68020 code to build shared libraries, but
16866             # adding the '-m68020' flag to GCC prevents building anything better,
16867             # like '-m68040'.
16868             lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
16869         ;;
16870       esac
16871       ;;
16872
16873     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16874       # PIC is the default for these OSes.
16875       ;;
16876     mingw* | cygwin* | os2* | pw32* | cegcc*)
16877       # This hack is so that the source file can tell whether it is being
16878       # built for inclusion in a dll (and should export symbols for example).
16879       # Although the cygwin gcc ignores -fPIC, still need this for old-style
16880       # (--disable-auto-import) libraries
16881       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
16882       case $host_os in
16883       os2*)
16884         lt_prog_compiler_static_CXX='$wl-static'
16885         ;;
16886       esac
16887       ;;
16888     darwin* | rhapsody*)
16889       # PIC is the default on this platform
16890       # Common symbols not allowed in MH_DYLIB files
16891       lt_prog_compiler_pic_CXX='-fno-common'
16892       ;;
16893     *djgpp*)
16894       # DJGPP does not support shared libraries at all
16895       lt_prog_compiler_pic_CXX=
16896       ;;
16897     haiku*)
16898       # PIC is the default for Haiku.
16899       # The "-static" flag exists, but is broken.
16900       lt_prog_compiler_static_CXX=
16901       ;;
16902     interix[3-9]*)
16903       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16904       # Instead, we relocate shared libraries at runtime.
16905       ;;
16906     sysv4*MP*)
16907       if test -d /usr/nec; then
16908         lt_prog_compiler_pic_CXX=-Kconform_pic
16909       fi
16910       ;;
16911     hpux*)
16912       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
16913       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
16914       # sets the default TLS model and affects inlining.
16915       case $host_cpu in
16916       hppa*64*)
16917         ;;
16918       *)
16919         lt_prog_compiler_pic_CXX='-fPIC'
16920         ;;
16921       esac
16922       ;;
16923     *qnx* | *nto*)
16924       # QNX uses GNU C++, but need to define -shared option too, otherwise
16925       # it will coredump.
16926       lt_prog_compiler_pic_CXX='-fPIC -shared'
16927       ;;
16928     *)
16929       lt_prog_compiler_pic_CXX='-fPIC'
16930       ;;
16931     esac
16932   else
16933     case $host_os in
16934       aix[4-9]*)
16935         # All AIX code is PIC.
16936         if test ia64 = "$host_cpu"; then
16937           # AIX 5 now supports IA64 processor
16938           lt_prog_compiler_static_CXX='-Bstatic'
16939         else
16940           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
16941         fi
16942         ;;
16943       chorus*)
16944         case $cc_basename in
16945         cxch68*)
16946           # Green Hills C++ Compiler
16947           # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
16948           ;;
16949         esac
16950         ;;
16951       mingw* | cygwin* | os2* | pw32* | cegcc*)
16952         # This hack is so that the source file can tell whether it is being
16953         # built for inclusion in a dll (and should export symbols for example).
16954         lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
16955         ;;
16956       dgux*)
16957         case $cc_basename in
16958           ec++*)
16959             lt_prog_compiler_pic_CXX='-KPIC'
16960             ;;
16961           ghcx*)
16962             # Green Hills C++ Compiler
16963             lt_prog_compiler_pic_CXX='-pic'
16964             ;;
16965           *)
16966             ;;
16967         esac
16968         ;;
16969       freebsd* | dragonfly*)
16970         # FreeBSD uses GNU C++
16971         ;;
16972       hpux9* | hpux10* | hpux11*)
16973         case $cc_basename in
16974           CC*)
16975             lt_prog_compiler_wl_CXX='-Wl,'
16976             lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
16977             if test ia64 != "$host_cpu"; then
16978               lt_prog_compiler_pic_CXX='+Z'
16979             fi
16980             ;;
16981           aCC*)
16982             lt_prog_compiler_wl_CXX='-Wl,'
16983             lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
16984             case $host_cpu in
16985             hppa*64*|ia64*)
16986               # +Z the default
16987               ;;
16988             *)
16989               lt_prog_compiler_pic_CXX='+Z'
16990               ;;
16991             esac
16992             ;;
16993           *)
16994             ;;
16995         esac
16996         ;;
16997       interix*)
16998         # This is c89, which is MS Visual C++ (no shared libs)
16999         # Anyone wants to do a port?
17000         ;;
17001       irix5* | irix6* | nonstopux*)
17002         case $cc_basename in
17003           CC*)
17004             lt_prog_compiler_wl_CXX='-Wl,'
17005             lt_prog_compiler_static_CXX='-non_shared'
17006             # CC pic flag -KPIC is the default.
17007             ;;
17008           *)
17009             ;;
17010         esac
17011         ;;
17012       linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
17013         case $cc_basename in
17014           KCC*)
17015             # KAI C++ Compiler
17016             lt_prog_compiler_wl_CXX='--backend -Wl,'
17017             lt_prog_compiler_pic_CXX='-fPIC'
17018             ;;
17019           ecpc* )
17020             # old Intel C++ for x86_64, which still supported -KPIC.
17021             lt_prog_compiler_wl_CXX='-Wl,'
17022             lt_prog_compiler_pic_CXX='-KPIC'
17023             lt_prog_compiler_static_CXX='-static'
17024             ;;
17025           icpc* )
17026             # Intel C++, used to be incompatible with GCC.
17027             # ICC 10 doesn't accept -KPIC any more.
17028             lt_prog_compiler_wl_CXX='-Wl,'
17029             lt_prog_compiler_pic_CXX='-fPIC'
17030             lt_prog_compiler_static_CXX='-static'
17031             ;;
17032           pgCC* | pgcpp*)
17033             # Portland Group C++ compiler
17034             lt_prog_compiler_wl_CXX='-Wl,'
17035             lt_prog_compiler_pic_CXX='-fpic'
17036             lt_prog_compiler_static_CXX='-Bstatic'
17037             ;;
17038           cxx*)
17039             # Compaq C++
17040             # Make sure the PIC flag is empty.  It appears that all Alpha
17041             # Linux and Compaq Tru64 Unix objects are PIC.
17042             lt_prog_compiler_pic_CXX=
17043             lt_prog_compiler_static_CXX='-non_shared'
17044             ;;
17045           xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
17046             # IBM XL 8.0, 9.0 on PPC and BlueGene
17047             lt_prog_compiler_wl_CXX='-Wl,'
17048             lt_prog_compiler_pic_CXX='-qpic'
17049             lt_prog_compiler_static_CXX='-qstaticlink'
17050             ;;
17051           *)
17052             case `$CC -V 2>&1 | sed 5q` in
17053             *Sun\ C*)
17054               # Sun C++ 5.9
17055               lt_prog_compiler_pic_CXX='-KPIC'
17056               lt_prog_compiler_static_CXX='-Bstatic'
17057               lt_prog_compiler_wl_CXX='-Qoption ld '
17058               ;;
17059             esac
17060             ;;
17061         esac
17062         ;;
17063       lynxos*)
17064         ;;
17065       m88k*)
17066         ;;
17067       mvs*)
17068         case $cc_basename in
17069           cxx*)
17070             lt_prog_compiler_pic_CXX='-W c,exportall'
17071             ;;
17072           *)
17073             ;;
17074         esac
17075         ;;
17076       netbsd*)
17077         ;;
17078       *qnx* | *nto*)
17079         # QNX uses GNU C++, but need to define -shared option too, otherwise
17080         # it will coredump.
17081         lt_prog_compiler_pic_CXX='-fPIC -shared'
17082         ;;
17083       osf3* | osf4* | osf5*)
17084         case $cc_basename in
17085           KCC*)
17086             lt_prog_compiler_wl_CXX='--backend -Wl,'
17087             ;;
17088           RCC*)
17089             # Rational C++ 2.4.1
17090             lt_prog_compiler_pic_CXX='-pic'
17091             ;;
17092           cxx*)
17093             # Digital/Compaq C++
17094             lt_prog_compiler_wl_CXX='-Wl,'
17095             # Make sure the PIC flag is empty.  It appears that all Alpha
17096             # Linux and Compaq Tru64 Unix objects are PIC.
17097             lt_prog_compiler_pic_CXX=
17098             lt_prog_compiler_static_CXX='-non_shared'
17099             ;;
17100           *)
17101             ;;
17102         esac
17103         ;;
17104       psos*)
17105         ;;
17106       solaris*)
17107         case $cc_basename in
17108           CC* | sunCC*)
17109             # Sun C++ 4.2, 5.x and Centerline C++
17110             lt_prog_compiler_pic_CXX='-KPIC'
17111             lt_prog_compiler_static_CXX='-Bstatic'
17112             lt_prog_compiler_wl_CXX='-Qoption ld '
17113             ;;
17114           gcx*)
17115             # Green Hills C++ Compiler
17116             lt_prog_compiler_pic_CXX='-PIC'
17117             ;;
17118           *)
17119             ;;
17120         esac
17121         ;;
17122       sunos4*)
17123         case $cc_basename in
17124           CC*)
17125             # Sun C++ 4.x
17126             lt_prog_compiler_pic_CXX='-pic'
17127             lt_prog_compiler_static_CXX='-Bstatic'
17128             ;;
17129           lcc*)
17130             # Lucid
17131             lt_prog_compiler_pic_CXX='-pic'
17132             ;;
17133           *)
17134             ;;
17135         esac
17136         ;;
17137       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17138         case $cc_basename in
17139           CC*)
17140             lt_prog_compiler_wl_CXX='-Wl,'
17141             lt_prog_compiler_pic_CXX='-KPIC'
17142             lt_prog_compiler_static_CXX='-Bstatic'
17143             ;;
17144         esac
17145         ;;
17146       tandem*)
17147         case $cc_basename in
17148           NCC*)
17149             # NonStop-UX NCC 3.20
17150             lt_prog_compiler_pic_CXX='-KPIC'
17151             ;;
17152           *)
17153             ;;
17154         esac
17155         ;;
17156       vxworks*)
17157         ;;
17158       *)
17159         lt_prog_compiler_can_build_shared_CXX=no
17160         ;;
17161     esac
17162   fi
17163
17164 case $host_os in
17165   # For platforms that do not support PIC, -DPIC is meaningless:
17166   *djgpp*)
17167     lt_prog_compiler_pic_CXX=
17168     ;;
17169   *)
17170     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
17171     ;;
17172 esac
17173
17174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
17175 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
17176 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
17177   $as_echo_n "(cached) " >&6
17178 else
17179   lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
17180 fi
17181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
17182 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
17183 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
17184
17185 #
17186 # Check to make sure the PIC flag actually works.
17187 #
17188 if test -n "$lt_prog_compiler_pic_CXX"; then
17189   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
17190 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
17191 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
17192   $as_echo_n "(cached) " >&6
17193 else
17194   lt_cv_prog_compiler_pic_works_CXX=no
17195    ac_outfile=conftest.$ac_objext
17196    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17197    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"  ## exclude from sc_useless_quotes_in_assignment
17198    # Insert the option either (1) after the last *FLAGS variable, or
17199    # (2) before a word containing "conftest.", or (3) at the end.
17200    # Note that $ac_compile itself does not contain backslashes and begins
17201    # with a dollar sign (not a hyphen), so the echo should work correctly.
17202    # The option is referenced via a variable to avoid confusing sed.
17203    lt_compile=`echo "$ac_compile" | $SED \
17204    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17205    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17206    -e 's:$: $lt_compiler_flag:'`
17207    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
17208    (eval "$lt_compile" 2>conftest.err)
17209    ac_status=$?
17210    cat conftest.err >&5
17211    echo "$as_me:$LINENO: \$? = $ac_status" >&5
17212    if (exit $ac_status) && test -s "$ac_outfile"; then
17213      # The compiler can only warn and ignore the option if not recognized
17214      # So say no if there are warnings other than the usual output.
17215      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
17216      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17217      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17218        lt_cv_prog_compiler_pic_works_CXX=yes
17219      fi
17220    fi
17221    $RM conftest*
17222
17223 fi
17224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
17225 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
17226
17227 if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
17228     case $lt_prog_compiler_pic_CXX in
17229      "" | " "*) ;;
17230      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
17231      esac
17232 else
17233     lt_prog_compiler_pic_CXX=
17234      lt_prog_compiler_can_build_shared_CXX=no
17235 fi
17236
17237 fi
17238
17239
17240
17241
17242
17243 #
17244 # Check to make sure the static flag actually works.
17245 #
17246 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
17247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17248 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
17249 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
17250   $as_echo_n "(cached) " >&6
17251 else
17252   lt_cv_prog_compiler_static_works_CXX=no
17253    save_LDFLAGS=$LDFLAGS
17254    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17255    echo "$lt_simple_link_test_code" > conftest.$ac_ext
17256    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17257      # The linker can only warn and ignore the option if not recognized
17258      # So say no if there are warnings
17259      if test -s conftest.err; then
17260        # Append any errors to the config.log.
17261        cat conftest.err 1>&5
17262        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
17263        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17264        if diff conftest.exp conftest.er2 >/dev/null; then
17265          lt_cv_prog_compiler_static_works_CXX=yes
17266        fi
17267      else
17268        lt_cv_prog_compiler_static_works_CXX=yes
17269      fi
17270    fi
17271    $RM -r conftest*
17272    LDFLAGS=$save_LDFLAGS
17273
17274 fi
17275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
17276 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
17277
17278 if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
17279     :
17280 else
17281     lt_prog_compiler_static_CXX=
17282 fi
17283
17284
17285
17286
17287     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
17288 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
17289 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
17290   $as_echo_n "(cached) " >&6
17291 else
17292   lt_cv_prog_compiler_c_o_CXX=no
17293    $RM -r conftest 2>/dev/null
17294    mkdir conftest
17295    cd conftest
17296    mkdir out
17297    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17298
17299    lt_compiler_flag="-o out/conftest2.$ac_objext"
17300    # Insert the option either (1) after the last *FLAGS variable, or
17301    # (2) before a word containing "conftest.", or (3) at the end.
17302    # Note that $ac_compile itself does not contain backslashes and begins
17303    # with a dollar sign (not a hyphen), so the echo should work correctly.
17304    lt_compile=`echo "$ac_compile" | $SED \
17305    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17306    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17307    -e 's:$: $lt_compiler_flag:'`
17308    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
17309    (eval "$lt_compile" 2>out/conftest.err)
17310    ac_status=$?
17311    cat out/conftest.err >&5
17312    echo "$as_me:$LINENO: \$? = $ac_status" >&5
17313    if (exit $ac_status) && test -s out/conftest2.$ac_objext
17314    then
17315      # The compiler can only warn and ignore the option if not recognized
17316      # So say no if there are warnings
17317      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
17318      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17319      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17320        lt_cv_prog_compiler_c_o_CXX=yes
17321      fi
17322    fi
17323    chmod u+w . 2>&5
17324    $RM conftest*
17325    # SGI C++ compiler will create directory out/ii_files/ for
17326    # template instantiation
17327    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
17328    $RM out/* && rmdir out
17329    cd ..
17330    $RM -r conftest
17331    $RM conftest*
17332
17333 fi
17334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
17335 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
17336
17337
17338
17339     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
17340 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
17341 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
17342   $as_echo_n "(cached) " >&6
17343 else
17344   lt_cv_prog_compiler_c_o_CXX=no
17345    $RM -r conftest 2>/dev/null
17346    mkdir conftest
17347    cd conftest
17348    mkdir out
17349    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17350
17351    lt_compiler_flag="-o out/conftest2.$ac_objext"
17352    # Insert the option either (1) after the last *FLAGS variable, or
17353    # (2) before a word containing "conftest.", or (3) at the end.
17354    # Note that $ac_compile itself does not contain backslashes and begins
17355    # with a dollar sign (not a hyphen), so the echo should work correctly.
17356    lt_compile=`echo "$ac_compile" | $SED \
17357    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17358    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17359    -e 's:$: $lt_compiler_flag:'`
17360    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
17361    (eval "$lt_compile" 2>out/conftest.err)
17362    ac_status=$?
17363    cat out/conftest.err >&5
17364    echo "$as_me:$LINENO: \$? = $ac_status" >&5
17365    if (exit $ac_status) && test -s out/conftest2.$ac_objext
17366    then
17367      # The compiler can only warn and ignore the option if not recognized
17368      # So say no if there are warnings
17369      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
17370      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17371      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17372        lt_cv_prog_compiler_c_o_CXX=yes
17373      fi
17374    fi
17375    chmod u+w . 2>&5
17376    $RM conftest*
17377    # SGI C++ compiler will create directory out/ii_files/ for
17378    # template instantiation
17379    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
17380    $RM out/* && rmdir out
17381    cd ..
17382    $RM -r conftest
17383    $RM conftest*
17384
17385 fi
17386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
17387 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
17388
17389
17390
17391
17392 hard_links=nottested
17393 if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then
17394   # do not overwrite the value of need_locks provided by the user
17395   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
17396 $as_echo_n "checking if we can lock with hard links... " >&6; }
17397   hard_links=yes
17398   $RM conftest*
17399   ln conftest.a conftest.b 2>/dev/null && hard_links=no
17400   touch conftest.a
17401   ln conftest.a conftest.b 2>&5 || hard_links=no
17402   ln conftest.a conftest.b 2>/dev/null && hard_links=no
17403   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
17404 $as_echo "$hard_links" >&6; }
17405   if test no = "$hard_links"; then
17406     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
17407 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
17408     need_locks=warn
17409   fi
17410 else
17411   need_locks=no
17412 fi
17413
17414
17415
17416     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17417 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
17418
17419   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17420   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17421   case $host_os in
17422   aix[4-9]*)
17423     # If we're using GNU nm, then we don't want the "-C" option.
17424     # -C means demangle to GNU nm, but means don't demangle to AIX nm.
17425     # Without the "-l" option, or with the "-B" option, AIX nm treats
17426     # weak defined symbols like other global defined symbols, whereas
17427     # GNU nm marks them as "W".
17428     # While the 'weak' keyword is ignored in the Export File, we need
17429     # it in the Import File for the 'aix-soname' feature, so we have
17430     # to replace the "-B" option with "-P" for AIX nm.
17431     if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
17432       export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
17433     else
17434       export_symbols_cmds_CXX='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
17435     fi
17436     ;;
17437   pw32*)
17438     export_symbols_cmds_CXX=$ltdll_cmds
17439     ;;
17440   cygwin* | mingw* | cegcc*)
17441     case $cc_basename in
17442     cl*)
17443       exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
17444       ;;
17445     *)
17446       export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
17447       exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
17448       ;;
17449     esac
17450     ;;
17451   *)
17452     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17453     ;;
17454   esac
17455
17456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
17457 $as_echo "$ld_shlibs_CXX" >&6; }
17458 test no = "$ld_shlibs_CXX" && can_build_shared=no
17459
17460 with_gnu_ld_CXX=$with_gnu_ld
17461
17462
17463
17464
17465
17466
17467 #
17468 # Do we need to explicitly link libc?
17469 #
17470 case "x$archive_cmds_need_lc_CXX" in
17471 x|xyes)
17472   # Assume -lc should be added
17473   archive_cmds_need_lc_CXX=yes
17474
17475   if test yes,yes = "$GCC,$enable_shared"; then
17476     case $archive_cmds_CXX in
17477     *'~'*)
17478       # FIXME: we may have to deal with multi-command sequences.
17479       ;;
17480     '$CC '*)
17481       # Test whether the compiler implicitly links with -lc since on some
17482       # systems, -lgcc has to come before -lc. If gcc already passes -lc
17483       # to ld, don't add -lc before -lgcc.
17484       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
17485 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
17486 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
17487   $as_echo_n "(cached) " >&6
17488 else
17489   $RM conftest*
17490         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17491
17492         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17493   (eval $ac_compile) 2>&5
17494   ac_status=$?
17495   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17496   test $ac_status = 0; } 2>conftest.err; then
17497           soname=conftest
17498           lib=conftest
17499           libobjs=conftest.$ac_objext
17500           deplibs=
17501           wl=$lt_prog_compiler_wl_CXX
17502           pic_flag=$lt_prog_compiler_pic_CXX
17503           compiler_flags=-v
17504           linker_flags=-v
17505           verstring=
17506           output_objdir=.
17507           libname=conftest
17508           lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
17509           allow_undefined_flag_CXX=
17510           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
17511   (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
17512   ac_status=$?
17513   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17514   test $ac_status = 0; }
17515           then
17516             lt_cv_archive_cmds_need_lc_CXX=no
17517           else
17518             lt_cv_archive_cmds_need_lc_CXX=yes
17519           fi
17520           allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
17521         else
17522           cat conftest.err 1>&5
17523         fi
17524         $RM conftest*
17525
17526 fi
17527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
17528 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
17529       archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
17530       ;;
17531     esac
17532   fi
17533   ;;
17534 esac
17535
17536
17537
17538
17539
17540
17541
17542
17543
17544
17545
17546
17547
17548
17549
17550
17551
17552
17553
17554
17555
17556
17557
17558
17559
17560
17561
17562
17563
17564
17565
17566
17567
17568
17569
17570
17571
17572
17573
17574
17575
17576
17577
17578
17579
17580
17581
17582
17583
17584
17585
17586
17587
17588
17589
17590
17591
17592
17593
17594
17595
17596
17597     { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
17598 $as_echo_n "checking dynamic linker characteristics... " >&6; }
17599
17600 library_names_spec=
17601 libname_spec='lib$name'
17602 soname_spec=
17603 shrext_cmds=.so
17604 postinstall_cmds=
17605 postuninstall_cmds=
17606 finish_cmds=
17607 finish_eval=
17608 shlibpath_var=
17609 shlibpath_overrides_runpath=unknown
17610 version_type=none
17611 dynamic_linker="$host_os ld.so"
17612 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17613 need_lib_prefix=unknown
17614 hardcode_into_libs=no
17615
17616 # when you set need_version to no, make sure it does not cause -set_version
17617 # flags to be left without arguments
17618 need_version=unknown
17619
17620
17621
17622 case $host_os in
17623 aix3*)
17624   version_type=linux # correct to gnu/linux during the next big refactor
17625   library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
17626   shlibpath_var=LIBPATH
17627
17628   # AIX 3 has no versioning support, so we append a major version to the name.
17629   soname_spec='$libname$release$shared_ext$major'
17630   ;;
17631
17632 aix[4-9]*)
17633   version_type=linux # correct to gnu/linux during the next big refactor
17634   need_lib_prefix=no
17635   need_version=no
17636   hardcode_into_libs=yes
17637   if test ia64 = "$host_cpu"; then
17638     # AIX 5 supports IA64
17639     library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
17640     shlibpath_var=LD_LIBRARY_PATH
17641   else
17642     # With GCC up to 2.95.x, collect2 would create an import file
17643     # for dependence libraries.  The import file would start with
17644     # the line '#! .'.  This would cause the generated library to
17645     # depend on '.', always an invalid library.  This was fixed in
17646     # development snapshots of GCC prior to 3.0.
17647     case $host_os in
17648       aix4 | aix4.[01] | aix4.[01].*)
17649       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17650            echo ' yes '
17651            echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
17652         :
17653       else
17654         can_build_shared=no
17655       fi
17656       ;;
17657     esac
17658     # Using Import Files as archive members, it is possible to support
17659     # filename-based versioning of shared library archives on AIX. While
17660     # this would work for both with and without runtime linking, it will
17661     # prevent static linking of such archives. So we do filename-based
17662     # shared library versioning with .so extension only, which is used
17663     # when both runtime linking and shared linking is enabled.
17664     # Unfortunately, runtime linking may impact performance, so we do
17665     # not want this to be the default eventually. Also, we use the
17666     # versioned .so libs for executables only if there is the -brtl
17667     # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
17668     # To allow for filename-based versioning support, we need to create
17669     # libNAME.so.V as an archive file, containing:
17670     # *) an Import File, referring to the versioned filename of the
17671     #    archive as well as the shared archive member, telling the
17672     #    bitwidth (32 or 64) of that shared object, and providing the
17673     #    list of exported symbols of that shared object, eventually
17674     #    decorated with the 'weak' keyword
17675     # *) the shared object with the F_LOADONLY flag set, to really avoid
17676     #    it being seen by the linker.
17677     # At run time we better use the real file rather than another symlink,
17678     # but for link time we create the symlink libNAME.so -> libNAME.so.V
17679
17680     case $with_aix_soname,$aix_use_runtimelinking in
17681     # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
17682     # soname into executable. Probably we can add versioning support to
17683     # collect2, so additional links can be useful in future.
17684     aix,yes) # traditional libtool
17685       dynamic_linker='AIX unversionable lib.so'
17686       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17687       # instead of lib<name>.a to let people know that these are not
17688       # typical AIX shared libraries.
17689       library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17690       ;;
17691     aix,no) # traditional AIX only
17692       dynamic_linker='AIX lib.a(lib.so.V)'
17693       # We preserve .a as extension for shared libraries through AIX4.2
17694       # and later when we are not doing run time linking.
17695       library_names_spec='$libname$release.a $libname.a'
17696       soname_spec='$libname$release$shared_ext$major'
17697       ;;
17698     svr4,*) # full svr4 only
17699       dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
17700       library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
17701       # We do not specify a path in Import Files, so LIBPATH fires.
17702       shlibpath_overrides_runpath=yes
17703       ;;
17704     *,yes) # both, prefer svr4
17705       dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
17706       library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
17707       # unpreferred sharedlib libNAME.a needs extra handling
17708       postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
17709       postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
17710       # We do not specify a path in Import Files, so LIBPATH fires.
17711       shlibpath_overrides_runpath=yes
17712       ;;
17713     *,no) # both, prefer aix
17714       dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
17715       library_names_spec='$libname$release.a $libname.a'
17716       soname_spec='$libname$release$shared_ext$major'
17717       # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
17718       postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
17719       postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
17720       ;;
17721     esac
17722     shlibpath_var=LIBPATH
17723   fi
17724   ;;
17725
17726 amigaos*)
17727   case $host_cpu in
17728   powerpc)
17729     # Since July 2007 AmigaOS4 officially supports .so libraries.
17730     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
17731     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17732     ;;
17733   m68k)
17734     library_names_spec='$libname.ixlibrary $libname.a'
17735     # Create ${libname}_ixlibrary.a entries in /sys/libs.
17736     finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
17737     ;;
17738   esac
17739   ;;
17740
17741 beos*)
17742   library_names_spec='$libname$shared_ext'
17743   dynamic_linker="$host_os ld.so"
17744   shlibpath_var=LIBRARY_PATH
17745   ;;
17746
17747 bsdi[45]*)
17748   version_type=linux # correct to gnu/linux during the next big refactor
17749   need_version=no
17750   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17751   soname_spec='$libname$release$shared_ext$major'
17752   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17753   shlibpath_var=LD_LIBRARY_PATH
17754   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17755   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17756   # the default ld.so.conf also contains /usr/contrib/lib and
17757   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17758   # libtool to hard-code these into programs
17759   ;;
17760
17761 cygwin* | mingw* | pw32* | cegcc*)
17762   version_type=windows
17763   shrext_cmds=.dll
17764   need_version=no
17765   need_lib_prefix=no
17766
17767   case $GCC,$cc_basename in
17768   yes,*)
17769     # gcc
17770     library_names_spec='$libname.dll.a'
17771     # DLL is installed to $(libdir)/../bin by postinstall_cmds
17772     postinstall_cmds='base_file=`basename \$file`~
17773       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
17774       dldir=$destdir/`dirname \$dlpath`~
17775       test -d \$dldir || mkdir -p \$dldir~
17776       $install_prog $dir/$dlname \$dldir/$dlname~
17777       chmod a+x \$dldir/$dlname~
17778       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17779         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17780       fi'
17781     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17782       dlpath=$dir/\$dldll~
17783        $RM \$dlpath'
17784     shlibpath_overrides_runpath=yes
17785
17786     case $host_os in
17787     cygwin*)
17788       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17789       soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17790
17791       ;;
17792     mingw* | cegcc*)
17793       # MinGW DLLs use traditional 'lib' prefix
17794       soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17795       ;;
17796     pw32*)
17797       # pw32 DLLs use 'pw' prefix rather than 'lib'
17798       library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17799       ;;
17800     esac
17801     dynamic_linker='Win32 ld.exe'
17802     ;;
17803
17804   *,cl*)
17805     # Native MSVC
17806     libname_spec='$name'
17807     soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17808     library_names_spec='$libname.dll.lib'
17809
17810     case $build_os in
17811     mingw*)
17812       sys_lib_search_path_spec=
17813       lt_save_ifs=$IFS
17814       IFS=';'
17815       for lt_path in $LIB
17816       do
17817         IFS=$lt_save_ifs
17818         # Let DOS variable expansion print the short 8.3 style file name.
17819         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
17820         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
17821       done
17822       IFS=$lt_save_ifs
17823       # Convert to MSYS style.
17824       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
17825       ;;
17826     cygwin*)
17827       # Convert to unix form, then to dos form, then back to unix form
17828       # but this time dos style (no spaces!) so that the unix form looks
17829       # like /cygdrive/c/PROGRA~1:/cygdr...
17830       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
17831       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
17832       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17833       ;;
17834     *)
17835       sys_lib_search_path_spec=$LIB
17836       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
17837         # It is most probably a Windows format PATH.
17838         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17839       else
17840         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17841       fi
17842       # FIXME: find the short name or the path components, as spaces are
17843       # common. (e.g. "Program Files" -> "PROGRA~1")
17844       ;;
17845     esac
17846
17847     # DLL is installed to $(libdir)/../bin by postinstall_cmds
17848     postinstall_cmds='base_file=`basename \$file`~
17849       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
17850       dldir=$destdir/`dirname \$dlpath`~
17851       test -d \$dldir || mkdir -p \$dldir~
17852       $install_prog $dir/$dlname \$dldir/$dlname'
17853     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17854       dlpath=$dir/\$dldll~
17855        $RM \$dlpath'
17856     shlibpath_overrides_runpath=yes
17857     dynamic_linker='Win32 link.exe'
17858     ;;
17859
17860   *)
17861     # Assume MSVC wrapper
17862     library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
17863     dynamic_linker='Win32 ld.exe'
17864     ;;
17865   esac
17866   # FIXME: first we should search . and the directory the executable is in
17867   shlibpath_var=PATH
17868   ;;
17869
17870 darwin* | rhapsody*)
17871   dynamic_linker="$host_os dyld"
17872   version_type=darwin
17873   need_lib_prefix=no
17874   need_version=no
17875   library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
17876   soname_spec='$libname$release$major$shared_ext'
17877   shlibpath_overrides_runpath=yes
17878   shlibpath_var=DYLD_LIBRARY_PATH
17879   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17880
17881   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17882   ;;
17883
17884 dgux*)
17885   version_type=linux # correct to gnu/linux during the next big refactor
17886   need_lib_prefix=no
17887   need_version=no
17888   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17889   soname_spec='$libname$release$shared_ext$major'
17890   shlibpath_var=LD_LIBRARY_PATH
17891   ;;
17892
17893 freebsd* | dragonfly*)
17894   # DragonFly does not have aout.  When/if they implement a new
17895   # versioning mechanism, adjust this.
17896   if test -x /usr/bin/objformat; then
17897     objformat=`/usr/bin/objformat`
17898   else
17899     case $host_os in
17900     freebsd[23].*) objformat=aout ;;
17901     *) objformat=elf ;;
17902     esac
17903   fi
17904   version_type=freebsd-$objformat
17905   case $version_type in
17906     freebsd-elf*)
17907       library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17908       soname_spec='$libname$release$shared_ext$major'
17909       need_version=no
17910       need_lib_prefix=no
17911       ;;
17912     freebsd-*)
17913       library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
17914       need_version=yes
17915       ;;
17916   esac
17917   shlibpath_var=LD_LIBRARY_PATH
17918   case $host_os in
17919   freebsd2.*)
17920     shlibpath_overrides_runpath=yes
17921     ;;
17922   freebsd3.[01]* | freebsdelf3.[01]*)
17923     shlibpath_overrides_runpath=yes
17924     hardcode_into_libs=yes
17925     ;;
17926   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17927   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17928     shlibpath_overrides_runpath=no
17929     hardcode_into_libs=yes
17930     ;;
17931   *) # from 4.6 on, and DragonFly
17932     shlibpath_overrides_runpath=yes
17933     hardcode_into_libs=yes
17934     ;;
17935   esac
17936   ;;
17937
17938 haiku*)
17939   version_type=linux # correct to gnu/linux during the next big refactor
17940   need_lib_prefix=no
17941   need_version=no
17942   dynamic_linker="$host_os runtime_loader"
17943   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17944   soname_spec='$libname$release$shared_ext$major'
17945   shlibpath_var=LIBRARY_PATH
17946   shlibpath_overrides_runpath=no
17947   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
17948   hardcode_into_libs=yes
17949   ;;
17950
17951 hpux9* | hpux10* | hpux11*)
17952   # Give a soname corresponding to the major version so that dld.sl refuses to
17953   # link against other versions.
17954   version_type=sunos
17955   need_lib_prefix=no
17956   need_version=no
17957   case $host_cpu in
17958   ia64*)
17959     shrext_cmds='.so'
17960     hardcode_into_libs=yes
17961     dynamic_linker="$host_os dld.so"
17962     shlibpath_var=LD_LIBRARY_PATH
17963     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17964     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17965     soname_spec='$libname$release$shared_ext$major'
17966     if test 32 = "$HPUX_IA64_MODE"; then
17967       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17968       sys_lib_dlsearch_path_spec=/usr/lib/hpux32
17969     else
17970       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17971       sys_lib_dlsearch_path_spec=/usr/lib/hpux64
17972     fi
17973     ;;
17974   hppa*64*)
17975     shrext_cmds='.sl'
17976     hardcode_into_libs=yes
17977     dynamic_linker="$host_os dld.sl"
17978     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17979     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17980     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17981     soname_spec='$libname$release$shared_ext$major'
17982     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17983     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17984     ;;
17985   *)
17986     shrext_cmds='.sl'
17987     dynamic_linker="$host_os dld.sl"
17988     shlibpath_var=SHLIB_PATH
17989     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17990     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17991     soname_spec='$libname$release$shared_ext$major'
17992     ;;
17993   esac
17994   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
17995   postinstall_cmds='chmod 555 $lib'
17996   # or fails outright, so override atomically:
17997   install_override_mode=555
17998   ;;
17999
18000 interix[3-9]*)
18001   version_type=linux # correct to gnu/linux during the next big refactor
18002   need_lib_prefix=no
18003   need_version=no
18004   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18005   soname_spec='$libname$release$shared_ext$major'
18006   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18007   shlibpath_var=LD_LIBRARY_PATH
18008   shlibpath_overrides_runpath=no
18009   hardcode_into_libs=yes
18010   ;;
18011
18012 irix5* | irix6* | nonstopux*)
18013   case $host_os in
18014     nonstopux*) version_type=nonstopux ;;
18015     *)
18016         if test yes = "$lt_cv_prog_gnu_ld"; then
18017                 version_type=linux # correct to gnu/linux during the next big refactor
18018         else
18019                 version_type=irix
18020         fi ;;
18021   esac
18022   need_lib_prefix=no
18023   need_version=no
18024   soname_spec='$libname$release$shared_ext$major'
18025   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
18026   case $host_os in
18027   irix5* | nonstopux*)
18028     libsuff= shlibsuff=
18029     ;;
18030   *)
18031     case $LD in # libtool.m4 will add one of these switches to LD
18032     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18033       libsuff= shlibsuff= libmagic=32-bit;;
18034     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18035       libsuff=32 shlibsuff=N32 libmagic=N32;;
18036     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18037       libsuff=64 shlibsuff=64 libmagic=64-bit;;
18038     *) libsuff= shlibsuff= libmagic=never-match;;
18039     esac
18040     ;;
18041   esac
18042   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18043   shlibpath_overrides_runpath=no
18044   sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
18045   sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
18046   hardcode_into_libs=yes
18047   ;;
18048
18049 # No shared lib support for Linux oldld, aout, or coff.
18050 linux*oldld* | linux*aout* | linux*coff*)
18051   dynamic_linker=no
18052   ;;
18053
18054 linux*android*)
18055   version_type=none # Android doesn't support versioned libraries.
18056   need_lib_prefix=no
18057   need_version=no
18058   library_names_spec='$libname$release$shared_ext'
18059   soname_spec='$libname$release$shared_ext'
18060   finish_cmds=
18061   shlibpath_var=LD_LIBRARY_PATH
18062   shlibpath_overrides_runpath=yes
18063
18064   # This implies no fast_install, which is unacceptable.
18065   # Some rework will be needed to allow for fast_install
18066   # before this can be enabled.
18067   hardcode_into_libs=yes
18068
18069   dynamic_linker='Android linker'
18070   # Don't embed -rpath directories since the linker doesn't support them.
18071   hardcode_libdir_flag_spec_CXX='-L$libdir'
18072   ;;
18073
18074 # This must be glibc/ELF.
18075 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
18076   version_type=linux # correct to gnu/linux during the next big refactor
18077   need_lib_prefix=no
18078   need_version=no
18079   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18080   soname_spec='$libname$release$shared_ext$major'
18081   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18082   shlibpath_var=LD_LIBRARY_PATH
18083   shlibpath_overrides_runpath=no
18084
18085   # Some binutils ld are patched to set DT_RUNPATH
18086   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
18087   $as_echo_n "(cached) " >&6
18088 else
18089   lt_cv_shlibpath_overrides_runpath=no
18090     save_LDFLAGS=$LDFLAGS
18091     save_libdir=$libdir
18092     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
18093          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
18094     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18095 /* end confdefs.h.  */
18096
18097 int
18098 main ()
18099 {
18100
18101   ;
18102   return 0;
18103 }
18104 _ACEOF
18105 if ac_fn_cxx_try_link "$LINENO"; then :
18106   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
18107   lt_cv_shlibpath_overrides_runpath=yes
18108 fi
18109 fi
18110 rm -f core conftest.err conftest.$ac_objext \
18111     conftest$ac_exeext conftest.$ac_ext
18112     LDFLAGS=$save_LDFLAGS
18113     libdir=$save_libdir
18114
18115 fi
18116
18117   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
18118
18119   # This implies no fast_install, which is unacceptable.
18120   # Some rework will be needed to allow for fast_install
18121   # before this can be enabled.
18122   hardcode_into_libs=yes
18123
18124   # Ideally, we could use ldconfig to report *all* directores which are
18125   # searched for libraries, however this is still not possible.  Aside from not
18126   # being certain /sbin/ldconfig is available, command
18127   # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
18128   # even though it is searched at run-time.  Try to do the best guess by
18129   # appending ld.so.conf contents (and includes) to the search path.
18130   if test -f /etc/ld.so.conf; then
18131     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[       ]*hwcap[        ]/d;s/[:,      ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
18132     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18133   fi
18134
18135   # We used to test for /lib/ld.so.1 and disable shared libraries on
18136   # powerpc, because MkLinux only supported shared libraries with the
18137   # GNU dynamic linker.  Since this was broken with cross compilers,
18138   # most powerpc-linux boxes support dynamic linking these days and
18139   # people can always --disable-shared, the test was removed, and we
18140   # assume the GNU/Linux dynamic linker is in use.
18141   dynamic_linker='GNU/Linux ld.so'
18142   ;;
18143
18144 netbsd*)
18145   version_type=sunos
18146   need_lib_prefix=no
18147   need_version=no
18148   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
18149     library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
18150     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18151     dynamic_linker='NetBSD (a.out) ld.so'
18152   else
18153     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18154     soname_spec='$libname$release$shared_ext$major'
18155     dynamic_linker='NetBSD ld.elf_so'
18156   fi
18157   shlibpath_var=LD_LIBRARY_PATH
18158   shlibpath_overrides_runpath=yes
18159   hardcode_into_libs=yes
18160   ;;
18161
18162 newsos6)
18163   version_type=linux # correct to gnu/linux during the next big refactor
18164   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18165   shlibpath_var=LD_LIBRARY_PATH
18166   shlibpath_overrides_runpath=yes
18167   ;;
18168
18169 *nto* | *qnx*)
18170   version_type=qnx
18171   need_lib_prefix=no
18172   need_version=no
18173   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18174   soname_spec='$libname$release$shared_ext$major'
18175   shlibpath_var=LD_LIBRARY_PATH
18176   shlibpath_overrides_runpath=no
18177   hardcode_into_libs=yes
18178   dynamic_linker='ldqnx.so'
18179   ;;
18180
18181 openbsd* | bitrig*)
18182   version_type=sunos
18183   sys_lib_dlsearch_path_spec=/usr/lib
18184   need_lib_prefix=no
18185   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
18186     need_version=no
18187   else
18188     need_version=yes
18189   fi
18190   library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
18191   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18192   shlibpath_var=LD_LIBRARY_PATH
18193   shlibpath_overrides_runpath=yes
18194   ;;
18195
18196 os2*)
18197   libname_spec='$name'
18198   version_type=windows
18199   shrext_cmds=.dll
18200   need_version=no
18201   need_lib_prefix=no
18202   # OS/2 can only load a DLL with a base name of 8 characters or less.
18203   soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
18204     v=$($ECHO $release$versuffix | tr -d .-);
18205     n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
18206     $ECHO $n$v`$shared_ext'
18207   library_names_spec='${libname}_dll.$libext'
18208   dynamic_linker='OS/2 ld.exe'
18209   shlibpath_var=BEGINLIBPATH
18210   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
18211   sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18212   postinstall_cmds='base_file=`basename \$file`~
18213     dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
18214     dldir=$destdir/`dirname \$dlpath`~
18215     test -d \$dldir || mkdir -p \$dldir~
18216     $install_prog $dir/$dlname \$dldir/$dlname~
18217     chmod a+x \$dldir/$dlname~
18218     if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
18219       eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
18220     fi'
18221   postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
18222     dlpath=$dir/\$dldll~
18223     $RM \$dlpath'
18224   ;;
18225
18226 osf3* | osf4* | osf5*)
18227   version_type=osf
18228   need_lib_prefix=no
18229   need_version=no
18230   soname_spec='$libname$release$shared_ext$major'
18231   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18232   shlibpath_var=LD_LIBRARY_PATH
18233   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18234   sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18235   ;;
18236
18237 rdos*)
18238   dynamic_linker=no
18239   ;;
18240
18241 solaris*)
18242   version_type=linux # correct to gnu/linux during the next big refactor
18243   need_lib_prefix=no
18244   need_version=no
18245   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18246   soname_spec='$libname$release$shared_ext$major'
18247   shlibpath_var=LD_LIBRARY_PATH
18248   shlibpath_overrides_runpath=yes
18249   hardcode_into_libs=yes
18250   # ldd complains unless libraries are executable
18251   postinstall_cmds='chmod +x $lib'
18252   ;;
18253
18254 sunos4*)
18255   version_type=sunos
18256   library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
18257   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18258   shlibpath_var=LD_LIBRARY_PATH
18259   shlibpath_overrides_runpath=yes
18260   if test yes = "$with_gnu_ld"; then
18261     need_lib_prefix=no
18262   fi
18263   need_version=yes
18264   ;;
18265
18266 sysv4 | sysv4.3*)
18267   version_type=linux # correct to gnu/linux during the next big refactor
18268   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18269   soname_spec='$libname$release$shared_ext$major'
18270   shlibpath_var=LD_LIBRARY_PATH
18271   case $host_vendor in
18272     sni)
18273       shlibpath_overrides_runpath=no
18274       need_lib_prefix=no
18275       runpath_var=LD_RUN_PATH
18276       ;;
18277     siemens)
18278       need_lib_prefix=no
18279       ;;
18280     motorola)
18281       need_lib_prefix=no
18282       need_version=no
18283       shlibpath_overrides_runpath=no
18284       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18285       ;;
18286   esac
18287   ;;
18288
18289 sysv4*MP*)
18290   if test -d /usr/nec; then
18291     version_type=linux # correct to gnu/linux during the next big refactor
18292     library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
18293     soname_spec='$libname$shared_ext.$major'
18294     shlibpath_var=LD_LIBRARY_PATH
18295   fi
18296   ;;
18297
18298 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18299   version_type=sco
18300   need_lib_prefix=no
18301   need_version=no
18302   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
18303   soname_spec='$libname$release$shared_ext$major'
18304   shlibpath_var=LD_LIBRARY_PATH
18305   shlibpath_overrides_runpath=yes
18306   hardcode_into_libs=yes
18307   if test yes = "$with_gnu_ld"; then
18308     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18309   else
18310     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18311     case $host_os in
18312       sco3.2v5*)
18313         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18314         ;;
18315     esac
18316   fi
18317   sys_lib_dlsearch_path_spec='/usr/lib'
18318   ;;
18319
18320 tpf*)
18321   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
18322   version_type=linux # correct to gnu/linux during the next big refactor
18323   need_lib_prefix=no
18324   need_version=no
18325   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18326   shlibpath_var=LD_LIBRARY_PATH
18327   shlibpath_overrides_runpath=no
18328   hardcode_into_libs=yes
18329   ;;
18330
18331 uts4*)
18332   version_type=linux # correct to gnu/linux during the next big refactor
18333   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18334   soname_spec='$libname$release$shared_ext$major'
18335   shlibpath_var=LD_LIBRARY_PATH
18336   ;;
18337
18338 *)
18339   dynamic_linker=no
18340   ;;
18341 esac
18342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
18343 $as_echo "$dynamic_linker" >&6; }
18344 test no = "$dynamic_linker" && can_build_shared=no
18345
18346 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18347 if test yes = "$GCC"; then
18348   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18349 fi
18350
18351 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
18352   sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
18353 fi
18354
18355 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
18356   sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
18357 fi
18358
18359 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
18360 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
18361
18362 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
18363 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
18364
18365 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
18366 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
18367
18368
18369
18370
18371
18372
18373
18374
18375
18376
18377
18378
18379
18380
18381
18382
18383
18384
18385
18386
18387
18388
18389
18390
18391
18392
18393
18394
18395
18396
18397
18398
18399
18400
18401
18402
18403
18404
18405
18406
18407     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
18408 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
18409 hardcode_action_CXX=
18410 if test -n "$hardcode_libdir_flag_spec_CXX" ||
18411    test -n "$runpath_var_CXX" ||
18412    test yes = "$hardcode_automatic_CXX"; then
18413
18414   # We can hardcode non-existent directories.
18415   if test no != "$hardcode_direct_CXX" &&
18416      # If the only mechanism to avoid hardcoding is shlibpath_var, we
18417      # have to relink, otherwise we might link with an installed library
18418      # when we should be linking with a yet-to-be-installed one
18419      ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" &&
18420      test no != "$hardcode_minus_L_CXX"; then
18421     # Linking always hardcodes the temporary library directory.
18422     hardcode_action_CXX=relink
18423   else
18424     # We can link without hardcoding, and we can hardcode nonexisting dirs.
18425     hardcode_action_CXX=immediate
18426   fi
18427 else
18428   # We cannot hardcode anything, or else we can only hardcode existing
18429   # directories.
18430   hardcode_action_CXX=unsupported
18431 fi
18432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
18433 $as_echo "$hardcode_action_CXX" >&6; }
18434
18435 if test relink = "$hardcode_action_CXX" ||
18436    test yes = "$inherit_rpath_CXX"; then
18437   # Fast installation is not supported
18438   enable_fast_install=no
18439 elif test yes = "$shlibpath_overrides_runpath" ||
18440      test no = "$enable_shared"; then
18441   # Fast installation is not necessary
18442   enable_fast_install=needless
18443 fi
18444
18445
18446
18447
18448
18449
18450
18451   fi # test -n "$compiler"
18452
18453   CC=$lt_save_CC
18454   CFLAGS=$lt_save_CFLAGS
18455   LDCXX=$LD
18456   LD=$lt_save_LD
18457   GCC=$lt_save_GCC
18458   with_gnu_ld=$lt_save_with_gnu_ld
18459   lt_cv_path_LDCXX=$lt_cv_path_LD
18460   lt_cv_path_LD=$lt_save_path_LD
18461   lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
18462   lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
18463 fi # test yes != "$_lt_caught_CXX_error"
18464
18465 ac_ext=c
18466 ac_cpp='$CPP $CPPFLAGS'
18467 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18468 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18469 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18470
18471
18472
18473
18474
18475
18476
18477
18478
18479
18480
18481
18482
18483
18484
18485         ac_config_commands="$ac_config_commands libtool"
18486
18487
18488
18489
18490 # Only expand once:
18491
18492
18493 # Check whether --enable-experimental-libtool was given.
18494 if test "${enable_experimental_libtool+set}" = set; then :
18495   enableval=$enable_experimental_libtool; experimental_libtool=$enableval
18496 else
18497   experimental_libtool=no
18498 fi
18499
18500
18501 if test "$experimental_libtool" = "yes"; then
18502   echo "using APR's libtool"
18503   sh_libtool="`$apr_config --apr-libtool`"
18504   LIBTOOL="$sh_libtool"
18505   SVN_LIBTOOL="$sh_libtool"
18506 else
18507   sh_libtool="$abs_builddir/libtool"
18508   SVN_LIBTOOL="\$(SHELL) \"$sh_libtool\""
18509 fi
18510
18511
18512 lt_pversion=`$LIBTOOL --version 2>/dev/null|$SED -e 's/([^)]*)//g;s/^[^0-9]*//;s/[- ].*//g;q'`
18513 lt_version=`echo $lt_pversion|$SED -e 's/\([a-z]*\)$/.\1/'`
18514 lt_major_version=`echo $lt_version | cut -d'.' -f 1`
18515
18516 svn_enable_static=yes
18517 svn_enable_shared=yes
18518
18519 # Check whether --enable-static was given.
18520 if test "${enable_static+set}" = set; then :
18521   enableval=$enable_static; svn_enable_static="$enableval"
18522 else
18523   svn_enable_static="yes"
18524 fi
18525
18526
18527 # Check whether --enable-shared was given.
18528 if test "${enable_shared+set}" = set; then :
18529   enableval=$enable_shared; svn_enable_shared="$enableval"
18530 else
18531   svn_enable_shared="yes"
18532 fi
18533
18534
18535 if test "$svn_enable_static" = "yes" && test "$svn_enable_shared" = "yes" ; then
18536   { $as_echo "$as_me:${as_lineno-$LINENO}: building both shared and static libraries" >&5
18537 $as_echo "$as_me: building both shared and static libraries" >&6;}
18538 elif test "$svn_enable_static" = "yes" ; then
18539   { $as_echo "$as_me:${as_lineno-$LINENO}: building static libraries only" >&5
18540 $as_echo "$as_me: building static libraries only" >&6;}
18541   LT_CFLAGS="-static $LT_CFLAGS"
18542   LT_LDFLAGS="-static $LT_LDFLAGS"
18543 elif test "$svn_enable_shared" = "yes" ; then
18544   { $as_echo "$as_me:${as_lineno-$LINENO}: building shared libraries only" >&5
18545 $as_echo "$as_me: building shared libraries only" >&6;}
18546   if test "$lt_major_version" = "1" ; then
18547     LT_CFLAGS="-prefer-pic $LT_CFLAGS"
18548   elif test "$lt_major_version" = "2" ; then
18549     LT_CFLAGS="-shared $LT_CFLAGS"
18550   fi
18551   LT_LDFLAGS="-shared $LT_LDFLAGS"
18552 else
18553   as_fn_error $? "cannot disable both shared and static libraries" "$LINENO" 5
18554 fi
18555
18556 # Check whether --enable-all-static was given.
18557 if test "${enable_all_static+set}" = set; then :
18558   enableval=$enable_all_static;
18559     if test "$enableval" = "yes" ; then
18560       LT_LDFLAGS="-all-static $LT_LDFLAGS"
18561     elif test "$enableval" != "no" ; then
18562       as_fn_error $? "--enable-all-static doesn't accept argument" "$LINENO" 5
18563     fi
18564
18565 fi
18566
18567
18568
18569
18570
18571 # Check whether --enable-local-library-preloading was given.
18572 if test "${enable_local_library_preloading+set}" = set; then :
18573   enableval=$enable_local_library_preloading;
18574   if test "$enableval" != "no"; then
18575     if test "$svn_enable_shared" = "yes"; then
18576       TRANSFORM_LIBTOOL_SCRIPTS="transform-libtool-scripts"
18577     else
18578       as_fn_error $? "--enable-local-library-preloading conflicts with --disable-shared" "$LINENO" 5
18579     fi
18580   else
18581     TRANSFORM_LIBTOOL_SCRIPTS=""
18582   fi
18583
18584 else
18585
18586   TRANSFORM_LIBTOOL_SCRIPTS=""
18587
18588 fi
18589
18590
18591
18592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libtool needs -no-undefined" >&5
18593 $as_echo_n "checking whether libtool needs -no-undefined... " >&6; }
18594 case $host in
18595   *-*-cygwin*)
18596     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18597 $as_echo "yes" >&6; }
18598     LT_NO_UNDEFINED="-no-undefined"
18599     ;;
18600   *)
18601     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18602 $as_echo "no" >&6; }
18603     LT_NO_UNDEFINED=""
18604     ;;
18605 esac
18606
18607
18608 trang=yes
18609
18610 # Check whether --with-trang was given.
18611 if test "${with_trang+set}" = set; then :
18612   withval=$with_trang;
18613     trang="$withval"
18614
18615 fi
18616
18617 if test "$trang" = "yes"; then
18618     # Extract the first word of "trang", so it can be a program name with args.
18619 set dummy trang; ac_word=$2
18620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18621 $as_echo_n "checking for $ac_word... " >&6; }
18622 if ${ac_cv_path_TRANG+:} false; then :
18623   $as_echo_n "(cached) " >&6
18624 else
18625   case $TRANG in
18626   [\\/]* | ?:[\\/]*)
18627   ac_cv_path_TRANG="$TRANG" # Let the user override the test with a path.
18628   ;;
18629   *)
18630   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18631 for as_dir in $PATH
18632 do
18633   IFS=$as_save_IFS
18634   test -z "$as_dir" && as_dir=.
18635     for ac_exec_ext in '' $ac_executable_extensions; do
18636   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18637     ac_cv_path_TRANG="$as_dir/$ac_word$ac_exec_ext"
18638     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18639     break 2
18640   fi
18641 done
18642   done
18643 IFS=$as_save_IFS
18644
18645   test -z "$ac_cv_path_TRANG" && ac_cv_path_TRANG="none"
18646   ;;
18647 esac
18648 fi
18649 TRANG=$ac_cv_path_TRANG
18650 if test -n "$TRANG"; then
18651   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TRANG" >&5
18652 $as_echo "$TRANG" >&6; }
18653 else
18654   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18655 $as_echo "no" >&6; }
18656 fi
18657
18658
18659 else
18660     TRANG="$trang"
18661
18662 fi
18663
18664 doxygen=yes
18665
18666 # Check whether --with-doxygen was given.
18667 if test "${with_doxygen+set}" = set; then :
18668   withval=$with_doxygen;
18669     doxygen="$withval"
18670
18671 fi
18672
18673 if test "$doxygen" = "yes"; then
18674     # Extract the first word of "doxygen", so it can be a program name with args.
18675 set dummy doxygen; ac_word=$2
18676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18677 $as_echo_n "checking for $ac_word... " >&6; }
18678 if ${ac_cv_path_DOXYGEN+:} false; then :
18679   $as_echo_n "(cached) " >&6
18680 else
18681   case $DOXYGEN in
18682   [\\/]* | ?:[\\/]*)
18683   ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
18684   ;;
18685   *)
18686   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18687 for as_dir in $PATH
18688 do
18689   IFS=$as_save_IFS
18690   test -z "$as_dir" && as_dir=.
18691     for ac_exec_ext in '' $ac_executable_extensions; do
18692   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18693     ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
18694     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18695     break 2
18696   fi
18697 done
18698   done
18699 IFS=$as_save_IFS
18700
18701   test -z "$ac_cv_path_DOXYGEN" && ac_cv_path_DOXYGEN="none"
18702   ;;
18703 esac
18704 fi
18705 DOXYGEN=$ac_cv_path_DOXYGEN
18706 if test -n "$DOXYGEN"; then
18707   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOXYGEN" >&5
18708 $as_echo "$DOXYGEN" >&6; }
18709 else
18710   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18711 $as_echo "no" >&6; }
18712 fi
18713
18714
18715 else
18716     DOXYGEN="$doxygen"
18717
18718 fi
18719
18720
18721
18722
18723
18724 # Check whether --with-expat was given.
18725 if test "${with_expat+set}" = set; then :
18726   withval=$with_expat; svn_lib_expat="$withval"
18727 else
18728   svn_lib_expat="::expat"
18729 fi
18730
18731
18732 # APR-util accepts "builtin" as an argument to this option so if the user
18733 # passed "builtin" pretend the user didn't specify the --with-expat option
18734 # at all. Expat will (hopefully) be found in apr-util.
18735 test "_$svn_lib_expat" = "_builtin" && svn_lib_expat="::expat"
18736
18737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Expat" >&5
18738 $as_echo_n "checking for Expat... " >&6; }
18739 if test -n "`echo "$svn_lib_expat" | $EGREP ":.*:"`"; then
18740   SVN_XML_INCLUDES=""
18741   for i in `echo "$svn_lib_expat" | $SED -e "s/\([^:]*\):.*/\1/"`; do
18742     SVN_XML_INCLUDES="$SVN_XML_INCLUDES -I$i"
18743   done
18744   SVN_XML_INCLUDES="${SVN_XML_INCLUDES## }"
18745   for l in `echo "$svn_lib_expat" | $SED -e "s/.*:\([^:]*\):.*/\1/"`; do
18746     LDFLAGS="$LDFLAGS -L$l"
18747   done
18748   for l in `echo "$svn_lib_expat" | $SED -e "s/.*:\([^:]*\)/\1/"`; do
18749     SVN_XML_LIBS="$SVN_XML_LIBS -l$l"
18750   done
18751   SVN_XML_LIBS="${SVN_XML_LIBS## }"
18752   old_CPPFLAGS="$CPPFLAGS"
18753   old_LIBS="$LIBS"
18754   CPPFLAGS="$CPPFLAGS $SVN_XML_INCLUDES"
18755   LIBS="$LIBS $SVN_XML_LIBS"
18756   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18757 /* end confdefs.h.  */
18758
18759 #include <expat.h>
18760 int main()
18761 {XML_ParserCreate(NULL);}
18762 _ACEOF
18763 if ac_fn_c_try_link "$LINENO"; then :
18764   svn_lib_expat="yes"
18765 else
18766   svn_lib_expat="no"
18767 fi
18768 rm -f core conftest.err conftest.$ac_objext \
18769     conftest$ac_exeext conftest.$ac_ext
18770   LIBS="$old_LIBS"
18771   if test "$svn_lib_expat" = "yes"; then
18772     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18773 $as_echo "yes" >&6; }
18774   else
18775     SVN_XML_INCLUDES=""
18776     SVN_XML_LIBS=""
18777     CPPFLAGS="$CPPFLAGS $SVN_APRUTIL_INCLUDES"
18778     if test "$enable_all_static" != "yes"; then
18779       SVN_APRUTIL_LIBS="$SVN_APRUTIL_LIBS `$apu_config --libs`"
18780     fi
18781     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18782 /* end confdefs.h.  */
18783
18784 #include <expat.h>
18785 int main()
18786 {XML_ParserCreate(NULL);}
18787 _ACEOF
18788 if ac_fn_c_try_compile "$LINENO"; then :
18789   svn_lib_expat="yes"
18790 else
18791   svn_lib_expat="no"
18792 fi
18793 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18794     if test "$svn_lib_expat" = "yes"; then
18795       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18796 $as_echo "yes" >&6; }
18797       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Expat found amongst libraries used by APR-Util, but Subversion libraries might be needlessly linked against additional unused libraries. It can be avoided by specifying exact location of Expat in argument of --with-expat option." >&5
18798 $as_echo "$as_me: WARNING: Expat found amongst libraries used by APR-Util, but Subversion libraries might be needlessly linked against additional unused libraries. It can be avoided by specifying exact location of Expat in argument of --with-expat option." >&2;}
18799     else
18800       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18801 $as_echo "no" >&6; }
18802       as_fn_error $? "Expat not found" "$LINENO" 5
18803     fi
18804   fi
18805   CPPFLAGS="$old_CPPFLAGS"
18806 else
18807   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18808 $as_echo "no" >&6; }
18809   if test "$svn_lib_expat" = "yes"; then
18810     as_fn_error $? "--with-expat option requires argument" "$LINENO" 5
18811   elif test "$svn_lib_expat" = "no"; then
18812     as_fn_error $? "Expat is required" "$LINENO" 5
18813   else
18814     as_fn_error $? "Invalid syntax of argument of --with-expat option" "$LINENO" 5
18815   fi
18816 fi
18817
18818
18819
18820
18821 # Berkeley DB on SCO OpenServer needs -lsocket
18822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
18823 $as_echo_n "checking for socket in -lsocket... " >&6; }
18824 if ${ac_cv_lib_socket_socket+:} false; then :
18825   $as_echo_n "(cached) " >&6
18826 else
18827   ac_check_lib_save_LIBS=$LIBS
18828 LIBS="-lsocket  $LIBS"
18829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18830 /* end confdefs.h.  */
18831
18832 /* Override any GCC internal prototype to avoid an error.
18833    Use char because int might match the return type of a GCC
18834    builtin and then its argument prototype would still apply.  */
18835 #ifdef __cplusplus
18836 extern "C"
18837 #endif
18838 char socket ();
18839 int
18840 main ()
18841 {
18842 return socket ();
18843   ;
18844   return 0;
18845 }
18846 _ACEOF
18847 if ac_fn_c_try_link "$LINENO"; then :
18848   ac_cv_lib_socket_socket=yes
18849 else
18850   ac_cv_lib_socket_socket=no
18851 fi
18852 rm -f core conftest.err conftest.$ac_objext \
18853     conftest$ac_exeext conftest.$ac_ext
18854 LIBS=$ac_check_lib_save_LIBS
18855 fi
18856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
18857 $as_echo "$ac_cv_lib_socket_socket" >&6; }
18858 if test "x$ac_cv_lib_socket_socket" = xyes; then :
18859   cat >>confdefs.h <<_ACEOF
18860 #define HAVE_LIBSOCKET 1
18861 _ACEOF
18862
18863   LIBS="-lsocket $LIBS"
18864
18865 fi
18866
18867
18868 # Build the BDB filesystem library only if we have an appropriate
18869 # version of Berkeley DB.
18870 case "$host" in
18871 powerpc-apple-darwin*)
18872     # Berkeley DB 4.0 does not work on OS X.
18873     SVN_FS_WANT_DB_MAJOR=4
18874     SVN_FS_WANT_DB_MINOR=1
18875     SVN_FS_WANT_DB_PATCH=25
18876     ;;
18877 *)
18878     SVN_FS_WANT_DB_MAJOR=4
18879     SVN_FS_WANT_DB_MINOR=0
18880     SVN_FS_WANT_DB_PATCH=14
18881     ;;
18882 esac
18883 db_alt_version="5.x"
18884 # Look for libdb4.so first:
18885
18886   db_version=$SVN_FS_WANT_DB_MAJOR.$SVN_FS_WANT_DB_MINOR.$SVN_FS_WANT_DB_PATCH
18887
18888
18889 # Check whether --with-berkeley-db was given.
18890 if test "${with_berkeley_db+set}" = set; then :
18891   withval=$with_berkeley_db;
18892     if test "$withval" = "no"; then
18893       bdb_status=skip
18894     elif test "$withval" = "yes"; then
18895       apu_db_version="`$apu_config --db-version`"
18896       if test $? -ne 0; then
18897         as_fn_error $? "Can't determine whether apr-util is linked against a
18898                       proper version of Berkeley DB." "$LINENO" 5
18899       fi
18900
18901       if test "$withval" = "yes"; then
18902         if test "$apu_db_version" -lt "4"; then
18903           as_fn_error $? "APR-UTIL was linked against Berkeley DB version $apu_db_version,
18904                         while version 4 or higher is required.  Reinstall
18905                         APR-UTIL with the appropriate options." "$LINENO" 5
18906         fi
18907
18908         bdb_status=required
18909
18910       elif test "$apu_found" != "reconfig"; then
18911         if test "$apu_db_version" -lt 4; then
18912           as_fn_error $? "APR-UTIL was installed independently, it won't be
18913                         possible to use the specified Berkeley DB: $withval" "$LINENO" 5
18914         fi
18915
18916         bdb_status=required
18917       fi
18918     else
18919       if echo "$withval" | $EGREP ":.*:.*:" > /dev/null; then
18920         svn_berkeley_db_header="`echo "$withval" | $SED -e "s/\([^:]*\):.*/\1/"`"
18921         SVN_DB_INCLUDES=""
18922         for i in `echo "$withval" | $SED -e "s/.*:\([^:]*\):[^:]*:.*/\1/"`; do
18923           SVN_DB_INCLUDES="$SVN_DB_INCLUDES -I$i"
18924         done
18925         SVN_DB_INCLUDES="${SVN_DB_INCLUDES## }"
18926         for l in `echo "$withval" | $SED -e "s/.*:[^:]*:\([^:]*\):.*/\1/"`; do
18927           LDFLAGS="$LDFLAGS `
18928   input_flags="-L$l"
18929   output_flags=""
18930   filtered_dirs="/lib /lib64 /usr/lib /usr/lib64"
18931   for flag in $input_flags; do
18932     filter="no"
18933     for dir in $filtered_dirs; do
18934       if test "$flag" = "-L$dir" || test "$flag" = "-L$dir/"; then
18935         filter="yes"
18936         break
18937       fi
18938     done
18939     if test "$filter" = "no"; then
18940       output_flags="$output_flags $flag"
18941     fi
18942   done
18943   if test -n "$output_flags"; then
18944     printf "%s" "${output_flags# }"
18945   fi
18946 `"
18947         done
18948         SVN_DB_LIBS=""
18949         for l in `echo "$withval" | $SED -e "s/.*:\([^:]*\)/\1/"`; do
18950           SVN_DB_LIBS="$SVN_DB_LIBS -l$l"
18951         done
18952         SVN_DB_LIBS="${SVN_DB_LIBS## }"
18953
18954         bdb_status=required
18955       else
18956         as_fn_error $? "Invalid syntax of argument of --with-berkeley-db option" "$LINENO" 5
18957       fi
18958     fi
18959
18960 else
18961
18962     # No --with-berkeley-db option:
18963     #
18964     # Check if APR-UTIL is providing the correct Berkeley DB version
18965     # for us.
18966     #
18967     apu_db_version="`$apu_config --db-version`"
18968     if test $? -ne 0; then
18969       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Detected older version of APR-UTIL, trying to determine
18970                    whether apr-util is linked against Berkeley DB
18971                    $db_version" >&5
18972 $as_echo "$as_me: WARNING: Detected older version of APR-UTIL, trying to determine
18973                    whether apr-util is linked against Berkeley DB
18974                    $db_version" >&2;}
18975       bdb_status=try-link
18976     elif test "$apu_db_version" -lt "4"; then
18977       bdb_status=skip
18978     else
18979       bdb_status=try-link
18980     fi
18981
18982 fi
18983
18984
18985   if test "$bdb_status" = "skip"; then
18986     svn_lib_berkeley_db=no
18987   else
18988     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for availability of Berkeley DB" >&5
18989 $as_echo_n "checking for availability of Berkeley DB... " >&6; }
18990     # Check whether --enable-bdb6 was given.
18991 if test "${enable_bdb6+set}" = set; then :
18992   enableval=$enable_bdb6; enable_bdb6=$enableval
18993 else
18994   enable_bdb6=unspecified
18995 fi
18996
18997
18998
18999     svn_lib_berkeley_db_try_save_cppflags="$CPPFLAGS"
19000     svn_lib_berkeley_db_try_save_libs="$LIBS"
19001
19002     svn_check_berkeley_db_major=$SVN_FS_WANT_DB_MAJOR
19003     svn_check_berkeley_db_minor=$SVN_FS_WANT_DB_MINOR
19004     svn_check_berkeley_db_patch=$SVN_FS_WANT_DB_PATCH
19005     enable_bdb6=$enable_bdb6
19006
19007    if test -z "$SVN_DB_LIBS"; then
19008       # We pass --dbm-libs here since Debian has modified apu-config not
19009       # to return -ldb unless --dbm-libs is passed.  This may also produce
19010       # extra output beyond -ldb but since we're only filtering for -ldb
19011       # it won't matter to us.  However, --dbm-libs was added to apu-config
19012       # in 1.3.8 so it's possible the version we have doesn't support it
19013       # so fallback without it if we get an error.
19014       svn_db_libs_prefiltered="`$apu_config --libs --dbm-libs`"
19015       if test $? -ne 0; then
19016         svn_db_libs_prefiltered="`$apu_config --libs`"
19017       fi
19018
19019       # Extract only the -ldb.* flag from the libs supplied by apu-config
19020       # Otherwise we get bit by the fact that expat might not be built yet
19021       # Or that it resides in a non-standard location which we would have
19022       # to compensate with using something like -R`$apu_config --prefix`/lib.
19023       #
19024       SVN_DB_LIBS="`echo \"$svn_db_libs_prefiltered\" | $SED -e 's/.*\(-ldb[^[:space:]]*\).*/\1/' | $EGREP -- '-ldb[^[:space:]]*'`"
19025     fi
19026
19027     CPPFLAGS="$SVN_DB_INCLUDES $SVN_APRUTIL_INCLUDES $CPPFLAGS"
19028     LIBS="`$apu_config --ldflags` $SVN_DB_LIBS $LIBS"
19029
19030     if test -n "$svn_berkeley_db_header"; then
19031       SVN_DB_HEADER="#include <$svn_berkeley_db_header>"
19032       svn_db_header="#include <$svn_berkeley_db_header>"
19033     else
19034       SVN_DB_HEADER="#include <apu_want.h>"
19035       svn_db_header="#define APU_WANT_DB
19036 #include <apu_want.h>"
19037     fi
19038
19039
19040
19041     if test "$cross_compiling" = yes; then :
19042   svn_have_berkeley_db=yes
19043
19044 else
19045   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19046 /* end confdefs.h.  */
19047
19048 #include <string.h>
19049 #include <stdlib.h>
19050 $svn_db_header
19051
19052 int main ()
19053 {
19054   int major, minor, patch;
19055
19056   db_version (&major, &minor, &patch);
19057
19058   /* Sanity check: ensure that db.h constants actually match the db library */
19059   if (major != DB_VERSION_MAJOR
19060       || minor != DB_VERSION_MINOR
19061       || patch != DB_VERSION_PATCH)
19062     exit (1);
19063
19064   /* Block Berkeley DB 6, because (a) we haven't tested with it, (b) 6.0.20
19065      and newer are under the AGPL, and we want use of AGPL dependencies to be
19066      opt-in. */
19067   if (major >= 6 && strcmp("$enable_bdb6", "yes"))
19068     exit(2);
19069
19070   /* Run-time check:  ensure the library claims to be the correct version. */
19071
19072   if (major < $svn_check_berkeley_db_major)
19073     exit (1);
19074   if (major > $svn_check_berkeley_db_major)
19075     exit (0);
19076
19077   if (minor < $svn_check_berkeley_db_minor)
19078     exit (1);
19079   if (minor > $svn_check_berkeley_db_minor)
19080     exit (0);
19081
19082   if (patch >= $svn_check_berkeley_db_patch)
19083     exit (0);
19084   else
19085     exit (1);
19086 }
19087
19088 _ACEOF
19089 if ac_fn_c_try_run "$LINENO"; then :
19090   svn_have_berkeley_db=yes
19091 else
19092   rc=$?
19093        svn_have_berkeley_db=no
19094        if test $rc = 2; then
19095          svn_have_berkeley_db=no6
19096        fi
19097 fi
19098 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19099   conftest.$ac_objext conftest.beam conftest.$ac_ext
19100 fi
19101
19102
19103   CPPFLAGS="$svn_lib_berkeley_db_try_save_cppflags"
19104   LIBS="$svn_lib_berkeley_db_try_save_libs"
19105
19106
19107     if test "$svn_have_berkeley_db" = "yes"; then
19108       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19109 $as_echo "yes" >&6; }
19110       svn_lib_berkeley_db=yes
19111     else
19112       if test "$svn_have_berkeley_db" = "no6"; then
19113         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (found version 6, but --enable-bdb6 not specified)" >&5
19114 $as_echo "no (found version 6, but --enable-bdb6 not specified)" >&6; }
19115         # A warning will be printed at the end of configure.ac.
19116       else
19117         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19118 $as_echo "no" >&6; }
19119       fi
19120       svn_lib_berkeley_db=no
19121       if test "$bdb_status" = "required"; then
19122         as_fn_error $? "Berkeley DB $db_version or $db_alt_version wasn't found." "$LINENO" 5
19123       fi
19124     fi
19125   fi
19126
19127
19128
19129 cat >>confdefs.h <<_ACEOF
19130 #define SVN_FS_WANT_DB_MAJOR $SVN_FS_WANT_DB_MAJOR
19131 _ACEOF
19132
19133
19134 cat >>confdefs.h <<_ACEOF
19135 #define SVN_FS_WANT_DB_MINOR $SVN_FS_WANT_DB_MINOR
19136 _ACEOF
19137
19138
19139 cat >>confdefs.h <<_ACEOF
19140 #define SVN_FS_WANT_DB_PATCH $SVN_FS_WANT_DB_PATCH
19141 _ACEOF
19142
19143
19144
19145
19146
19147
19148
19149 # Check whether --with-sasl was given.
19150 if test "${with_sasl+set}" = set; then :
19151   withval=$with_sasl;
19152     with_sasl="$withval"
19153     required="yes"
19154
19155 else
19156
19157     with_sasl="yes"
19158     required="no"
19159
19160 fi
19161
19162
19163   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to look for SASL" >&5
19164 $as_echo_n "checking whether to look for SASL... " >&6; }
19165
19166   if test "${with_sasl}" = "no"; then
19167     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19168 $as_echo "no" >&6; }
19169     svn_lib_sasl=no
19170   else
19171     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19172 $as_echo "yes" >&6; }
19173     saved_LDFLAGS="$LDFLAGS"
19174     saved_CPPFLAGS="$CPPFLAGS"
19175
19176     if test "$with_sasl" = "yes"; then
19177       { $as_echo "$as_me:${as_lineno-$LINENO}: Looking in default locations" >&5
19178 $as_echo "$as_me: Looking in default locations" >&6;}
19179       ac_fn_c_check_header_mongrel "$LINENO" "sasl/sasl.h" "ac_cv_header_sasl_sasl_h" "$ac_includes_default"
19180 if test "x$ac_cv_header_sasl_sasl_h" = xyes; then :
19181   ac_fn_c_check_header_mongrel "$LINENO" "sasl/saslutil.h" "ac_cv_header_sasl_saslutil_h" "$ac_includes_default"
19182 if test "x$ac_cv_header_sasl_saslutil_h" = xyes; then :
19183   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prop_get in -lsasl2" >&5
19184 $as_echo_n "checking for prop_get in -lsasl2... " >&6; }
19185 if ${ac_cv_lib_sasl2_prop_get+:} false; then :
19186   $as_echo_n "(cached) " >&6
19187 else
19188   ac_check_lib_save_LIBS=$LIBS
19189 LIBS="-lsasl2  $LIBS"
19190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19191 /* end confdefs.h.  */
19192
19193 /* Override any GCC internal prototype to avoid an error.
19194    Use char because int might match the return type of a GCC
19195    builtin and then its argument prototype would still apply.  */
19196 #ifdef __cplusplus
19197 extern "C"
19198 #endif
19199 char prop_get ();
19200 int
19201 main ()
19202 {
19203 return prop_get ();
19204   ;
19205   return 0;
19206 }
19207 _ACEOF
19208 if ac_fn_c_try_link "$LINENO"; then :
19209   ac_cv_lib_sasl2_prop_get=yes
19210 else
19211   ac_cv_lib_sasl2_prop_get=no
19212 fi
19213 rm -f core conftest.err conftest.$ac_objext \
19214     conftest$ac_exeext conftest.$ac_ext
19215 LIBS=$ac_check_lib_save_LIBS
19216 fi
19217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sasl2_prop_get" >&5
19218 $as_echo "$ac_cv_lib_sasl2_prop_get" >&6; }
19219 if test "x$ac_cv_lib_sasl2_prop_get" = xyes; then :
19220   svn_lib_sasl=yes
19221 else
19222   svn_lib_sasl=no
19223 fi
19224
19225 else
19226   svn_lib_sasl=no
19227 fi
19228
19229
19230 else
19231   svn_lib_sasl=no
19232 fi
19233
19234
19235       if test "$svn_lib_sasl" = "no"; then
19236         with_sasl="/usr/local"
19237       fi
19238     else
19239       svn_lib_sasl=no
19240     fi
19241
19242     if test "$svn_lib_sasl" = "no"; then
19243       SVN_SASL_INCLUDES="-I${with_sasl}/include"
19244       CPPFLAGS="$CPPFLAGS $SVN_SASL_INCLUDES"
19245       LDFLAGS="$LDFLAGS `
19246   input_flags="-L${with_sasl}/lib"
19247   output_flags=""
19248   filtered_dirs="/lib /lib64 /usr/lib /usr/lib64"
19249   for flag in $input_flags; do
19250     filter="no"
19251     for dir in $filtered_dirs; do
19252       if test "$flag" = "-L$dir" || test "$flag" = "-L$dir/"; then
19253         filter="yes"
19254         break
19255       fi
19256     done
19257     if test "$filter" = "no"; then
19258       output_flags="$output_flags $flag"
19259     fi
19260   done
19261   if test -n "$output_flags"; then
19262     printf "%s" "${output_flags# }"
19263   fi
19264 `"
19265
19266       ac_fn_c_check_header_mongrel "$LINENO" "sasl/sasl.h" "ac_cv_header_sasl_sasl_h" "$ac_includes_default"
19267 if test "x$ac_cv_header_sasl_sasl_h" = xyes; then :
19268   ac_fn_c_check_header_mongrel "$LINENO" "sasl/saslutil.h" "ac_cv_header_sasl_saslutil_h" "$ac_includes_default"
19269 if test "x$ac_cv_header_sasl_saslutil_h" = xyes; then :
19270   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prop_get in -lsasl2" >&5
19271 $as_echo_n "checking for prop_get in -lsasl2... " >&6; }
19272 if ${ac_cv_lib_sasl2_prop_get+:} false; then :
19273   $as_echo_n "(cached) " >&6
19274 else
19275   ac_check_lib_save_LIBS=$LIBS
19276 LIBS="-lsasl2  $LIBS"
19277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19278 /* end confdefs.h.  */
19279
19280 /* Override any GCC internal prototype to avoid an error.
19281    Use char because int might match the return type of a GCC
19282    builtin and then its argument prototype would still apply.  */
19283 #ifdef __cplusplus
19284 extern "C"
19285 #endif
19286 char prop_get ();
19287 int
19288 main ()
19289 {
19290 return prop_get ();
19291   ;
19292   return 0;
19293 }
19294 _ACEOF
19295 if ac_fn_c_try_link "$LINENO"; then :
19296   ac_cv_lib_sasl2_prop_get=yes
19297 else
19298   ac_cv_lib_sasl2_prop_get=no
19299 fi
19300 rm -f core conftest.err conftest.$ac_objext \
19301     conftest$ac_exeext conftest.$ac_ext
19302 LIBS=$ac_check_lib_save_LIBS
19303 fi
19304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sasl2_prop_get" >&5
19305 $as_echo "$ac_cv_lib_sasl2_prop_get" >&6; }
19306 if test "x$ac_cv_lib_sasl2_prop_get" = xyes; then :
19307   svn_lib_sasl=yes
19308 else
19309   svn_lib_sasl=no
19310 fi
19311
19312 else
19313   svn_lib_sasl=no
19314 fi
19315
19316
19317 else
19318   svn_lib_sasl=no
19319 fi
19320
19321
19322     fi
19323
19324     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for availability of Cyrus SASL v2" >&5
19325 $as_echo_n "checking for availability of Cyrus SASL v2... " >&6; }
19326     if test "$svn_lib_sasl" = "yes"; then
19327       SVN_SASL_LIBS="-lsasl2"
19328       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19329 $as_echo "yes" >&6; }
19330     else
19331       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19332 $as_echo "no" >&6; }
19333
19334       if test "$required" = "yes"; then
19335                         as_fn_error $? "Could not find Cyrus SASL v2" "$LINENO" 5
19336       fi
19337
19338       SVN_SASL_INCLUDES=""
19339       LDFLAGS="$saved_LDFLAGS"
19340     fi
19341
19342     CPPFLAGS="$saved_CPPFLAGS"
19343   fi
19344
19345
19346
19347
19348
19349 if test "$svn_lib_sasl" = "yes"; then
19350
19351 $as_echo "#define SVN_HAVE_SASL 1" >>confdefs.h
19352
19353 fi
19354
19355
19356
19357   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Mach-O dynamic module iteration functions" >&5
19358 $as_echo_n "checking for Mach-O dynamic module iteration functions... " >&6; }
19359   if test "$cross_compiling" = yes; then :
19360   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19361 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19362 as_fn_error $? "cannot run test program while cross compiling
19363 See \`config.log' for more details" "$LINENO" 5; }
19364 else
19365   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19366 /* end confdefs.h.  */
19367
19368     #include <mach-o/dyld.h>
19369     #include <mach-o/loader.h>
19370
19371 int
19372 main ()
19373 {
19374
19375     const struct mach_header *header = _dyld_get_image_header(0);
19376     const char *name = _dyld_get_image_name(0);
19377     if (name && header) return 0;
19378     return 1;
19379
19380   ;
19381   return 0;
19382 }
19383 _ACEOF
19384 if ac_fn_c_try_run "$LINENO"; then :
19385
19386
19387 $as_echo "#define SVN_HAVE_MACHO_ITERATE 1" >>confdefs.h
19388
19389     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19390 $as_echo "yes" >&6; }
19391
19392 else
19393
19394     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19395 $as_echo "no" >&6; }
19396
19397 fi
19398 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19399   conftest.$ac_objext conftest.beam conftest.$ac_ext
19400 fi
19401
19402
19403
19404   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Mac OS property list utilities" >&5
19405 $as_echo_n "checking for Mac OS property list utilities... " >&6; }
19406
19407   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19408 /* end confdefs.h.  */
19409
19410     #include <AvailabilityMacros.h>
19411     #if !defined(MAC_OS_X_VERSION_MAX_ALLOWED) \
19412      || !defined(MAC_OS_X_VERSION_10_0) \
19413      || (MAC_OS_X_VERSION_MAX_ALLOWED <= MAC_OS_X_VERSION_10_0)
19414     #error ProperyList API unavailable.
19415     #endif
19416
19417 int
19418 main ()
19419 {
19420
19421   ;
19422   return 0;
19423 }
19424 _ACEOF
19425 if ac_fn_c_try_compile "$LINENO"; then :
19426
19427     SVN_MACOS_PLIST_LIBS="-framework CoreFoundation"
19428
19429
19430 $as_echo "#define SVN_HAVE_MACOS_PLIST 1" >>confdefs.h
19431
19432     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19433 $as_echo "yes" >&6; }
19434
19435 else
19436
19437     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19438 $as_echo "no" >&6; }
19439
19440 fi
19441 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19442
19443
19444   # Check whether --enable-keychain was given.
19445 if test "${enable_keychain+set}" = set; then :
19446   enableval=$enable_keychain; enable_keychain=$enableval
19447 else
19448   enable_keychain=yes
19449 fi
19450
19451
19452   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Mac OS KeyChain Services" >&5
19453 $as_echo_n "checking for Mac OS KeyChain Services... " >&6; }
19454
19455   if test "$enable_keychain" = "yes"; then
19456     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19457 /* end confdefs.h.  */
19458
19459       #include <AvailabilityMacros.h>
19460       #if !defined(MAC_OS_X_VERSION_MAX_ALLOWED) \
19461        || !defined(MAC_OS_X_VERSION_10_2) \
19462        || (MAC_OS_X_VERSION_MAX_ALLOWED <= MAC_OS_X_VERSION_10_2)
19463       #error KeyChain API unavailable.
19464       #endif
19465
19466 int
19467 main ()
19468 {
19469
19470   ;
19471   return 0;
19472 }
19473 _ACEOF
19474 if ac_fn_c_try_compile "$LINENO"; then :
19475
19476       SVN_MACOS_KEYCHAIN_LIBS="-framework Security -framework CoreServices"
19477
19478
19479 $as_echo "#define SVN_HAVE_KEYCHAIN_SERVICES 1" >>confdefs.h
19480
19481       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19482 $as_echo "yes" >&6; }
19483
19484 else
19485
19486       enable_keychain=no
19487       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19488 $as_echo "no" >&6; }
19489
19490 fi
19491 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19492   fi
19493
19494
19495
19496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether APR has support for DSOs" >&5
19497 $as_echo_n "checking whether APR has support for DSOs... " >&6; }
19498 old_CPPFLAGS="$CPPFLAGS"
19499 CPPFLAGS="$CPPFLAGS $SVN_APR_INCLUDES"
19500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19501 /* end confdefs.h.  */
19502
19503 #include <apr.h>
19504 #if !APR_HAS_DSO
19505 #error
19506 #endif
19507 _ACEOF
19508 if ac_fn_c_try_cpp "$LINENO"; then :
19509   APR_HAS_DSO="yes"
19510   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19511 $as_echo "yes" >&6; }
19512 else
19513   APR_HAS_DSO="no"
19514   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19515 $as_echo "no" >&6; }
19516 fi
19517 rm -f conftest.err conftest.i conftest.$ac_ext
19518 CPPFLAGS="$old_CPPFLAGS"
19519
19520
19521
19522 if test -n "$PKG_CONFIG"; then
19523   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for D-Bus .pc file" >&5
19524 $as_echo_n "checking for D-Bus .pc file... " >&6; }
19525   if $PKG_CONFIG --exists dbus-1; then
19526     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19527 $as_echo "yes" >&6; }
19528     old_CPPFLAGS="$CPPFLAGS"
19529     old_LIBS="$LIBS"
19530     DBUS_CPPFLAGS="`$PKG_CONFIG --cflags dbus-1`"
19531     { $as_echo "$as_me:${as_lineno-$LINENO}: checking D-Bus version" >&5
19532 $as_echo_n "checking D-Bus version... " >&6; }
19533     DBUS_VERSION="`$PKG_CONFIG --modversion dbus-1`"
19534     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBUS_VERSION" >&5
19535 $as_echo "$DBUS_VERSION" >&6; }
19536     # D-Bus 0.* requires DBUS_API_SUBJECT_TO_CHANGE
19537     if test -n "`echo "$DBUS_VERSION" | $EGREP '^0\.[[:digit:]]+'`"; then
19538       DBUS_CPPFLAGS="$DBUS_CPPFLAGS -DDBUS_API_SUBJECT_TO_CHANGE"
19539     fi
19540     DBUS_LIBS="`$PKG_CONFIG --libs dbus-1`"
19541     CPPFLAGS="$CPPFLAGS $DBUS_CPPFLAGS"
19542     LIBS="$LIBS $DBUS_LIBS"
19543     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for D-Bus" >&5
19544 $as_echo_n "checking for D-Bus... " >&6; }
19545     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19546 /* end confdefs.h.  */
19547
19548 #include <dbus/dbus.h>
19549 int main()
19550 {dbus_bus_get(DBUS_BUS_SESSION, NULL);}
19551 _ACEOF
19552 if ac_fn_c_try_link "$LINENO"; then :
19553   HAVE_DBUS="yes"
19554 else
19555   HAVE_DBUS="no"
19556 fi
19557 rm -f core conftest.err conftest.$ac_objext \
19558     conftest$ac_exeext conftest.$ac_ext
19559     if test "$HAVE_DBUS" = "yes"; then
19560       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19561 $as_echo "yes" >&6; }
19562     else
19563       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19564 $as_echo "no" >&6; }
19565     fi
19566     CPPFLAGS="$old_CPPFLAGS"
19567     LIBS="$old_LIBS"
19568   else
19569     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19570 $as_echo "no" >&6; }
19571   fi
19572 fi
19573
19574
19575
19576 # Check whether --with-gpg_agent was given.
19577 if test "${with_gpg_agent+set}" = set; then :
19578   withval=$with_gpg_agent;
19579 else
19580   with_gpg_agent=yes
19581 fi
19582
19583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support GPG-Agent" >&5
19584 $as_echo_n "checking whether to support GPG-Agent... " >&6; }
19585 if test "$with_gpg_agent" = "yes"; then
19586   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19587 $as_echo "yes" >&6; }
19588
19589 $as_echo "#define SVN_HAVE_GPG_AGENT 1" >>confdefs.h
19590
19591 else
19592   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19593 $as_echo "no" >&6; }
19594 fi
19595
19596
19597
19598
19599
19600 # Check whether --with-old_gnome_keyring was given.
19601 if test "${with_old_gnome_keyring+set}" = set; then :
19602   withval=$with_old_gnome_keyring; with_old_gnome_keyring="$withval"
19603 else
19604   with_old_gnome_keyring=no
19605 fi
19606
19607
19608 found_old_gnome_keyring=no
19609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to look for old GNOME Keyring" >&5
19610 $as_echo_n "checking whether to look for old GNOME Keyring... " >&6; }
19611 if test "$with_old_gnome_keyring" != "no"; then
19612   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19613 $as_echo "yes" >&6; }
19614   case "$host" in
19615   *-*-darwin*)
19616     if test "$with_old_gnome_keyring" = "yes"; then
19617       as_fn_error $? "--with-old-gnome-keyring is not supported on Mac OS X." "$LINENO" 5
19618     else
19619       with_old_gnome_keyring=no
19620     fi
19621     ;;
19622   *)
19623     if test "$svn_enable_shared" = "yes"; then
19624       if test "$APR_HAS_DSO" = "yes"; then
19625         if test -n "$PKG_CONFIG"; then
19626           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLib and GNOME Keyring .pc files" >&5
19627 $as_echo_n "checking for GLib and GNOME Keyring .pc files... " >&6; }
19628           if $PKG_CONFIG --exists glib-2.0 gnome-keyring-1; then
19629             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19630 $as_echo "yes" >&6; }
19631             old_CPPFLAGS="$CPPFLAGS"
19632             SVN_GNOME_KEYRING_INCLUDES="`$PKG_CONFIG --cflags glib-2.0 gnome-keyring-1`"
19633             CPPFLAGS="$CPPFLAGS $SVN_GNOME_KEYRING_INCLUDES"
19634             ac_fn_c_check_header_mongrel "$LINENO" "gnome-keyring.h" "ac_cv_header_gnome_keyring_h" "$ac_includes_default"
19635 if test "x$ac_cv_header_gnome_keyring_h" = xyes; then :
19636   found_old_gnome_keyring=yes
19637 else
19638   found_old_gnome_keyring=no
19639 fi
19640
19641
19642             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNOME Keyring" >&5
19643 $as_echo_n "checking for GNOME Keyring... " >&6; }
19644             if test "$found_old_gnome_keyring" = "yes"; then
19645               { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19646 $as_echo "yes" >&6; }
19647
19648 $as_echo "#define SVN_HAVE_GNOME_KEYRING 1" >>confdefs.h
19649
19650               CPPFLAGS="$old_CPPFLAGS"
19651               SVN_GNOME_KEYRING_LIBS="`$PKG_CONFIG --libs glib-2.0 gnome-keyring-1`"
19652               SVN_GNOME_KEYRING_PCLIBS="glib-2.0, gnome-keyring-1"
19653             else
19654               { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19655 $as_echo "no" >&6; }
19656               if test "$with_old_gnome_keyring" = "yes"; then
19657                 as_fn_error $? "cannot find GNOME Keyring" "$LINENO" 5
19658               fi
19659             fi
19660           else
19661             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19662 $as_echo "no" >&6; }
19663             if test "$with_old_gnome_keyring" = "yes"; then
19664               as_fn_error $? "cannot find GLib and GNOME Keyring .pc files." "$LINENO" 5
19665             else
19666               with_old_gnome_keyring=no
19667             fi
19668           fi
19669         else
19670           if test "$with_old_gnome_keyring" = "yes"; then
19671             as_fn_error $? "cannot find pkg-config. GNOME Keyring requires this." "$LINENO" 5
19672           else
19673             with_old_gnome_keyring=no
19674           fi
19675         fi
19676       else
19677         if test "$with_old_gnome_keyring" = "yes"; then
19678           as_fn_error $? "APR does not have support for DSOs. GNOME Keyring requires this." "$LINENO" 5
19679         else
19680           with_old_gnome_keyring=no
19681         fi
19682       fi
19683     else
19684       if test "$with_old_gnome_keyring" = "yes"; then
19685         as_fn_error $? "--with-old-gnome-keyring conflicts with --disable-shared" "$LINENO" 5
19686       else
19687         with_old_gnome_keyring=no
19688       fi
19689     fi
19690     ;;
19691   esac
19692 else
19693   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19694 $as_echo "no" >&6; }
19695 fi
19696
19697
19698
19699
19700
19701 # Check whether --with-gnome_keyring was given.
19702 if test "${with_gnome_keyring+set}" = set; then :
19703   withval=$with_gnome_keyring; with_gnome_keyring="$withval"
19704 else
19705   with_gnome_keyring=auto
19706 fi
19707
19708
19709   found_gnome_keyring="no"
19710   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to look for GNOME Keyring" >&5
19711 $as_echo_n "checking whether to look for GNOME Keyring... " >&6; }
19712   if test "$found_old_gnome_keyring" = "yes" && test "$with_gnome_keyring" = "auto"; then
19713     with_gnome_keyring="no"
19714   fi
19715   if test "$with_gnome_keyring" != "no"; then
19716     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19717 $as_echo "yes" >&6; }
19718     case "$host" in
19719     *-*-darwin*)
19720       if test "$with_gnome_keyring" = "yes"; then
19721         as_fn_error $? "--with-gnome-keyring is not supported on Mac OS X." "$LINENO" 5
19722       fi
19723       ;;
19724     *)
19725       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNOME Keyring" >&5
19726 $as_echo_n "checking for GNOME Keyring... " >&6; }
19727       if test "$found_old_gnome_keyring" = "no"; then
19728         if test "$svn_enable_shared" = "yes"; then
19729           if test "$APR_HAS_DSO" = "yes"; then
19730             if test -n "$PKG_CONFIG"; then
19731               if $PKG_CONFIG --exists libsecret-1; then
19732                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19733 $as_echo "yes" >&6; }
19734
19735 $as_echo "#define SVN_HAVE_LIBSECRET 1" >>confdefs.h
19736
19737                 SVN_GNOME_KEYRING_INCLUDES="`$PKG_CONFIG --cflags libsecret-1`"
19738                 SVN_GNOME_KEYRING_LIBS="`$PKG_CONFIG --libs libsecret-1`"
19739                 SVN_GNOME_KEYRING_PCLIBS="libsecret-1"
19740                 found_gnome_keyring="yes"
19741               else
19742                 if test "$with_gnome_keyring" = "yes"; then
19743                   as_fn_error $? "cannot find libsecret" "$LINENO" 5
19744                 fi
19745               fi
19746             else
19747               if test "$with_gnome_keyring" = "yes"; then
19748                 as_fn_error $? "cannot find pkg-config" "$LINENO" 5
19749               fi
19750             fi
19751           else
19752             if test "$with_gnome_keyring" = "yes"; then
19753               as_fn_error $? "APR does not support DSOs" "$LINENO" 5
19754             fi
19755           fi
19756         else
19757           if test "$with_gnome_keyring" = "yes"; then
19758             as_fn_error $? "--with-gnome-keyring conflicts with --disable-shared" "$LINENO" 5
19759           fi
19760         fi
19761       else
19762         if test "$with_gnome_keyring" = "yes"; then
19763           as_fn_error $? "--with-gnome-keyring conflicts with --with-old-gnome-keyring" "$LINENO" 5
19764         fi
19765       fi
19766       if test "$found_gnome_keyring" = "no"; then
19767         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19768 $as_echo "no" >&6; }
19769       fi
19770       ;;
19771     esac
19772   else
19773     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19774 $as_echo "no" >&6; }
19775   fi
19776
19777
19778
19779
19780
19781 # Check whether --enable-ev2-impl was given.
19782 if test "${enable_ev2_impl+set}" = set; then :
19783   enableval=$enable_ev2_impl; enable_ev2_impl=$enableval
19784 else
19785   enable_ev2_impl=no
19786 fi
19787
19788 if test "$enable_ev2_impl" = "yes"; then
19789
19790 $as_echo "#define ENABLE_EV2_IMPL 1" >>confdefs.h
19791
19792 fi
19793
19794
19795
19796 # Check whether --enable-nls was given.
19797 if test "${enable_nls+set}" = set; then :
19798   enableval=$enable_nls; enable_nls=$enableval
19799 else
19800   enable_nls=yes
19801 fi
19802
19803
19804 USE_NLS="no"
19805 SVN_INTL_LIBS=""
19806 if test "$enable_nls" = "yes"; then
19807     # Extract the first word of "msgfmt", so it can be a program name with args.
19808 set dummy msgfmt; ac_word=$2
19809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19810 $as_echo_n "checking for $ac_word... " >&6; }
19811 if ${ac_cv_path_MSGFMT+:} false; then :
19812   $as_echo_n "(cached) " >&6
19813 else
19814   case $MSGFMT in
19815   [\\/]* | ?:[\\/]*)
19816   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
19817   ;;
19818   *)
19819   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19820 for as_dir in $PATH
19821 do
19822   IFS=$as_save_IFS
19823   test -z "$as_dir" && as_dir=.
19824     for ac_exec_ext in '' $ac_executable_extensions; do
19825   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19826     ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
19827     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19828     break 2
19829   fi
19830 done
19831   done
19832 IFS=$as_save_IFS
19833
19834   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="none"
19835   ;;
19836 esac
19837 fi
19838 MSGFMT=$ac_cv_path_MSGFMT
19839 if test -n "$MSGFMT"; then
19840   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
19841 $as_echo "$MSGFMT" >&6; }
19842 else
19843   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19844 $as_echo "no" >&6; }
19845 fi
19846
19847
19848   # Extract the first word of "msgmerge", so it can be a program name with args.
19849 set dummy msgmerge; ac_word=$2
19850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19851 $as_echo_n "checking for $ac_word... " >&6; }
19852 if ${ac_cv_path_MSGMERGE+:} false; then :
19853   $as_echo_n "(cached) " >&6
19854 else
19855   case $MSGMERGE in
19856   [\\/]* | ?:[\\/]*)
19857   ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
19858   ;;
19859   *)
19860   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19861 for as_dir in $PATH
19862 do
19863   IFS=$as_save_IFS
19864   test -z "$as_dir" && as_dir=.
19865     for ac_exec_ext in '' $ac_executable_extensions; do
19866   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19867     ac_cv_path_MSGMERGE="$as_dir/$ac_word$ac_exec_ext"
19868     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19869     break 2
19870   fi
19871 done
19872   done
19873 IFS=$as_save_IFS
19874
19875   test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE="none"
19876   ;;
19877 esac
19878 fi
19879 MSGMERGE=$ac_cv_path_MSGMERGE
19880 if test -n "$MSGMERGE"; then
19881   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
19882 $as_echo "$MSGMERGE" >&6; }
19883 else
19884   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19885 $as_echo "no" >&6; }
19886 fi
19887
19888
19889   # Extract the first word of "xgettext", so it can be a program name with args.
19890 set dummy xgettext; ac_word=$2
19891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19892 $as_echo_n "checking for $ac_word... " >&6; }
19893 if ${ac_cv_path_XGETTEXT+:} false; then :
19894   $as_echo_n "(cached) " >&6
19895 else
19896   case $XGETTEXT in
19897   [\\/]* | ?:[\\/]*)
19898   ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
19899   ;;
19900   *)
19901   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19902 for as_dir in $PATH
19903 do
19904   IFS=$as_save_IFS
19905   test -z "$as_dir" && as_dir=.
19906     for ac_exec_ext in '' $ac_executable_extensions; do
19907   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19908     ac_cv_path_XGETTEXT="$as_dir/$ac_word$ac_exec_ext"
19909     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19910     break 2
19911   fi
19912 done
19913   done
19914 IFS=$as_save_IFS
19915
19916   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT="none"
19917   ;;
19918 esac
19919 fi
19920 XGETTEXT=$ac_cv_path_XGETTEXT
19921 if test -n "$XGETTEXT"; then
19922   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
19923 $as_echo "$XGETTEXT" >&6; }
19924 else
19925   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19926 $as_echo "no" >&6; }
19927 fi
19928
19929
19930   if test "$MSGFMT" != "none"; then
19931     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing bindtextdomain" >&5
19932 $as_echo_n "checking for library containing bindtextdomain... " >&6; }
19933 if ${ac_cv_search_bindtextdomain+:} false; then :
19934   $as_echo_n "(cached) " >&6
19935 else
19936   ac_func_search_save_LIBS=$LIBS
19937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19938 /* end confdefs.h.  */
19939
19940 /* Override any GCC internal prototype to avoid an error.
19941    Use char because int might match the return type of a GCC
19942    builtin and then its argument prototype would still apply.  */
19943 #ifdef __cplusplus
19944 extern "C"
19945 #endif
19946 char bindtextdomain ();
19947 int
19948 main ()
19949 {
19950 return bindtextdomain ();
19951   ;
19952   return 0;
19953 }
19954 _ACEOF
19955 for ac_lib in '' intl; do
19956   if test -z "$ac_lib"; then
19957     ac_res="none required"
19958   else
19959     ac_res=-l$ac_lib
19960     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
19961   fi
19962   if ac_fn_c_try_link "$LINENO"; then :
19963   ac_cv_search_bindtextdomain=$ac_res
19964 fi
19965 rm -f core conftest.err conftest.$ac_objext \
19966     conftest$ac_exeext
19967   if ${ac_cv_search_bindtextdomain+:} false; then :
19968   break
19969 fi
19970 done
19971 if ${ac_cv_search_bindtextdomain+:} false; then :
19972
19973 else
19974   ac_cv_search_bindtextdomain=no
19975 fi
19976 rm conftest.$ac_ext
19977 LIBS=$ac_func_search_save_LIBS
19978 fi
19979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_bindtextdomain" >&5
19980 $as_echo "$ac_cv_search_bindtextdomain" >&6; }
19981 ac_res=$ac_cv_search_bindtextdomain
19982 if test "$ac_res" != no; then :
19983   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19984
19985                       # in case libintl needs to be linked explicitly,
19986                       # $ac_cv_search_bindtextdomain contains -l linker flags
19987                       if echo "$ac_cv_search_bindtextdomain" | grep '^-l' >/dev/null
19988                       then
19989                         SVN_INTL_LIBS="$ac_cv_search_bindtextdomain"
19990                       fi
19991
19992 else
19993
19994                     enable_nls="no"
19995
19996 fi
19997
19998     if test "$enable_nls" = "no"; then
19999       # Destroy the cached result so we can test again
20000       unset ac_cv_search_bindtextdomain
20001       # On some systems, libintl needs libiconv to link properly,
20002       # so try again with -liconv.
20003       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing bindtextdomain" >&5
20004 $as_echo_n "checking for library containing bindtextdomain... " >&6; }
20005 if ${ac_cv_search_bindtextdomain+:} false; then :
20006   $as_echo_n "(cached) " >&6
20007 else
20008   ac_func_search_save_LIBS=$LIBS
20009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20010 /* end confdefs.h.  */
20011
20012 /* Override any GCC internal prototype to avoid an error.
20013    Use char because int might match the return type of a GCC
20014    builtin and then its argument prototype would still apply.  */
20015 #ifdef __cplusplus
20016 extern "C"
20017 #endif
20018 char bindtextdomain ();
20019 int
20020 main ()
20021 {
20022 return bindtextdomain ();
20023   ;
20024   return 0;
20025 }
20026 _ACEOF
20027 for ac_lib in '' intl; do
20028   if test -z "$ac_lib"; then
20029     ac_res="none required"
20030   else
20031     ac_res=-l$ac_lib
20032     LIBS="-l$ac_lib -liconv $ac_func_search_save_LIBS"
20033   fi
20034   if ac_fn_c_try_link "$LINENO"; then :
20035   ac_cv_search_bindtextdomain=$ac_res
20036 fi
20037 rm -f core conftest.err conftest.$ac_objext \
20038     conftest$ac_exeext
20039   if ${ac_cv_search_bindtextdomain+:} false; then :
20040   break
20041 fi
20042 done
20043 if ${ac_cv_search_bindtextdomain+:} false; then :
20044
20045 else
20046   ac_cv_search_bindtextdomain=no
20047 fi
20048 rm conftest.$ac_ext
20049 LIBS=$ac_func_search_save_LIBS
20050 fi
20051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_bindtextdomain" >&5
20052 $as_echo "$ac_cv_search_bindtextdomain" >&6; }
20053 ac_res=$ac_cv_search_bindtextdomain
20054 if test "$ac_res" != no; then :
20055   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20056
20057                       enable_nls="yes"
20058                       if echo "$ac_cv_search_bindtextdomain" | grep '^-l' >/dev/null
20059                       then
20060                         SVN_INTL_LIBS="$ac_cv_search_bindtextdomain"
20061                       fi
20062                       # This is here so that -liconv ends up in LIBS
20063                       # if it worked with -liconv.
20064                       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libiconv_open in -liconv" >&5
20065 $as_echo_n "checking for libiconv_open in -liconv... " >&6; }
20066 if ${ac_cv_lib_iconv_libiconv_open+:} false; then :
20067   $as_echo_n "(cached) " >&6
20068 else
20069   ac_check_lib_save_LIBS=$LIBS
20070 LIBS="-liconv  $LIBS"
20071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20072 /* end confdefs.h.  */
20073
20074 /* Override any GCC internal prototype to avoid an error.
20075    Use char because int might match the return type of a GCC
20076    builtin and then its argument prototype would still apply.  */
20077 #ifdef __cplusplus
20078 extern "C"
20079 #endif
20080 char libiconv_open ();
20081 int
20082 main ()
20083 {
20084 return libiconv_open ();
20085   ;
20086   return 0;
20087 }
20088 _ACEOF
20089 if ac_fn_c_try_link "$LINENO"; then :
20090   ac_cv_lib_iconv_libiconv_open=yes
20091 else
20092   ac_cv_lib_iconv_libiconv_open=no
20093 fi
20094 rm -f core conftest.err conftest.$ac_objext \
20095     conftest$ac_exeext conftest.$ac_ext
20096 LIBS=$ac_check_lib_save_LIBS
20097 fi
20098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_iconv_libiconv_open" >&5
20099 $as_echo "$ac_cv_lib_iconv_libiconv_open" >&6; }
20100 if test "x$ac_cv_lib_iconv_libiconv_open" = xyes; then :
20101   cat >>confdefs.h <<_ACEOF
20102 #define HAVE_LIBICONV 1
20103 _ACEOF
20104
20105   LIBS="-liconv $LIBS"
20106
20107 fi
20108
20109
20110 else
20111
20112                       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: bindtextdomain() not found.  Disabling NLS." >&5
20113 $as_echo "$as_me: WARNING: bindtextdomain() not found.  Disabling NLS." >&2;}
20114                       enable_nls="no"
20115
20116 fi
20117
20118     fi
20119     if test "$enable_nls" = "yes"; then
20120
20121 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
20122
20123       USE_NLS="yes"
20124     fi
20125   fi
20126 fi
20127
20128
20129
20130
20131
20132 GETTEXT_CODESET=\#
20133 NO_GETTEXT_CODESET=\#
20134 if test $USE_NLS = "yes"; then
20135    for ac_func in bind_textdomain_codeset
20136 do :
20137   ac_fn_c_check_func "$LINENO" "bind_textdomain_codeset" "ac_cv_func_bind_textdomain_codeset"
20138 if test "x$ac_cv_func_bind_textdomain_codeset" = xyes; then :
20139   cat >>confdefs.h <<_ACEOF
20140 #define HAVE_BIND_TEXTDOMAIN_CODESET 1
20141 _ACEOF
20142   GETTEXT_CODESET=""
20143 else
20144    NO_GETTEXT_CODESET=""
20145 fi
20146 done
20147
20148 fi
20149
20150
20151
20152 # Check if we are using GNU gettext.
20153 GNU_GETTEXT=no
20154 MSGFMTFLAGS=''
20155 if test $USE_NLS = "yes"; then
20156    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we are using GNU gettext" >&5
20157 $as_echo_n "checking if we are using GNU gettext... " >&6; }
20158    if $MSGFMT --version 2>&1 | $EGREP GNU > /dev/null; then
20159       GNU_GETTEXT=yes
20160       MSGFMTFLAGS='-c'
20161    fi
20162    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNU_GETTEXT" >&5
20163 $as_echo "$GNU_GETTEXT" >&6; }
20164 fi
20165
20166
20167
20168 libmagic_found=no
20169
20170
20171 # Check whether --with-libmagic was given.
20172 if test "${with_libmagic+set}" = set; then :
20173   withval=$with_libmagic;
20174   if test "$withval" = "yes" ; then
20175     ac_fn_c_check_header_mongrel "$LINENO" "magic.h" "ac_cv_header_magic_h" "$ac_includes_default"
20176 if test "x$ac_cv_header_magic_h" = xyes; then :
20177
20178       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for magic_open in -lmagic" >&5
20179 $as_echo_n "checking for magic_open in -lmagic... " >&6; }
20180 if ${ac_cv_lib_magic_magic_open+:} false; then :
20181   $as_echo_n "(cached) " >&6
20182 else
20183   ac_check_lib_save_LIBS=$LIBS
20184 LIBS="-lmagic  $LIBS"
20185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20186 /* end confdefs.h.  */
20187
20188 /* Override any GCC internal prototype to avoid an error.
20189    Use char because int might match the return type of a GCC
20190    builtin and then its argument prototype would still apply.  */
20191 #ifdef __cplusplus
20192 extern "C"
20193 #endif
20194 char magic_open ();
20195 int
20196 main ()
20197 {
20198 return magic_open ();
20199   ;
20200   return 0;
20201 }
20202 _ACEOF
20203 if ac_fn_c_try_link "$LINENO"; then :
20204   ac_cv_lib_magic_magic_open=yes
20205 else
20206   ac_cv_lib_magic_magic_open=no
20207 fi
20208 rm -f core conftest.err conftest.$ac_objext \
20209     conftest$ac_exeext conftest.$ac_ext
20210 LIBS=$ac_check_lib_save_LIBS
20211 fi
20212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_magic_magic_open" >&5
20213 $as_echo "$ac_cv_lib_magic_magic_open" >&6; }
20214 if test "x$ac_cv_lib_magic_magic_open" = xyes; then :
20215   libmagic_found="builtin"
20216 fi
20217
20218
20219 fi
20220
20221
20222     libmagic_prefix="the default locations"
20223   elif test "$withval" != "no"; then
20224     libmagic_prefix=$withval
20225     save_cppflags="$CPPFLAGS"
20226     CPPFLAGS="$CPPFLAGS -I$libmagic_prefix/include"
20227     for ac_header in magic.h
20228 do :
20229   ac_fn_c_check_header_mongrel "$LINENO" "magic.h" "ac_cv_header_magic_h" "$ac_includes_default"
20230 if test "x$ac_cv_header_magic_h" = xyes; then :
20231   cat >>confdefs.h <<_ACEOF
20232 #define HAVE_MAGIC_H 1
20233 _ACEOF
20234
20235       save_ldflags="$LDFLAGS"
20236       LDFLAGS="-L$libmagic_prefix/lib $LDFLAGS"
20237       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for magic_open in -lmagic" >&5
20238 $as_echo_n "checking for magic_open in -lmagic... " >&6; }
20239 if ${ac_cv_lib_magic_magic_open+:} false; then :
20240   $as_echo_n "(cached) " >&6
20241 else
20242   ac_check_lib_save_LIBS=$LIBS
20243 LIBS="-lmagic  $LIBS"
20244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20245 /* end confdefs.h.  */
20246
20247 /* Override any GCC internal prototype to avoid an error.
20248    Use char because int might match the return type of a GCC
20249    builtin and then its argument prototype would still apply.  */
20250 #ifdef __cplusplus
20251 extern "C"
20252 #endif
20253 char magic_open ();
20254 int
20255 main ()
20256 {
20257 return magic_open ();
20258   ;
20259   return 0;
20260 }
20261 _ACEOF
20262 if ac_fn_c_try_link "$LINENO"; then :
20263   ac_cv_lib_magic_magic_open=yes
20264 else
20265   ac_cv_lib_magic_magic_open=no
20266 fi
20267 rm -f core conftest.err conftest.$ac_objext \
20268     conftest$ac_exeext conftest.$ac_ext
20269 LIBS=$ac_check_lib_save_LIBS
20270 fi
20271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_magic_magic_open" >&5
20272 $as_echo "$ac_cv_lib_magic_magic_open" >&6; }
20273 if test "x$ac_cv_lib_magic_magic_open" = xyes; then :
20274   libmagic_found="yes"
20275 fi
20276
20277       LDFLAGS="$save_ldflags"
20278
20279 fi
20280
20281 done
20282
20283     CPPFLAGS="$save_cppflags"
20284   fi
20285   if test "$withval" != "no" && test "$libmagic_found" = "no"; then
20286     as_fn_error $? "--with-libmagic requested, but libmagic not found at $libmagic_prefix" "$LINENO" 5
20287   fi
20288
20289 else
20290
20291   ac_fn_c_check_header_mongrel "$LINENO" "magic.h" "ac_cv_header_magic_h" "$ac_includes_default"
20292 if test "x$ac_cv_header_magic_h" = xyes; then :
20293
20294     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for magic_open in -lmagic" >&5
20295 $as_echo_n "checking for magic_open in -lmagic... " >&6; }
20296 if ${ac_cv_lib_magic_magic_open+:} false; then :
20297   $as_echo_n "(cached) " >&6
20298 else
20299   ac_check_lib_save_LIBS=$LIBS
20300 LIBS="-lmagic  $LIBS"
20301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20302 /* end confdefs.h.  */
20303
20304 /* Override any GCC internal prototype to avoid an error.
20305    Use char because int might match the return type of a GCC
20306    builtin and then its argument prototype would still apply.  */
20307 #ifdef __cplusplus
20308 extern "C"
20309 #endif
20310 char magic_open ();
20311 int
20312 main ()
20313 {
20314 return magic_open ();
20315   ;
20316   return 0;
20317 }
20318 _ACEOF
20319 if ac_fn_c_try_link "$LINENO"; then :
20320   ac_cv_lib_magic_magic_open=yes
20321 else
20322   ac_cv_lib_magic_magic_open=no
20323 fi
20324 rm -f core conftest.err conftest.$ac_objext \
20325     conftest$ac_exeext conftest.$ac_ext
20326 LIBS=$ac_check_lib_save_LIBS
20327 fi
20328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_magic_magic_open" >&5
20329 $as_echo "$ac_cv_lib_magic_magic_open" >&6; }
20330 if test "x$ac_cv_lib_magic_magic_open" = xyes; then :
20331   libmagic_found="builtin"
20332 fi
20333
20334
20335 fi
20336
20337
20338
20339 fi
20340
20341
20342 if test "$libmagic_found" != "no"; then
20343
20344 $as_echo "#define SVN_HAVE_LIBMAGIC 1" >>confdefs.h
20345
20346   SVN_MAGIC_LIBS="-lmagic"
20347 fi
20348
20349 if test "$libmagic_found" = "yes"; then
20350   SVN_MAGIC_INCLUDES="-I$libmagic_prefix/include"
20351   LDFLAGS="$LDFLAGS `
20352   input_flags="-L$libmagic_prefix/lib"
20353   output_flags=""
20354   filtered_dirs="/lib /lib64 /usr/lib /usr/lib64"
20355   for flag in $input_flags; do
20356     filter="no"
20357     for dir in $filtered_dirs; do
20358       if test "$flag" = "-L$dir" || test "$flag" = "-L$dir/"; then
20359         filter="yes"
20360         break
20361       fi
20362     done
20363     if test "$filter" = "no"; then
20364       output_flags="$output_flags $flag"
20365     fi
20366   done
20367   if test -n "$output_flags"; then
20368     printf "%s" "${output_flags# }"
20369   fi
20370 `"
20371 fi
20372
20373
20374
20375
20376
20377
20378 # Check whether --with-kwallet was given.
20379 if test "${with_kwallet+set}" = set; then :
20380   withval=$with_kwallet; svn_lib_kwallet="$withval"
20381 else
20382   svn_lib_kwallet=no
20383 fi
20384
20385
20386   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to look for KWallet" >&5
20387 $as_echo_n "checking whether to look for KWallet... " >&6; }
20388   if test "$svn_lib_kwallet" != "no"; then
20389     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20390 $as_echo "yes" >&6; }
20391     case "$host" in
20392     *-*-darwin*)
20393       as_fn_error $? "--with-kwallet is not supported on Mac OS X." "$LINENO" 5
20394       ;;
20395     *)
20396       if test "$svn_enable_shared" = "yes"; then
20397         if test "$APR_HAS_DSO" = "yes"; then
20398           if test -n "$PKG_CONFIG"; then
20399             if test "$HAVE_DBUS" = "yes"; then
20400               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Qt" >&5
20401 $as_echo_n "checking for Qt... " >&6; }
20402               if $PKG_CONFIG --exists Qt5Core Qt5DBus Qt5Gui; then
20403                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, Qt5" >&5
20404 $as_echo "yes, Qt5" >&6; }
20405                 qt_pkg_config_names="Qt5Core Qt5DBus Qt5Gui"
20406                 kde_config_name="kf5-config"
20407                 kde_inc_names="KF5/KWallet KF5/KCoreAddons KF5/KI18n"
20408                 kde_lib_names="-lKF5Wallet -lKF5I18n -lKF5CoreAddons -lQt5Gui -lQt5DBus -lQt5Core"
20409               elif $PKG_CONFIG --exists QtCore QtDBus QtGui; then
20410                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, Qt4" >&5
20411 $as_echo "yes, Qt4" >&6; }
20412                 qt_pkg_config_names="QtCore QtDBus QtGui"
20413                 kde_config_name="kde4-config"
20414                 kde_inc_names="/"
20415                 kde_lib_names="-lkdeui -lkdecore -lQtGui -lQtDBus -lQtCore"
20416               fi
20417               if test -n "$qt_pkg_config_names"; then
20418                 if test "$svn_lib_kwallet" != "yes"; then
20419                   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $kde_config_name" >&5
20420 $as_echo_n "checking for $kde_config_name... " >&6; }
20421                   KDE_CONFIG="$svn_lib_kwallet/bin/$kde_config_name"
20422                   if test -f "$KDE_CONFIG" && test -x "$KDE_CONFIG"; then
20423                     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20424 $as_echo "yes" >&6; }
20425                   else
20426                     if echo "$svn_lib_kwallet" | $EGREP ":" > /dev/null; then
20427                       { $as_echo "$as_me:${as_lineno-$LINENO}: result: unneeded" >&5
20428 $as_echo "unneeded" >&6; }
20429                       KDE_CONFIG="unneeded"
20430                       kde_incdir="`echo "$svn_lib_kwallet" | $SED -e "s/:.*//"`"
20431                       kde_libdir="`echo "$svn_lib_kwallet" | $SED -e "s/.*://"`"
20432                     else
20433                       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20434 $as_echo "no" >&6; }
20435                       KDE_CONFIG=""
20436                     fi
20437                   fi
20438                 else
20439                   # Extract the first word of "$kde_config_name", so it can be a program name with args.
20440 set dummy $kde_config_name; ac_word=$2
20441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20442 $as_echo_n "checking for $ac_word... " >&6; }
20443 if ${ac_cv_path_KDE_CONFIG+:} false; then :
20444   $as_echo_n "(cached) " >&6
20445 else
20446   case $KDE_CONFIG in
20447   [\\/]* | ?:[\\/]*)
20448   ac_cv_path_KDE_CONFIG="$KDE_CONFIG" # Let the user override the test with a path.
20449   ;;
20450   *)
20451   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20452 for as_dir in $PATH
20453 do
20454   IFS=$as_save_IFS
20455   test -z "$as_dir" && as_dir=.
20456     for ac_exec_ext in '' $ac_executable_extensions; do
20457   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20458     ac_cv_path_KDE_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20459     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20460     break 2
20461   fi
20462 done
20463   done
20464 IFS=$as_save_IFS
20465
20466   ;;
20467 esac
20468 fi
20469 KDE_CONFIG=$ac_cv_path_KDE_CONFIG
20470 if test -n "$KDE_CONFIG"; then
20471   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $KDE_CONFIG" >&5
20472 $as_echo "$KDE_CONFIG" >&6; }
20473 else
20474   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20475 $as_echo "no" >&6; }
20476 fi
20477
20478
20479                   if test -n "$KDE_CONFIG"; then
20480                     kde_incdir="`$KDE_CONFIG --install include`"
20481                     kde_libdir="`$KDE_CONFIG --install lib`"
20482                   fi
20483                 fi
20484                 if test -n "$KDE_CONFIG"; then
20485                   old_CXXFLAGS="$CXXFLAGS"
20486                   old_LDFLAGS="$LDFLAGS"
20487                   old_LIBS="$LIBS"
20488                                     CXXFLAGS="$CXXFLAGS $CXXMODEFLAGS"
20489                   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for KWallet" >&5
20490 $as_echo_n "checking for KWallet... " >&6; }
20491                   for d in `$PKG_CONFIG --cflags $qt_pkg_config_names`; do
20492                     if test -n "`echo "$d" | $EGREP -- '^-D[^[:space:]]*'`"; then
20493                       CPPFLAGS="$CPPFLAGS $d"
20494                     fi
20495                   done
20496                   qt_include_dirs="`$PKG_CONFIG --cflags-only-I $qt_pkg_config_names`"
20497                   for kde_inc_name in $kde_inc_names; do
20498                     kde_kwallet_includes="$kde_kwallet_includes -I$kde_incdir/$kde_inc_name"
20499                   done
20500                   SVN_KWALLET_INCLUDES="$DBUS_CPPFLAGS $qt_include_dirs $kde_kwallet_includes"
20501                   qt_libs_other_options="`$PKG_CONFIG --libs-only-other $qt_pkg_config_names`"
20502                   SVN_KWALLET_LIBS="$DBUS_LIBS $kde_lib_names $qt_libs_other_options"
20503                   CXXFLAGS="$CXXFLAGS $SVN_KWALLET_INCLUDES -fPIC"
20504                   LIBS="$LIBS $SVN_KWALLET_LIBS"
20505                   qt_lib_dirs="`$PKG_CONFIG --libs-only-L $qt_pkg_config_names`"
20506                   LDFLAGS="$old_LDFLAGS `
20507   input_flags="$qt_lib_dirs -L$kde_libdir"
20508   output_flags=""
20509   filtered_dirs="/lib /lib64 /usr/lib /usr/lib64"
20510   for flag in $input_flags; do
20511     filter="no"
20512     for dir in $filtered_dirs; do
20513       if test "$flag" = "-L$dir" || test "$flag" = "-L$dir/"; then
20514         filter="yes"
20515         break
20516       fi
20517     done
20518     if test "$filter" = "no"; then
20519       output_flags="$output_flags $flag"
20520     fi
20521   done
20522   if test -n "$output_flags"; then
20523     printf "%s" "${output_flags# }"
20524   fi
20525 `"
20526                   ac_ext=cpp
20527 ac_cpp='$CXXCPP $CPPFLAGS'
20528 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20529 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20530 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20531
20532                   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20533 /* end confdefs.h.  */
20534
20535 #include <kwallet.h>
20536 int main()
20537 {KWallet::Wallet::walletList();}
20538 _ACEOF
20539 if ac_fn_cxx_try_link "$LINENO"; then :
20540   svn_lib_kwallet="yes"
20541 else
20542   svn_lib_kwallet="no"
20543 fi
20544 rm -f core conftest.err conftest.$ac_objext \
20545     conftest$ac_exeext conftest.$ac_ext
20546                   ac_ext=c
20547 ac_cpp='$CPP $CPPFLAGS'
20548 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20549 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20550 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20551
20552                   if test "$svn_lib_kwallet" = "yes"; then
20553                     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20554 $as_echo "yes" >&6; }
20555                     CXXFLAGS="$old_CXXFLAGS"
20556                     LIBS="$old_LIBS"
20557                     if test "$kde_config_name" = "kf5-config"; then
20558
20559 $as_echo "#define SVN_HAVE_KF5 1" >>confdefs.h
20560
20561                     fi
20562                   else
20563                     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20564 $as_echo "no" >&6; }
20565                     as_fn_error $? "cannot find KWallet" "$LINENO" 5
20566                   fi
20567                 else
20568                   as_fn_error $? "cannot find $kde_config_name" "$LINENO" 5
20569                 fi
20570               else
20571                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20572 $as_echo "no" >&6; }
20573                 as_fn_error $? "cannot find Qt" "$LINENO" 5
20574               fi
20575             else
20576               as_fn_error $? "cannot find D-Bus" "$LINENO" 5
20577             fi
20578           else
20579             as_fn_error $? "cannot find pkg-config" "$LINENO" 5
20580           fi
20581         else
20582           as_fn_error $? "APR does not have support for DSOs" "$LINENO" 5
20583         fi
20584       else
20585         as_fn_error $? "--with-kwallet conflicts with --disable-shared" "$LINENO" 5
20586       fi
20587     ;;
20588     esac
20589   else
20590     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20591 $as_echo "no" >&6; }
20592   fi
20593
20594
20595
20596
20597 if test "$svn_lib_kwallet" = "yes"; then
20598
20599 $as_echo "#define SVN_HAVE_KWALLET 1" >>confdefs.h
20600
20601 fi
20602
20603 # Check whether --enable-plaintext-password-storage was given.
20604 if test "${enable_plaintext_password_storage+set}" = set; then :
20605   enableval=$enable_plaintext_password_storage; plaintext_passwordd_storage="$enableval"
20606 else
20607   plaintext_passwordd_storage="no"
20608 fi
20609
20610
20611 if test "$plaintext_passwordd_storage" = "yes"; then
20612   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Enabling plaintext password/passphrase storage" >&5
20613 $as_echo "$as_me: WARNING: Enabling plaintext password/passphrase storage" >&2;}
20614 else
20615   { $as_echo "$as_me:${as_lineno-$LINENO}: Disabling plaintext password/passphrase storage" >&5
20616 $as_echo "$as_me: Disabling plaintext password/passphrase storage" >&6;}
20617
20618 $as_echo "#define SVN_DISABLE_PLAINTEXT_PASSWORD_STORAGE 1" >>confdefs.h
20619
20620 fi
20621
20622
20623 INSTALL_STATIC_RULES="install-bin install-docs"
20624 INSTALL_RULES="install-fsmod-lib install-ramod-lib install-lib install-include install-static"
20625 INSTALL_RULES="$INSTALL_RULES $INSTALL_APACHE_RULE"
20626 BUILD_RULES="fsmod-lib ramod-lib lib bin test sub-test $BUILD_APACHE_RULE tools"
20627
20628 if test "$svn_lib_berkeley_db" = "yes"; then
20629   BUILD_RULES="$BUILD_RULES bdb-lib bdb-test"
20630   INSTALL_RULES="`echo $INSTALL_RULES | $SED 's/install-fsmod-lib/install-fsmod-lib install-bdb-lib/'`"
20631   INSTALL_STATIC_RULES="$INSTALL_STATIC_RULES install-bdb-lib"
20632   BDB_TEST_DEPS="\$(BDB_TEST_DEPS)"
20633   BDB_TEST_PROGRAMS="\$(BDB_TEST_PROGRAMS)"
20634 fi
20635
20636 if test "$svn_lib_serf" = "yes"; then
20637   BUILD_RULES="$BUILD_RULES serf-lib"
20638   INSTALL_RULES="`echo $INSTALL_RULES | $SED 's/install-ramod-lib/install-ramod-lib install-serf-lib/'`"
20639   INSTALL_STATIC_RULES="$INSTALL_STATIC_RULES install-serf-lib"
20640 fi
20641
20642 if test "$svn_lib_kwallet" = "yes"; then
20643   BUILD_RULES="$BUILD_RULES kwallet-lib"
20644   INSTALL_RULES="`echo $INSTALL_RULES | $SED 's/install-lib/install-lib install-kwallet-lib/'`"
20645   INSTALL_STATIC_RULES="$INSTALL_STATIC_RULES install-kwallet-lib"
20646 fi
20647
20648 if test "$found_old_gnome_keyring" = "yes" || test "$found_gnome_keyring" = "yes"; then
20649   BUILD_RULES="$BUILD_RULES gnome-keyring-lib"
20650   INSTALL_RULES="`echo $INSTALL_RULES | $SED 's/install-lib/install-lib install-gnome-keyring-lib/'`"
20651   INSTALL_STATIC_RULES="$INSTALL_STATIC_RULES install-gnome-keyring-lib"
20652 fi
20653
20654 if test "$USE_NLS" = "yes"; then
20655   BUILD_RULES="$BUILD_RULES locale"
20656   INSTALL_RULES="$INSTALL_RULES install-locale"
20657 fi
20658
20659
20660
20661
20662
20663
20664
20665
20666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
20667 $as_echo_n "checking for ANSI C header files... " >&6; }
20668 if ${ac_cv_header_stdc+:} false; then :
20669   $as_echo_n "(cached) " >&6
20670 else
20671   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20672 /* end confdefs.h.  */
20673 #include <stdlib.h>
20674 #include <stdarg.h>
20675 #include <string.h>
20676 #include <float.h>
20677
20678 int
20679 main ()
20680 {
20681
20682   ;
20683   return 0;
20684 }
20685 _ACEOF
20686 if ac_fn_c_try_compile "$LINENO"; then :
20687   ac_cv_header_stdc=yes
20688 else
20689   ac_cv_header_stdc=no
20690 fi
20691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20692
20693 if test $ac_cv_header_stdc = yes; then
20694   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
20695   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20696 /* end confdefs.h.  */
20697 #include <string.h>
20698
20699 _ACEOF
20700 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20701   $EGREP "memchr" >/dev/null 2>&1; then :
20702
20703 else
20704   ac_cv_header_stdc=no
20705 fi
20706 rm -f conftest*
20707
20708 fi
20709
20710 if test $ac_cv_header_stdc = yes; then
20711   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
20712   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20713 /* end confdefs.h.  */
20714 #include <stdlib.h>
20715
20716 _ACEOF
20717 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20718   $EGREP "free" >/dev/null 2>&1; then :
20719
20720 else
20721   ac_cv_header_stdc=no
20722 fi
20723 rm -f conftest*
20724
20725 fi
20726
20727 if test $ac_cv_header_stdc = yes; then
20728   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
20729   if test "$cross_compiling" = yes; then :
20730   :
20731 else
20732   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20733 /* end confdefs.h.  */
20734 #include <ctype.h>
20735 #include <stdlib.h>
20736 #if ((' ' & 0x0FF) == 0x020)
20737 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
20738 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
20739 #else
20740 # define ISLOWER(c) \
20741                    (('a' <= (c) && (c) <= 'i') \
20742                      || ('j' <= (c) && (c) <= 'r') \
20743                      || ('s' <= (c) && (c) <= 'z'))
20744 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
20745 #endif
20746
20747 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
20748 int
20749 main ()
20750 {
20751   int i;
20752   for (i = 0; i < 256; i++)
20753     if (XOR (islower (i), ISLOWER (i))
20754         || toupper (i) != TOUPPER (i))
20755       return 2;
20756   return 0;
20757 }
20758 _ACEOF
20759 if ac_fn_c_try_run "$LINENO"; then :
20760
20761 else
20762   ac_cv_header_stdc=no
20763 fi
20764 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20765   conftest.$ac_objext conftest.beam conftest.$ac_ext
20766 fi
20767
20768 fi
20769 fi
20770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
20771 $as_echo "$ac_cv_header_stdc" >&6; }
20772 if test $ac_cv_header_stdc = yes; then
20773
20774 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
20775
20776 fi
20777
20778
20779
20780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
20781 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
20782 if ${ac_cv_c_const+:} false; then :
20783   $as_echo_n "(cached) " >&6
20784 else
20785   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20786 /* end confdefs.h.  */
20787
20788 int
20789 main ()
20790 {
20791
20792 #ifndef __cplusplus
20793   /* Ultrix mips cc rejects this sort of thing.  */
20794   typedef int charset[2];
20795   const charset cs = { 0, 0 };
20796   /* SunOS 4.1.1 cc rejects this.  */
20797   char const *const *pcpcc;
20798   char **ppc;
20799   /* NEC SVR4.0.2 mips cc rejects this.  */
20800   struct point {int x, y;};
20801   static struct point const zero = {0,0};
20802   /* AIX XL C 1.02.0.0 rejects this.
20803      It does not let you subtract one const X* pointer from another in
20804      an arm of an if-expression whose if-part is not a constant
20805      expression */
20806   const char *g = "string";
20807   pcpcc = &g + (g ? g-g : 0);
20808   /* HPUX 7.0 cc rejects these. */
20809   ++pcpcc;
20810   ppc = (char**) pcpcc;
20811   pcpcc = (char const *const *) ppc;
20812   { /* SCO 3.2v4 cc rejects this sort of thing.  */
20813     char tx;
20814     char *t = &tx;
20815     char const *s = 0 ? (char *) 0 : (char const *) 0;
20816
20817     *t++ = 0;
20818     if (s) return 0;
20819   }
20820   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
20821     int x[] = {25, 17};
20822     const int *foo = &x[0];
20823     ++foo;
20824   }
20825   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
20826     typedef const int *iptr;
20827     iptr p = 0;
20828     ++p;
20829   }
20830   { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
20831        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
20832     struct s { int j; const int *ap[3]; } bx;
20833     struct s *b = &bx; b->j = 5;
20834   }
20835   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
20836     const int foo = 10;
20837     if (!foo) return 0;
20838   }
20839   return !cs[0] && !zero.x;
20840 #endif
20841
20842   ;
20843   return 0;
20844 }
20845 _ACEOF
20846 if ac_fn_c_try_compile "$LINENO"; then :
20847   ac_cv_c_const=yes
20848 else
20849   ac_cv_c_const=no
20850 fi
20851 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20852 fi
20853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
20854 $as_echo "$ac_cv_c_const" >&6; }
20855 if test $ac_cv_c_const = no; then
20856
20857 $as_echo "#define const /**/" >>confdefs.h
20858
20859 fi
20860
20861
20862 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
20863 if test "x$ac_cv_type_size_t" = xyes; then :
20864
20865 else
20866
20867 cat >>confdefs.h <<_ACEOF
20868 #define size_t unsigned int
20869 _ACEOF
20870
20871 fi
20872
20873
20874
20875
20876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
20877 $as_echo_n "checking for working memcmp... " >&6; }
20878 if ${ac_cv_func_memcmp_working+:} false; then :
20879   $as_echo_n "(cached) " >&6
20880 else
20881   if test "$cross_compiling" = yes; then :
20882   ac_cv_func_memcmp_working=no
20883 else
20884   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20885 /* end confdefs.h.  */
20886 $ac_includes_default
20887 int
20888 main ()
20889 {
20890
20891   /* Some versions of memcmp are not 8-bit clean.  */
20892   char c0 = '\100', c1 = '\200', c2 = '\201';
20893   if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
20894     return 1;
20895
20896   /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
20897      or more and with at least one buffer not starting on a 4-byte boundary.
20898      William Lewis provided this test program.   */
20899   {
20900     char foo[21];
20901     char bar[21];
20902     int i;
20903     for (i = 0; i < 4; i++)
20904       {
20905         char *a = foo + i;
20906         char *b = bar + i;
20907         strcpy (a, "--------01111111");
20908         strcpy (b, "--------10000000");
20909         if (memcmp (a, b, 16) >= 0)
20910           return 1;
20911       }
20912     return 0;
20913   }
20914
20915   ;
20916   return 0;
20917 }
20918 _ACEOF
20919 if ac_fn_c_try_run "$LINENO"; then :
20920   ac_cv_func_memcmp_working=yes
20921 else
20922   ac_cv_func_memcmp_working=no
20923 fi
20924 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20925   conftest.$ac_objext conftest.beam conftest.$ac_ext
20926 fi
20927
20928 fi
20929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
20930 $as_echo "$ac_cv_func_memcmp_working" >&6; }
20931 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
20932   *" memcmp.$ac_objext "* ) ;;
20933   *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
20934  ;;
20935 esac
20936
20937
20938
20939 for ac_func in vprintf
20940 do :
20941   ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
20942 if test "x$ac_cv_func_vprintf" = xyes; then :
20943   cat >>confdefs.h <<_ACEOF
20944 #define HAVE_VPRINTF 1
20945 _ACEOF
20946
20947 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
20948 if test "x$ac_cv_func__doprnt" = xyes; then :
20949
20950 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
20951
20952 fi
20953
20954 fi
20955 done
20956
20957
20958
20959 for ac_func in symlink readlink
20960 do :
20961   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20962 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20963 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
20964   cat >>confdefs.h <<_ACEOF
20965 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20966 _ACEOF
20967
20968 fi
20969 done
20970
20971
20972 for ac_header in sys/utsname.h
20973 do :
20974   ac_fn_c_check_header_mongrel "$LINENO" "sys/utsname.h" "ac_cv_header_sys_utsname_h" "$ac_includes_default"
20975 if test "x$ac_cv_header_sys_utsname_h" = xyes; then :
20976   cat >>confdefs.h <<_ACEOF
20977 #define HAVE_SYS_UTSNAME_H 1
20978 _ACEOF
20979  for ac_func in uname
20980 do :
20981   ac_fn_c_check_func "$LINENO" "uname" "ac_cv_func_uname"
20982 if test "x$ac_cv_func_uname" = xyes; then :
20983   cat >>confdefs.h <<_ACEOF
20984 #define HAVE_UNAME 1
20985 _ACEOF
20986
20987 fi
20988 done
20989
20990 fi
20991
20992 done
20993
20994 for ac_header in elf.h
20995 do :
20996   ac_fn_c_check_header_mongrel "$LINENO" "elf.h" "ac_cv_header_elf_h" "$ac_includes_default"
20997 if test "x$ac_cv_header_elf_h" = xyes; then :
20998   cat >>confdefs.h <<_ACEOF
20999 #define HAVE_ELF_H 1
21000 _ACEOF
21001
21002 fi
21003
21004 done
21005
21006
21007 ac_fn_c_check_header_mongrel "$LINENO" "termios.h" "ac_cv_header_termios_h" "$ac_includes_default"
21008 if test "x$ac_cv_header_termios_h" = xyes; then :
21009
21010   for ac_func in tcgetattr tcsetattr
21011 do :
21012   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21013 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21014 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
21015   cat >>confdefs.h <<_ACEOF
21016 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21017 _ACEOF
21018
21019
21020 $as_echo "#define HAVE_TERMIOS_H 1" >>confdefs.h
21021
21022
21023 fi
21024 done
21025
21026
21027 fi
21028
21029
21030
21031
21032 # Check whether --enable-debug was given.
21033 if test "${enable_debug+set}" = set; then :
21034   enableval=$enable_debug;
21035     if test "$enableval" = "yes" ; then
21036       enable_debugging="yes"
21037     else
21038       enable_debugging="no"
21039     fi
21040
21041 else
21042
21043     # Neither --enable-debug nor --disable-debug was passed.
21044     enable_debugging="maybe"
21045
21046 fi
21047
21048
21049 # Check whether --enable-optimize was given.
21050 if test "${enable_optimize+set}" = set; then :
21051   enableval=$enable_optimize;
21052     if test "$enableval" = "yes" ; then
21053       enable_optimization="yes"
21054     else
21055       enable_optimization="no"
21056     fi
21057
21058 else
21059
21060     # Neither --enable-optimize nor --disable-optimize was passed.
21061     enable_optimization="maybe"
21062
21063 fi
21064
21065
21066 # Check whether --enable-disallowing-of-undefined-references was given.
21067 if test "${enable_disallowing_of_undefined_references+set}" = set; then :
21068   enableval=$enable_disallowing_of_undefined_references;
21069 fi
21070
21071 if test "$enable_disallowing_of_undefined_references" != "yes" && test "`uname`" != "Linux"; then
21072   enable_disallowing_of_undefined_references="no"
21073 fi
21074 if test "$enable_disallowing_of_undefined_references" != "no"; then
21075   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -Wl,--no-undefined" >&5
21076 $as_echo_n "checking for -Wl,--no-undefined... " >&6; }
21077   old_LDFLAGS="$LDFLAGS"
21078   LDFLAGS="$LDFLAGS -Wl,--no-undefined"
21079   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21080 /* end confdefs.h.  */
21081 int main(){;}
21082 _ACEOF
21083 if ac_fn_c_try_link "$LINENO"; then :
21084   svn_wl_no_undefined="yes"
21085 else
21086   svn_wl_no_undefined="no"
21087 fi
21088 rm -f core conftest.err conftest.$ac_objext \
21089     conftest$ac_exeext conftest.$ac_ext
21090   LDFLAGS="$old_LDFLAGS"
21091   if test "$svn_wl_no_undefined" = "yes"; then
21092     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21093 $as_echo "yes" >&6; }
21094     for library_dir in "$abs_srcdir/subversion/libsvn_"*; do
21095       eval "`basename $library_dir`_LDFLAGS=-Wl,--no-undefined"
21096     done
21097     shared_only_LDFLAGS="-Wl,--no-undefined"
21098   else
21099     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21100 $as_echo "no" >&6; }
21101     if test "$enable_disallowing_of_undefined_references" = "yes"; then
21102       as_fn_error $? "--enable-disallowing-of-undefined-references explicitly requested, but -Wl,--no-undefined not supported" "$LINENO" 5
21103     fi
21104   fi
21105 fi
21106
21107
21108
21109
21110
21111
21112
21113
21114
21115
21116
21117
21118
21119
21120
21121
21122
21123 # Check whether --enable-maintainer-mode was given.
21124 if test "${enable_maintainer_mode+set}" = set; then :
21125   enableval=$enable_maintainer_mode;
21126     if test "$enableval" = "yes" ; then
21127       if test "$enable_debugging" = "no" ; then
21128         as_fn_error $? "Can't have --disable-debug and --enable-maintainer-mode" "$LINENO" 5
21129       fi
21130       enable_debugging=yes
21131
21132                   if test "$GCC" = "yes"; then
21133         { $as_echo "$as_me:${as_lineno-$LINENO}: maintainer-mode: adding GCC warning flags" >&5
21134 $as_echo "$as_me: maintainer-mode: adding GCC warning flags" >&6;}
21135
21136
21137                 CFLAGS_KEEP="$CFLAGS"
21138         CFLAGS=""
21139
21140
21141   _svn_xxflags__save="$CFLAGS"
21142   ac_ext=c
21143 ac_cpp='$CPP $CPPFLAGS'
21144 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21145 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21146 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21147
21148   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -Werror=implicit-function-declaration" >&5
21149 $as_echo_n "checking if $CC accepts -Werror=implicit-function-declaration... " >&6; }
21150   CFLAGS="-Werror=implicit-function-declaration $CFLAGS"
21151         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21152 /* end confdefs.h.  */
21153 int main(void){return 0;}
21154 _ACEOF
21155 if ac_fn_c_try_link "$LINENO"; then :
21156
21157     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21158 $as_echo "yes" >&6; }
21159
21160
21161 else
21162
21163     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21164 $as_echo "no" >&6; }
21165     CFLAGS="$_svn_xxflags__save"
21166
21167
21168 fi
21169 rm -f core conftest.err conftest.$ac_objext \
21170     conftest$ac_exeext conftest.$ac_ext
21171   ac_ext=c
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
21176
21177
21178
21179   _svn_xxflags__save="$CFLAGS"
21180   ac_ext=c
21181 ac_cpp='$CPP $CPPFLAGS'
21182 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21183 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21184 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21185
21186   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -Werror=declaration-after-statement" >&5
21187 $as_echo_n "checking if $CC accepts -Werror=declaration-after-statement... " >&6; }
21188   CFLAGS="-Werror=declaration-after-statement $CFLAGS"
21189         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21190 /* end confdefs.h.  */
21191 int main(void){return 0;}
21192 _ACEOF
21193 if ac_fn_c_try_link "$LINENO"; then :
21194
21195     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21196 $as_echo "yes" >&6; }
21197
21198
21199 else
21200
21201     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21202 $as_echo "no" >&6; }
21203     CFLAGS="$_svn_xxflags__save"
21204
21205
21206 fi
21207 rm -f core conftest.err conftest.$ac_objext \
21208     conftest$ac_exeext conftest.$ac_ext
21209   ac_ext=c
21210 ac_cpp='$CPP $CPPFLAGS'
21211 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21212 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21213 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21214
21215
21216
21217   _svn_xxflags__save="$CFLAGS"
21218   ac_ext=c
21219 ac_cpp='$CPP $CPPFLAGS'
21220 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21221 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21222 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21223
21224   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -Wextra-tokens" >&5
21225 $as_echo_n "checking if $CC accepts -Wextra-tokens... " >&6; }
21226   CFLAGS="-Wextra-tokens $CFLAGS"
21227         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21228 /* end confdefs.h.  */
21229 int main(void){return 0;}
21230 _ACEOF
21231 if ac_fn_c_try_link "$LINENO"; then :
21232
21233     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21234 $as_echo "yes" >&6; }
21235
21236
21237 else
21238
21239     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21240 $as_echo "no" >&6; }
21241     CFLAGS="$_svn_xxflags__save"
21242
21243
21244 fi
21245 rm -f core conftest.err conftest.$ac_objext \
21246     conftest$ac_exeext conftest.$ac_ext
21247   ac_ext=c
21248 ac_cpp='$CPP $CPPFLAGS'
21249 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21250 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21251 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21252
21253
21254
21255   _svn_xxflags__save="$CFLAGS"
21256   ac_ext=c
21257 ac_cpp='$CPP $CPPFLAGS'
21258 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21259 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21260 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21261
21262   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -Wnewline-eof" >&5
21263 $as_echo_n "checking if $CC accepts -Wnewline-eof... " >&6; }
21264   CFLAGS="-Wnewline-eof $CFLAGS"
21265         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21266 /* end confdefs.h.  */
21267 int main(void){return 0;}
21268 _ACEOF
21269 if ac_fn_c_try_link "$LINENO"; then :
21270
21271     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21272 $as_echo "yes" >&6; }
21273
21274
21275 else
21276
21277     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21278 $as_echo "no" >&6; }
21279     CFLAGS="$_svn_xxflags__save"
21280
21281
21282 fi
21283 rm -f core conftest.err conftest.$ac_objext \
21284     conftest$ac_exeext conftest.$ac_ext
21285   ac_ext=c
21286 ac_cpp='$CPP $CPPFLAGS'
21287 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21288 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21289 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21290
21291
21292
21293   _svn_xxflags__save="$CFLAGS"
21294   ac_ext=c
21295 ac_cpp='$CPP $CPPFLAGS'
21296 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21297 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21298 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21299
21300   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -Wshorten-64-to-32" >&5
21301 $as_echo_n "checking if $CC accepts -Wshorten-64-to-32... " >&6; }
21302   CFLAGS="-Wshorten-64-to-32 $CFLAGS"
21303         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21304 /* end confdefs.h.  */
21305 int main(void){return 0;}
21306 _ACEOF
21307 if ac_fn_c_try_link "$LINENO"; then :
21308
21309     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21310 $as_echo "yes" >&6; }
21311
21312
21313 else
21314
21315     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21316 $as_echo "no" >&6; }
21317     CFLAGS="$_svn_xxflags__save"
21318
21319
21320 fi
21321 rm -f core conftest.err conftest.$ac_objext \
21322     conftest$ac_exeext conftest.$ac_ext
21323   ac_ext=c
21324 ac_cpp='$CPP $CPPFLAGS'
21325 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21326 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21327 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21328
21329
21330
21331   _svn_xxflags__save="$CFLAGS"
21332   ac_ext=c
21333 ac_cpp='$CPP $CPPFLAGS'
21334 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21335 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21336 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21337
21338   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -Wold-style-definition" >&5
21339 $as_echo_n "checking if $CC accepts -Wold-style-definition... " >&6; }
21340   CFLAGS="-Wold-style-definition $CFLAGS"
21341         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21342 /* end confdefs.h.  */
21343 int main(void){return 0;}
21344 _ACEOF
21345 if ac_fn_c_try_link "$LINENO"; then :
21346
21347     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21348 $as_echo "yes" >&6; }
21349
21350
21351 else
21352
21353     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21354 $as_echo "no" >&6; }
21355     CFLAGS="$_svn_xxflags__save"
21356
21357
21358 fi
21359 rm -f core conftest.err conftest.$ac_objext \
21360     conftest$ac_exeext conftest.$ac_ext
21361   ac_ext=c
21362 ac_cpp='$CPP $CPPFLAGS'
21363 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21364 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21365 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21366
21367
21368
21369   _svn_xxflags__save="$CFLAGS"
21370   ac_ext=c
21371 ac_cpp='$CPP $CPPFLAGS'
21372 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21373 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21374 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21375
21376   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -Wno-system-headers" >&5
21377 $as_echo_n "checking if $CC accepts -Wno-system-headers... " >&6; }
21378   CFLAGS="-Wno-system-headers $CFLAGS"
21379         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21380 /* end confdefs.h.  */
21381 int main(void){return 0;}
21382 _ACEOF
21383 if ac_fn_c_try_link "$LINENO"; then :
21384
21385     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21386 $as_echo "yes" >&6; }
21387
21388
21389 else
21390
21391     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21392 $as_echo "no" >&6; }
21393     CFLAGS="$_svn_xxflags__save"
21394
21395
21396 fi
21397 rm -f core conftest.err conftest.$ac_objext \
21398     conftest$ac_exeext conftest.$ac_ext
21399   ac_ext=c
21400 ac_cpp='$CPP $CPPFLAGS'
21401 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21402 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21403 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21404
21405
21406
21407   _svn_xxflags__save="$CFLAGS"
21408   ac_ext=c
21409 ac_cpp='$CPP $CPPFLAGS'
21410 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21411 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21412 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21413
21414   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -Wno-format-nonliteral" >&5
21415 $as_echo_n "checking if $CC accepts -Wno-format-nonliteral... " >&6; }
21416   CFLAGS="-Wno-format-nonliteral $CFLAGS"
21417         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21418 /* end confdefs.h.  */
21419 int main(void){return 0;}
21420 _ACEOF
21421 if ac_fn_c_try_link "$LINENO"; then :
21422
21423     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21424 $as_echo "yes" >&6; }
21425
21426
21427 else
21428
21429     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21430 $as_echo "no" >&6; }
21431     CFLAGS="$_svn_xxflags__save"
21432
21433
21434 fi
21435 rm -f core conftest.err conftest.$ac_objext \
21436     conftest$ac_exeext conftest.$ac_ext
21437   ac_ext=c
21438 ac_cpp='$CPP $CPPFLAGS'
21439 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21440 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21441 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21442
21443
21444
21445   _svn_xxflags__save="$CFLAGS"
21446   ac_ext=c
21447 ac_cpp='$CPP $CPPFLAGS'
21448 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21449 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21450 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21451
21452   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -Wmissing-variable-declarations" >&5
21453 $as_echo_n "checking if $CC accepts -Wmissing-variable-declarations... " >&6; }
21454   CFLAGS="-Wmissing-variable-declarations $CFLAGS"
21455         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21456 /* end confdefs.h.  */
21457 int main(void){return 0;}
21458 _ACEOF
21459 if ac_fn_c_try_link "$LINENO"; then :
21460
21461     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21462 $as_echo "yes" >&6; }
21463
21464
21465 else
21466
21467     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21468 $as_echo "no" >&6; }
21469     CFLAGS="$_svn_xxflags__save"
21470
21471
21472 fi
21473 rm -f core conftest.err conftest.$ac_objext \
21474     conftest$ac_exeext conftest.$ac_ext
21475   ac_ext=c
21476 ac_cpp='$CPP $CPPFLAGS'
21477 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21478 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21479 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21480
21481
21482
21483   _svn_xxflags__save="$CFLAGS"
21484   ac_ext=c
21485 ac_cpp='$CPP $CPPFLAGS'
21486 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21487 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21488 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21489
21490   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -Wno-unused-const-variable" >&5
21491 $as_echo_n "checking if $CC accepts -Wno-unused-const-variable... " >&6; }
21492   CFLAGS="-Wno-unused-const-variable $CFLAGS"
21493         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21494 /* end confdefs.h.  */
21495 int main(void){return 0;}
21496 _ACEOF
21497 if ac_fn_c_try_link "$LINENO"; then :
21498
21499     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21500 $as_echo "yes" >&6; }
21501
21502
21503 else
21504
21505     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21506 $as_echo "no" >&6; }
21507     CFLAGS="$_svn_xxflags__save"
21508
21509
21510 fi
21511 rm -f core conftest.err conftest.$ac_objext \
21512     conftest$ac_exeext conftest.$ac_ext
21513   ac_ext=c
21514 ac_cpp='$CPP $CPPFLAGS'
21515 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21516 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21517 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21518
21519
21520
21521         CMAINTAINERFLAGS="$CFLAGS"
21522         CFLAGS="$CFLAGS_KEEP"
21523
21524                 CMAINTAINERFLAGS="-Wall -Wpointer-arith -Wwrite-strings -Wshadow -Wformat=2 -Wunused -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wno-multichar -Wredundant-decls -Wnested-externs -Winline -Wno-long-long -Wbad-function-cast $CMAINTAINERFLAGS"
21525       fi
21526       if test "$GXX" = "yes"; then
21527         { $as_echo "$as_me:${as_lineno-$LINENO}: maintainer-mode: adding G++ warning flags" >&5
21528 $as_echo "$as_me: maintainer-mode: adding G++ warning flags" >&6;}
21529
21530                 CXXFLAGS_KEEP="$CXXFLAGS"
21531         CXXFLAGS=""
21532
21533
21534   _svn_xxflags__save="$CXXFLAGS"
21535   ac_ext=cpp
21536 ac_cpp='$CXXCPP $CPPFLAGS'
21537 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21538 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21539 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21540
21541   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CXX accepts -Wextra-tokens" >&5
21542 $as_echo_n "checking if $CXX accepts -Wextra-tokens... " >&6; }
21543   CXXFLAGS="-Wextra-tokens $CXXFLAGS"
21544         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21545 /* end confdefs.h.  */
21546 int main(){}
21547 _ACEOF
21548 if ac_fn_cxx_try_link "$LINENO"; then :
21549
21550     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21551 $as_echo "yes" >&6; }
21552
21553
21554 else
21555
21556     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21557 $as_echo "no" >&6; }
21558     CXXFLAGS="$_svn_xxflags__save"
21559
21560
21561 fi
21562 rm -f core conftest.err conftest.$ac_objext \
21563     conftest$ac_exeext conftest.$ac_ext
21564   ac_ext=c
21565 ac_cpp='$CPP $CPPFLAGS'
21566 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21567 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21568 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21569
21570
21571
21572   _svn_xxflags__save="$CXXFLAGS"
21573   ac_ext=cpp
21574 ac_cpp='$CXXCPP $CPPFLAGS'
21575 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21576 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21577 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21578
21579   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CXX accepts -Wnewline-eof" >&5
21580 $as_echo_n "checking if $CXX accepts -Wnewline-eof... " >&6; }
21581   CXXFLAGS="-Wnewline-eof $CXXFLAGS"
21582         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21583 /* end confdefs.h.  */
21584 int main(){}
21585 _ACEOF
21586 if ac_fn_cxx_try_link "$LINENO"; then :
21587
21588     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21589 $as_echo "yes" >&6; }
21590
21591
21592 else
21593
21594     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21595 $as_echo "no" >&6; }
21596     CXXFLAGS="$_svn_xxflags__save"
21597
21598
21599 fi
21600 rm -f core conftest.err conftest.$ac_objext \
21601     conftest$ac_exeext conftest.$ac_ext
21602   ac_ext=c
21603 ac_cpp='$CPP $CPPFLAGS'
21604 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21605 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21606 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21607
21608
21609
21610   _svn_xxflags__save="$CXXFLAGS"
21611   ac_ext=cpp
21612 ac_cpp='$CXXCPP $CPPFLAGS'
21613 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21614 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21615 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21616
21617   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CXX accepts -Wshorten-64-to-32" >&5
21618 $as_echo_n "checking if $CXX accepts -Wshorten-64-to-32... " >&6; }
21619   CXXFLAGS="-Wshorten-64-to-32 $CXXFLAGS"
21620         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21621 /* end confdefs.h.  */
21622 int main(){}
21623 _ACEOF
21624 if ac_fn_cxx_try_link "$LINENO"; then :
21625
21626     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21627 $as_echo "yes" >&6; }
21628
21629
21630 else
21631
21632     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21633 $as_echo "no" >&6; }
21634     CXXFLAGS="$_svn_xxflags__save"
21635
21636
21637 fi
21638 rm -f core conftest.err conftest.$ac_objext \
21639     conftest$ac_exeext conftest.$ac_ext
21640   ac_ext=c
21641 ac_cpp='$CPP $CPPFLAGS'
21642 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21643 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21644 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21645
21646
21647
21648   _svn_xxflags__save="$CXXFLAGS"
21649   ac_ext=cpp
21650 ac_cpp='$CXXCPP $CPPFLAGS'
21651 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21652 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21653 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21654
21655   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CXX accepts -Wno-system-headers" >&5
21656 $as_echo_n "checking if $CXX accepts -Wno-system-headers... " >&6; }
21657   CXXFLAGS="-Wno-system-headers $CXXFLAGS"
21658         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21659 /* end confdefs.h.  */
21660 int main(){}
21661 _ACEOF
21662 if ac_fn_cxx_try_link "$LINENO"; then :
21663
21664     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21665 $as_echo "yes" >&6; }
21666
21667
21668 else
21669
21670     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21671 $as_echo "no" >&6; }
21672     CXXFLAGS="$_svn_xxflags__save"
21673
21674
21675 fi
21676 rm -f core conftest.err conftest.$ac_objext \
21677     conftest$ac_exeext conftest.$ac_ext
21678   ac_ext=c
21679 ac_cpp='$CPP $CPPFLAGS'
21680 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21681 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21682 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21683
21684
21685
21686         CXXMAINTAINERFLAGS="$CXXFLAGS"
21687         CXXFLAGS="$CXXFLAGS_KEEP"
21688
21689                 CXXMAINTAINERFLAGS="-Wall -Wpointer-arith -Wwrite-strings -Wshadow -Wunused -Wunreachable-code $CXXMAINTAINERFLAGS"
21690       fi
21691     fi
21692
21693 fi
21694
21695
21696 if test "$enable_debugging" = "yes" ; then
21697       if test "$enable_optimization" != "yes"; then
21698     { $as_echo "$as_me:${as_lineno-$LINENO}: Disabling optimizations for debugging" >&5
21699 $as_echo "$as_me: Disabling optimizations for debugging" >&6;}
21700     CFLAGS="`echo $CFLAGS' ' | $SED -e 's/-O[^ ]* //g'`"
21701     CXXFLAGS="`echo $CXXFLAGS' ' | $SED -e 's/-O[^ ]* //g'`"
21702   fi
21703     if test -z "`echo $CUSERFLAGS' ' | $EGREP -- '-g[0-9]? '`"; then
21704     { $as_echo "$as_me:${as_lineno-$LINENO}: Enabling debugging for C" >&5
21705 $as_echo "$as_me: Enabling debugging for C" >&6;}
21706     CFLAGS="`echo $CFLAGS' ' | $SED -e 's/-g[0-9] //g' -e 's/-g //g'`"
21707
21708   _svn_xxflags__save="$CFLAGS"
21709   ac_ext=c
21710 ac_cpp='$CPP $CPPFLAGS'
21711 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21712 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21713 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21714
21715   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -fno-inline" >&5
21716 $as_echo_n "checking if $CC accepts -fno-inline... " >&6; }
21717   CFLAGS="-fno-inline $CFLAGS"
21718         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21719 /* end confdefs.h.  */
21720 int main(void){return 0;}
21721 _ACEOF
21722 if ac_fn_c_try_link "$LINENO"; then :
21723
21724     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21725 $as_echo "yes" >&6; }
21726
21727
21728 else
21729
21730     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21731 $as_echo "no" >&6; }
21732     CFLAGS="$_svn_xxflags__save"
21733
21734
21735 fi
21736 rm -f core conftest.err conftest.$ac_objext \
21737     conftest$ac_exeext conftest.$ac_ext
21738   ac_ext=c
21739 ac_cpp='$CPP $CPPFLAGS'
21740 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21741 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21742 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21743
21744
21745
21746   _svn_xxflags__save="$CFLAGS"
21747   ac_ext=c
21748 ac_cpp='$CPP $CPPFLAGS'
21749 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21750 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21751 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21752
21753   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -fno-omit-frame-pointer" >&5
21754 $as_echo_n "checking if $CC accepts -fno-omit-frame-pointer... " >&6; }
21755   CFLAGS="-fno-omit-frame-pointer $CFLAGS"
21756         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21757 /* end confdefs.h.  */
21758 int main(void){return 0;}
21759 _ACEOF
21760 if ac_fn_c_try_link "$LINENO"; then :
21761
21762     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21763 $as_echo "yes" >&6; }
21764
21765
21766 else
21767
21768     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21769 $as_echo "no" >&6; }
21770     CFLAGS="$_svn_xxflags__save"
21771
21772
21773 fi
21774 rm -f core conftest.err conftest.$ac_objext \
21775     conftest$ac_exeext conftest.$ac_ext
21776   ac_ext=c
21777 ac_cpp='$CPP $CPPFLAGS'
21778 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21779 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21780 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21781
21782
21783
21784   _svn_xxflags__save="$CFLAGS"
21785   ac_ext=c
21786 ac_cpp='$CPP $CPPFLAGS'
21787 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21788 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21789 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21790
21791   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -g3" >&5
21792 $as_echo_n "checking if $CC accepts -g3... " >&6; }
21793   CFLAGS="-g3 $CFLAGS"
21794         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21795 /* end confdefs.h.  */
21796 int main(void){return 0;}
21797 _ACEOF
21798 if ac_fn_c_try_link "$LINENO"; then :
21799
21800     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21801 $as_echo "yes" >&6; }
21802
21803
21804 else
21805
21806     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21807 $as_echo "no" >&6; }
21808     CFLAGS="$_svn_xxflags__save"
21809
21810
21811   _svn_xxflags__save="$CFLAGS"
21812   ac_ext=c
21813 ac_cpp='$CPP $CPPFLAGS'
21814 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21815 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21816 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21817
21818   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -g2" >&5
21819 $as_echo_n "checking if $CC accepts -g2... " >&6; }
21820   CFLAGS="-g2 $CFLAGS"
21821         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21822 /* end confdefs.h.  */
21823 int main(void){return 0;}
21824 _ACEOF
21825 if ac_fn_c_try_link "$LINENO"; then :
21826
21827     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21828 $as_echo "yes" >&6; }
21829
21830
21831 else
21832
21833     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21834 $as_echo "no" >&6; }
21835     CFLAGS="$_svn_xxflags__save"
21836
21837
21838   _svn_xxflags__save="$CFLAGS"
21839   ac_ext=c
21840 ac_cpp='$CPP $CPPFLAGS'
21841 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21842 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21843 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21844
21845   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -g" >&5
21846 $as_echo_n "checking if $CC accepts -g... " >&6; }
21847   CFLAGS="-g $CFLAGS"
21848         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21849 /* end confdefs.h.  */
21850 int main(void){return 0;}
21851 _ACEOF
21852 if ac_fn_c_try_link "$LINENO"; then :
21853
21854     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21855 $as_echo "yes" >&6; }
21856
21857
21858 else
21859
21860     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21861 $as_echo "no" >&6; }
21862     CFLAGS="$_svn_xxflags__save"
21863
21864
21865 fi
21866 rm -f core conftest.err conftest.$ac_objext \
21867     conftest$ac_exeext conftest.$ac_ext
21868   ac_ext=c
21869 ac_cpp='$CPP $CPPFLAGS'
21870 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21871 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21872 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21873
21874
21875
21876 fi
21877 rm -f core conftest.err conftest.$ac_objext \
21878     conftest$ac_exeext conftest.$ac_ext
21879   ac_ext=c
21880 ac_cpp='$CPP $CPPFLAGS'
21881 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21882 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21883 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21884
21885
21886
21887 fi
21888 rm -f core conftest.err conftest.$ac_objext \
21889     conftest$ac_exeext conftest.$ac_ext
21890   ac_ext=c
21891 ac_cpp='$CPP $CPPFLAGS'
21892 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21893 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21894 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21895
21896
21897   fi
21898   if test -z "`echo $CXXUSERFLAGS' ' | $EGREP -- '-g[0-9]? '`"; then
21899     { $as_echo "$as_me:${as_lineno-$LINENO}: Enabling debugging for C++" >&5
21900 $as_echo "$as_me: Enabling debugging for C++" >&6;}
21901     CXXFLAGS="`echo $CXXFLAGS' ' | $SED -e 's/-g[0-9] //g' -e 's/-g //g'`"
21902
21903   _svn_xxflags__save="$CXXFLAGS"
21904   ac_ext=cpp
21905 ac_cpp='$CXXCPP $CPPFLAGS'
21906 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21907 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21908 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21909
21910   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CXX accepts -fno-inline" >&5
21911 $as_echo_n "checking if $CXX accepts -fno-inline... " >&6; }
21912   CXXFLAGS="-fno-inline $CXXFLAGS"
21913         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21914 /* end confdefs.h.  */
21915 int main(){}
21916 _ACEOF
21917 if ac_fn_cxx_try_link "$LINENO"; then :
21918
21919     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21920 $as_echo "yes" >&6; }
21921
21922
21923 else
21924
21925     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21926 $as_echo "no" >&6; }
21927     CXXFLAGS="$_svn_xxflags__save"
21928
21929
21930 fi
21931 rm -f core conftest.err conftest.$ac_objext \
21932     conftest$ac_exeext conftest.$ac_ext
21933   ac_ext=c
21934 ac_cpp='$CPP $CPPFLAGS'
21935 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21936 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21937 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21938
21939
21940
21941   _svn_xxflags__save="$CXXFLAGS"
21942   ac_ext=cpp
21943 ac_cpp='$CXXCPP $CPPFLAGS'
21944 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21945 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21946 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21947
21948   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CXX accepts -fno-omit-frame-pointer" >&5
21949 $as_echo_n "checking if $CXX accepts -fno-omit-frame-pointer... " >&6; }
21950   CXXFLAGS="-fno-omit-frame-pointer $CXXFLAGS"
21951         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21952 /* end confdefs.h.  */
21953 int main(){}
21954 _ACEOF
21955 if ac_fn_cxx_try_link "$LINENO"; then :
21956
21957     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21958 $as_echo "yes" >&6; }
21959
21960
21961 else
21962
21963     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21964 $as_echo "no" >&6; }
21965     CXXFLAGS="$_svn_xxflags__save"
21966
21967
21968 fi
21969 rm -f core conftest.err conftest.$ac_objext \
21970     conftest$ac_exeext conftest.$ac_ext
21971   ac_ext=c
21972 ac_cpp='$CPP $CPPFLAGS'
21973 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21974 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21975 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21976
21977
21978
21979   _svn_xxflags__save="$CXXFLAGS"
21980   ac_ext=cpp
21981 ac_cpp='$CXXCPP $CPPFLAGS'
21982 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21983 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21984 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21985
21986   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CXX accepts -g3" >&5
21987 $as_echo_n "checking if $CXX accepts -g3... " >&6; }
21988   CXXFLAGS="-g3 $CXXFLAGS"
21989         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21990 /* end confdefs.h.  */
21991 int main(){}
21992 _ACEOF
21993 if ac_fn_cxx_try_link "$LINENO"; then :
21994
21995     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21996 $as_echo "yes" >&6; }
21997
21998
21999 else
22000
22001     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22002 $as_echo "no" >&6; }
22003     CXXFLAGS="$_svn_xxflags__save"
22004
22005
22006   _svn_xxflags__save="$CXXFLAGS"
22007   ac_ext=cpp
22008 ac_cpp='$CXXCPP $CPPFLAGS'
22009 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22010 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22011 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22012
22013   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CXX accepts -g2" >&5
22014 $as_echo_n "checking if $CXX accepts -g2... " >&6; }
22015   CXXFLAGS="-g2 $CXXFLAGS"
22016         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22017 /* end confdefs.h.  */
22018 int main(){}
22019 _ACEOF
22020 if ac_fn_cxx_try_link "$LINENO"; then :
22021
22022     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22023 $as_echo "yes" >&6; }
22024
22025
22026 else
22027
22028     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22029 $as_echo "no" >&6; }
22030     CXXFLAGS="$_svn_xxflags__save"
22031
22032
22033   _svn_xxflags__save="$CXXFLAGS"
22034   ac_ext=cpp
22035 ac_cpp='$CXXCPP $CPPFLAGS'
22036 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22037 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22038 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22039
22040   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CXX accepts -g" >&5
22041 $as_echo_n "checking if $CXX accepts -g... " >&6; }
22042   CXXFLAGS="-g $CXXFLAGS"
22043         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22044 /* end confdefs.h.  */
22045 int main(){}
22046 _ACEOF
22047 if ac_fn_cxx_try_link "$LINENO"; then :
22048
22049     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22050 $as_echo "yes" >&6; }
22051
22052
22053 else
22054
22055     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22056 $as_echo "no" >&6; }
22057     CXXFLAGS="$_svn_xxflags__save"
22058
22059
22060 fi
22061 rm -f core conftest.err conftest.$ac_objext \
22062     conftest$ac_exeext conftest.$ac_ext
22063   ac_ext=cpp
22064 ac_cpp='$CXXCPP $CPPFLAGS'
22065 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22066 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22067 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22068
22069
22070
22071 fi
22072 rm -f core conftest.err conftest.$ac_objext \
22073     conftest$ac_exeext conftest.$ac_ext
22074   ac_ext=cpp
22075 ac_cpp='$CXXCPP $CPPFLAGS'
22076 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22077 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22078 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22079
22080
22081
22082 fi
22083 rm -f core conftest.err conftest.$ac_objext \
22084     conftest$ac_exeext conftest.$ac_ext
22085   ac_ext=c
22086 ac_cpp='$CPP $CPPFLAGS'
22087 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22088 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22089 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22090
22091
22092   fi
22093       CFLAGS="$CFLAGS -DSVN_DEBUG -DAP_DEBUG"
22094   CXXFLAGS="$CXXFLAGS -DSVN_DEBUG -DAP_DEBUG"
22095 elif test "$enable_debugging" = "no" ; then
22096   { $as_echo "$as_me:${as_lineno-$LINENO}: Disabling debugging" >&5
22097 $as_echo "$as_me: Disabling debugging" >&6;}
22098   CFLAGS="`echo $CFLAGS' ' | $SED -e 's/-g[0-9] //g' -e 's/-g //g'`"
22099   CXXFLAGS="`echo $CXXFLAGS' ' | $SED -e 's/-g[0-9] //g' -e 's/-g //g'`"
22100     CFLAGS="$CFLAGS -DNDEBUG"
22101   CXXFLAGS="$CXXFLAGS -DNDEBUG"
22102 # elif test "$enable_debugging" = "maybe" ; then
22103 #   # do nothing
22104 fi
22105
22106 if test "$enable_optimization" = "yes"; then
22107     if test -z "`echo $CUSERFLAGS' ' | $EGREP -- '-O[^ ]* '`"; then
22108     CFLAGS="`echo $CFLAGS' ' | $SED -e 's/-O[^ ]* //g'`"
22109     if test "$enable_debugging" = "yes"; then
22110       { $as_echo "$as_me:${as_lineno-$LINENO}: Enabling optimizations for C (with debugging enabled)" >&5
22111 $as_echo "$as_me: Enabling optimizations for C (with debugging enabled)" >&6;}
22112
22113   _svn_xxflags__save="$CFLAGS"
22114   ac_ext=c
22115 ac_cpp='$CPP $CPPFLAGS'
22116 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22117 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22118 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22119
22120   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -O1" >&5
22121 $as_echo_n "checking if $CC accepts -O1... " >&6; }
22122   CFLAGS="-O1 $CFLAGS"
22123         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22124 /* end confdefs.h.  */
22125 int main(void){return 0;}
22126 _ACEOF
22127 if ac_fn_c_try_link "$LINENO"; then :
22128
22129     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22130 $as_echo "yes" >&6; }
22131
22132
22133 else
22134
22135     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22136 $as_echo "no" >&6; }
22137     CFLAGS="$_svn_xxflags__save"
22138
22139
22140   _svn_xxflags__save="$CFLAGS"
22141   ac_ext=c
22142 ac_cpp='$CPP $CPPFLAGS'
22143 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22144 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22145 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22146
22147   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -O" >&5
22148 $as_echo_n "checking if $CC accepts -O... " >&6; }
22149   CFLAGS="-O $CFLAGS"
22150         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22151 /* end confdefs.h.  */
22152 int main(void){return 0;}
22153 _ACEOF
22154 if ac_fn_c_try_link "$LINENO"; then :
22155
22156     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22157 $as_echo "yes" >&6; }
22158
22159
22160 else
22161
22162     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22163 $as_echo "no" >&6; }
22164     CFLAGS="$_svn_xxflags__save"
22165
22166
22167 fi
22168 rm -f core conftest.err conftest.$ac_objext \
22169     conftest$ac_exeext conftest.$ac_ext
22170   ac_ext=c
22171 ac_cpp='$CPP $CPPFLAGS'
22172 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22173 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22174 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22175
22176
22177
22178 fi
22179 rm -f core conftest.err conftest.$ac_objext \
22180     conftest$ac_exeext conftest.$ac_ext
22181   ac_ext=c
22182 ac_cpp='$CPP $CPPFLAGS'
22183 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22184 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22185 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22186
22187
22188     else
22189       { $as_echo "$as_me:${as_lineno-$LINENO}: Enabling optimizations for C" >&5
22190 $as_echo "$as_me: Enabling optimizations for C" >&6;}
22191
22192   _svn_xxflags__save="$CFLAGS"
22193   ac_ext=c
22194 ac_cpp='$CPP $CPPFLAGS'
22195 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22196 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22197 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22198
22199   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -O3" >&5
22200 $as_echo_n "checking if $CC accepts -O3... " >&6; }
22201   CFLAGS="-O3 $CFLAGS"
22202         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22203 /* end confdefs.h.  */
22204 int main(void){return 0;}
22205 _ACEOF
22206 if ac_fn_c_try_link "$LINENO"; then :
22207
22208     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22209 $as_echo "yes" >&6; }
22210
22211
22212 else
22213
22214     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22215 $as_echo "no" >&6; }
22216     CFLAGS="$_svn_xxflags__save"
22217
22218
22219   _svn_xxflags__save="$CFLAGS"
22220   ac_ext=c
22221 ac_cpp='$CPP $CPPFLAGS'
22222 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22223 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22224 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22225
22226   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -O2" >&5
22227 $as_echo_n "checking if $CC accepts -O2... " >&6; }
22228   CFLAGS="-O2 $CFLAGS"
22229         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22230 /* end confdefs.h.  */
22231 int main(void){return 0;}
22232 _ACEOF
22233 if ac_fn_c_try_link "$LINENO"; then :
22234
22235     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22236 $as_echo "yes" >&6; }
22237
22238
22239 else
22240
22241     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22242 $as_echo "no" >&6; }
22243     CFLAGS="$_svn_xxflags__save"
22244
22245
22246   _svn_xxflags__save="$CFLAGS"
22247   ac_ext=c
22248 ac_cpp='$CPP $CPPFLAGS'
22249 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22250 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22251 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22252
22253   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -O1" >&5
22254 $as_echo_n "checking if $CC accepts -O1... " >&6; }
22255   CFLAGS="-O1 $CFLAGS"
22256         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22257 /* end confdefs.h.  */
22258 int main(void){return 0;}
22259 _ACEOF
22260 if ac_fn_c_try_link "$LINENO"; then :
22261
22262     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22263 $as_echo "yes" >&6; }
22264
22265
22266 else
22267
22268     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22269 $as_echo "no" >&6; }
22270     CFLAGS="$_svn_xxflags__save"
22271
22272
22273   _svn_xxflags__save="$CFLAGS"
22274   ac_ext=c
22275 ac_cpp='$CPP $CPPFLAGS'
22276 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22277 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22278 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22279
22280   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -O" >&5
22281 $as_echo_n "checking if $CC accepts -O... " >&6; }
22282   CFLAGS="-O $CFLAGS"
22283         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22284 /* end confdefs.h.  */
22285 int main(void){return 0;}
22286 _ACEOF
22287 if ac_fn_c_try_link "$LINENO"; then :
22288
22289     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22290 $as_echo "yes" >&6; }
22291
22292
22293 else
22294
22295     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22296 $as_echo "no" >&6; }
22297     CFLAGS="$_svn_xxflags__save"
22298
22299
22300 fi
22301 rm -f core conftest.err conftest.$ac_objext \
22302     conftest$ac_exeext conftest.$ac_ext
22303   ac_ext=c
22304 ac_cpp='$CPP $CPPFLAGS'
22305 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22306 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22307 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22308
22309
22310
22311 fi
22312 rm -f core conftest.err conftest.$ac_objext \
22313     conftest$ac_exeext conftest.$ac_ext
22314   ac_ext=c
22315 ac_cpp='$CPP $CPPFLAGS'
22316 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22317 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22318 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22319
22320
22321
22322 fi
22323 rm -f core conftest.err conftest.$ac_objext \
22324     conftest$ac_exeext conftest.$ac_ext
22325   ac_ext=c
22326 ac_cpp='$CPP $CPPFLAGS'
22327 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22328 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22329 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22330
22331
22332
22333 fi
22334 rm -f core conftest.err conftest.$ac_objext \
22335     conftest$ac_exeext conftest.$ac_ext
22336   ac_ext=c
22337 ac_cpp='$CPP $CPPFLAGS'
22338 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22339 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22340 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22341
22342
22343
22344   _svn_xxflags__save="$CFLAGS"
22345   ac_ext=c
22346 ac_cpp='$CPP $CPPFLAGS'
22347 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22348 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22349 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22350
22351   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -Wno-clobbered" >&5
22352 $as_echo_n "checking if $CC accepts -Wno-clobbered... " >&6; }
22353   CFLAGS="-Wno-clobbered $CFLAGS"
22354         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22355 /* end confdefs.h.  */
22356 int main(void){return 0;}
22357 _ACEOF
22358 if ac_fn_c_try_link "$LINENO"; then :
22359
22360     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22361 $as_echo "yes" >&6; }
22362
22363
22364 else
22365
22366     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22367 $as_echo "no" >&6; }
22368     CFLAGS="$_svn_xxflags__save"
22369
22370
22371 fi
22372 rm -f core conftest.err conftest.$ac_objext \
22373     conftest$ac_exeext conftest.$ac_ext
22374   ac_ext=c
22375 ac_cpp='$CPP $CPPFLAGS'
22376 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22377 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22378 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22379
22380
22381     fi
22382   fi
22383   if test -z "`echo $CXXUSERFLAGS' ' | $EGREP -- '-O[^ ]* '`"; then
22384     CXXFLAGS="`echo $CXXFLAGS' ' | $SED -e 's/-O[^ ]* //g'`"
22385     if test "$enable_debugging" = "yes"; then
22386       { $as_echo "$as_me:${as_lineno-$LINENO}: Enabling optimizations for C++ (with debugging enabled)" >&5
22387 $as_echo "$as_me: Enabling optimizations for C++ (with debugging enabled)" >&6;}
22388
22389   _svn_xxflags__save="$CXXFLAGS"
22390   ac_ext=cpp
22391 ac_cpp='$CXXCPP $CPPFLAGS'
22392 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22393 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22394 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22395
22396   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CXX accepts -O1" >&5
22397 $as_echo_n "checking if $CXX accepts -O1... " >&6; }
22398   CXXFLAGS="-O1 $CXXFLAGS"
22399         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22400 /* end confdefs.h.  */
22401 int main(){}
22402 _ACEOF
22403 if ac_fn_cxx_try_link "$LINENO"; then :
22404
22405     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22406 $as_echo "yes" >&6; }
22407
22408
22409 else
22410
22411     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22412 $as_echo "no" >&6; }
22413     CXXFLAGS="$_svn_xxflags__save"
22414
22415
22416   _svn_xxflags__save="$CXXFLAGS"
22417   ac_ext=cpp
22418 ac_cpp='$CXXCPP $CPPFLAGS'
22419 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22420 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22421 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22422
22423   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CXX accepts -O" >&5
22424 $as_echo_n "checking if $CXX accepts -O... " >&6; }
22425   CXXFLAGS="-O $CXXFLAGS"
22426         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22427 /* end confdefs.h.  */
22428 int main(){}
22429 _ACEOF
22430 if ac_fn_cxx_try_link "$LINENO"; then :
22431
22432     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22433 $as_echo "yes" >&6; }
22434
22435
22436 else
22437
22438     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22439 $as_echo "no" >&6; }
22440     CXXFLAGS="$_svn_xxflags__save"
22441
22442
22443 fi
22444 rm -f core conftest.err conftest.$ac_objext \
22445     conftest$ac_exeext conftest.$ac_ext
22446   ac_ext=cpp
22447 ac_cpp='$CXXCPP $CPPFLAGS'
22448 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22449 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22450 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22451
22452
22453
22454 fi
22455 rm -f core conftest.err conftest.$ac_objext \
22456     conftest$ac_exeext conftest.$ac_ext
22457   ac_ext=c
22458 ac_cpp='$CPP $CPPFLAGS'
22459 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22460 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22461 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22462
22463
22464     else
22465       { $as_echo "$as_me:${as_lineno-$LINENO}: Enabling optimizations for C++" >&5
22466 $as_echo "$as_me: Enabling optimizations for C++" >&6;}
22467
22468   _svn_xxflags__save="$CXXFLAGS"
22469   ac_ext=cpp
22470 ac_cpp='$CXXCPP $CPPFLAGS'
22471 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22472 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22473 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22474
22475   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CXX accepts -O3" >&5
22476 $as_echo_n "checking if $CXX accepts -O3... " >&6; }
22477   CXXFLAGS="-O3 $CXXFLAGS"
22478         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22479 /* end confdefs.h.  */
22480 int main(){}
22481 _ACEOF
22482 if ac_fn_cxx_try_link "$LINENO"; then :
22483
22484     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22485 $as_echo "yes" >&6; }
22486
22487
22488 else
22489
22490     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22491 $as_echo "no" >&6; }
22492     CXXFLAGS="$_svn_xxflags__save"
22493
22494
22495   _svn_xxflags__save="$CXXFLAGS"
22496   ac_ext=cpp
22497 ac_cpp='$CXXCPP $CPPFLAGS'
22498 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22499 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22500 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22501
22502   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CXX accepts -O2" >&5
22503 $as_echo_n "checking if $CXX accepts -O2... " >&6; }
22504   CXXFLAGS="-O2 $CXXFLAGS"
22505         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22506 /* end confdefs.h.  */
22507 int main(){}
22508 _ACEOF
22509 if ac_fn_cxx_try_link "$LINENO"; then :
22510
22511     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22512 $as_echo "yes" >&6; }
22513
22514
22515 else
22516
22517     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22518 $as_echo "no" >&6; }
22519     CXXFLAGS="$_svn_xxflags__save"
22520
22521
22522   _svn_xxflags__save="$CXXFLAGS"
22523   ac_ext=cpp
22524 ac_cpp='$CXXCPP $CPPFLAGS'
22525 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22526 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22527 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22528
22529   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CXX accepts -O1" >&5
22530 $as_echo_n "checking if $CXX accepts -O1... " >&6; }
22531   CXXFLAGS="-O1 $CXXFLAGS"
22532         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22533 /* end confdefs.h.  */
22534 int main(){}
22535 _ACEOF
22536 if ac_fn_cxx_try_link "$LINENO"; then :
22537
22538     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22539 $as_echo "yes" >&6; }
22540
22541
22542 else
22543
22544     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22545 $as_echo "no" >&6; }
22546     CXXFLAGS="$_svn_xxflags__save"
22547
22548
22549   _svn_xxflags__save="$CXXFLAGS"
22550   ac_ext=cpp
22551 ac_cpp='$CXXCPP $CPPFLAGS'
22552 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22553 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22554 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22555
22556   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CXX accepts -O" >&5
22557 $as_echo_n "checking if $CXX accepts -O... " >&6; }
22558   CXXFLAGS="-O $CXXFLAGS"
22559         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22560 /* end confdefs.h.  */
22561 int main(){}
22562 _ACEOF
22563 if ac_fn_cxx_try_link "$LINENO"; then :
22564
22565     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22566 $as_echo "yes" >&6; }
22567
22568
22569 else
22570
22571     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22572 $as_echo "no" >&6; }
22573     CXXFLAGS="$_svn_xxflags__save"
22574
22575
22576 fi
22577 rm -f core conftest.err conftest.$ac_objext \
22578     conftest$ac_exeext conftest.$ac_ext
22579   ac_ext=cpp
22580 ac_cpp='$CXXCPP $CPPFLAGS'
22581 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22582 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22583 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22584
22585
22586
22587 fi
22588 rm -f core conftest.err conftest.$ac_objext \
22589     conftest$ac_exeext conftest.$ac_ext
22590   ac_ext=cpp
22591 ac_cpp='$CXXCPP $CPPFLAGS'
22592 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22593 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22594 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22595
22596
22597
22598 fi
22599 rm -f core conftest.err conftest.$ac_objext \
22600     conftest$ac_exeext conftest.$ac_ext
22601   ac_ext=cpp
22602 ac_cpp='$CXXCPP $CPPFLAGS'
22603 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22604 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22605 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22606
22607
22608
22609 fi
22610 rm -f core conftest.err conftest.$ac_objext \
22611     conftest$ac_exeext conftest.$ac_ext
22612   ac_ext=c
22613 ac_cpp='$CPP $CPPFLAGS'
22614 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22615 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22616 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22617
22618
22619
22620   _svn_xxflags__save="$CXXFLAGS"
22621   ac_ext=cpp
22622 ac_cpp='$CXXCPP $CPPFLAGS'
22623 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22624 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22625 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22626
22627   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CXX accepts -Wno-clobbered" >&5
22628 $as_echo_n "checking if $CXX accepts -Wno-clobbered... " >&6; }
22629   CXXFLAGS="-Wno-clobbered $CXXFLAGS"
22630         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22631 /* end confdefs.h.  */
22632 int main(){}
22633 _ACEOF
22634 if ac_fn_cxx_try_link "$LINENO"; then :
22635
22636     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22637 $as_echo "yes" >&6; }
22638
22639
22640 else
22641
22642     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22643 $as_echo "no" >&6; }
22644     CXXFLAGS="$_svn_xxflags__save"
22645
22646
22647 fi
22648 rm -f core conftest.err conftest.$ac_objext \
22649     conftest$ac_exeext conftest.$ac_ext
22650   ac_ext=c
22651 ac_cpp='$CPP $CPPFLAGS'
22652 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22653 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22654 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22655
22656
22657     fi
22658   fi
22659 elif test "$enable_optimization" = "no"; then
22660     { $as_echo "$as_me:${as_lineno-$LINENO}: Disabling optimizations" >&5
22661 $as_echo "$as_me: Disabling optimizations" >&6;}
22662   CFLAGS="`echo $CFLAGS' ' | $SED -e 's/-O[^ ]* //g'`"
22663   CXXFLAGS="`echo $CXXFLAGS' ' | $SED -e 's/-O[^ ]* //g'`"
22664 # elif test "$enable_optimization" = "maybe" ; then
22665 #   # do nothing
22666 fi
22667
22668 { $as_echo "$as_me:${as_lineno-$LINENO}: C compiler flags: $CFLAGS" >&5
22669 $as_echo "$as_me: C compiler flags: $CFLAGS" >&6;}
22670 { $as_echo "$as_me:${as_lineno-$LINENO}:   language-level: $CMODEFLAGS" >&5
22671 $as_echo "$as_me:   language-level: $CMODEFLAGS" >&6;}
22672 { $as_echo "$as_me:${as_lineno-$LINENO}:     user-defined: $CUSERFLAGS" >&5
22673 $as_echo "$as_me:     user-defined: $CUSERFLAGS" >&6;}
22674 { $as_echo "$as_me:${as_lineno-$LINENO}:  maintainer-mode: $CMAINTAINERFLAGS" >&5
22675 $as_echo "$as_me:  maintainer-mode: $CMAINTAINERFLAGS" >&6;}
22676 { $as_echo "$as_me:${as_lineno-$LINENO}: C++ compiler flags: $CXXFLAGS" >&5
22677 $as_echo "$as_me: C++ compiler flags: $CXXFLAGS" >&6;}
22678 { $as_echo "$as_me:${as_lineno-$LINENO}:     language-level: $CXXMODEFLAGS" >&5
22679 $as_echo "$as_me:     language-level: $CXXMODEFLAGS" >&6;}
22680 { $as_echo "$as_me:${as_lineno-$LINENO}:       user-defined: $CXXUSERFLAGS" >&5
22681 $as_echo "$as_me:       user-defined: $CXXUSERFLAGS" >&6;}
22682 { $as_echo "$as_me:${as_lineno-$LINENO}:    maintainer-mode: $CXXMAINTAINERFLAGS" >&5
22683 $as_echo "$as_me:    maintainer-mode: $CXXMAINTAINERFLAGS" >&6;}
22684
22685 # Check whether --enable-full-version-match was given.
22686 if test "${enable_full_version_match+set}" = set; then :
22687   enableval=$enable_full_version_match;
22688     if test "$enableval" = "no" ; then
22689       { $as_echo "$as_me:${as_lineno-$LINENO}: Disabling svn full version matching" >&5
22690 $as_echo "$as_me: Disabling svn full version matching" >&6;}
22691
22692 $as_echo "#define SVN_DISABLE_FULL_VERSION_MATCH 1" >>confdefs.h
22693
22694     fi
22695
22696 fi
22697
22698
22699
22700 # Check whether --with-editor was given.
22701 if test "${with_editor+set}" = set; then :
22702   withval=$with_editor;
22703
22704     if test "$withval" = "yes" ; then
22705       as_fn_error $? "--with-editor requires an argument." "$LINENO" 5
22706     else
22707       SVN_CLIENT_EDITOR=$withval
22708
22709 cat >>confdefs.h <<_ACEOF
22710 #define SVN_CLIENT_EDITOR "$SVN_CLIENT_EDITOR"
22711 _ACEOF
22712
22713
22714     fi
22715
22716
22717 fi
22718
22719
22720
22721   zlib_found=no
22722   zlib_skip=no
22723
22724
22725 # Check whether --with-zlib was given.
22726 if test "${with_zlib+set}" = set; then :
22727   withval=$with_zlib;
22728     if test "$withval" = "yes"; then
22729       zlib_skip=no
22730     elif test "$withval" = "no"; then
22731       zlib_skip=yes
22732     else
22733       zlib_skip=no
22734       zlib_prefix="$withval"
22735     fi
22736
22737 fi
22738
22739
22740   if test "$zlib_skip" = "yes"; then
22741     as_fn_error $? "subversion requires zlib" "$LINENO" 5
22742   fi
22743
22744   if test -n "$zlib_prefix"; then
22745     { $as_echo "$as_me:${as_lineno-$LINENO}: zlib library configuration via prefix" >&5
22746 $as_echo "$as_me: zlib library configuration via prefix" >&6;}
22747     save_cppflags="$CPPFLAGS"
22748     CPPFLAGS="$CPPFLAGS -I$zlib_prefix/include"
22749     for ac_header in zlib.h
22750 do :
22751   ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
22752 if test "x$ac_cv_header_zlib_h" = xyes; then :
22753   cat >>confdefs.h <<_ACEOF
22754 #define HAVE_ZLIB_H 1
22755 _ACEOF
22756
22757       save_ldflags="$LDFLAGS"
22758       LDFLAGS="$LDFLAGS -L$zlib_prefix/lib"
22759       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
22760 $as_echo_n "checking for inflate in -lz... " >&6; }
22761 if ${ac_cv_lib_z_inflate+:} false; then :
22762   $as_echo_n "(cached) " >&6
22763 else
22764   ac_check_lib_save_LIBS=$LIBS
22765 LIBS="-lz  $LIBS"
22766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22767 /* end confdefs.h.  */
22768
22769 /* Override any GCC internal prototype to avoid an error.
22770    Use char because int might match the return type of a GCC
22771    builtin and then its argument prototype would still apply.  */
22772 #ifdef __cplusplus
22773 extern "C"
22774 #endif
22775 char inflate ();
22776 int
22777 main ()
22778 {
22779 return inflate ();
22780   ;
22781   return 0;
22782 }
22783 _ACEOF
22784 if ac_fn_c_try_link "$LINENO"; then :
22785   ac_cv_lib_z_inflate=yes
22786 else
22787   ac_cv_lib_z_inflate=no
22788 fi
22789 rm -f core conftest.err conftest.$ac_objext \
22790     conftest$ac_exeext conftest.$ac_ext
22791 LIBS=$ac_check_lib_save_LIBS
22792 fi
22793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
22794 $as_echo "$ac_cv_lib_z_inflate" >&6; }
22795 if test "x$ac_cv_lib_z_inflate" = xyes; then :
22796
22797         zlib_found="yes"
22798         SVN_ZLIB_INCLUDES="-I$zlib_prefix/include"
22799         SVN_ZLIB_LIBS="`
22800   input_flags="-L$zlib_prefix/lib"
22801   output_flags=""
22802   filtered_dirs="/lib /lib64 /usr/lib /usr/lib64"
22803   for flag in $input_flags; do
22804     filter="no"
22805     for dir in $filtered_dirs; do
22806       if test "$flag" = "-L$dir" || test "$flag" = "-L$dir/"; then
22807         filter="yes"
22808         break
22809       fi
22810     done
22811     if test "$filter" = "no"; then
22812       output_flags="$output_flags $flag"
22813     fi
22814   done
22815   if test -n "$output_flags"; then
22816     printf "%s" "${output_flags# }"
22817   fi
22818 ` -lz"
22819
22820 fi
22821
22822       LDFLAGS="$save_ldflags"
22823
22824 fi
22825
22826 done
22827
22828     CPPFLAGS="$save_cppflags"
22829   else
22830
22831   { $as_echo "$as_me:${as_lineno-$LINENO}: zlib library configuration via pkg-config" >&5
22832 $as_echo "$as_me: zlib library configuration via pkg-config" >&6;}
22833   if test -n "$PKG_CONFIG"; then
22834     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for zlib library" >&5
22835 $as_echo_n "checking for zlib library... " >&6; }
22836     if $PKG_CONFIG zlib --exists; then
22837       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22838 $as_echo "yes" >&6; }
22839       zlib_found=yes
22840       SVN_ZLIB_INCLUDES=`$PKG_CONFIG zlib --cflags`
22841       SVN_ZLIB_LIBS=`$PKG_CONFIG zlib --libs`
22842       SVN_ZLIB_LIBS="`
22843   input_flags="$SVN_ZLIB_LIBS"
22844   output_flags=""
22845   filtered_dirs="/lib /lib64 /usr/lib /usr/lib64"
22846   for flag in $input_flags; do
22847     filter="no"
22848     for dir in $filtered_dirs; do
22849       if test "$flag" = "-L$dir" || test "$flag" = "-L$dir/"; then
22850         filter="yes"
22851         break
22852       fi
22853     done
22854     if test "$filter" = "no"; then
22855       output_flags="$output_flags $flag"
22856     fi
22857   done
22858   if test -n "$output_flags"; then
22859     printf "%s" "${output_flags# }"
22860   fi
22861 `"
22862     else
22863       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22864 $as_echo "no" >&6; }
22865     fi
22866   fi
22867
22868
22869     if test "$zlib_found" = "no"; then
22870       { $as_echo "$as_me:${as_lineno-$LINENO}: zlib library configuration" >&5
22871 $as_echo "$as_me: zlib library configuration" >&6;}
22872       ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
22873 if test "x$ac_cv_header_zlib_h" = xyes; then :
22874
22875         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
22876 $as_echo_n "checking for inflate in -lz... " >&6; }
22877 if ${ac_cv_lib_z_inflate+:} false; then :
22878   $as_echo_n "(cached) " >&6
22879 else
22880   ac_check_lib_save_LIBS=$LIBS
22881 LIBS="-lz  $LIBS"
22882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22883 /* end confdefs.h.  */
22884
22885 /* Override any GCC internal prototype to avoid an error.
22886    Use char because int might match the return type of a GCC
22887    builtin and then its argument prototype would still apply.  */
22888 #ifdef __cplusplus
22889 extern "C"
22890 #endif
22891 char inflate ();
22892 int
22893 main ()
22894 {
22895 return inflate ();
22896   ;
22897   return 0;
22898 }
22899 _ACEOF
22900 if ac_fn_c_try_link "$LINENO"; then :
22901   ac_cv_lib_z_inflate=yes
22902 else
22903   ac_cv_lib_z_inflate=no
22904 fi
22905 rm -f core conftest.err conftest.$ac_objext \
22906     conftest$ac_exeext conftest.$ac_ext
22907 LIBS=$ac_check_lib_save_LIBS
22908 fi
22909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
22910 $as_echo "$ac_cv_lib_z_inflate" >&6; }
22911 if test "x$ac_cv_lib_z_inflate" = xyes; then :
22912
22913           zlib_found="builtin"
22914           SVN_ZLIB_LIBS="-lz"
22915
22916 fi
22917
22918
22919 fi
22920
22921
22922     fi
22923   fi
22924
22925   if test "$zlib_found" = "no"; then
22926     as_fn_error $? "subversion requires zlib" "$LINENO" 5
22927   fi
22928
22929
22930
22931
22932
22933
22934
22935 # Check whether --with-lz4 was given.
22936 if test "${with_lz4+set}" = set; then :
22937   withval=$with_lz4;
22938       if test "$withval" = internal; then
22939         lz4_prefix=internal
22940       elif test "$withval" = yes; then
22941         lz4_prefix=std
22942       else
22943         lz4_prefix="$withval"
22944       fi
22945
22946 else
22947   lz4_prefix=std
22948 fi
22949
22950
22951   if test "$lz4_prefix" = "no"; then
22952         as_fn_error $? "Subversion requires LZ4" "$LINENO" 5
22953   fi
22954   if test "$lz4_prefix" = "internal"; then
22955     { $as_echo "$as_me:${as_lineno-$LINENO}: using internal lz4" >&5
22956 $as_echo "$as_me: using internal lz4" >&6;}
22957
22958 $as_echo "#define SVN_INTERNAL_LZ4 1" >>confdefs.h
22959
22960   else
22961     if test "$lz4_prefix" = "std"; then
22962
22963   if test -n "$PKG_CONFIG"; then
22964     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lz4 library via pkg-config" >&5
22965 $as_echo_n "checking for lz4 library via pkg-config... " >&6; }
22966     if $PKG_CONFIG liblz4 --atleast-version=129 || $PKG_CONFIG liblz4 --max-version=3; then
22967       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22968 $as_echo "yes" >&6; }
22969       lz4_found=yes
22970       SVN_LZ4_INCLUDES=`$PKG_CONFIG liblz4 --cflags`
22971       SVN_LZ4_LIBS=`$PKG_CONFIG liblz4 --libs`
22972       SVN_LZ4_LIBS="`
22973   input_flags="$SVN_LZ4_LIBS"
22974   output_flags=""
22975   filtered_dirs="/lib /lib64 /usr/lib /usr/lib64"
22976   for flag in $input_flags; do
22977     filter="no"
22978     for dir in $filtered_dirs; do
22979       if test "$flag" = "-L$dir" || test "$flag" = "-L$dir/"; then
22980         filter="yes"
22981         break
22982       fi
22983     done
22984     if test "$filter" = "no"; then
22985       output_flags="$output_flags $flag"
22986     fi
22987   done
22988   if test -n "$output_flags"; then
22989     printf "%s" "${output_flags# }"
22990   fi
22991 `"
22992     else
22993       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22994 $as_echo "no" >&6; }
22995     fi
22996   fi
22997   if test "$lz4_found" != "yes"; then
22998     { $as_echo "$as_me:${as_lineno-$LINENO}: lz4 configuration without pkg-config" >&5
22999 $as_echo "$as_me: lz4 configuration without pkg-config" >&6;}
23000     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LZ4_compress_default in -llz4" >&5
23001 $as_echo_n "checking for LZ4_compress_default in -llz4... " >&6; }
23002 if ${ac_cv_lib_lz4_LZ4_compress_default+:} false; then :
23003   $as_echo_n "(cached) " >&6
23004 else
23005   ac_check_lib_save_LIBS=$LIBS
23006 LIBS="-llz4  $LIBS"
23007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23008 /* end confdefs.h.  */
23009
23010 /* Override any GCC internal prototype to avoid an error.
23011    Use char because int might match the return type of a GCC
23012    builtin and then its argument prototype would still apply.  */
23013 #ifdef __cplusplus
23014 extern "C"
23015 #endif
23016 char LZ4_compress_default ();
23017 int
23018 main ()
23019 {
23020 return LZ4_compress_default ();
23021   ;
23022   return 0;
23023 }
23024 _ACEOF
23025 if ac_fn_c_try_link "$LINENO"; then :
23026   ac_cv_lib_lz4_LZ4_compress_default=yes
23027 else
23028   ac_cv_lib_lz4_LZ4_compress_default=no
23029 fi
23030 rm -f core conftest.err conftest.$ac_objext \
23031     conftest$ac_exeext conftest.$ac_ext
23032 LIBS=$ac_check_lib_save_LIBS
23033 fi
23034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lz4_LZ4_compress_default" >&5
23035 $as_echo "$ac_cv_lib_lz4_LZ4_compress_default" >&6; }
23036 if test "x$ac_cv_lib_lz4_LZ4_compress_default" = xyes; then :
23037
23038       lz4_found=yes
23039       SVN_LZ4_LIBS="-llz4"
23040
23041 fi
23042
23043   fi
23044
23045     else
23046
23047   { $as_echo "$as_me:${as_lineno-$LINENO}: lz4 configuration via prefix" >&5
23048 $as_echo "$as_me: lz4 configuration via prefix" >&6;}
23049   save_cppflags="$CPPFLAGS"
23050   CPPFLAGS="$CPPFLAGS -I$lz4_prefix/include"
23051   save_ldflags="$LDFLAGS"
23052   LDFLAGS="$LDFLAGS -L$lz4_prefix/lib"
23053   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LZ4_compress_default in -llz4" >&5
23054 $as_echo_n "checking for LZ4_compress_default in -llz4... " >&6; }
23055 if ${ac_cv_lib_lz4_LZ4_compress_default+:} false; then :
23056   $as_echo_n "(cached) " >&6
23057 else
23058   ac_check_lib_save_LIBS=$LIBS
23059 LIBS="-llz4  $LIBS"
23060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23061 /* end confdefs.h.  */
23062
23063 /* Override any GCC internal prototype to avoid an error.
23064    Use char because int might match the return type of a GCC
23065    builtin and then its argument prototype would still apply.  */
23066 #ifdef __cplusplus
23067 extern "C"
23068 #endif
23069 char LZ4_compress_default ();
23070 int
23071 main ()
23072 {
23073 return LZ4_compress_default ();
23074   ;
23075   return 0;
23076 }
23077 _ACEOF
23078 if ac_fn_c_try_link "$LINENO"; then :
23079   ac_cv_lib_lz4_LZ4_compress_default=yes
23080 else
23081   ac_cv_lib_lz4_LZ4_compress_default=no
23082 fi
23083 rm -f core conftest.err conftest.$ac_objext \
23084     conftest$ac_exeext conftest.$ac_ext
23085 LIBS=$ac_check_lib_save_LIBS
23086 fi
23087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lz4_LZ4_compress_default" >&5
23088 $as_echo "$ac_cv_lib_lz4_LZ4_compress_default" >&6; }
23089 if test "x$ac_cv_lib_lz4_LZ4_compress_default" = xyes; then :
23090
23091     lz4_found=yes
23092     SVN_LZ4_INCLUDES="-I$lz4_prefix/include"
23093     SVN_LZ4_LIBS="`
23094   input_flags="-L$lz4_prefix/lib"
23095   output_flags=""
23096   filtered_dirs="/lib /lib64 /usr/lib /usr/lib64"
23097   for flag in $input_flags; do
23098     filter="no"
23099     for dir in $filtered_dirs; do
23100       if test "$flag" = "-L$dir" || test "$flag" = "-L$dir/"; then
23101         filter="yes"
23102         break
23103       fi
23104     done
23105     if test "$filter" = "no"; then
23106       output_flags="$output_flags $flag"
23107     fi
23108   done
23109   if test -n "$output_flags"; then
23110     printf "%s" "${output_flags# }"
23111   fi
23112 ` -llz4"
23113
23114 fi
23115
23116   LDFLAGS="$save_ldflags"
23117   CPPFLAGS="$save_cppflags"
23118
23119     fi
23120     if test "$lz4_found" != "yes"; then
23121       as_fn_error $? "Subversion requires LZ4 >= r129, or use --with-lz4=internal" "$LINENO" 5
23122     fi
23123   fi
23124
23125
23126
23127
23128
23129
23130 # Check whether --with-utf8proc was given.
23131 if test "${with_utf8proc+set}" = set; then :
23132   withval=$with_utf8proc;
23133       if test "$withval" = internal; then
23134         utf8proc_prefix=internal
23135       elif test "$withval" = yes; then
23136         utf8proc_prefix=std
23137       else
23138         utf8proc_prefix="$withval"
23139       fi
23140
23141 else
23142   utf8proc_prefix=std
23143 fi
23144
23145
23146   if test "$utf8proc_prefix" = "no"; then
23147         as_fn_error $? "Subversion requires UTF8PROC" "$LINENO" 5
23148   fi
23149   if test "$utf8proc_prefix" = "internal"; then
23150     { $as_echo "$as_me:${as_lineno-$LINENO}: using internal utf8proc" >&5
23151 $as_echo "$as_me: using internal utf8proc" >&6;}
23152
23153 $as_echo "#define SVN_INTERNAL_UTF8PROC 1" >>confdefs.h
23154
23155   else
23156     if test "$utf8proc_prefix" = "std"; then
23157
23158   { $as_echo "$as_me:${as_lineno-$LINENO}: utf8proc configuration without pkg-config" >&5
23159 $as_echo "$as_me: utf8proc configuration without pkg-config" >&6;}
23160   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for utf8proc_version in -lutf8proc" >&5
23161 $as_echo_n "checking for utf8proc_version in -lutf8proc... " >&6; }
23162 if ${ac_cv_lib_utf8proc_utf8proc_version+:} false; then :
23163   $as_echo_n "(cached) " >&6
23164 else
23165   ac_check_lib_save_LIBS=$LIBS
23166 LIBS="-lutf8proc  $LIBS"
23167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23168 /* end confdefs.h.  */
23169
23170 /* Override any GCC internal prototype to avoid an error.
23171    Use char because int might match the return type of a GCC
23172    builtin and then its argument prototype would still apply.  */
23173 #ifdef __cplusplus
23174 extern "C"
23175 #endif
23176 char utf8proc_version ();
23177 int
23178 main ()
23179 {
23180 return utf8proc_version ();
23181   ;
23182   return 0;
23183 }
23184 _ACEOF
23185 if ac_fn_c_try_link "$LINENO"; then :
23186   ac_cv_lib_utf8proc_utf8proc_version=yes
23187 else
23188   ac_cv_lib_utf8proc_utf8proc_version=no
23189 fi
23190 rm -f core conftest.err conftest.$ac_objext \
23191     conftest$ac_exeext conftest.$ac_ext
23192 LIBS=$ac_check_lib_save_LIBS
23193 fi
23194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_utf8proc_utf8proc_version" >&5
23195 $as_echo "$ac_cv_lib_utf8proc_utf8proc_version" >&6; }
23196 if test "x$ac_cv_lib_utf8proc_utf8proc_version" = xyes; then :
23197
23198      utf8proc_found=yes
23199      SVN_UTF8PROC_LIBS="-lutf8proc"
23200
23201 fi
23202
23203
23204     else
23205
23206   { $as_echo "$as_me:${as_lineno-$LINENO}: utf8proc configuration via prefix" >&5
23207 $as_echo "$as_me: utf8proc configuration via prefix" >&6;}
23208   save_cppflags="$CPPFLAGS"
23209   CPPFLAGS="$CPPFLAGS -I$utf8proc_prefix/include"
23210   save_ldflags="$LDFLAGS"
23211   LDFLAGS="$LDFLAGS -L$utf8proc_prefix/lib"
23212   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for utf8proc_version in -lutf8proc" >&5
23213 $as_echo_n "checking for utf8proc_version in -lutf8proc... " >&6; }
23214 if ${ac_cv_lib_utf8proc_utf8proc_version+:} false; then :
23215   $as_echo_n "(cached) " >&6
23216 else
23217   ac_check_lib_save_LIBS=$LIBS
23218 LIBS="-lutf8proc  $LIBS"
23219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23220 /* end confdefs.h.  */
23221
23222 /* Override any GCC internal prototype to avoid an error.
23223    Use char because int might match the return type of a GCC
23224    builtin and then its argument prototype would still apply.  */
23225 #ifdef __cplusplus
23226 extern "C"
23227 #endif
23228 char utf8proc_version ();
23229 int
23230 main ()
23231 {
23232 return utf8proc_version ();
23233   ;
23234   return 0;
23235 }
23236 _ACEOF
23237 if ac_fn_c_try_link "$LINENO"; then :
23238   ac_cv_lib_utf8proc_utf8proc_version=yes
23239 else
23240   ac_cv_lib_utf8proc_utf8proc_version=no
23241 fi
23242 rm -f core conftest.err conftest.$ac_objext \
23243     conftest$ac_exeext conftest.$ac_ext
23244 LIBS=$ac_check_lib_save_LIBS
23245 fi
23246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_utf8proc_utf8proc_version" >&5
23247 $as_echo "$ac_cv_lib_utf8proc_utf8proc_version" >&6; }
23248 if test "x$ac_cv_lib_utf8proc_utf8proc_version" = xyes; then :
23249
23250     utf8proc_found=yes
23251     SVN_UTF8PROC_INCLUDES="-I$utf8proc_prefix/include"
23252     SVN_UTF8PROC_LIBS="`
23253   input_flags="-L$utf8proc_prefix/lib"
23254   output_flags=""
23255   filtered_dirs="/lib /lib64 /usr/lib /usr/lib64"
23256   for flag in $input_flags; do
23257     filter="no"
23258     for dir in $filtered_dirs; do
23259       if test "$flag" = "-L$dir" || test "$flag" = "-L$dir/"; then
23260         filter="yes"
23261         break
23262       fi
23263     done
23264     if test "$filter" = "no"; then
23265       output_flags="$output_flags $flag"
23266     fi
23267   done
23268   if test -n "$output_flags"; then
23269     printf "%s" "${output_flags# }"
23270   fi
23271 ` -lutf8proc"
23272
23273 fi
23274
23275   LDFLAGS="$save_ldflags"
23276   CPPFLAGS="$save_cppflags"
23277
23278     fi
23279     if test "$utf8proc_found" != "yes"; then
23280       as_fn_error $? "Subversion requires UTF8PROC; install it or re-run configure with \"--with-utf8proc=internal\"" "$LINENO" 5
23281     fi
23282   fi
23283
23284
23285
23286
23287 MOD_ACTIVATION=""
23288 # Check whether --enable-mod-activation was given.
23289 if test "${enable_mod_activation+set}" = set; then :
23290   enableval=$enable_mod_activation;
23291     if test "$enableval" = "yes" ; then
23292       MOD_ACTIVATION="-a"
23293       { $as_echo "$as_me:${as_lineno-$LINENO}: Enabling apache module activation" >&5
23294 $as_echo "$as_me: Enabling apache module activation" >&6;}
23295     else
23296       { $as_echo "$as_me:${as_lineno-$LINENO}: Disabling apache module activation" >&5
23297 $as_echo "$as_me: Disabling apache module activation" >&6;}
23298     fi
23299
23300 fi
23301
23302
23303
23304
23305
23306 # Check whether --enable-gcov was given.
23307 if test "${enable_gcov+set}" = set; then :
23308   enableval=$enable_gcov;
23309     if test "$enableval" = "yes" ; then
23310                   if test "$GCC" = "yes"; then
23311         if test "$svn_enable_shared" = "yes" ; then
23312           as_fn_error $? "Can't have --enable-gcov without --disable-shared (we
23313                         recommend also using --enable-all-static)." "$LINENO" 5
23314         fi
23315         if test ! "$enable_all_static" = "yes" ; then
23316           { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: We recommend --enable-all-static with --enable-gcov." >&5
23317 $as_echo "$as_me: WARNING: We recommend --enable-all-static with --enable-gcov." >&2;}
23318         fi
23319         { $as_echo "$as_me:${as_lineno-$LINENO}: Enabling gcov coverage testing." >&5
23320 $as_echo "$as_me: Enabling gcov coverage testing." >&6;}
23321         CFLAGS="$CFLAGS -fprofile-arcs -ftest-coverage"
23322         CXXFLAGS="$CXXFLAGS -fprofile-arcs -ftest-coverage"
23323       else
23324         as_fn_error $? "We only support --enable-gcov with GCC right now." "$LINENO" 5
23325       fi
23326     fi
23327
23328 fi
23329
23330
23331 # Check whether --enable-gprof was given.
23332 if test "${enable_gprof+set}" = set; then :
23333   enableval=$enable_gprof;
23334     if test "$enableval" = "yes" ; then
23335                   if test "$GCC" = "yes"; then
23336         if test "$svn_enable_shared" = "yes" ; then
23337           as_fn_error $? "Can't have --enable-gprof without --disable-shared (we
23338                         recommend also using --enable-all-static)." "$LINENO" 5
23339         fi
23340         if test ! "$enable_all_static" = "yes" ; then
23341           { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: We recommend --enable-all-static with --enable-gprof." >&5
23342 $as_echo "$as_me: WARNING: We recommend --enable-all-static with --enable-gprof." >&2;}
23343         fi
23344         { $as_echo "$as_me:${as_lineno-$LINENO}: Enabling gprof profiling data (to gmon.out)." >&5
23345 $as_echo "$as_me: Enabling gprof profiling data (to gmon.out)." >&6;}
23346         CFLAGS="$CFLAGS -pg"
23347         CXXFLAGS="$CXXFLAGS -pg"
23348         LT_LDFLAGS="$LT_LDFLAGS -pg"
23349       else
23350         as_fn_error $? "We only support --enable-gprof with GCC right now." "$LINENO" 5
23351       fi
23352     fi
23353
23354 fi
23355
23356
23357
23358 # Scripting and Bindings languages
23359
23360 # Python: Used for testsuite, and bindings
23361
23362
23363 PYTHON="`$abs_srcdir/build/find_python.sh`"
23364 if test -z "$PYTHON"; then
23365   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Python 2.7 or later is required to run the testsuite" >&5
23366 $as_echo "$as_me: WARNING: Python 2.7 or later is required to run the testsuite" >&2;}
23367   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: or to use the Subversion Python bindings" >&5
23368 $as_echo "$as_me: WARNING: or to use the Subversion Python bindings" >&2;}
23369   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: " >&5
23370 $as_echo "$as_me: WARNING: " >&2;}
23371   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: If you have a suitable Python installed, but not on the" >&5
23372 $as_echo "$as_me: WARNING: If you have a suitable Python installed, but not on the" >&2;}
23373   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PATH, set the environment variable PYTHON to the full path" >&5
23374 $as_echo "$as_me: WARNING: PATH, set the environment variable PYTHON to the full path" >&2;}
23375   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: to the Python executable, and re-run configure" >&5
23376 $as_echo "$as_me: WARNING: to the Python executable, and re-run configure" >&2;}
23377 fi
23378 for ac_prog in "$PYTHON"
23379 do
23380   # Extract the first word of "$ac_prog", so it can be a program name with args.
23381 set dummy $ac_prog; ac_word=$2
23382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23383 $as_echo_n "checking for $ac_word... " >&6; }
23384 if ${ac_cv_path_PYTHON+:} false; then :
23385   $as_echo_n "(cached) " >&6
23386 else
23387   case $PYTHON in
23388   [\\/]* | ?:[\\/]*)
23389   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
23390   ;;
23391   *)
23392   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23393 for as_dir in $PATH
23394 do
23395   IFS=$as_save_IFS
23396   test -z "$as_dir" && as_dir=.
23397     for ac_exec_ext in '' $ac_executable_extensions; do
23398   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23399     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
23400     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23401     break 2
23402   fi
23403 done
23404   done
23405 IFS=$as_save_IFS
23406
23407   ;;
23408 esac
23409 fi
23410 PYTHON=$ac_cv_path_PYTHON
23411 if test -n "$PYTHON"; then
23412   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
23413 $as_echo "$PYTHON" >&6; }
23414 else
23415   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23416 $as_echo "no" >&6; }
23417 fi
23418
23419
23420   test -n "$PYTHON" && break
23421 done
23422 test -n "$PYTHON" || PYTHON="none"
23423
23424
23425 # The minimum version for the JVM runtime for our Java bytecode.
23426 JAVA_OLDEST_WORKING_VER='1.8'
23427 # SVN_CHECK_JDK sets $JAVA_CLASSPATH
23428
23429   JAVA_OLDEST_WORKING_VER="$JAVA_OLDEST_WORKING_VER"
23430
23431 # Check whether --with-jdk was given.
23432 if test "${with_jdk+set}" = set; then :
23433   withval=$with_jdk;
23434     case "$withval" in
23435       "no")
23436         JDK_SUITABLE=no
23437       ;;
23438       "yes")
23439
23440   where=check
23441   JAVA_OLDEST_WORKING_VER="$JAVA_OLDEST_WORKING_VER"
23442
23443   JDK=none
23444   JAVA_BIN=none
23445   JAVADOC=none
23446   JAVAC=none
23447   JAVAH=none
23448   JAR=none
23449   JNI_INCLUDES=none
23450
23451   JDK_SUITABLE=no
23452   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JDK" >&5
23453 $as_echo_n "checking for JDK... " >&6; }
23454   if test $where = check; then
23455                 if test -x "$JAVA_HOME/bin/java"; then
23456       JDK="$JAVA_HOME"
23457     elif test -x "/usr/libexec/java_home"; then
23458       JDK=`/usr/libexec/java_home`
23459     elif test -x "/Library/Java/Home/bin/java"; then
23460       JDK="/Library/Java/Home"
23461     elif test -x "/usr/bin/java"; then
23462       JDK="/usr"
23463     elif test -x "/usr/local/bin/java"; then
23464       JDK="/usr/local"
23465     fi
23466   else
23467     JDK=$where
23468   fi
23469
23470           os_arch="`uname`"
23471   if test "$os_arch" = "Darwin"; then
23472     OSX_VER=`/usr/bin/sw_vers | grep ProductVersion | cut -f2 | cut -d"." -f1,2`
23473
23474     if test "$OSX_VER" = "10.4"; then
23475             OSX_VER="10.4u"
23476     fi
23477
23478     OSX_SYS_JAVA_FRAMEWORK="/System/Library/Frameworks/JavaVM.framework"
23479     OSX_SDK_JAVA_FRAMEWORK="/Developer/SDKs/MacOSX$OSX_VER.sdk/System/Library"
23480     OSX_SDK_JAVA_FRAMEWORK="$OSX_SDK_JAVA_FRAMEWORK/Frameworks/JavaVM.framework"
23481   fi
23482
23483   if test "$os_arch" = "Darwin" && test "$JDK" = "/usr" &&
23484      test -d "/Library/Java/Home"; then
23485     JDK="/Library/Java/Home"
23486   fi
23487
23488   if test "$os_arch" = "Darwin" && test "$JDK" = "/Library/Java/Home"; then
23489     JRE_LIB_DIR="$OSX_SYS_JAVA_FRAMEWORK/Classes"
23490   else
23491     JRE_LIB_DIR="$JDK/jre/lib"
23492   fi
23493
23494   if test -f "$JDK/include/jni.h"; then
23495         JNI_INCLUDEDIR="$JDK/include"
23496     JDK_SUITABLE=yes
23497   elif test "$os_arch" = "Darwin" && test -e "$JDK/Headers/jni.h"; then
23498         JNI_INCLUDEDIR="$JDK/Headers"
23499     JDK_SUITABLE=yes
23500   elif test "$os_arch" = "Darwin" &&
23501        test -e "$OSX_SYS_JAVA_FRAMEWORK/Headers/jni.h"; then
23502         JNI_INCLUDEDIR="$OSX_SYS_JAVA_FRAMEWORK/Headers"
23503     JDK_SUITABLE=yes
23504   elif test "$os_arch" = "Darwin" &&
23505        test -e "$OSX_SDK_JAVA_FRAMEWORK/Headers/jni.h"; then
23506         JNI_INCLUDEDIR="$OSX_SDK_JAVA_FRAMEWORK/Headers"
23507     JDK_SUITABLE=yes
23508   else
23509     JDK_SUITABLE=no
23510   fi
23511   if test "$JDK_SUITABLE" = "yes"; then
23512     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JNI_INCLUDEDIR/jni.h" >&5
23513 $as_echo "$JNI_INCLUDEDIR/jni.h" >&6; }
23514   else
23515     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23516 $as_echo "no" >&6; }
23517     if test "$where" != "check"; then
23518       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no JNI header files found." >&5
23519 $as_echo "$as_me: WARNING: no JNI header files found." >&2;}
23520       if test "$os_arch" = "Darwin"; then
23521         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You may need to install the latest Java Development package from http://connect.apple.com/.  Apple no longer includes the JNI header files by default on Java updates." >&5
23522 $as_echo "$as_me: WARNING: You may need to install the latest Java Development package from http://connect.apple.com/.  Apple no longer includes the JNI header files by default on Java updates." >&2;}
23523       fi
23524     fi
23525   fi
23526
23527   if test "$JDK_SUITABLE" = "yes"; then
23528     JAVA_BIN='$(JDK)/bin'
23529
23530     JAVA="$JAVA_BIN/java"
23531     JAVAC="$JAVA_BIN/javac"
23532     JAVAH="$JAVA_BIN/javah"
23533     JAVADOC="$JAVA_BIN/javadoc"
23534     JAR="$JAVA_BIN/jar"
23535
23536
23537 # Check whether --with-jikes was given.
23538 if test "${with_jikes+set}" = set; then :
23539   withval=$with_jikes;
23540       if test "$withval" != "no"; then
23541         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The --with-jikes option was ignored" >&5
23542 $as_echo "$as_me: WARNING: The --with-jikes option was ignored" >&2;}
23543       fi
23544
23545 fi
23546
23547
23548         # The release for "-source" could actually be greater than that
23549     # of "-target", if we want to cross-compile for lesser JVMs.
23550     if test -z "$JAVAC_FLAGS"; then
23551       JAVAC_FLAGS="-target $JAVA_OLDEST_WORKING_VER -source 1.8"
23552       if test "$enable_debugging" = "yes"; then
23553         JAVAC_FLAGS="-g -Xlint -Xlint:unchecked -Xlint:serial -Xlint:path $JAVAC_FLAGS"
23554         if test -z "$JAVAC_COMPAT_FLAGS"; then
23555           JAVAC_COMPAT_FLAGS="$JAVAC_FLAGS -Xlint:-unchecked -Xlint:-deprecation -Xlint:-dep-ann -Xlint:-rawtypes"
23556         fi
23557       fi
23558     fi
23559
23560     JNI_INCLUDES="-I$JNI_INCLUDEDIR"
23561     list="`find "$JNI_INCLUDEDIR" -type d -print`"
23562     for dir in $list; do
23563       JNI_INCLUDES="$JNI_INCLUDES -I$dir"
23564     done
23565   fi
23566
23567
23568
23569
23570
23571
23572
23573
23574
23575
23576
23577       ;;
23578       *)
23579
23580   where=$withval
23581   JAVA_OLDEST_WORKING_VER="$JAVA_OLDEST_WORKING_VER"
23582
23583   JDK=none
23584   JAVA_BIN=none
23585   JAVADOC=none
23586   JAVAC=none
23587   JAVAH=none
23588   JAR=none
23589   JNI_INCLUDES=none
23590
23591   JDK_SUITABLE=no
23592   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JDK" >&5
23593 $as_echo_n "checking for JDK... " >&6; }
23594   if test $where = check; then
23595                 if test -x "$JAVA_HOME/bin/java"; then
23596       JDK="$JAVA_HOME"
23597     elif test -x "/usr/libexec/java_home"; then
23598       JDK=`/usr/libexec/java_home`
23599     elif test -x "/Library/Java/Home/bin/java"; then
23600       JDK="/Library/Java/Home"
23601     elif test -x "/usr/bin/java"; then
23602       JDK="/usr"
23603     elif test -x "/usr/local/bin/java"; then
23604       JDK="/usr/local"
23605     fi
23606   else
23607     JDK=$where
23608   fi
23609
23610           os_arch="`uname`"
23611   if test "$os_arch" = "Darwin"; then
23612     OSX_VER=`/usr/bin/sw_vers | grep ProductVersion | cut -f2 | cut -d"." -f1,2`
23613
23614     if test "$OSX_VER" = "10.4"; then
23615             OSX_VER="10.4u"
23616     fi
23617
23618     OSX_SYS_JAVA_FRAMEWORK="/System/Library/Frameworks/JavaVM.framework"
23619     OSX_SDK_JAVA_FRAMEWORK="/Developer/SDKs/MacOSX$OSX_VER.sdk/System/Library"
23620     OSX_SDK_JAVA_FRAMEWORK="$OSX_SDK_JAVA_FRAMEWORK/Frameworks/JavaVM.framework"
23621   fi
23622
23623   if test "$os_arch" = "Darwin" && test "$JDK" = "/usr" &&
23624      test -d "/Library/Java/Home"; then
23625     JDK="/Library/Java/Home"
23626   fi
23627
23628   if test "$os_arch" = "Darwin" && test "$JDK" = "/Library/Java/Home"; then
23629     JRE_LIB_DIR="$OSX_SYS_JAVA_FRAMEWORK/Classes"
23630   else
23631     JRE_LIB_DIR="$JDK/jre/lib"
23632   fi
23633
23634   if test -f "$JDK/include/jni.h"; then
23635         JNI_INCLUDEDIR="$JDK/include"
23636     JDK_SUITABLE=yes
23637   elif test "$os_arch" = "Darwin" && test -e "$JDK/Headers/jni.h"; then
23638         JNI_INCLUDEDIR="$JDK/Headers"
23639     JDK_SUITABLE=yes
23640   elif test "$os_arch" = "Darwin" &&
23641        test -e "$OSX_SYS_JAVA_FRAMEWORK/Headers/jni.h"; then
23642         JNI_INCLUDEDIR="$OSX_SYS_JAVA_FRAMEWORK/Headers"
23643     JDK_SUITABLE=yes
23644   elif test "$os_arch" = "Darwin" &&
23645        test -e "$OSX_SDK_JAVA_FRAMEWORK/Headers/jni.h"; then
23646         JNI_INCLUDEDIR="$OSX_SDK_JAVA_FRAMEWORK/Headers"
23647     JDK_SUITABLE=yes
23648   else
23649     JDK_SUITABLE=no
23650   fi
23651   if test "$JDK_SUITABLE" = "yes"; then
23652     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JNI_INCLUDEDIR/jni.h" >&5
23653 $as_echo "$JNI_INCLUDEDIR/jni.h" >&6; }
23654   else
23655     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23656 $as_echo "no" >&6; }
23657     if test "$where" != "check"; then
23658       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no JNI header files found." >&5
23659 $as_echo "$as_me: WARNING: no JNI header files found." >&2;}
23660       if test "$os_arch" = "Darwin"; then
23661         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You may need to install the latest Java Development package from http://connect.apple.com/.  Apple no longer includes the JNI header files by default on Java updates." >&5
23662 $as_echo "$as_me: WARNING: You may need to install the latest Java Development package from http://connect.apple.com/.  Apple no longer includes the JNI header files by default on Java updates." >&2;}
23663       fi
23664     fi
23665   fi
23666
23667   if test "$JDK_SUITABLE" = "yes"; then
23668     JAVA_BIN='$(JDK)/bin'
23669
23670     JAVA="$JAVA_BIN/java"
23671     JAVAC="$JAVA_BIN/javac"
23672     JAVAH="$JAVA_BIN/javah"
23673     JAVADOC="$JAVA_BIN/javadoc"
23674     JAR="$JAVA_BIN/jar"
23675
23676
23677 # Check whether --with-jikes was given.
23678 if test "${with_jikes+set}" = set; then :
23679   withval=$with_jikes;
23680       if test "$withval" != "no"; then
23681         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The --with-jikes option was ignored" >&5
23682 $as_echo "$as_me: WARNING: The --with-jikes option was ignored" >&2;}
23683       fi
23684
23685 fi
23686
23687
23688         # The release for "-source" could actually be greater than that
23689     # of "-target", if we want to cross-compile for lesser JVMs.
23690     if test -z "$JAVAC_FLAGS"; then
23691       JAVAC_FLAGS="-target $JAVA_OLDEST_WORKING_VER -source 1.8"
23692       if test "$enable_debugging" = "yes"; then
23693         JAVAC_FLAGS="-g -Xlint -Xlint:unchecked -Xlint:serial -Xlint:path $JAVAC_FLAGS"
23694         if test -z "$JAVAC_COMPAT_FLAGS"; then
23695           JAVAC_COMPAT_FLAGS="$JAVAC_FLAGS -Xlint:-unchecked -Xlint:-deprecation -Xlint:-dep-ann -Xlint:-rawtypes"
23696         fi
23697       fi
23698     fi
23699
23700     JNI_INCLUDES="-I$JNI_INCLUDEDIR"
23701     list="`find "$JNI_INCLUDEDIR" -type d -print`"
23702     for dir in $list; do
23703       JNI_INCLUDES="$JNI_INCLUDES -I$dir"
23704     done
23705   fi
23706
23707
23708
23709
23710
23711
23712
23713
23714
23715
23716
23717       ;;
23718     esac
23719
23720 else
23721
23722
23723   where=check
23724   JAVA_OLDEST_WORKING_VER="$JAVA_OLDEST_WORKING_VER"
23725
23726   JDK=none
23727   JAVA_BIN=none
23728   JAVADOC=none
23729   JAVAC=none
23730   JAVAH=none
23731   JAR=none
23732   JNI_INCLUDES=none
23733
23734   JDK_SUITABLE=no
23735   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JDK" >&5
23736 $as_echo_n "checking for JDK... " >&6; }
23737   if test $where = check; then
23738                 if test -x "$JAVA_HOME/bin/java"; then
23739       JDK="$JAVA_HOME"
23740     elif test -x "/usr/libexec/java_home"; then
23741       JDK=`/usr/libexec/java_home`
23742     elif test -x "/Library/Java/Home/bin/java"; then
23743       JDK="/Library/Java/Home"
23744     elif test -x "/usr/bin/java"; then
23745       JDK="/usr"
23746     elif test -x "/usr/local/bin/java"; then
23747       JDK="/usr/local"
23748     fi
23749   else
23750     JDK=$where
23751   fi
23752
23753           os_arch="`uname`"
23754   if test "$os_arch" = "Darwin"; then
23755     OSX_VER=`/usr/bin/sw_vers | grep ProductVersion | cut -f2 | cut -d"." -f1,2`
23756
23757     if test "$OSX_VER" = "10.4"; then
23758             OSX_VER="10.4u"
23759     fi
23760
23761     OSX_SYS_JAVA_FRAMEWORK="/System/Library/Frameworks/JavaVM.framework"
23762     OSX_SDK_JAVA_FRAMEWORK="/Developer/SDKs/MacOSX$OSX_VER.sdk/System/Library"
23763     OSX_SDK_JAVA_FRAMEWORK="$OSX_SDK_JAVA_FRAMEWORK/Frameworks/JavaVM.framework"
23764   fi
23765
23766   if test "$os_arch" = "Darwin" && test "$JDK" = "/usr" &&
23767      test -d "/Library/Java/Home"; then
23768     JDK="/Library/Java/Home"
23769   fi
23770
23771   if test "$os_arch" = "Darwin" && test "$JDK" = "/Library/Java/Home"; then
23772     JRE_LIB_DIR="$OSX_SYS_JAVA_FRAMEWORK/Classes"
23773   else
23774     JRE_LIB_DIR="$JDK/jre/lib"
23775   fi
23776
23777   if test -f "$JDK/include/jni.h"; then
23778         JNI_INCLUDEDIR="$JDK/include"
23779     JDK_SUITABLE=yes
23780   elif test "$os_arch" = "Darwin" && test -e "$JDK/Headers/jni.h"; then
23781         JNI_INCLUDEDIR="$JDK/Headers"
23782     JDK_SUITABLE=yes
23783   elif test "$os_arch" = "Darwin" &&
23784        test -e "$OSX_SYS_JAVA_FRAMEWORK/Headers/jni.h"; then
23785         JNI_INCLUDEDIR="$OSX_SYS_JAVA_FRAMEWORK/Headers"
23786     JDK_SUITABLE=yes
23787   elif test "$os_arch" = "Darwin" &&
23788        test -e "$OSX_SDK_JAVA_FRAMEWORK/Headers/jni.h"; then
23789         JNI_INCLUDEDIR="$OSX_SDK_JAVA_FRAMEWORK/Headers"
23790     JDK_SUITABLE=yes
23791   else
23792     JDK_SUITABLE=no
23793   fi
23794   if test "$JDK_SUITABLE" = "yes"; then
23795     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JNI_INCLUDEDIR/jni.h" >&5
23796 $as_echo "$JNI_INCLUDEDIR/jni.h" >&6; }
23797   else
23798     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23799 $as_echo "no" >&6; }
23800     if test "$where" != "check"; then
23801       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no JNI header files found." >&5
23802 $as_echo "$as_me: WARNING: no JNI header files found." >&2;}
23803       if test "$os_arch" = "Darwin"; then
23804         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You may need to install the latest Java Development package from http://connect.apple.com/.  Apple no longer includes the JNI header files by default on Java updates." >&5
23805 $as_echo "$as_me: WARNING: You may need to install the latest Java Development package from http://connect.apple.com/.  Apple no longer includes the JNI header files by default on Java updates." >&2;}
23806       fi
23807     fi
23808   fi
23809
23810   if test "$JDK_SUITABLE" = "yes"; then
23811     JAVA_BIN='$(JDK)/bin'
23812
23813     JAVA="$JAVA_BIN/java"
23814     JAVAC="$JAVA_BIN/javac"
23815     JAVAH="$JAVA_BIN/javah"
23816     JAVADOC="$JAVA_BIN/javadoc"
23817     JAR="$JAVA_BIN/jar"
23818
23819
23820 # Check whether --with-jikes was given.
23821 if test "${with_jikes+set}" = set; then :
23822   withval=$with_jikes;
23823       if test "$withval" != "no"; then
23824         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The --with-jikes option was ignored" >&5
23825 $as_echo "$as_me: WARNING: The --with-jikes option was ignored" >&2;}
23826       fi
23827
23828 fi
23829
23830
23831         # The release for "-source" could actually be greater than that
23832     # of "-target", if we want to cross-compile for lesser JVMs.
23833     if test -z "$JAVAC_FLAGS"; then
23834       JAVAC_FLAGS="-target $JAVA_OLDEST_WORKING_VER -source 1.8"
23835       if test "$enable_debugging" = "yes"; then
23836         JAVAC_FLAGS="-g -Xlint -Xlint:unchecked -Xlint:serial -Xlint:path $JAVAC_FLAGS"
23837         if test -z "$JAVAC_COMPAT_FLAGS"; then
23838           JAVAC_COMPAT_FLAGS="$JAVAC_FLAGS -Xlint:-unchecked -Xlint:-deprecation -Xlint:-dep-ann -Xlint:-rawtypes"
23839         fi
23840       fi
23841     fi
23842
23843     JNI_INCLUDES="-I$JNI_INCLUDEDIR"
23844     list="`find "$JNI_INCLUDEDIR" -type d -print`"
23845     for dir in $list; do
23846       JNI_INCLUDES="$JNI_INCLUDES -I$dir"
23847     done
23848   fi
23849
23850
23851
23852
23853
23854
23855
23856
23857
23858
23859
23860
23861 fi
23862
23863
23864
23865 # Extract the first word of "perl", so it can be a program name with args.
23866 set dummy perl; ac_word=$2
23867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23868 $as_echo_n "checking for $ac_word... " >&6; }
23869 if ${ac_cv_path_PERL+:} false; then :
23870   $as_echo_n "(cached) " >&6
23871 else
23872   case $PERL in
23873   [\\/]* | ?:[\\/]*)
23874   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
23875   ;;
23876   *)
23877   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23878 for as_dir in $PATH
23879 do
23880   IFS=$as_save_IFS
23881   test -z "$as_dir" && as_dir=.
23882     for ac_exec_ext in '' $ac_executable_extensions; do
23883   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23884     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
23885     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23886     break 2
23887   fi
23888 done
23889   done
23890 IFS=$as_save_IFS
23891
23892   test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
23893   ;;
23894 esac
23895 fi
23896 PERL=$ac_cv_path_PERL
23897 if test -n "$PERL"; then
23898   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
23899 $as_echo "$PERL" >&6; }
23900 else
23901   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23902 $as_echo "no" >&6; }
23903 fi
23904
23905
23906
23907 if test -n "$RUBY"; then
23908   # Extract the first word of ""$RUBY"", so it can be a program name with args.
23909 set dummy "$RUBY"; ac_word=$2
23910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23911 $as_echo_n "checking for $ac_word... " >&6; }
23912 if ${ac_cv_path_RUBY+:} false; then :
23913   $as_echo_n "(cached) " >&6
23914 else
23915   case $RUBY in
23916   [\\/]* | ?:[\\/]*)
23917   ac_cv_path_RUBY="$RUBY" # Let the user override the test with a path.
23918   ;;
23919   *)
23920   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23921 for as_dir in $PATH
23922 do
23923   IFS=$as_save_IFS
23924   test -z "$as_dir" && as_dir=.
23925     for ac_exec_ext in '' $ac_executable_extensions; do
23926   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23927     ac_cv_path_RUBY="$as_dir/$ac_word$ac_exec_ext"
23928     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23929     break 2
23930   fi
23931 done
23932   done
23933 IFS=$as_save_IFS
23934
23935   test -z "$ac_cv_path_RUBY" && ac_cv_path_RUBY="none"
23936   ;;
23937 esac
23938 fi
23939 RUBY=$ac_cv_path_RUBY
23940 if test -n "$RUBY"; then
23941   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUBY" >&5
23942 $as_echo "$RUBY" >&6; }
23943 else
23944   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23945 $as_echo "no" >&6; }
23946 fi
23947
23948
23949 else
23950   for ac_prog in ruby ruby1 ruby1.8 ruby18 ruby1.9 ruby19 ruby1.9.3 ruby193 ruby2 ruby2.0 ruby20 ruby2.1 ruby21 ruby2.2 ruby22 ruby2.3 ruby23 ruby2.4 ruby24
23951 do
23952   # Extract the first word of "$ac_prog", so it can be a program name with args.
23953 set dummy $ac_prog; ac_word=$2
23954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23955 $as_echo_n "checking for $ac_word... " >&6; }
23956 if ${ac_cv_path_RUBY+:} false; then :
23957   $as_echo_n "(cached) " >&6
23958 else
23959   case $RUBY in
23960   [\\/]* | ?:[\\/]*)
23961   ac_cv_path_RUBY="$RUBY" # Let the user override the test with a path.
23962   ;;
23963   *)
23964   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23965 for as_dir in $PATH
23966 do
23967   IFS=$as_save_IFS
23968   test -z "$as_dir" && as_dir=.
23969     for ac_exec_ext in '' $ac_executable_extensions; do
23970   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23971     ac_cv_path_RUBY="$as_dir/$ac_word$ac_exec_ext"
23972     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23973     break 2
23974   fi
23975 done
23976   done
23977 IFS=$as_save_IFS
23978
23979   ;;
23980 esac
23981 fi
23982 RUBY=$ac_cv_path_RUBY
23983 if test -n "$RUBY"; then
23984   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUBY" >&5
23985 $as_echo "$RUBY" >&6; }
23986 else
23987   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23988 $as_echo "no" >&6; }
23989 fi
23990
23991
23992   test -n "$RUBY" && break
23993 done
23994 test -n "$RUBY" || RUBY="none"
23995
23996 fi
23997 if test "$RUBY" != "none"; then
23998   { $as_echo "$as_me:${as_lineno-$LINENO}: checking rb_hash_foreach" >&5
23999 $as_echo_n "checking rb_hash_foreach... " >&6; }
24000   if "$RUBY" -r mkmf -e 'exit(have_func("rb_hash_foreach") ? 0 : 1)' >/dev/null; then
24001     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24002 $as_echo "yes" >&6; }
24003     if test -n "$RDOC"; then
24004       # Extract the first word of ""$RDOC"", so it can be a program name with args.
24005 set dummy "$RDOC"; ac_word=$2
24006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24007 $as_echo_n "checking for $ac_word... " >&6; }
24008 if ${ac_cv_path_RDOC+:} false; then :
24009   $as_echo_n "(cached) " >&6
24010 else
24011   case $RDOC in
24012   [\\/]* | ?:[\\/]*)
24013   ac_cv_path_RDOC="$RDOC" # Let the user override the test with a path.
24014   ;;
24015   *)
24016   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24017 for as_dir in $PATH
24018 do
24019   IFS=$as_save_IFS
24020   test -z "$as_dir" && as_dir=.
24021     for ac_exec_ext in '' $ac_executable_extensions; do
24022   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24023     ac_cv_path_RDOC="$as_dir/$ac_word$ac_exec_ext"
24024     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24025     break 2
24026   fi
24027 done
24028   done
24029 IFS=$as_save_IFS
24030
24031   test -z "$ac_cv_path_RDOC" && ac_cv_path_RDOC="none"
24032   ;;
24033 esac
24034 fi
24035 RDOC=$ac_cv_path_RDOC
24036 if test -n "$RDOC"; then
24037   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RDOC" >&5
24038 $as_echo "$RDOC" >&6; }
24039 else
24040   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24041 $as_echo "no" >&6; }
24042 fi
24043
24044
24045     else
24046       for ac_prog in rdoc rdoc1 rdoc1.8 rdoc18 rdoc1.9 rdoc19 rdoc1.9.3 rdoc193 rdoc2 rdoc2.0 rdoc20 rdoc2.1 rdoc21 rdoc2.2 rdoc22 rdoc2.3 rdoc23 rdoc2.4 rdoc24
24047 do
24048   # Extract the first word of "$ac_prog", so it can be a program name with args.
24049 set dummy $ac_prog; ac_word=$2
24050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24051 $as_echo_n "checking for $ac_word... " >&6; }
24052 if ${ac_cv_path_RDOC+:} false; then :
24053   $as_echo_n "(cached) " >&6
24054 else
24055   case $RDOC in
24056   [\\/]* | ?:[\\/]*)
24057   ac_cv_path_RDOC="$RDOC" # Let the user override the test with a path.
24058   ;;
24059   *)
24060   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24061 for as_dir in $PATH
24062 do
24063   IFS=$as_save_IFS
24064   test -z "$as_dir" && as_dir=.
24065     for ac_exec_ext in '' $ac_executable_extensions; do
24066   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24067     ac_cv_path_RDOC="$as_dir/$ac_word$ac_exec_ext"
24068     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24069     break 2
24070   fi
24071 done
24072   done
24073 IFS=$as_save_IFS
24074
24075   ;;
24076 esac
24077 fi
24078 RDOC=$ac_cv_path_RDOC
24079 if test -n "$RDOC"; then
24080   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RDOC" >&5
24081 $as_echo "$RDOC" >&6; }
24082 else
24083   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24084 $as_echo "no" >&6; }
24085 fi
24086
24087
24088   test -n "$RDOC" && break
24089 done
24090 test -n "$RDOC" || RDOC="none"
24091
24092     fi
24093     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ruby major version" >&5
24094 $as_echo_n "checking for Ruby major version... " >&6; }
24095 if ${svn_cv_ruby_major+:} false; then :
24096   $as_echo_n "(cached) " >&6
24097 else
24098
24099     svn_cv_ruby_major="`$RUBY -rrbconfig -e 'print RbConfig::CONFIG.fetch(%q(MAJOR))'`"
24100
24101 fi
24102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $svn_cv_ruby_major" >&5
24103 $as_echo "$svn_cv_ruby_major" >&6; }
24104     RUBY_MAJOR="$svn_cv_ruby_major"
24105
24106     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ruby minor version" >&5
24107 $as_echo_n "checking for Ruby minor version... " >&6; }
24108 if ${svn_cv_ruby_minor+:} false; then :
24109   $as_echo_n "(cached) " >&6
24110 else
24111
24112     svn_cv_ruby_minor="`$RUBY -rrbconfig -e 'print RbConfig::CONFIG.fetch(%q(MINOR))'`"
24113
24114 fi
24115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $svn_cv_ruby_minor" >&5
24116 $as_echo "$svn_cv_ruby_minor" >&6; }
24117     RUBY_MINOR="$svn_cv_ruby_minor"
24118
24119     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ruby teeny version" >&5
24120 $as_echo_n "checking for Ruby teeny version... " >&6; }
24121 if ${svn_cv_ruby_teeny+:} false; then :
24122   $as_echo_n "(cached) " >&6
24123 else
24124
24125     svn_cv_ruby_teeny="`$RUBY -rrbconfig -e 'major, minor, teeny = RUBY_VERSION.split("."); print teeny;'`"
24126
24127 fi
24128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $svn_cv_ruby_teeny" >&5
24129 $as_echo "$svn_cv_ruby_teeny" >&6; }
24130     RUBY_TEENY="$svn_cv_ruby_teeny"
24131
24132
24133
24134
24135     if test \( "$RUBY_MAJOR" -eq "1" -a "$RUBY_MINOR" -gt "8" -a "$RUBY_TEENY" -lt "3" \); then
24136       # Disallow Ruby between 1.8.7 and 1.9.3
24137       RUBY="none"
24138       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The detected Ruby is between 1.9 and 1.9.3" >&5
24139 $as_echo "$as_me: WARNING: The detected Ruby is between 1.9 and 1.9.3" >&2;}
24140       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Only 1.8.x and 1.9.3 or later are supported at this time" >&5
24141 $as_echo "$as_me: WARNING: Only 1.8.x and 1.9.3 or later are supported at this time" >&2;}
24142     fi
24143   else
24144     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24145 $as_echo "no" >&6; }
24146     RUBY="none"
24147     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The detected Ruby is too old for Subversion to use" >&5
24148 $as_echo "$as_me: WARNING: The detected Ruby is too old for Subversion to use" >&2;}
24149     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: A Ruby which has rb_hash_foreach is required to use the" >&5
24150 $as_echo "$as_me: WARNING: A Ruby which has rb_hash_foreach is required to use the" >&2;}
24151     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Subversion Ruby bindings" >&5
24152 $as_echo "$as_me: WARNING: Subversion Ruby bindings" >&2;}
24153     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Upgrade to the official 1.8.2 release, or later" >&5
24154 $as_echo "$as_me: WARNING: Upgrade to the official 1.8.2 release, or later" >&2;}
24155   fi
24156 fi
24157
24158
24159
24160 # Check whether --with-swig was given.
24161 if test "${with_swig+set}" = set; then :
24162   withval=$with_swig;
24163     case "$withval" in
24164       "no")
24165         SWIG_SUITABLE=no
24166
24167   where=no
24168
24169   if test $where = no; then
24170     SWIG=none
24171   elif test $where = required || test $where = check; then
24172     # Extract the first word of "swig", so it can be a program name with args.
24173 set dummy swig; ac_word=$2
24174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24175 $as_echo_n "checking for $ac_word... " >&6; }
24176 if ${ac_cv_path_SWIG+:} false; then :
24177   $as_echo_n "(cached) " >&6
24178 else
24179   case $SWIG in
24180   [\\/]* | ?:[\\/]*)
24181   ac_cv_path_SWIG="$SWIG" # Let the user override the test with a path.
24182   ;;
24183   *)
24184   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24185 for as_dir in $PATH
24186 do
24187   IFS=$as_save_IFS
24188   test -z "$as_dir" && as_dir=.
24189     for ac_exec_ext in '' $ac_executable_extensions; do
24190   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24191     ac_cv_path_SWIG="$as_dir/$ac_word$ac_exec_ext"
24192     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24193     break 2
24194   fi
24195 done
24196   done
24197 IFS=$as_save_IFS
24198
24199   test -z "$ac_cv_path_SWIG" && ac_cv_path_SWIG="none"
24200   ;;
24201 esac
24202 fi
24203 SWIG=$ac_cv_path_SWIG
24204 if test -n "$SWIG"; then
24205   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG" >&5
24206 $as_echo "$SWIG" >&6; }
24207 else
24208   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24209 $as_echo "no" >&6; }
24210 fi
24211
24212
24213     if test "$SWIG" = "none" && test $where = required; then
24214       as_fn_error $? "SWIG required, but not found" "$LINENO" 5
24215     fi
24216   else
24217     if test -f "$where"; then
24218       SWIG="$where"
24219     else
24220       SWIG="$where/bin/swig"
24221     fi
24222     if test ! -f "$SWIG" || test ! -x "$SWIG"; then
24223       as_fn_error $? "Could not find swig binary at $SWIG" "$LINENO" 5
24224     fi
24225   fi
24226
24227   if test "$SWIG" != "none"; then
24228     { $as_echo "$as_me:${as_lineno-$LINENO}: checking swig version" >&5
24229 $as_echo_n "checking swig version... " >&6; }
24230     SWIG_VERSION_RAW="`$SWIG -version 2>&1 | \
24231                        $SED -ne 's/^.*Version \(.*\)$/\1/p'`"
24232     # We want the version as an integer so we can test against
24233     # which version we're using.  SWIG doesn't provide this
24234     # to us so we have to come up with it on our own.
24235     # The major is passed straight through,
24236     # the minor is zero padded to two places,
24237     # and the patch level is zero padded to three places.
24238     # e.g. 1.3.24 becomes 103024
24239     SWIG_VERSION="`echo \"$SWIG_VERSION_RAW\" | \
24240                   $SED -e 's/[^0-9\.].*$//' \
24241                       -e 's/\.\([0-9]\)$/.0\1/' \
24242                       -e 's/\.\([0-9][0-9]\)$/.0\1/' \
24243                       -e 's/\.\([0-9]\)\./0\1/; s/\.//g;'`"
24244     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG_VERSION_RAW" >&5
24245 $as_echo "$SWIG_VERSION_RAW" >&6; }
24246     # If you change the required swig version number, don't forget to update:
24247     #   subversion/bindings/swig/INSTALL
24248     if test -n "$SWIG_VERSION" && test "$SWIG_VERSION" -ge "103024"; then
24249       SWIG_SUITABLE=yes
24250     else
24251       SWIG_SUITABLE=no
24252       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Detected SWIG version $SWIG_VERSION_RAW" >&5
24253 $as_echo "$as_me: WARNING: Detected SWIG version $SWIG_VERSION_RAW" >&2;}
24254       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Subversion requires SWIG >= 1.3.24" >&5
24255 $as_echo "$as_me: WARNING: Subversion requires SWIG >= 1.3.24" >&2;}
24256     fi
24257   fi
24258
24259   SWIG_PY_COMPILE="none"
24260   SWIG_PY_LINK="none"
24261   SWIG_PY_OPTS="none"
24262   SWIG_PY_ERRMSG="check config.log for details"
24263   if test "$PYTHON" != "none"; then
24264     { $as_echo "$as_me:${as_lineno-$LINENO}: Configuring python swig binding" >&5
24265 $as_echo "$as_me: Configuring python swig binding" >&6;}
24266
24267     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python includes" >&5
24268 $as_echo_n "checking for Python includes... " >&6; }
24269 if ${ac_cv_python_includes+:} false; then :
24270   $as_echo_n "(cached) " >&6
24271 else
24272
24273       ac_cv_python_includes="`$PYTHON ${abs_srcdir}/build/get-py-info.py --includes`"
24274
24275 fi
24276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_python_includes" >&5
24277 $as_echo "$ac_cv_python_includes" >&6; }
24278     SWIG_PY_INCLUDES="\$(SWIG_INCLUDES) $ac_cv_python_includes"
24279
24280     if test "$ac_cv_python_includes" = "none"; then
24281       SWIG_PY_ERRMSG="no distutils found"
24282       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: python bindings cannot be built without distutils module" >&5
24283 $as_echo "$as_me: WARNING: python bindings cannot be built without distutils module" >&2;}
24284     else
24285
24286       python_header_found="no"
24287
24288       save_cppflags="$CPPFLAGS"
24289       CPPFLAGS="$CPPFLAGS $ac_cv_python_includes"
24290       ac_fn_c_check_header_mongrel "$LINENO" "Python.h" "ac_cv_header_Python_h" "$ac_includes_default"
24291 if test "x$ac_cv_header_Python_h" = xyes; then :
24292
24293         python_header_found="yes"
24294
24295 fi
24296
24297
24298       CPPFLAGS="$save_cppflags"
24299
24300       if test "$python_header_found" = "no"; then
24301         SWIG_PY_ERRMSG="no Python.h found"
24302         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Python.h not found; disabling python swig bindings" >&5
24303 $as_echo "$as_me: WARNING: Python.h not found; disabling python swig bindings" >&2;}
24304       else
24305
24306   py3c_found=no
24307   py3c_skip=no
24308
24309
24310 # Check whether --with-py3c was given.
24311 if test "${with_py3c+set}" = set; then :
24312   withval=$with_py3c;
24313     if test "$withval" = "yes"; then
24314       py3c_skip=no
24315     elif test "$withval" = "no"; then
24316       py3c_skip=yes
24317     else
24318       py3c_skip=no
24319       py3c_prefix="$withval"
24320     fi
24321
24322 fi
24323
24324
24325   if test "$py3c_skip" = "yes"; then
24326     { $as_echo "$as_me:${as_lineno-$LINENO}: Skipping configure of py3c" >&5
24327 $as_echo "$as_me: Skipping configure of py3c" >&6;}
24328   else
24329     if test -n "$py3c_prefix"; then
24330       { $as_echo "$as_me:${as_lineno-$LINENO}: py3c library configuration via prefix $py3c_prefix" >&5
24331 $as_echo "$as_me: py3c library configuration via prefix $py3c_prefix" >&6;}
24332
24333             if test "$ac_cv_python_includes" = "none"; then
24334         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: py3c cannot be used without distutils module" >&5
24335 $as_echo "$as_me: WARNING: py3c cannot be used without distutils module" >&2;}
24336       fi
24337
24338       save_cppflags="$CPPFLAGS"
24339       CPPFLAGS="$CPPFLAGS $ac_cv_python_includes -I$py3c_prefix/include"
24340       for ac_header in py3c.h
24341 do :
24342   ac_fn_c_check_header_mongrel "$LINENO" "py3c.h" "ac_cv_header_py3c_h" "$ac_includes_default"
24343 if test "x$ac_cv_header_py3c_h" = xyes; then :
24344   cat >>confdefs.h <<_ACEOF
24345 #define HAVE_PY3C_H 1
24346 _ACEOF
24347
24348           py3c_found="yes"
24349           SVN_PY3C_INCLUDES="-I$py3c_prefix/include"
24350
24351 fi
24352
24353 done
24354
24355       CPPFLAGS="$save_cppflags"
24356     else
24357
24358   { $as_echo "$as_me:${as_lineno-$LINENO}: py3c library configuration via pkg-config" >&5
24359 $as_echo "$as_me: py3c library configuration via pkg-config" >&6;}
24360   if test -n "$PKG_CONFIG"; then
24361     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for py3c library" >&5
24362 $as_echo_n "checking for py3c library... " >&6; }
24363     if $PKG_CONFIG py3c --exists; then
24364       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24365 $as_echo "yes" >&6; }
24366       py3c_found=yes
24367       SVN_PY3C_INCLUDES=`$PKG_CONFIG py3c --cflags`
24368     else
24369       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24370 $as_echo "no" >&6; }
24371     fi
24372   fi
24373
24374
24375       if test "$py3c_found" = "no"; then
24376         { $as_echo "$as_me:${as_lineno-$LINENO}: py3c library configuration without pkg-config" >&5
24377 $as_echo "$as_me: py3c library configuration without pkg-config" >&6;}
24378
24379                 if test "$ac_cv_python_includes" = "none"; then
24380           { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: py3c cannot be used without distutils module" >&5
24381 $as_echo "$as_me: WARNING: py3c cannot be used without distutils module" >&2;}
24382         fi
24383
24384         save_cppflags="$CPPFLAGS"
24385         CPPFLAGS="$CPPFLAGS $ac_cv_python_includes"
24386         ac_fn_c_check_header_mongrel "$LINENO" "py3c.h" "ac_cv_header_py3c_h" "$ac_includes_default"
24387 if test "x$ac_cv_header_py3c_h" = xyes; then :
24388
24389           py3c_found="yes"
24390
24391 fi
24392
24393
24394         CPPFLAGS="$save_cppflags"
24395       fi
24396     fi
24397   fi
24398
24399
24400
24401
24402         if test "$py3c_found" = "no"; then
24403           SWIG_PY_ERRMSG="py3c library not found"
24404           { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: py3c library not found; disabling python swig bindings" >&5
24405 $as_echo "$as_me: WARNING: py3c library not found; disabling python swig bindings" >&2;}
24406         else
24407           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiling Python extensions" >&5
24408 $as_echo_n "checking for compiling Python extensions... " >&6; }
24409 if ${ac_cv_python_compile+:} false; then :
24410   $as_echo_n "(cached) " >&6
24411 else
24412
24413             ac_cv_python_compile="`$PYTHON ${abs_srcdir}/build/get-py-info.py --compile`"
24414
24415 fi
24416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_python_compile" >&5
24417 $as_echo "$ac_cv_python_compile" >&6; }
24418           SWIG_PY_COMPILE="$ac_cv_python_compile $CFLAGS"
24419
24420           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linking Python extensions" >&5
24421 $as_echo_n "checking for linking Python extensions... " >&6; }
24422 if ${ac_cv_python_link+:} false; then :
24423   $as_echo_n "(cached) " >&6
24424 else
24425
24426             ac_cv_python_link="`$PYTHON ${abs_srcdir}/build/get-py-info.py --link`"
24427
24428 fi
24429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_python_link" >&5
24430 $as_echo "$ac_cv_python_link" >&6; }
24431           SWIG_PY_LINK="$ac_cv_python_link"
24432
24433           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linking Python libraries" >&5
24434 $as_echo_n "checking for linking Python libraries... " >&6; }
24435 if ${ac_cv_python_libs+:} false; then :
24436   $as_echo_n "(cached) " >&6
24437 else
24438
24439             ac_cv_python_libs="`$PYTHON ${abs_srcdir}/build/get-py-info.py --libs`"
24440
24441 fi
24442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_python_libs" >&5
24443 $as_echo "$ac_cv_python_libs" >&6; }
24444           SWIG_PY_LIBS="`
24445   input_flags="$ac_cv_python_libs"
24446   output_flags=""
24447   filtered_dirs="/lib /lib64 /usr/lib /usr/lib64"
24448   for flag in $input_flags; do
24449     filter="no"
24450     for dir in $filtered_dirs; do
24451       if test "$flag" = "-L$dir" || test "$flag" = "-L$dir/"; then
24452         filter="yes"
24453         break
24454       fi
24455     done
24456     if test "$filter" = "no"; then
24457       output_flags="$output_flags $flag"
24458     fi
24459   done
24460   if test -n "$output_flags"; then
24461     printf "%s" "${output_flags# }"
24462   fi
24463 `"
24464
24465           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python >= 3" >&5
24466 $as_echo_n "checking for Python >= 3... " >&6; }
24467 if ${ac_cv_python_is_py3+:} false; then :
24468   $as_echo_n "(cached) " >&6
24469 else
24470
24471             ac_cv_python_is_py3="no"
24472             $PYTHON -c 'import sys; sys.exit(0x3000000 > sys.hexversion)' && \
24473                ac_cv_python_is_py3="yes"
24474
24475 fi
24476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_python_is_py3" >&5
24477 $as_echo "$ac_cv_python_is_py3" >&6; }
24478
24479           if test "$ac_cv_python_is_py3" = "yes"; then
24480             if test "$SWIG_VERSION" -ge "300010"; then
24481                             SWIG_PY_ERRMSG=""
24482             else
24483               SWIG_PY_ERRMSG="SWIG version is not suitable"
24484               { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Subversion Python bindings for Python 3 require SWIG 3.0.10 or newer" >&5
24485 $as_echo "$as_me: WARNING: Subversion Python bindings for Python 3 require SWIG 3.0.10 or newer" >&2;}
24486             fi
24487             if test "$SWIG_VERSION" -lt "400000"; then
24488               SWIG_PY_OPTS="-python -py3 -nofastunpack -modern"
24489             else
24490               SWIG_PY_OPTS="-python -py3 -nofastunpack"
24491             fi
24492           else
24493             if test "$SWIG_VERSION" -lt "400000"; then
24494               SWIG_PY_OPTS="-python -classic"
24495                             SWIG_PY_ERRMSG=""
24496             else
24497               SWIG_PY_OPTS="-python -nofastunpack"
24498               SWIG_PY_ERRMSG="SWIG version is not suitable"
24499               { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Subversion Python bindings for Python 2 require 1.3.24 <= SWIG < 4.0.0" >&5
24500 $as_echo "$as_me: WARNING: Subversion Python bindings for Python 2 require 1.3.24 <= SWIG < 4.0.0" >&2;}
24501             fi
24502           fi
24503         fi
24504
24505       fi
24506     fi
24507
24508   fi
24509
24510   SWIG_PL_ERRMSG="check config.log for details"
24511   if test "$PERL" != "none"; then
24512     { $as_echo "$as_me:${as_lineno-$LINENO}: checking perl version" >&5
24513 $as_echo_n "checking perl version... " >&6; }
24514             PERL_VERSION="`$PERL -e 'q([); print $] * 1000000,$/;'`"
24515     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL_VERSION" >&5
24516 $as_echo "$PERL_VERSION" >&6; }
24517     if test "$PERL_VERSION" -ge "5008000"; then
24518       SWIG_PL_INCLUDES="\$(SWIG_INCLUDES) `$PERL -MExtUtils::Embed -e ccopts`"
24519       SWIG_PL_LINK="`$PERL -MExtUtils::Embed -e ldopts`"
24520       SWIG_PL_LINK="`
24521   input_flags="$SWIG_PL_LINK"
24522   output_flags=""
24523   filtered_dirs="/lib /lib64 /usr/lib /usr/lib64"
24524   for flag in $input_flags; do
24525     filter="no"
24526     for dir in $filtered_dirs; do
24527       if test "$flag" = "-L$dir" || test "$flag" = "-L$dir/"; then
24528         filter="yes"
24529         break
24530       fi
24531     done
24532     if test "$filter" = "no"; then
24533       output_flags="$output_flags $flag"
24534     fi
24535   done
24536   if test -n "$output_flags"; then
24537     printf "%s" "${output_flags# }"
24538   fi
24539 `"
24540
24541             SWIG_PL_ERRMSG=""
24542     else
24543       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: perl bindings require perl 5.8.0 or newer." >&5
24544 $as_echo "$as_me: WARNING: perl bindings require perl 5.8.0 or newer." >&2;}
24545     fi
24546   fi
24547
24548   SWIG_RB_COMPILE="none"
24549   SWIG_RB_LINK="none"
24550   SWIG_RB_ERRMSG="check config.log for details"
24551   if test "$RUBY" != "none"; then
24552     if test x"$SWIG_VERSION" = x"3""00""008"; then
24553       # Use a local variable to escape the '#' sign.
24554       ruby_swig_issue_602='https://subversion.apache.org/docs/release-notes/1.11#ruby-swig-issue-602'
24555       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ruby bindings are known not to support swig 3.0.8; see $ruby_swig_issue_602" >&5
24556 $as_echo "$as_me: WARNING: Ruby bindings are known not to support swig 3.0.8; see $ruby_swig_issue_602" >&2;}
24557     fi
24558     rbconfig="$RUBY -rrbconfig -e "
24559
24560     for var_name in arch archdir CC LDSHARED DLEXT LIBS LIBRUBYARG \
24561                     rubyhdrdir rubyarchhdrdir sitedir sitelibdir sitearchdir libdir
24562     do
24563       rbconfig_tmp=`$rbconfig "print RbConfig::CONFIG['$var_name']"`
24564       eval "rbconfig_$var_name=\"$rbconfig_tmp\""
24565     done
24566
24567     { $as_echo "$as_me:${as_lineno-$LINENO}: Configuring Ruby SWIG binding" >&5
24568 $as_echo "$as_me: Configuring Ruby SWIG binding" >&6;}
24569
24570     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ruby include path" >&5
24571 $as_echo_n "checking for Ruby include path... " >&6; }
24572 if ${svn_cv_ruby_includes+:} false; then :
24573   $as_echo_n "(cached) " >&6
24574 else
24575
24576     if test -d "$rbconfig_rubyhdrdir"; then
24577             svn_cv_ruby_includes="-I. -I$rbconfig_rubyhdrdir"
24578       if test -d "$rbconfig_rubyarchhdrdir"; then
24579                 svn_cv_ruby_includes="$svn_cv_ruby_includes -I$rbconfig_rubyarchhdrdir"
24580       else
24581         svn_cv_ruby_includes="$svn_cv_ruby_includes -I$rbconfig_rubyhdrdir/$rbconfig_arch"
24582       fi
24583     else
24584             svn_cv_ruby_includes="-I. -I$rbconfig_archdir"
24585     fi
24586
24587 fi
24588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $svn_cv_ruby_includes" >&5
24589 $as_echo "$svn_cv_ruby_includes" >&6; }
24590     SWIG_RB_INCLUDES="\$(SWIG_INCLUDES) $svn_cv_ruby_includes"
24591
24592     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compile Ruby extensions" >&5
24593 $as_echo_n "checking how to compile Ruby extensions... " >&6; }
24594 if ${svn_cv_ruby_compile+:} false; then :
24595   $as_echo_n "(cached) " >&6
24596 else
24597
24598       svn_cv_ruby_compile="$rbconfig_CC $CFLAGS"
24599
24600 fi
24601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $svn_cv_ruby_compile" >&5
24602 $as_echo "$svn_cv_ruby_compile" >&6; }
24603     SWIG_RB_COMPILE="$svn_cv_ruby_compile"
24604
24605   SWIG_RB_COMPILE=`echo "$SWIG_RB_COMPILE" | $SED -e 's/-ansi//'`
24606
24607
24608   SWIG_RB_COMPILE=`echo "$SWIG_RB_COMPILE" | $SED -e 's/-std=c89//'`
24609
24610
24611   SWIG_RB_COMPILE=`echo "$SWIG_RB_COMPILE" | $SED -e 's/-std=c90//'`
24612
24613         SWIG_RB_COMPILE="$SWIG_RB_COMPILE -Wno-int-to-pointer-cast"
24614
24615     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link Ruby extensions" >&5
24616 $as_echo_n "checking how to link Ruby extensions... " >&6; }
24617 if ${svn_cv_ruby_link+:} false; then :
24618   $as_echo_n "(cached) " >&6
24619 else
24620
24621       svn_cv_ruby_link="`$RUBY -e 'ARGV.shift; print ARGV.join(%q( ))' \
24622                            $rbconfig_LDSHARED`"
24623       svn_cv_ruby_link="$rbconfig_CC $svn_cv_ruby_link"
24624       svn_cv_ruby_link="$svn_cv_ruby_link -shrext .$rbconfig_DLEXT"
24625
24626 fi
24627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $svn_cv_ruby_link" >&5
24628 $as_echo "$svn_cv_ruby_link" >&6; }
24629     SWIG_RB_LINK="$svn_cv_ruby_link"
24630
24631     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link Ruby libraries" >&5
24632 $as_echo_n "checking how to link Ruby libraries... " >&6; }
24633 if ${ac_cv_ruby_libs+:} false; then :
24634   $as_echo_n "(cached) " >&6
24635 else
24636
24637       ac_cv_ruby_libs="$rbconfig_LIBRUBYARG $rbconfig_LIBS"
24638
24639 fi
24640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_ruby_libs" >&5
24641 $as_echo "$ac_cv_ruby_libs" >&6; }
24642     SWIG_RB_LIBS="`
24643   input_flags="$ac_cv_ruby_libs"
24644   output_flags=""
24645   filtered_dirs="/lib /lib64 /usr/lib /usr/lib64"
24646   for flag in $input_flags; do
24647     filter="no"
24648     for dir in $filtered_dirs; do
24649       if test "$flag" = "-L$dir" || test "$flag" = "-L$dir/"; then
24650         filter="yes"
24651         break
24652       fi
24653     done
24654     if test "$filter" = "no"; then
24655       output_flags="$output_flags $flag"
24656     fi
24657   done
24658   if test -n "$output_flags"; then
24659     printf "%s" "${output_flags# }"
24660   fi
24661 `"
24662
24663     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rb_errinfo" >&5
24664 $as_echo_n "checking for rb_errinfo... " >&6; }
24665     old_CFLAGS="$CFLAGS"
24666     old_LIBS="$LIBS"
24667     CFLAGS="$CFLAGS $svn_cv_ruby_includes"
24668
24669   CFLAGS=`echo "$CFLAGS" | $SED -e 's/-ansi//'`
24670
24671
24672   CFLAGS=`echo "$CFLAGS" | $SED -e 's/-std=c89//'`
24673
24674
24675   CFLAGS=`echo "$CFLAGS" | $SED -e 's/-std=c90//'`
24676
24677     LIBS="$SWIG_RB_LIBS"
24678     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24679 /* end confdefs.h.  */
24680
24681 #include <ruby.h>
24682 int main()
24683 {rb_errinfo();}
24684 _ACEOF
24685 if ac_fn_c_try_link "$LINENO"; then :
24686   have_rb_errinfo="yes"
24687 else
24688   have_rb_errinfo="no"
24689 fi
24690 rm -f core conftest.err conftest.$ac_objext \
24691     conftest$ac_exeext conftest.$ac_ext
24692     if test "$have_rb_errinfo" = "yes"; then
24693       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24694 $as_echo "yes" >&6; }
24695
24696 $as_echo "#define HAVE_RB_ERRINFO 1" >>confdefs.h
24697
24698     else
24699       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24700 $as_echo "no" >&6; }
24701     fi
24702     CFLAGS="$old_CFLAGS"
24703     LIBS="$old_LIBS"
24704
24705     if ${svn_cv_ruby_sitedir+:} false; then :
24706   $as_echo_n "(cached) " >&6
24707 else
24708
24709       svn_cv_ruby_sitedir="$rbconfig_sitedir"
24710
24711 fi
24712
24713
24714 # Check whether --with-ruby-sitedir was given.
24715 if test "${with_ruby_sitedir+set}" = set; then :
24716   withval=$with_ruby_sitedir; svn_ruby_installdir="$withval"
24717 else
24718   svn_ruby_installdir="$svn_cv_ruby_sitedir"
24719 fi
24720
24721
24722     { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to install Ruby scripts" >&5
24723 $as_echo_n "checking where to install Ruby scripts... " >&6; }
24724     if ${svn_cv_ruby_sitedir_libsuffix+:} false; then :
24725   $as_echo_n "(cached) " >&6
24726 else
24727
24728       svn_cv_ruby_sitedir_libsuffix="`echo "$rbconfig_sitelibdir" | \
24729                                         $SED -e "s,^$rbconfig_sitedir,,"`"
24730
24731 fi
24732
24733     SWIG_RB_SITE_LIB_DIR="${svn_ruby_installdir}${svn_cv_ruby_sitedir_libsuffix}"
24734     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG_RB_SITE_LIB_DIR" >&5
24735 $as_echo "$SWIG_RB_SITE_LIB_DIR" >&6; }
24736
24737     { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to install Ruby extensions" >&5
24738 $as_echo_n "checking where to install Ruby extensions... " >&6; }
24739     if ${svn_cv_ruby_sitedir_archsuffix+:} false; then :
24740   $as_echo_n "(cached) " >&6
24741 else
24742
24743       svn_cv_ruby_sitedir_archsuffix="`echo "$rbconfig_sitearchdir" | \
24744                                         $SED -e "s,^$rbconfig_sitedir,,"`"
24745
24746 fi
24747
24748     SWIG_RB_SITE_ARCH_DIR="${svn_ruby_installdir}${svn_cv_ruby_sitedir_archsuffix}"
24749     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG_RB_SITE_ARCH_DIR" >&5
24750 $as_echo "$SWIG_RB_SITE_ARCH_DIR" >&6; }
24751
24752     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to use output level for Ruby bindings tests" >&5
24753 $as_echo_n "checking how to use output level for Ruby bindings tests... " >&6; }
24754     if ${svn_cv_ruby_test_verbose+:} false; then :
24755   $as_echo_n "(cached) " >&6
24756 else
24757
24758       svn_cv_ruby_test_verbose="normal"
24759
24760 fi
24761
24762
24763 # Check whether --with-ruby-test-verbose was given.
24764 if test "${with_ruby_test_verbose+set}" = set; then :
24765   withval=$with_ruby_test_verbose; svn_ruby_test_verbose="$withval"
24766 else
24767   svn_ruby_test_verbose="$svn_cv_ruby_test_verbose"
24768 fi
24769
24770       SWIG_RB_TEST_VERBOSE="$svn_ruby_test_verbose"
24771       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG_RB_TEST_VERBOSE" >&5
24772 $as_echo "$SWIG_RB_TEST_VERBOSE" >&6; }
24773
24774         SWIG_RB_ERRMSG=""
24775   fi
24776
24777
24778
24779
24780
24781
24782
24783
24784
24785
24786
24787
24788
24789
24790
24791
24792
24793
24794
24795       ;;
24796       "yes")
24797
24798   where=required
24799
24800   if test $where = no; then
24801     SWIG=none
24802   elif test $where = required || test $where = check; then
24803     # Extract the first word of "swig", so it can be a program name with args.
24804 set dummy swig; ac_word=$2
24805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24806 $as_echo_n "checking for $ac_word... " >&6; }
24807 if ${ac_cv_path_SWIG+:} false; then :
24808   $as_echo_n "(cached) " >&6
24809 else
24810   case $SWIG in
24811   [\\/]* | ?:[\\/]*)
24812   ac_cv_path_SWIG="$SWIG" # Let the user override the test with a path.
24813   ;;
24814   *)
24815   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24816 for as_dir in $PATH
24817 do
24818   IFS=$as_save_IFS
24819   test -z "$as_dir" && as_dir=.
24820     for ac_exec_ext in '' $ac_executable_extensions; do
24821   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24822     ac_cv_path_SWIG="$as_dir/$ac_word$ac_exec_ext"
24823     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24824     break 2
24825   fi
24826 done
24827   done
24828 IFS=$as_save_IFS
24829
24830   test -z "$ac_cv_path_SWIG" && ac_cv_path_SWIG="none"
24831   ;;
24832 esac
24833 fi
24834 SWIG=$ac_cv_path_SWIG
24835 if test -n "$SWIG"; then
24836   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG" >&5
24837 $as_echo "$SWIG" >&6; }
24838 else
24839   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24840 $as_echo "no" >&6; }
24841 fi
24842
24843
24844     if test "$SWIG" = "none" && test $where = required; then
24845       as_fn_error $? "SWIG required, but not found" "$LINENO" 5
24846     fi
24847   else
24848     if test -f "$where"; then
24849       SWIG="$where"
24850     else
24851       SWIG="$where/bin/swig"
24852     fi
24853     if test ! -f "$SWIG" || test ! -x "$SWIG"; then
24854       as_fn_error $? "Could not find swig binary at $SWIG" "$LINENO" 5
24855     fi
24856   fi
24857
24858   if test "$SWIG" != "none"; then
24859     { $as_echo "$as_me:${as_lineno-$LINENO}: checking swig version" >&5
24860 $as_echo_n "checking swig version... " >&6; }
24861     SWIG_VERSION_RAW="`$SWIG -version 2>&1 | \
24862                        $SED -ne 's/^.*Version \(.*\)$/\1/p'`"
24863     # We want the version as an integer so we can test against
24864     # which version we're using.  SWIG doesn't provide this
24865     # to us so we have to come up with it on our own.
24866     # The major is passed straight through,
24867     # the minor is zero padded to two places,
24868     # and the patch level is zero padded to three places.
24869     # e.g. 1.3.24 becomes 103024
24870     SWIG_VERSION="`echo \"$SWIG_VERSION_RAW\" | \
24871                   $SED -e 's/[^0-9\.].*$//' \
24872                       -e 's/\.\([0-9]\)$/.0\1/' \
24873                       -e 's/\.\([0-9][0-9]\)$/.0\1/' \
24874                       -e 's/\.\([0-9]\)\./0\1/; s/\.//g;'`"
24875     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG_VERSION_RAW" >&5
24876 $as_echo "$SWIG_VERSION_RAW" >&6; }
24877     # If you change the required swig version number, don't forget to update:
24878     #   subversion/bindings/swig/INSTALL
24879     if test -n "$SWIG_VERSION" && test "$SWIG_VERSION" -ge "103024"; then
24880       SWIG_SUITABLE=yes
24881     else
24882       SWIG_SUITABLE=no
24883       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Detected SWIG version $SWIG_VERSION_RAW" >&5
24884 $as_echo "$as_me: WARNING: Detected SWIG version $SWIG_VERSION_RAW" >&2;}
24885       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Subversion requires SWIG >= 1.3.24" >&5
24886 $as_echo "$as_me: WARNING: Subversion requires SWIG >= 1.3.24" >&2;}
24887     fi
24888   fi
24889
24890   SWIG_PY_COMPILE="none"
24891   SWIG_PY_LINK="none"
24892   SWIG_PY_OPTS="none"
24893   SWIG_PY_ERRMSG="check config.log for details"
24894   if test "$PYTHON" != "none"; then
24895     { $as_echo "$as_me:${as_lineno-$LINENO}: Configuring python swig binding" >&5
24896 $as_echo "$as_me: Configuring python swig binding" >&6;}
24897
24898     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python includes" >&5
24899 $as_echo_n "checking for Python includes... " >&6; }
24900 if ${ac_cv_python_includes+:} false; then :
24901   $as_echo_n "(cached) " >&6
24902 else
24903
24904       ac_cv_python_includes="`$PYTHON ${abs_srcdir}/build/get-py-info.py --includes`"
24905
24906 fi
24907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_python_includes" >&5
24908 $as_echo "$ac_cv_python_includes" >&6; }
24909     SWIG_PY_INCLUDES="\$(SWIG_INCLUDES) $ac_cv_python_includes"
24910
24911     if test "$ac_cv_python_includes" = "none"; then
24912       SWIG_PY_ERRMSG="no distutils found"
24913       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: python bindings cannot be built without distutils module" >&5
24914 $as_echo "$as_me: WARNING: python bindings cannot be built without distutils module" >&2;}
24915     else
24916
24917       python_header_found="no"
24918
24919       save_cppflags="$CPPFLAGS"
24920       CPPFLAGS="$CPPFLAGS $ac_cv_python_includes"
24921       ac_fn_c_check_header_mongrel "$LINENO" "Python.h" "ac_cv_header_Python_h" "$ac_includes_default"
24922 if test "x$ac_cv_header_Python_h" = xyes; then :
24923
24924         python_header_found="yes"
24925
24926 fi
24927
24928
24929       CPPFLAGS="$save_cppflags"
24930
24931       if test "$python_header_found" = "no"; then
24932         SWIG_PY_ERRMSG="no Python.h found"
24933         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Python.h not found; disabling python swig bindings" >&5
24934 $as_echo "$as_me: WARNING: Python.h not found; disabling python swig bindings" >&2;}
24935       else
24936
24937   py3c_found=no
24938   py3c_skip=no
24939
24940
24941 # Check whether --with-py3c was given.
24942 if test "${with_py3c+set}" = set; then :
24943   withval=$with_py3c;
24944     if test "$withval" = "yes"; then
24945       py3c_skip=no
24946     elif test "$withval" = "no"; then
24947       py3c_skip=yes
24948     else
24949       py3c_skip=no
24950       py3c_prefix="$withval"
24951     fi
24952
24953 fi
24954
24955
24956   if test "$py3c_skip" = "yes"; then
24957     { $as_echo "$as_me:${as_lineno-$LINENO}: Skipping configure of py3c" >&5
24958 $as_echo "$as_me: Skipping configure of py3c" >&6;}
24959   else
24960     if test -n "$py3c_prefix"; then
24961       { $as_echo "$as_me:${as_lineno-$LINENO}: py3c library configuration via prefix $py3c_prefix" >&5
24962 $as_echo "$as_me: py3c library configuration via prefix $py3c_prefix" >&6;}
24963
24964             if test "$ac_cv_python_includes" = "none"; then
24965         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: py3c cannot be used without distutils module" >&5
24966 $as_echo "$as_me: WARNING: py3c cannot be used without distutils module" >&2;}
24967       fi
24968
24969       save_cppflags="$CPPFLAGS"
24970       CPPFLAGS="$CPPFLAGS $ac_cv_python_includes -I$py3c_prefix/include"
24971       for ac_header in py3c.h
24972 do :
24973   ac_fn_c_check_header_mongrel "$LINENO" "py3c.h" "ac_cv_header_py3c_h" "$ac_includes_default"
24974 if test "x$ac_cv_header_py3c_h" = xyes; then :
24975   cat >>confdefs.h <<_ACEOF
24976 #define HAVE_PY3C_H 1
24977 _ACEOF
24978
24979           py3c_found="yes"
24980           SVN_PY3C_INCLUDES="-I$py3c_prefix/include"
24981
24982 fi
24983
24984 done
24985
24986       CPPFLAGS="$save_cppflags"
24987     else
24988
24989   { $as_echo "$as_me:${as_lineno-$LINENO}: py3c library configuration via pkg-config" >&5
24990 $as_echo "$as_me: py3c library configuration via pkg-config" >&6;}
24991   if test -n "$PKG_CONFIG"; then
24992     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for py3c library" >&5
24993 $as_echo_n "checking for py3c library... " >&6; }
24994     if $PKG_CONFIG py3c --exists; then
24995       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24996 $as_echo "yes" >&6; }
24997       py3c_found=yes
24998       SVN_PY3C_INCLUDES=`$PKG_CONFIG py3c --cflags`
24999     else
25000       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25001 $as_echo "no" >&6; }
25002     fi
25003   fi
25004
25005
25006       if test "$py3c_found" = "no"; then
25007         { $as_echo "$as_me:${as_lineno-$LINENO}: py3c library configuration without pkg-config" >&5
25008 $as_echo "$as_me: py3c library configuration without pkg-config" >&6;}
25009
25010                 if test "$ac_cv_python_includes" = "none"; then
25011           { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: py3c cannot be used without distutils module" >&5
25012 $as_echo "$as_me: WARNING: py3c cannot be used without distutils module" >&2;}
25013         fi
25014
25015         save_cppflags="$CPPFLAGS"
25016         CPPFLAGS="$CPPFLAGS $ac_cv_python_includes"
25017         ac_fn_c_check_header_mongrel "$LINENO" "py3c.h" "ac_cv_header_py3c_h" "$ac_includes_default"
25018 if test "x$ac_cv_header_py3c_h" = xyes; then :
25019
25020           py3c_found="yes"
25021
25022 fi
25023
25024
25025         CPPFLAGS="$save_cppflags"
25026       fi
25027     fi
25028   fi
25029
25030
25031
25032
25033         if test "$py3c_found" = "no"; then
25034           SWIG_PY_ERRMSG="py3c library not found"
25035           { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: py3c library not found; disabling python swig bindings" >&5
25036 $as_echo "$as_me: WARNING: py3c library not found; disabling python swig bindings" >&2;}
25037         else
25038           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiling Python extensions" >&5
25039 $as_echo_n "checking for compiling Python extensions... " >&6; }
25040 if ${ac_cv_python_compile+:} false; then :
25041   $as_echo_n "(cached) " >&6
25042 else
25043
25044             ac_cv_python_compile="`$PYTHON ${abs_srcdir}/build/get-py-info.py --compile`"
25045
25046 fi
25047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_python_compile" >&5
25048 $as_echo "$ac_cv_python_compile" >&6; }
25049           SWIG_PY_COMPILE="$ac_cv_python_compile $CFLAGS"
25050
25051           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linking Python extensions" >&5
25052 $as_echo_n "checking for linking Python extensions... " >&6; }
25053 if ${ac_cv_python_link+:} false; then :
25054   $as_echo_n "(cached) " >&6
25055 else
25056
25057             ac_cv_python_link="`$PYTHON ${abs_srcdir}/build/get-py-info.py --link`"
25058
25059 fi
25060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_python_link" >&5
25061 $as_echo "$ac_cv_python_link" >&6; }
25062           SWIG_PY_LINK="$ac_cv_python_link"
25063
25064           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linking Python libraries" >&5
25065 $as_echo_n "checking for linking Python libraries... " >&6; }
25066 if ${ac_cv_python_libs+:} false; then :
25067   $as_echo_n "(cached) " >&6
25068 else
25069
25070             ac_cv_python_libs="`$PYTHON ${abs_srcdir}/build/get-py-info.py --libs`"
25071
25072 fi
25073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_python_libs" >&5
25074 $as_echo "$ac_cv_python_libs" >&6; }
25075           SWIG_PY_LIBS="`
25076   input_flags="$ac_cv_python_libs"
25077   output_flags=""
25078   filtered_dirs="/lib /lib64 /usr/lib /usr/lib64"
25079   for flag in $input_flags; do
25080     filter="no"
25081     for dir in $filtered_dirs; do
25082       if test "$flag" = "-L$dir" || test "$flag" = "-L$dir/"; then
25083         filter="yes"
25084         break
25085       fi
25086     done
25087     if test "$filter" = "no"; then
25088       output_flags="$output_flags $flag"
25089     fi
25090   done
25091   if test -n "$output_flags"; then
25092     printf "%s" "${output_flags# }"
25093   fi
25094 `"
25095
25096           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python >= 3" >&5
25097 $as_echo_n "checking for Python >= 3... " >&6; }
25098 if ${ac_cv_python_is_py3+:} false; then :
25099   $as_echo_n "(cached) " >&6
25100 else
25101
25102             ac_cv_python_is_py3="no"
25103             $PYTHON -c 'import sys; sys.exit(0x3000000 > sys.hexversion)' && \
25104                ac_cv_python_is_py3="yes"
25105
25106 fi
25107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_python_is_py3" >&5
25108 $as_echo "$ac_cv_python_is_py3" >&6; }
25109
25110           if test "$ac_cv_python_is_py3" = "yes"; then
25111             if test "$SWIG_VERSION" -ge "300010"; then
25112                             SWIG_PY_ERRMSG=""
25113             else
25114               SWIG_PY_ERRMSG="SWIG version is not suitable"
25115               { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Subversion Python bindings for Python 3 require SWIG 3.0.10 or newer" >&5
25116 $as_echo "$as_me: WARNING: Subversion Python bindings for Python 3 require SWIG 3.0.10 or newer" >&2;}
25117             fi
25118             if test "$SWIG_VERSION" -lt "400000"; then
25119               SWIG_PY_OPTS="-python -py3 -nofastunpack -modern"
25120             else
25121               SWIG_PY_OPTS="-python -py3 -nofastunpack"
25122             fi
25123           else
25124             if test "$SWIG_VERSION" -lt "400000"; then
25125               SWIG_PY_OPTS="-python -classic"
25126                             SWIG_PY_ERRMSG=""
25127             else
25128               SWIG_PY_OPTS="-python -nofastunpack"
25129               SWIG_PY_ERRMSG="SWIG version is not suitable"
25130               { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Subversion Python bindings for Python 2 require 1.3.24 <= SWIG < 4.0.0" >&5
25131 $as_echo "$as_me: WARNING: Subversion Python bindings for Python 2 require 1.3.24 <= SWIG < 4.0.0" >&2;}
25132             fi
25133           fi
25134         fi
25135
25136       fi
25137     fi
25138
25139   fi
25140
25141   SWIG_PL_ERRMSG="check config.log for details"
25142   if test "$PERL" != "none"; then
25143     { $as_echo "$as_me:${as_lineno-$LINENO}: checking perl version" >&5
25144 $as_echo_n "checking perl version... " >&6; }
25145             PERL_VERSION="`$PERL -e 'q([); print $] * 1000000,$/;'`"
25146     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL_VERSION" >&5
25147 $as_echo "$PERL_VERSION" >&6; }
25148     if test "$PERL_VERSION" -ge "5008000"; then
25149       SWIG_PL_INCLUDES="\$(SWIG_INCLUDES) `$PERL -MExtUtils::Embed -e ccopts`"
25150       SWIG_PL_LINK="`$PERL -MExtUtils::Embed -e ldopts`"
25151       SWIG_PL_LINK="`
25152   input_flags="$SWIG_PL_LINK"
25153   output_flags=""
25154   filtered_dirs="/lib /lib64 /usr/lib /usr/lib64"
25155   for flag in $input_flags; do
25156     filter="no"
25157     for dir in $filtered_dirs; do
25158       if test "$flag" = "-L$dir" || test "$flag" = "-L$dir/"; then
25159         filter="yes"
25160         break
25161       fi
25162     done
25163     if test "$filter" = "no"; then
25164       output_flags="$output_flags $flag"
25165     fi
25166   done
25167   if test -n "$output_flags"; then
25168     printf "%s" "${output_flags# }"
25169   fi
25170 `"
25171
25172             SWIG_PL_ERRMSG=""
25173     else
25174       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: perl bindings require perl 5.8.0 or newer." >&5
25175 $as_echo "$as_me: WARNING: perl bindings require perl 5.8.0 or newer." >&2;}
25176     fi
25177   fi
25178
25179   SWIG_RB_COMPILE="none"
25180   SWIG_RB_LINK="none"
25181   SWIG_RB_ERRMSG="check config.log for details"
25182   if test "$RUBY" != "none"; then
25183     if test x"$SWIG_VERSION" = x"3""00""008"; then
25184       # Use a local variable to escape the '#' sign.
25185       ruby_swig_issue_602='https://subversion.apache.org/docs/release-notes/1.11#ruby-swig-issue-602'
25186       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ruby bindings are known not to support swig 3.0.8; see $ruby_swig_issue_602" >&5
25187 $as_echo "$as_me: WARNING: Ruby bindings are known not to support swig 3.0.8; see $ruby_swig_issue_602" >&2;}
25188     fi
25189     rbconfig="$RUBY -rrbconfig -e "
25190
25191     for var_name in arch archdir CC LDSHARED DLEXT LIBS LIBRUBYARG \
25192                     rubyhdrdir rubyarchhdrdir sitedir sitelibdir sitearchdir libdir
25193     do
25194       rbconfig_tmp=`$rbconfig "print RbConfig::CONFIG['$var_name']"`
25195       eval "rbconfig_$var_name=\"$rbconfig_tmp\""
25196     done
25197
25198     { $as_echo "$as_me:${as_lineno-$LINENO}: Configuring Ruby SWIG binding" >&5
25199 $as_echo "$as_me: Configuring Ruby SWIG binding" >&6;}
25200
25201     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ruby include path" >&5
25202 $as_echo_n "checking for Ruby include path... " >&6; }
25203 if ${svn_cv_ruby_includes+:} false; then :
25204   $as_echo_n "(cached) " >&6
25205 else
25206
25207     if test -d "$rbconfig_rubyhdrdir"; then
25208             svn_cv_ruby_includes="-I. -I$rbconfig_rubyhdrdir"
25209       if test -d "$rbconfig_rubyarchhdrdir"; then
25210                 svn_cv_ruby_includes="$svn_cv_ruby_includes -I$rbconfig_rubyarchhdrdir"
25211       else
25212         svn_cv_ruby_includes="$svn_cv_ruby_includes -I$rbconfig_rubyhdrdir/$rbconfig_arch"
25213       fi
25214     else
25215             svn_cv_ruby_includes="-I. -I$rbconfig_archdir"
25216     fi
25217
25218 fi
25219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $svn_cv_ruby_includes" >&5
25220 $as_echo "$svn_cv_ruby_includes" >&6; }
25221     SWIG_RB_INCLUDES="\$(SWIG_INCLUDES) $svn_cv_ruby_includes"
25222
25223     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compile Ruby extensions" >&5
25224 $as_echo_n "checking how to compile Ruby extensions... " >&6; }
25225 if ${svn_cv_ruby_compile+:} false; then :
25226   $as_echo_n "(cached) " >&6
25227 else
25228
25229       svn_cv_ruby_compile="$rbconfig_CC $CFLAGS"
25230
25231 fi
25232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $svn_cv_ruby_compile" >&5
25233 $as_echo "$svn_cv_ruby_compile" >&6; }
25234     SWIG_RB_COMPILE="$svn_cv_ruby_compile"
25235
25236   SWIG_RB_COMPILE=`echo "$SWIG_RB_COMPILE" | $SED -e 's/-ansi//'`
25237
25238
25239   SWIG_RB_COMPILE=`echo "$SWIG_RB_COMPILE" | $SED -e 's/-std=c89//'`
25240
25241
25242   SWIG_RB_COMPILE=`echo "$SWIG_RB_COMPILE" | $SED -e 's/-std=c90//'`
25243
25244         SWIG_RB_COMPILE="$SWIG_RB_COMPILE -Wno-int-to-pointer-cast"
25245
25246     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link Ruby extensions" >&5
25247 $as_echo_n "checking how to link Ruby extensions... " >&6; }
25248 if ${svn_cv_ruby_link+:} false; then :
25249   $as_echo_n "(cached) " >&6
25250 else
25251
25252       svn_cv_ruby_link="`$RUBY -e 'ARGV.shift; print ARGV.join(%q( ))' \
25253                            $rbconfig_LDSHARED`"
25254       svn_cv_ruby_link="$rbconfig_CC $svn_cv_ruby_link"
25255       svn_cv_ruby_link="$svn_cv_ruby_link -shrext .$rbconfig_DLEXT"
25256
25257 fi
25258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $svn_cv_ruby_link" >&5
25259 $as_echo "$svn_cv_ruby_link" >&6; }
25260     SWIG_RB_LINK="$svn_cv_ruby_link"
25261
25262     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link Ruby libraries" >&5
25263 $as_echo_n "checking how to link Ruby libraries... " >&6; }
25264 if ${ac_cv_ruby_libs+:} false; then :
25265   $as_echo_n "(cached) " >&6
25266 else
25267
25268       ac_cv_ruby_libs="$rbconfig_LIBRUBYARG $rbconfig_LIBS"
25269
25270 fi
25271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_ruby_libs" >&5
25272 $as_echo "$ac_cv_ruby_libs" >&6; }
25273     SWIG_RB_LIBS="`
25274   input_flags="$ac_cv_ruby_libs"
25275   output_flags=""
25276   filtered_dirs="/lib /lib64 /usr/lib /usr/lib64"
25277   for flag in $input_flags; do
25278     filter="no"
25279     for dir in $filtered_dirs; do
25280       if test "$flag" = "-L$dir" || test "$flag" = "-L$dir/"; then
25281         filter="yes"
25282         break
25283       fi
25284     done
25285     if test "$filter" = "no"; then
25286       output_flags="$output_flags $flag"
25287     fi
25288   done
25289   if test -n "$output_flags"; then
25290     printf "%s" "${output_flags# }"
25291   fi
25292 `"
25293
25294     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rb_errinfo" >&5
25295 $as_echo_n "checking for rb_errinfo... " >&6; }
25296     old_CFLAGS="$CFLAGS"
25297     old_LIBS="$LIBS"
25298     CFLAGS="$CFLAGS $svn_cv_ruby_includes"
25299
25300   CFLAGS=`echo "$CFLAGS" | $SED -e 's/-ansi//'`
25301
25302
25303   CFLAGS=`echo "$CFLAGS" | $SED -e 's/-std=c89//'`
25304
25305
25306   CFLAGS=`echo "$CFLAGS" | $SED -e 's/-std=c90//'`
25307
25308     LIBS="$SWIG_RB_LIBS"
25309     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25310 /* end confdefs.h.  */
25311
25312 #include <ruby.h>
25313 int main()
25314 {rb_errinfo();}
25315 _ACEOF
25316 if ac_fn_c_try_link "$LINENO"; then :
25317   have_rb_errinfo="yes"
25318 else
25319   have_rb_errinfo="no"
25320 fi
25321 rm -f core conftest.err conftest.$ac_objext \
25322     conftest$ac_exeext conftest.$ac_ext
25323     if test "$have_rb_errinfo" = "yes"; then
25324       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25325 $as_echo "yes" >&6; }
25326
25327 $as_echo "#define HAVE_RB_ERRINFO 1" >>confdefs.h
25328
25329     else
25330       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25331 $as_echo "no" >&6; }
25332     fi
25333     CFLAGS="$old_CFLAGS"
25334     LIBS="$old_LIBS"
25335
25336     if ${svn_cv_ruby_sitedir+:} false; then :
25337   $as_echo_n "(cached) " >&6
25338 else
25339
25340       svn_cv_ruby_sitedir="$rbconfig_sitedir"
25341
25342 fi
25343
25344
25345 # Check whether --with-ruby-sitedir was given.
25346 if test "${with_ruby_sitedir+set}" = set; then :
25347   withval=$with_ruby_sitedir; svn_ruby_installdir="$withval"
25348 else
25349   svn_ruby_installdir="$svn_cv_ruby_sitedir"
25350 fi
25351
25352
25353     { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to install Ruby scripts" >&5
25354 $as_echo_n "checking where to install Ruby scripts... " >&6; }
25355     if ${svn_cv_ruby_sitedir_libsuffix+:} false; then :
25356   $as_echo_n "(cached) " >&6
25357 else
25358
25359       svn_cv_ruby_sitedir_libsuffix="`echo "$rbconfig_sitelibdir" | \
25360                                         $SED -e "s,^$rbconfig_sitedir,,"`"
25361
25362 fi
25363
25364     SWIG_RB_SITE_LIB_DIR="${svn_ruby_installdir}${svn_cv_ruby_sitedir_libsuffix}"
25365     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG_RB_SITE_LIB_DIR" >&5
25366 $as_echo "$SWIG_RB_SITE_LIB_DIR" >&6; }
25367
25368     { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to install Ruby extensions" >&5
25369 $as_echo_n "checking where to install Ruby extensions... " >&6; }
25370     if ${svn_cv_ruby_sitedir_archsuffix+:} false; then :
25371   $as_echo_n "(cached) " >&6
25372 else
25373
25374       svn_cv_ruby_sitedir_archsuffix="`echo "$rbconfig_sitearchdir" | \
25375                                         $SED -e "s,^$rbconfig_sitedir,,"`"
25376
25377 fi
25378
25379     SWIG_RB_SITE_ARCH_DIR="${svn_ruby_installdir}${svn_cv_ruby_sitedir_archsuffix}"
25380     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG_RB_SITE_ARCH_DIR" >&5
25381 $as_echo "$SWIG_RB_SITE_ARCH_DIR" >&6; }
25382
25383     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to use output level for Ruby bindings tests" >&5
25384 $as_echo_n "checking how to use output level for Ruby bindings tests... " >&6; }
25385     if ${svn_cv_ruby_test_verbose+:} false; then :
25386   $as_echo_n "(cached) " >&6
25387 else
25388
25389       svn_cv_ruby_test_verbose="normal"
25390
25391 fi
25392
25393
25394 # Check whether --with-ruby-test-verbose was given.
25395 if test "${with_ruby_test_verbose+set}" = set; then :
25396   withval=$with_ruby_test_verbose; svn_ruby_test_verbose="$withval"
25397 else
25398   svn_ruby_test_verbose="$svn_cv_ruby_test_verbose"
25399 fi
25400
25401       SWIG_RB_TEST_VERBOSE="$svn_ruby_test_verbose"
25402       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG_RB_TEST_VERBOSE" >&5
25403 $as_echo "$SWIG_RB_TEST_VERBOSE" >&6; }
25404
25405         SWIG_RB_ERRMSG=""
25406   fi
25407
25408
25409
25410
25411
25412
25413
25414
25415
25416
25417
25418
25419
25420
25421
25422
25423
25424
25425
25426       ;;
25427       *)
25428
25429   where=$withval
25430
25431   if test $where = no; then
25432     SWIG=none
25433   elif test $where = required || test $where = check; then
25434     # Extract the first word of "swig", so it can be a program name with args.
25435 set dummy swig; ac_word=$2
25436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25437 $as_echo_n "checking for $ac_word... " >&6; }
25438 if ${ac_cv_path_SWIG+:} false; then :
25439   $as_echo_n "(cached) " >&6
25440 else
25441   case $SWIG in
25442   [\\/]* | ?:[\\/]*)
25443   ac_cv_path_SWIG="$SWIG" # Let the user override the test with a path.
25444   ;;
25445   *)
25446   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25447 for as_dir in $PATH
25448 do
25449   IFS=$as_save_IFS
25450   test -z "$as_dir" && as_dir=.
25451     for ac_exec_ext in '' $ac_executable_extensions; do
25452   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25453     ac_cv_path_SWIG="$as_dir/$ac_word$ac_exec_ext"
25454     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25455     break 2
25456   fi
25457 done
25458   done
25459 IFS=$as_save_IFS
25460
25461   test -z "$ac_cv_path_SWIG" && ac_cv_path_SWIG="none"
25462   ;;
25463 esac
25464 fi
25465 SWIG=$ac_cv_path_SWIG
25466 if test -n "$SWIG"; then
25467   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG" >&5
25468 $as_echo "$SWIG" >&6; }
25469 else
25470   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25471 $as_echo "no" >&6; }
25472 fi
25473
25474
25475     if test "$SWIG" = "none" && test $where = required; then
25476       as_fn_error $? "SWIG required, but not found" "$LINENO" 5
25477     fi
25478   else
25479     if test -f "$where"; then
25480       SWIG="$where"
25481     else
25482       SWIG="$where/bin/swig"
25483     fi
25484     if test ! -f "$SWIG" || test ! -x "$SWIG"; then
25485       as_fn_error $? "Could not find swig binary at $SWIG" "$LINENO" 5
25486     fi
25487   fi
25488
25489   if test "$SWIG" != "none"; then
25490     { $as_echo "$as_me:${as_lineno-$LINENO}: checking swig version" >&5
25491 $as_echo_n "checking swig version... " >&6; }
25492     SWIG_VERSION_RAW="`$SWIG -version 2>&1 | \
25493                        $SED -ne 's/^.*Version \(.*\)$/\1/p'`"
25494     # We want the version as an integer so we can test against
25495     # which version we're using.  SWIG doesn't provide this
25496     # to us so we have to come up with it on our own.
25497     # The major is passed straight through,
25498     # the minor is zero padded to two places,
25499     # and the patch level is zero padded to three places.
25500     # e.g. 1.3.24 becomes 103024
25501     SWIG_VERSION="`echo \"$SWIG_VERSION_RAW\" | \
25502                   $SED -e 's/[^0-9\.].*$//' \
25503                       -e 's/\.\([0-9]\)$/.0\1/' \
25504                       -e 's/\.\([0-9][0-9]\)$/.0\1/' \
25505                       -e 's/\.\([0-9]\)\./0\1/; s/\.//g;'`"
25506     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG_VERSION_RAW" >&5
25507 $as_echo "$SWIG_VERSION_RAW" >&6; }
25508     # If you change the required swig version number, don't forget to update:
25509     #   subversion/bindings/swig/INSTALL
25510     if test -n "$SWIG_VERSION" && test "$SWIG_VERSION" -ge "103024"; then
25511       SWIG_SUITABLE=yes
25512     else
25513       SWIG_SUITABLE=no
25514       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Detected SWIG version $SWIG_VERSION_RAW" >&5
25515 $as_echo "$as_me: WARNING: Detected SWIG version $SWIG_VERSION_RAW" >&2;}
25516       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Subversion requires SWIG >= 1.3.24" >&5
25517 $as_echo "$as_me: WARNING: Subversion requires SWIG >= 1.3.24" >&2;}
25518     fi
25519   fi
25520
25521   SWIG_PY_COMPILE="none"
25522   SWIG_PY_LINK="none"
25523   SWIG_PY_OPTS="none"
25524   SWIG_PY_ERRMSG="check config.log for details"
25525   if test "$PYTHON" != "none"; then
25526     { $as_echo "$as_me:${as_lineno-$LINENO}: Configuring python swig binding" >&5
25527 $as_echo "$as_me: Configuring python swig binding" >&6;}
25528
25529     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python includes" >&5
25530 $as_echo_n "checking for Python includes... " >&6; }
25531 if ${ac_cv_python_includes+:} false; then :
25532   $as_echo_n "(cached) " >&6
25533 else
25534
25535       ac_cv_python_includes="`$PYTHON ${abs_srcdir}/build/get-py-info.py --includes`"
25536
25537 fi
25538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_python_includes" >&5
25539 $as_echo "$ac_cv_python_includes" >&6; }
25540     SWIG_PY_INCLUDES="\$(SWIG_INCLUDES) $ac_cv_python_includes"
25541
25542     if test "$ac_cv_python_includes" = "none"; then
25543       SWIG_PY_ERRMSG="no distutils found"
25544       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: python bindings cannot be built without distutils module" >&5
25545 $as_echo "$as_me: WARNING: python bindings cannot be built without distutils module" >&2;}
25546     else
25547
25548       python_header_found="no"
25549
25550       save_cppflags="$CPPFLAGS"
25551       CPPFLAGS="$CPPFLAGS $ac_cv_python_includes"
25552       ac_fn_c_check_header_mongrel "$LINENO" "Python.h" "ac_cv_header_Python_h" "$ac_includes_default"
25553 if test "x$ac_cv_header_Python_h" = xyes; then :
25554
25555         python_header_found="yes"
25556
25557 fi
25558
25559
25560       CPPFLAGS="$save_cppflags"
25561
25562       if test "$python_header_found" = "no"; then
25563         SWIG_PY_ERRMSG="no Python.h found"
25564         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Python.h not found; disabling python swig bindings" >&5
25565 $as_echo "$as_me: WARNING: Python.h not found; disabling python swig bindings" >&2;}
25566       else
25567
25568   py3c_found=no
25569   py3c_skip=no
25570
25571
25572 # Check whether --with-py3c was given.
25573 if test "${with_py3c+set}" = set; then :
25574   withval=$with_py3c;
25575     if test "$withval" = "yes"; then
25576       py3c_skip=no
25577     elif test "$withval" = "no"; then
25578       py3c_skip=yes
25579     else
25580       py3c_skip=no
25581       py3c_prefix="$withval"
25582     fi
25583
25584 fi
25585
25586
25587   if test "$py3c_skip" = "yes"; then
25588     { $as_echo "$as_me:${as_lineno-$LINENO}: Skipping configure of py3c" >&5
25589 $as_echo "$as_me: Skipping configure of py3c" >&6;}
25590   else
25591     if test -n "$py3c_prefix"; then
25592       { $as_echo "$as_me:${as_lineno-$LINENO}: py3c library configuration via prefix $py3c_prefix" >&5
25593 $as_echo "$as_me: py3c library configuration via prefix $py3c_prefix" >&6;}
25594
25595             if test "$ac_cv_python_includes" = "none"; then
25596         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: py3c cannot be used without distutils module" >&5
25597 $as_echo "$as_me: WARNING: py3c cannot be used without distutils module" >&2;}
25598       fi
25599
25600       save_cppflags="$CPPFLAGS"
25601       CPPFLAGS="$CPPFLAGS $ac_cv_python_includes -I$py3c_prefix/include"
25602       for ac_header in py3c.h
25603 do :
25604   ac_fn_c_check_header_mongrel "$LINENO" "py3c.h" "ac_cv_header_py3c_h" "$ac_includes_default"
25605 if test "x$ac_cv_header_py3c_h" = xyes; then :
25606   cat >>confdefs.h <<_ACEOF
25607 #define HAVE_PY3C_H 1
25608 _ACEOF
25609
25610           py3c_found="yes"
25611           SVN_PY3C_INCLUDES="-I$py3c_prefix/include"
25612
25613 fi
25614
25615 done
25616
25617       CPPFLAGS="$save_cppflags"
25618     else
25619
25620   { $as_echo "$as_me:${as_lineno-$LINENO}: py3c library configuration via pkg-config" >&5
25621 $as_echo "$as_me: py3c library configuration via pkg-config" >&6;}
25622   if test -n "$PKG_CONFIG"; then
25623     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for py3c library" >&5
25624 $as_echo_n "checking for py3c library... " >&6; }
25625     if $PKG_CONFIG py3c --exists; then
25626       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25627 $as_echo "yes" >&6; }
25628       py3c_found=yes
25629       SVN_PY3C_INCLUDES=`$PKG_CONFIG py3c --cflags`
25630     else
25631       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25632 $as_echo "no" >&6; }
25633     fi
25634   fi
25635
25636
25637       if test "$py3c_found" = "no"; then
25638         { $as_echo "$as_me:${as_lineno-$LINENO}: py3c library configuration without pkg-config" >&5
25639 $as_echo "$as_me: py3c library configuration without pkg-config" >&6;}
25640
25641                 if test "$ac_cv_python_includes" = "none"; then
25642           { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: py3c cannot be used without distutils module" >&5
25643 $as_echo "$as_me: WARNING: py3c cannot be used without distutils module" >&2;}
25644         fi
25645
25646         save_cppflags="$CPPFLAGS"
25647         CPPFLAGS="$CPPFLAGS $ac_cv_python_includes"
25648         ac_fn_c_check_header_mongrel "$LINENO" "py3c.h" "ac_cv_header_py3c_h" "$ac_includes_default"
25649 if test "x$ac_cv_header_py3c_h" = xyes; then :
25650
25651           py3c_found="yes"
25652
25653 fi
25654
25655
25656         CPPFLAGS="$save_cppflags"
25657       fi
25658     fi
25659   fi
25660
25661
25662
25663
25664         if test "$py3c_found" = "no"; then
25665           SWIG_PY_ERRMSG="py3c library not found"
25666           { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: py3c library not found; disabling python swig bindings" >&5
25667 $as_echo "$as_me: WARNING: py3c library not found; disabling python swig bindings" >&2;}
25668         else
25669           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiling Python extensions" >&5
25670 $as_echo_n "checking for compiling Python extensions... " >&6; }
25671 if ${ac_cv_python_compile+:} false; then :
25672   $as_echo_n "(cached) " >&6
25673 else
25674
25675             ac_cv_python_compile="`$PYTHON ${abs_srcdir}/build/get-py-info.py --compile`"
25676
25677 fi
25678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_python_compile" >&5
25679 $as_echo "$ac_cv_python_compile" >&6; }
25680           SWIG_PY_COMPILE="$ac_cv_python_compile $CFLAGS"
25681
25682           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linking Python extensions" >&5
25683 $as_echo_n "checking for linking Python extensions... " >&6; }
25684 if ${ac_cv_python_link+:} false; then :
25685   $as_echo_n "(cached) " >&6
25686 else
25687
25688             ac_cv_python_link="`$PYTHON ${abs_srcdir}/build/get-py-info.py --link`"
25689
25690 fi
25691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_python_link" >&5
25692 $as_echo "$ac_cv_python_link" >&6; }
25693           SWIG_PY_LINK="$ac_cv_python_link"
25694
25695           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linking Python libraries" >&5
25696 $as_echo_n "checking for linking Python libraries... " >&6; }
25697 if ${ac_cv_python_libs+:} false; then :
25698   $as_echo_n "(cached) " >&6
25699 else
25700
25701             ac_cv_python_libs="`$PYTHON ${abs_srcdir}/build/get-py-info.py --libs`"
25702
25703 fi
25704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_python_libs" >&5
25705 $as_echo "$ac_cv_python_libs" >&6; }
25706           SWIG_PY_LIBS="`
25707   input_flags="$ac_cv_python_libs"
25708   output_flags=""
25709   filtered_dirs="/lib /lib64 /usr/lib /usr/lib64"
25710   for flag in $input_flags; do
25711     filter="no"
25712     for dir in $filtered_dirs; do
25713       if test "$flag" = "-L$dir" || test "$flag" = "-L$dir/"; then
25714         filter="yes"
25715         break
25716       fi
25717     done
25718     if test "$filter" = "no"; then
25719       output_flags="$output_flags $flag"
25720     fi
25721   done
25722   if test -n "$output_flags"; then
25723     printf "%s" "${output_flags# }"
25724   fi
25725 `"
25726
25727           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python >= 3" >&5
25728 $as_echo_n "checking for Python >= 3... " >&6; }
25729 if ${ac_cv_python_is_py3+:} false; then :
25730   $as_echo_n "(cached) " >&6
25731 else
25732
25733             ac_cv_python_is_py3="no"
25734             $PYTHON -c 'import sys; sys.exit(0x3000000 > sys.hexversion)' && \
25735                ac_cv_python_is_py3="yes"
25736
25737 fi
25738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_python_is_py3" >&5
25739 $as_echo "$ac_cv_python_is_py3" >&6; }
25740
25741           if test "$ac_cv_python_is_py3" = "yes"; then
25742             if test "$SWIG_VERSION" -ge "300010"; then
25743                             SWIG_PY_ERRMSG=""
25744             else
25745               SWIG_PY_ERRMSG="SWIG version is not suitable"
25746               { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Subversion Python bindings for Python 3 require SWIG 3.0.10 or newer" >&5
25747 $as_echo "$as_me: WARNING: Subversion Python bindings for Python 3 require SWIG 3.0.10 or newer" >&2;}
25748             fi
25749             if test "$SWIG_VERSION" -lt "400000"; then
25750               SWIG_PY_OPTS="-python -py3 -nofastunpack -modern"
25751             else
25752               SWIG_PY_OPTS="-python -py3 -nofastunpack"
25753             fi
25754           else
25755             if test "$SWIG_VERSION" -lt "400000"; then
25756               SWIG_PY_OPTS="-python -classic"
25757                             SWIG_PY_ERRMSG=""
25758             else
25759               SWIG_PY_OPTS="-python -nofastunpack"
25760               SWIG_PY_ERRMSG="SWIG version is not suitable"
25761               { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Subversion Python bindings for Python 2 require 1.3.24 <= SWIG < 4.0.0" >&5
25762 $as_echo "$as_me: WARNING: Subversion Python bindings for Python 2 require 1.3.24 <= SWIG < 4.0.0" >&2;}
25763             fi
25764           fi
25765         fi
25766
25767       fi
25768     fi
25769
25770   fi
25771
25772   SWIG_PL_ERRMSG="check config.log for details"
25773   if test "$PERL" != "none"; then
25774     { $as_echo "$as_me:${as_lineno-$LINENO}: checking perl version" >&5
25775 $as_echo_n "checking perl version... " >&6; }
25776             PERL_VERSION="`$PERL -e 'q([); print $] * 1000000,$/;'`"
25777     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL_VERSION" >&5
25778 $as_echo "$PERL_VERSION" >&6; }
25779     if test "$PERL_VERSION" -ge "5008000"; then
25780       SWIG_PL_INCLUDES="\$(SWIG_INCLUDES) `$PERL -MExtUtils::Embed -e ccopts`"
25781       SWIG_PL_LINK="`$PERL -MExtUtils::Embed -e ldopts`"
25782       SWIG_PL_LINK="`
25783   input_flags="$SWIG_PL_LINK"
25784   output_flags=""
25785   filtered_dirs="/lib /lib64 /usr/lib /usr/lib64"
25786   for flag in $input_flags; do
25787     filter="no"
25788     for dir in $filtered_dirs; do
25789       if test "$flag" = "-L$dir" || test "$flag" = "-L$dir/"; then
25790         filter="yes"
25791         break
25792       fi
25793     done
25794     if test "$filter" = "no"; then
25795       output_flags="$output_flags $flag"
25796     fi
25797   done
25798   if test -n "$output_flags"; then
25799     printf "%s" "${output_flags# }"
25800   fi
25801 `"
25802
25803             SWIG_PL_ERRMSG=""
25804     else
25805       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: perl bindings require perl 5.8.0 or newer." >&5
25806 $as_echo "$as_me: WARNING: perl bindings require perl 5.8.0 or newer." >&2;}
25807     fi
25808   fi
25809
25810   SWIG_RB_COMPILE="none"
25811   SWIG_RB_LINK="none"
25812   SWIG_RB_ERRMSG="check config.log for details"
25813   if test "$RUBY" != "none"; then
25814     if test x"$SWIG_VERSION" = x"3""00""008"; then
25815       # Use a local variable to escape the '#' sign.
25816       ruby_swig_issue_602='https://subversion.apache.org/docs/release-notes/1.11#ruby-swig-issue-602'
25817       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ruby bindings are known not to support swig 3.0.8; see $ruby_swig_issue_602" >&5
25818 $as_echo "$as_me: WARNING: Ruby bindings are known not to support swig 3.0.8; see $ruby_swig_issue_602" >&2;}
25819     fi
25820     rbconfig="$RUBY -rrbconfig -e "
25821
25822     for var_name in arch archdir CC LDSHARED DLEXT LIBS LIBRUBYARG \
25823                     rubyhdrdir rubyarchhdrdir sitedir sitelibdir sitearchdir libdir
25824     do
25825       rbconfig_tmp=`$rbconfig "print RbConfig::CONFIG['$var_name']"`
25826       eval "rbconfig_$var_name=\"$rbconfig_tmp\""
25827     done
25828
25829     { $as_echo "$as_me:${as_lineno-$LINENO}: Configuring Ruby SWIG binding" >&5
25830 $as_echo "$as_me: Configuring Ruby SWIG binding" >&6;}
25831
25832     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ruby include path" >&5
25833 $as_echo_n "checking for Ruby include path... " >&6; }
25834 if ${svn_cv_ruby_includes+:} false; then :
25835   $as_echo_n "(cached) " >&6
25836 else
25837
25838     if test -d "$rbconfig_rubyhdrdir"; then
25839             svn_cv_ruby_includes="-I. -I$rbconfig_rubyhdrdir"
25840       if test -d "$rbconfig_rubyarchhdrdir"; then
25841                 svn_cv_ruby_includes="$svn_cv_ruby_includes -I$rbconfig_rubyarchhdrdir"
25842       else
25843         svn_cv_ruby_includes="$svn_cv_ruby_includes -I$rbconfig_rubyhdrdir/$rbconfig_arch"
25844       fi
25845     else
25846             svn_cv_ruby_includes="-I. -I$rbconfig_archdir"
25847     fi
25848
25849 fi
25850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $svn_cv_ruby_includes" >&5
25851 $as_echo "$svn_cv_ruby_includes" >&6; }
25852     SWIG_RB_INCLUDES="\$(SWIG_INCLUDES) $svn_cv_ruby_includes"
25853
25854     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compile Ruby extensions" >&5
25855 $as_echo_n "checking how to compile Ruby extensions... " >&6; }
25856 if ${svn_cv_ruby_compile+:} false; then :
25857   $as_echo_n "(cached) " >&6
25858 else
25859
25860       svn_cv_ruby_compile="$rbconfig_CC $CFLAGS"
25861
25862 fi
25863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $svn_cv_ruby_compile" >&5
25864 $as_echo "$svn_cv_ruby_compile" >&6; }
25865     SWIG_RB_COMPILE="$svn_cv_ruby_compile"
25866
25867   SWIG_RB_COMPILE=`echo "$SWIG_RB_COMPILE" | $SED -e 's/-ansi//'`
25868
25869
25870   SWIG_RB_COMPILE=`echo "$SWIG_RB_COMPILE" | $SED -e 's/-std=c89//'`
25871
25872
25873   SWIG_RB_COMPILE=`echo "$SWIG_RB_COMPILE" | $SED -e 's/-std=c90//'`
25874
25875         SWIG_RB_COMPILE="$SWIG_RB_COMPILE -Wno-int-to-pointer-cast"
25876
25877     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link Ruby extensions" >&5
25878 $as_echo_n "checking how to link Ruby extensions... " >&6; }
25879 if ${svn_cv_ruby_link+:} false; then :
25880   $as_echo_n "(cached) " >&6
25881 else
25882
25883       svn_cv_ruby_link="`$RUBY -e 'ARGV.shift; print ARGV.join(%q( ))' \
25884                            $rbconfig_LDSHARED`"
25885       svn_cv_ruby_link="$rbconfig_CC $svn_cv_ruby_link"
25886       svn_cv_ruby_link="$svn_cv_ruby_link -shrext .$rbconfig_DLEXT"
25887
25888 fi
25889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $svn_cv_ruby_link" >&5
25890 $as_echo "$svn_cv_ruby_link" >&6; }
25891     SWIG_RB_LINK="$svn_cv_ruby_link"
25892
25893     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link Ruby libraries" >&5
25894 $as_echo_n "checking how to link Ruby libraries... " >&6; }
25895 if ${ac_cv_ruby_libs+:} false; then :
25896   $as_echo_n "(cached) " >&6
25897 else
25898
25899       ac_cv_ruby_libs="$rbconfig_LIBRUBYARG $rbconfig_LIBS"
25900
25901 fi
25902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_ruby_libs" >&5
25903 $as_echo "$ac_cv_ruby_libs" >&6; }
25904     SWIG_RB_LIBS="`
25905   input_flags="$ac_cv_ruby_libs"
25906   output_flags=""
25907   filtered_dirs="/lib /lib64 /usr/lib /usr/lib64"
25908   for flag in $input_flags; do
25909     filter="no"
25910     for dir in $filtered_dirs; do
25911       if test "$flag" = "-L$dir" || test "$flag" = "-L$dir/"; then
25912         filter="yes"
25913         break
25914       fi
25915     done
25916     if test "$filter" = "no"; then
25917       output_flags="$output_flags $flag"
25918     fi
25919   done
25920   if test -n "$output_flags"; then
25921     printf "%s" "${output_flags# }"
25922   fi
25923 `"
25924
25925     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rb_errinfo" >&5
25926 $as_echo_n "checking for rb_errinfo... " >&6; }
25927     old_CFLAGS="$CFLAGS"
25928     old_LIBS="$LIBS"
25929     CFLAGS="$CFLAGS $svn_cv_ruby_includes"
25930
25931   CFLAGS=`echo "$CFLAGS" | $SED -e 's/-ansi//'`
25932
25933
25934   CFLAGS=`echo "$CFLAGS" | $SED -e 's/-std=c89//'`
25935
25936
25937   CFLAGS=`echo "$CFLAGS" | $SED -e 's/-std=c90//'`
25938
25939     LIBS="$SWIG_RB_LIBS"
25940     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25941 /* end confdefs.h.  */
25942
25943 #include <ruby.h>
25944 int main()
25945 {rb_errinfo();}
25946 _ACEOF
25947 if ac_fn_c_try_link "$LINENO"; then :
25948   have_rb_errinfo="yes"
25949 else
25950   have_rb_errinfo="no"
25951 fi
25952 rm -f core conftest.err conftest.$ac_objext \
25953     conftest$ac_exeext conftest.$ac_ext
25954     if test "$have_rb_errinfo" = "yes"; then
25955       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25956 $as_echo "yes" >&6; }
25957
25958 $as_echo "#define HAVE_RB_ERRINFO 1" >>confdefs.h
25959
25960     else
25961       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25962 $as_echo "no" >&6; }
25963     fi
25964     CFLAGS="$old_CFLAGS"
25965     LIBS="$old_LIBS"
25966
25967     if ${svn_cv_ruby_sitedir+:} false; then :
25968   $as_echo_n "(cached) " >&6
25969 else
25970
25971       svn_cv_ruby_sitedir="$rbconfig_sitedir"
25972
25973 fi
25974
25975
25976 # Check whether --with-ruby-sitedir was given.
25977 if test "${with_ruby_sitedir+set}" = set; then :
25978   withval=$with_ruby_sitedir; svn_ruby_installdir="$withval"
25979 else
25980   svn_ruby_installdir="$svn_cv_ruby_sitedir"
25981 fi
25982
25983
25984     { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to install Ruby scripts" >&5
25985 $as_echo_n "checking where to install Ruby scripts... " >&6; }
25986     if ${svn_cv_ruby_sitedir_libsuffix+:} false; then :
25987   $as_echo_n "(cached) " >&6
25988 else
25989
25990       svn_cv_ruby_sitedir_libsuffix="`echo "$rbconfig_sitelibdir" | \
25991                                         $SED -e "s,^$rbconfig_sitedir,,"`"
25992
25993 fi
25994
25995     SWIG_RB_SITE_LIB_DIR="${svn_ruby_installdir}${svn_cv_ruby_sitedir_libsuffix}"
25996     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG_RB_SITE_LIB_DIR" >&5
25997 $as_echo "$SWIG_RB_SITE_LIB_DIR" >&6; }
25998
25999     { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to install Ruby extensions" >&5
26000 $as_echo_n "checking where to install Ruby extensions... " >&6; }
26001     if ${svn_cv_ruby_sitedir_archsuffix+:} false; then :
26002   $as_echo_n "(cached) " >&6
26003 else
26004
26005       svn_cv_ruby_sitedir_archsuffix="`echo "$rbconfig_sitearchdir" | \
26006                                         $SED -e "s,^$rbconfig_sitedir,,"`"
26007
26008 fi
26009
26010     SWIG_RB_SITE_ARCH_DIR="${svn_ruby_installdir}${svn_cv_ruby_sitedir_archsuffix}"
26011     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG_RB_SITE_ARCH_DIR" >&5
26012 $as_echo "$SWIG_RB_SITE_ARCH_DIR" >&6; }
26013
26014     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to use output level for Ruby bindings tests" >&5
26015 $as_echo_n "checking how to use output level for Ruby bindings tests... " >&6; }
26016     if ${svn_cv_ruby_test_verbose+:} false; then :
26017   $as_echo_n "(cached) " >&6
26018 else
26019
26020       svn_cv_ruby_test_verbose="normal"
26021
26022 fi
26023
26024
26025 # Check whether --with-ruby-test-verbose was given.
26026 if test "${with_ruby_test_verbose+set}" = set; then :
26027   withval=$with_ruby_test_verbose; svn_ruby_test_verbose="$withval"
26028 else
26029   svn_ruby_test_verbose="$svn_cv_ruby_test_verbose"
26030 fi
26031
26032       SWIG_RB_TEST_VERBOSE="$svn_ruby_test_verbose"
26033       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG_RB_TEST_VERBOSE" >&5
26034 $as_echo "$SWIG_RB_TEST_VERBOSE" >&6; }
26035
26036         SWIG_RB_ERRMSG=""
26037   fi
26038
26039
26040
26041
26042
26043
26044
26045
26046
26047
26048
26049
26050
26051
26052
26053
26054
26055
26056
26057       ;;
26058     esac
26059
26060 else
26061
26062
26063   where=check
26064
26065   if test $where = no; then
26066     SWIG=none
26067   elif test $where = required || test $where = check; then
26068     # Extract the first word of "swig", so it can be a program name with args.
26069 set dummy swig; ac_word=$2
26070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26071 $as_echo_n "checking for $ac_word... " >&6; }
26072 if ${ac_cv_path_SWIG+:} false; then :
26073   $as_echo_n "(cached) " >&6
26074 else
26075   case $SWIG in
26076   [\\/]* | ?:[\\/]*)
26077   ac_cv_path_SWIG="$SWIG" # Let the user override the test with a path.
26078   ;;
26079   *)
26080   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26081 for as_dir in $PATH
26082 do
26083   IFS=$as_save_IFS
26084   test -z "$as_dir" && as_dir=.
26085     for ac_exec_ext in '' $ac_executable_extensions; do
26086   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26087     ac_cv_path_SWIG="$as_dir/$ac_word$ac_exec_ext"
26088     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26089     break 2
26090   fi
26091 done
26092   done
26093 IFS=$as_save_IFS
26094
26095   test -z "$ac_cv_path_SWIG" && ac_cv_path_SWIG="none"
26096   ;;
26097 esac
26098 fi
26099 SWIG=$ac_cv_path_SWIG
26100 if test -n "$SWIG"; then
26101   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG" >&5
26102 $as_echo "$SWIG" >&6; }
26103 else
26104   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26105 $as_echo "no" >&6; }
26106 fi
26107
26108
26109     if test "$SWIG" = "none" && test $where = required; then
26110       as_fn_error $? "SWIG required, but not found" "$LINENO" 5
26111     fi
26112   else
26113     if test -f "$where"; then
26114       SWIG="$where"
26115     else
26116       SWIG="$where/bin/swig"
26117     fi
26118     if test ! -f "$SWIG" || test ! -x "$SWIG"; then
26119       as_fn_error $? "Could not find swig binary at $SWIG" "$LINENO" 5
26120     fi
26121   fi
26122
26123   if test "$SWIG" != "none"; then
26124     { $as_echo "$as_me:${as_lineno-$LINENO}: checking swig version" >&5
26125 $as_echo_n "checking swig version... " >&6; }
26126     SWIG_VERSION_RAW="`$SWIG -version 2>&1 | \
26127                        $SED -ne 's/^.*Version \(.*\)$/\1/p'`"
26128     # We want the version as an integer so we can test against
26129     # which version we're using.  SWIG doesn't provide this
26130     # to us so we have to come up with it on our own.
26131     # The major is passed straight through,
26132     # the minor is zero padded to two places,
26133     # and the patch level is zero padded to three places.
26134     # e.g. 1.3.24 becomes 103024
26135     SWIG_VERSION="`echo \"$SWIG_VERSION_RAW\" | \
26136                   $SED -e 's/[^0-9\.].*$//' \
26137                       -e 's/\.\([0-9]\)$/.0\1/' \
26138                       -e 's/\.\([0-9][0-9]\)$/.0\1/' \
26139                       -e 's/\.\([0-9]\)\./0\1/; s/\.//g;'`"
26140     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG_VERSION_RAW" >&5
26141 $as_echo "$SWIG_VERSION_RAW" >&6; }
26142     # If you change the required swig version number, don't forget to update:
26143     #   subversion/bindings/swig/INSTALL
26144     if test -n "$SWIG_VERSION" && test "$SWIG_VERSION" -ge "103024"; then
26145       SWIG_SUITABLE=yes
26146     else
26147       SWIG_SUITABLE=no
26148       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Detected SWIG version $SWIG_VERSION_RAW" >&5
26149 $as_echo "$as_me: WARNING: Detected SWIG version $SWIG_VERSION_RAW" >&2;}
26150       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Subversion requires SWIG >= 1.3.24" >&5
26151 $as_echo "$as_me: WARNING: Subversion requires SWIG >= 1.3.24" >&2;}
26152     fi
26153   fi
26154
26155   SWIG_PY_COMPILE="none"
26156   SWIG_PY_LINK="none"
26157   SWIG_PY_OPTS="none"
26158   SWIG_PY_ERRMSG="check config.log for details"
26159   if test "$PYTHON" != "none"; then
26160     { $as_echo "$as_me:${as_lineno-$LINENO}: Configuring python swig binding" >&5
26161 $as_echo "$as_me: Configuring python swig binding" >&6;}
26162
26163     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python includes" >&5
26164 $as_echo_n "checking for Python includes... " >&6; }
26165 if ${ac_cv_python_includes+:} false; then :
26166   $as_echo_n "(cached) " >&6
26167 else
26168
26169       ac_cv_python_includes="`$PYTHON ${abs_srcdir}/build/get-py-info.py --includes`"
26170
26171 fi
26172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_python_includes" >&5
26173 $as_echo "$ac_cv_python_includes" >&6; }
26174     SWIG_PY_INCLUDES="\$(SWIG_INCLUDES) $ac_cv_python_includes"
26175
26176     if test "$ac_cv_python_includes" = "none"; then
26177       SWIG_PY_ERRMSG="no distutils found"
26178       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: python bindings cannot be built without distutils module" >&5
26179 $as_echo "$as_me: WARNING: python bindings cannot be built without distutils module" >&2;}
26180     else
26181
26182       python_header_found="no"
26183
26184       save_cppflags="$CPPFLAGS"
26185       CPPFLAGS="$CPPFLAGS $ac_cv_python_includes"
26186       ac_fn_c_check_header_mongrel "$LINENO" "Python.h" "ac_cv_header_Python_h" "$ac_includes_default"
26187 if test "x$ac_cv_header_Python_h" = xyes; then :
26188
26189         python_header_found="yes"
26190
26191 fi
26192
26193
26194       CPPFLAGS="$save_cppflags"
26195
26196       if test "$python_header_found" = "no"; then
26197         SWIG_PY_ERRMSG="no Python.h found"
26198         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Python.h not found; disabling python swig bindings" >&5
26199 $as_echo "$as_me: WARNING: Python.h not found; disabling python swig bindings" >&2;}
26200       else
26201
26202   py3c_found=no
26203   py3c_skip=no
26204
26205
26206 # Check whether --with-py3c was given.
26207 if test "${with_py3c+set}" = set; then :
26208   withval=$with_py3c;
26209     if test "$withval" = "yes"; then
26210       py3c_skip=no
26211     elif test "$withval" = "no"; then
26212       py3c_skip=yes
26213     else
26214       py3c_skip=no
26215       py3c_prefix="$withval"
26216     fi
26217
26218 fi
26219
26220
26221   if test "$py3c_skip" = "yes"; then
26222     { $as_echo "$as_me:${as_lineno-$LINENO}: Skipping configure of py3c" >&5
26223 $as_echo "$as_me: Skipping configure of py3c" >&6;}
26224   else
26225     if test -n "$py3c_prefix"; then
26226       { $as_echo "$as_me:${as_lineno-$LINENO}: py3c library configuration via prefix $py3c_prefix" >&5
26227 $as_echo "$as_me: py3c library configuration via prefix $py3c_prefix" >&6;}
26228
26229             if test "$ac_cv_python_includes" = "none"; then
26230         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: py3c cannot be used without distutils module" >&5
26231 $as_echo "$as_me: WARNING: py3c cannot be used without distutils module" >&2;}
26232       fi
26233
26234       save_cppflags="$CPPFLAGS"
26235       CPPFLAGS="$CPPFLAGS $ac_cv_python_includes -I$py3c_prefix/include"
26236       for ac_header in py3c.h
26237 do :
26238   ac_fn_c_check_header_mongrel "$LINENO" "py3c.h" "ac_cv_header_py3c_h" "$ac_includes_default"
26239 if test "x$ac_cv_header_py3c_h" = xyes; then :
26240   cat >>confdefs.h <<_ACEOF
26241 #define HAVE_PY3C_H 1
26242 _ACEOF
26243
26244           py3c_found="yes"
26245           SVN_PY3C_INCLUDES="-I$py3c_prefix/include"
26246
26247 fi
26248
26249 done
26250
26251       CPPFLAGS="$save_cppflags"
26252     else
26253
26254   { $as_echo "$as_me:${as_lineno-$LINENO}: py3c library configuration via pkg-config" >&5
26255 $as_echo "$as_me: py3c library configuration via pkg-config" >&6;}
26256   if test -n "$PKG_CONFIG"; then
26257     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for py3c library" >&5
26258 $as_echo_n "checking for py3c library... " >&6; }
26259     if $PKG_CONFIG py3c --exists; then
26260       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26261 $as_echo "yes" >&6; }
26262       py3c_found=yes
26263       SVN_PY3C_INCLUDES=`$PKG_CONFIG py3c --cflags`
26264     else
26265       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26266 $as_echo "no" >&6; }
26267     fi
26268   fi
26269
26270
26271       if test "$py3c_found" = "no"; then
26272         { $as_echo "$as_me:${as_lineno-$LINENO}: py3c library configuration without pkg-config" >&5
26273 $as_echo "$as_me: py3c library configuration without pkg-config" >&6;}
26274
26275                 if test "$ac_cv_python_includes" = "none"; then
26276           { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: py3c cannot be used without distutils module" >&5
26277 $as_echo "$as_me: WARNING: py3c cannot be used without distutils module" >&2;}
26278         fi
26279
26280         save_cppflags="$CPPFLAGS"
26281         CPPFLAGS="$CPPFLAGS $ac_cv_python_includes"
26282         ac_fn_c_check_header_mongrel "$LINENO" "py3c.h" "ac_cv_header_py3c_h" "$ac_includes_default"
26283 if test "x$ac_cv_header_py3c_h" = xyes; then :
26284
26285           py3c_found="yes"
26286
26287 fi
26288
26289
26290         CPPFLAGS="$save_cppflags"
26291       fi
26292     fi
26293   fi
26294
26295
26296
26297
26298         if test "$py3c_found" = "no"; then
26299           SWIG_PY_ERRMSG="py3c library not found"
26300           { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: py3c library not found; disabling python swig bindings" >&5
26301 $as_echo "$as_me: WARNING: py3c library not found; disabling python swig bindings" >&2;}
26302         else
26303           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiling Python extensions" >&5
26304 $as_echo_n "checking for compiling Python extensions... " >&6; }
26305 if ${ac_cv_python_compile+:} false; then :
26306   $as_echo_n "(cached) " >&6
26307 else
26308
26309             ac_cv_python_compile="`$PYTHON ${abs_srcdir}/build/get-py-info.py --compile`"
26310
26311 fi
26312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_python_compile" >&5
26313 $as_echo "$ac_cv_python_compile" >&6; }
26314           SWIG_PY_COMPILE="$ac_cv_python_compile $CFLAGS"
26315
26316           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linking Python extensions" >&5
26317 $as_echo_n "checking for linking Python extensions... " >&6; }
26318 if ${ac_cv_python_link+:} false; then :
26319   $as_echo_n "(cached) " >&6
26320 else
26321
26322             ac_cv_python_link="`$PYTHON ${abs_srcdir}/build/get-py-info.py --link`"
26323
26324 fi
26325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_python_link" >&5
26326 $as_echo "$ac_cv_python_link" >&6; }
26327           SWIG_PY_LINK="$ac_cv_python_link"
26328
26329           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linking Python libraries" >&5
26330 $as_echo_n "checking for linking Python libraries... " >&6; }
26331 if ${ac_cv_python_libs+:} false; then :
26332   $as_echo_n "(cached) " >&6
26333 else
26334
26335             ac_cv_python_libs="`$PYTHON ${abs_srcdir}/build/get-py-info.py --libs`"
26336
26337 fi
26338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_python_libs" >&5
26339 $as_echo "$ac_cv_python_libs" >&6; }
26340           SWIG_PY_LIBS="`
26341   input_flags="$ac_cv_python_libs"
26342   output_flags=""
26343   filtered_dirs="/lib /lib64 /usr/lib /usr/lib64"
26344   for flag in $input_flags; do
26345     filter="no"
26346     for dir in $filtered_dirs; do
26347       if test "$flag" = "-L$dir" || test "$flag" = "-L$dir/"; then
26348         filter="yes"
26349         break
26350       fi
26351     done
26352     if test "$filter" = "no"; then
26353       output_flags="$output_flags $flag"
26354     fi
26355   done
26356   if test -n "$output_flags"; then
26357     printf "%s" "${output_flags# }"
26358   fi
26359 `"
26360
26361           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python >= 3" >&5
26362 $as_echo_n "checking for Python >= 3... " >&6; }
26363 if ${ac_cv_python_is_py3+:} false; then :
26364   $as_echo_n "(cached) " >&6
26365 else
26366
26367             ac_cv_python_is_py3="no"
26368             $PYTHON -c 'import sys; sys.exit(0x3000000 > sys.hexversion)' && \
26369                ac_cv_python_is_py3="yes"
26370
26371 fi
26372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_python_is_py3" >&5
26373 $as_echo "$ac_cv_python_is_py3" >&6; }
26374
26375           if test "$ac_cv_python_is_py3" = "yes"; then
26376             if test "$SWIG_VERSION" -ge "300010"; then
26377                             SWIG_PY_ERRMSG=""
26378             else
26379               SWIG_PY_ERRMSG="SWIG version is not suitable"
26380               { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Subversion Python bindings for Python 3 require SWIG 3.0.10 or newer" >&5
26381 $as_echo "$as_me: WARNING: Subversion Python bindings for Python 3 require SWIG 3.0.10 or newer" >&2;}
26382             fi
26383             if test "$SWIG_VERSION" -lt "400000"; then
26384               SWIG_PY_OPTS="-python -py3 -nofastunpack -modern"
26385             else
26386               SWIG_PY_OPTS="-python -py3 -nofastunpack"
26387             fi
26388           else
26389             if test "$SWIG_VERSION" -lt "400000"; then
26390               SWIG_PY_OPTS="-python -classic"
26391                             SWIG_PY_ERRMSG=""
26392             else
26393               SWIG_PY_OPTS="-python -nofastunpack"
26394               SWIG_PY_ERRMSG="SWIG version is not suitable"
26395               { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Subversion Python bindings for Python 2 require 1.3.24 <= SWIG < 4.0.0" >&5
26396 $as_echo "$as_me: WARNING: Subversion Python bindings for Python 2 require 1.3.24 <= SWIG < 4.0.0" >&2;}
26397             fi
26398           fi
26399         fi
26400
26401       fi
26402     fi
26403
26404   fi
26405
26406   SWIG_PL_ERRMSG="check config.log for details"
26407   if test "$PERL" != "none"; then
26408     { $as_echo "$as_me:${as_lineno-$LINENO}: checking perl version" >&5
26409 $as_echo_n "checking perl version... " >&6; }
26410             PERL_VERSION="`$PERL -e 'q([); print $] * 1000000,$/;'`"
26411     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL_VERSION" >&5
26412 $as_echo "$PERL_VERSION" >&6; }
26413     if test "$PERL_VERSION" -ge "5008000"; then
26414       SWIG_PL_INCLUDES="\$(SWIG_INCLUDES) `$PERL -MExtUtils::Embed -e ccopts`"
26415       SWIG_PL_LINK="`$PERL -MExtUtils::Embed -e ldopts`"
26416       SWIG_PL_LINK="`
26417   input_flags="$SWIG_PL_LINK"
26418   output_flags=""
26419   filtered_dirs="/lib /lib64 /usr/lib /usr/lib64"
26420   for flag in $input_flags; do
26421     filter="no"
26422     for dir in $filtered_dirs; do
26423       if test "$flag" = "-L$dir" || test "$flag" = "-L$dir/"; then
26424         filter="yes"
26425         break
26426       fi
26427     done
26428     if test "$filter" = "no"; then
26429       output_flags="$output_flags $flag"
26430     fi
26431   done
26432   if test -n "$output_flags"; then
26433     printf "%s" "${output_flags# }"
26434   fi
26435 `"
26436
26437             SWIG_PL_ERRMSG=""
26438     else
26439       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: perl bindings require perl 5.8.0 or newer." >&5
26440 $as_echo "$as_me: WARNING: perl bindings require perl 5.8.0 or newer." >&2;}
26441     fi
26442   fi
26443
26444   SWIG_RB_COMPILE="none"
26445   SWIG_RB_LINK="none"
26446   SWIG_RB_ERRMSG="check config.log for details"
26447   if test "$RUBY" != "none"; then
26448     if test x"$SWIG_VERSION" = x"3""00""008"; then
26449       # Use a local variable to escape the '#' sign.
26450       ruby_swig_issue_602='https://subversion.apache.org/docs/release-notes/1.11#ruby-swig-issue-602'
26451       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ruby bindings are known not to support swig 3.0.8; see $ruby_swig_issue_602" >&5
26452 $as_echo "$as_me: WARNING: Ruby bindings are known not to support swig 3.0.8; see $ruby_swig_issue_602" >&2;}
26453     fi
26454     rbconfig="$RUBY -rrbconfig -e "
26455
26456     for var_name in arch archdir CC LDSHARED DLEXT LIBS LIBRUBYARG \
26457                     rubyhdrdir rubyarchhdrdir sitedir sitelibdir sitearchdir libdir
26458     do
26459       rbconfig_tmp=`$rbconfig "print RbConfig::CONFIG['$var_name']"`
26460       eval "rbconfig_$var_name=\"$rbconfig_tmp\""
26461     done
26462
26463     { $as_echo "$as_me:${as_lineno-$LINENO}: Configuring Ruby SWIG binding" >&5
26464 $as_echo "$as_me: Configuring Ruby SWIG binding" >&6;}
26465
26466     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ruby include path" >&5
26467 $as_echo_n "checking for Ruby include path... " >&6; }
26468 if ${svn_cv_ruby_includes+:} false; then :
26469   $as_echo_n "(cached) " >&6
26470 else
26471
26472     if test -d "$rbconfig_rubyhdrdir"; then
26473             svn_cv_ruby_includes="-I. -I$rbconfig_rubyhdrdir"
26474       if test -d "$rbconfig_rubyarchhdrdir"; then
26475                 svn_cv_ruby_includes="$svn_cv_ruby_includes -I$rbconfig_rubyarchhdrdir"
26476       else
26477         svn_cv_ruby_includes="$svn_cv_ruby_includes -I$rbconfig_rubyhdrdir/$rbconfig_arch"
26478       fi
26479     else
26480             svn_cv_ruby_includes="-I. -I$rbconfig_archdir"
26481     fi
26482
26483 fi
26484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $svn_cv_ruby_includes" >&5
26485 $as_echo "$svn_cv_ruby_includes" >&6; }
26486     SWIG_RB_INCLUDES="\$(SWIG_INCLUDES) $svn_cv_ruby_includes"
26487
26488     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compile Ruby extensions" >&5
26489 $as_echo_n "checking how to compile Ruby extensions... " >&6; }
26490 if ${svn_cv_ruby_compile+:} false; then :
26491   $as_echo_n "(cached) " >&6
26492 else
26493
26494       svn_cv_ruby_compile="$rbconfig_CC $CFLAGS"
26495
26496 fi
26497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $svn_cv_ruby_compile" >&5
26498 $as_echo "$svn_cv_ruby_compile" >&6; }
26499     SWIG_RB_COMPILE="$svn_cv_ruby_compile"
26500
26501   SWIG_RB_COMPILE=`echo "$SWIG_RB_COMPILE" | $SED -e 's/-ansi//'`
26502
26503
26504   SWIG_RB_COMPILE=`echo "$SWIG_RB_COMPILE" | $SED -e 's/-std=c89//'`
26505
26506
26507   SWIG_RB_COMPILE=`echo "$SWIG_RB_COMPILE" | $SED -e 's/-std=c90//'`
26508
26509         SWIG_RB_COMPILE="$SWIG_RB_COMPILE -Wno-int-to-pointer-cast"
26510
26511     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link Ruby extensions" >&5
26512 $as_echo_n "checking how to link Ruby extensions... " >&6; }
26513 if ${svn_cv_ruby_link+:} false; then :
26514   $as_echo_n "(cached) " >&6
26515 else
26516
26517       svn_cv_ruby_link="`$RUBY -e 'ARGV.shift; print ARGV.join(%q( ))' \
26518                            $rbconfig_LDSHARED`"
26519       svn_cv_ruby_link="$rbconfig_CC $svn_cv_ruby_link"
26520       svn_cv_ruby_link="$svn_cv_ruby_link -shrext .$rbconfig_DLEXT"
26521
26522 fi
26523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $svn_cv_ruby_link" >&5
26524 $as_echo "$svn_cv_ruby_link" >&6; }
26525     SWIG_RB_LINK="$svn_cv_ruby_link"
26526
26527     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link Ruby libraries" >&5
26528 $as_echo_n "checking how to link Ruby libraries... " >&6; }
26529 if ${ac_cv_ruby_libs+:} false; then :
26530   $as_echo_n "(cached) " >&6
26531 else
26532
26533       ac_cv_ruby_libs="$rbconfig_LIBRUBYARG $rbconfig_LIBS"
26534
26535 fi
26536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_ruby_libs" >&5
26537 $as_echo "$ac_cv_ruby_libs" >&6; }
26538     SWIG_RB_LIBS="`
26539   input_flags="$ac_cv_ruby_libs"
26540   output_flags=""
26541   filtered_dirs="/lib /lib64 /usr/lib /usr/lib64"
26542   for flag in $input_flags; do
26543     filter="no"
26544     for dir in $filtered_dirs; do
26545       if test "$flag" = "-L$dir" || test "$flag" = "-L$dir/"; then
26546         filter="yes"
26547         break
26548       fi
26549     done
26550     if test "$filter" = "no"; then
26551       output_flags="$output_flags $flag"
26552     fi
26553   done
26554   if test -n "$output_flags"; then
26555     printf "%s" "${output_flags# }"
26556   fi
26557 `"
26558
26559     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rb_errinfo" >&5
26560 $as_echo_n "checking for rb_errinfo... " >&6; }
26561     old_CFLAGS="$CFLAGS"
26562     old_LIBS="$LIBS"
26563     CFLAGS="$CFLAGS $svn_cv_ruby_includes"
26564
26565   CFLAGS=`echo "$CFLAGS" | $SED -e 's/-ansi//'`
26566
26567
26568   CFLAGS=`echo "$CFLAGS" | $SED -e 's/-std=c89//'`
26569
26570
26571   CFLAGS=`echo "$CFLAGS" | $SED -e 's/-std=c90//'`
26572
26573     LIBS="$SWIG_RB_LIBS"
26574     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26575 /* end confdefs.h.  */
26576
26577 #include <ruby.h>
26578 int main()
26579 {rb_errinfo();}
26580 _ACEOF
26581 if ac_fn_c_try_link "$LINENO"; then :
26582   have_rb_errinfo="yes"
26583 else
26584   have_rb_errinfo="no"
26585 fi
26586 rm -f core conftest.err conftest.$ac_objext \
26587     conftest$ac_exeext conftest.$ac_ext
26588     if test "$have_rb_errinfo" = "yes"; then
26589       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26590 $as_echo "yes" >&6; }
26591
26592 $as_echo "#define HAVE_RB_ERRINFO 1" >>confdefs.h
26593
26594     else
26595       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26596 $as_echo "no" >&6; }
26597     fi
26598     CFLAGS="$old_CFLAGS"
26599     LIBS="$old_LIBS"
26600
26601     if ${svn_cv_ruby_sitedir+:} false; then :
26602   $as_echo_n "(cached) " >&6
26603 else
26604
26605       svn_cv_ruby_sitedir="$rbconfig_sitedir"
26606
26607 fi
26608
26609
26610 # Check whether --with-ruby-sitedir was given.
26611 if test "${with_ruby_sitedir+set}" = set; then :
26612   withval=$with_ruby_sitedir; svn_ruby_installdir="$withval"
26613 else
26614   svn_ruby_installdir="$svn_cv_ruby_sitedir"
26615 fi
26616
26617
26618     { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to install Ruby scripts" >&5
26619 $as_echo_n "checking where to install Ruby scripts... " >&6; }
26620     if ${svn_cv_ruby_sitedir_libsuffix+:} false; then :
26621   $as_echo_n "(cached) " >&6
26622 else
26623
26624       svn_cv_ruby_sitedir_libsuffix="`echo "$rbconfig_sitelibdir" | \
26625                                         $SED -e "s,^$rbconfig_sitedir,,"`"
26626
26627 fi
26628
26629     SWIG_RB_SITE_LIB_DIR="${svn_ruby_installdir}${svn_cv_ruby_sitedir_libsuffix}"
26630     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG_RB_SITE_LIB_DIR" >&5
26631 $as_echo "$SWIG_RB_SITE_LIB_DIR" >&6; }
26632
26633     { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to install Ruby extensions" >&5
26634 $as_echo_n "checking where to install Ruby extensions... " >&6; }
26635     if ${svn_cv_ruby_sitedir_archsuffix+:} false; then :
26636   $as_echo_n "(cached) " >&6
26637 else
26638
26639       svn_cv_ruby_sitedir_archsuffix="`echo "$rbconfig_sitearchdir" | \
26640                                         $SED -e "s,^$rbconfig_sitedir,,"`"
26641
26642 fi
26643
26644     SWIG_RB_SITE_ARCH_DIR="${svn_ruby_installdir}${svn_cv_ruby_sitedir_archsuffix}"
26645     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG_RB_SITE_ARCH_DIR" >&5
26646 $as_echo "$SWIG_RB_SITE_ARCH_DIR" >&6; }
26647
26648     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to use output level for Ruby bindings tests" >&5
26649 $as_echo_n "checking how to use output level for Ruby bindings tests... " >&6; }
26650     if ${svn_cv_ruby_test_verbose+:} false; then :
26651   $as_echo_n "(cached) " >&6
26652 else
26653
26654       svn_cv_ruby_test_verbose="normal"
26655
26656 fi
26657
26658
26659 # Check whether --with-ruby-test-verbose was given.
26660 if test "${with_ruby_test_verbose+set}" = set; then :
26661   withval=$with_ruby_test_verbose; svn_ruby_test_verbose="$withval"
26662 else
26663   svn_ruby_test_verbose="$svn_cv_ruby_test_verbose"
26664 fi
26665
26666       SWIG_RB_TEST_VERBOSE="$svn_ruby_test_verbose"
26667       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG_RB_TEST_VERBOSE" >&5
26668 $as_echo "$SWIG_RB_TEST_VERBOSE" >&6; }
26669
26670         SWIG_RB_ERRMSG=""
26671   fi
26672
26673
26674
26675
26676
26677
26678
26679
26680
26681
26682
26683
26684
26685
26686
26687
26688
26689
26690
26691
26692 fi
26693
26694
26695
26696
26697
26698
26699
26700
26701
26702 # Check whether --with-ctypesgen was given.
26703 if test "${with_ctypesgen+set}" = set; then :
26704   withval=$with_ctypesgen;
26705     case "$withval" in
26706       "no")
26707
26708   where=no
26709
26710   CTYPESGEN=none
26711
26712   if test $where = check; then
26713     # Extract the first word of ""ctypesgen.py"", so it can be a program name with args.
26714 set dummy "ctypesgen.py"; ac_word=$2
26715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26716 $as_echo_n "checking for $ac_word... " >&6; }
26717 if ${ac_cv_path_CTYPESGEN+:} false; then :
26718   $as_echo_n "(cached) " >&6
26719 else
26720   case $CTYPESGEN in
26721   [\\/]* | ?:[\\/]*)
26722   ac_cv_path_CTYPESGEN="$CTYPESGEN" # Let the user override the test with a path.
26723   ;;
26724   *)
26725   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26726 for as_dir in $PATH
26727 do
26728   IFS=$as_save_IFS
26729   test -z "$as_dir" && as_dir=.
26730     for ac_exec_ext in '' $ac_executable_extensions; do
26731   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26732     ac_cv_path_CTYPESGEN="$as_dir/$ac_word$ac_exec_ext"
26733     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26734     break 2
26735   fi
26736 done
26737   done
26738 IFS=$as_save_IFS
26739
26740   test -z "$ac_cv_path_CTYPESGEN" && ac_cv_path_CTYPESGEN="none"
26741   ;;
26742 esac
26743 fi
26744 CTYPESGEN=$ac_cv_path_CTYPESGEN
26745 if test -n "$CTYPESGEN"; then
26746   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CTYPESGEN" >&5
26747 $as_echo "$CTYPESGEN" >&6; }
26748 else
26749   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26750 $as_echo "no" >&6; }
26751 fi
26752
26753
26754   elif test $where != no; then
26755     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctypesgen.py" >&5
26756 $as_echo_n "checking for ctypesgen.py... " >&6; }
26757
26758     if test -f "$where"; then
26759       CTYPESGEN="$where"
26760     elif test -f "$where/bin/ctypesgen.py"; then
26761       CTYPESGEN="$where/bin/ctypesgen.py"
26762     else
26763       CTYPESGEN="$where/ctypesgen.py"
26764     fi
26765
26766     if test ! -f "$CTYPESGEN" || test ! -x "$CTYPESGEN"; then
26767       as_fn_error $? "Could not find ctypesgen at $where/ctypesgen.py or at
26768                     $where/bin/ctypesgen.py" "$LINENO" 5
26769     else
26770       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CTYPESGEN" >&5
26771 $as_echo "$CTYPESGEN" >&6; }
26772     fi
26773   fi
26774
26775
26776
26777       ;;
26778       "yes")
26779
26780   where=check
26781
26782   CTYPESGEN=none
26783
26784   if test $where = check; then
26785     # Extract the first word of ""ctypesgen.py"", so it can be a program name with args.
26786 set dummy "ctypesgen.py"; ac_word=$2
26787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26788 $as_echo_n "checking for $ac_word... " >&6; }
26789 if ${ac_cv_path_CTYPESGEN+:} false; then :
26790   $as_echo_n "(cached) " >&6
26791 else
26792   case $CTYPESGEN in
26793   [\\/]* | ?:[\\/]*)
26794   ac_cv_path_CTYPESGEN="$CTYPESGEN" # Let the user override the test with a path.
26795   ;;
26796   *)
26797   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26798 for as_dir in $PATH
26799 do
26800   IFS=$as_save_IFS
26801   test -z "$as_dir" && as_dir=.
26802     for ac_exec_ext in '' $ac_executable_extensions; do
26803   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26804     ac_cv_path_CTYPESGEN="$as_dir/$ac_word$ac_exec_ext"
26805     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26806     break 2
26807   fi
26808 done
26809   done
26810 IFS=$as_save_IFS
26811
26812   test -z "$ac_cv_path_CTYPESGEN" && ac_cv_path_CTYPESGEN="none"
26813   ;;
26814 esac
26815 fi
26816 CTYPESGEN=$ac_cv_path_CTYPESGEN
26817 if test -n "$CTYPESGEN"; then
26818   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CTYPESGEN" >&5
26819 $as_echo "$CTYPESGEN" >&6; }
26820 else
26821   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26822 $as_echo "no" >&6; }
26823 fi
26824
26825
26826   elif test $where != no; then
26827     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctypesgen.py" >&5
26828 $as_echo_n "checking for ctypesgen.py... " >&6; }
26829
26830     if test -f "$where"; then
26831       CTYPESGEN="$where"
26832     elif test -f "$where/bin/ctypesgen.py"; then
26833       CTYPESGEN="$where/bin/ctypesgen.py"
26834     else
26835       CTYPESGEN="$where/ctypesgen.py"
26836     fi
26837
26838     if test ! -f "$CTYPESGEN" || test ! -x "$CTYPESGEN"; then
26839       as_fn_error $? "Could not find ctypesgen at $where/ctypesgen.py or at
26840                     $where/bin/ctypesgen.py" "$LINENO" 5
26841     else
26842       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CTYPESGEN" >&5
26843 $as_echo "$CTYPESGEN" >&6; }
26844     fi
26845   fi
26846
26847
26848
26849       ;;
26850       *)
26851
26852   where=$withval
26853
26854   CTYPESGEN=none
26855
26856   if test $where = check; then
26857     # Extract the first word of ""ctypesgen.py"", so it can be a program name with args.
26858 set dummy "ctypesgen.py"; ac_word=$2
26859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26860 $as_echo_n "checking for $ac_word... " >&6; }
26861 if ${ac_cv_path_CTYPESGEN+:} false; then :
26862   $as_echo_n "(cached) " >&6
26863 else
26864   case $CTYPESGEN in
26865   [\\/]* | ?:[\\/]*)
26866   ac_cv_path_CTYPESGEN="$CTYPESGEN" # Let the user override the test with a path.
26867   ;;
26868   *)
26869   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26870 for as_dir in $PATH
26871 do
26872   IFS=$as_save_IFS
26873   test -z "$as_dir" && as_dir=.
26874     for ac_exec_ext in '' $ac_executable_extensions; do
26875   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26876     ac_cv_path_CTYPESGEN="$as_dir/$ac_word$ac_exec_ext"
26877     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26878     break 2
26879   fi
26880 done
26881   done
26882 IFS=$as_save_IFS
26883
26884   test -z "$ac_cv_path_CTYPESGEN" && ac_cv_path_CTYPESGEN="none"
26885   ;;
26886 esac
26887 fi
26888 CTYPESGEN=$ac_cv_path_CTYPESGEN
26889 if test -n "$CTYPESGEN"; then
26890   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CTYPESGEN" >&5
26891 $as_echo "$CTYPESGEN" >&6; }
26892 else
26893   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26894 $as_echo "no" >&6; }
26895 fi
26896
26897
26898   elif test $where != no; then
26899     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctypesgen.py" >&5
26900 $as_echo_n "checking for ctypesgen.py... " >&6; }
26901
26902     if test -f "$where"; then
26903       CTYPESGEN="$where"
26904     elif test -f "$where/bin/ctypesgen.py"; then
26905       CTYPESGEN="$where/bin/ctypesgen.py"
26906     else
26907       CTYPESGEN="$where/ctypesgen.py"
26908     fi
26909
26910     if test ! -f "$CTYPESGEN" || test ! -x "$CTYPESGEN"; then
26911       as_fn_error $? "Could not find ctypesgen at $where/ctypesgen.py or at
26912                     $where/bin/ctypesgen.py" "$LINENO" 5
26913     else
26914       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CTYPESGEN" >&5
26915 $as_echo "$CTYPESGEN" >&6; }
26916     fi
26917   fi
26918
26919
26920
26921       ;;
26922     esac
26923
26924 else
26925
26926
26927   where=check
26928
26929   CTYPESGEN=none
26930
26931   if test $where = check; then
26932     # Extract the first word of ""ctypesgen.py"", so it can be a program name with args.
26933 set dummy "ctypesgen.py"; ac_word=$2
26934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26935 $as_echo_n "checking for $ac_word... " >&6; }
26936 if ${ac_cv_path_CTYPESGEN+:} false; then :
26937   $as_echo_n "(cached) " >&6
26938 else
26939   case $CTYPESGEN in
26940   [\\/]* | ?:[\\/]*)
26941   ac_cv_path_CTYPESGEN="$CTYPESGEN" # Let the user override the test with a path.
26942   ;;
26943   *)
26944   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26945 for as_dir in $PATH
26946 do
26947   IFS=$as_save_IFS
26948   test -z "$as_dir" && as_dir=.
26949     for ac_exec_ext in '' $ac_executable_extensions; do
26950   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26951     ac_cv_path_CTYPESGEN="$as_dir/$ac_word$ac_exec_ext"
26952     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26953     break 2
26954   fi
26955 done
26956   done
26957 IFS=$as_save_IFS
26958
26959   test -z "$ac_cv_path_CTYPESGEN" && ac_cv_path_CTYPESGEN="none"
26960   ;;
26961 esac
26962 fi
26963 CTYPESGEN=$ac_cv_path_CTYPESGEN
26964 if test -n "$CTYPESGEN"; then
26965   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CTYPESGEN" >&5
26966 $as_echo "$CTYPESGEN" >&6; }
26967 else
26968   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26969 $as_echo "no" >&6; }
26970 fi
26971
26972
26973   elif test $where != no; then
26974     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctypesgen.py" >&5
26975 $as_echo_n "checking for ctypesgen.py... " >&6; }
26976
26977     if test -f "$where"; then
26978       CTYPESGEN="$where"
26979     elif test -f "$where/bin/ctypesgen.py"; then
26980       CTYPESGEN="$where/bin/ctypesgen.py"
26981     else
26982       CTYPESGEN="$where/ctypesgen.py"
26983     fi
26984
26985     if test ! -f "$CTYPESGEN" || test ! -x "$CTYPESGEN"; then
26986       as_fn_error $? "Could not find ctypesgen at $where/ctypesgen.py or at
26987                     $where/bin/ctypesgen.py" "$LINENO" 5
26988     else
26989       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CTYPESGEN" >&5
26990 $as_echo "$CTYPESGEN" >&6; }
26991     fi
26992   fi
26993
26994
26995
26996
26997 fi
26998
26999
27000
27001 # Check whether --enable-runtime-module-search was given.
27002 if test "${enable_runtime_module_search+set}" = set; then :
27003   enableval=$enable_runtime_module_search;
27004     if test "$enableval" = "yes"; then
27005       use_dso=yes
27006       if test "$svn_enable_shared" = "no"; then
27007         as_fn_error $? "--enable-runtime-module-search conflicts with --disable-shared" "$LINENO" 5
27008       fi
27009
27010 $as_echo "#define SVN_USE_DSO 1" >>confdefs.h
27011
27012
27013                   case "$host" in
27014         *-*-darwin*)
27015
27016 $as_echo "#define SVN_DSO_SUFFIX_FMT \"%d.%d.dylib\"" >>confdefs.h
27017
27018           ;;
27019         *)
27020
27021 $as_echo "#define SVN_DSO_SUFFIX_FMT \"%d.so.%d\"" >>confdefs.h
27022
27023           ;;
27024       esac
27025     fi
27026
27027 fi
27028
27029
27030 if test "$svn_enable_shared" = "no" || test "$use_dso" != "yes"; then
27031
27032 $as_echo "#define SVN_LIBSVN_RA_LINKS_RA_LOCAL 1" >>confdefs.h
27033
27034   svn_ra_lib_deps="\$(RA_LOCAL_DEPS)"
27035   svn_ra_lib_install_deps="install-ramod-lib"
27036   svn_ra_lib_link="\$(RA_LOCAL_LINK)"
27037
27038
27039 $as_echo "#define SVN_LIBSVN_RA_LINKS_RA_SVN 1" >>confdefs.h
27040
27041   svn_ra_lib_deps="$svn_ra_lib_deps \$(RA_SVN_DEPS)"
27042   svn_ra_lib_link="$svn_ra_lib_link \$(RA_SVN_LINK)"
27043
27044   if test "$svn_lib_serf" = "yes"; then
27045
27046 $as_echo "#define SVN_LIBSVN_RA_LINKS_RA_SERF 1" >>confdefs.h
27047
27048     svn_ra_lib_deps="$svn_ra_lib_deps \$(RA_SERF_DEPS)"
27049     svn_ra_lib_install_deps="$svn_ra_lib_install_deps install-serf-lib"
27050     svn_ra_lib_link="$svn_ra_lib_link \$(RA_SERF_LINK)"
27051   fi
27052
27053   SVN_RA_LIB_DEPS=$svn_ra_lib_deps
27054   SVN_RA_LIB_INSTALL_DEPS=$svn_ra_lib_install_deps
27055   SVN_RA_LIB_LINK=$svn_ra_lib_link
27056
27057
27058 $as_echo "#define SVN_LIBSVN_FS_LINKS_FS_FS 1" >>confdefs.h
27059
27060   svn_fs_lib_deps="\$(FS_FS_DEPS)"
27061   svn_fs_lib_install_deps="install-fsmod-lib"
27062   svn_fs_lib_link="\$(FS_FS_LINK)"
27063
27064
27065 $as_echo "#define SVN_LIBSVN_FS_LINKS_FS_X 1" >>confdefs.h
27066
27067   svn_fs_lib_deps="$svn_fs_lib_deps \$(FS_X_DEPS)"
27068   svn_fs_lib_link="$svn_fs_lib_link \$(FS_X_LINK)"
27069
27070   if test "$svn_lib_berkeley_db" = "yes"; then
27071
27072 $as_echo "#define SVN_LIBSVN_FS_LINKS_FS_BASE 1" >>confdefs.h
27073
27074     svn_fs_lib_deps="$svn_fs_lib_deps \$(FS_BASE_DEPS)"
27075     svn_fs_lib_install_deps="$svn_fs_lib_install_deps install-bdb-lib"
27076     svn_fs_lib_link="$svn_fs_lib_link \$(FS_BASE_LINK)"
27077   fi
27078
27079   SVN_FS_LIB_DEPS=$svn_fs_lib_deps
27080   SVN_FS_LIB_INSTALL_DEPS=$svn_fs_lib_install_deps
27081   SVN_FS_LIB_LINK=$svn_fs_lib_link
27082 fi
27083
27084
27085
27086
27087
27088
27089
27090
27091 # ==== SVN++ =================================================================
27092
27093 do_svnxx_build=no
27094 # Check whether --enable-svnxx was given.
27095 if test "${enable_svnxx+set}" = set; then :
27096   enableval=$enable_svnxx;  if test "$enableval" = "yes" ; then
27097         { $as_echo "$as_me:${as_lineno-$LINENO}: Enabling the C++ bindings" >&5
27098 $as_echo "$as_me: Enabling the C++ bindings" >&6;}
27099         do_svnxx_build=yes
27100     fi
27101
27102 fi
27103
27104
27105 do_svnxx_test_build=no
27106 # Check whether --enable-svnxx-tests was given.
27107 if test "${enable_svnxx_tests+set}" = set; then :
27108   enableval=$enable_svnxx_tests;  if test "$enableval" = "yes" ; then
27109         { $as_echo "$as_me:${as_lineno-$LINENO}: Enabling tests for the C++ bindings" >&5
27110 $as_echo "$as_me: Enabling tests for the C++ bindings" >&6;}
27111         do_svnxx_test_build=yes
27112     fi
27113
27114 fi
27115
27116
27117
27118
27119 # Check whether --with-boost was given.
27120 if test "${with_boost+set}" = set; then :
27121   withval=$with_boost;
27122      case $withval in #(
27123   no) :
27124     want_boost="no";_AX_BOOST_BASE_boost_path="" ;; #(
27125   yes) :
27126     want_boost="yes";_AX_BOOST_BASE_boost_path="" ;; #(
27127   *) :
27128     want_boost="yes";_AX_BOOST_BASE_boost_path="$withval" ;;
27129 esac
27130
27131 else
27132   want_boost="yes"
27133 fi
27134
27135
27136
27137
27138 # Check whether --with-boost-libdir was given.
27139 if test "${with_boost_libdir+set}" = set; then :
27140   withval=$with_boost_libdir;
27141    if test -d "$withval"; then :
27142   _AX_BOOST_BASE_boost_lib_path="$withval"
27143 else
27144   as_fn_error $? "--with-boost-libdir expected directory name" "$LINENO" 5
27145 fi
27146
27147 else
27148   _AX_BOOST_BASE_boost_lib_path=""
27149 fi
27150
27151
27152 BOOST_LDFLAGS=""
27153 BOOST_CPPFLAGS=""
27154 if test "x$want_boost" = "xyes"; then :
27155
27156
27157   if test "x1.58" = "x"; then :
27158   _AX_BOOST_BASE_TONUMERICVERSION_req="1.20.0"
27159 else
27160   _AX_BOOST_BASE_TONUMERICVERSION_req="1.58"
27161 fi
27162   _AX_BOOST_BASE_TONUMERICVERSION_req_shorten=`expr $_AX_BOOST_BASE_TONUMERICVERSION_req : '\([0-9]*\.[0-9]*\)'`
27163   _AX_BOOST_BASE_TONUMERICVERSION_req_major=`expr $_AX_BOOST_BASE_TONUMERICVERSION_req : '\([0-9]*\)'`
27164   if test "x$_AX_BOOST_BASE_TONUMERICVERSION_req_major" = "x"; then :
27165   as_fn_error $? "You should at least specify libboost major version" "$LINENO" 5
27166 fi
27167   _AX_BOOST_BASE_TONUMERICVERSION_req_minor=`expr $_AX_BOOST_BASE_TONUMERICVERSION_req : '[0-9]*\.\([0-9]*\)'`
27168   if test "x$_AX_BOOST_BASE_TONUMERICVERSION_req_minor" = "x"; then :
27169   _AX_BOOST_BASE_TONUMERICVERSION_req_minor="0"
27170 fi
27171   _AX_BOOST_BASE_TONUMERICVERSION_req_sub_minor=`expr $_AX_BOOST_BASE_TONUMERICVERSION_req : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
27172   if test "X$_AX_BOOST_BASE_TONUMERICVERSION_req_sub_minor" = "X"; then :
27173   _AX_BOOST_BASE_TONUMERICVERSION_req_sub_minor="0"
27174 fi
27175   _AX_BOOST_BASE_TONUMERICVERSION_RET=`expr $_AX_BOOST_BASE_TONUMERICVERSION_req_major \* 100000 \+  $_AX_BOOST_BASE_TONUMERICVERSION_req_minor \* 100 \+ $_AX_BOOST_BASE_TONUMERICVERSION_req_sub_minor`
27176   WANT_BOOST_VERSION=$_AX_BOOST_BASE_TONUMERICVERSION_RET
27177
27178     succeeded=no
27179
27180
27181
27182                         case ${host_cpu} in #(
27183   x86_64) :
27184     libsubdirs="lib64 libx32 lib lib64" ;; #(
27185   ppc64|powerpc64|s390x|sparc64|aarch64|ppc64le|powerpc64le|riscv64) :
27186     libsubdirs="lib64 lib lib64" ;; #(
27187   *) :
27188     libsubdirs="lib"
27189      ;;
27190 esac
27191
27192                 case ${host_cpu} in #(
27193   i?86) :
27194     multiarch_libsubdir="lib/i386-${host_os}" ;; #(
27195   *) :
27196     multiarch_libsubdir="lib/${host_cpu}-${host_os}"
27197      ;;
27198 esac
27199
27200                 if test "x$_AX_BOOST_BASE_boost_path" != "x"; then :
27201
27202         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for boostlib >= 1.58 ($WANT_BOOST_VERSION) includes in \"$_AX_BOOST_BASE_boost_path/include\"" >&5
27203 $as_echo_n "checking for boostlib >= 1.58 ($WANT_BOOST_VERSION) includes in \"$_AX_BOOST_BASE_boost_path/include\"... " >&6; }
27204          if test -d "$_AX_BOOST_BASE_boost_path/include" && test -r "$_AX_BOOST_BASE_boost_path/include"; then :
27205
27206            { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27207 $as_echo "yes" >&6; }
27208            BOOST_CPPFLAGS="-I$_AX_BOOST_BASE_boost_path/include"
27209            for _AX_BOOST_BASE_boost_path_tmp in $multiarch_libsubdir $libsubdirs; do
27210                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for boostlib >= 1.58 ($WANT_BOOST_VERSION) lib path in \"$_AX_BOOST_BASE_boost_path/$_AX_BOOST_BASE_boost_path_tmp\"" >&5
27211 $as_echo_n "checking for boostlib >= 1.58 ($WANT_BOOST_VERSION) lib path in \"$_AX_BOOST_BASE_boost_path/$_AX_BOOST_BASE_boost_path_tmp\"... " >&6; }
27212                 if test -d "$_AX_BOOST_BASE_boost_path/$_AX_BOOST_BASE_boost_path_tmp" && test -r "$_AX_BOOST_BASE_boost_path/$_AX_BOOST_BASE_boost_path_tmp" ; then :
27213
27214                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27215 $as_echo "yes" >&6; }
27216                         BOOST_LDFLAGS="-L$_AX_BOOST_BASE_boost_path/$_AX_BOOST_BASE_boost_path_tmp";
27217                         break;
27218
27219 else
27220   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27221 $as_echo "no" >&6; }
27222 fi
27223            done
27224 else
27225
27226       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27227 $as_echo "no" >&6; }
27228 fi
27229
27230 else
27231
27232         if test X"$cross_compiling" = Xyes; then
27233             search_libsubdirs=$multiarch_libsubdir
27234         else
27235             search_libsubdirs="$multiarch_libsubdir $libsubdirs"
27236         fi
27237         for _AX_BOOST_BASE_boost_path_tmp in /usr /usr/local /opt /opt/local ; do
27238             if test -d "$_AX_BOOST_BASE_boost_path_tmp/include/boost" && test -r "$_AX_BOOST_BASE_boost_path_tmp/include/boost" ; then
27239                 for libsubdir in $search_libsubdirs ; do
27240                     if ls "$_AX_BOOST_BASE_boost_path_tmp/$libsubdir/libboost_"* >/dev/null 2>&1 ; then break; fi
27241                 done
27242                 BOOST_LDFLAGS="-L$_AX_BOOST_BASE_boost_path_tmp/$libsubdir"
27243                 BOOST_CPPFLAGS="-I$_AX_BOOST_BASE_boost_path_tmp/include"
27244                 break;
27245             fi
27246         done
27247
27248 fi
27249
27250             if test "x$_AX_BOOST_BASE_boost_lib_path" != "x"; then :
27251   BOOST_LDFLAGS="-L$_AX_BOOST_BASE_boost_lib_path"
27252 fi
27253
27254     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for boostlib >= 1.58 ($WANT_BOOST_VERSION)" >&5
27255 $as_echo_n "checking for boostlib >= 1.58 ($WANT_BOOST_VERSION)... " >&6; }
27256     CPPFLAGS_SAVED="$CPPFLAGS"
27257     CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
27258     export CPPFLAGS
27259
27260     LDFLAGS_SAVED="$LDFLAGS"
27261     LDFLAGS="$LDFLAGS $BOOST_LDFLAGS"
27262     export LDFLAGS
27263
27264
27265     ac_ext=cpp
27266 ac_cpp='$CXXCPP $CPPFLAGS'
27267 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27268 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27269 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27270
27271         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27272 /* end confdefs.h.  */
27273
27274 #include <boost/version.hpp>
27275
27276 int
27277 main ()
27278 {
27279
27280 (void) ((void)sizeof(char[1 - 2*!!((BOOST_VERSION) < ($WANT_BOOST_VERSION))]));
27281
27282   ;
27283   return 0;
27284 }
27285 _ACEOF
27286 if ac_fn_cxx_try_compile "$LINENO"; then :
27287
27288         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27289 $as_echo "yes" >&6; }
27290     succeeded=yes
27291     found_system=yes
27292
27293 fi
27294 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27295     ac_ext=c
27296 ac_cpp='$CPP $CPPFLAGS'
27297 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27298 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27299 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27300
27301
27302
27303
27304             if test "x$succeeded" != "xyes" ; then
27305         CPPFLAGS="$CPPFLAGS_SAVED"
27306         LDFLAGS="$LDFLAGS_SAVED"
27307         BOOST_CPPFLAGS=
27308         if test -z "$_AX_BOOST_BASE_boost_lib_path" ; then
27309             BOOST_LDFLAGS=
27310         fi
27311         _version=0
27312         if test -n "$_AX_BOOST_BASE_boost_path" ; then
27313             if test -d "$_AX_BOOST_BASE_boost_path" && test -r "$_AX_BOOST_BASE_boost_path"; then
27314                 for i in `ls -d $_AX_BOOST_BASE_boost_path/include/boost-* 2>/dev/null`; do
27315                     _version_tmp=`echo $i | sed "s#$_AX_BOOST_BASE_boost_path##" | sed 's/\/include\/boost-//' | sed 's/_/./'`
27316                     V_CHECK=`expr $_version_tmp \> $_version`
27317                     if test "x$V_CHECK" = "x1" ; then
27318                         _version=$_version_tmp
27319                     fi
27320                     VERSION_UNDERSCORE=`echo $_version | sed 's/\./_/'`
27321                     BOOST_CPPFLAGS="-I$_AX_BOOST_BASE_boost_path/include/boost-$VERSION_UNDERSCORE"
27322                 done
27323                                 if test -z "$BOOST_CPPFLAGS"; then
27324                     if test -d "$_AX_BOOST_BASE_boost_path/boost" && test -r "$_AX_BOOST_BASE_boost_path/boost"; then
27325                         BOOST_CPPFLAGS="-I$_AX_BOOST_BASE_boost_path"
27326                     fi
27327                 fi
27328                                                 if test -n "$BOOST_CPPFLAGS" && test -z "$BOOST_LDFLAGS"; then
27329                     for libsubdir in $libsubdirs ; do
27330                         if ls "$_AX_BOOST_BASE_boost_path/$libsubdir/libboost_"* >/dev/null 2>&1 ; then break; fi
27331                     done
27332                     BOOST_LDFLAGS="-L$_AX_BOOST_BASE_boost_path/$libsubdir"
27333                 fi
27334             fi
27335         else
27336             if test "x$cross_compiling" != "xyes" ; then
27337                 for _AX_BOOST_BASE_boost_path in /usr /usr/local /opt /opt/local ; do
27338                     if test -d "$_AX_BOOST_BASE_boost_path" && test -r "$_AX_BOOST_BASE_boost_path" ; then
27339                         for i in `ls -d $_AX_BOOST_BASE_boost_path/include/boost-* 2>/dev/null`; do
27340                             _version_tmp=`echo $i | sed "s#$_AX_BOOST_BASE_boost_path##" | sed 's/\/include\/boost-//' | sed 's/_/./'`
27341                             V_CHECK=`expr $_version_tmp \> $_version`
27342                             if test "x$V_CHECK" = "x1" ; then
27343                                 _version=$_version_tmp
27344                                 best_path=$_AX_BOOST_BASE_boost_path
27345                             fi
27346                         done
27347                     fi
27348                 done
27349
27350                 VERSION_UNDERSCORE=`echo $_version | sed 's/\./_/'`
27351                 BOOST_CPPFLAGS="-I$best_path/include/boost-$VERSION_UNDERSCORE"
27352                 if test -z "$_AX_BOOST_BASE_boost_lib_path" ; then
27353                     for libsubdir in $libsubdirs ; do
27354                         if ls "$best_path/$libsubdir/libboost_"* >/dev/null 2>&1 ; then break; fi
27355                     done
27356                     BOOST_LDFLAGS="-L$best_path/$libsubdir"
27357                 fi
27358             fi
27359
27360             if test -n "$BOOST_ROOT" ; then
27361                 for libsubdir in $libsubdirs ; do
27362                     if ls "$BOOST_ROOT/stage/$libsubdir/libboost_"* >/dev/null 2>&1 ; then break; fi
27363                 done
27364                 if test -d "$BOOST_ROOT" && test -r "$BOOST_ROOT" && test -d "$BOOST_ROOT/stage/$libsubdir" && test -r "$BOOST_ROOT/stage/$libsubdir"; then
27365                     version_dir=`expr //$BOOST_ROOT : '.*/\(.*\)'`
27366                     stage_version=`echo $version_dir | sed 's/boost_//' | sed 's/_/./g'`
27367                         stage_version_shorten=`expr $stage_version : '\([0-9]*\.[0-9]*\)'`
27368                     V_CHECK=`expr $stage_version_shorten \>\= $_version`
27369                     if test "x$V_CHECK" = "x1" && test -z "$_AX_BOOST_BASE_boost_lib_path" ; then
27370                         { $as_echo "$as_me:${as_lineno-$LINENO}: We will use a staged boost library from $BOOST_ROOT" >&5
27371 $as_echo "$as_me: We will use a staged boost library from $BOOST_ROOT" >&6;}
27372                         BOOST_CPPFLAGS="-I$BOOST_ROOT"
27373                         BOOST_LDFLAGS="-L$BOOST_ROOT/stage/$libsubdir"
27374                     fi
27375                 fi
27376             fi
27377         fi
27378
27379         CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
27380         export CPPFLAGS
27381         LDFLAGS="$LDFLAGS $BOOST_LDFLAGS"
27382         export LDFLAGS
27383
27384         ac_ext=cpp
27385 ac_cpp='$CXXCPP $CPPFLAGS'
27386 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27387 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27388 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27389
27390             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27391 /* end confdefs.h.  */
27392
27393 #include <boost/version.hpp>
27394
27395 int
27396 main ()
27397 {
27398
27399 (void) ((void)sizeof(char[1 - 2*!!((BOOST_VERSION) < ($WANT_BOOST_VERSION))]));
27400
27401   ;
27402   return 0;
27403 }
27404 _ACEOF
27405 if ac_fn_cxx_try_compile "$LINENO"; then :
27406
27407             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27408 $as_echo "yes" >&6; }
27409         succeeded=yes
27410         found_system=yes
27411
27412 fi
27413 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27414         ac_ext=c
27415 ac_cpp='$CPP $CPPFLAGS'
27416 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27417 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27418 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27419
27420     fi
27421
27422     if test "x$succeeded" != "xyes" ; then
27423         if test "x$_version" = "x0" ; then
27424             { $as_echo "$as_me:${as_lineno-$LINENO}: We could not detect the boost libraries (version 1.58 or higher). If you have a staged boost library (still not installed) please specify \$BOOST_ROOT in your environment and do not give a PATH to --with-boost option.  If you are sure you have boost installed, then check your version number looking in <boost/version.hpp>. See http://randspringer.de/boost for more documentation." >&5
27425 $as_echo "$as_me: We could not detect the boost libraries (version 1.58 or higher). If you have a staged boost library (still not installed) please specify \$BOOST_ROOT in your environment and do not give a PATH to --with-boost option.  If you are sure you have boost installed, then check your version number looking in <boost/version.hpp>. See http://randspringer.de/boost for more documentation." >&6;}
27426         else
27427             { $as_echo "$as_me:${as_lineno-$LINENO}: Your boost libraries seems to old (version $_version)." >&5
27428 $as_echo "$as_me: Your boost libraries seems to old (version $_version)." >&6;}
27429         fi
27430         # execute ACTION-IF-NOT-FOUND (if present):
27431
27432     if test "$do_svnxx_test_build" = "yes"; then
27433         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Tests for the C++ bindings require Boost and Boost.Test" >&5
27434 $as_echo "$as_me: WARNING: Tests for the C++ bindings require Boost and Boost.Test" >&2;}
27435         do_svnxx_test_build=no
27436     fi
27437
27438     else
27439
27440 $as_echo "#define HAVE_BOOST /**/" >>confdefs.h
27441
27442         # execute ACTION-IF-FOUND (if present):
27443
27444     if test "$do_svnxx_test_build" = "yes"; then
27445
27446
27447 # Check whether --with-boost-unit-test-framework was given.
27448 if test "${with_boost_unit_test_framework+set}" = set; then :
27449   withval=$with_boost_unit_test_framework;
27450         if test "$withval" = "no"; then
27451                         want_boost="no"
27452         elif test "$withval" = "yes"; then
27453             want_boost="yes"
27454             ax_boost_user_unit_test_framework_lib=""
27455         else
27456                     want_boost="yes"
27457                 ax_boost_user_unit_test_framework_lib="$withval"
27458                 fi
27459
27460 else
27461   want_boost="yes"
27462
27463 fi
27464
27465
27466         if test "x$want_boost" = "xyes"; then
27467
27468                 CPPFLAGS_SAVED="$CPPFLAGS"
27469                 CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
27470                 export CPPFLAGS
27471
27472                 LDFLAGS_SAVED="$LDFLAGS"
27473                 LDFLAGS="$LDFLAGS $BOOST_LDFLAGS"
27474                 export LDFLAGS
27475
27476         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the Boost::Unit_Test_Framework library is available" >&5
27477 $as_echo_n "checking whether the Boost::Unit_Test_Framework library is available... " >&6; }
27478 if ${ax_cv_boost_unit_test_framework+:} false; then :
27479   $as_echo_n "(cached) " >&6
27480 else
27481   ac_ext=cpp
27482 ac_cpp='$CXXCPP $CPPFLAGS'
27483 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27484 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27485 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27486
27487                          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27488 /* end confdefs.h.  */
27489 #include <boost/test/unit_test.hpp>
27490 int
27491 main ()
27492 {
27493 using boost::unit_test::test_suite;
27494                                                          test_suite* test= BOOST_TEST_SUITE( "Unit test example 1" ); if (test == NULL) { return 1; } else { return 0; }
27495   ;
27496   return 0;
27497 }
27498 _ACEOF
27499 if ac_fn_cxx_try_compile "$LINENO"; then :
27500   ax_cv_boost_unit_test_framework=yes
27501 else
27502   ax_cv_boost_unit_test_framework=no
27503 fi
27504 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27505          ac_ext=c
27506 ac_cpp='$CPP $CPPFLAGS'
27507 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27508 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27509 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27510
27511
27512 fi
27513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_boost_unit_test_framework" >&5
27514 $as_echo "$ax_cv_boost_unit_test_framework" >&6; }
27515                 if test "x$ax_cv_boost_unit_test_framework" = "xyes"; then
27516
27517 $as_echo "#define HAVE_BOOST_UNIT_TEST_FRAMEWORK /**/" >>confdefs.h
27518
27519             BOOSTLIBDIR=`echo $BOOST_LDFLAGS | sed -e 's/[^\/]*//'`
27520
27521             if test "x$ax_boost_user_unit_test_framework_lib" = "x"; then
27522                         saved_ldflags="${LDFLAGS}"
27523                 for monitor_library in `ls $BOOSTLIBDIR/libboost_unit_test_framework*.so* $BOOSTLIBDIR/libboost_unit_test_framework*.dylib* $BOOSTLIBDIR/libboost_unit_test_framework*.a* 2>/dev/null` ; do
27524                     if test -r $monitor_library ; then
27525                        libextension=`echo $monitor_library | sed 's,.*/,,' | sed -e 's;^lib\(boost_unit_test_framework.*\)\.so.*$;\1;' -e 's;^lib\(boost_unit_test_framework.*\)\.dylib.*$;\1;' -e 's;^lib\(boost_unit_test_framework.*\)\.a.*$;\1;'`
27526                        ax_lib=${libextension}
27527                        link_unit_test_framework="yes"
27528                     else
27529                        link_unit_test_framework="no"
27530                     fi
27531
27532                             if test "x$link_unit_test_framework" = "xyes"; then
27533                       BOOST_UNIT_TEST_FRAMEWORK_LIB="-l$ax_lib"
27534
27535                                           break
27536                                     fi
27537                 done
27538                 if test "x$link_unit_test_framework" != "xyes"; then
27539                 for libextension in `ls $BOOSTLIBDIR/boost_unit_test_framework*.dll* $BOOSTLIBDIR/boost_unit_test_framework*.a* 2>/dev/null  | sed 's,.*/,,' | sed -e 's;^\(boost_unit_test_framework.*\)\.dll.*$;\1;' -e 's;^\(boost_unit_test_framework.*\)\.a.*$;\1;'` ; do
27540                      ax_lib=${libextension}
27541                                     as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_exit" | $as_tr_sh`
27542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exit in -l$ax_lib" >&5
27543 $as_echo_n "checking for exit in -l$ax_lib... " >&6; }
27544 if eval \${$as_ac_Lib+:} false; then :
27545   $as_echo_n "(cached) " >&6
27546 else
27547   ac_check_lib_save_LIBS=$LIBS
27548 LIBS="-l$ax_lib  $LIBS"
27549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27550 /* end confdefs.h.  */
27551
27552 /* Override any GCC internal prototype to avoid an error.
27553    Use char because int might match the return type of a GCC
27554    builtin and then its argument prototype would still apply.  */
27555 #ifdef __cplusplus
27556 extern "C"
27557 #endif
27558 char exit ();
27559 int
27560 main ()
27561 {
27562 return exit ();
27563   ;
27564   return 0;
27565 }
27566 _ACEOF
27567 if ac_fn_c_try_link "$LINENO"; then :
27568   eval "$as_ac_Lib=yes"
27569 else
27570   eval "$as_ac_Lib=no"
27571 fi
27572 rm -f core conftest.err conftest.$ac_objext \
27573     conftest$ac_exeext conftest.$ac_ext
27574 LIBS=$ac_check_lib_save_LIBS
27575 fi
27576 eval ac_res=\$$as_ac_Lib
27577                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
27578 $as_echo "$ac_res" >&6; }
27579 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
27580   BOOST_UNIT_TEST_FRAMEWORK_LIB="-l$ax_lib";  link_unit_test_framework="yes"; break
27581 else
27582   link_unit_test_framework="no"
27583 fi
27584
27585                                 done
27586                 fi
27587             else
27588                 link_unit_test_framework="no"
27589                         saved_ldflags="${LDFLAGS}"
27590                 for ax_lib in boost_unit_test_framework-$ax_boost_user_unit_test_framework_lib $ax_boost_user_unit_test_framework_lib ; do
27591                    if test "x$link_unit_test_framework" = "xyes"; then
27592                       break;
27593                    fi
27594                    for unittest_library in `ls $BOOSTLIBDIR/lib${ax_lib}.so* $BOOSTLIBDIR/lib${ax_lib}.a* 2>/dev/null` ; do
27595                    if test -r $unittest_library ; then
27596                        libextension=`echo $unittest_library | sed 's,.*/,,' | sed -e 's;^lib\(boost_unit_test_framework.*\)\.so.*$;\1;' -e 's;^lib\(boost_unit_test_framework.*\)\.a*$;\1;'`
27597                        ax_lib=${libextension}
27598                        link_unit_test_framework="yes"
27599                     else
27600                        link_unit_test_framework="no"
27601                     fi
27602
27603                                 if test "x$link_unit_test_framework" = "xyes"; then
27604                         BOOST_UNIT_TEST_FRAMEWORK_LIB="-l$ax_lib"
27605
27606                                             break
27607                                     fi
27608                   done
27609                done
27610             fi
27611             if test "x$ax_lib" = "x"; then
27612                 as_fn_error $? "Could not find a version of the library!" "$LINENO" 5
27613             fi
27614                         if test "x$link_unit_test_framework" != "xyes"; then
27615                                 as_fn_error $? "Could not link against $ax_lib !" "$LINENO" 5
27616                         fi
27617                 fi
27618
27619                 CPPFLAGS="$CPPFLAGS_SAVED"
27620         LDFLAGS="$LDFLAGS_SAVED"
27621         fi
27622
27623     fi
27624
27625     fi
27626
27627     CPPFLAGS="$CPPFLAGS_SAVED"
27628     LDFLAGS="$LDFLAGS_SAVED"
27629
27630
27631 fi
27632
27633
27634
27635
27636 if test "$do_svnxx_test_build" = "yes"; then
27637     if test "$want_boost" != "yes"; then
27638         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Tests for the C++ bindings require Boost and Boost.Test" >&5
27639 $as_echo "$as_me: WARNING: Tests for the C++ bindings require Boost and Boost.Test" >&2;}
27640         do_svnxx_test_build=no
27641         SVN_BUILD_SVNXX_TESTS=false
27642     else
27643         if test "$do_svnxx_build" != "yes"; then
27644             { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Enabling the C++ bindings because their tests are enabled" >&5
27645 $as_echo "$as_me: WARNING: Enabling the C++ bindings because their tests are enabled" >&2;}
27646             do_svnxx_build=yes
27647         fi
27648         SVN_BUILD_SVNXX_TESTS=true
27649     fi
27650 else
27651     SVN_BUILD_SVNXX_TESTS=false
27652 fi
27653
27654 if test "$do_svnxx_build" = "yes"; then
27655     SVN_BUILD_SVNXX=true
27656 else
27657     SVN_BUILD_SVNXX=false
27658 fi
27659
27660
27661
27662
27663 # ==== JavaHL ================================================================
27664
27665 do_javahl_build=no
27666 # Check whether --enable-javahl was given.
27667 if test "${enable_javahl+set}" = set; then :
27668   enableval=$enable_javahl;  if test "$enableval" = "yes" ; then
27669         do_javahl_build="yes"
27670     fi
27671
27672 fi
27673
27674
27675 JAVAHL_OBJDIR=""
27676 INSTALL_EXTRA_JAVAHL_LIB=""
27677 FIX_JAVAHL_LIB=""
27678 JAVAHL_TESTS_TARGET=""
27679 JAVAHL_COMPAT_TESTS_TARGET=""
27680 LT_CXX_LIBADD=""
27681 if test "$do_javahl_build" = "yes"; then
27682     if test "$JDK_SUITABLE" = "no"; then
27683     as_fn_error $? "Cannot compile JavaHL without a suitable JDK.
27684                   Please specify a suitable JDK using the --with-jdk option." "$LINENO" 5
27685   fi
27686
27687     JAVAHL_OBJDIR='$(libsvnjavahl_PATH)/.libs'
27688
27689   os_arch=`uname`
27690   if test "$os_arch" = "Darwin"; then
27691         INSTALL_EXTRA_JAVAHL_LIB='ln -sf $(libdir)/libsvnjavahl-1.dylib $(libdir)/libsvnjavahl-1.jnilib'
27692     FIX_JAVAHL_LIB="ln -sf libsvnjavahl-1.dylib $JAVAHL_OBJDIR/libsvnjavahl-1.jnilib"
27693   fi
27694   # This segment (and the rest of r10800) is very likely unnecessary
27695   # with libtool 1.5, which automatically adds libstdc++ as a
27696   # dependency to the C++ libraries it builds.  So at some future time
27697   # when autogen.sh requires libtool 1.5 or higher, we can get rid of
27698   # it.
27699   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for additional flags to link C++ libraries" >&5
27700 $as_echo_n "checking for additional flags to link C++ libraries... " >&6; }
27701   if test "x$ac_compiler_gnu" = "xyes"; then
27702     case "$host" in
27703       *freebsd10*)
27704         { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
27705 $as_echo "none needed" >&6; }
27706       ;;
27707       *)
27708         LT_CXX_LIBADD="-lstdc++"
27709         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LT_CXX_LIBADD" >&5
27710 $as_echo "$LT_CXX_LIBADD" >&6; }
27711       ;;
27712     esac
27713   else
27714     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
27715 $as_echo "none needed" >&6; }
27716   fi
27717 fi
27718
27719
27720
27721
27722
27723
27724 # Check whether --with-junit was given.
27725 if test "${with_junit+set}" = set; then :
27726   withval=$with_junit;
27727     if test "$withval" != "no"; then
27728       if test -n "$JAVA_CLASSPATH"; then
27729         JAVA_CLASSPATH="$withval:$JAVA_CLASSPATH"
27730       else
27731         JAVA_CLASSPATH="$withval"
27732       fi
27733       JAVAHL_TESTS_TARGET="javahl-tests"
27734       JAVAHL_COMPAT_TESTS_TARGET="javahl-compat-tests"
27735     fi
27736
27737 fi
27738
27739
27740
27741
27742
27743 # ==== Miscellaneous bits ====================================================
27744
27745 for ac_header in stdbool.h stdint.h
27746 do :
27747   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
27748 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
27749 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
27750   cat >>confdefs.h <<_ACEOF
27751 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
27752 _ACEOF
27753
27754 fi
27755
27756 done
27757
27758
27759 # Strip '-no-cpp-precomp' from CPPFLAGS for the clang compiler
27760 ### I think we get this flag from APR, so the fix probably belongs there
27761 if test "$CC" = "clang"; then
27762
27763   CPPFLAGS=`echo "$CPPFLAGS" | $SED -e 's/-no-cpp-precomp //'`
27764
27765 fi
27766
27767
27768 cat >>confdefs.h <<_ACEOF
27769 #define SVN_PATH_LOCAL_SEPARATOR '/'
27770 _ACEOF
27771
27772
27773
27774 cat >>confdefs.h <<_ACEOF
27775 #define SVN_NULL_DEVICE_NAME "/dev/null"
27776 _ACEOF
27777
27778
27779 DEFAULT_FS_TYPE="fsfs"
27780
27781 cat >>confdefs.h <<_ACEOF
27782 #define DEFAULT_FS_TYPE "$DEFAULT_FS_TYPE"
27783 _ACEOF
27784
27785
27786 DEFAULT_HTTP_LIBRARY="serf"
27787
27788 cat >>confdefs.h <<_ACEOF
27789 #define DEFAULT_HTTP_LIBRARY "$DEFAULT_HTTP_LIBRARY"
27790 _ACEOF
27791
27792
27793 # BSD/OS (BSDi) needs to use a different include syntax in Makefile
27794 INCLUDE_OUTPUTS="include \$(top_srcdir)/build-outputs.mk"
27795 case "$host" in
27796   *bsdi*)
27797     # Check whether they've installed GNU make
27798     if ! make --version > /dev/null 2>&1; then
27799       # BSDi make
27800       INCLUDE_OUTPUTS=".include \"\$(top_srcdir)/build-outputs.mk\""
27801     fi
27802     ;;
27803 esac
27804
27805
27806 # ==== Detection complete - output and run config.status =====================
27807
27808 ac_config_headers="$ac_config_headers subversion/svn_private_config.h.tmp:subversion/svn_private_config.h.in"
27809
27810 ac_config_commands="$ac_config_commands svn_private_config.h.tmp"
27811
27812 ac_config_files="$ac_config_files Makefile"
27813
27814
27815 # Create pkg-config .pc files from .pc.in files
27816 for pc_in_file in "${abs_srcdir}"/subversion/libsvn_*/*.pc.in; do
27817   pc_file=${pc_in_file#${abs_srcdir}/}
27818   pc_file=${pc_file%.in}
27819   ac_config_files="$ac_config_files ${pc_file}"
27820
27821 done
27822
27823
27824   SVN_CONFIG_SCRIPT_FILES="$SVN_CONFIG_SCRIPT_FILES tools/backup/hot-backup.py"
27825   ac_config_files="$ac_config_files tools/backup/hot-backup.py"
27826
27827
27828   SVN_CONFIG_SCRIPT_FILES="$SVN_CONFIG_SCRIPT_FILES tools/hook-scripts/commit-access-control.pl"
27829   ac_config_files="$ac_config_files tools/hook-scripts/commit-access-control.pl"
27830
27831
27832   SVN_CONFIG_SCRIPT_FILES="$SVN_CONFIG_SCRIPT_FILES subversion/bindings/swig/perl/native/Makefile.PL"
27833   ac_config_files="$ac_config_files subversion/bindings/swig/perl/native/Makefile.PL"
27834
27835 if test -e packages/solaris/pkginfo.in; then
27836
27837   SVN_CONFIG_SCRIPT_FILES="$SVN_CONFIG_SCRIPT_FILES packages/solaris/pkginfo"
27838   ac_config_files="$ac_config_files packages/solaris/pkginfo"
27839
27840 fi
27841
27842
27843 # Ensure that SWIG is checked after reconfiguration.
27844 rm -f .swig_checked .swig_pl_checked .swig_py_checked .swig_rb_checked
27845
27846
27847 cat >>confdefs.h <<_ACEOF
27848 #define SVN_BUILD_HOST "${host}"
27849 _ACEOF
27850
27851
27852
27853 cat >>confdefs.h <<_ACEOF
27854 #define SVN_BUILD_TARGET "${target}"
27855 _ACEOF
27856
27857
27858 cat >confcache <<\_ACEOF
27859 # This file is a shell script that caches the results of configure
27860 # tests run on this system so they can be shared between configure
27861 # scripts and configure runs, see configure's option --config-cache.
27862 # It is not useful on other systems.  If it contains results you don't
27863 # want to keep, you may remove or edit it.
27864 #
27865 # config.status only pays attention to the cache file if you give it
27866 # the --recheck option to rerun configure.
27867 #
27868 # `ac_cv_env_foo' variables (set or unset) will be overridden when
27869 # loading this file, other *unset* `ac_cv_foo' will be assigned the
27870 # following values.
27871
27872 _ACEOF
27873
27874 # The following way of writing the cache mishandles newlines in values,
27875 # but we know of no workaround that is simple, portable, and efficient.
27876 # So, we kill variables containing newlines.
27877 # Ultrix sh set writes to stderr and can't be redirected directly,
27878 # and sets the high bit in the cache file unless we assign to the vars.
27879 (
27880   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
27881     eval ac_val=\$$ac_var
27882     case $ac_val in #(
27883     *${as_nl}*)
27884       case $ac_var in #(
27885       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
27886 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
27887       esac
27888       case $ac_var in #(
27889       _ | IFS | as_nl) ;; #(
27890       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
27891       *) { eval $ac_var=; unset $ac_var;} ;;
27892       esac ;;
27893     esac
27894   done
27895
27896   (set) 2>&1 |
27897     case $as_nl`(ac_space=' '; set) 2>&1` in #(
27898     *${as_nl}ac_space=\ *)
27899       # `set' does not quote correctly, so add quotes: double-quote
27900       # substitution turns \\\\ into \\, and sed turns \\ into \.
27901       sed -n \
27902         "s/'/'\\\\''/g;
27903           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
27904       ;; #(
27905     *)
27906       # `set' quotes correctly as required by POSIX, so do not add quotes.
27907       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
27908       ;;
27909     esac |
27910     sort
27911 ) |
27912   sed '
27913      /^ac_cv_env_/b end
27914      t clear
27915      :clear
27916      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
27917      t end
27918      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
27919      :end' >>confcache
27920 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
27921   if test -w "$cache_file"; then
27922     if test "x$cache_file" != "x/dev/null"; then
27923       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
27924 $as_echo "$as_me: updating cache $cache_file" >&6;}
27925       if test ! -f "$cache_file" || test -h "$cache_file"; then
27926         cat confcache >"$cache_file"
27927       else
27928         case $cache_file in #(
27929         */* | ?:*)
27930           mv -f confcache "$cache_file"$$ &&
27931           mv -f "$cache_file"$$ "$cache_file" ;; #(
27932         *)
27933           mv -f confcache "$cache_file" ;;
27934         esac
27935       fi
27936     fi
27937   else
27938     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
27939 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
27940   fi
27941 fi
27942 rm -f confcache
27943
27944 test "x$prefix" = xNONE && prefix=$ac_default_prefix
27945 # Let make expand exec_prefix.
27946 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
27947
27948 DEFS=-DHAVE_CONFIG_H
27949
27950 ac_libobjs=
27951 ac_ltlibobjs=
27952 U=
27953 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
27954   # 1. Remove the extension, and $U if already installed.
27955   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
27956   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
27957   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
27958   #    will be set to the directory where LIBOBJS objects are built.
27959   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
27960   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
27961 done
27962 LIBOBJS=$ac_libobjs
27963
27964 LTLIBOBJS=$ac_ltlibobjs
27965
27966
27967
27968 : "${CONFIG_STATUS=./config.status}"
27969 ac_write_fail=0
27970 ac_clean_files_save=$ac_clean_files
27971 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
27972 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
27973 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
27974 as_write_fail=0
27975 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
27976 #! $SHELL
27977 # Generated by $as_me.
27978 # Run this file to recreate the current configuration.
27979 # Compiler output produced by configure, useful for debugging
27980 # configure, is in config.log if it exists.
27981
27982 debug=false
27983 ac_cs_recheck=false
27984 ac_cs_silent=false
27985
27986 SHELL=\${CONFIG_SHELL-$SHELL}
27987 export SHELL
27988 _ASEOF
27989 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
27990 ## -------------------- ##
27991 ## M4sh Initialization. ##
27992 ## -------------------- ##
27993
27994 # Be more Bourne compatible
27995 DUALCASE=1; export DUALCASE # for MKS sh
27996 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
27997   emulate sh
27998   NULLCMD=:
27999   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
28000   # is contrary to our usage.  Disable this feature.
28001   alias -g '${1+"$@"}'='"$@"'
28002   setopt NO_GLOB_SUBST
28003 else
28004   case `(set -o) 2>/dev/null` in #(
28005   *posix*) :
28006     set -o posix ;; #(
28007   *) :
28008      ;;
28009 esac
28010 fi
28011
28012
28013 as_nl='
28014 '
28015 export as_nl
28016 # Printing a long string crashes Solaris 7 /usr/bin/printf.
28017 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
28018 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
28019 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
28020 # Prefer a ksh shell builtin over an external printf program on Solaris,
28021 # but without wasting forks for bash or zsh.
28022 if test -z "$BASH_VERSION$ZSH_VERSION" \
28023     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
28024   as_echo='print -r --'
28025   as_echo_n='print -rn --'
28026 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
28027   as_echo='printf %s\n'
28028   as_echo_n='printf %s'
28029 else
28030   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
28031     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
28032     as_echo_n='/usr/ucb/echo -n'
28033   else
28034     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
28035     as_echo_n_body='eval
28036       arg=$1;
28037       case $arg in #(
28038       *"$as_nl"*)
28039         expr "X$arg" : "X\\(.*\\)$as_nl";
28040         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
28041       esac;
28042       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
28043     '
28044     export as_echo_n_body
28045     as_echo_n='sh -c $as_echo_n_body as_echo'
28046   fi
28047   export as_echo_body
28048   as_echo='sh -c $as_echo_body as_echo'
28049 fi
28050
28051 # The user is always right.
28052 if test "${PATH_SEPARATOR+set}" != set; then
28053   PATH_SEPARATOR=:
28054   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
28055     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
28056       PATH_SEPARATOR=';'
28057   }
28058 fi
28059
28060
28061 # IFS
28062 # We need space, tab and new line, in precisely that order.  Quoting is
28063 # there to prevent editors from complaining about space-tab.
28064 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
28065 # splitting by setting IFS to empty value.)
28066 IFS=" ""        $as_nl"
28067
28068 # Find who we are.  Look in the path if we contain no directory separator.
28069 as_myself=
28070 case $0 in #((
28071   *[\\/]* ) as_myself=$0 ;;
28072   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28073 for as_dir in $PATH
28074 do
28075   IFS=$as_save_IFS
28076   test -z "$as_dir" && as_dir=.
28077     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
28078   done
28079 IFS=$as_save_IFS
28080
28081      ;;
28082 esac
28083 # We did not find ourselves, most probably we were run as `sh COMMAND'
28084 # in which case we are not to be found in the path.
28085 if test "x$as_myself" = x; then
28086   as_myself=$0
28087 fi
28088 if test ! -f "$as_myself"; then
28089   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
28090   exit 1
28091 fi
28092
28093 # Unset variables that we do not need and which cause bugs (e.g. in
28094 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
28095 # suppresses any "Segmentation fault" message there.  '((' could
28096 # trigger a bug in pdksh 5.2.14.
28097 for as_var in BASH_ENV ENV MAIL MAILPATH
28098 do eval test x\${$as_var+set} = xset \
28099   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
28100 done
28101 PS1='$ '
28102 PS2='> '
28103 PS4='+ '
28104
28105 # NLS nuisances.
28106 LC_ALL=C
28107 export LC_ALL
28108 LANGUAGE=C
28109 export LANGUAGE
28110
28111 # CDPATH.
28112 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
28113
28114
28115 # as_fn_error STATUS ERROR [LINENO LOG_FD]
28116 # ----------------------------------------
28117 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
28118 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
28119 # script with STATUS, using 1 if that was 0.
28120 as_fn_error ()
28121 {
28122   as_status=$1; test $as_status -eq 0 && as_status=1
28123   if test "$4"; then
28124     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
28125     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
28126   fi
28127   $as_echo "$as_me: error: $2" >&2
28128   as_fn_exit $as_status
28129 } # as_fn_error
28130
28131
28132 # as_fn_set_status STATUS
28133 # -----------------------
28134 # Set $? to STATUS, without forking.
28135 as_fn_set_status ()
28136 {
28137   return $1
28138 } # as_fn_set_status
28139
28140 # as_fn_exit STATUS
28141 # -----------------
28142 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
28143 as_fn_exit ()
28144 {
28145   set +e
28146   as_fn_set_status $1
28147   exit $1
28148 } # as_fn_exit
28149
28150 # as_fn_unset VAR
28151 # ---------------
28152 # Portably unset VAR.
28153 as_fn_unset ()
28154 {
28155   { eval $1=; unset $1;}
28156 }
28157 as_unset=as_fn_unset
28158 # as_fn_append VAR VALUE
28159 # ----------------------
28160 # Append the text in VALUE to the end of the definition contained in VAR. Take
28161 # advantage of any shell optimizations that allow amortized linear growth over
28162 # repeated appends, instead of the typical quadratic growth present in naive
28163 # implementations.
28164 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
28165   eval 'as_fn_append ()
28166   {
28167     eval $1+=\$2
28168   }'
28169 else
28170   as_fn_append ()
28171   {
28172     eval $1=\$$1\$2
28173   }
28174 fi # as_fn_append
28175
28176 # as_fn_arith ARG...
28177 # ------------------
28178 # Perform arithmetic evaluation on the ARGs, and store the result in the
28179 # global $as_val. Take advantage of shells that can avoid forks. The arguments
28180 # must be portable across $(()) and expr.
28181 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
28182   eval 'as_fn_arith ()
28183   {
28184     as_val=$(( $* ))
28185   }'
28186 else
28187   as_fn_arith ()
28188   {
28189     as_val=`expr "$@" || test $? -eq 1`
28190   }
28191 fi # as_fn_arith
28192
28193
28194 if expr a : '\(a\)' >/dev/null 2>&1 &&
28195    test "X`expr 00001 : '.*\(...\)'`" = X001; then
28196   as_expr=expr
28197 else
28198   as_expr=false
28199 fi
28200
28201 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
28202   as_basename=basename
28203 else
28204   as_basename=false
28205 fi
28206
28207 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
28208   as_dirname=dirname
28209 else
28210   as_dirname=false
28211 fi
28212
28213 as_me=`$as_basename -- "$0" ||
28214 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
28215          X"$0" : 'X\(//\)$' \| \
28216          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
28217 $as_echo X/"$0" |
28218     sed '/^.*\/\([^/][^/]*\)\/*$/{
28219             s//\1/
28220             q
28221           }
28222           /^X\/\(\/\/\)$/{
28223             s//\1/
28224             q
28225           }
28226           /^X\/\(\/\).*/{
28227             s//\1/
28228             q
28229           }
28230           s/.*/./; q'`
28231
28232 # Avoid depending upon Character Ranges.
28233 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
28234 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
28235 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
28236 as_cr_digits='0123456789'
28237 as_cr_alnum=$as_cr_Letters$as_cr_digits
28238
28239 ECHO_C= ECHO_N= ECHO_T=
28240 case `echo -n x` in #(((((
28241 -n*)
28242   case `echo 'xy\c'` in
28243   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
28244   xy)  ECHO_C='\c';;
28245   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
28246        ECHO_T=' ';;
28247   esac;;
28248 *)
28249   ECHO_N='-n';;
28250 esac
28251
28252 rm -f conf$$ conf$$.exe conf$$.file
28253 if test -d conf$$.dir; then
28254   rm -f conf$$.dir/conf$$.file
28255 else
28256   rm -f conf$$.dir
28257   mkdir conf$$.dir 2>/dev/null
28258 fi
28259 if (echo >conf$$.file) 2>/dev/null; then
28260   if ln -s conf$$.file conf$$ 2>/dev/null; then
28261     as_ln_s='ln -s'
28262     # ... but there are two gotchas:
28263     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
28264     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
28265     # In both cases, we have to default to `cp -pR'.
28266     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
28267       as_ln_s='cp -pR'
28268   elif ln conf$$.file conf$$ 2>/dev/null; then
28269     as_ln_s=ln
28270   else
28271     as_ln_s='cp -pR'
28272   fi
28273 else
28274   as_ln_s='cp -pR'
28275 fi
28276 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
28277 rmdir conf$$.dir 2>/dev/null
28278
28279
28280 # as_fn_mkdir_p
28281 # -------------
28282 # Create "$as_dir" as a directory, including parents if necessary.
28283 as_fn_mkdir_p ()
28284 {
28285
28286   case $as_dir in #(
28287   -*) as_dir=./$as_dir;;
28288   esac
28289   test -d "$as_dir" || eval $as_mkdir_p || {
28290     as_dirs=
28291     while :; do
28292       case $as_dir in #(
28293       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
28294       *) as_qdir=$as_dir;;
28295       esac
28296       as_dirs="'$as_qdir' $as_dirs"
28297       as_dir=`$as_dirname -- "$as_dir" ||
28298 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28299          X"$as_dir" : 'X\(//\)[^/]' \| \
28300          X"$as_dir" : 'X\(//\)$' \| \
28301          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
28302 $as_echo X"$as_dir" |
28303     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28304             s//\1/
28305             q
28306           }
28307           /^X\(\/\/\)[^/].*/{
28308             s//\1/
28309             q
28310           }
28311           /^X\(\/\/\)$/{
28312             s//\1/
28313             q
28314           }
28315           /^X\(\/\).*/{
28316             s//\1/
28317             q
28318           }
28319           s/.*/./; q'`
28320       test -d "$as_dir" && break
28321     done
28322     test -z "$as_dirs" || eval "mkdir $as_dirs"
28323   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
28324
28325
28326 } # as_fn_mkdir_p
28327 if mkdir -p . 2>/dev/null; then
28328   as_mkdir_p='mkdir -p "$as_dir"'
28329 else
28330   test -d ./-p && rmdir ./-p
28331   as_mkdir_p=false
28332 fi
28333
28334
28335 # as_fn_executable_p FILE
28336 # -----------------------
28337 # Test if FILE is an executable regular file.
28338 as_fn_executable_p ()
28339 {
28340   test -f "$1" && test -x "$1"
28341 } # as_fn_executable_p
28342 as_test_x='test -x'
28343 as_executable_p=as_fn_executable_p
28344
28345 # Sed expression to map a string onto a valid CPP name.
28346 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
28347
28348 # Sed expression to map a string onto a valid variable name.
28349 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
28350
28351
28352 exec 6>&1
28353 ## ----------------------------------- ##
28354 ## Main body of $CONFIG_STATUS script. ##
28355 ## ----------------------------------- ##
28356 _ASEOF
28357 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
28358
28359 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28360 # Save the log message, to keep $0 and so on meaningful, and to
28361 # report actual input values of CONFIG_FILES etc. instead of their
28362 # values after options handling.
28363 ac_log="
28364 This file was extended by subversion $as_me 1.14.0, which was
28365 generated by GNU Autoconf 2.69.  Invocation command line was
28366
28367   CONFIG_FILES    = $CONFIG_FILES
28368   CONFIG_HEADERS  = $CONFIG_HEADERS
28369   CONFIG_LINKS    = $CONFIG_LINKS
28370   CONFIG_COMMANDS = $CONFIG_COMMANDS
28371   $ $0 $@
28372
28373 on `(hostname || uname -n) 2>/dev/null | sed 1q`
28374 "
28375
28376 _ACEOF
28377
28378 case $ac_config_files in *"
28379 "*) set x $ac_config_files; shift; ac_config_files=$*;;
28380 esac
28381
28382 case $ac_config_headers in *"
28383 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
28384 esac
28385
28386
28387 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28388 # Files that config.status was made for.
28389 config_files="$ac_config_files"
28390 config_headers="$ac_config_headers"
28391 config_commands="$ac_config_commands"
28392
28393 _ACEOF
28394
28395 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28396 ac_cs_usage="\
28397 \`$as_me' instantiates files and other configuration actions
28398 from templates according to the current configuration.  Unless the files
28399 and actions are specified as TAGs, all are instantiated by default.
28400
28401 Usage: $0 [OPTION]... [TAG]...
28402
28403   -h, --help       print this help, then exit
28404   -V, --version    print version number and configuration settings, then exit
28405       --config     print configuration, then exit
28406   -q, --quiet, --silent
28407                    do not print progress messages
28408   -d, --debug      don't remove temporary files
28409       --recheck    update $as_me by reconfiguring in the same conditions
28410       --file=FILE[:TEMPLATE]
28411                    instantiate the configuration file FILE
28412       --header=FILE[:TEMPLATE]
28413                    instantiate the configuration header FILE
28414
28415 Configuration files:
28416 $config_files
28417
28418 Configuration headers:
28419 $config_headers
28420
28421 Configuration commands:
28422 $config_commands
28423
28424 Report bugs to <http://subversion.apache.org/>."
28425
28426 _ACEOF
28427 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28428 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
28429 ac_cs_version="\\
28430 subversion config.status 1.14.0
28431 configured by $0, generated by GNU Autoconf 2.69,
28432   with options \\"\$ac_cs_config\\"
28433
28434 Copyright (C) 2012 Free Software Foundation, Inc.
28435 This config.status script is free software; the Free Software Foundation
28436 gives unlimited permission to copy, distribute and modify it."
28437
28438 ac_pwd='$ac_pwd'
28439 srcdir='$srcdir'
28440 INSTALL='$INSTALL'
28441 AWK='$AWK'
28442 test -n "\$AWK" || AWK=awk
28443 _ACEOF
28444
28445 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28446 # The default lists apply if the user does not specify any file.
28447 ac_need_defaults=:
28448 while test $# != 0
28449 do
28450   case $1 in
28451   --*=?*)
28452     ac_option=`expr "X$1" : 'X\([^=]*\)='`
28453     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
28454     ac_shift=:
28455     ;;
28456   --*=)
28457     ac_option=`expr "X$1" : 'X\([^=]*\)='`
28458     ac_optarg=
28459     ac_shift=:
28460     ;;
28461   *)
28462     ac_option=$1
28463     ac_optarg=$2
28464     ac_shift=shift
28465     ;;
28466   esac
28467
28468   case $ac_option in
28469   # Handling of the options.
28470   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
28471     ac_cs_recheck=: ;;
28472   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
28473     $as_echo "$ac_cs_version"; exit ;;
28474   --config | --confi | --conf | --con | --co | --c )
28475     $as_echo "$ac_cs_config"; exit ;;
28476   --debug | --debu | --deb | --de | --d | -d )
28477     debug=: ;;
28478   --file | --fil | --fi | --f )
28479     $ac_shift
28480     case $ac_optarg in
28481     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
28482     '') as_fn_error $? "missing file argument" ;;
28483     esac
28484     as_fn_append CONFIG_FILES " '$ac_optarg'"
28485     ac_need_defaults=false;;
28486   --header | --heade | --head | --hea )
28487     $ac_shift
28488     case $ac_optarg in
28489     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
28490     esac
28491     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
28492     ac_need_defaults=false;;
28493   --he | --h)
28494     # Conflict between --help and --header
28495     as_fn_error $? "ambiguous option: \`$1'
28496 Try \`$0 --help' for more information.";;
28497   --help | --hel | -h )
28498     $as_echo "$ac_cs_usage"; exit ;;
28499   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
28500   | -silent | --silent | --silen | --sile | --sil | --si | --s)
28501     ac_cs_silent=: ;;
28502
28503   # This is an error.
28504   -*) as_fn_error $? "unrecognized option: \`$1'
28505 Try \`$0 --help' for more information." ;;
28506
28507   *) as_fn_append ac_config_targets " $1"
28508      ac_need_defaults=false ;;
28509
28510   esac
28511   shift
28512 done
28513
28514 ac_configure_extra_args=
28515
28516 if $ac_cs_silent; then
28517   exec 6>/dev/null
28518   ac_configure_extra_args="$ac_configure_extra_args --silent"
28519 fi
28520
28521 _ACEOF
28522 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28523 if \$ac_cs_recheck; then
28524   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
28525   shift
28526   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
28527   CONFIG_SHELL='$SHELL'
28528   export CONFIG_SHELL
28529   exec "\$@"
28530 fi
28531
28532 _ACEOF
28533 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28534 exec 5>>config.log
28535 {
28536   echo
28537   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
28538 ## Running $as_me. ##
28539 _ASBOX
28540   $as_echo "$ac_log"
28541 } >&5
28542
28543 _ACEOF
28544 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28545 #
28546 # INIT-COMMANDS
28547 #
28548
28549
28550 # The HP-UX ksh and POSIX shell print the target directory to stdout
28551 # if CDPATH is set.
28552 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
28553
28554 sed_quote_subst='$sed_quote_subst'
28555 double_quote_subst='$double_quote_subst'
28556 delay_variable_subst='$delay_variable_subst'
28557 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
28558 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
28559 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
28560 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
28561 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
28562 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
28563 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
28564 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
28565 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
28566 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
28567 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
28568 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
28569 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
28570 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
28571 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
28572 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
28573 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
28574 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
28575 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
28576 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
28577 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
28578 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
28579 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
28580 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
28581 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
28582 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
28583 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
28584 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
28585 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
28586 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
28587 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
28588 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
28589 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
28590 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
28591 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
28592 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
28593 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
28594 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
28595 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
28596 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
28597 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
28598 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
28599 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
28600 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
28601 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
28602 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
28603 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
28604 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
28605 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
28606 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
28607 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
28608 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
28609 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
28610 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
28611 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
28612 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
28613 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
28614 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
28615 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
28616 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
28617 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
28618 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
28619 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
28620 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
28621 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
28622 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
28623 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
28624 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
28625 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
28626 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
28627 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
28628 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
28629 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
28630 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
28631 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
28632 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
28633 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
28634 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
28635 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
28636 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
28637 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
28638 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
28639 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
28640 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
28641 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
28642 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
28643 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
28644 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
28645 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
28646 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
28647 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
28648 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
28649 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
28650 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
28651 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
28652 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
28653 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
28654 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
28655 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
28656 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
28657 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
28658 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
28659 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
28660 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
28661 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
28662 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
28663 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
28664 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
28665 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
28666 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
28667 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
28668 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
28669 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
28670 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
28671 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
28672 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
28673 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
28674 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
28675 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
28676 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
28677 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
28678 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
28679 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
28680 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
28681 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
28682 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
28683 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
28684 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
28685 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
28686 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
28687 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
28688 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
28689 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
28690 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
28691 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
28692 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
28693 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
28694 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
28695 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
28696 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
28697 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
28698 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
28699 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
28700 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
28701 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
28702 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
28703 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
28704 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
28705 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
28706 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
28707 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
28708 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
28709 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
28710 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
28711 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
28712 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
28713 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
28714 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
28715 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
28716 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
28717 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
28718 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
28719 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
28720 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
28721 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
28722 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
28723 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
28724 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
28725 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
28726 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
28727 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
28728 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
28729 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
28730 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
28731 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
28732 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
28733 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
28734 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
28735 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
28736 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
28737 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
28738 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
28739 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
28740 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
28741 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
28742 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
28743 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
28744 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
28745 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
28746
28747 LTCC='$LTCC'
28748 LTCFLAGS='$LTCFLAGS'
28749 compiler='$compiler_DEFAULT'
28750
28751 # A function that is used when there is no print builtin or printf.
28752 func_fallback_echo ()
28753 {
28754   eval 'cat <<_LTECHO_EOF
28755 \$1
28756 _LTECHO_EOF'
28757 }
28758
28759 # Quote evaled strings.
28760 for var in SHELL \
28761 ECHO \
28762 PATH_SEPARATOR \
28763 SED \
28764 GREP \
28765 EGREP \
28766 FGREP \
28767 LD \
28768 NM \
28769 LN_S \
28770 lt_SP2NL \
28771 lt_NL2SP \
28772 reload_flag \
28773 OBJDUMP \
28774 deplibs_check_method \
28775 file_magic_cmd \
28776 file_magic_glob \
28777 want_nocaseglob \
28778 DLLTOOL \
28779 sharedlib_from_linklib_cmd \
28780 AR \
28781 AR_FLAGS \
28782 archiver_list_spec \
28783 STRIP \
28784 RANLIB \
28785 CC \
28786 CFLAGS \
28787 compiler \
28788 lt_cv_sys_global_symbol_pipe \
28789 lt_cv_sys_global_symbol_to_cdecl \
28790 lt_cv_sys_global_symbol_to_import \
28791 lt_cv_sys_global_symbol_to_c_name_address \
28792 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
28793 lt_cv_nm_interface \
28794 nm_file_list_spec \
28795 lt_cv_truncate_bin \
28796 lt_prog_compiler_no_builtin_flag \
28797 lt_prog_compiler_pic \
28798 lt_prog_compiler_wl \
28799 lt_prog_compiler_static \
28800 lt_cv_prog_compiler_c_o \
28801 need_locks \
28802 MANIFEST_TOOL \
28803 DSYMUTIL \
28804 NMEDIT \
28805 LIPO \
28806 OTOOL \
28807 OTOOL64 \
28808 shrext_cmds \
28809 export_dynamic_flag_spec \
28810 whole_archive_flag_spec \
28811 compiler_needs_object \
28812 with_gnu_ld \
28813 allow_undefined_flag \
28814 no_undefined_flag \
28815 hardcode_libdir_flag_spec \
28816 hardcode_libdir_separator \
28817 exclude_expsyms \
28818 include_expsyms \
28819 file_list_spec \
28820 variables_saved_for_relink \
28821 libname_spec \
28822 library_names_spec \
28823 soname_spec \
28824 install_override_mode \
28825 finish_eval \
28826 old_striplib \
28827 striplib \
28828 compiler_lib_search_dirs \
28829 predep_objects \
28830 postdep_objects \
28831 predeps \
28832 postdeps \
28833 compiler_lib_search_path \
28834 LD_CXX \
28835 reload_flag_CXX \
28836 compiler_CXX \
28837 lt_prog_compiler_no_builtin_flag_CXX \
28838 lt_prog_compiler_pic_CXX \
28839 lt_prog_compiler_wl_CXX \
28840 lt_prog_compiler_static_CXX \
28841 lt_cv_prog_compiler_c_o_CXX \
28842 export_dynamic_flag_spec_CXX \
28843 whole_archive_flag_spec_CXX \
28844 compiler_needs_object_CXX \
28845 with_gnu_ld_CXX \
28846 allow_undefined_flag_CXX \
28847 no_undefined_flag_CXX \
28848 hardcode_libdir_flag_spec_CXX \
28849 hardcode_libdir_separator_CXX \
28850 exclude_expsyms_CXX \
28851 include_expsyms_CXX \
28852 file_list_spec_CXX \
28853 compiler_lib_search_dirs_CXX \
28854 predep_objects_CXX \
28855 postdep_objects_CXX \
28856 predeps_CXX \
28857 postdeps_CXX \
28858 compiler_lib_search_path_CXX; do
28859     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
28860     *[\\\\\\\`\\"\\\$]*)
28861       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
28862       ;;
28863     *)
28864       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
28865       ;;
28866     esac
28867 done
28868
28869 # Double-quote double-evaled strings.
28870 for var in reload_cmds \
28871 old_postinstall_cmds \
28872 old_postuninstall_cmds \
28873 old_archive_cmds \
28874 extract_expsyms_cmds \
28875 old_archive_from_new_cmds \
28876 old_archive_from_expsyms_cmds \
28877 archive_cmds \
28878 archive_expsym_cmds \
28879 module_cmds \
28880 module_expsym_cmds \
28881 export_symbols_cmds \
28882 prelink_cmds \
28883 postlink_cmds \
28884 postinstall_cmds \
28885 postuninstall_cmds \
28886 finish_cmds \
28887 sys_lib_search_path_spec \
28888 configure_time_dlsearch_path \
28889 configure_time_lt_sys_library_path \
28890 reload_cmds_CXX \
28891 old_archive_cmds_CXX \
28892 old_archive_from_new_cmds_CXX \
28893 old_archive_from_expsyms_cmds_CXX \
28894 archive_cmds_CXX \
28895 archive_expsym_cmds_CXX \
28896 module_cmds_CXX \
28897 module_expsym_cmds_CXX \
28898 export_symbols_cmds_CXX \
28899 prelink_cmds_CXX \
28900 postlink_cmds_CXX; do
28901     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
28902     *[\\\\\\\`\\"\\\$]*)
28903       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
28904       ;;
28905     *)
28906       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
28907       ;;
28908     esac
28909 done
28910
28911 ac_aux_dir='$ac_aux_dir'
28912
28913 # See if we are running on zsh, and set the options that allow our
28914 # commands through without removal of \ escapes INIT.
28915 if test -n "\${ZSH_VERSION+set}"; then
28916    setopt NO_GLOB_SUBST
28917 fi
28918
28919
28920     PACKAGE='$PACKAGE'
28921     VERSION='$VERSION'
28922     RM='$RM'
28923     ofile='$ofile'
28924
28925
28926
28927
28928
28929 SED="$SED"
28930                     SVN_DB_HEADER="$SVN_DB_HEADER"
28931
28932 _ACEOF
28933
28934 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28935
28936 # Handling of arguments.
28937 for ac_config_target in $ac_config_targets
28938 do
28939   case $ac_config_target in
28940     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
28941     "subversion/svn_private_config.h.tmp") CONFIG_HEADERS="$CONFIG_HEADERS subversion/svn_private_config.h.tmp:subversion/svn_private_config.h.in" ;;
28942     "svn_private_config.h.tmp") CONFIG_COMMANDS="$CONFIG_COMMANDS svn_private_config.h.tmp" ;;
28943     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
28944     "${pc_file}") CONFIG_FILES="$CONFIG_FILES ${pc_file}" ;;
28945     "tools/backup/hot-backup.py") CONFIG_FILES="$CONFIG_FILES tools/backup/hot-backup.py" ;;
28946     "tools/hook-scripts/commit-access-control.pl") CONFIG_FILES="$CONFIG_FILES tools/hook-scripts/commit-access-control.pl" ;;
28947     "subversion/bindings/swig/perl/native/Makefile.PL") CONFIG_FILES="$CONFIG_FILES subversion/bindings/swig/perl/native/Makefile.PL" ;;
28948     "packages/solaris/pkginfo") CONFIG_FILES="$CONFIG_FILES packages/solaris/pkginfo" ;;
28949
28950   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
28951   esac
28952 done
28953
28954
28955 # If the user did not use the arguments to specify the items to instantiate,
28956 # then the envvar interface is used.  Set only those that are not.
28957 # We use the long form for the default assignment because of an extremely
28958 # bizarre bug on SunOS 4.1.3.
28959 if $ac_need_defaults; then
28960   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
28961   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
28962   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
28963 fi
28964
28965 # Have a temporary directory for convenience.  Make it in the build tree
28966 # simply because there is no reason against having it here, and in addition,
28967 # creating and moving files from /tmp can sometimes cause problems.
28968 # Hook for its removal unless debugging.
28969 # Note that there is a small window in which the directory will not be cleaned:
28970 # after its creation but before its name has been assigned to `$tmp'.
28971 $debug ||
28972 {
28973   tmp= ac_tmp=
28974   trap 'exit_status=$?
28975   : "${ac_tmp:=$tmp}"
28976   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
28977 ' 0
28978   trap 'as_fn_exit 1' 1 2 13 15
28979 }
28980 # Create a (secure) tmp directory for tmp files.
28981
28982 {
28983   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
28984   test -d "$tmp"
28985 }  ||
28986 {
28987   tmp=./conf$$-$RANDOM
28988   (umask 077 && mkdir "$tmp")
28989 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
28990 ac_tmp=$tmp
28991
28992 # Set up the scripts for CONFIG_FILES section.
28993 # No need to generate them if there are no CONFIG_FILES.
28994 # This happens for instance with `./config.status config.h'.
28995 if test -n "$CONFIG_FILES"; then
28996
28997
28998 ac_cr=`echo X | tr X '\015'`
28999 # On cygwin, bash can eat \r inside `` if the user requested igncr.
29000 # But we know of no other shell where ac_cr would be empty at this
29001 # point, so we can use a bashism as a fallback.
29002 if test "x$ac_cr" = x; then
29003   eval ac_cr=\$\'\\r\'
29004 fi
29005 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
29006 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
29007   ac_cs_awk_cr='\\r'
29008 else
29009   ac_cs_awk_cr=$ac_cr
29010 fi
29011
29012 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
29013 _ACEOF
29014
29015
29016 {
29017   echo "cat >conf$$subs.awk <<_ACEOF" &&
29018   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
29019   echo "_ACEOF"
29020 } >conf$$subs.sh ||
29021   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
29022 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
29023 ac_delim='%!_!# '
29024 for ac_last_try in false false false false false :; do
29025   . ./conf$$subs.sh ||
29026     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
29027
29028   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
29029   if test $ac_delim_n = $ac_delim_num; then
29030     break
29031   elif $ac_last_try; then
29032     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
29033   else
29034     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
29035   fi
29036 done
29037 rm -f conf$$subs.sh
29038
29039 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29040 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
29041 _ACEOF
29042 sed -n '
29043 h
29044 s/^/S["/; s/!.*/"]=/
29045 p
29046 g
29047 s/^[^!]*!//
29048 :repl
29049 t repl
29050 s/'"$ac_delim"'$//
29051 t delim
29052 :nl
29053 h
29054 s/\(.\{148\}\)..*/\1/
29055 t more1
29056 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
29057 p
29058 n
29059 b repl
29060 :more1
29061 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
29062 p
29063 g
29064 s/.\{148\}//
29065 t nl
29066 :delim
29067 h
29068 s/\(.\{148\}\)..*/\1/
29069 t more2
29070 s/["\\]/\\&/g; s/^/"/; s/$/"/
29071 p
29072 b
29073 :more2
29074 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
29075 p
29076 g
29077 s/.\{148\}//
29078 t delim
29079 ' <conf$$subs.awk | sed '
29080 /^[^""]/{
29081   N
29082   s/\n//
29083 }
29084 ' >>$CONFIG_STATUS || ac_write_fail=1
29085 rm -f conf$$subs.awk
29086 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29087 _ACAWK
29088 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
29089   for (key in S) S_is_set[key] = 1
29090   FS = "\a"
29091
29092 }
29093 {
29094   line = $ 0
29095   nfields = split(line, field, "@")
29096   substed = 0
29097   len = length(field[1])
29098   for (i = 2; i < nfields; i++) {
29099     key = field[i]
29100     keylen = length(key)
29101     if (S_is_set[key]) {
29102       value = S[key]
29103       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
29104       len += length(value) + length(field[++i])
29105       substed = 1
29106     } else
29107       len += 1 + keylen
29108   }
29109
29110   print line
29111 }
29112
29113 _ACAWK
29114 _ACEOF
29115 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29116 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
29117   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
29118 else
29119   cat
29120 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
29121   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
29122 _ACEOF
29123
29124 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
29125 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
29126 # trailing colons and then remove the whole line if VPATH becomes empty
29127 # (actually we leave an empty line to preserve line numbers).
29128 if test "x$srcdir" = x.; then
29129   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
29130 h
29131 s///
29132 s/^/:/
29133 s/[      ]*$/:/
29134 s/:\$(srcdir):/:/g
29135 s/:\${srcdir}:/:/g
29136 s/:@srcdir@:/:/g
29137 s/^:*//
29138 s/:*$//
29139 x
29140 s/\(=[   ]*\).*/\1/
29141 G
29142 s/\n//
29143 s/^[^=]*=[       ]*$//
29144 }'
29145 fi
29146
29147 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29148 fi # test -n "$CONFIG_FILES"
29149
29150 # Set up the scripts for CONFIG_HEADERS section.
29151 # No need to generate them if there are no CONFIG_HEADERS.
29152 # This happens for instance with `./config.status Makefile'.
29153 if test -n "$CONFIG_HEADERS"; then
29154 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
29155 BEGIN {
29156 _ACEOF
29157
29158 # Transform confdefs.h into an awk script `defines.awk', embedded as
29159 # here-document in config.status, that substitutes the proper values into
29160 # config.h.in to produce config.h.
29161
29162 # Create a delimiter string that does not exist in confdefs.h, to ease
29163 # handling of long lines.
29164 ac_delim='%!_!# '
29165 for ac_last_try in false false :; do
29166   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
29167   if test -z "$ac_tt"; then
29168     break
29169   elif $ac_last_try; then
29170     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
29171   else
29172     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
29173   fi
29174 done
29175
29176 # For the awk script, D is an array of macro values keyed by name,
29177 # likewise P contains macro parameters if any.  Preserve backslash
29178 # newline sequences.
29179
29180 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
29181 sed -n '
29182 s/.\{148\}/&'"$ac_delim"'/g
29183 t rset
29184 :rset
29185 s/^[     ]*#[    ]*define[       ][      ]*/ /
29186 t def
29187 d
29188 :def
29189 s/\\$//
29190 t bsnl
29191 s/["\\]/\\&/g
29192 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
29193 D["\1"]=" \3"/p
29194 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
29195 d
29196 :bsnl
29197 s/["\\]/\\&/g
29198 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
29199 D["\1"]=" \3\\\\\\n"\\/p
29200 t cont
29201 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
29202 t cont
29203 d
29204 :cont
29205 n
29206 s/.\{148\}/&'"$ac_delim"'/g
29207 t clear
29208 :clear
29209 s/\\$//
29210 t bsnlc
29211 s/["\\]/\\&/g; s/^/"/; s/$/"/p
29212 d
29213 :bsnlc
29214 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
29215 b cont
29216 ' <confdefs.h | sed '
29217 s/'"$ac_delim"'/"\\\
29218 "/g' >>$CONFIG_STATUS || ac_write_fail=1
29219
29220 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29221   for (key in D) D_is_set[key] = 1
29222   FS = "\a"
29223 }
29224 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
29225   line = \$ 0
29226   split(line, arg, " ")
29227   if (arg[1] == "#") {
29228     defundef = arg[2]
29229     mac1 = arg[3]
29230   } else {
29231     defundef = substr(arg[1], 2)
29232     mac1 = arg[2]
29233   }
29234   split(mac1, mac2, "(") #)
29235   macro = mac2[1]
29236   prefix = substr(line, 1, index(line, defundef) - 1)
29237   if (D_is_set[macro]) {
29238     # Preserve the white space surrounding the "#".
29239     print prefix "define", macro P[macro] D[macro]
29240     next
29241   } else {
29242     # Replace #undef with comments.  This is necessary, for example,
29243     # in the case of _POSIX_SOURCE, which is predefined and required
29244     # on some systems where configure will not decide to define it.
29245     if (defundef == "undef") {
29246       print "/*", prefix defundef, macro, "*/"
29247       next
29248     }
29249   }
29250 }
29251 { print }
29252 _ACAWK
29253 _ACEOF
29254 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29255   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
29256 fi # test -n "$CONFIG_HEADERS"
29257
29258
29259 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
29260 shift
29261 for ac_tag
29262 do
29263   case $ac_tag in
29264   :[FHLC]) ac_mode=$ac_tag; continue;;
29265   esac
29266   case $ac_mode$ac_tag in
29267   :[FHL]*:*);;
29268   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
29269   :[FH]-) ac_tag=-:-;;
29270   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
29271   esac
29272   ac_save_IFS=$IFS
29273   IFS=:
29274   set x $ac_tag
29275   IFS=$ac_save_IFS
29276   shift
29277   ac_file=$1
29278   shift
29279
29280   case $ac_mode in
29281   :L) ac_source=$1;;
29282   :[FH])
29283     ac_file_inputs=
29284     for ac_f
29285     do
29286       case $ac_f in
29287       -) ac_f="$ac_tmp/stdin";;
29288       *) # Look for the file first in the build tree, then in the source tree
29289          # (if the path is not absolute).  The absolute path cannot be DOS-style,
29290          # because $ac_f cannot contain `:'.
29291          test -f "$ac_f" ||
29292            case $ac_f in
29293            [\\/$]*) false;;
29294            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
29295            esac ||
29296            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
29297       esac
29298       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
29299       as_fn_append ac_file_inputs " '$ac_f'"
29300     done
29301
29302     # Let's still pretend it is `configure' which instantiates (i.e., don't
29303     # use $as_me), people would be surprised to read:
29304     #    /* config.h.  Generated by config.status.  */
29305     configure_input='Generated from '`
29306           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
29307         `' by configure.'
29308     if test x"$ac_file" != x-; then
29309       configure_input="$ac_file.  $configure_input"
29310       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
29311 $as_echo "$as_me: creating $ac_file" >&6;}
29312     fi
29313     # Neutralize special characters interpreted by sed in replacement strings.
29314     case $configure_input in #(
29315     *\&* | *\|* | *\\* )
29316        ac_sed_conf_input=`$as_echo "$configure_input" |
29317        sed 's/[\\\\&|]/\\\\&/g'`;; #(
29318     *) ac_sed_conf_input=$configure_input;;
29319     esac
29320
29321     case $ac_tag in
29322     *:-:* | *:-) cat >"$ac_tmp/stdin" \
29323       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
29324     esac
29325     ;;
29326   esac
29327
29328   ac_dir=`$as_dirname -- "$ac_file" ||
29329 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29330          X"$ac_file" : 'X\(//\)[^/]' \| \
29331          X"$ac_file" : 'X\(//\)$' \| \
29332          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
29333 $as_echo X"$ac_file" |
29334     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29335             s//\1/
29336             q
29337           }
29338           /^X\(\/\/\)[^/].*/{
29339             s//\1/
29340             q
29341           }
29342           /^X\(\/\/\)$/{
29343             s//\1/
29344             q
29345           }
29346           /^X\(\/\).*/{
29347             s//\1/
29348             q
29349           }
29350           s/.*/./; q'`
29351   as_dir="$ac_dir"; as_fn_mkdir_p
29352   ac_builddir=.
29353
29354 case "$ac_dir" in
29355 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
29356 *)
29357   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
29358   # A ".." for each directory in $ac_dir_suffix.
29359   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
29360   case $ac_top_builddir_sub in
29361   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
29362   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
29363   esac ;;
29364 esac
29365 ac_abs_top_builddir=$ac_pwd
29366 ac_abs_builddir=$ac_pwd$ac_dir_suffix
29367 # for backward compatibility:
29368 ac_top_builddir=$ac_top_build_prefix
29369
29370 case $srcdir in
29371   .)  # We are building in place.
29372     ac_srcdir=.
29373     ac_top_srcdir=$ac_top_builddir_sub
29374     ac_abs_top_srcdir=$ac_pwd ;;
29375   [\\/]* | ?:[\\/]* )  # Absolute name.
29376     ac_srcdir=$srcdir$ac_dir_suffix;
29377     ac_top_srcdir=$srcdir
29378     ac_abs_top_srcdir=$srcdir ;;
29379   *) # Relative name.
29380     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
29381     ac_top_srcdir=$ac_top_build_prefix$srcdir
29382     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
29383 esac
29384 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
29385
29386
29387   case $ac_mode in
29388   :F)
29389   #
29390   # CONFIG_FILE
29391   #
29392
29393   case $INSTALL in
29394   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
29395   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
29396   esac
29397 _ACEOF
29398
29399 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29400 # If the template does not know about datarootdir, expand it.
29401 # FIXME: This hack should be removed a few years after 2.60.
29402 ac_datarootdir_hack=; ac_datarootdir_seen=
29403 ac_sed_dataroot='
29404 /datarootdir/ {
29405   p
29406   q
29407 }
29408 /@datadir@/p
29409 /@docdir@/p
29410 /@infodir@/p
29411 /@localedir@/p
29412 /@mandir@/p'
29413 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
29414 *datarootdir*) ac_datarootdir_seen=yes;;
29415 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
29416   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
29417 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
29418 _ACEOF
29419 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29420   ac_datarootdir_hack='
29421   s&@datadir@&$datadir&g
29422   s&@docdir@&$docdir&g
29423   s&@infodir@&$infodir&g
29424   s&@localedir@&$localedir&g
29425   s&@mandir@&$mandir&g
29426   s&\\\${datarootdir}&$datarootdir&g' ;;
29427 esac
29428 _ACEOF
29429
29430 # Neutralize VPATH when `$srcdir' = `.'.
29431 # Shell code in configure.ac might set extrasub.
29432 # FIXME: do we really want to maintain this feature?
29433 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29434 ac_sed_extra="$ac_vpsub
29435 $extrasub
29436 _ACEOF
29437 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29438 :t
29439 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
29440 s|@configure_input@|$ac_sed_conf_input|;t t
29441 s&@top_builddir@&$ac_top_builddir_sub&;t t
29442 s&@top_build_prefix@&$ac_top_build_prefix&;t t
29443 s&@srcdir@&$ac_srcdir&;t t
29444 s&@abs_srcdir@&$ac_abs_srcdir&;t t
29445 s&@top_srcdir@&$ac_top_srcdir&;t t
29446 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
29447 s&@builddir@&$ac_builddir&;t t
29448 s&@abs_builddir@&$ac_abs_builddir&;t t
29449 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
29450 s&@INSTALL@&$ac_INSTALL&;t t
29451 $ac_datarootdir_hack
29452 "
29453 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
29454   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
29455
29456 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
29457   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
29458   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
29459       "$ac_tmp/out"`; test -z "$ac_out"; } &&
29460   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
29461 which seems to be undefined.  Please make sure it is defined" >&5
29462 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
29463 which seems to be undefined.  Please make sure it is defined" >&2;}
29464
29465   rm -f "$ac_tmp/stdin"
29466   case $ac_file in
29467   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
29468   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
29469   esac \
29470   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
29471  ;;
29472   :H)
29473   #
29474   # CONFIG_HEADER
29475   #
29476   if test x"$ac_file" != x-; then
29477     {
29478       $as_echo "/* $configure_input  */" \
29479       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
29480     } >"$ac_tmp/config.h" \
29481       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
29482     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
29483       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
29484 $as_echo "$as_me: $ac_file is unchanged" >&6;}
29485     else
29486       rm -f "$ac_file"
29487       mv "$ac_tmp/config.h" "$ac_file" \
29488         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
29489     fi
29490   else
29491     $as_echo "/* $configure_input  */" \
29492       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
29493       || as_fn_error $? "could not create -" "$LINENO" 5
29494   fi
29495  ;;
29496
29497   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
29498 $as_echo "$as_me: executing $ac_file commands" >&6;}
29499  ;;
29500   esac
29501
29502
29503   case $ac_file$ac_mode in
29504     "libtool":C)
29505
29506     # See if we are running on zsh, and set the options that allow our
29507     # commands through without removal of \ escapes.
29508     if test -n "${ZSH_VERSION+set}"; then
29509       setopt NO_GLOB_SUBST
29510     fi
29511
29512     cfgfile=${ofile}T
29513     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
29514     $RM "$cfgfile"
29515
29516     cat <<_LT_EOF >> "$cfgfile"
29517 #! $SHELL
29518 # Generated automatically by $as_me ($PACKAGE) $VERSION
29519 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
29520 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
29521
29522 # Provide generalized library-building support services.
29523 # Written by Gordon Matzigkeit, 1996
29524
29525 # Copyright (C) 2014 Free Software Foundation, Inc.
29526 # This is free software; see the source for copying conditions.  There is NO
29527 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
29528
29529 # GNU Libtool is free software; you can redistribute it and/or modify
29530 # it under the terms of the GNU General Public License as published by
29531 # the Free Software Foundation; either version 2 of of the License, or
29532 # (at your option) any later version.
29533 #
29534 # As a special exception to the GNU General Public License, if you
29535 # distribute this file as part of a program or library that is built
29536 # using GNU Libtool, you may include this file under the  same
29537 # distribution terms that you use for the rest of that program.
29538 #
29539 # GNU Libtool is distributed in the hope that it will be useful, but
29540 # WITHOUT ANY WARRANTY; without even the implied warranty of
29541 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
29542 # GNU General Public License for more details.
29543 #
29544 # You should have received a copy of the GNU General Public License
29545 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
29546
29547
29548 # The names of the tagged configurations supported by this script.
29549 available_tags='CXX '
29550
29551 # Configured defaults for sys_lib_dlsearch_path munging.
29552 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
29553
29554 # ### BEGIN LIBTOOL CONFIG
29555
29556 # Which release of libtool.m4 was used?
29557 macro_version=$macro_version
29558 macro_revision=$macro_revision
29559
29560 # Whether or not to build shared libraries.
29561 build_libtool_libs=$enable_shared
29562
29563 # Whether or not to build static libraries.
29564 build_old_libs=$enable_static
29565
29566 # What type of objects to build.
29567 pic_mode=$pic_mode
29568
29569 # Whether or not to optimize for fast installation.
29570 fast_install=$enable_fast_install
29571
29572 # Shared archive member basename,for filename based shared library versioning on AIX.
29573 shared_archive_member_spec=$shared_archive_member_spec
29574
29575 # Shell to use when invoking shell scripts.
29576 SHELL=$lt_SHELL
29577
29578 # An echo program that protects backslashes.
29579 ECHO=$lt_ECHO
29580
29581 # The PATH separator for the build system.
29582 PATH_SEPARATOR=$lt_PATH_SEPARATOR
29583
29584 # The host system.
29585 host_alias=$host_alias
29586 host=$host
29587 host_os=$host_os
29588
29589 # The build system.
29590 build_alias=$build_alias
29591 build=$build
29592 build_os=$build_os
29593
29594 # A sed program that does not truncate output.
29595 SED=$lt_SED
29596
29597 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
29598 Xsed="\$SED -e 1s/^X//"
29599
29600 # A grep program that handles long lines.
29601 GREP=$lt_GREP
29602
29603 # An ERE matcher.
29604 EGREP=$lt_EGREP
29605
29606 # A literal string matcher.
29607 FGREP=$lt_FGREP
29608
29609 # A BSD- or MS-compatible name lister.
29610 NM=$lt_NM
29611
29612 # Whether we need soft or hard links.
29613 LN_S=$lt_LN_S
29614
29615 # What is the maximum length of a command?
29616 max_cmd_len=$max_cmd_len
29617
29618 # Object file suffix (normally "o").
29619 objext=$ac_objext
29620
29621 # Executable file suffix (normally "").
29622 exeext=$exeext
29623
29624 # whether the shell understands "unset".
29625 lt_unset=$lt_unset
29626
29627 # turn spaces into newlines.
29628 SP2NL=$lt_lt_SP2NL
29629
29630 # turn newlines into spaces.
29631 NL2SP=$lt_lt_NL2SP
29632
29633 # convert \$build file names to \$host format.
29634 to_host_file_cmd=$lt_cv_to_host_file_cmd
29635
29636 # convert \$build files to toolchain format.
29637 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
29638
29639 # An object symbol dumper.
29640 OBJDUMP=$lt_OBJDUMP
29641
29642 # Method to check whether dependent libraries are shared objects.
29643 deplibs_check_method=$lt_deplibs_check_method
29644
29645 # Command to use when deplibs_check_method = "file_magic".
29646 file_magic_cmd=$lt_file_magic_cmd
29647
29648 # How to find potential files when deplibs_check_method = "file_magic".
29649 file_magic_glob=$lt_file_magic_glob
29650
29651 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
29652 want_nocaseglob=$lt_want_nocaseglob
29653
29654 # DLL creation program.
29655 DLLTOOL=$lt_DLLTOOL
29656
29657 # Command to associate shared and link libraries.
29658 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
29659
29660 # The archiver.
29661 AR=$lt_AR
29662
29663 # Flags to create an archive.
29664 AR_FLAGS=$lt_AR_FLAGS
29665
29666 # How to feed a file listing to the archiver.
29667 archiver_list_spec=$lt_archiver_list_spec
29668
29669 # A symbol stripping program.
29670 STRIP=$lt_STRIP
29671
29672 # Commands used to install an old-style archive.
29673 RANLIB=$lt_RANLIB
29674 old_postinstall_cmds=$lt_old_postinstall_cmds
29675 old_postuninstall_cmds=$lt_old_postuninstall_cmds
29676
29677 # Whether to use a lock for old archive extraction.
29678 lock_old_archive_extraction=$lock_old_archive_extraction
29679
29680 # A C compiler.
29681 LTCC=$lt_CC
29682
29683 # LTCC compiler flags.
29684 LTCFLAGS=$lt_CFLAGS
29685
29686 # Take the output of nm and produce a listing of raw symbols and C names.
29687 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
29688
29689 # Transform the output of nm in a proper C declaration.
29690 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
29691
29692 # Transform the output of nm into a list of symbols to manually relocate.
29693 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
29694
29695 # Transform the output of nm in a C name address pair.
29696 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
29697
29698 # Transform the output of nm in a C name address pair when lib prefix is needed.
29699 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
29700
29701 # The name lister interface.
29702 nm_interface=$lt_lt_cv_nm_interface
29703
29704 # Specify filename containing input files for \$NM.
29705 nm_file_list_spec=$lt_nm_file_list_spec
29706
29707 # The root where to search for dependent libraries,and where our libraries should be installed.
29708 lt_sysroot=$lt_sysroot
29709
29710 # Command to truncate a binary pipe.
29711 lt_truncate_bin=$lt_lt_cv_truncate_bin
29712
29713 # The name of the directory that contains temporary libtool files.
29714 objdir=$objdir
29715
29716 # Used to examine libraries when file_magic_cmd begins with "file".
29717 MAGIC_CMD=$MAGIC_CMD
29718
29719 # Must we lock files when doing compilation?
29720 need_locks=$lt_need_locks
29721
29722 # Manifest tool.
29723 MANIFEST_TOOL=$lt_MANIFEST_TOOL
29724
29725 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
29726 DSYMUTIL=$lt_DSYMUTIL
29727
29728 # Tool to change global to local symbols on Mac OS X.
29729 NMEDIT=$lt_NMEDIT
29730
29731 # Tool to manipulate fat objects and archives on Mac OS X.
29732 LIPO=$lt_LIPO
29733
29734 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
29735 OTOOL=$lt_OTOOL
29736
29737 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
29738 OTOOL64=$lt_OTOOL64
29739
29740 # Old archive suffix (normally "a").
29741 libext=$libext
29742
29743 # Shared library suffix (normally ".so").
29744 shrext_cmds=$lt_shrext_cmds
29745
29746 # The commands to extract the exported symbol list from a shared archive.
29747 extract_expsyms_cmds=$lt_extract_expsyms_cmds
29748
29749 # Variables whose values should be saved in libtool wrapper scripts and
29750 # restored at link time.
29751 variables_saved_for_relink=$lt_variables_saved_for_relink
29752
29753 # Do we need the "lib" prefix for modules?
29754 need_lib_prefix=$need_lib_prefix
29755
29756 # Do we need a version for libraries?
29757 need_version=$need_version
29758
29759 # Library versioning type.
29760 version_type=$version_type
29761
29762 # Shared library runtime path variable.
29763 runpath_var=$runpath_var
29764
29765 # Shared library path variable.
29766 shlibpath_var=$shlibpath_var
29767
29768 # Is shlibpath searched before the hard-coded library search path?
29769 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
29770
29771 # Format of library name prefix.
29772 libname_spec=$lt_libname_spec
29773
29774 # List of archive names.  First name is the real one, the rest are links.
29775 # The last name is the one that the linker finds with -lNAME
29776 library_names_spec=$lt_library_names_spec
29777
29778 # The coded name of the library, if different from the real name.
29779 soname_spec=$lt_soname_spec
29780
29781 # Permission mode override for installation of shared libraries.
29782 install_override_mode=$lt_install_override_mode
29783
29784 # Command to use after installation of a shared archive.
29785 postinstall_cmds=$lt_postinstall_cmds
29786
29787 # Command to use after uninstallation of a shared archive.
29788 postuninstall_cmds=$lt_postuninstall_cmds
29789
29790 # Commands used to finish a libtool library installation in a directory.
29791 finish_cmds=$lt_finish_cmds
29792
29793 # As "finish_cmds", except a single script fragment to be evaled but
29794 # not shown.
29795 finish_eval=$lt_finish_eval
29796
29797 # Whether we should hardcode library paths into libraries.
29798 hardcode_into_libs=$hardcode_into_libs
29799
29800 # Compile-time system search path for libraries.
29801 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
29802
29803 # Detected run-time system search path for libraries.
29804 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
29805
29806 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
29807 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
29808
29809 # Whether dlopen is supported.
29810 dlopen_support=$enable_dlopen
29811
29812 # Whether dlopen of programs is supported.
29813 dlopen_self=$enable_dlopen_self
29814
29815 # Whether dlopen of statically linked programs is supported.
29816 dlopen_self_static=$enable_dlopen_self_static
29817
29818 # Commands to strip libraries.
29819 old_striplib=$lt_old_striplib
29820 striplib=$lt_striplib
29821
29822
29823 # The linker used to build libraries.
29824 LD=$lt_LD
29825
29826 # How to create reloadable object files.
29827 reload_flag=$lt_reload_flag
29828 reload_cmds=$lt_reload_cmds
29829
29830 # Commands used to build an old-style archive.
29831 old_archive_cmds=$lt_old_archive_cmds
29832
29833 # A language specific compiler.
29834 CC=$lt_compiler
29835
29836 # Is the compiler the GNU compiler?
29837 with_gcc=$GCC
29838
29839 # Compiler flag to turn off builtin functions.
29840 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
29841
29842 # Additional compiler flags for building library objects.
29843 pic_flag=$lt_lt_prog_compiler_pic
29844
29845 # How to pass a linker flag through the compiler.
29846 wl=$lt_lt_prog_compiler_wl
29847
29848 # Compiler flag to prevent dynamic linking.
29849 link_static_flag=$lt_lt_prog_compiler_static
29850
29851 # Does compiler simultaneously support -c and -o options?
29852 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
29853
29854 # Whether or not to add -lc for building shared libraries.
29855 build_libtool_need_lc=$archive_cmds_need_lc
29856
29857 # Whether or not to disallow shared libs when runtime libs are static.
29858 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
29859
29860 # Compiler flag to allow reflexive dlopens.
29861 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
29862
29863 # Compiler flag to generate shared objects directly from archives.
29864 whole_archive_flag_spec=$lt_whole_archive_flag_spec
29865
29866 # Whether the compiler copes with passing no objects directly.
29867 compiler_needs_object=$lt_compiler_needs_object
29868
29869 # Create an old-style archive from a shared archive.
29870 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
29871
29872 # Create a temporary old-style archive to link instead of a shared archive.
29873 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
29874
29875 # Commands used to build a shared archive.
29876 archive_cmds=$lt_archive_cmds
29877 archive_expsym_cmds=$lt_archive_expsym_cmds
29878
29879 # Commands used to build a loadable module if different from building
29880 # a shared archive.
29881 module_cmds=$lt_module_cmds
29882 module_expsym_cmds=$lt_module_expsym_cmds
29883
29884 # Whether we are building with GNU ld or not.
29885 with_gnu_ld=$lt_with_gnu_ld
29886
29887 # Flag that allows shared libraries with undefined symbols to be built.
29888 allow_undefined_flag=$lt_allow_undefined_flag
29889
29890 # Flag that enforces no undefined symbols.
29891 no_undefined_flag=$lt_no_undefined_flag
29892
29893 # Flag to hardcode \$libdir into a binary during linking.
29894 # This must work even if \$libdir does not exist
29895 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
29896
29897 # Whether we need a single "-rpath" flag with a separated argument.
29898 hardcode_libdir_separator=$lt_hardcode_libdir_separator
29899
29900 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
29901 # DIR into the resulting binary.
29902 hardcode_direct=$hardcode_direct
29903
29904 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
29905 # DIR into the resulting binary and the resulting library dependency is
29906 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
29907 # library is relocated.
29908 hardcode_direct_absolute=$hardcode_direct_absolute
29909
29910 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
29911 # into the resulting binary.
29912 hardcode_minus_L=$hardcode_minus_L
29913
29914 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
29915 # into the resulting binary.
29916 hardcode_shlibpath_var=$hardcode_shlibpath_var
29917
29918 # Set to "yes" if building a shared library automatically hardcodes DIR
29919 # into the library and all subsequent libraries and executables linked
29920 # against it.
29921 hardcode_automatic=$hardcode_automatic
29922
29923 # Set to yes if linker adds runtime paths of dependent libraries
29924 # to runtime path list.
29925 inherit_rpath=$inherit_rpath
29926
29927 # Whether libtool must link a program against all its dependency libraries.
29928 link_all_deplibs=$link_all_deplibs
29929
29930 # Set to "yes" if exported symbols are required.
29931 always_export_symbols=$always_export_symbols
29932
29933 # The commands to list exported symbols.
29934 export_symbols_cmds=$lt_export_symbols_cmds
29935
29936 # Symbols that should not be listed in the preloaded symbols.
29937 exclude_expsyms=$lt_exclude_expsyms
29938
29939 # Symbols that must always be exported.
29940 include_expsyms=$lt_include_expsyms
29941
29942 # Commands necessary for linking programs (against libraries) with templates.
29943 prelink_cmds=$lt_prelink_cmds
29944
29945 # Commands necessary for finishing linking programs.
29946 postlink_cmds=$lt_postlink_cmds
29947
29948 # Specify filename containing input files.
29949 file_list_spec=$lt_file_list_spec
29950
29951 # How to hardcode a shared library path into an executable.
29952 hardcode_action=$hardcode_action
29953
29954 # The directories searched by this compiler when creating a shared library.
29955 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
29956
29957 # Dependencies to place before and after the objects being linked to
29958 # create a shared library.
29959 predep_objects=$lt_predep_objects
29960 postdep_objects=$lt_postdep_objects
29961 predeps=$lt_predeps
29962 postdeps=$lt_postdeps
29963
29964 # The library search path used internally by the compiler when linking
29965 # a shared library.
29966 compiler_lib_search_path=$lt_compiler_lib_search_path
29967
29968 # ### END LIBTOOL CONFIG
29969
29970 _LT_EOF
29971
29972     cat <<'_LT_EOF' >> "$cfgfile"
29973
29974 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
29975
29976 # func_munge_path_list VARIABLE PATH
29977 # -----------------------------------
29978 # VARIABLE is name of variable containing _space_ separated list of
29979 # directories to be munged by the contents of PATH, which is string
29980 # having a format:
29981 # "DIR[:DIR]:"
29982 #       string "DIR[ DIR]" will be prepended to VARIABLE
29983 # ":DIR[:DIR]"
29984 #       string "DIR[ DIR]" will be appended to VARIABLE
29985 # "DIRP[:DIRP]::[DIRA:]DIRA"
29986 #       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
29987 #       "DIRA[ DIRA]" will be appended to VARIABLE
29988 # "DIR[:DIR]"
29989 #       VARIABLE will be replaced by "DIR[ DIR]"
29990 func_munge_path_list ()
29991 {
29992     case x$2 in
29993     x)
29994         ;;
29995     *:)
29996         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
29997         ;;
29998     x:*)
29999         eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
30000         ;;
30001     *::*)
30002         eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
30003         eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
30004         ;;
30005     *)
30006         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
30007         ;;
30008     esac
30009 }
30010
30011
30012 # Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
30013 func_cc_basename ()
30014 {
30015     for cc_temp in $*""; do
30016       case $cc_temp in
30017         compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
30018         distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
30019         \-*) ;;
30020         *) break;;
30021       esac
30022     done
30023     func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
30024 }
30025
30026
30027 # ### END FUNCTIONS SHARED WITH CONFIGURE
30028
30029 _LT_EOF
30030
30031   case $host_os in
30032   aix3*)
30033     cat <<\_LT_EOF >> "$cfgfile"
30034 # AIX sometimes has problems with the GCC collect2 program.  For some
30035 # reason, if we set the COLLECT_NAMES environment variable, the problems
30036 # vanish in a puff of smoke.
30037 if test set != "${COLLECT_NAMES+set}"; then
30038   COLLECT_NAMES=
30039   export COLLECT_NAMES
30040 fi
30041 _LT_EOF
30042     ;;
30043   esac
30044
30045
30046 ltmain=$ac_aux_dir/ltmain.sh
30047
30048
30049   # We use sed instead of cat because bash on DJGPP gets confused if
30050   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
30051   # text mode, it properly converts lines to CR/LF.  This bash problem
30052   # is reportedly fixed, but why not run on old versions too?
30053   sed '$q' "$ltmain" >> "$cfgfile" \
30054      || (rm -f "$cfgfile"; exit 1)
30055
30056    mv -f "$cfgfile" "$ofile" ||
30057     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
30058   chmod +x "$ofile"
30059
30060
30061     cat <<_LT_EOF >> "$ofile"
30062
30063 # ### BEGIN LIBTOOL TAG CONFIG: CXX
30064
30065 # The linker used to build libraries.
30066 LD=$lt_LD_CXX
30067
30068 # How to create reloadable object files.
30069 reload_flag=$lt_reload_flag_CXX
30070 reload_cmds=$lt_reload_cmds_CXX
30071
30072 # Commands used to build an old-style archive.
30073 old_archive_cmds=$lt_old_archive_cmds_CXX
30074
30075 # A language specific compiler.
30076 CC=$lt_compiler_CXX
30077
30078 # Is the compiler the GNU compiler?
30079 with_gcc=$GCC_CXX
30080
30081 # Compiler flag to turn off builtin functions.
30082 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
30083
30084 # Additional compiler flags for building library objects.
30085 pic_flag=$lt_lt_prog_compiler_pic_CXX
30086
30087 # How to pass a linker flag through the compiler.
30088 wl=$lt_lt_prog_compiler_wl_CXX
30089
30090 # Compiler flag to prevent dynamic linking.
30091 link_static_flag=$lt_lt_prog_compiler_static_CXX
30092
30093 # Does compiler simultaneously support -c and -o options?
30094 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
30095
30096 # Whether or not to add -lc for building shared libraries.
30097 build_libtool_need_lc=$archive_cmds_need_lc_CXX
30098
30099 # Whether or not to disallow shared libs when runtime libs are static.
30100 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
30101
30102 # Compiler flag to allow reflexive dlopens.
30103 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
30104
30105 # Compiler flag to generate shared objects directly from archives.
30106 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
30107
30108 # Whether the compiler copes with passing no objects directly.
30109 compiler_needs_object=$lt_compiler_needs_object_CXX
30110
30111 # Create an old-style archive from a shared archive.
30112 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
30113
30114 # Create a temporary old-style archive to link instead of a shared archive.
30115 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
30116
30117 # Commands used to build a shared archive.
30118 archive_cmds=$lt_archive_cmds_CXX
30119 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
30120
30121 # Commands used to build a loadable module if different from building
30122 # a shared archive.
30123 module_cmds=$lt_module_cmds_CXX
30124 module_expsym_cmds=$lt_module_expsym_cmds_CXX
30125
30126 # Whether we are building with GNU ld or not.
30127 with_gnu_ld=$lt_with_gnu_ld_CXX
30128
30129 # Flag that allows shared libraries with undefined symbols to be built.
30130 allow_undefined_flag=$lt_allow_undefined_flag_CXX
30131
30132 # Flag that enforces no undefined symbols.
30133 no_undefined_flag=$lt_no_undefined_flag_CXX
30134
30135 # Flag to hardcode \$libdir into a binary during linking.
30136 # This must work even if \$libdir does not exist
30137 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
30138
30139 # Whether we need a single "-rpath" flag with a separated argument.
30140 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
30141
30142 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
30143 # DIR into the resulting binary.
30144 hardcode_direct=$hardcode_direct_CXX
30145
30146 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
30147 # DIR into the resulting binary and the resulting library dependency is
30148 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
30149 # library is relocated.
30150 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
30151
30152 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
30153 # into the resulting binary.
30154 hardcode_minus_L=$hardcode_minus_L_CXX
30155
30156 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
30157 # into the resulting binary.
30158 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
30159
30160 # Set to "yes" if building a shared library automatically hardcodes DIR
30161 # into the library and all subsequent libraries and executables linked
30162 # against it.
30163 hardcode_automatic=$hardcode_automatic_CXX
30164
30165 # Set to yes if linker adds runtime paths of dependent libraries
30166 # to runtime path list.
30167 inherit_rpath=$inherit_rpath_CXX
30168
30169 # Whether libtool must link a program against all its dependency libraries.
30170 link_all_deplibs=$link_all_deplibs_CXX
30171
30172 # Set to "yes" if exported symbols are required.
30173 always_export_symbols=$always_export_symbols_CXX
30174
30175 # The commands to list exported symbols.
30176 export_symbols_cmds=$lt_export_symbols_cmds_CXX
30177
30178 # Symbols that should not be listed in the preloaded symbols.
30179 exclude_expsyms=$lt_exclude_expsyms_CXX
30180
30181 # Symbols that must always be exported.
30182 include_expsyms=$lt_include_expsyms_CXX
30183
30184 # Commands necessary for linking programs (against libraries) with templates.
30185 prelink_cmds=$lt_prelink_cmds_CXX
30186
30187 # Commands necessary for finishing linking programs.
30188 postlink_cmds=$lt_postlink_cmds_CXX
30189
30190 # Specify filename containing input files.
30191 file_list_spec=$lt_file_list_spec_CXX
30192
30193 # How to hardcode a shared library path into an executable.
30194 hardcode_action=$hardcode_action_CXX
30195
30196 # The directories searched by this compiler when creating a shared library.
30197 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
30198
30199 # Dependencies to place before and after the objects being linked to
30200 # create a shared library.
30201 predep_objects=$lt_predep_objects_CXX
30202 postdep_objects=$lt_postdep_objects_CXX
30203 predeps=$lt_predeps_CXX
30204 postdeps=$lt_postdeps_CXX
30205
30206 # The library search path used internally by the compiler when linking
30207 # a shared library.
30208 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
30209
30210 # ### END LIBTOOL TAG CONFIG: CXX
30211 _LT_EOF
30212
30213  ;;
30214     "svn_private_config.h.tmp":C) svn_cf=subversion/svn_private_config.h;
30215                     $SED -e "s/@SVN_DB_HEADER@/$SVN_DB_HEADER/" $svn_cf.tmp > $svn_cf.tmp.new
30216                     cmp -s $svn_cf.tmp.new $svn_cf || mv -f $svn_cf.tmp.new $svn_cf
30217                     rm -f $svn_cf.tmp.new $svn_cf.tmp ;;
30218     "tools/backup/hot-backup.py":F) chmod +x tools/backup/hot-backup.py ;;
30219     "tools/hook-scripts/commit-access-control.pl":F) chmod +x tools/hook-scripts/commit-access-control.pl ;;
30220     "subversion/bindings/swig/perl/native/Makefile.PL":F) chmod +x subversion/bindings/swig/perl/native/Makefile.PL ;;
30221     "packages/solaris/pkginfo":F) chmod +x packages/solaris/pkginfo ;;
30222
30223   esac
30224 done # for ac_tag
30225
30226
30227 as_fn_exit 0
30228 _ACEOF
30229 ac_clean_files=$ac_clean_files_save
30230
30231 test $ac_write_fail = 0 ||
30232   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
30233
30234
30235 # configure is writing to config.log, and then calls config.status.
30236 # config.status does its own redirection, appending to config.log.
30237 # Unfortunately, on DOS this fails, as config.log is still kept open
30238 # by configure, so config.status won't be able to write to it; its
30239 # output is simply discarded.  So we exec the FD to /dev/null,
30240 # effectively closing config.log, so it can be properly (re)opened and
30241 # appended to by config.status.  When coming back to configure, we
30242 # need to make the FD available again.
30243 if test "$no_create" != yes; then
30244   ac_cs_success=:
30245   ac_config_status_args=
30246   test "$silent" = yes &&
30247     ac_config_status_args="$ac_config_status_args --quiet"
30248   exec 5>/dev/null
30249   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
30250   exec 5>>config.log
30251   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
30252   # would make configure fail if this is the last instruction.
30253   $ac_cs_success || as_fn_exit 1
30254 fi
30255 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
30256   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
30257 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
30258 fi
30259
30260
30261 # ==== Print final messages to user ==========================================
30262
30263
30264 if test "$svn_have_berkeley_db" = "no6" && test "$enable_bdb6" != "no"; then
30265   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: We have configured without BDB filesystem support
30266
30267
30268 Berkeley DB 6 was found, but not used.  Please re-run configure (see
30269 ./config.nice) with the '--enable-bdb6' flag to use it,
30270 or explicitly specify '--disable-bdb6' or '--without-berkeley-db'
30271 to silence this warning.
30272
30273 Please note that some versions of Berkeley DB 6+ are under the GNU Affero
30274 General Public License, version 3:
30275 https://oss.oracle.com/pipermail/bdb/2013-June/000056.html
30276
30277 The AGPL-3.0 licence may impose special requirements for making available
30278 source code of server-side software.  The text of the licence is:
30279 https://www.gnu.org/licenses/agpl-3.0.html
30280 http://opensource.org/licenses/AGPL-3.0
30281
30282 The Berkeley DB backend to Subversion is deprecated; see
30283 http://subversion.apache.org/docs/release-notes/1.8#bdb-deprecated
30284
30285 The Subversion developers have not tested Subversion with Berkeley DB 6 for
30286 technical problems or bugs.
30287 " >&5
30288 $as_echo "$as_me: WARNING: We have configured without BDB filesystem support
30289
30290
30291 Berkeley DB 6 was found, but not used.  Please re-run configure (see
30292 ./config.nice) with the '--enable-bdb6' flag to use it,
30293 or explicitly specify '--disable-bdb6' or '--without-berkeley-db'
30294 to silence this warning.
30295
30296 Please note that some versions of Berkeley DB 6+ are under the GNU Affero
30297 General Public License, version 3:
30298 https://oss.oracle.com/pipermail/bdb/2013-June/000056.html
30299
30300 The AGPL-3.0 licence may impose special requirements for making available
30301 source code of server-side software.  The text of the licence is:
30302 https://www.gnu.org/licenses/agpl-3.0.html
30303 http://opensource.org/licenses/AGPL-3.0
30304
30305 The Berkeley DB backend to Subversion is deprecated; see
30306 http://subversion.apache.org/docs/release-notes/1.8#bdb-deprecated
30307
30308 The Subversion developers have not tested Subversion with Berkeley DB 6 for
30309 technical problems or bugs.
30310 " >&2;}
30311 fi