]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - contrib/subversion/configure
Add two missing eventhandler.h headers
[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.10.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.10.0'
594 PACKAGE_STRING='subversion 1.10.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_FS_LIB_LINK
646 SVN_FS_LIB_INSTALL_DEPS
647 SVN_FS_LIB_DEPS
648 SVN_RA_LIB_LINK
649 SVN_RA_LIB_INSTALL_DEPS
650 SVN_RA_LIB_DEPS
651 CTYPESGEN
652 SWIG_PY_FEATURES
653 SWIG_PL_FEATURES
654 SWIG_RB_FEATURES
655 SWIG_FEATURES
656 SWIG_RB_TEST_VERBOSE
657 SWIG_RB_SITE_ARCH_DIR
658 SWIG_RB_SITE_LIB_DIR
659 SWIG_RB_COMPILE
660 SWIG_RB_INCLUDES
661 SWIG_RB_LIBS
662 SWIG_RB_LINK
663 SWIG_PL_LINK
664 SWIG_PL_INCLUDES
665 SWIG_PY_LIBS
666 SWIG_PY_LINK
667 SWIG_PY_COMPILE
668 SWIG_PY_INCLUDES
669 SWIG
670 RUBY_TEENY
671 RUBY_MINOR
672 RUBY_MAJOR
673 RDOC
674 RUBY
675 PERL
676 JNI_INCLUDES
677 JAR
678 JAVAH
679 JAVADOC
680 JAVAC_COMPAT_FLAGS
681 JAVAC_FLAGS
682 JAVAC
683 JAVA
684 JDK
685 PYTHON
686 MOD_ACTIVATION
687 SVN_UTF8PROC_LIBS
688 SVN_UTF8PROC_INCLUDES
689 SVN_LZ4_LIBS
690 SVN_LZ4_INCLUDES
691 SVN_ZLIB_LIBS
692 SVN_ZLIB_INCLUDES
693 shared_only_LDFLAGS
694 libsvn_wc_LDFLAGS
695 libsvn_subr_LDFLAGS
696 libsvn_repos_LDFLAGS
697 libsvn_ra_svn_LDFLAGS
698 libsvn_ra_serf_LDFLAGS
699 libsvn_ra_local_LDFLAGS
700 libsvn_ra_LDFLAGS
701 libsvn_fs_util_LDFLAGS
702 libsvn_fs_fs_LDFLAGS
703 libsvn_fs_base_LDFLAGS
704 libsvn_fs_LDFLAGS
705 libsvn_diff_LDFLAGS
706 libsvn_delta_LDFLAGS
707 libsvn_client_LDFLAGS
708 LIBOBJS
709 BDB_TEST_PROGRAMS
710 BDB_TEST_DEPS
711 INSTALL_RULES
712 INSTALL_STATIC_RULES
713 BUILD_RULES
714 SVN_KWALLET_LIBS
715 SVN_KWALLET_INCLUDES
716 KDE_CONFIG
717 SVN_MAGIC_LIBS
718 SVN_MAGIC_INCLUDES
719 MSGFMTFLAGS
720 NO_GETTEXT_CODESET
721 GETTEXT_CODESET
722 SVN_INTL_LIBS
723 XGETTEXT
724 MSGMERGE
725 MSGFMT
726 SVN_USE_GOOGLEMOCK
727 GOOGLEMOCK_SRCDIR
728 SVN_GNOME_KEYRING_LIBS
729 SVN_GNOME_KEYRING_INCLUDES
730 SVN_HAVE_GPG_AGENT
731 SVN_SASL_LIBS
732 SVN_SASL_INCLUDES
733 SVN_DB_LIBS
734 SVN_DB_INCLUDES
735 SVN_XML_LIBS
736 SVN_XML_INCLUDES
737 DOXYGEN
738 TRANG
739 LT_NO_UNDEFINED
740 TRANSFORM_LIBTOOL_SCRIPTS
741 LT_LDFLAGS
742 LT_CFLAGS
743 SVN_LIBTOOL
744 CXXCPP
745 LT_SYS_LIBRARY_PATH
746 OTOOL64
747 OTOOL
748 LIPO
749 NMEDIT
750 DSYMUTIL
751 MANIFEST_TOOL
752 AWK
753 RANLIB
754 STRIP
755 ac_ct_AR
756 AR
757 DLLTOOL
758 OBJDUMP
759 NM
760 ac_ct_DUMPBIN
761 DUMPBIN
762 LD
763 FGREP
764 LIBTOOL
765 SVN_BINDIR
766 SVN_SQLITE_LIBS
767 SVN_SQLITE_INCLUDES
768 HTTPD_VERSION
769 INSTALL_APACHE_MODS
770 APACHE_LIBEXECDIR
771 APACHE_INCLUDES
772 APACHE_LDFLAGS
773 APXS
774 HTTPD_WHITELIST
775 SVN_APR_MEMCACHE_LIBS
776 SVN_APR_MEMCACHE_INCLUDES
777 SVN_SERF_LIBS
778 SVN_SERF_INCLUDES
779 PKG_CONFIG
780 SVN_LT_SOVERSION
781 SVN_APR_MAJOR_VERSION
782 SVN_APRUTIL_LIBS
783 SVN_APRUTIL_CONFIG
784 SVN_APRUTIL_INCLUDES
785 SVN_APR_SHLIB_PATH_VAR
786 SVN_APR_LIBS
787 SVN_APR_INCLUDES
788 SVN_APR_CONFIG
789 MKDIR
790 INSTALL_DATA
791 INSTALL_SCRIPT
792 INSTALL_PROGRAM
793 LN_S
794 EGREP
795 GREP
796 target_os
797 target_vendor
798 target_cpu
799 target
800 host_os
801 host_vendor
802 host_cpu
803 host
804 build_os
805 build_vendor
806 build_cpu
807 build
808 SED
809 CPP
810 CXXUSERFLAGS
811 CXXMAINTAINERFLAGS
812 CXXNOWARNFLAGS
813 CXXMODEFLAGS
814 ac_ct_CXX
815 CXXFLAGS
816 CXX
817 CUSERFLAGS
818 CMAINTAINERFLAGS
819 CNOWARNFLAGS
820 CMODEFLAGS
821 OBJEXT
822 EXEEXT
823 ac_ct_CC
824 CPPFLAGS
825 LDFLAGS
826 CFLAGS
827 CC
828 SWIG_LDFLAGS
829 canonicalized_srcdir
830 abs_builddir
831 abs_srcdir
832 target_alias
833 host_alias
834 build_alias
835 LIBS
836 ECHO_T
837 ECHO_N
838 ECHO_C
839 DEFS
840 mandir
841 localedir
842 libdir
843 psdir
844 pdfdir
845 dvidir
846 htmldir
847 infodir
848 docdir
849 oldincludedir
850 includedir
851 localstatedir
852 sharedstatedir
853 sysconfdir
854 datadir
855 datarootdir
856 libexecdir
857 sbindir
858 bindir
859 program_transform_name
860 prefix
861 exec_prefix
862 PACKAGE_URL
863 PACKAGE_BUGREPORT
864 PACKAGE_STRING
865 PACKAGE_VERSION
866 PACKAGE_TARNAME
867 PACKAGE_NAME
868 PATH_SEPARATOR
869 SHELL'
870 ac_subst_files=''
871 ac_user_opts='
872 enable_option_checking
873 with_apr
874 with_apr_util
875 with_serf
876 with_apr_memcache
877 enable_apache_whitelist
878 with_apxs
879 with_apache_libexecdir
880 enable_broken_httpd_auth
881 with_sqlite
882 enable_sqlite_compatibility_version
883 enable_shared
884 enable_static
885 with_pic
886 enable_fast_install
887 with_aix_soname
888 with_gnu_ld
889 with_sysroot
890 enable_libtool_lock
891 enable_experimental_libtool
892 enable_all_static
893 enable_local_library_preloading
894 with_trang
895 with_doxygen
896 with_expat
897 with_berkeley_db
898 enable_bdb6
899 with_sasl
900 enable_keychain
901 with_gpg_agent
902 with_old_gnome_keyring
903 with_gnome_keyring
904 enable_googlemock
905 enable_ev2_impl
906 enable_nls
907 with_libmagic
908 with_kwallet
909 enable_plaintext_password_storage
910 enable_debug
911 enable_optimize
912 enable_disallowing_of_undefined_references
913 enable_maintainer_mode
914 enable_full_version_match
915 with_editor
916 with_zlib
917 with_lz4
918 with_utf8proc
919 enable_mod_activation
920 enable_gcov
921 enable_gprof
922 with_jdk
923 with_jikes
924 with_swig
925 with_ruby_sitedir
926 with_ruby_test_verbose
927 with_ctypesgen
928 enable_runtime_module_search
929 enable_javahl
930 with_junit
931 '
932       ac_precious_vars='build_alias
933 host_alias
934 target_alias
935 CC
936 CFLAGS
937 LDFLAGS
938 LIBS
939 CPPFLAGS
940 CXX
941 CXXFLAGS
942 CCC
943 CPP
944 LT_SYS_LIBRARY_PATH
945 CXXCPP
946 SWIG_FEATURES
947 SWIG_RB_FEATURES
948 SWIG_PL_FEATURES
949 SWIG_PY_FEATURES'
950
951
952 # Initialize some variables set by options.
953 ac_init_help=
954 ac_init_version=false
955 ac_unrecognized_opts=
956 ac_unrecognized_sep=
957 # The variables have the same names as the options, with
958 # dashes changed to underlines.
959 cache_file=/dev/null
960 exec_prefix=NONE
961 no_create=
962 no_recursion=
963 prefix=NONE
964 program_prefix=NONE
965 program_suffix=NONE
966 program_transform_name=s,x,x,
967 silent=
968 site=
969 srcdir=
970 verbose=
971 x_includes=NONE
972 x_libraries=NONE
973
974 # Installation directory options.
975 # These are left unexpanded so users can "make install exec_prefix=/foo"
976 # and all the variables that are supposed to be based on exec_prefix
977 # by default will actually change.
978 # Use braces instead of parens because sh, perl, etc. also accept them.
979 # (The list follows the same order as the GNU Coding Standards.)
980 bindir='${exec_prefix}/bin'
981 sbindir='${exec_prefix}/sbin'
982 libexecdir='${exec_prefix}/libexec'
983 datarootdir='${prefix}/share'
984 datadir='${datarootdir}'
985 sysconfdir='${prefix}/etc'
986 sharedstatedir='${prefix}/com'
987 localstatedir='${prefix}/var'
988 includedir='${prefix}/include'
989 oldincludedir='/usr/include'
990 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
991 infodir='${datarootdir}/info'
992 htmldir='${docdir}'
993 dvidir='${docdir}'
994 pdfdir='${docdir}'
995 psdir='${docdir}'
996 libdir='${exec_prefix}/lib'
997 localedir='${datarootdir}/locale'
998 mandir='${datarootdir}/man'
999
1000 ac_prev=
1001 ac_dashdash=
1002 for ac_option
1003 do
1004   # If the previous option needs an argument, assign it.
1005   if test -n "$ac_prev"; then
1006     eval $ac_prev=\$ac_option
1007     ac_prev=
1008     continue
1009   fi
1010
1011   case $ac_option in
1012   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1013   *=)   ac_optarg= ;;
1014   *)    ac_optarg=yes ;;
1015   esac
1016
1017   # Accept the important Cygnus configure options, so we can diagnose typos.
1018
1019   case $ac_dashdash$ac_option in
1020   --)
1021     ac_dashdash=yes ;;
1022
1023   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1024     ac_prev=bindir ;;
1025   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1026     bindir=$ac_optarg ;;
1027
1028   -build | --build | --buil | --bui | --bu)
1029     ac_prev=build_alias ;;
1030   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1031     build_alias=$ac_optarg ;;
1032
1033   -cache-file | --cache-file | --cache-fil | --cache-fi \
1034   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1035     ac_prev=cache_file ;;
1036   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1037   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1038     cache_file=$ac_optarg ;;
1039
1040   --config-cache | -C)
1041     cache_file=config.cache ;;
1042
1043   -datadir | --datadir | --datadi | --datad)
1044     ac_prev=datadir ;;
1045   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1046     datadir=$ac_optarg ;;
1047
1048   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1049   | --dataroo | --dataro | --datar)
1050     ac_prev=datarootdir ;;
1051   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1052   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1053     datarootdir=$ac_optarg ;;
1054
1055   -disable-* | --disable-*)
1056     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1057     # Reject names that are not valid shell variable names.
1058     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1059       as_fn_error $? "invalid feature name: $ac_useropt"
1060     ac_useropt_orig=$ac_useropt
1061     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1062     case $ac_user_opts in
1063       *"
1064 "enable_$ac_useropt"
1065 "*) ;;
1066       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1067          ac_unrecognized_sep=', ';;
1068     esac
1069     eval enable_$ac_useropt=no ;;
1070
1071   -docdir | --docdir | --docdi | --doc | --do)
1072     ac_prev=docdir ;;
1073   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1074     docdir=$ac_optarg ;;
1075
1076   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1077     ac_prev=dvidir ;;
1078   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1079     dvidir=$ac_optarg ;;
1080
1081   -enable-* | --enable-*)
1082     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1083     # Reject names that are not valid shell variable names.
1084     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1085       as_fn_error $? "invalid feature name: $ac_useropt"
1086     ac_useropt_orig=$ac_useropt
1087     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1088     case $ac_user_opts in
1089       *"
1090 "enable_$ac_useropt"
1091 "*) ;;
1092       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1093          ac_unrecognized_sep=', ';;
1094     esac
1095     eval enable_$ac_useropt=\$ac_optarg ;;
1096
1097   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1098   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1099   | --exec | --exe | --ex)
1100     ac_prev=exec_prefix ;;
1101   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1102   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1103   | --exec=* | --exe=* | --ex=*)
1104     exec_prefix=$ac_optarg ;;
1105
1106   -gas | --gas | --ga | --g)
1107     # Obsolete; use --with-gas.
1108     with_gas=yes ;;
1109
1110   -help | --help | --hel | --he | -h)
1111     ac_init_help=long ;;
1112   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1113     ac_init_help=recursive ;;
1114   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1115     ac_init_help=short ;;
1116
1117   -host | --host | --hos | --ho)
1118     ac_prev=host_alias ;;
1119   -host=* | --host=* | --hos=* | --ho=*)
1120     host_alias=$ac_optarg ;;
1121
1122   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1123     ac_prev=htmldir ;;
1124   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1125   | --ht=*)
1126     htmldir=$ac_optarg ;;
1127
1128   -includedir | --includedir | --includedi | --included | --include \
1129   | --includ | --inclu | --incl | --inc)
1130     ac_prev=includedir ;;
1131   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1132   | --includ=* | --inclu=* | --incl=* | --inc=*)
1133     includedir=$ac_optarg ;;
1134
1135   -infodir | --infodir | --infodi | --infod | --info | --inf)
1136     ac_prev=infodir ;;
1137   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1138     infodir=$ac_optarg ;;
1139
1140   -libdir | --libdir | --libdi | --libd)
1141     ac_prev=libdir ;;
1142   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1143     libdir=$ac_optarg ;;
1144
1145   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1146   | --libexe | --libex | --libe)
1147     ac_prev=libexecdir ;;
1148   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1149   | --libexe=* | --libex=* | --libe=*)
1150     libexecdir=$ac_optarg ;;
1151
1152   -localedir | --localedir | --localedi | --localed | --locale)
1153     ac_prev=localedir ;;
1154   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1155     localedir=$ac_optarg ;;
1156
1157   -localstatedir | --localstatedir | --localstatedi | --localstated \
1158   | --localstate | --localstat | --localsta | --localst | --locals)
1159     ac_prev=localstatedir ;;
1160   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1161   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1162     localstatedir=$ac_optarg ;;
1163
1164   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1165     ac_prev=mandir ;;
1166   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1167     mandir=$ac_optarg ;;
1168
1169   -nfp | --nfp | --nf)
1170     # Obsolete; use --without-fp.
1171     with_fp=no ;;
1172
1173   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1174   | --no-cr | --no-c | -n)
1175     no_create=yes ;;
1176
1177   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1178   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1179     no_recursion=yes ;;
1180
1181   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1182   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1183   | --oldin | --oldi | --old | --ol | --o)
1184     ac_prev=oldincludedir ;;
1185   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1186   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1187   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1188     oldincludedir=$ac_optarg ;;
1189
1190   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1191     ac_prev=prefix ;;
1192   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1193     prefix=$ac_optarg ;;
1194
1195   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1196   | --program-pre | --program-pr | --program-p)
1197     ac_prev=program_prefix ;;
1198   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1199   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1200     program_prefix=$ac_optarg ;;
1201
1202   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1203   | --program-suf | --program-su | --program-s)
1204     ac_prev=program_suffix ;;
1205   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1206   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1207     program_suffix=$ac_optarg ;;
1208
1209   -program-transform-name | --program-transform-name \
1210   | --program-transform-nam | --program-transform-na \
1211   | --program-transform-n | --program-transform- \
1212   | --program-transform | --program-transfor \
1213   | --program-transfo | --program-transf \
1214   | --program-trans | --program-tran \
1215   | --progr-tra | --program-tr | --program-t)
1216     ac_prev=program_transform_name ;;
1217   -program-transform-name=* | --program-transform-name=* \
1218   | --program-transform-nam=* | --program-transform-na=* \
1219   | --program-transform-n=* | --program-transform-=* \
1220   | --program-transform=* | --program-transfor=* \
1221   | --program-transfo=* | --program-transf=* \
1222   | --program-trans=* | --program-tran=* \
1223   | --progr-tra=* | --program-tr=* | --program-t=*)
1224     program_transform_name=$ac_optarg ;;
1225
1226   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1227     ac_prev=pdfdir ;;
1228   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1229     pdfdir=$ac_optarg ;;
1230
1231   -psdir | --psdir | --psdi | --psd | --ps)
1232     ac_prev=psdir ;;
1233   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1234     psdir=$ac_optarg ;;
1235
1236   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1237   | -silent | --silent | --silen | --sile | --sil)
1238     silent=yes ;;
1239
1240   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1241     ac_prev=sbindir ;;
1242   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1243   | --sbi=* | --sb=*)
1244     sbindir=$ac_optarg ;;
1245
1246   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1247   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1248   | --sharedst | --shareds | --shared | --share | --shar \
1249   | --sha | --sh)
1250     ac_prev=sharedstatedir ;;
1251   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1252   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1253   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1254   | --sha=* | --sh=*)
1255     sharedstatedir=$ac_optarg ;;
1256
1257   -site | --site | --sit)
1258     ac_prev=site ;;
1259   -site=* | --site=* | --sit=*)
1260     site=$ac_optarg ;;
1261
1262   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1263     ac_prev=srcdir ;;
1264   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1265     srcdir=$ac_optarg ;;
1266
1267   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1268   | --syscon | --sysco | --sysc | --sys | --sy)
1269     ac_prev=sysconfdir ;;
1270   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1271   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1272     sysconfdir=$ac_optarg ;;
1273
1274   -target | --target | --targe | --targ | --tar | --ta | --t)
1275     ac_prev=target_alias ;;
1276   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1277     target_alias=$ac_optarg ;;
1278
1279   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1280     verbose=yes ;;
1281
1282   -version | --version | --versio | --versi | --vers | -V)
1283     ac_init_version=: ;;
1284
1285   -with-* | --with-*)
1286     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1287     # Reject names that are not valid shell variable names.
1288     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1289       as_fn_error $? "invalid package name: $ac_useropt"
1290     ac_useropt_orig=$ac_useropt
1291     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1292     case $ac_user_opts in
1293       *"
1294 "with_$ac_useropt"
1295 "*) ;;
1296       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1297          ac_unrecognized_sep=', ';;
1298     esac
1299     eval with_$ac_useropt=\$ac_optarg ;;
1300
1301   -without-* | --without-*)
1302     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1303     # Reject names that are not valid shell variable names.
1304     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1305       as_fn_error $? "invalid package name: $ac_useropt"
1306     ac_useropt_orig=$ac_useropt
1307     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1308     case $ac_user_opts in
1309       *"
1310 "with_$ac_useropt"
1311 "*) ;;
1312       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1313          ac_unrecognized_sep=', ';;
1314     esac
1315     eval with_$ac_useropt=no ;;
1316
1317   --x)
1318     # Obsolete; use --with-x.
1319     with_x=yes ;;
1320
1321   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1322   | --x-incl | --x-inc | --x-in | --x-i)
1323     ac_prev=x_includes ;;
1324   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1325   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1326     x_includes=$ac_optarg ;;
1327
1328   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1329   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1330     ac_prev=x_libraries ;;
1331   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1332   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1333     x_libraries=$ac_optarg ;;
1334
1335   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1336 Try \`$0 --help' for more information"
1337     ;;
1338
1339   *=*)
1340     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1341     # Reject names that are not valid shell variable names.
1342     case $ac_envvar in #(
1343       '' | [0-9]* | *[!_$as_cr_alnum]* )
1344       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1345     esac
1346     eval $ac_envvar=\$ac_optarg
1347     export $ac_envvar ;;
1348
1349   *)
1350     # FIXME: should be removed in autoconf 3.0.
1351     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1352     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1353       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1354     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1355     ;;
1356
1357   esac
1358 done
1359
1360 if test -n "$ac_prev"; then
1361   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1362   as_fn_error $? "missing argument to $ac_option"
1363 fi
1364
1365 if test -n "$ac_unrecognized_opts"; then
1366   case $enable_option_checking in
1367     no) ;;
1368     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1369     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1370   esac
1371 fi
1372
1373 # Check all directory arguments for consistency.
1374 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1375                 datadir sysconfdir sharedstatedir localstatedir includedir \
1376                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1377                 libdir localedir mandir
1378 do
1379   eval ac_val=\$$ac_var
1380   # Remove trailing slashes.
1381   case $ac_val in
1382     */ )
1383       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1384       eval $ac_var=\$ac_val;;
1385   esac
1386   # Be sure to have absolute directory names.
1387   case $ac_val in
1388     [\\/$]* | ?:[\\/]* )  continue;;
1389     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1390   esac
1391   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1392 done
1393
1394 # There might be people who depend on the old broken behavior: `$host'
1395 # used to hold the argument of --host etc.
1396 # FIXME: To remove some day.
1397 build=$build_alias
1398 host=$host_alias
1399 target=$target_alias
1400
1401 # FIXME: To remove some day.
1402 if test "x$host_alias" != x; then
1403   if test "x$build_alias" = x; then
1404     cross_compiling=maybe
1405   elif test "x$build_alias" != "x$host_alias"; then
1406     cross_compiling=yes
1407   fi
1408 fi
1409
1410 ac_tool_prefix=
1411 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1412
1413 test "$silent" = yes && exec 6>/dev/null
1414
1415
1416 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1417 ac_ls_di=`ls -di .` &&
1418 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1419   as_fn_error $? "working directory cannot be determined"
1420 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1421   as_fn_error $? "pwd does not report name of working directory"
1422
1423
1424 # Find the source files, if location was not specified.
1425 if test -z "$srcdir"; then
1426   ac_srcdir_defaulted=yes
1427   # Try the directory containing this script, then the parent directory.
1428   ac_confdir=`$as_dirname -- "$as_myself" ||
1429 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1430          X"$as_myself" : 'X\(//\)[^/]' \| \
1431          X"$as_myself" : 'X\(//\)$' \| \
1432          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1433 $as_echo X"$as_myself" |
1434     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1435             s//\1/
1436             q
1437           }
1438           /^X\(\/\/\)[^/].*/{
1439             s//\1/
1440             q
1441           }
1442           /^X\(\/\/\)$/{
1443             s//\1/
1444             q
1445           }
1446           /^X\(\/\).*/{
1447             s//\1/
1448             q
1449           }
1450           s/.*/./; q'`
1451   srcdir=$ac_confdir
1452   if test ! -r "$srcdir/$ac_unique_file"; then
1453     srcdir=..
1454   fi
1455 else
1456   ac_srcdir_defaulted=no
1457 fi
1458 if test ! -r "$srcdir/$ac_unique_file"; then
1459   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1460   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1461 fi
1462 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1463 ac_abs_confdir=`(
1464         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1465         pwd)`
1466 # When building in place, set srcdir=.
1467 if test "$ac_abs_confdir" = "$ac_pwd"; then
1468   srcdir=.
1469 fi
1470 # Remove unnecessary trailing slashes from srcdir.
1471 # Double slashes in file names in object file debugging info
1472 # mess up M-x gdb in Emacs.
1473 case $srcdir in
1474 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1475 esac
1476 for ac_var in $ac_precious_vars; do
1477   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1478   eval ac_env_${ac_var}_value=\$${ac_var}
1479   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1480   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1481 done
1482
1483 #
1484 # Report the --help message.
1485 #
1486 if test "$ac_init_help" = "long"; then
1487   # Omit some internal or obsolete options to make the list less imposing.
1488   # This message is too long to be a string in the A/UX 3.1 sh.
1489   cat <<_ACEOF
1490 \`configure' configures subversion 1.10.0 to adapt to many kinds of systems.
1491
1492 Usage: $0 [OPTION]... [VAR=VALUE]...
1493
1494 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1495 VAR=VALUE.  See below for descriptions of some of the useful variables.
1496
1497 Defaults for the options are specified in brackets.
1498
1499 Configuration:
1500   -h, --help              display this help and exit
1501       --help=short        display options specific to this package
1502       --help=recursive    display the short help of all the included packages
1503   -V, --version           display version information and exit
1504   -q, --quiet, --silent   do not print \`checking ...' messages
1505       --cache-file=FILE   cache test results in FILE [disabled]
1506   -C, --config-cache      alias for \`--cache-file=config.cache'
1507   -n, --no-create         do not create output files
1508       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1509
1510 Installation directories:
1511   --prefix=PREFIX         install architecture-independent files in PREFIX
1512                           [$ac_default_prefix]
1513   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1514                           [PREFIX]
1515
1516 By default, \`make install' will install all the files in
1517 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1518 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1519 for instance \`--prefix=\$HOME'.
1520
1521 For better control, use the options below.
1522
1523 Fine tuning of the installation directories:
1524   --bindir=DIR            user executables [EPREFIX/bin]
1525   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1526   --libexecdir=DIR        program executables [EPREFIX/libexec]
1527   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1528   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1529   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1530   --libdir=DIR            object code libraries [EPREFIX/lib]
1531   --includedir=DIR        C header files [PREFIX/include]
1532   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1533   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1534   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1535   --infodir=DIR           info documentation [DATAROOTDIR/info]
1536   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1537   --mandir=DIR            man documentation [DATAROOTDIR/man]
1538   --docdir=DIR            documentation root [DATAROOTDIR/doc/subversion]
1539   --htmldir=DIR           html documentation [DOCDIR]
1540   --dvidir=DIR            dvi documentation [DOCDIR]
1541   --pdfdir=DIR            pdf documentation [DOCDIR]
1542   --psdir=DIR             ps documentation [DOCDIR]
1543 _ACEOF
1544
1545   cat <<\_ACEOF
1546
1547 System types:
1548   --build=BUILD     configure for building on BUILD [guessed]
1549   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1550   --target=TARGET   configure for building compilers for TARGET [HOST]
1551 _ACEOF
1552 fi
1553
1554 if test -n "$ac_init_help"; then
1555   case $ac_init_help in
1556      short | recursive ) echo "Configuration of subversion 1.10.0:";;
1557    esac
1558   cat <<\_ACEOF
1559
1560 Optional Features:
1561   --disable-option-checking  ignore unrecognized --enable/--with options
1562   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1563   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1564   --enable-apache-whitelist=VER
1565                           Whitelist a particular Apache version number,
1566                           typically used to enable the use of a old version
1567                           patched by a distribution.
1568   --enable-broken-httpd-auth
1569                           Force build against httpd 2.4 with broken auth.
1570                           (This is not recommended as Subversion will be
1571                           vulnerable to CVE-2015-3184.)
1572   --enable-sqlite-compatibility-version=X.Y.Z
1573                           Allow binary to run against SQLite as old as ARG
1574   --enable-shared[=PKGS]  build shared libraries [default=yes]
1575   --enable-static[=PKGS]  build static libraries [default=yes]
1576   --enable-fast-install[=PKGS]
1577                           optimize for fast installation [default=yes]
1578   --disable-libtool-lock  avoid locking (might break parallel builds)
1579   --enable-experimental-libtool
1580                           Use APR's libtool
1581   --enable-static         Build static libraries
1582   --enable-shared         Build shared libraries
1583   --enable-all-static     Build completely static (standalone) binaries.
1584   --enable-local-library-preloading
1585                           Enable preloading of locally built libraries in
1586                           locally built executables. This may be necessary for
1587                           testing prior to installation on some platforms. It
1588                           does not work on some platforms (Darwin, OpenBSD,
1589                           ...).
1590   --enable-bdb6           Allow building against BDB 6+. See
1591                           --with-berkeley-db for specifying the location of
1592                           the Berkeley DB installation. Using BDB 6 will fail
1593                           if this option is not used.
1594   --disable-keychain      Disable use of Mac OS KeyChain for auth credentials
1595   --disable-googlemock    Do not use the Googlemock testing framework
1596   --enable-ev2-impl       Use Ev2 implementations, where available
1597                           [EXPERIMENTAL]
1598   --disable-nls           Disable gettext functionality
1599   --disable-plaintext-password-storage
1600                           Disable on-disk caching of plaintext passwords and
1601                           passphrases. (Leaving this functionality enabled
1602                           will not force Subversion to store passwords in
1603                           plaintext, but does permit users to explicitly allow
1604                           that behavior via runtime configuration.)
1605   --enable-debug          Turn on debugging
1606   --enable-optimize       Turn on optimizations
1607   --enable-disallowing-of-undefined-references
1608                           Use -Wl,--no-undefined flag during linking of some
1609                           libraries to disallow undefined references
1610   --enable-maintainer-mode
1611                           Turn on debugging and very strict compile-time
1612                           warnings
1613   --disable-full-version-match
1614                           Disable the full version match rules when checking
1615                           Subversion library compatibility.
1616   --enable-mod-activation Enable mod_dav_svn in httpd.conf
1617   --enable-gcov           Turn on gcov coverage testing (GCC only).
1618   --enable-gprof          Produce gprof profiling data in 'gmon.out' (GCC
1619                           only).
1620   --enable-runtime-module-search
1621                           Turn on dynamic loading of RA/FS libraries including
1622                           third-party FS libraries
1623   --enable-javahl         Enable compilation of Java high-level bindings
1624                           (requires C++)
1625
1626 Optional Packages:
1627   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1628   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1629   --with-apr=PATH         prefix for installed APR or the full path to
1630                              apr-config
1631   --with-apr-util=PATH    prefix for installed APU or the full path to
1632                              apu-config
1633   --with-serf=PREFIX      Serf HTTP client library (enabled by default if
1634                           found)
1635   --with-apr_memcache=PREFIX
1636                           Standalone apr_memcache client library
1637   --with-apxs[=FILE]      Build shared Apache modules. FILE is the optional
1638                           pathname to the Apache apxs tool; defaults to
1639                           "apxs".
1640   --with-apache-libexecdir[=PATH]
1641                           Install Apache modules to Apache's configured
1642                           modules directory instead of LIBEXECDIR; if PATH is
1643                           given, install to PATH.
1644   --with-sqlite=PREFIX    Use installed SQLite library or amalgamation file.
1645   --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1646                           both]
1647   --with-aix-soname=aix|svr4|both
1648                           shared library versioning (aka "SONAME") variant to
1649                           provide on AIX, [default=aix].
1650   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1651   --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
1652                           compiler's sysroot if not specified).
1653   --with-trang=PATH       Specify the command to run the trang schema
1654                           converter
1655   --with-doxygen=PATH     Specify the command to run doxygen
1656   --with-expat=INCLUDES:LIB_SEARCH_DIRS:LIBS
1657                           Specify location of Expat
1658   --with-berkeley-db[=HEADER:INCLUDES:LIB_SEARCH_DIRS:LIBS]
1659                           The Subversion Berkeley DB based filesystem library
1660                           requires Berkeley DB $db_version or $db_alt_version.
1661                           If you specify `--without-berkeley-db', that library
1662                           will not be built. If you omit the argument of this
1663                           option completely, the configure script will use
1664                           Berkeley DB used by APR-UTIL.
1665   --with-sasl=PATH        Compile with libsasl2 in PATH
1666   --without-gpg-agent     Disable support for GPG-Agent
1667   --with-old-gnome-keyring
1668                           Enable old GNOME Keyring for auth credentials
1669                           (prefer --with-gnome-keyring)
1670   --with-gnome-keyring    Enable GNOME Keyring for auth credentials (enabled
1671                           by default if found)
1672   --with-libmagic=PREFIX  libmagic filetype detection library
1673   --with-kwallet[=PATH|INCDIR:LIBDIR]
1674                           Enable use of KWallet (KDE 5 or 4) for auth
1675                           credentials. PATH is the KDE install path,
1676                           alternatively INCDIR:LIBDIR are the header and
1677                           library install paths.
1678   --with-editor=PATH      Specify a default editor for the subversion client.
1679   --with-zlib=PREFIX      zlib compression library
1680   --with-lz4=PREFIX|internal
1681                           look for lz4 in PREFIX or use the internal code
1682   --with-utf8proc=PREFIX|internal
1683                           look for utf8proc in PREFIX or use the internal code
1684   --with-jdk=PATH         Try to use 'PATH/include' to find the JNI headers.
1685                           If PATH is not specified, look for a Java
1686                           Development Kit at JAVA_HOME.
1687   --with-jikes=PATH       Deprecated. Provided for backward compatibility.
1688   --with-swig=PATH        Try to use 'PATH/bin/swig' to build the swig
1689                           bindings. If PATH is not specified, look for a
1690                           'swig' binary in your PATH.
1691   --with-ruby-sitedir=SITEDIR
1692                           install Ruby bindings in SITEDIR (default is same as
1693                           ruby's one)
1694   --with-ruby-test-verbose=LEVEL
1695                           how to use output level for Ruby bindings tests
1696                           (default is normal)
1697   --with-ctypesgen=PATH   Specify the path to ctypesgen. This can either be
1698                           the full path to a ctypesgen installation, the full
1699                           path to a ctypesgen source tree or the full path to
1700                           ctypesgen.py.
1701   --with-junit=PATH       Specify a path to the junit JAR file.
1702
1703 Some influential environment variables:
1704   CC          C compiler command
1705   CFLAGS      C compiler flags
1706   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1707               nonstandard directory <lib dir>
1708   LIBS        libraries to pass to the linker, e.g. -l<library>
1709   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1710               you have headers in a nonstandard directory <include dir>
1711   CXX         C++ compiler command
1712   CXXFLAGS    C++ compiler flags
1713   CPP         C preprocessor
1714   LT_SYS_LIBRARY_PATH
1715               User-defined run-time library search path.
1716   CXXCPP      C++ preprocessor
1717   SWIG_FEATURES
1718               SWIG feature flags common to all bindings
1719   SWIG_RB_FEATURES
1720               SWIG feature flags specific to Ruby bindings
1721   SWIG_PL_FEATURES
1722               SWIG feature flags specific to Perl bindings
1723   SWIG_PY_FEATURES
1724               SWIG feature flags specific to Python bindings
1725
1726 Use these variables to override the choices made by `configure' or to help
1727 it to find libraries and programs with nonstandard names/locations.
1728
1729 Report bugs to <http://subversion.apache.org/>.
1730 _ACEOF
1731 ac_status=$?
1732 fi
1733
1734 if test "$ac_init_help" = "recursive"; then
1735   # If there are subdirs, report their specific --help.
1736   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1737     test -d "$ac_dir" ||
1738       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1739       continue
1740     ac_builddir=.
1741
1742 case "$ac_dir" in
1743 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1744 *)
1745   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1746   # A ".." for each directory in $ac_dir_suffix.
1747   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1748   case $ac_top_builddir_sub in
1749   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1750   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1751   esac ;;
1752 esac
1753 ac_abs_top_builddir=$ac_pwd
1754 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1755 # for backward compatibility:
1756 ac_top_builddir=$ac_top_build_prefix
1757
1758 case $srcdir in
1759   .)  # We are building in place.
1760     ac_srcdir=.
1761     ac_top_srcdir=$ac_top_builddir_sub
1762     ac_abs_top_srcdir=$ac_pwd ;;
1763   [\\/]* | ?:[\\/]* )  # Absolute name.
1764     ac_srcdir=$srcdir$ac_dir_suffix;
1765     ac_top_srcdir=$srcdir
1766     ac_abs_top_srcdir=$srcdir ;;
1767   *) # Relative name.
1768     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1769     ac_top_srcdir=$ac_top_build_prefix$srcdir
1770     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1771 esac
1772 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1773
1774     cd "$ac_dir" || { ac_status=$?; continue; }
1775     # Check for guested configure.
1776     if test -f "$ac_srcdir/configure.gnu"; then
1777       echo &&
1778       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1779     elif test -f "$ac_srcdir/configure"; then
1780       echo &&
1781       $SHELL "$ac_srcdir/configure" --help=recursive
1782     else
1783       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1784     fi || ac_status=$?
1785     cd "$ac_pwd" || { ac_status=$?; break; }
1786   done
1787 fi
1788
1789 test -n "$ac_init_help" && exit $ac_status
1790 if $ac_init_version; then
1791   cat <<\_ACEOF
1792 subversion configure 1.10.0
1793 generated by GNU Autoconf 2.69
1794
1795 Copyright (C) 2012 Free Software Foundation, Inc.
1796 This configure script is free software; the Free Software Foundation
1797 gives unlimited permission to copy, distribute and modify it.
1798 _ACEOF
1799   exit
1800 fi
1801
1802 ## ------------------------ ##
1803 ## Autoconf initialization. ##
1804 ## ------------------------ ##
1805
1806 # ac_fn_c_try_compile LINENO
1807 # --------------------------
1808 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1809 ac_fn_c_try_compile ()
1810 {
1811   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1812   rm -f conftest.$ac_objext
1813   if { { ac_try="$ac_compile"
1814 case "(($ac_try" in
1815   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1816   *) ac_try_echo=$ac_try;;
1817 esac
1818 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1819 $as_echo "$ac_try_echo"; } >&5
1820   (eval "$ac_compile") 2>conftest.err
1821   ac_status=$?
1822   if test -s conftest.err; then
1823     grep -v '^ *+' conftest.err >conftest.er1
1824     cat conftest.er1 >&5
1825     mv -f conftest.er1 conftest.err
1826   fi
1827   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1828   test $ac_status = 0; } && {
1829          test -z "$ac_c_werror_flag" ||
1830          test ! -s conftest.err
1831        } && test -s conftest.$ac_objext; then :
1832   ac_retval=0
1833 else
1834   $as_echo "$as_me: failed program was:" >&5
1835 sed 's/^/| /' conftest.$ac_ext >&5
1836
1837         ac_retval=1
1838 fi
1839   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1840   as_fn_set_status $ac_retval
1841
1842 } # ac_fn_c_try_compile
1843
1844 # ac_fn_c_try_link LINENO
1845 # -----------------------
1846 # Try to link conftest.$ac_ext, and return whether this succeeded.
1847 ac_fn_c_try_link ()
1848 {
1849   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1850   rm -f conftest.$ac_objext conftest$ac_exeext
1851   if { { ac_try="$ac_link"
1852 case "(($ac_try" in
1853   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1854   *) ac_try_echo=$ac_try;;
1855 esac
1856 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1857 $as_echo "$ac_try_echo"; } >&5
1858   (eval "$ac_link") 2>conftest.err
1859   ac_status=$?
1860   if test -s conftest.err; then
1861     grep -v '^ *+' conftest.err >conftest.er1
1862     cat conftest.er1 >&5
1863     mv -f conftest.er1 conftest.err
1864   fi
1865   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1866   test $ac_status = 0; } && {
1867          test -z "$ac_c_werror_flag" ||
1868          test ! -s conftest.err
1869        } && test -s conftest$ac_exeext && {
1870          test "$cross_compiling" = yes ||
1871          test -x conftest$ac_exeext
1872        }; then :
1873   ac_retval=0
1874 else
1875   $as_echo "$as_me: failed program was:" >&5
1876 sed 's/^/| /' conftest.$ac_ext >&5
1877
1878         ac_retval=1
1879 fi
1880   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1881   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1882   # interfere with the next link command; also delete a directory that is
1883   # left behind by Apple's compiler.  We do this before executing the actions.
1884   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1885   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1886   as_fn_set_status $ac_retval
1887
1888 } # ac_fn_c_try_link
1889
1890 # ac_fn_cxx_try_compile LINENO
1891 # ----------------------------
1892 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1893 ac_fn_cxx_try_compile ()
1894 {
1895   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1896   rm -f conftest.$ac_objext
1897   if { { ac_try="$ac_compile"
1898 case "(($ac_try" in
1899   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1900   *) ac_try_echo=$ac_try;;
1901 esac
1902 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1903 $as_echo "$ac_try_echo"; } >&5
1904   (eval "$ac_compile") 2>conftest.err
1905   ac_status=$?
1906   if test -s conftest.err; then
1907     grep -v '^ *+' conftest.err >conftest.er1
1908     cat conftest.er1 >&5
1909     mv -f conftest.er1 conftest.err
1910   fi
1911   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1912   test $ac_status = 0; } && {
1913          test -z "$ac_cxx_werror_flag" ||
1914          test ! -s conftest.err
1915        } && test -s conftest.$ac_objext; then :
1916   ac_retval=0
1917 else
1918   $as_echo "$as_me: failed program was:" >&5
1919 sed 's/^/| /' conftest.$ac_ext >&5
1920
1921         ac_retval=1
1922 fi
1923   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1924   as_fn_set_status $ac_retval
1925
1926 } # ac_fn_cxx_try_compile
1927
1928 # ac_fn_cxx_try_link LINENO
1929 # -------------------------
1930 # Try to link conftest.$ac_ext, and return whether this succeeded.
1931 ac_fn_cxx_try_link ()
1932 {
1933   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1934   rm -f conftest.$ac_objext conftest$ac_exeext
1935   if { { ac_try="$ac_link"
1936 case "(($ac_try" in
1937   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1938   *) ac_try_echo=$ac_try;;
1939 esac
1940 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1941 $as_echo "$ac_try_echo"; } >&5
1942   (eval "$ac_link") 2>conftest.err
1943   ac_status=$?
1944   if test -s conftest.err; then
1945     grep -v '^ *+' conftest.err >conftest.er1
1946     cat conftest.er1 >&5
1947     mv -f conftest.er1 conftest.err
1948   fi
1949   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1950   test $ac_status = 0; } && {
1951          test -z "$ac_cxx_werror_flag" ||
1952          test ! -s conftest.err
1953        } && test -s conftest$ac_exeext && {
1954          test "$cross_compiling" = yes ||
1955          test -x conftest$ac_exeext
1956        }; then :
1957   ac_retval=0
1958 else
1959   $as_echo "$as_me: failed program was:" >&5
1960 sed 's/^/| /' conftest.$ac_ext >&5
1961
1962         ac_retval=1
1963 fi
1964   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1965   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1966   # interfere with the next link command; also delete a directory that is
1967   # left behind by Apple's compiler.  We do this before executing the actions.
1968   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1969   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1970   as_fn_set_status $ac_retval
1971
1972 } # ac_fn_cxx_try_link
1973
1974 # ac_fn_c_try_cpp LINENO
1975 # ----------------------
1976 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1977 ac_fn_c_try_cpp ()
1978 {
1979   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1980   if { { ac_try="$ac_cpp conftest.$ac_ext"
1981 case "(($ac_try" in
1982   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1983   *) ac_try_echo=$ac_try;;
1984 esac
1985 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1986 $as_echo "$ac_try_echo"; } >&5
1987   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1988   ac_status=$?
1989   if test -s conftest.err; then
1990     grep -v '^ *+' conftest.err >conftest.er1
1991     cat conftest.er1 >&5
1992     mv -f conftest.er1 conftest.err
1993   fi
1994   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1995   test $ac_status = 0; } > conftest.i && {
1996          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1997          test ! -s conftest.err
1998        }; then :
1999   ac_retval=0
2000 else
2001   $as_echo "$as_me: failed program was:" >&5
2002 sed 's/^/| /' conftest.$ac_ext >&5
2003
2004     ac_retval=1
2005 fi
2006   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2007   as_fn_set_status $ac_retval
2008
2009 } # ac_fn_c_try_cpp
2010
2011 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2012 # -------------------------------------------------------
2013 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2014 # the include files in INCLUDES and setting the cache variable VAR
2015 # accordingly.
2016 ac_fn_c_check_header_mongrel ()
2017 {
2018   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2019   if eval \${$3+:} false; then :
2020   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2021 $as_echo_n "checking for $2... " >&6; }
2022 if eval \${$3+:} false; then :
2023   $as_echo_n "(cached) " >&6
2024 fi
2025 eval ac_res=\$$3
2026                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2027 $as_echo "$ac_res" >&6; }
2028 else
2029   # Is the header compilable?
2030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2031 $as_echo_n "checking $2 usability... " >&6; }
2032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2033 /* end confdefs.h.  */
2034 $4
2035 #include <$2>
2036 _ACEOF
2037 if ac_fn_c_try_compile "$LINENO"; then :
2038   ac_header_compiler=yes
2039 else
2040   ac_header_compiler=no
2041 fi
2042 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2044 $as_echo "$ac_header_compiler" >&6; }
2045
2046 # Is the header present?
2047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2048 $as_echo_n "checking $2 presence... " >&6; }
2049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2050 /* end confdefs.h.  */
2051 #include <$2>
2052 _ACEOF
2053 if ac_fn_c_try_cpp "$LINENO"; then :
2054   ac_header_preproc=yes
2055 else
2056   ac_header_preproc=no
2057 fi
2058 rm -f conftest.err conftest.i conftest.$ac_ext
2059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2060 $as_echo "$ac_header_preproc" >&6; }
2061
2062 # So?  What about this header?
2063 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2064   yes:no: )
2065     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2066 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2067     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2068 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2069     ;;
2070   no:yes:* )
2071     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2072 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2073     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2074 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2075     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2076 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2077     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2078 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2079     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2080 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2081 ( $as_echo "## -------------------------------------------- ##
2082 ## Report this to http://subversion.apache.org/ ##
2083 ## -------------------------------------------- ##"
2084      ) | sed "s/^/$as_me: WARNING:     /" >&2
2085     ;;
2086 esac
2087   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2088 $as_echo_n "checking for $2... " >&6; }
2089 if eval \${$3+:} false; then :
2090   $as_echo_n "(cached) " >&6
2091 else
2092   eval "$3=\$ac_header_compiler"
2093 fi
2094 eval ac_res=\$$3
2095                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2096 $as_echo "$ac_res" >&6; }
2097 fi
2098   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2099
2100 } # ac_fn_c_check_header_mongrel
2101
2102 # ac_fn_c_try_run LINENO
2103 # ----------------------
2104 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2105 # that executables *can* be run.
2106 ac_fn_c_try_run ()
2107 {
2108   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2109   if { { ac_try="$ac_link"
2110 case "(($ac_try" in
2111   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2112   *) ac_try_echo=$ac_try;;
2113 esac
2114 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2115 $as_echo "$ac_try_echo"; } >&5
2116   (eval "$ac_link") 2>&5
2117   ac_status=$?
2118   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2119   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2120   { { case "(($ac_try" in
2121   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2122   *) ac_try_echo=$ac_try;;
2123 esac
2124 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2125 $as_echo "$ac_try_echo"; } >&5
2126   (eval "$ac_try") 2>&5
2127   ac_status=$?
2128   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2129   test $ac_status = 0; }; }; then :
2130   ac_retval=0
2131 else
2132   $as_echo "$as_me: program exited with status $ac_status" >&5
2133        $as_echo "$as_me: failed program was:" >&5
2134 sed 's/^/| /' conftest.$ac_ext >&5
2135
2136        ac_retval=$ac_status
2137 fi
2138   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2139   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2140   as_fn_set_status $ac_retval
2141
2142 } # ac_fn_c_try_run
2143
2144 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2145 # -------------------------------------------------------
2146 # Tests whether HEADER exists and can be compiled using the include files in
2147 # INCLUDES, setting the cache variable VAR accordingly.
2148 ac_fn_c_check_header_compile ()
2149 {
2150   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2151   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2152 $as_echo_n "checking for $2... " >&6; }
2153 if eval \${$3+:} false; then :
2154   $as_echo_n "(cached) " >&6
2155 else
2156   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2157 /* end confdefs.h.  */
2158 $4
2159 #include <$2>
2160 _ACEOF
2161 if ac_fn_c_try_compile "$LINENO"; then :
2162   eval "$3=yes"
2163 else
2164   eval "$3=no"
2165 fi
2166 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2167 fi
2168 eval ac_res=\$$3
2169                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2170 $as_echo "$ac_res" >&6; }
2171   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2172
2173 } # ac_fn_c_check_header_compile
2174
2175 # ac_fn_c_check_func LINENO FUNC VAR
2176 # ----------------------------------
2177 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2178 ac_fn_c_check_func ()
2179 {
2180   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2181   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2182 $as_echo_n "checking for $2... " >&6; }
2183 if eval \${$3+:} false; then :
2184   $as_echo_n "(cached) " >&6
2185 else
2186   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2187 /* end confdefs.h.  */
2188 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2189    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2190 #define $2 innocuous_$2
2191
2192 /* System header to define __stub macros and hopefully few prototypes,
2193     which can conflict with char $2 (); below.
2194     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2195     <limits.h> exists even on freestanding compilers.  */
2196
2197 #ifdef __STDC__
2198 # include <limits.h>
2199 #else
2200 # include <assert.h>
2201 #endif
2202
2203 #undef $2
2204
2205 /* Override any GCC internal prototype to avoid an error.
2206    Use char because int might match the return type of a GCC
2207    builtin and then its argument prototype would still apply.  */
2208 #ifdef __cplusplus
2209 extern "C"
2210 #endif
2211 char $2 ();
2212 /* The GNU C library defines this for functions which it implements
2213     to always fail with ENOSYS.  Some functions are actually named
2214     something starting with __ and the normal name is an alias.  */
2215 #if defined __stub_$2 || defined __stub___$2
2216 choke me
2217 #endif
2218
2219 int
2220 main ()
2221 {
2222 return $2 ();
2223   ;
2224   return 0;
2225 }
2226 _ACEOF
2227 if ac_fn_c_try_link "$LINENO"; then :
2228   eval "$3=yes"
2229 else
2230   eval "$3=no"
2231 fi
2232 rm -f core conftest.err conftest.$ac_objext \
2233     conftest$ac_exeext conftest.$ac_ext
2234 fi
2235 eval ac_res=\$$3
2236                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2237 $as_echo "$ac_res" >&6; }
2238   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2239
2240 } # ac_fn_c_check_func
2241
2242 # ac_fn_cxx_try_cpp LINENO
2243 # ------------------------
2244 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2245 ac_fn_cxx_try_cpp ()
2246 {
2247   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2248   if { { ac_try="$ac_cpp conftest.$ac_ext"
2249 case "(($ac_try" in
2250   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2251   *) ac_try_echo=$ac_try;;
2252 esac
2253 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2254 $as_echo "$ac_try_echo"; } >&5
2255   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2256   ac_status=$?
2257   if test -s conftest.err; then
2258     grep -v '^ *+' conftest.err >conftest.er1
2259     cat conftest.er1 >&5
2260     mv -f conftest.er1 conftest.err
2261   fi
2262   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2263   test $ac_status = 0; } > conftest.i && {
2264          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2265          test ! -s conftest.err
2266        }; then :
2267   ac_retval=0
2268 else
2269   $as_echo "$as_me: failed program was:" >&5
2270 sed 's/^/| /' conftest.$ac_ext >&5
2271
2272     ac_retval=1
2273 fi
2274   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2275   as_fn_set_status $ac_retval
2276
2277 } # ac_fn_cxx_try_cpp
2278
2279 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2280 # -------------------------------------------
2281 # Tests whether TYPE exists after having included INCLUDES, setting cache
2282 # variable VAR accordingly.
2283 ac_fn_c_check_type ()
2284 {
2285   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2286   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2287 $as_echo_n "checking for $2... " >&6; }
2288 if eval \${$3+:} false; then :
2289   $as_echo_n "(cached) " >&6
2290 else
2291   eval "$3=no"
2292   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2293 /* end confdefs.h.  */
2294 $4
2295 int
2296 main ()
2297 {
2298 if (sizeof ($2))
2299          return 0;
2300   ;
2301   return 0;
2302 }
2303 _ACEOF
2304 if ac_fn_c_try_compile "$LINENO"; then :
2305   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2306 /* end confdefs.h.  */
2307 $4
2308 int
2309 main ()
2310 {
2311 if (sizeof (($2)))
2312             return 0;
2313   ;
2314   return 0;
2315 }
2316 _ACEOF
2317 if ac_fn_c_try_compile "$LINENO"; then :
2318
2319 else
2320   eval "$3=yes"
2321 fi
2322 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2323 fi
2324 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2325 fi
2326 eval ac_res=\$$3
2327                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2328 $as_echo "$ac_res" >&6; }
2329   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2330
2331 } # ac_fn_c_check_type
2332 cat >config.log <<_ACEOF
2333 This file contains any messages produced by compilers while
2334 running configure, to aid debugging if configure makes a mistake.
2335
2336 It was created by subversion $as_me 1.10.0, which was
2337 generated by GNU Autoconf 2.69.  Invocation command line was
2338
2339   $ $0 $@
2340
2341 _ACEOF
2342 exec 5>>config.log
2343 {
2344 cat <<_ASUNAME
2345 ## --------- ##
2346 ## Platform. ##
2347 ## --------- ##
2348
2349 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2350 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2351 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2352 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2353 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2354
2355 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2356 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2357
2358 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2359 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2360 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2361 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2362 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2363 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2364 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2365
2366 _ASUNAME
2367
2368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2369 for as_dir in $PATH
2370 do
2371   IFS=$as_save_IFS
2372   test -z "$as_dir" && as_dir=.
2373     $as_echo "PATH: $as_dir"
2374   done
2375 IFS=$as_save_IFS
2376
2377 } >&5
2378
2379 cat >&5 <<_ACEOF
2380
2381
2382 ## ----------- ##
2383 ## Core tests. ##
2384 ## ----------- ##
2385
2386 _ACEOF
2387
2388
2389 # Keep a trace of the command line.
2390 # Strip out --no-create and --no-recursion so they do not pile up.
2391 # Strip out --silent because we don't want to record it for future runs.
2392 # Also quote any args containing shell meta-characters.
2393 # Make two passes to allow for proper duplicate-argument suppression.
2394 ac_configure_args=
2395 ac_configure_args0=
2396 ac_configure_args1=
2397 ac_must_keep_next=false
2398 for ac_pass in 1 2
2399 do
2400   for ac_arg
2401   do
2402     case $ac_arg in
2403     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2404     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2405     | -silent | --silent | --silen | --sile | --sil)
2406       continue ;;
2407     *\'*)
2408       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2409     esac
2410     case $ac_pass in
2411     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2412     2)
2413       as_fn_append ac_configure_args1 " '$ac_arg'"
2414       if test $ac_must_keep_next = true; then
2415         ac_must_keep_next=false # Got value, back to normal.
2416       else
2417         case $ac_arg in
2418           *=* | --config-cache | -C | -disable-* | --disable-* \
2419           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2420           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2421           | -with-* | --with-* | -without-* | --without-* | --x)
2422             case "$ac_configure_args0 " in
2423               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2424             esac
2425             ;;
2426           -* ) ac_must_keep_next=true ;;
2427         esac
2428       fi
2429       as_fn_append ac_configure_args " '$ac_arg'"
2430       ;;
2431     esac
2432   done
2433 done
2434 { ac_configure_args0=; unset ac_configure_args0;}
2435 { ac_configure_args1=; unset ac_configure_args1;}
2436
2437 # When interrupted or exit'd, cleanup temporary files, and complete
2438 # config.log.  We remove comments because anyway the quotes in there
2439 # would cause problems or look ugly.
2440 # WARNING: Use '\'' to represent an apostrophe within the trap.
2441 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2442 trap 'exit_status=$?
2443   # Save into config.log some information that might help in debugging.
2444   {
2445     echo
2446
2447     $as_echo "## ---------------- ##
2448 ## Cache variables. ##
2449 ## ---------------- ##"
2450     echo
2451     # The following way of writing the cache mishandles newlines in values,
2452 (
2453   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2454     eval ac_val=\$$ac_var
2455     case $ac_val in #(
2456     *${as_nl}*)
2457       case $ac_var in #(
2458       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2459 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2460       esac
2461       case $ac_var in #(
2462       _ | IFS | as_nl) ;; #(
2463       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2464       *) { eval $ac_var=; unset $ac_var;} ;;
2465       esac ;;
2466     esac
2467   done
2468   (set) 2>&1 |
2469     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2470     *${as_nl}ac_space=\ *)
2471       sed -n \
2472         "s/'\''/'\''\\\\'\'''\''/g;
2473           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2474       ;; #(
2475     *)
2476       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2477       ;;
2478     esac |
2479     sort
2480 )
2481     echo
2482
2483     $as_echo "## ----------------- ##
2484 ## Output variables. ##
2485 ## ----------------- ##"
2486     echo
2487     for ac_var in $ac_subst_vars
2488     do
2489       eval ac_val=\$$ac_var
2490       case $ac_val in
2491       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2492       esac
2493       $as_echo "$ac_var='\''$ac_val'\''"
2494     done | sort
2495     echo
2496
2497     if test -n "$ac_subst_files"; then
2498       $as_echo "## ------------------- ##
2499 ## File substitutions. ##
2500 ## ------------------- ##"
2501       echo
2502       for ac_var in $ac_subst_files
2503       do
2504         eval ac_val=\$$ac_var
2505         case $ac_val in
2506         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2507         esac
2508         $as_echo "$ac_var='\''$ac_val'\''"
2509       done | sort
2510       echo
2511     fi
2512
2513     if test -s confdefs.h; then
2514       $as_echo "## ----------- ##
2515 ## confdefs.h. ##
2516 ## ----------- ##"
2517       echo
2518       cat confdefs.h
2519       echo
2520     fi
2521     test "$ac_signal" != 0 &&
2522       $as_echo "$as_me: caught signal $ac_signal"
2523     $as_echo "$as_me: exit $exit_status"
2524   } >&5
2525   rm -f core *.core core.conftest.* &&
2526     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2527     exit $exit_status
2528 ' 0
2529 for ac_signal in 1 2 13 15; do
2530   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2531 done
2532 ac_signal=0
2533
2534 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2535 rm -f -r conftest* confdefs.h
2536
2537 $as_echo "/* confdefs.h */" > confdefs.h
2538
2539 # Predefined preprocessor variables.
2540
2541 cat >>confdefs.h <<_ACEOF
2542 #define PACKAGE_NAME "$PACKAGE_NAME"
2543 _ACEOF
2544
2545 cat >>confdefs.h <<_ACEOF
2546 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2547 _ACEOF
2548
2549 cat >>confdefs.h <<_ACEOF
2550 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2551 _ACEOF
2552
2553 cat >>confdefs.h <<_ACEOF
2554 #define PACKAGE_STRING "$PACKAGE_STRING"
2555 _ACEOF
2556
2557 cat >>confdefs.h <<_ACEOF
2558 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2559 _ACEOF
2560
2561 cat >>confdefs.h <<_ACEOF
2562 #define PACKAGE_URL "$PACKAGE_URL"
2563 _ACEOF
2564
2565
2566 # Let the site file select an alternate cache file if it wants to.
2567 # Prefer an explicitly selected file to automatically selected ones.
2568 ac_site_file1=NONE
2569 ac_site_file2=NONE
2570 if test -n "$CONFIG_SITE"; then
2571   # We do not want a PATH search for config.site.
2572   case $CONFIG_SITE in #((
2573     -*)  ac_site_file1=./$CONFIG_SITE;;
2574     */*) ac_site_file1=$CONFIG_SITE;;
2575     *)   ac_site_file1=./$CONFIG_SITE;;
2576   esac
2577 elif test "x$prefix" != xNONE; then
2578   ac_site_file1=$prefix/share/config.site
2579   ac_site_file2=$prefix/etc/config.site
2580 else
2581   ac_site_file1=$ac_default_prefix/share/config.site
2582   ac_site_file2=$ac_default_prefix/etc/config.site
2583 fi
2584 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2585 do
2586   test "x$ac_site_file" = xNONE && continue
2587   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2588     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2589 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2590     sed 's/^/| /' "$ac_site_file" >&5
2591     . "$ac_site_file" \
2592       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2593 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2594 as_fn_error $? "failed to load site script $ac_site_file
2595 See \`config.log' for more details" "$LINENO" 5; }
2596   fi
2597 done
2598
2599 if test -r "$cache_file"; then
2600   # Some versions of bash will fail to source /dev/null (special files
2601   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2602   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2603     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2604 $as_echo "$as_me: loading cache $cache_file" >&6;}
2605     case $cache_file in
2606       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2607       *)                      . "./$cache_file";;
2608     esac
2609   fi
2610 else
2611   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2612 $as_echo "$as_me: creating cache $cache_file" >&6;}
2613   >$cache_file
2614 fi
2615
2616 # Check that the precious variables saved in the cache have kept the same
2617 # value.
2618 ac_cache_corrupted=false
2619 for ac_var in $ac_precious_vars; do
2620   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2621   eval ac_new_set=\$ac_env_${ac_var}_set
2622   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2623   eval ac_new_val=\$ac_env_${ac_var}_value
2624   case $ac_old_set,$ac_new_set in
2625     set,)
2626       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2627 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2628       ac_cache_corrupted=: ;;
2629     ,set)
2630       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2631 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2632       ac_cache_corrupted=: ;;
2633     ,);;
2634     *)
2635       if test "x$ac_old_val" != "x$ac_new_val"; then
2636         # differences in whitespace do not lead to failure.
2637         ac_old_val_w=`echo x $ac_old_val`
2638         ac_new_val_w=`echo x $ac_new_val`
2639         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2640           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2641 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2642           ac_cache_corrupted=:
2643         else
2644           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2645 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2646           eval $ac_var=\$ac_old_val
2647         fi
2648         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2649 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2650         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2651 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2652       fi;;
2653   esac
2654   # Pass precious variables to config.status.
2655   if test "$ac_new_set" = set; then
2656     case $ac_new_val in
2657     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2658     *) ac_arg=$ac_var=$ac_new_val ;;
2659     esac
2660     case " $ac_configure_args " in
2661       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2662       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2663     esac
2664   fi
2665 done
2666 if $ac_cache_corrupted; then
2667   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2668 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2669   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2670 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2671   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2672 fi
2673 ## -------------------- ##
2674 ## Main body of script. ##
2675 ## -------------------- ##
2676
2677 ac_ext=c
2678 ac_cpp='$CPP $CPPFLAGS'
2679 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2680 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2681 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2682
2683
2684
2685
2686 ac_aux_dir=
2687 for ac_dir in build "$srcdir"/build; do
2688   if test -f "$ac_dir/install-sh"; then
2689     ac_aux_dir=$ac_dir
2690     ac_install_sh="$ac_aux_dir/install-sh -c"
2691     break
2692   elif test -f "$ac_dir/install.sh"; then
2693     ac_aux_dir=$ac_dir
2694     ac_install_sh="$ac_aux_dir/install.sh -c"
2695     break
2696   elif test -f "$ac_dir/shtool"; then
2697     ac_aux_dir=$ac_dir
2698     ac_install_sh="$ac_aux_dir/shtool install -c"
2699     break
2700   fi
2701 done
2702 if test -z "$ac_aux_dir"; then
2703   as_fn_error $? "cannot find install-sh, install.sh, or shtool in build \"$srcdir\"/build" "$LINENO" 5
2704 fi
2705
2706 # These three variables are undocumented and unsupported,
2707 # and are intended to be withdrawn in a future Autoconf release.
2708 # They can cause serious problems if a builder's source tree is in a directory
2709 # whose full name contains unusual characters.
2710 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2711 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2712 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2713
2714
2715
2716 { $as_echo "$as_me:${as_lineno-$LINENO}: Configuring Subversion 1.10.0" >&5
2717 $as_echo "$as_me: Configuring Subversion 1.10.0" >&6;}
2718
2719 abs_srcdir="`cd $srcdir && pwd`"
2720
2721 abs_builddir="`pwd`"
2722
2723 if test "$abs_srcdir" = "$abs_builddir"; then
2724   canonicalized_srcdir=""
2725 else
2726   canonicalized_srcdir="$srcdir/"
2727 fi
2728
2729
2730 SWIG_LDFLAGS="$LDFLAGS"
2731
2732
2733 # Generate config.nice early (before the arguments are munged)
2734
2735   { $as_echo "$as_me:${as_lineno-$LINENO}: creating config.nice" >&5
2736 $as_echo "$as_me: creating config.nice" >&6;}
2737   # This little dance satisfies Cygwin, which cannot overwrite in-use files.
2738   if test -f "config.nice"; then
2739     mv "config.nice" "config.nice.old"
2740   fi
2741
2742   cat >"config.nice" <<EOF
2743 #! /bin/sh
2744 #
2745 # Created by configure
2746
2747 '$0' $ac_configure_args "\$@"
2748 EOF
2749
2750   chmod +x "config.nice"
2751   rm -f "config.nice.old"
2752
2753
2754 # ==== Check for programs ====================================================
2755
2756 # Look for a C compiler (before anything can set CFLAGS)
2757 CUSERFLAGS="$CFLAGS"
2758 ac_ext=c
2759 ac_cpp='$CPP $CPPFLAGS'
2760 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2761 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2762 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2763 if test -n "$ac_tool_prefix"; then
2764   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2765 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2767 $as_echo_n "checking for $ac_word... " >&6; }
2768 if ${ac_cv_prog_CC+:} false; then :
2769   $as_echo_n "(cached) " >&6
2770 else
2771   if test -n "$CC"; then
2772   ac_cv_prog_CC="$CC" # Let the user override the test.
2773 else
2774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2775 for as_dir in $PATH
2776 do
2777   IFS=$as_save_IFS
2778   test -z "$as_dir" && as_dir=.
2779     for ac_exec_ext in '' $ac_executable_extensions; do
2780   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2781     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2782     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2783     break 2
2784   fi
2785 done
2786   done
2787 IFS=$as_save_IFS
2788
2789 fi
2790 fi
2791 CC=$ac_cv_prog_CC
2792 if test -n "$CC"; then
2793   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2794 $as_echo "$CC" >&6; }
2795 else
2796   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2797 $as_echo "no" >&6; }
2798 fi
2799
2800
2801 fi
2802 if test -z "$ac_cv_prog_CC"; then
2803   ac_ct_CC=$CC
2804   # Extract the first word of "gcc", so it can be a program name with args.
2805 set dummy gcc; ac_word=$2
2806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2807 $as_echo_n "checking for $ac_word... " >&6; }
2808 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2809   $as_echo_n "(cached) " >&6
2810 else
2811   if test -n "$ac_ct_CC"; then
2812   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2813 else
2814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2815 for as_dir in $PATH
2816 do
2817   IFS=$as_save_IFS
2818   test -z "$as_dir" && as_dir=.
2819     for ac_exec_ext in '' $ac_executable_extensions; do
2820   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2821     ac_cv_prog_ac_ct_CC="gcc"
2822     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2823     break 2
2824   fi
2825 done
2826   done
2827 IFS=$as_save_IFS
2828
2829 fi
2830 fi
2831 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2832 if test -n "$ac_ct_CC"; then
2833   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2834 $as_echo "$ac_ct_CC" >&6; }
2835 else
2836   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2837 $as_echo "no" >&6; }
2838 fi
2839
2840   if test "x$ac_ct_CC" = x; then
2841     CC=""
2842   else
2843     case $cross_compiling:$ac_tool_warned in
2844 yes:)
2845 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2846 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2847 ac_tool_warned=yes ;;
2848 esac
2849     CC=$ac_ct_CC
2850   fi
2851 else
2852   CC="$ac_cv_prog_CC"
2853 fi
2854
2855 if test -z "$CC"; then
2856           if test -n "$ac_tool_prefix"; then
2857     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2858 set dummy ${ac_tool_prefix}cc; ac_word=$2
2859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2860 $as_echo_n "checking for $ac_word... " >&6; }
2861 if ${ac_cv_prog_CC+:} false; then :
2862   $as_echo_n "(cached) " >&6
2863 else
2864   if test -n "$CC"; then
2865   ac_cv_prog_CC="$CC" # Let the user override the test.
2866 else
2867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2868 for as_dir in $PATH
2869 do
2870   IFS=$as_save_IFS
2871   test -z "$as_dir" && as_dir=.
2872     for ac_exec_ext in '' $ac_executable_extensions; do
2873   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2874     ac_cv_prog_CC="${ac_tool_prefix}cc"
2875     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2876     break 2
2877   fi
2878 done
2879   done
2880 IFS=$as_save_IFS
2881
2882 fi
2883 fi
2884 CC=$ac_cv_prog_CC
2885 if test -n "$CC"; then
2886   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2887 $as_echo "$CC" >&6; }
2888 else
2889   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2890 $as_echo "no" >&6; }
2891 fi
2892
2893
2894   fi
2895 fi
2896 if test -z "$CC"; then
2897   # Extract the first word of "cc", so it can be a program name with args.
2898 set dummy cc; ac_word=$2
2899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2900 $as_echo_n "checking for $ac_word... " >&6; }
2901 if ${ac_cv_prog_CC+:} false; then :
2902   $as_echo_n "(cached) " >&6
2903 else
2904   if test -n "$CC"; then
2905   ac_cv_prog_CC="$CC" # Let the user override the test.
2906 else
2907   ac_prog_rejected=no
2908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2909 for as_dir in $PATH
2910 do
2911   IFS=$as_save_IFS
2912   test -z "$as_dir" && as_dir=.
2913     for ac_exec_ext in '' $ac_executable_extensions; do
2914   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2915     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2916        ac_prog_rejected=yes
2917        continue
2918      fi
2919     ac_cv_prog_CC="cc"
2920     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2921     break 2
2922   fi
2923 done
2924   done
2925 IFS=$as_save_IFS
2926
2927 if test $ac_prog_rejected = yes; then
2928   # We found a bogon in the path, so make sure we never use it.
2929   set dummy $ac_cv_prog_CC
2930   shift
2931   if test $# != 0; then
2932     # We chose a different compiler from the bogus one.
2933     # However, it has the same basename, so the bogon will be chosen
2934     # first if we set CC to just the basename; use the full file name.
2935     shift
2936     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2937   fi
2938 fi
2939 fi
2940 fi
2941 CC=$ac_cv_prog_CC
2942 if test -n "$CC"; then
2943   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2944 $as_echo "$CC" >&6; }
2945 else
2946   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2947 $as_echo "no" >&6; }
2948 fi
2949
2950
2951 fi
2952 if test -z "$CC"; then
2953   if test -n "$ac_tool_prefix"; then
2954   for ac_prog in cl.exe
2955   do
2956     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2957 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2959 $as_echo_n "checking for $ac_word... " >&6; }
2960 if ${ac_cv_prog_CC+:} false; then :
2961   $as_echo_n "(cached) " >&6
2962 else
2963   if test -n "$CC"; then
2964   ac_cv_prog_CC="$CC" # Let the user override the test.
2965 else
2966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2967 for as_dir in $PATH
2968 do
2969   IFS=$as_save_IFS
2970   test -z "$as_dir" && as_dir=.
2971     for ac_exec_ext in '' $ac_executable_extensions; do
2972   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2973     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2974     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2975     break 2
2976   fi
2977 done
2978   done
2979 IFS=$as_save_IFS
2980
2981 fi
2982 fi
2983 CC=$ac_cv_prog_CC
2984 if test -n "$CC"; then
2985   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2986 $as_echo "$CC" >&6; }
2987 else
2988   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2989 $as_echo "no" >&6; }
2990 fi
2991
2992
2993     test -n "$CC" && break
2994   done
2995 fi
2996 if test -z "$CC"; then
2997   ac_ct_CC=$CC
2998   for ac_prog in cl.exe
2999 do
3000   # Extract the first word of "$ac_prog", so it can be a program name with args.
3001 set dummy $ac_prog; ac_word=$2
3002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3003 $as_echo_n "checking for $ac_word... " >&6; }
3004 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3005   $as_echo_n "(cached) " >&6
3006 else
3007   if test -n "$ac_ct_CC"; then
3008   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3009 else
3010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3011 for as_dir in $PATH
3012 do
3013   IFS=$as_save_IFS
3014   test -z "$as_dir" && as_dir=.
3015     for ac_exec_ext in '' $ac_executable_extensions; do
3016   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3017     ac_cv_prog_ac_ct_CC="$ac_prog"
3018     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3019     break 2
3020   fi
3021 done
3022   done
3023 IFS=$as_save_IFS
3024
3025 fi
3026 fi
3027 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3028 if test -n "$ac_ct_CC"; then
3029   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3030 $as_echo "$ac_ct_CC" >&6; }
3031 else
3032   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3033 $as_echo "no" >&6; }
3034 fi
3035
3036
3037   test -n "$ac_ct_CC" && break
3038 done
3039
3040   if test "x$ac_ct_CC" = x; then
3041     CC=""
3042   else
3043     case $cross_compiling:$ac_tool_warned in
3044 yes:)
3045 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3046 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3047 ac_tool_warned=yes ;;
3048 esac
3049     CC=$ac_ct_CC
3050   fi
3051 fi
3052
3053 fi
3054
3055
3056 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3057 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3058 as_fn_error $? "no acceptable C compiler found in \$PATH
3059 See \`config.log' for more details" "$LINENO" 5; }
3060
3061 # Provide some information about the compiler.
3062 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3063 set X $ac_compile
3064 ac_compiler=$2
3065 for ac_option in --version -v -V -qversion; do
3066   { { ac_try="$ac_compiler $ac_option >&5"
3067 case "(($ac_try" in
3068   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3069   *) ac_try_echo=$ac_try;;
3070 esac
3071 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3072 $as_echo "$ac_try_echo"; } >&5
3073   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3074   ac_status=$?
3075   if test -s conftest.err; then
3076     sed '10a\
3077 ... rest of stderr output deleted ...
3078          10q' conftest.err >conftest.er1
3079     cat conftest.er1 >&5
3080   fi
3081   rm -f conftest.er1 conftest.err
3082   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3083   test $ac_status = 0; }
3084 done
3085
3086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3087 /* end confdefs.h.  */
3088
3089 int
3090 main ()
3091 {
3092
3093   ;
3094   return 0;
3095 }
3096 _ACEOF
3097 ac_clean_files_save=$ac_clean_files
3098 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3099 # Try to create an executable without -o first, disregard a.out.
3100 # It will help us diagnose broken compilers, and finding out an intuition
3101 # of exeext.
3102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3103 $as_echo_n "checking whether the C compiler works... " >&6; }
3104 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3105
3106 # The possible output files:
3107 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3108
3109 ac_rmfiles=
3110 for ac_file in $ac_files
3111 do
3112   case $ac_file in
3113     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3114     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3115   esac
3116 done
3117 rm -f $ac_rmfiles
3118
3119 if { { ac_try="$ac_link_default"
3120 case "(($ac_try" in
3121   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3122   *) ac_try_echo=$ac_try;;
3123 esac
3124 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3125 $as_echo "$ac_try_echo"; } >&5
3126   (eval "$ac_link_default") 2>&5
3127   ac_status=$?
3128   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3129   test $ac_status = 0; }; then :
3130   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3131 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3132 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3133 # so that the user can short-circuit this test for compilers unknown to
3134 # Autoconf.
3135 for ac_file in $ac_files ''
3136 do
3137   test -f "$ac_file" || continue
3138   case $ac_file in
3139     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3140         ;;
3141     [ab].out )
3142         # We found the default executable, but exeext='' is most
3143         # certainly right.
3144         break;;
3145     *.* )
3146         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3147         then :; else
3148            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3149         fi
3150         # We set ac_cv_exeext here because the later test for it is not
3151         # safe: cross compilers may not add the suffix if given an `-o'
3152         # argument, so we may need to know it at that point already.
3153         # Even if this section looks crufty: it has the advantage of
3154         # actually working.
3155         break;;
3156     * )
3157         break;;
3158   esac
3159 done
3160 test "$ac_cv_exeext" = no && ac_cv_exeext=
3161
3162 else
3163   ac_file=''
3164 fi
3165 if test -z "$ac_file"; then :
3166   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3167 $as_echo "no" >&6; }
3168 $as_echo "$as_me: failed program was:" >&5
3169 sed 's/^/| /' conftest.$ac_ext >&5
3170
3171 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3172 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3173 as_fn_error 77 "C compiler cannot create executables
3174 See \`config.log' for more details" "$LINENO" 5; }
3175 else
3176   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3177 $as_echo "yes" >&6; }
3178 fi
3179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3180 $as_echo_n "checking for C compiler default output file name... " >&6; }
3181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3182 $as_echo "$ac_file" >&6; }
3183 ac_exeext=$ac_cv_exeext
3184
3185 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3186 ac_clean_files=$ac_clean_files_save
3187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3188 $as_echo_n "checking for suffix of executables... " >&6; }
3189 if { { ac_try="$ac_link"
3190 case "(($ac_try" in
3191   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3192   *) ac_try_echo=$ac_try;;
3193 esac
3194 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3195 $as_echo "$ac_try_echo"; } >&5
3196   (eval "$ac_link") 2>&5
3197   ac_status=$?
3198   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3199   test $ac_status = 0; }; then :
3200   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3201 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3202 # work properly (i.e., refer to `conftest.exe'), while it won't with
3203 # `rm'.
3204 for ac_file in conftest.exe conftest conftest.*; do
3205   test -f "$ac_file" || continue
3206   case $ac_file in
3207     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3208     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3209           break;;
3210     * ) break;;
3211   esac
3212 done
3213 else
3214   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3215 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3216 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3217 See \`config.log' for more details" "$LINENO" 5; }
3218 fi
3219 rm -f conftest conftest$ac_cv_exeext
3220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3221 $as_echo "$ac_cv_exeext" >&6; }
3222
3223 rm -f conftest.$ac_ext
3224 EXEEXT=$ac_cv_exeext
3225 ac_exeext=$EXEEXT
3226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3227 /* end confdefs.h.  */
3228 #include <stdio.h>
3229 int
3230 main ()
3231 {
3232 FILE *f = fopen ("conftest.out", "w");
3233  return ferror (f) || fclose (f) != 0;
3234
3235   ;
3236   return 0;
3237 }
3238 _ACEOF
3239 ac_clean_files="$ac_clean_files conftest.out"
3240 # Check that the compiler produces executables we can run.  If not, either
3241 # the compiler is broken, or we cross compile.
3242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3243 $as_echo_n "checking whether we are cross compiling... " >&6; }
3244 if test "$cross_compiling" != yes; then
3245   { { ac_try="$ac_link"
3246 case "(($ac_try" in
3247   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3248   *) ac_try_echo=$ac_try;;
3249 esac
3250 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3251 $as_echo "$ac_try_echo"; } >&5
3252   (eval "$ac_link") 2>&5
3253   ac_status=$?
3254   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3255   test $ac_status = 0; }
3256   if { ac_try='./conftest$ac_cv_exeext'
3257   { { case "(($ac_try" in
3258   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3259   *) ac_try_echo=$ac_try;;
3260 esac
3261 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3262 $as_echo "$ac_try_echo"; } >&5
3263   (eval "$ac_try") 2>&5
3264   ac_status=$?
3265   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3266   test $ac_status = 0; }; }; then
3267     cross_compiling=no
3268   else
3269     if test "$cross_compiling" = maybe; then
3270         cross_compiling=yes
3271     else
3272         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3273 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3274 as_fn_error $? "cannot run C compiled programs.
3275 If you meant to cross compile, use \`--host'.
3276 See \`config.log' for more details" "$LINENO" 5; }
3277     fi
3278   fi
3279 fi
3280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3281 $as_echo "$cross_compiling" >&6; }
3282
3283 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3284 ac_clean_files=$ac_clean_files_save
3285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3286 $as_echo_n "checking for suffix of object files... " >&6; }
3287 if ${ac_cv_objext+:} false; then :
3288   $as_echo_n "(cached) " >&6
3289 else
3290   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3291 /* end confdefs.h.  */
3292
3293 int
3294 main ()
3295 {
3296
3297   ;
3298   return 0;
3299 }
3300 _ACEOF
3301 rm -f conftest.o conftest.obj
3302 if { { ac_try="$ac_compile"
3303 case "(($ac_try" in
3304   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3305   *) ac_try_echo=$ac_try;;
3306 esac
3307 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3308 $as_echo "$ac_try_echo"; } >&5
3309   (eval "$ac_compile") 2>&5
3310   ac_status=$?
3311   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3312   test $ac_status = 0; }; then :
3313   for ac_file in conftest.o conftest.obj conftest.*; do
3314   test -f "$ac_file" || continue;
3315   case $ac_file in
3316     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3317     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3318        break;;
3319   esac
3320 done
3321 else
3322   $as_echo "$as_me: failed program was:" >&5
3323 sed 's/^/| /' conftest.$ac_ext >&5
3324
3325 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3326 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3327 as_fn_error $? "cannot compute suffix of object files: cannot compile
3328 See \`config.log' for more details" "$LINENO" 5; }
3329 fi
3330 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3331 fi
3332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3333 $as_echo "$ac_cv_objext" >&6; }
3334 OBJEXT=$ac_cv_objext
3335 ac_objext=$OBJEXT
3336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3337 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3338 if ${ac_cv_c_compiler_gnu+:} false; then :
3339   $as_echo_n "(cached) " >&6
3340 else
3341   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3342 /* end confdefs.h.  */
3343
3344 int
3345 main ()
3346 {
3347 #ifndef __GNUC__
3348        choke me
3349 #endif
3350
3351   ;
3352   return 0;
3353 }
3354 _ACEOF
3355 if ac_fn_c_try_compile "$LINENO"; then :
3356   ac_compiler_gnu=yes
3357 else
3358   ac_compiler_gnu=no
3359 fi
3360 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3361 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3362
3363 fi
3364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3365 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3366 if test $ac_compiler_gnu = yes; then
3367   GCC=yes
3368 else
3369   GCC=
3370 fi
3371 ac_test_CFLAGS=${CFLAGS+set}
3372 ac_save_CFLAGS=$CFLAGS
3373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3374 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3375 if ${ac_cv_prog_cc_g+:} false; then :
3376   $as_echo_n "(cached) " >&6
3377 else
3378   ac_save_c_werror_flag=$ac_c_werror_flag
3379    ac_c_werror_flag=yes
3380    ac_cv_prog_cc_g=no
3381    CFLAGS="-g"
3382    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3383 /* end confdefs.h.  */
3384
3385 int
3386 main ()
3387 {
3388
3389   ;
3390   return 0;
3391 }
3392 _ACEOF
3393 if ac_fn_c_try_compile "$LINENO"; then :
3394   ac_cv_prog_cc_g=yes
3395 else
3396   CFLAGS=""
3397       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3398 /* end confdefs.h.  */
3399
3400 int
3401 main ()
3402 {
3403
3404   ;
3405   return 0;
3406 }
3407 _ACEOF
3408 if ac_fn_c_try_compile "$LINENO"; then :
3409
3410 else
3411   ac_c_werror_flag=$ac_save_c_werror_flag
3412          CFLAGS="-g"
3413          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3414 /* end confdefs.h.  */
3415
3416 int
3417 main ()
3418 {
3419
3420   ;
3421   return 0;
3422 }
3423 _ACEOF
3424 if ac_fn_c_try_compile "$LINENO"; then :
3425   ac_cv_prog_cc_g=yes
3426 fi
3427 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3428 fi
3429 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3430 fi
3431 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3432    ac_c_werror_flag=$ac_save_c_werror_flag
3433 fi
3434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3435 $as_echo "$ac_cv_prog_cc_g" >&6; }
3436 if test "$ac_test_CFLAGS" = set; then
3437   CFLAGS=$ac_save_CFLAGS
3438 elif test $ac_cv_prog_cc_g = yes; then
3439   if test "$GCC" = yes; then
3440     CFLAGS="-g -O2"
3441   else
3442     CFLAGS="-g"
3443   fi
3444 else
3445   if test "$GCC" = yes; then
3446     CFLAGS="-O2"
3447   else
3448     CFLAGS=
3449   fi
3450 fi
3451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3452 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3453 if ${ac_cv_prog_cc_c89+:} false; then :
3454   $as_echo_n "(cached) " >&6
3455 else
3456   ac_cv_prog_cc_c89=no
3457 ac_save_CC=$CC
3458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3459 /* end confdefs.h.  */
3460 #include <stdarg.h>
3461 #include <stdio.h>
3462 struct stat;
3463 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3464 struct buf { int x; };
3465 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3466 static char *e (p, i)
3467      char **p;
3468      int i;
3469 {
3470   return p[i];
3471 }
3472 static char *f (char * (*g) (char **, int), char **p, ...)
3473 {
3474   char *s;
3475   va_list v;
3476   va_start (v,p);
3477   s = g (p, va_arg (v,int));
3478   va_end (v);
3479   return s;
3480 }
3481
3482 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3483    function prototypes and stuff, but not '\xHH' hex character constants.
3484    These don't provoke an error unfortunately, instead are silently treated
3485    as 'x'.  The following induces an error, until -std is added to get
3486    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3487    array size at least.  It's necessary to write '\x00'==0 to get something
3488    that's true only with -std.  */
3489 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3490
3491 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3492    inside strings and character constants.  */
3493 #define FOO(x) 'x'
3494 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3495
3496 int test (int i, double x);
3497 struct s1 {int (*f) (int a);};
3498 struct s2 {int (*f) (double a);};
3499 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3500 int argc;
3501 char **argv;
3502 int
3503 main ()
3504 {
3505 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3506   ;
3507   return 0;
3508 }
3509 _ACEOF
3510 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3511         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3512 do
3513   CC="$ac_save_CC $ac_arg"
3514   if ac_fn_c_try_compile "$LINENO"; then :
3515   ac_cv_prog_cc_c89=$ac_arg
3516 fi
3517 rm -f core conftest.err conftest.$ac_objext
3518   test "x$ac_cv_prog_cc_c89" != "xno" && break
3519 done
3520 rm -f conftest.$ac_ext
3521 CC=$ac_save_CC
3522
3523 fi
3524 # AC_CACHE_VAL
3525 case "x$ac_cv_prog_cc_c89" in
3526   x)
3527     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3528 $as_echo "none needed" >&6; } ;;
3529   xno)
3530     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3531 $as_echo "unsupported" >&6; } ;;
3532   *)
3533     CC="$CC $ac_cv_prog_cc_c89"
3534     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3535 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3536 esac
3537 if test "x$ac_cv_prog_cc_c89" != xno; then :
3538
3539 fi
3540
3541 ac_ext=c
3542 ac_cpp='$CPP $CPPFLAGS'
3543 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3544 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3545 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3546
3547
3548
3549   CFLAGS_KEEP="$CFLAGS"
3550   CFLAGS=""
3551
3552   if test "$GCC" = "yes"; then
3553
3554   _svn_xxflags__save="$CFLAGS"
3555   ac_ext=c
3556 ac_cpp='$CPP $CPPFLAGS'
3557 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3558 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3559 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3560
3561   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -std=c90" >&5
3562 $as_echo_n "checking if $CC accepts -std=c90... " >&6; }
3563   CFLAGS="-std=c90 $CFLAGS"
3564         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3565 /* end confdefs.h.  */
3566 int main(void){return 0;}
3567 _ACEOF
3568 if ac_fn_c_try_link "$LINENO"; then :
3569
3570     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3571 $as_echo "yes" >&6; }
3572
3573
3574 else
3575
3576     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3577 $as_echo "no" >&6; }
3578     CFLAGS="$_svn_xxflags__save"
3579
3580
3581   _svn_xxflags__save="$CFLAGS"
3582   ac_ext=c
3583 ac_cpp='$CPP $CPPFLAGS'
3584 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3585 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3586 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3587
3588   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -std=c89" >&5
3589 $as_echo_n "checking if $CC accepts -std=c89... " >&6; }
3590   CFLAGS="-std=c89 $CFLAGS"
3591         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3592 /* end confdefs.h.  */
3593 int main(void){return 0;}
3594 _ACEOF
3595 if ac_fn_c_try_link "$LINENO"; then :
3596
3597     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3598 $as_echo "yes" >&6; }
3599
3600
3601 else
3602
3603     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3604 $as_echo "no" >&6; }
3605     CFLAGS="$_svn_xxflags__save"
3606
3607
3608   _svn_xxflags__save="$CFLAGS"
3609   ac_ext=c
3610 ac_cpp='$CPP $CPPFLAGS'
3611 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3612 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3613 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3614
3615   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -ansi" >&5
3616 $as_echo_n "checking if $CC accepts -ansi... " >&6; }
3617   CFLAGS="-ansi $CFLAGS"
3618         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3619 /* end confdefs.h.  */
3620 int main(void){return 0;}
3621 _ACEOF
3622 if ac_fn_c_try_link "$LINENO"; then :
3623
3624     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3625 $as_echo "yes" >&6; }
3626
3627
3628 else
3629
3630     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3631 $as_echo "no" >&6; }
3632     CFLAGS="$_svn_xxflags__save"
3633
3634
3635 fi
3636 rm -f core conftest.err conftest.$ac_objext \
3637     conftest$ac_exeext conftest.$ac_ext
3638   ac_ext=c
3639 ac_cpp='$CPP $CPPFLAGS'
3640 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3641 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3642 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3643
3644
3645
3646
3647 fi
3648 rm -f core conftest.err conftest.$ac_objext \
3649     conftest$ac_exeext conftest.$ac_ext
3650   ac_ext=c
3651 ac_cpp='$CPP $CPPFLAGS'
3652 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3653 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3654 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3655
3656
3657
3658
3659 fi
3660 rm -f core conftest.err conftest.$ac_objext \
3661     conftest$ac_exeext conftest.$ac_ext
3662   ac_ext=c
3663 ac_cpp='$CPP $CPPFLAGS'
3664 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3665 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3666 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3667
3668
3669   fi
3670
3671   CMODEFLAGS="$CFLAGS"
3672   CFLAGS=""
3673
3674   if test "$GCC" = "yes"; then
3675
3676   _svn_xxflags__save="$CFLAGS"
3677   ac_ext=c
3678 ac_cpp='$CPP $CPPFLAGS'
3679 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3680 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3681 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3682
3683   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -w" >&5
3684 $as_echo_n "checking if $CC accepts -w... " >&6; }
3685   CFLAGS="-w $CFLAGS"
3686         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3687 /* end confdefs.h.  */
3688 int main(void){return 0;}
3689 _ACEOF
3690 if ac_fn_c_try_link "$LINENO"; then :
3691
3692     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3693 $as_echo "yes" >&6; }
3694
3695
3696 else
3697
3698     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3699 $as_echo "no" >&6; }
3700     CFLAGS="$_svn_xxflags__save"
3701
3702
3703 fi
3704 rm -f core conftest.err conftest.$ac_objext \
3705     conftest$ac_exeext conftest.$ac_ext
3706   ac_ext=c
3707 ac_cpp='$CPP $CPPFLAGS'
3708 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3709 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3710 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3711
3712
3713   fi
3714
3715   CNOWARNFLAGS="$CFLAGS"
3716   CFLAGS="$CFLAGS_KEEP"
3717
3718
3719
3720
3721
3722
3723   if test "$GCC" = "yes"; then
3724
3725   _svn_xxflags__save="$CFLAGS"
3726   ac_ext=c
3727 ac_cpp='$CPP $CPPFLAGS'
3728 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3729 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3730 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3731
3732   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -Werror=unknown-warning-option" >&5
3733 $as_echo_n "checking if $CC accepts -Werror=unknown-warning-option... " >&6; }
3734   CFLAGS="-Werror=unknown-warning-option $CFLAGS"
3735         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3736 /* end confdefs.h.  */
3737 int main(void){return 0;}
3738 _ACEOF
3739 if ac_fn_c_try_link "$LINENO"; then :
3740
3741     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3742 $as_echo "yes" >&6; }
3743
3744
3745 else
3746
3747     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3748 $as_echo "no" >&6; }
3749     CFLAGS="$_svn_xxflags__save"
3750
3751
3752 fi
3753 rm -f core conftest.err conftest.$ac_objext \
3754     conftest$ac_exeext conftest.$ac_ext
3755   ac_ext=c
3756 ac_cpp='$CPP $CPPFLAGS'
3757 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3758 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3759 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3760
3761
3762   fi
3763
3764
3765 # Look for a C++ compiler (before anything can set CXXFLAGS)
3766 CXXUSERFLAGS="$CXXFLAGS"
3767 ac_ext=cpp
3768 ac_cpp='$CXXCPP $CPPFLAGS'
3769 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3770 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3771 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3772 if test -z "$CXX"; then
3773   if test -n "$CCC"; then
3774     CXX=$CCC
3775   else
3776     if test -n "$ac_tool_prefix"; then
3777   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3778   do
3779     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3780 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3782 $as_echo_n "checking for $ac_word... " >&6; }
3783 if ${ac_cv_prog_CXX+:} false; then :
3784   $as_echo_n "(cached) " >&6
3785 else
3786   if test -n "$CXX"; then
3787   ac_cv_prog_CXX="$CXX" # Let the user override the test.
3788 else
3789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3790 for as_dir in $PATH
3791 do
3792   IFS=$as_save_IFS
3793   test -z "$as_dir" && as_dir=.
3794     for ac_exec_ext in '' $ac_executable_extensions; do
3795   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3796     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3797     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3798     break 2
3799   fi
3800 done
3801   done
3802 IFS=$as_save_IFS
3803
3804 fi
3805 fi
3806 CXX=$ac_cv_prog_CXX
3807 if test -n "$CXX"; then
3808   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3809 $as_echo "$CXX" >&6; }
3810 else
3811   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3812 $as_echo "no" >&6; }
3813 fi
3814
3815
3816     test -n "$CXX" && break
3817   done
3818 fi
3819 if test -z "$CXX"; then
3820   ac_ct_CXX=$CXX
3821   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3822 do
3823   # Extract the first word of "$ac_prog", so it can be a program name with args.
3824 set dummy $ac_prog; ac_word=$2
3825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3826 $as_echo_n "checking for $ac_word... " >&6; }
3827 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
3828   $as_echo_n "(cached) " >&6
3829 else
3830   if test -n "$ac_ct_CXX"; then
3831   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3832 else
3833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3834 for as_dir in $PATH
3835 do
3836   IFS=$as_save_IFS
3837   test -z "$as_dir" && as_dir=.
3838     for ac_exec_ext in '' $ac_executable_extensions; do
3839   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3840     ac_cv_prog_ac_ct_CXX="$ac_prog"
3841     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3842     break 2
3843   fi
3844 done
3845   done
3846 IFS=$as_save_IFS
3847
3848 fi
3849 fi
3850 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3851 if test -n "$ac_ct_CXX"; then
3852   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3853 $as_echo "$ac_ct_CXX" >&6; }
3854 else
3855   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3856 $as_echo "no" >&6; }
3857 fi
3858
3859
3860   test -n "$ac_ct_CXX" && break
3861 done
3862
3863   if test "x$ac_ct_CXX" = x; then
3864     CXX="g++"
3865   else
3866     case $cross_compiling:$ac_tool_warned in
3867 yes:)
3868 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3869 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3870 ac_tool_warned=yes ;;
3871 esac
3872     CXX=$ac_ct_CXX
3873   fi
3874 fi
3875
3876   fi
3877 fi
3878 # Provide some information about the compiler.
3879 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3880 set X $ac_compile
3881 ac_compiler=$2
3882 for ac_option in --version -v -V -qversion; do
3883   { { ac_try="$ac_compiler $ac_option >&5"
3884 case "(($ac_try" in
3885   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3886   *) ac_try_echo=$ac_try;;
3887 esac
3888 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3889 $as_echo "$ac_try_echo"; } >&5
3890   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3891   ac_status=$?
3892   if test -s conftest.err; then
3893     sed '10a\
3894 ... rest of stderr output deleted ...
3895          10q' conftest.err >conftest.er1
3896     cat conftest.er1 >&5
3897   fi
3898   rm -f conftest.er1 conftest.err
3899   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3900   test $ac_status = 0; }
3901 done
3902
3903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3904 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3905 if ${ac_cv_cxx_compiler_gnu+:} false; then :
3906   $as_echo_n "(cached) " >&6
3907 else
3908   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3909 /* end confdefs.h.  */
3910
3911 int
3912 main ()
3913 {
3914 #ifndef __GNUC__
3915        choke me
3916 #endif
3917
3918   ;
3919   return 0;
3920 }
3921 _ACEOF
3922 if ac_fn_cxx_try_compile "$LINENO"; then :
3923   ac_compiler_gnu=yes
3924 else
3925   ac_compiler_gnu=no
3926 fi
3927 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3928 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3929
3930 fi
3931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3932 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3933 if test $ac_compiler_gnu = yes; then
3934   GXX=yes
3935 else
3936   GXX=
3937 fi
3938 ac_test_CXXFLAGS=${CXXFLAGS+set}
3939 ac_save_CXXFLAGS=$CXXFLAGS
3940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3941 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3942 if ${ac_cv_prog_cxx_g+:} false; then :
3943   $as_echo_n "(cached) " >&6
3944 else
3945   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3946    ac_cxx_werror_flag=yes
3947    ac_cv_prog_cxx_g=no
3948    CXXFLAGS="-g"
3949    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3950 /* end confdefs.h.  */
3951
3952 int
3953 main ()
3954 {
3955
3956   ;
3957   return 0;
3958 }
3959 _ACEOF
3960 if ac_fn_cxx_try_compile "$LINENO"; then :
3961   ac_cv_prog_cxx_g=yes
3962 else
3963   CXXFLAGS=""
3964       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3965 /* end confdefs.h.  */
3966
3967 int
3968 main ()
3969 {
3970
3971   ;
3972   return 0;
3973 }
3974 _ACEOF
3975 if ac_fn_cxx_try_compile "$LINENO"; then :
3976
3977 else
3978   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3979          CXXFLAGS="-g"
3980          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3981 /* end confdefs.h.  */
3982
3983 int
3984 main ()
3985 {
3986
3987   ;
3988   return 0;
3989 }
3990 _ACEOF
3991 if ac_fn_cxx_try_compile "$LINENO"; then :
3992   ac_cv_prog_cxx_g=yes
3993 fi
3994 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3995 fi
3996 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3997 fi
3998 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3999    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4000 fi
4001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4002 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4003 if test "$ac_test_CXXFLAGS" = set; then
4004   CXXFLAGS=$ac_save_CXXFLAGS
4005 elif test $ac_cv_prog_cxx_g = yes; then
4006   if test "$GXX" = yes; then
4007     CXXFLAGS="-g -O2"
4008   else
4009     CXXFLAGS="-g"
4010   fi
4011 else
4012   if test "$GXX" = yes; then
4013     CXXFLAGS="-O2"
4014   else
4015     CXXFLAGS=
4016   fi
4017 fi
4018 ac_ext=c
4019 ac_cpp='$CPP $CPPFLAGS'
4020 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4021 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4022 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4023
4024
4025
4026   CXXFLAGS_KEEP="$CXXFLAGS"
4027   CXXFLAGS=""
4028
4029   if test "$GXX" = "yes"; then
4030
4031   _svn_xxflags__save="$CXXFLAGS"
4032   ac_ext=cpp
4033 ac_cpp='$CXXCPP $CPPFLAGS'
4034 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4035 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4036 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4037
4038   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CXX accepts -std=c++98" >&5
4039 $as_echo_n "checking if $CXX accepts -std=c++98... " >&6; }
4040   CXXFLAGS="-std=c++98 $CXXFLAGS"
4041         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4042 /* end confdefs.h.  */
4043 int main(){}
4044 _ACEOF
4045 if ac_fn_cxx_try_link "$LINENO"; then :
4046
4047     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4048 $as_echo "yes" >&6; }
4049
4050
4051 else
4052
4053     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4054 $as_echo "no" >&6; }
4055     CXXFLAGS="$_svn_xxflags__save"
4056
4057
4058 fi
4059 rm -f core conftest.err conftest.$ac_objext \
4060     conftest$ac_exeext conftest.$ac_ext
4061   ac_ext=c
4062 ac_cpp='$CPP $CPPFLAGS'
4063 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4064 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4065 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4066
4067
4068   fi
4069
4070   CXXMODEFLAGS="$CXXFLAGS"
4071   CXXFLAGS=""
4072
4073   if test "$GXX" = "yes"; then
4074
4075   _svn_xxflags__save="$CXXFLAGS"
4076   ac_ext=cpp
4077 ac_cpp='$CXXCPP $CPPFLAGS'
4078 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4079 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4080 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4081
4082   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CXX accepts -w" >&5
4083 $as_echo_n "checking if $CXX accepts -w... " >&6; }
4084   CXXFLAGS="-w $CXXFLAGS"
4085         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4086 /* end confdefs.h.  */
4087 int main(){}
4088 _ACEOF
4089 if ac_fn_cxx_try_link "$LINENO"; then :
4090
4091     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4092 $as_echo "yes" >&6; }
4093
4094
4095 else
4096
4097     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4098 $as_echo "no" >&6; }
4099     CXXFLAGS="$_svn_xxflags__save"
4100
4101
4102 fi
4103 rm -f core conftest.err conftest.$ac_objext \
4104     conftest$ac_exeext conftest.$ac_ext
4105   ac_ext=c
4106 ac_cpp='$CPP $CPPFLAGS'
4107 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4108 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4109 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4110
4111
4112   fi
4113
4114   CXXNOWARNFLAGS="$CXXFLAGS"
4115   CXXFLAGS="$CXXFLAGS_KEEP"
4116
4117
4118
4119
4120
4121
4122   if test "$GXX" = "yes"; then
4123
4124   _svn_xxflags__save="$CXXFLAGS"
4125   ac_ext=cpp
4126 ac_cpp='$CXXCPP $CPPFLAGS'
4127 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4128 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4129 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4130
4131   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CXX accepts -Werror=unknown-warning-option" >&5
4132 $as_echo_n "checking if $CXX accepts -Werror=unknown-warning-option... " >&6; }
4133   CXXFLAGS="-Werror=unknown-warning-option $CXXFLAGS"
4134         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4135 /* end confdefs.h.  */
4136 int main(){}
4137 _ACEOF
4138 if ac_fn_cxx_try_link "$LINENO"; then :
4139
4140     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4141 $as_echo "yes" >&6; }
4142
4143
4144 else
4145
4146     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4147 $as_echo "no" >&6; }
4148     CXXFLAGS="$_svn_xxflags__save"
4149
4150
4151 fi
4152 rm -f core conftest.err conftest.$ac_objext \
4153     conftest$ac_exeext conftest.$ac_ext
4154   ac_ext=c
4155 ac_cpp='$CPP $CPPFLAGS'
4156 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4157 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4158 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4159
4160
4161   fi
4162
4163
4164 # Look for a C pre-processor
4165 ac_ext=c
4166 ac_cpp='$CPP $CPPFLAGS'
4167 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4168 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4169 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4171 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4172 # On Suns, sometimes $CPP names a directory.
4173 if test -n "$CPP" && test -d "$CPP"; then
4174   CPP=
4175 fi
4176 if test -z "$CPP"; then
4177   if ${ac_cv_prog_CPP+:} false; then :
4178   $as_echo_n "(cached) " >&6
4179 else
4180       # Double quotes because CPP needs to be expanded
4181     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4182     do
4183       ac_preproc_ok=false
4184 for ac_c_preproc_warn_flag in '' yes
4185 do
4186   # Use a header file that comes with gcc, so configuring glibc
4187   # with a fresh cross-compiler works.
4188   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4189   # <limits.h> exists even on freestanding compilers.
4190   # On the NeXT, cc -E runs the code through the compiler's parser,
4191   # not just through cpp. "Syntax error" is here to catch this case.
4192   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4193 /* end confdefs.h.  */
4194 #ifdef __STDC__
4195 # include <limits.h>
4196 #else
4197 # include <assert.h>
4198 #endif
4199                      Syntax error
4200 _ACEOF
4201 if ac_fn_c_try_cpp "$LINENO"; then :
4202
4203 else
4204   # Broken: fails on valid input.
4205 continue
4206 fi
4207 rm -f conftest.err conftest.i conftest.$ac_ext
4208
4209   # OK, works on sane cases.  Now check whether nonexistent headers
4210   # can be detected and how.
4211   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4212 /* end confdefs.h.  */
4213 #include <ac_nonexistent.h>
4214 _ACEOF
4215 if ac_fn_c_try_cpp "$LINENO"; then :
4216   # Broken: success on invalid input.
4217 continue
4218 else
4219   # Passes both tests.
4220 ac_preproc_ok=:
4221 break
4222 fi
4223 rm -f conftest.err conftest.i conftest.$ac_ext
4224
4225 done
4226 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4227 rm -f conftest.i conftest.err conftest.$ac_ext
4228 if $ac_preproc_ok; then :
4229   break
4230 fi
4231
4232     done
4233     ac_cv_prog_CPP=$CPP
4234
4235 fi
4236   CPP=$ac_cv_prog_CPP
4237 else
4238   ac_cv_prog_CPP=$CPP
4239 fi
4240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4241 $as_echo "$CPP" >&6; }
4242 ac_preproc_ok=false
4243 for ac_c_preproc_warn_flag in '' yes
4244 do
4245   # Use a header file that comes with gcc, so configuring glibc
4246   # with a fresh cross-compiler works.
4247   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4248   # <limits.h> exists even on freestanding compilers.
4249   # On the NeXT, cc -E runs the code through the compiler's parser,
4250   # not just through cpp. "Syntax error" is here to catch this case.
4251   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4252 /* end confdefs.h.  */
4253 #ifdef __STDC__
4254 # include <limits.h>
4255 #else
4256 # include <assert.h>
4257 #endif
4258                      Syntax error
4259 _ACEOF
4260 if ac_fn_c_try_cpp "$LINENO"; then :
4261
4262 else
4263   # Broken: fails on valid input.
4264 continue
4265 fi
4266 rm -f conftest.err conftest.i conftest.$ac_ext
4267
4268   # OK, works on sane cases.  Now check whether nonexistent headers
4269   # can be detected and how.
4270   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4271 /* end confdefs.h.  */
4272 #include <ac_nonexistent.h>
4273 _ACEOF
4274 if ac_fn_c_try_cpp "$LINENO"; then :
4275   # Broken: success on invalid input.
4276 continue
4277 else
4278   # Passes both tests.
4279 ac_preproc_ok=:
4280 break
4281 fi
4282 rm -f conftest.err conftest.i conftest.$ac_ext
4283
4284 done
4285 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4286 rm -f conftest.i conftest.err conftest.$ac_ext
4287 if $ac_preproc_ok; then :
4288
4289 else
4290   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4291 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4292 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4293 See \`config.log' for more details" "$LINENO" 5; }
4294 fi
4295
4296 ac_ext=c
4297 ac_cpp='$CPP $CPPFLAGS'
4298 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4299 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4300 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4301
4302
4303 # Look for a good sed
4304 # AC_PROG_SED was introduced in Autoconf 2.59b
4305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4306 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4307 if ${ac_cv_path_SED+:} false; then :
4308   $as_echo_n "(cached) " >&6
4309 else
4310             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4311      for ac_i in 1 2 3 4 5 6 7; do
4312        ac_script="$ac_script$as_nl$ac_script"
4313      done
4314      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4315      { ac_script=; unset ac_script;}
4316      if test -z "$SED"; then
4317   ac_path_SED_found=false
4318   # Loop through the user's path and test for each of PROGNAME-LIST
4319   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4320 for as_dir in $PATH
4321 do
4322   IFS=$as_save_IFS
4323   test -z "$as_dir" && as_dir=.
4324     for ac_prog in sed gsed; do
4325     for ac_exec_ext in '' $ac_executable_extensions; do
4326       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4327       as_fn_executable_p "$ac_path_SED" || continue
4328 # Check for GNU ac_path_SED and select it if it is found.
4329   # Check for GNU $ac_path_SED
4330 case `"$ac_path_SED" --version 2>&1` in
4331 *GNU*)
4332   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4333 *)
4334   ac_count=0
4335   $as_echo_n 0123456789 >"conftest.in"
4336   while :
4337   do
4338     cat "conftest.in" "conftest.in" >"conftest.tmp"
4339     mv "conftest.tmp" "conftest.in"
4340     cp "conftest.in" "conftest.nl"
4341     $as_echo '' >> "conftest.nl"
4342     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4343     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4344     as_fn_arith $ac_count + 1 && ac_count=$as_val
4345     if test $ac_count -gt ${ac_path_SED_max-0}; then
4346       # Best one so far, save it but keep looking for a better one
4347       ac_cv_path_SED="$ac_path_SED"
4348       ac_path_SED_max=$ac_count
4349     fi
4350     # 10*(2^10) chars as input seems more than enough
4351     test $ac_count -gt 10 && break
4352   done
4353   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4354 esac
4355
4356       $ac_path_SED_found && break 3
4357     done
4358   done
4359   done
4360 IFS=$as_save_IFS
4361   if test -z "$ac_cv_path_SED"; then
4362     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4363   fi
4364 else
4365   ac_cv_path_SED=$SED
4366 fi
4367
4368 fi
4369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4370 $as_echo "$ac_cv_path_SED" >&6; }
4371  SED="$ac_cv_path_SED"
4372   rm -f conftest.sed
4373
4374
4375 # Grab target_cpu, so we can use it in the Solaris pkginfo file
4376 # Make sure we can run config.sub.
4377 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4378   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4379
4380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4381 $as_echo_n "checking build system type... " >&6; }
4382 if ${ac_cv_build+:} false; then :
4383   $as_echo_n "(cached) " >&6
4384 else
4385   ac_build_alias=$build_alias
4386 test "x$ac_build_alias" = x &&
4387   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4388 test "x$ac_build_alias" = x &&
4389   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4390 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4391   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4392
4393 fi
4394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4395 $as_echo "$ac_cv_build" >&6; }
4396 case $ac_cv_build in
4397 *-*-*) ;;
4398 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4399 esac
4400 build=$ac_cv_build
4401 ac_save_IFS=$IFS; IFS='-'
4402 set x $ac_cv_build
4403 shift
4404 build_cpu=$1
4405 build_vendor=$2
4406 shift; shift
4407 # Remember, the first character of IFS is used to create $*,
4408 # except with old shells:
4409 build_os=$*
4410 IFS=$ac_save_IFS
4411 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4412
4413
4414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4415 $as_echo_n "checking host system type... " >&6; }
4416 if ${ac_cv_host+:} false; then :
4417   $as_echo_n "(cached) " >&6
4418 else
4419   if test "x$host_alias" = x; then
4420   ac_cv_host=$ac_cv_build
4421 else
4422   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4423     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4424 fi
4425
4426 fi
4427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4428 $as_echo "$ac_cv_host" >&6; }
4429 case $ac_cv_host in
4430 *-*-*) ;;
4431 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4432 esac
4433 host=$ac_cv_host
4434 ac_save_IFS=$IFS; IFS='-'
4435 set x $ac_cv_host
4436 shift
4437 host_cpu=$1
4438 host_vendor=$2
4439 shift; shift
4440 # Remember, the first character of IFS is used to create $*,
4441 # except with old shells:
4442 host_os=$*
4443 IFS=$ac_save_IFS
4444 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4445
4446
4447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
4448 $as_echo_n "checking target system type... " >&6; }
4449 if ${ac_cv_target+:} false; then :
4450   $as_echo_n "(cached) " >&6
4451 else
4452   if test "x$target_alias" = x; then
4453   ac_cv_target=$ac_cv_host
4454 else
4455   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
4456     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
4457 fi
4458
4459 fi
4460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
4461 $as_echo "$ac_cv_target" >&6; }
4462 case $ac_cv_target in
4463 *-*-*) ;;
4464 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
4465 esac
4466 target=$ac_cv_target
4467 ac_save_IFS=$IFS; IFS='-'
4468 set x $ac_cv_target
4469 shift
4470 target_cpu=$1
4471 target_vendor=$2
4472 shift; shift
4473 # Remember, the first character of IFS is used to create $*,
4474 # except with old shells:
4475 target_os=$*
4476 IFS=$ac_save_IFS
4477 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
4478
4479
4480 # The aliases save the names the user supplied, while $host etc.
4481 # will get canonicalized.
4482 test -n "$target_alias" &&
4483   test "$program_prefix$program_suffix$program_transform_name" = \
4484     NONENONEs,x,x, &&
4485   program_prefix=${target_alias}-
4486
4487 # Look for an extended grep
4488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4489 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4490 if ${ac_cv_path_GREP+:} false; then :
4491   $as_echo_n "(cached) " >&6
4492 else
4493   if test -z "$GREP"; then
4494   ac_path_GREP_found=false
4495   # Loop through the user's path and test for each of PROGNAME-LIST
4496   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4497 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4498 do
4499   IFS=$as_save_IFS
4500   test -z "$as_dir" && as_dir=.
4501     for ac_prog in grep ggrep; do
4502     for ac_exec_ext in '' $ac_executable_extensions; do
4503       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4504       as_fn_executable_p "$ac_path_GREP" || continue
4505 # Check for GNU ac_path_GREP and select it if it is found.
4506   # Check for GNU $ac_path_GREP
4507 case `"$ac_path_GREP" --version 2>&1` in
4508 *GNU*)
4509   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4510 *)
4511   ac_count=0
4512   $as_echo_n 0123456789 >"conftest.in"
4513   while :
4514   do
4515     cat "conftest.in" "conftest.in" >"conftest.tmp"
4516     mv "conftest.tmp" "conftest.in"
4517     cp "conftest.in" "conftest.nl"
4518     $as_echo 'GREP' >> "conftest.nl"
4519     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4520     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4521     as_fn_arith $ac_count + 1 && ac_count=$as_val
4522     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4523       # Best one so far, save it but keep looking for a better one
4524       ac_cv_path_GREP="$ac_path_GREP"
4525       ac_path_GREP_max=$ac_count
4526     fi
4527     # 10*(2^10) chars as input seems more than enough
4528     test $ac_count -gt 10 && break
4529   done
4530   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4531 esac
4532
4533       $ac_path_GREP_found && break 3
4534     done
4535   done
4536   done
4537 IFS=$as_save_IFS
4538   if test -z "$ac_cv_path_GREP"; then
4539     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4540   fi
4541 else
4542   ac_cv_path_GREP=$GREP
4543 fi
4544
4545 fi
4546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4547 $as_echo "$ac_cv_path_GREP" >&6; }
4548  GREP="$ac_cv_path_GREP"
4549
4550
4551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4552 $as_echo_n "checking for egrep... " >&6; }
4553 if ${ac_cv_path_EGREP+:} false; then :
4554   $as_echo_n "(cached) " >&6
4555 else
4556   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4557    then ac_cv_path_EGREP="$GREP -E"
4558    else
4559      if test -z "$EGREP"; then
4560   ac_path_EGREP_found=false
4561   # Loop through the user's path and test for each of PROGNAME-LIST
4562   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4563 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4564 do
4565   IFS=$as_save_IFS
4566   test -z "$as_dir" && as_dir=.
4567     for ac_prog in egrep; do
4568     for ac_exec_ext in '' $ac_executable_extensions; do
4569       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4570       as_fn_executable_p "$ac_path_EGREP" || continue
4571 # Check for GNU ac_path_EGREP and select it if it is found.
4572   # Check for GNU $ac_path_EGREP
4573 case `"$ac_path_EGREP" --version 2>&1` in
4574 *GNU*)
4575   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4576 *)
4577   ac_count=0
4578   $as_echo_n 0123456789 >"conftest.in"
4579   while :
4580   do
4581     cat "conftest.in" "conftest.in" >"conftest.tmp"
4582     mv "conftest.tmp" "conftest.in"
4583     cp "conftest.in" "conftest.nl"
4584     $as_echo 'EGREP' >> "conftest.nl"
4585     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4586     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4587     as_fn_arith $ac_count + 1 && ac_count=$as_val
4588     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4589       # Best one so far, save it but keep looking for a better one
4590       ac_cv_path_EGREP="$ac_path_EGREP"
4591       ac_path_EGREP_max=$ac_count
4592     fi
4593     # 10*(2^10) chars as input seems more than enough
4594     test $ac_count -gt 10 && break
4595   done
4596   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4597 esac
4598
4599       $ac_path_EGREP_found && break 3
4600     done
4601   done
4602   done
4603 IFS=$as_save_IFS
4604   if test -z "$ac_cv_path_EGREP"; then
4605     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4606   fi
4607 else
4608   ac_cv_path_EGREP=$EGREP
4609 fi
4610
4611    fi
4612 fi
4613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4614 $as_echo "$ac_cv_path_EGREP" >&6; }
4615  EGREP="$ac_cv_path_EGREP"
4616
4617
4618
4619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4620 $as_echo_n "checking whether ln -s works... " >&6; }
4621 LN_S=$as_ln_s
4622 if test "$LN_S" = "ln -s"; then
4623   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4624 $as_echo "yes" >&6; }
4625 else
4626   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4627 $as_echo "no, using $LN_S" >&6; }
4628 fi
4629
4630
4631 # Find a good install program.  We prefer a C program (faster),
4632 # so one script is as good as another.  But avoid the broken or
4633 # incompatible versions:
4634 # SysV /etc/install, /usr/sbin/install
4635 # SunOS /usr/etc/install
4636 # IRIX /sbin/install
4637 # AIX /bin/install
4638 # AmigaOS /C/install, which installs bootblocks on floppy discs
4639 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4640 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4641 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4642 # OS/2's system install, which has a completely different semantic
4643 # ./install, which can be erroneously created by make from ./install.sh.
4644 # Reject install programs that cannot install multiple files.
4645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4646 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4647 if test -z "$INSTALL"; then
4648 if ${ac_cv_path_install+:} false; then :
4649   $as_echo_n "(cached) " >&6
4650 else
4651   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4652 for as_dir in $PATH
4653 do
4654   IFS=$as_save_IFS
4655   test -z "$as_dir" && as_dir=.
4656     # Account for people who put trailing slashes in PATH elements.
4657 case $as_dir/ in #((
4658   ./ | .// | /[cC]/* | \
4659   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4660   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4661   /usr/ucb/* ) ;;
4662   *)
4663     # OSF1 and SCO ODT 3.0 have their own names for install.
4664     # Don't use installbsd from OSF since it installs stuff as root
4665     # by default.
4666     for ac_prog in ginstall scoinst install; do
4667       for ac_exec_ext in '' $ac_executable_extensions; do
4668         if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4669           if test $ac_prog = install &&
4670             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4671             # AIX install.  It has an incompatible calling convention.
4672             :
4673           elif test $ac_prog = install &&
4674             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4675             # program-specific install script used by HP pwplus--don't use.
4676             :
4677           else
4678             rm -rf conftest.one conftest.two conftest.dir
4679             echo one > conftest.one
4680             echo two > conftest.two
4681             mkdir conftest.dir
4682             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4683               test -s conftest.one && test -s conftest.two &&
4684               test -s conftest.dir/conftest.one &&
4685               test -s conftest.dir/conftest.two
4686             then
4687               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4688               break 3
4689             fi
4690           fi
4691         fi
4692       done
4693     done
4694     ;;
4695 esac
4696
4697   done
4698 IFS=$as_save_IFS
4699
4700 rm -rf conftest.one conftest.two conftest.dir
4701
4702 fi
4703   if test "${ac_cv_path_install+set}" = set; then
4704     INSTALL=$ac_cv_path_install
4705   else
4706     # As a last resort, use the slow shell script.  Don't cache a
4707     # value for INSTALL within a source directory, because that will
4708     # break other packages using the cache if that directory is
4709     # removed, or if the value is a relative name.
4710     INSTALL=$ac_install_sh
4711   fi
4712 fi
4713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4714 $as_echo "$INSTALL" >&6; }
4715
4716 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4717 # It thinks the first close brace ends the variable substitution.
4718 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4719
4720 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4721
4722 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4723
4724 # If $INSTALL is relative path to our fallback install-sh, then convert
4725 # to an absolute path, as in some cases (e.g. Solaris VPATH build), libtool
4726 # may try to use it from a changed working directory.
4727 if test "$INSTALL" = "build/install-sh -c"; then
4728   INSTALL="$abs_srcdir/$INSTALL"
4729 fi
4730
4731 if test -z "$MKDIR"; then
4732   MKDIR="$INSTALL -d"
4733 fi
4734
4735
4736 # ==== Libraries, for which we may have source to build ======================
4737
4738
4739 APR_VER_REGEXES="1\.[3-9]\. 2\."
4740
4741
4742   APR_WANTED_REGEXES="$APR_VER_REGEXES"
4743
4744   { $as_echo "$as_me:${as_lineno-$LINENO}: Apache Portable Runtime (APR) library configuration" >&5
4745 $as_echo "$as_me: Apache Portable Runtime (APR) library configuration" >&6;}
4746
4747
4748   apr_found="no"
4749
4750   if test "$target_os" = "os2-emx"; then
4751     # Scripts don't pass test -x on OS/2
4752     TEST_X="test -f"
4753   else
4754     TEST_X="test -x"
4755   fi
4756
4757   acceptable_majors="2 1 0"
4758
4759   apr_temp_acceptable_apr_config=""
4760   for apr_temp_major in $acceptable_majors
4761   do
4762     case $apr_temp_major in
4763       0)
4764       apr_temp_acceptable_apr_config="$apr_temp_acceptable_apr_config apr-config"
4765       ;;
4766       *)
4767       apr_temp_acceptable_apr_config="$apr_temp_acceptable_apr_config apr-$apr_temp_major-config"
4768       ;;
4769     esac
4770   done
4771
4772   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for APR" >&5
4773 $as_echo_n "checking for APR... " >&6; }
4774
4775 # Check whether --with-apr was given.
4776 if test "${with_apr+set}" = set; then :
4777   withval=$with_apr;
4778     if test "$withval" = "no" || test "$withval" = "yes"; then
4779       as_fn_error $? "--with-apr requires a directory or file to be provided" "$LINENO" 5
4780     fi
4781
4782     for apr_temp_apr_config_file in $apr_temp_acceptable_apr_config
4783     do
4784       for lookdir in "$withval/bin" "$withval"
4785       do
4786         if $TEST_X "$lookdir/$apr_temp_apr_config_file"; then
4787           apr_config="$lookdir/$apr_temp_apr_config_file"
4788
4789           apr_found="yes"
4790           break 2
4791         fi
4792       done
4793     done
4794
4795     if test "$apr_found" != "yes" && $TEST_X "$withval" && $withval --help > /dev/null 2>&1 ; then
4796       apr_config="$withval"
4797       apr_found="yes"
4798     fi
4799
4800             if test "$apr_found" != "yes"; then
4801       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
4802     fi
4803
4804 else
4805
4806         if test -n "1" && test "1" = "1"; then
4807       for apr_temp_apr_config_file in $apr_temp_acceptable_apr_config
4808       do
4809         if $apr_temp_apr_config_file --help > /dev/null 2>&1 ; then
4810           apr_config="$apr_temp_apr_config_file"
4811
4812           apr_found="yes"
4813           break
4814         else
4815                     for lookdir in /usr /usr/local /usr/local/apr /opt/apr; do
4816             if $TEST_X "$lookdir/bin/$apr_temp_apr_config_file"; then
4817               apr_config="$lookdir/bin/$apr_temp_apr_config_file"
4818
4819               apr_found="yes"
4820               break 2
4821             fi
4822           done
4823         fi
4824       done
4825     fi
4826         if test "$apr_found" = "no" && test -d """"; then
4827       apr_temp_abs_srcdir="`cd \"""\" && pwd`"
4828       apr_found="reconfig"
4829       apr_bundled_major="`sed -n '/#define.*APR_MAJOR_VERSION/s/^[^0-9]*\([0-9]*\).*$/\1/p' \"""/include/apr_version.h\"`"
4830       case $apr_bundled_major in
4831         "")
4832           as_fn_error $? "failed to find major version of bundled APR" "$LINENO" 5
4833         ;;
4834         0)
4835           apr_temp_apr_config_file="apr-config"
4836         ;;
4837         *)
4838           apr_temp_apr_config_file="apr-$apr_bundled_major-config"
4839         ;;
4840       esac
4841       if test -n """"; then
4842         apr_config="""/$apr_temp_apr_config_file"
4843       else
4844         apr_config="""/$apr_temp_apr_config_file"
4845       fi
4846     fi
4847
4848 fi
4849
4850
4851   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_found" >&5
4852 $as_echo "$apr_found" >&6; }
4853
4854
4855   if test $apr_found = "no"; then
4856     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: APR not found" >&5
4857 $as_echo "$as_me: WARNING: APR not found" >&2;}
4858
4859   echo "The Apache Portable Runtime (APR) library cannot be found."
4860   echo "Please install APR on this system and configure Subversion"
4861   echo "with the appropriate --with-apr option."
4862   echo ""
4863   echo "You probably need to do something similar with the Apache"
4864   echo "Portable Runtime Utility (APRUTIL) library and then configure"
4865   echo "Subversion with both the --with-apr and --with-apr-util options."
4866   echo ""
4867   as_fn_error $? "no suitable APR found" "$LINENO" 5
4868
4869   fi
4870
4871   if test $apr_found = "reconfig"; then
4872     as_fn_error $? "Unexpected APR reconfig" "$LINENO" 5
4873   fi
4874
4875
4876   { $as_echo "$as_me:${as_lineno-$LINENO}: checking APR version" >&5
4877 $as_echo_n "checking APR version... " >&6; }
4878   apr_version="`$apr_config --version`"
4879   if test $? -ne 0; then
4880     as_fn_error $? "apr-config --version failed" "$LINENO" 5
4881   fi
4882   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_version" >&5
4883 $as_echo "$apr_version" >&6; }
4884
4885   APR_WANTED_REGEX_MATCH=0
4886   for apr_wanted_regex in $APR_WANTED_REGEXES; do
4887     if test `expr $apr_version : $apr_wanted_regex` -ne 0; then
4888       APR_WANTED_REGEX_MATCH=1
4889       break
4890     fi
4891   done
4892
4893   if test $APR_WANTED_REGEX_MATCH -eq 0; then
4894     echo "wanted regexes are $APR_WANTED_REGEXES"
4895     as_fn_error $? "invalid apr version found" "$LINENO" 5
4896   fi
4897
4898
4899   CPPFLAGS="$CPPFLAGS `$apr_config --cppflags`"
4900   if test $? -ne 0; then
4901     as_fn_error $? "apr-config --cppflags failed" "$LINENO" 5
4902   fi
4903
4904   CFLAGS="$CFLAGS `$apr_config --cflags`"
4905   if test $? -ne 0; then
4906     as_fn_error $? "apr-config --cflags failed" "$LINENO" 5
4907   fi
4908
4909   apr_ldflags="`$apr_config --ldflags`"
4910   if test $? -ne 0; then
4911     as_fn_error $? "apr-config --ldflags failed" "$LINENO" 5
4912   fi
4913   LDFLAGS="$LDFLAGS `
4914   input_flags="$apr_ldflags"
4915   output_flags=""
4916   filtered_dirs="/lib /lib64 /usr/lib /usr/lib64"
4917   for flag in $input_flags; do
4918     filter="no"
4919     for dir in $filtered_dirs; do
4920       if test "$flag" = "-L$dir" || test "$flag" = "-L$dir/"; then
4921         filter="yes"
4922         break
4923       fi
4924     done
4925     if test "$filter" = "no"; then
4926       output_flags="$output_flags $flag"
4927     fi
4928   done
4929   if test -n "$output_flags"; then
4930     printf "%s" "${output_flags# }"
4931   fi
4932 `"
4933
4934   SVN_APR_INCLUDES="`$apr_config --includes`"
4935   if test $? -ne 0; then
4936     as_fn_error $? "apr-config --includes failed" "$LINENO" 5
4937   fi
4938
4939   if test "$enable_all_static" = "yes"; then
4940     SVN_APR_LIBS="`$apr_config --link-ld --libs`"
4941     if test $? -ne 0; then
4942       as_fn_error $? "apr-config --link-ld --libs failed" "$LINENO" 5
4943     fi
4944   else
4945     SVN_APR_LIBS="`$apr_config --link-ld`"
4946     if test $? -ne 0; then
4947       as_fn_error $? "apr-config --link-ld failed" "$LINENO" 5
4948     fi
4949   fi
4950   SVN_APR_LIBS="`
4951   input_flags="$SVN_APR_LIBS"
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_SHLIB_PATH_VAR="`$apr_config --shlib-path-var`"
4972   if test $? -ne 0; then
4973     as_fn_error $? "apr-config --shlib-path-var failed" "$LINENO" 5
4974   fi
4975
4976   SVN_APR_CONFIG="$apr_config"
4977
4978
4979
4980
4981
4982
4983 if test `expr $apr_version : 2` -ne 0; then
4984       svn_lib_ver=2
4985     apu_config=$apr_config
4986
4987   SVN_APRUTIL_CONFIG="$apu_config"
4988
4989
4990   SVN_APR_MAJOR_VERSION=2
4991 else
4992   svn_lib_ver=0
4993   APU_VER_REGEXES="1\.[3-9]\."
4994
4995   APRUTIL_WANTED_REGEXES="$APU_VER_REGEXES"
4996
4997   { $as_echo "$as_me:${as_lineno-$LINENO}: Apache Portable Runtime Utility (APRUTIL) library configuration" >&5
4998 $as_echo "$as_me: Apache Portable Runtime Utility (APRUTIL) library configuration" >&6;}
4999
5000
5001   apu_found="no"
5002
5003   if test "$target_os" = "os2-emx"; then
5004     # Scripts don't pass test -x on OS/2
5005     TEST_X="test -f"
5006   else
5007     TEST_X="test -x"
5008   fi
5009
5010   acceptable_majors="1 0"
5011
5012   apu_temp_acceptable_apu_config=""
5013   for apu_temp_major in $acceptable_majors
5014   do
5015     case $apu_temp_major in
5016       0)
5017       apu_temp_acceptable_apu_config="$apu_temp_acceptable_apu_config apu-config"
5018       ;;
5019       *)
5020       apu_temp_acceptable_apu_config="$apu_temp_acceptable_apu_config apu-$apu_temp_major-config"
5021       ;;
5022     esac
5023   done
5024
5025   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for APR-util" >&5
5026 $as_echo_n "checking for APR-util... " >&6; }
5027
5028 # Check whether --with-apr-util was given.
5029 if test "${with_apr_util+set}" = set; then :
5030   withval=$with_apr_util;
5031     if test "$withval" = "no" || test "$withval" = "yes"; then
5032       as_fn_error $? "--with-apr-util requires a directory or file to be provided" "$LINENO" 5
5033     fi
5034
5035     for apu_temp_apu_config_file in $apu_temp_acceptable_apu_config
5036     do
5037       for lookdir in "$withval/bin" "$withval"
5038       do
5039         if $TEST_X "$lookdir/$apu_temp_apu_config_file"; then
5040           apu_config="$lookdir/$apu_temp_apu_config_file"
5041
5042           apu_found="yes"
5043           break 2
5044         fi
5045       done
5046     done
5047
5048     if test "$apu_found" != "yes" && $TEST_X "$withval" && $withval --help > /dev/null 2>&1 ; then
5049       apu_config="$withval"
5050       apu_found="yes"
5051     fi
5052
5053             if test "$apu_found" != "yes"; then
5054       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
5055     fi
5056
5057 else
5058
5059     if test -n "1" && test "1" = "1"; then
5060       for apu_temp_apu_config_file in $apu_temp_acceptable_apu_config
5061       do
5062         if $apu_temp_apu_config_file --help > /dev/null 2>&1 ; then
5063           apu_config="$apu_temp_apu_config_file"
5064
5065           apu_found="yes"
5066           break
5067         else
5068                     for lookdir in /usr /usr/local /usr/local/apr /opt/apr; do
5069             if $TEST_X "$lookdir/bin/$apu_temp_apu_config_file"; then
5070               apu_config="$lookdir/bin/$apu_temp_apu_config_file"
5071
5072               apu_found="yes"
5073               break 2
5074             fi
5075           done
5076         fi
5077       done
5078     fi
5079         if test "$apu_found" = "no" && test -d """"; then
5080       apu_temp_abs_srcdir="`cd \"""\" && pwd`"
5081       apu_found="reconfig"
5082       apu_bundled_major="`sed -n '/#define.*APU_MAJOR_VERSION/s/^[^0-9]*\([0-9]*\).*$/\1/p' \"""/include/apu_version.h\"`"
5083       case $apu_bundled_major in
5084         "")
5085           as_fn_error $? "failed to find major version of bundled APU" "$LINENO" 5
5086         ;;
5087         0)
5088           apu_temp_apu_config_file="apu-config"
5089         ;;
5090         *)
5091           apu_temp_apu_config_file="apu-$apu_bundled_major-config"
5092         ;;
5093       esac
5094       if test -n """"; then
5095         apu_config="""/$apu_temp_apu_config_file"
5096       else
5097         apu_config="""/$apu_temp_apu_config_file"
5098       fi
5099     fi
5100
5101 fi
5102
5103
5104   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apu_found" >&5
5105 $as_echo "$apu_found" >&6; }
5106
5107
5108   if test $apu_found = "no"; then
5109     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: APRUTIL not found" >&5
5110 $as_echo "$as_me: WARNING: APRUTIL not found" >&2;}
5111
5112   echo "The Apache Portable Runtime Utility (APRUTIL) library cannot be found."
5113   echo "Install APRUTIL on this system and configure Subversion with the"
5114   echo " appropriate --with-apr-util option."
5115   echo ""
5116   as_fn_error $? "no suitable APRUTIL found" "$LINENO" 5
5117
5118   fi
5119
5120   if test $apu_found = "reconfig"; then
5121     as_fn_error $? "Unexpected APRUTIL reconfig" "$LINENO" 5
5122   fi
5123
5124
5125   { $as_echo "$as_me:${as_lineno-$LINENO}: checking APRUTIL version" >&5
5126 $as_echo_n "checking APRUTIL version... " >&6; }
5127   apu_version="`$apu_config --version`"
5128   if test $? -ne 0; then
5129     # This is a hack as suggested by Ben Collins-Sussman.  It can be
5130     # removed after apache 2.0.44 has been released.  (The apu-config
5131     # shipped in 2.0.43 contains a correct version number, but
5132     # stupidly doesn't understand the --version switch.)
5133     apu_version=`grep "APRUTIL_DOTTED_VERSION=" $(which $apu_config) | tr -d "APRUTIL_DOTTED_VERSION="| tr -d '"'`
5134     #AC_MSG_ERROR([
5135     #    apu-config --version failed.
5136     #    Your apu-config doesn't support the --version switch, please upgrade
5137     #    to APR-UTIL more recent than 2002-Nov-05.])
5138   fi
5139   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apu_version" >&5
5140 $as_echo "$apu_version" >&6; }
5141
5142   APU_WANTED_REGEX_MATCH=0
5143   for apu_wanted_regex in $APRUTIL_WANTED_REGEXES; do
5144     if test `expr $apu_version : $apu_wanted_regex` -ne 0; then
5145       APU_WANTED_REGEX_MATCH=1
5146       break
5147     fi
5148   done
5149
5150   if test $APU_WANTED_REGEX_MATCH -eq 0; then
5151     echo "wanted regexes are $APRUTIL_WANTED_REGEXES"
5152     as_fn_error $? "invalid APRUTIL version found" "$LINENO" 5
5153   fi
5154
5155
5156   apu_ldflags="`$apu_config --ldflags`"
5157   if test $? -ne 0; then
5158     as_fn_error $? "apu-config --ldflags failed" "$LINENO" 5
5159   fi
5160   LDFLAGS="$LDFLAGS `
5161   input_flags="$apu_ldflags"
5162   output_flags=""
5163   filtered_dirs="/lib /lib64 /usr/lib /usr/lib64"
5164   for flag in $input_flags; do
5165     filter="no"
5166     for dir in $filtered_dirs; do
5167       if test "$flag" = "-L$dir" || test "$flag" = "-L$dir/"; then
5168         filter="yes"
5169         break
5170       fi
5171     done
5172     if test "$filter" = "no"; then
5173       output_flags="$output_flags $flag"
5174     fi
5175   done
5176   if test -n "$output_flags"; then
5177     printf "%s" "${output_flags# }"
5178   fi
5179 `"
5180
5181   SVN_APRUTIL_INCLUDES="`$apu_config --includes`"
5182   if test $? -ne 0; then
5183     as_fn_error $? "apu-config --includes failed" "$LINENO" 5
5184   fi
5185
5186   if test "$enable_all_static" = "yes"; then
5187     SVN_APRUTIL_LIBS="`$apu_config --link-ld --libs`"
5188     if test $? -ne 0; then
5189       as_fn_error $? "apu-config --link-ld --libs failed" "$LINENO" 5
5190     fi
5191   else
5192     SVN_APRUTIL_LIBS="`$apu_config --link-ld`"
5193     if test $? -ne 0; then
5194       as_fn_error $? "apu-config --link-ld failed" "$LINENO" 5
5195     fi
5196   fi
5197   SVN_APRUTIL_LIBS="`
5198   input_flags="$SVN_APRUTIL_LIBS"
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
5219   SVN_APRUTIL_CONFIG="$apu_config"
5220
5221
5222
5223     SVN_HAVE_OLD_EXPAT="`$apu_config --old-expat`"
5224   if test "$SVN_HAVE_OLD_EXPAT" = "yes"; then
5225
5226 $as_echo "#define SVN_HAVE_OLD_EXPAT 1" >>confdefs.h
5227
5228   fi
5229
5230   SVN_APR_MAJOR_VERSION=1
5231 fi
5232
5233 SVN_LT_SOVERSION="-version-info $svn_lib_ver"
5234
5235
5236 cat >>confdefs.h <<_ACEOF
5237 #define SVN_SOVERSION $svn_lib_ver
5238 _ACEOF
5239
5240
5241 # Extract the first word of "pkg-config", so it can be a program name with args.
5242 set dummy pkg-config; ac_word=$2
5243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5244 $as_echo_n "checking for $ac_word... " >&6; }
5245 if ${ac_cv_path_PKG_CONFIG+:} false; then :
5246   $as_echo_n "(cached) " >&6
5247 else
5248   case $PKG_CONFIG in
5249   [\\/]* | ?:[\\/]*)
5250   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5251   ;;
5252   *)
5253   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5254 for as_dir in $PATH
5255 do
5256   IFS=$as_save_IFS
5257   test -z "$as_dir" && as_dir=.
5258     for ac_exec_ext in '' $ac_executable_extensions; do
5259   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5260     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5261     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5262     break 2
5263   fi
5264 done
5265   done
5266 IFS=$as_save_IFS
5267
5268   ;;
5269 esac
5270 fi
5271 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5272 if test -n "$PKG_CONFIG"; then
5273   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5274 $as_echo "$PKG_CONFIG" >&6; }
5275 else
5276   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5277 $as_echo "no" >&6; }
5278 fi
5279
5280
5281
5282
5283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5284 $as_echo_n "checking for ANSI C header files... " >&6; }
5285 if ${ac_cv_header_stdc+:} false; then :
5286   $as_echo_n "(cached) " >&6
5287 else
5288   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5289 /* end confdefs.h.  */
5290 #include <stdlib.h>
5291 #include <stdarg.h>
5292 #include <string.h>
5293 #include <float.h>
5294
5295 int
5296 main ()
5297 {
5298
5299   ;
5300   return 0;
5301 }
5302 _ACEOF
5303 if ac_fn_c_try_compile "$LINENO"; then :
5304   ac_cv_header_stdc=yes
5305 else
5306   ac_cv_header_stdc=no
5307 fi
5308 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5309
5310 if test $ac_cv_header_stdc = yes; then
5311   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5312   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5313 /* end confdefs.h.  */
5314 #include <string.h>
5315
5316 _ACEOF
5317 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5318   $EGREP "memchr" >/dev/null 2>&1; then :
5319
5320 else
5321   ac_cv_header_stdc=no
5322 fi
5323 rm -f conftest*
5324
5325 fi
5326
5327 if test $ac_cv_header_stdc = yes; then
5328   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5329   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5330 /* end confdefs.h.  */
5331 #include <stdlib.h>
5332
5333 _ACEOF
5334 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5335   $EGREP "free" >/dev/null 2>&1; then :
5336
5337 else
5338   ac_cv_header_stdc=no
5339 fi
5340 rm -f conftest*
5341
5342 fi
5343
5344 if test $ac_cv_header_stdc = yes; then
5345   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5346   if test "$cross_compiling" = yes; then :
5347   :
5348 else
5349   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5350 /* end confdefs.h.  */
5351 #include <ctype.h>
5352 #include <stdlib.h>
5353 #if ((' ' & 0x0FF) == 0x020)
5354 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5355 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5356 #else
5357 # define ISLOWER(c) \
5358                    (('a' <= (c) && (c) <= 'i') \
5359                      || ('j' <= (c) && (c) <= 'r') \
5360                      || ('s' <= (c) && (c) <= 'z'))
5361 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5362 #endif
5363
5364 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5365 int
5366 main ()
5367 {
5368   int i;
5369   for (i = 0; i < 256; i++)
5370     if (XOR (islower (i), ISLOWER (i))
5371         || toupper (i) != TOUPPER (i))
5372       return 2;
5373   return 0;
5374 }
5375 _ACEOF
5376 if ac_fn_c_try_run "$LINENO"; then :
5377
5378 else
5379   ac_cv_header_stdc=no
5380 fi
5381 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5382   conftest.$ac_objext conftest.beam conftest.$ac_ext
5383 fi
5384
5385 fi
5386 fi
5387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5388 $as_echo "$ac_cv_header_stdc" >&6; }
5389 if test $ac_cv_header_stdc = yes; then
5390
5391 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5392
5393 fi
5394
5395 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5396 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5397                   inttypes.h stdint.h unistd.h
5398 do :
5399   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5400 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5401 "
5402 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5403   cat >>confdefs.h <<_ACEOF
5404 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5405 _ACEOF
5406
5407 fi
5408
5409 done
5410
5411
5412
5413   serf_found=no
5414   serf_required=no
5415   serf_skip=no
5416
5417   serf_check_major="1"
5418   serf_check_minor="3"
5419   serf_check_patch="4"
5420   serf_check_version="1.3.4"
5421
5422
5423 # Check whether --with-serf was given.
5424 if test "${with_serf+set}" = set; then :
5425   withval=$with_serf;
5426     if test "$withval" = "yes" ; then
5427       serf_required=yes
5428     elif test "$withval" = "no" ; then
5429       serf_skip=yes
5430     else
5431       serf_required=yes
5432       serf_prefix="$withval"
5433     fi
5434
5435 fi
5436
5437
5438   if test "$serf_skip" = "no" ; then
5439
5440   { $as_echo "$as_me:${as_lineno-$LINENO}: serf library configuration via pkg-config" >&5
5441 $as_echo "$as_me: serf library configuration via pkg-config" >&6;}
5442   if test -n "$PKG_CONFIG"; then
5443     for serf_major in serf-2 serf-1; do
5444       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $serf_major library" >&5
5445 $as_echo_n "checking for $serf_major library... " >&6; }
5446       if test -n "$serf_prefix" ; then
5447                                                         if test -e "$serf_prefix/$serf_major.pc" ; then
5448           serf_pc_arg="$serf_prefix/$serf_major.pc"
5449         elif test -e "$serf_prefix/lib/pkgconfig/$serf_major.pc" ; then
5450           serf_pc_arg="$serf_prefix/lib/pkgconfig/$serf_major.pc"
5451         else
5452           { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5453 $as_echo "no" >&6; }
5454           continue
5455         fi
5456       else
5457         serf_pc_arg="$serf_major"
5458       fi
5459       if $PKG_CONFIG $serf_pc_arg --exists; then
5460         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5461 $as_echo "yes" >&6; }
5462         { $as_echo "$as_me:${as_lineno-$LINENO}: checking serf library version" >&5
5463 $as_echo_n "checking serf library version... " >&6; }
5464         SERF_VERSION=`$PKG_CONFIG $serf_pc_arg --modversion`
5465         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SERF_VERSION" >&5
5466 $as_echo "$SERF_VERSION" >&6; }
5467         { $as_echo "$as_me:${as_lineno-$LINENO}: checking serf version is suitable" >&5
5468 $as_echo_n "checking serf version is suitable... " >&6; }
5469         if $PKG_CONFIG $serf_pc_arg --atleast-version=$serf_check_version; then
5470           { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5471 $as_echo "yes" >&6; }
5472           serf_found=yes
5473           SVN_SERF_INCLUDES=`$PKG_CONFIG $serf_pc_arg --cflags | $SED -e 's/ -D[^ ]*//g' -e 's/^-D[^ ]*//g'`
5474           SVN_SERF_LIBS=`$PKG_CONFIG $serf_pc_arg --libs-only-l`
5475                     LDFLAGS="$LDFLAGS `$PKG_CONFIG $serf_pc_arg --libs | $SED -e 's/-l[^ ]*//g'`"
5476           break
5477         else
5478           { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5479 $as_echo "no" >&6; }
5480           { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Serf version too old: need $serf_check_version" >&5
5481 $as_echo "$as_me: WARNING: Serf version too old: need $serf_check_version" >&2;}
5482         fi
5483       else
5484         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5485 $as_echo "no" >&6; }
5486       fi
5487     done
5488   fi
5489
5490     if test -n "$serf_prefix" && test "$serf_found" = "no" ; then
5491
5492   { $as_echo "$as_me:${as_lineno-$LINENO}: serf library configuration via prefix" >&5
5493 $as_echo "$as_me: serf library configuration via prefix" >&6;}
5494   serf_required=yes
5495   for serf_major in serf-2 serf-1; do
5496     if ! test -d $serf_prefix/include/$serf_major; then continue; fi
5497     save_cppflags="$CPPFLAGS"
5498     CPPFLAGS="$CPPFLAGS $SVN_APR_INCLUDES $SVN_APRUTIL_INCLUDES -I$serf_prefix/include/$serf_major"
5499     for ac_header in serf.h
5500 do :
5501   ac_fn_c_check_header_mongrel "$LINENO" "serf.h" "ac_cv_header_serf_h" "$ac_includes_default"
5502 if test "x$ac_cv_header_serf_h" = xyes; then :
5503   cat >>confdefs.h <<_ACEOF
5504 #define HAVE_SERF_H 1
5505 _ACEOF
5506
5507       save_ldflags="$LDFLAGS"
5508       LDFLAGS="$LDFLAGS `
5509   input_flags="-L$serf_prefix/lib"
5510   output_flags=""
5511   filtered_dirs="/lib /lib64 /usr/lib /usr/lib64"
5512   for flag in $input_flags; do
5513     filter="no"
5514     for dir in $filtered_dirs; do
5515       if test "$flag" = "-L$dir" || test "$flag" = "-L$dir/"; then
5516         filter="yes"
5517         break
5518       fi
5519     done
5520     if test "$filter" = "no"; then
5521       output_flags="$output_flags $flag"
5522     fi
5523   done
5524   if test -n "$output_flags"; then
5525     printf "%s" "${output_flags# }"
5526   fi
5527 `"
5528       as_ac_Lib=`$as_echo "ac_cv_lib_$serf_major''_serf_context_create" | $as_tr_sh`
5529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for serf_context_create in -l$serf_major" >&5
5530 $as_echo_n "checking for serf_context_create in -l$serf_major... " >&6; }
5531 if eval \${$as_ac_Lib+:} false; then :
5532   $as_echo_n "(cached) " >&6
5533 else
5534   ac_check_lib_save_LIBS=$LIBS
5535 LIBS="-l$serf_major $SVN_APRUTIL_LIBS $SVN_APR_LIBS -lz $LIBS"
5536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5537 /* end confdefs.h.  */
5538
5539 /* Override any GCC internal prototype to avoid an error.
5540    Use char because int might match the return type of a GCC
5541    builtin and then its argument prototype would still apply.  */
5542 #ifdef __cplusplus
5543 extern "C"
5544 #endif
5545 char serf_context_create ();
5546 int
5547 main ()
5548 {
5549 return serf_context_create ();
5550   ;
5551   return 0;
5552 }
5553 _ACEOF
5554 if ac_fn_c_try_link "$LINENO"; then :
5555   eval "$as_ac_Lib=yes"
5556 else
5557   eval "$as_ac_Lib=no"
5558 fi
5559 rm -f core conftest.err conftest.$ac_objext \
5560     conftest$ac_exeext conftest.$ac_ext
5561 LIBS=$ac_check_lib_save_LIBS
5562 fi
5563 eval ac_res=\$$as_ac_Lib
5564                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5565 $as_echo "$ac_res" >&6; }
5566 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
5567
5568         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5569 /* end confdefs.h.  */
5570
5571 #include <stdlib.h>
5572 #include "serf.h"
5573
5574 int
5575 main ()
5576 {
5577
5578 #if ! SERF_VERSION_AT_LEAST($serf_check_major, $serf_check_minor, $serf_check_patch)
5579 #error Serf version too old: need $serf_check_version
5580 #endif
5581
5582   ;
5583   return 0;
5584 }
5585 _ACEOF
5586 if ac_fn_c_try_compile "$LINENO"; then :
5587   serf_found=yes
5588 else
5589   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Serf version too old: need $serf_check_version" >&5
5590 $as_echo "$as_me: WARNING: Serf version too old: need $serf_check_version" >&2;}
5591       serf_found=no
5592 fi
5593 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5594 fi
5595
5596     LDFLAGS="$save_ldflags"
5597 fi
5598
5599 done
5600
5601     CPPFLAGS="$save_cppflags"
5602     test $serf_found = yes && break
5603   done
5604
5605   if test $serf_found = "yes"; then
5606     SVN_SERF_INCLUDES="-I$serf_prefix/include/$serf_major"
5607     if test -e "$serf_prefix/lib/lib$serf_major.la"; then
5608       SVN_SERF_LIBS="$serf_prefix/lib/lib$serf_major.la"
5609     else
5610       SVN_SERF_LIBS="-l$serf_major"
5611       LDFLAGS="$LDFLAGS `
5612   input_flags="-L$serf_prefix/lib"
5613   output_flags=""
5614   filtered_dirs="/lib /lib64 /usr/lib /usr/lib64"
5615   for flag in $input_flags; do
5616     filter="no"
5617     for dir in $filtered_dirs; do
5618       if test "$flag" = "-L$dir" || test "$flag" = "-L$dir/"; then
5619         filter="yes"
5620         break
5621       fi
5622     done
5623     if test "$filter" = "no"; then
5624       output_flags="$output_flags $flag"
5625     fi
5626   done
5627   if test -n "$output_flags"; then
5628     printf "%s" "${output_flags# }"
5629   fi
5630 `"
5631     fi
5632   fi
5633
5634     fi
5635
5636     { $as_echo "$as_me:${as_lineno-$LINENO}: checking was serf enabled" >&5
5637 $as_echo_n "checking was serf enabled... " >&6; }
5638     if test "$serf_found" = "yes"; then
5639       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5640 $as_echo "yes" >&6; }
5641     else
5642       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5643 $as_echo "no" >&6; }
5644
5645   echo ""
5646   echo "An appropriate version of serf could not be found, so libsvn_ra_serf"
5647   echo "will not be built.  If you want to build libsvn_ra_serf, please"
5648   echo "install serf $serf_check_version or newer."
5649   echo ""
5650
5651       if test "$serf_required" = "yes"; then
5652         as_fn_error $? "Serf was explicitly enabled but an appropriate version was not found." "$LINENO" 5
5653       fi
5654     fi
5655   fi
5656
5657   svn_lib_serf=$serf_found
5658
5659
5660
5661
5662
5663 if test "$svn_lib_serf" = "yes"; then
5664
5665 $as_echo "#define SVN_HAVE_SERF 1" >>confdefs.h
5666
5667 fi
5668
5669
5670   apr_memcache_found=no
5671
5672
5673 # Check whether --with-apr_memcache was given.
5674 if test "${with_apr_memcache+set}" = set; then :
5675   withval=$with_apr_memcache;
5676     if test "$withval" = "yes" ; then
5677       as_fn_error $? "--with-apr_memcache requires an argument." "$LINENO" 5
5678     else
5679       { $as_echo "$as_me:${as_lineno-$LINENO}: looking for separate apr_memcache package" >&5
5680 $as_echo "$as_me: looking for separate apr_memcache package" >&6;}
5681       apr_memcache_prefix=$withval
5682       save_cppflags="$CPPFLAGS"
5683       CPPFLAGS="$CPPFLAGS $SVN_APR_INCLUDES $SVN_APRUTIL_INCLUDES -I$apr_memcache_prefix/include/apr_memcache-0"
5684       ac_fn_c_check_header_mongrel "$LINENO" "apr_memcache.h" "ac_cv_header_apr_memcache_h" "$ac_includes_default"
5685 if test "x$ac_cv_header_apr_memcache_h" = xyes; then :
5686
5687         save_ldflags="$LDFLAGS"
5688         LDFLAGS="$LDFLAGS -L$apr_memcache_prefix/lib"
5689         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for apr_memcache_create in -lapr_memcache" >&5
5690 $as_echo_n "checking for apr_memcache_create in -lapr_memcache... " >&6; }
5691 if ${ac_cv_lib_apr_memcache_apr_memcache_create+:} false; then :
5692   $as_echo_n "(cached) " >&6
5693 else
5694   ac_check_lib_save_LIBS=$LIBS
5695 LIBS="-lapr_memcache  $LIBS"
5696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5697 /* end confdefs.h.  */
5698
5699 /* Override any GCC internal prototype to avoid an error.
5700    Use char because int might match the return type of a GCC
5701    builtin and then its argument prototype would still apply.  */
5702 #ifdef __cplusplus
5703 extern "C"
5704 #endif
5705 char apr_memcache_create ();
5706 int
5707 main ()
5708 {
5709 return apr_memcache_create ();
5710   ;
5711   return 0;
5712 }
5713 _ACEOF
5714 if ac_fn_c_try_link "$LINENO"; then :
5715   ac_cv_lib_apr_memcache_apr_memcache_create=yes
5716 else
5717   ac_cv_lib_apr_memcache_apr_memcache_create=no
5718 fi
5719 rm -f core conftest.err conftest.$ac_objext \
5720     conftest$ac_exeext conftest.$ac_ext
5721 LIBS=$ac_check_lib_save_LIBS
5722 fi
5723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_apr_memcache_apr_memcache_create" >&5
5724 $as_echo "$ac_cv_lib_apr_memcache_apr_memcache_create" >&6; }
5725 if test "x$ac_cv_lib_apr_memcache_apr_memcache_create" = xyes; then :
5726   apr_memcache_found="standalone"
5727 fi
5728
5729         LDFLAGS="$save_ldflags"
5730 fi
5731
5732
5733       CPPFLAGS="$save_cppflags"
5734     fi
5735
5736 else
5737
5738     { $as_echo "$as_me:${as_lineno-$LINENO}: looking for apr_memcache as part of apr-util" >&5
5739 $as_echo "$as_me: looking for apr_memcache as part of apr-util" >&6;}
5740     save_cppflags="$CPPFLAGS"
5741     CPPFLAGS="$CPPFLAGS $SVN_APR_INCLUDES $SVN_APRUTIL_INCLUDES"
5742     ac_fn_c_check_header_mongrel "$LINENO" "apr_memcache.h" "ac_cv_header_apr_memcache_h" "$ac_includes_default"
5743 if test "x$ac_cv_header_apr_memcache_h" = xyes; then :
5744
5745       save_ldflags="$LDFLAGS"
5746       LDFLAGS="$LDFLAGS $SVN_APRUTIL_LIBS"
5747       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for apr_memcache_create in -laprutil-1" >&5
5748 $as_echo_n "checking for apr_memcache_create in -laprutil-1... " >&6; }
5749 if ${ac_cv_lib_aprutil_1_apr_memcache_create+:} false; then :
5750   $as_echo_n "(cached) " >&6
5751 else
5752   ac_check_lib_save_LIBS=$LIBS
5753 LIBS="-laprutil-1  $LIBS"
5754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5755 /* end confdefs.h.  */
5756
5757 /* Override any GCC internal prototype to avoid an error.
5758    Use char because int might match the return type of a GCC
5759    builtin and then its argument prototype would still apply.  */
5760 #ifdef __cplusplus
5761 extern "C"
5762 #endif
5763 char apr_memcache_create ();
5764 int
5765 main ()
5766 {
5767 return apr_memcache_create ();
5768   ;
5769   return 0;
5770 }
5771 _ACEOF
5772 if ac_fn_c_try_link "$LINENO"; then :
5773   ac_cv_lib_aprutil_1_apr_memcache_create=yes
5774 else
5775   ac_cv_lib_aprutil_1_apr_memcache_create=no
5776 fi
5777 rm -f core conftest.err conftest.$ac_objext \
5778     conftest$ac_exeext conftest.$ac_ext
5779 LIBS=$ac_check_lib_save_LIBS
5780 fi
5781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_aprutil_1_apr_memcache_create" >&5
5782 $as_echo "$ac_cv_lib_aprutil_1_apr_memcache_create" >&6; }
5783 if test "x$ac_cv_lib_aprutil_1_apr_memcache_create" = xyes; then :
5784   apr_memcache_found="aprutil"
5785 fi
5786
5787       LDFLAGS="$save_ldflags"
5788 fi
5789
5790
5791     CPPFLAGS="$save_cppflags"
5792
5793 fi
5794
5795
5796
5797   if test $apr_memcache_found = "standalone"; then
5798     SVN_APR_MEMCACHE_INCLUDES="-I$apr_memcache_prefix/include/apr_memcache-0"
5799     SVN_APR_MEMCACHE_LIBS="$apr_memcache_prefix/lib/libapr_memcache.la"
5800     svn_lib_apr_memcache=yes
5801   elif test $apr_memcache_found = "aprutil"; then
5802     SVN_APR_MEMCACHE_INCLUDES=""
5803     SVN_APR_MEMCACHE_LIBS=""
5804     svn_lib_apr_memcache=yes
5805   elif test $apr_memcache_found = "reconfig"; then
5806     svn_lib_apr_memcache=yes
5807   else
5808     svn_lib_apr_memcache=no
5809   fi
5810
5811
5812
5813
5814
5815 if test "$svn_lib_apr_memcache" = "yes"; then
5816
5817 $as_echo "#define SVN_HAVE_MEMCACHE 1" >>confdefs.h
5818
5819 fi
5820
5821 # Check whether --enable-apache-whitelist was given.
5822 if test "${enable_apache_whitelist+set}" = set; then :
5823   enableval=$enable_apache_whitelist; apache_whitelist_ver=$enableval
5824 else
5825   apache_whitelist_ver=no
5826 fi
5827
5828 HTTPD_WHITELIST="$apache_whitelist_ver"
5829
5830
5831
5832
5833
5834 HTTPD_WANTED_MMN="20051115"
5835
5836 HTTPD_WHITELIST_VER="$apache_whitelist_ver"
5837
5838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Apache module support via DSO through APXS" >&5
5839 $as_echo_n "checking for Apache module support via DSO through APXS... " >&6; }
5840
5841 # Check whether --with-apxs was given.
5842 if test "${with_apxs+set}" = set; then :
5843   withval=$with_apxs;
5844     if test "$withval" = "yes"; then
5845       APXS=apxs
5846     else
5847       APXS="$withval"
5848     fi
5849     APXS_EXPLICIT=1
5850
5851 fi
5852
5853
5854 if test -z "$APXS"; then
5855   for i in /usr/local/apache2/bin /usr/local/apache/bin /usr/bin /usr/sbin ; do
5856     if test -f "$i/apxs2"; then
5857       APXS="$i/apxs2"
5858       break
5859     fi
5860     if test -f "$i/apxs"; then
5861       APXS="$i/apxs"
5862       break
5863     fi
5864   done
5865 fi
5866
5867 if test -n "$APXS" && test "$APXS" != "no"; then
5868     APXS_INCLUDE="`$APXS -q INCLUDEDIR`"
5869     if test -r $APXS_INCLUDE/mod_dav.h; then
5870         { $as_echo "$as_me:${as_lineno-$LINENO}: result: found at $APXS" >&5
5871 $as_echo "found at $APXS" >&6; }
5872
5873         { $as_echo "$as_me:${as_lineno-$LINENO}: checking httpd version" >&5
5874 $as_echo_n "checking httpd version... " >&6; }
5875         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5876 /* end confdefs.h.  */
5877
5878 #include "$APXS_INCLUDE/ap_mmn.h"
5879 #if AP_MODULE_MAGIC_AT_LEAST($HTTPD_WANTED_MMN,0)
5880 VERSION_OKAY
5881 #endif
5882 _ACEOF
5883 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5884   $EGREP "VERSION_OKAY" >/dev/null 2>&1; then :
5885   { $as_echo "$as_me:${as_lineno-$LINENO}: result: recent enough" >&5
5886 $as_echo "recent enough" >&6; }
5887 else
5888   { $as_echo "$as_me:${as_lineno-$LINENO}: result: apache too old:  mmn must be at least $HTTPD_WANTED_MMN" >&5
5889 $as_echo "apache too old:  mmn must be at least $HTTPD_WANTED_MMN" >&6; }
5890          if test "$APXS_EXPLICIT" != ""; then
5891              as_fn_error $? "Apache APXS build explicitly requested, but apache version is too old" "$LINENO" 5
5892          fi
5893          APXS=""
5894
5895 fi
5896 rm -f conftest*
5897
5898
5899     elif test "$APXS_EXPLICIT" != ""; then
5900         as_fn_error $? "no - APXS refers to an old version of Apache
5901                       Unable to locate $APXS_INCLUDE/mod_dav.h" "$LINENO" 5
5902     else
5903         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no - Unable to locate $APXS_INCLUDE/mod_dav.h" >&5
5904 $as_echo "no - Unable to locate $APXS_INCLUDE/mod_dav.h" >&6; }
5905         APXS=""
5906     fi
5907 else
5908     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5909 $as_echo "no" >&6; }
5910 fi
5911
5912 # check for some busted versions of mod_dav
5913 # in particular 2.2.25, 2.4.5, and 2.4.6 had the following bugs which are
5914 # troublesome for Subversion:
5915 # PR 55304: https://issues.apache.org/bugzilla/show_bug.cgi?id=55304
5916 # PR 55306: https://issues.apache.org/bugzilla/show_bug.cgi?id=55306
5917 # PR 55397: https://issues.apache.org/bugzilla/show_bug.cgi?id=55397
5918 if test -n "$APXS" && test "$APXS" != "no"; then
5919   { $as_echo "$as_me:${as_lineno-$LINENO}: checking mod_dav version" >&5
5920 $as_echo_n "checking mod_dav version... " >&6; }
5921   HTTPD_MAJOR=`$SED -ne '/^#define AP_SERVER_MAJORVERSION_NUMBER/p' "$APXS_INCLUDE/ap_release.h" | $SED -e 's/^.*NUMBER *//'`
5922   HTTPD_MINOR=`$SED -ne '/^#define AP_SERVER_MINORVERSION_NUMBER/p' "$APXS_INCLUDE/ap_release.h" | $SED -e 's/^.*NUMBER *//'`
5923   HTTPD_PATCH=`$SED -ne '/^#define AP_SERVER_PATCHLEVEL_NUMBER/p' "$APXS_INCLUDE/ap_release.h" | $SED -e 's/^.*NUMBER *//'`
5924   HTTPD_VERSION="${HTTPD_MAJOR}.${HTTPD_MINOR}.${HTTPD_PATCH}"
5925   case "$HTTPD_VERSION" in
5926     $HTTPD_WHITELIST_VER)
5927       { $as_echo "$as_me:${as_lineno-$LINENO}: result: acceptable (whitelist)" >&5
5928 $as_echo "acceptable (whitelist)" >&6; }
5929       ;;
5930     2.2.25 | 2.4.[5-6])
5931       { $as_echo "$as_me:${as_lineno-$LINENO}: result: broken" >&5
5932 $as_echo "broken" >&6; }
5933       as_fn_error $? "Apache httpd version $HTTPD_VERSION includes a broken mod_dav; use a newer version of httpd" "$LINENO" 5
5934       ;;
5935     2.[0-9]*.[0-9]*)
5936       { $as_echo "$as_me:${as_lineno-$LINENO}: result: acceptable" >&5
5937 $as_echo "acceptable" >&6; }
5938       ;;
5939     *)
5940       { $as_echo "$as_me:${as_lineno-$LINENO}: result: unrecognised" >&5
5941 $as_echo "unrecognised" >&6; }
5942       as_fn_error $? "Apache httpd version $HTTPD_VERSION not recognised" "$LINENO" 5
5943       ;;
5944   esac
5945 fi
5946
5947 if test -n "$APXS" && test "$APXS" != "no"; then
5948   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Apache version is compatible with APR version" >&5
5949 $as_echo_n "checking whether Apache version is compatible with APR version... " >&6; }
5950   apr_major_version="${apr_version%%.*}"
5951   case "$apr_major_version" in
5952     0)
5953       apache_minor_version_wanted_regex="0"
5954       ;;
5955     1)
5956       apache_minor_version_wanted_regex="[1-5]"
5957       ;;
5958     2)
5959       apache_minor_version_wanted_regex="[3-5]"
5960       ;;
5961     *)
5962       as_fn_error $? "unknown APR version" "$LINENO" 5
5963       ;;
5964   esac
5965   case $HTTPD_MINOR in
5966     $apache_minor_version_wanted_regex)
5967       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5968 $as_echo "yes" >&6; }
5969       ;;
5970     *)
5971       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5972 $as_echo "no" >&6; }
5973       as_fn_error $? "Apache version $HTTPD_VERSION incompatible with APR version $apr_version" "$LINENO" 5
5974       ;;
5975   esac
5976 fi
5977
5978
5979 # Check whether --with-apache-libexecdir was given.
5980 if test "${with_apache_libexecdir+set}" = set; then :
5981   withval=$with_apache_libexecdir; APACHE_LIBEXECDIR="$withval"
5982 else
5983   APACHE_LIBEXECDIR='no'
5984 fi
5985
5986
5987 INSTALL_APACHE_MODS=false
5988 if test -n "$APXS" && test "$APXS" != "no"; then
5989     APXS_CC="`$APXS -q CC`"
5990     APACHE_INCLUDES="$APACHE_INCLUDES -I$APXS_INCLUDE"
5991
5992     if test "$APACHE_LIBEXECDIR" = 'no'; then
5993         APACHE_LIBEXECDIR="$libexecdir"
5994     elif test "$APACHE_LIBEXECDIR" = 'yes'; then
5995         APACHE_LIBEXECDIR="`$APXS -q libexecdir`"
5996     fi
5997
5998     for ac_header in unistd.h
5999 do :
6000   ac_fn_c_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
6001 if test "x$ac_cv_header_unistd_h" = xyes; then :
6002   cat >>confdefs.h <<_ACEOF
6003 #define HAVE_UNISTD_H 1
6004 _ACEOF
6005  for ac_func in getpid
6006 do :
6007   ac_fn_c_check_func "$LINENO" "getpid" "ac_cv_func_getpid"
6008 if test "x$ac_cv_func_getpid" = xyes; then :
6009   cat >>confdefs.h <<_ACEOF
6010 #define HAVE_GETPID 1
6011 _ACEOF
6012
6013 fi
6014 done
6015
6016 fi
6017
6018 done
6019
6020
6021     MMN_MAJOR=`$SED -ne '/^#define MODULE_MAGIC_NUMBER_MAJOR/p' "$APXS_INCLUDE/ap_mmn.h" | $SED -e 's/^.*MAJOR *//'`
6022     MMN_MINOR=`$SED -ne '/^#define MODULE_MAGIC_NUMBER_MINOR/p' "$APXS_INCLUDE/ap_mmn.h" | $SED -e 's/^.*MINOR *//' | $SED -e 's/ .*//'`
6023     if test "$MMN_MAJOR" = "20120211" && test "$MMN_MINOR" -lt "47" ; then
6024       # This is httpd 2.4 and it doesn't appear to have the required
6025       # API but the installation may have been patched.
6026       # Check whether --enable-broken-httpd-auth was given.
6027 if test "${enable_broken_httpd_auth+set}" = set; then :
6028   enableval=$enable_broken_httpd_auth; broken_httpd_auth=$enableval
6029 else
6030   broken_httpd_auth=no
6031 fi
6032
6033       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ap_some_authn_required" >&5
6034 $as_echo_n "checking for ap_some_authn_required... " >&6; }
6035       old_CPPFLAGS="$CPPFLAGS"
6036       CPPFLAGS="$CPPFLAGS $APACHE_INCLUDES $SVN_APR_INCLUDES"
6037       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6038 /* end confdefs.h.  */
6039 #include "http_request.h"
6040 _ACEOF
6041 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6042   $EGREP "int.*\sap_some_authn_required\s*\(" >/dev/null 2>&1; then :
6043   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6044 $as_echo "yes" >&6; }
6045                     working_auth=yes
6046 else
6047   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6048 $as_echo "no" >&6; }
6049 fi
6050 rm -f conftest*
6051
6052       CPPFLAGS="$old_CPPFLAGS"
6053       if test "$working_auth" = "yes" ; then
6054
6055 $as_echo "#define SVN_USE_FORCE_AUTHN 1" >>confdefs.h
6056
6057       elif test "$enable_broken_httpd_auth" = "yes"; then
6058         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ==============================================" >&5
6059 $as_echo "$as_me: WARNING: ==============================================" >&2;}
6060         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Apache httpd $HTTPD_VERSION MMN $MMN_MAJOR.$MMN_MINOR" >&5
6061 $as_echo "$as_me: WARNING: Apache httpd $HTTPD_VERSION MMN $MMN_MAJOR.$MMN_MINOR" >&2;}
6062         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Subversion will be vulnerable to CVE-2015-3184" >&5
6063 $as_echo "$as_me: WARNING: Subversion will be vulnerable to CVE-2015-3184" >&2;}
6064         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ==============================================" >&5
6065 $as_echo "$as_me: WARNING: ==============================================" >&2;}
6066
6067 $as_echo "#define SVN_ALLOW_BROKEN_HTTPD_AUTH 1" >>confdefs.h
6068
6069       else
6070         as_fn_error $? "Apache httpd $HTTPD_VERSION MMN $MMN_MAJOR.$MMN_MINOR has broken auth (CVE-2015-3184)" "$LINENO" 5
6071       fi
6072     fi
6073
6074     BUILD_APACHE_RULE=apache-mod
6075     INSTALL_APACHE_RULE=install-mods-shared
6076     INSTALL_APACHE_MODS=true
6077     case $host in
6078       *-*-cygwin*)
6079         APACHE_LDFLAGS="-shrext .so"
6080         ;;
6081     esac
6082 elif test x"$APXS" != x"no"; then
6083     echo "=================================================================="
6084     echo "WARNING: skipping the build of mod_dav_svn"
6085     echo "         try using --with-apxs"
6086     echo "=================================================================="
6087 fi
6088
6089
6090
6091
6092
6093
6094
6095
6096 # there aren't any flags that interest us ...
6097 #if test -n "$APXS" && test "$APXS" != "no"; then
6098 #  CFLAGS="$CFLAGS `$APXS -q CFLAGS CFLAGS_SHLIB`"
6099 #fi
6100
6101 if test -n "$APXS_CC" && test "$APXS_CC" != "$CC" ; then
6102   echo "=================================================================="
6103   echo "WARNING: You have chosen to compile Subversion with a different"
6104   echo "         compiler than the one used to compile Apache."
6105   echo ""
6106   echo "    Current compiler:      $CC"
6107   echo "   Apache's compiler:      $APXS_CC"
6108   echo ""
6109   echo "This could cause some problems."
6110   echo "=================================================================="
6111 fi
6112
6113
6114
6115 SQLITE_MINIMUM_VER="3.8.2"
6116 SQLITE_RECOMMENDED_VER="3.8.11.1"
6117 SQLITE_RECOMMENDED_VER_REL_YEAR="2015"
6118 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"
6119
6120
6121   SQLITE_MINIMUM_VER="${SQLITE_MINIMUM_VER}"
6122   SQLITE_RECOMMENDED_VER="${SQLITE_RECOMMENDED_VER}"
6123   SQLITE_URL="${SQLITE_URL}"
6124   SQLITE_PKGNAME="sqlite3"
6125
6126
6127
6128   version_string="$SQLITE_MINIMUM_VER"
6129
6130   major=`expr $version_string : '\([0-9]*\)'`
6131   minor=`expr $version_string : '[0-9]*\.\([0-9]*\)'`
6132   micro=`expr $version_string : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
6133   if test -z "$micro"; then
6134     micro=0
6135   fi
6136   sqlite_min_ver_num=`expr $major \* 1000000 \
6137         \+ $minor \* 1000 \
6138         \+ $micro`
6139
6140
6141
6142   { $as_echo "$as_me:${as_lineno-$LINENO}: checking sqlite library" >&5
6143 $as_echo "$as_me: checking sqlite library" >&6;}
6144
6145
6146 # Check whether --with-sqlite was given.
6147 if test "${with_sqlite+set}" = set; then :
6148   withval=$with_sqlite;
6149     if test "$withval" = "yes" ; then
6150       as_fn_error $? "--with-sqlite requires an argument." "$LINENO" 5
6151     else
6152       sqlite_dir="$withval"
6153     fi
6154
6155     if test -d $sqlite_dir; then
6156
6157   if test -z "$sqlite_dir"; then
6158     sqlite_dir=""
6159     sqlite_include="sqlite3.h"
6160   else
6161     sqlite_dir="$sqlite_dir"
6162     sqlite_include="$sqlite_dir/include/sqlite3.h"
6163   fi
6164
6165   save_CPPFLAGS="$CPPFLAGS"
6166   save_LDFLAGS="$LDFLAGS"
6167
6168   if test ! -z "$sqlite_dir"; then
6169     CPPFLAGS="$CPPFLAGS -I$sqlite_dir/include"
6170     LDFLAGS="$LDFLAGS -L$sqlite_dir/lib"
6171   fi
6172
6173   ac_fn_c_check_header_mongrel "$LINENO" "sqlite3.h" "ac_cv_header_sqlite3_h" "$ac_includes_default"
6174 if test "x$ac_cv_header_sqlite3_h" = xyes; then :
6175
6176       { $as_echo "$as_me:${as_lineno-$LINENO}: checking sqlite library version (via header)" >&5
6177 $as_echo_n "checking sqlite library version (via header)... " >&6; }
6178       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6179 /* end confdefs.h.  */
6180
6181 #include "$sqlite_include"
6182 #if SQLITE_VERSION_NUMBER >= $sqlite_min_ver_num
6183 SQLITE_VERSION_OKAY
6184 #endif
6185 _ACEOF
6186 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6187   $EGREP "SQLITE_VERSION_OKAY" >/dev/null 2>&1; then :
6188   { $as_echo "$as_me:${as_lineno-$LINENO}: result: okay" >&5
6189 $as_echo "okay" >&6; }
6190                    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite3_close in -lsqlite3" >&5
6191 $as_echo_n "checking for sqlite3_close in -lsqlite3... " >&6; }
6192 if ${ac_cv_lib_sqlite3_sqlite3_close+:} false; then :
6193   $as_echo_n "(cached) " >&6
6194 else
6195   ac_check_lib_save_LIBS=$LIBS
6196 LIBS="-lsqlite3  $LIBS"
6197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6198 /* end confdefs.h.  */
6199
6200 /* Override any GCC internal prototype to avoid an error.
6201    Use char because int might match the return type of a GCC
6202    builtin and then its argument prototype would still apply.  */
6203 #ifdef __cplusplus
6204 extern "C"
6205 #endif
6206 char sqlite3_close ();
6207 int
6208 main ()
6209 {
6210 return sqlite3_close ();
6211   ;
6212   return 0;
6213 }
6214 _ACEOF
6215 if ac_fn_c_try_link "$LINENO"; then :
6216   ac_cv_lib_sqlite3_sqlite3_close=yes
6217 else
6218   ac_cv_lib_sqlite3_sqlite3_close=no
6219 fi
6220 rm -f core conftest.err conftest.$ac_objext \
6221     conftest$ac_exeext conftest.$ac_ext
6222 LIBS=$ac_check_lib_save_LIBS
6223 fi
6224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_close" >&5
6225 $as_echo "$ac_cv_lib_sqlite3_sqlite3_close" >&6; }
6226 if test "x$ac_cv_lib_sqlite3_sqlite3_close" = xyes; then :
6227
6228                       svn_lib_sqlite="yes"
6229                       if test -z "$sqlite_dir" -o ! -d "$sqlite_dir"; then
6230                         SVN_SQLITE_LIBS="-lsqlite3"
6231                       else
6232                         SVN_SQLITE_INCLUDES="-I$sqlite_dir/include"
6233                         SVN_SQLITE_LIBS="`
6234   input_flags="-L$sqlite_dir/lib -lsqlite3"
6235   output_flags=""
6236   filtered_dirs="/lib /lib64 /usr/lib /usr/lib64"
6237   for flag in $input_flags; do
6238     filter="no"
6239     for dir in $filtered_dirs; do
6240       if test "$flag" = "-L$dir" || test "$flag" = "-L$dir/"; then
6241         filter="yes"
6242         break
6243       fi
6244     done
6245     if test "$filter" = "no"; then
6246       output_flags="$output_flags $flag"
6247     fi
6248   done
6249   if test -n "$output_flags"; then
6250     printf "%s" "${output_flags# }"
6251   fi
6252 `"
6253                       fi
6254
6255 fi
6256
6257 else
6258   { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported SQLite version" >&5
6259 $as_echo "unsupported SQLite version" >&6; }
6260 fi
6261 rm -f conftest*
6262
6263
6264 fi
6265
6266
6267
6268   CPPFLAGS="$save_CPPFLAGS"
6269   LDFLAGS="$save_LDFLAGS"
6270
6271     else
6272
6273   sqlite_amalg="$sqlite_dir"
6274   { $as_echo "$as_me:${as_lineno-$LINENO}: checking sqlite amalgamation" >&5
6275 $as_echo_n "checking sqlite amalgamation... " >&6; }
6276   if test ! -e $sqlite_amalg; then
6277     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6278 $as_echo "no" >&6; }
6279   else
6280     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6281 $as_echo "yes" >&6; }
6282     { $as_echo "$as_me:${as_lineno-$LINENO}: checking sqlite amalgamation file version" >&5
6283 $as_echo_n "checking sqlite amalgamation file version... " >&6; }
6284     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6285 /* end confdefs.h.  */
6286
6287 #include "$sqlite_amalg"
6288 #if SQLITE_VERSION_NUMBER >= $sqlite_min_ver_num
6289 SQLITE_VERSION_OKAY
6290 #endif
6291 _ACEOF
6292 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6293   $EGREP "SQLITE_VERSION_OKAY" >/dev/null 2>&1; then :
6294   { $as_echo "$as_me:${as_lineno-$LINENO}: result: amalgamation found and is okay" >&5
6295 $as_echo "amalgamation found and is okay" >&6; }
6296
6297   case $host_os in
6298   beos* | mingw* | pw32* | cegcc* | cygwin*)
6299     svn_sqlite_dso_ldflags=
6300     ;;
6301
6302   darwin*)
6303   # if libdl is installed we need to link against it
6304     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
6305 $as_echo_n "checking for dlopen in -ldl... " >&6; }
6306 if ${ac_cv_lib_dl_dlopen+:} false; then :
6307   $as_echo_n "(cached) " >&6
6308 else
6309   ac_check_lib_save_LIBS=$LIBS
6310 LIBS="-ldl  $LIBS"
6311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6312 /* end confdefs.h.  */
6313
6314 /* Override any GCC internal prototype to avoid an error.
6315    Use char because int might match the return type of a GCC
6316    builtin and then its argument prototype would still apply.  */
6317 #ifdef __cplusplus
6318 extern "C"
6319 #endif
6320 char dlopen ();
6321 int
6322 main ()
6323 {
6324 return dlopen ();
6325   ;
6326   return 0;
6327 }
6328 _ACEOF
6329 if ac_fn_c_try_link "$LINENO"; then :
6330   ac_cv_lib_dl_dlopen=yes
6331 else
6332   ac_cv_lib_dl_dlopen=no
6333 fi
6334 rm -f core conftest.err conftest.$ac_objext \
6335     conftest$ac_exeext conftest.$ac_ext
6336 LIBS=$ac_check_lib_save_LIBS
6337 fi
6338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
6339 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
6340 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
6341   lt_cv_dlopen="dlopen" svn_sqlite_dso_ldflags="-ldl"
6342 else
6343
6344     svn_sqlite_dso_ldflags=
6345
6346 fi
6347
6348     ;;
6349
6350   *)
6351     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
6352 if test "x$ac_cv_func_shl_load" = xyes; then :
6353   svn_sqlite_dso_ldflags=
6354 else
6355   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
6356 $as_echo_n "checking for shl_load in -ldld... " >&6; }
6357 if ${ac_cv_lib_dld_shl_load+:} false; then :
6358   $as_echo_n "(cached) " >&6
6359 else
6360   ac_check_lib_save_LIBS=$LIBS
6361 LIBS="-ldld  $LIBS"
6362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6363 /* end confdefs.h.  */
6364
6365 /* Override any GCC internal prototype to avoid an error.
6366    Use char because int might match the return type of a GCC
6367    builtin and then its argument prototype would still apply.  */
6368 #ifdef __cplusplus
6369 extern "C"
6370 #endif
6371 char shl_load ();
6372 int
6373 main ()
6374 {
6375 return shl_load ();
6376   ;
6377   return 0;
6378 }
6379 _ACEOF
6380 if ac_fn_c_try_link "$LINENO"; then :
6381   ac_cv_lib_dld_shl_load=yes
6382 else
6383   ac_cv_lib_dld_shl_load=no
6384 fi
6385 rm -f core conftest.err conftest.$ac_objext \
6386     conftest$ac_exeext conftest.$ac_ext
6387 LIBS=$ac_check_lib_save_LIBS
6388 fi
6389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
6390 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
6391 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
6392   svn_sqlite_dso_ldflags="-ldld"
6393 else
6394   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
6395 if test "x$ac_cv_func_dlopen" = xyes; then :
6396   svn_sqlite_dso_ldflags=
6397 else
6398   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
6399 $as_echo_n "checking for dlopen in -ldl... " >&6; }
6400 if ${ac_cv_lib_dl_dlopen+:} false; then :
6401   $as_echo_n "(cached) " >&6
6402 else
6403   ac_check_lib_save_LIBS=$LIBS
6404 LIBS="-ldl  $LIBS"
6405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6406 /* end confdefs.h.  */
6407
6408 /* Override any GCC internal prototype to avoid an error.
6409    Use char because int might match the return type of a GCC
6410    builtin and then its argument prototype would still apply.  */
6411 #ifdef __cplusplus
6412 extern "C"
6413 #endif
6414 char dlopen ();
6415 int
6416 main ()
6417 {
6418 return dlopen ();
6419   ;
6420   return 0;
6421 }
6422 _ACEOF
6423 if ac_fn_c_try_link "$LINENO"; then :
6424   ac_cv_lib_dl_dlopen=yes
6425 else
6426   ac_cv_lib_dl_dlopen=no
6427 fi
6428 rm -f core conftest.err conftest.$ac_objext \
6429     conftest$ac_exeext conftest.$ac_ext
6430 LIBS=$ac_check_lib_save_LIBS
6431 fi
6432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
6433 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
6434 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
6435   svn_sqlite_dso_ldflags="-ldl"
6436 else
6437   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
6438 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
6439 if ${ac_cv_lib_svld_dlopen+:} false; then :
6440   $as_echo_n "(cached) " >&6
6441 else
6442   ac_check_lib_save_LIBS=$LIBS
6443 LIBS="-lsvld  $LIBS"
6444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6445 /* end confdefs.h.  */
6446
6447 /* Override any GCC internal prototype to avoid an error.
6448    Use char because int might match the return type of a GCC
6449    builtin and then its argument prototype would still apply.  */
6450 #ifdef __cplusplus
6451 extern "C"
6452 #endif
6453 char dlopen ();
6454 int
6455 main ()
6456 {
6457 return dlopen ();
6458   ;
6459   return 0;
6460 }
6461 _ACEOF
6462 if ac_fn_c_try_link "$LINENO"; then :
6463   ac_cv_lib_svld_dlopen=yes
6464 else
6465   ac_cv_lib_svld_dlopen=no
6466 fi
6467 rm -f core conftest.err conftest.$ac_objext \
6468     conftest$ac_exeext conftest.$ac_ext
6469 LIBS=$ac_check_lib_save_LIBS
6470 fi
6471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
6472 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
6473 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
6474   svn_sqlite_dso_ldflags="-lsvld"
6475 else
6476   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
6477 $as_echo_n "checking for dld_link in -ldld... " >&6; }
6478 if ${ac_cv_lib_dld_dld_link+:} false; then :
6479   $as_echo_n "(cached) " >&6
6480 else
6481   ac_check_lib_save_LIBS=$LIBS
6482 LIBS="-ldld  $LIBS"
6483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6484 /* end confdefs.h.  */
6485
6486 /* Override any GCC internal prototype to avoid an error.
6487    Use char because int might match the return type of a GCC
6488    builtin and then its argument prototype would still apply.  */
6489 #ifdef __cplusplus
6490 extern "C"
6491 #endif
6492 char dld_link ();
6493 int
6494 main ()
6495 {
6496 return dld_link ();
6497   ;
6498   return 0;
6499 }
6500 _ACEOF
6501 if ac_fn_c_try_link "$LINENO"; then :
6502   ac_cv_lib_dld_dld_link=yes
6503 else
6504   ac_cv_lib_dld_dld_link=no
6505 fi
6506 rm -f core conftest.err conftest.$ac_objext \
6507     conftest$ac_exeext conftest.$ac_ext
6508 LIBS=$ac_check_lib_save_LIBS
6509 fi
6510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
6511 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
6512 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
6513   svn_sqlite_dso_ldflags="-ldld"
6514 fi
6515
6516
6517 fi
6518
6519
6520 fi
6521
6522
6523 fi
6524
6525
6526 fi
6527
6528
6529 fi
6530
6531     ;;
6532   esac
6533
6534   { $as_echo "$as_me:${as_lineno-$LINENO}: checking additional libraries for sqlite" >&5
6535 $as_echo_n "checking additional libraries for sqlite... " >&6; }
6536   if test -n "$svn_sqlite_dso_ldflags"; then
6537     { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${svn_sqlite_dso_ldflags}" >&5
6538 $as_echo "${svn_sqlite_dso_ldflags}" >&6; }
6539   else
6540     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6541 $as_echo "none" >&6; }
6542   fi
6543
6544
6545 $as_echo "#define SVN_SQLITE_INLINE 1" >>confdefs.h
6546
6547                   SVN_SQLITE_INCLUDES="-I`dirname $sqlite_amalg`"
6548                   if test -n "$svn_sqlite_dso_ldflags"; then
6549                     SVN_SQLITE_LIBS="$svn_sqlite_dso_ldflags -lpthread"
6550                   else
6551                     SVN_SQLITE_LIBS="-lpthread"
6552                   fi
6553                   svn_lib_sqlite="yes"
6554 else
6555   { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported amalgamation SQLite version" >&5
6556 $as_echo "unsupported amalgamation SQLite version" >&6; }
6557 fi
6558 rm -f conftest*
6559
6560   fi
6561
6562     fi
6563
6564     if test -z "$svn_lib_sqlite"; then
6565       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no suitable sqlite found in $sqlite_dir" >&5
6566 $as_echo "$as_me: WARNING: no suitable sqlite found in $sqlite_dir" >&2;}
6567
6568   echo ""
6569   echo "An appropriate version of sqlite could not be found.  We recommmend"
6570   echo "${SQLITE_RECOMMENDED_VER}, but require at least ${SQLITE_MINIMUM_VER}."
6571   echo "Please either install a newer sqlite on this system"
6572   echo ""
6573   echo "or"
6574   echo ""
6575   echo "get the sqlite ${SQLITE_RECOMMENDED_VER} amalgamation from:"
6576   echo "    ${SQLITE_URL}"
6577   echo "unpack the archive using unzip and rename the resulting"
6578   echo "directory to:"
6579   echo "$abs_srcdir/sqlite-amalgamation"
6580   if test x"$abs_srcdir" != x"$abs_builddir"; then
6581     echo "or to:"
6582     echo "$abs_builddir/sqlite-amalgamation"
6583   fi
6584   echo ""
6585   as_fn_error $? "Subversion requires SQLite" "$LINENO" 5
6586
6587     fi
6588
6589 else
6590
6591
6592   sqlite_amalg="$abs_srcdir/sqlite-amalgamation/sqlite3.c"
6593   { $as_echo "$as_me:${as_lineno-$LINENO}: checking sqlite amalgamation" >&5
6594 $as_echo_n "checking sqlite amalgamation... " >&6; }
6595   if test ! -e $sqlite_amalg; then
6596     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6597 $as_echo "no" >&6; }
6598   else
6599     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6600 $as_echo "yes" >&6; }
6601     { $as_echo "$as_me:${as_lineno-$LINENO}: checking sqlite amalgamation file version" >&5
6602 $as_echo_n "checking sqlite amalgamation file version... " >&6; }
6603     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6604 /* end confdefs.h.  */
6605
6606 #include "$sqlite_amalg"
6607 #if SQLITE_VERSION_NUMBER >= $sqlite_min_ver_num
6608 SQLITE_VERSION_OKAY
6609 #endif
6610 _ACEOF
6611 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6612   $EGREP "SQLITE_VERSION_OKAY" >/dev/null 2>&1; then :
6613   { $as_echo "$as_me:${as_lineno-$LINENO}: result: amalgamation found and is okay" >&5
6614 $as_echo "amalgamation found and is okay" >&6; }
6615
6616   case $host_os in
6617   beos* | mingw* | pw32* | cegcc* | cygwin*)
6618     svn_sqlite_dso_ldflags=
6619     ;;
6620
6621   darwin*)
6622   # if libdl is installed we need to link against it
6623     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
6624 $as_echo_n "checking for dlopen in -ldl... " >&6; }
6625 if ${ac_cv_lib_dl_dlopen+:} false; then :
6626   $as_echo_n "(cached) " >&6
6627 else
6628   ac_check_lib_save_LIBS=$LIBS
6629 LIBS="-ldl  $LIBS"
6630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6631 /* end confdefs.h.  */
6632
6633 /* Override any GCC internal prototype to avoid an error.
6634    Use char because int might match the return type of a GCC
6635    builtin and then its argument prototype would still apply.  */
6636 #ifdef __cplusplus
6637 extern "C"
6638 #endif
6639 char dlopen ();
6640 int
6641 main ()
6642 {
6643 return dlopen ();
6644   ;
6645   return 0;
6646 }
6647 _ACEOF
6648 if ac_fn_c_try_link "$LINENO"; then :
6649   ac_cv_lib_dl_dlopen=yes
6650 else
6651   ac_cv_lib_dl_dlopen=no
6652 fi
6653 rm -f core conftest.err conftest.$ac_objext \
6654     conftest$ac_exeext conftest.$ac_ext
6655 LIBS=$ac_check_lib_save_LIBS
6656 fi
6657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
6658 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
6659 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
6660   lt_cv_dlopen="dlopen" svn_sqlite_dso_ldflags="-ldl"
6661 else
6662
6663     svn_sqlite_dso_ldflags=
6664
6665 fi
6666
6667     ;;
6668
6669   *)
6670     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
6671 if test "x$ac_cv_func_shl_load" = xyes; then :
6672   svn_sqlite_dso_ldflags=
6673 else
6674   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
6675 $as_echo_n "checking for shl_load in -ldld... " >&6; }
6676 if ${ac_cv_lib_dld_shl_load+:} false; then :
6677   $as_echo_n "(cached) " >&6
6678 else
6679   ac_check_lib_save_LIBS=$LIBS
6680 LIBS="-ldld  $LIBS"
6681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6682 /* end confdefs.h.  */
6683
6684 /* Override any GCC internal prototype to avoid an error.
6685    Use char because int might match the return type of a GCC
6686    builtin and then its argument prototype would still apply.  */
6687 #ifdef __cplusplus
6688 extern "C"
6689 #endif
6690 char shl_load ();
6691 int
6692 main ()
6693 {
6694 return shl_load ();
6695   ;
6696   return 0;
6697 }
6698 _ACEOF
6699 if ac_fn_c_try_link "$LINENO"; then :
6700   ac_cv_lib_dld_shl_load=yes
6701 else
6702   ac_cv_lib_dld_shl_load=no
6703 fi
6704 rm -f core conftest.err conftest.$ac_objext \
6705     conftest$ac_exeext conftest.$ac_ext
6706 LIBS=$ac_check_lib_save_LIBS
6707 fi
6708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
6709 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
6710 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
6711   svn_sqlite_dso_ldflags="-ldld"
6712 else
6713   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
6714 if test "x$ac_cv_func_dlopen" = xyes; then :
6715   svn_sqlite_dso_ldflags=
6716 else
6717   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
6718 $as_echo_n "checking for dlopen in -ldl... " >&6; }
6719 if ${ac_cv_lib_dl_dlopen+:} false; then :
6720   $as_echo_n "(cached) " >&6
6721 else
6722   ac_check_lib_save_LIBS=$LIBS
6723 LIBS="-ldl  $LIBS"
6724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6725 /* end confdefs.h.  */
6726
6727 /* Override any GCC internal prototype to avoid an error.
6728    Use char because int might match the return type of a GCC
6729    builtin and then its argument prototype would still apply.  */
6730 #ifdef __cplusplus
6731 extern "C"
6732 #endif
6733 char dlopen ();
6734 int
6735 main ()
6736 {
6737 return dlopen ();
6738   ;
6739   return 0;
6740 }
6741 _ACEOF
6742 if ac_fn_c_try_link "$LINENO"; then :
6743   ac_cv_lib_dl_dlopen=yes
6744 else
6745   ac_cv_lib_dl_dlopen=no
6746 fi
6747 rm -f core conftest.err conftest.$ac_objext \
6748     conftest$ac_exeext conftest.$ac_ext
6749 LIBS=$ac_check_lib_save_LIBS
6750 fi
6751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
6752 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
6753 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
6754   svn_sqlite_dso_ldflags="-ldl"
6755 else
6756   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
6757 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
6758 if ${ac_cv_lib_svld_dlopen+:} false; then :
6759   $as_echo_n "(cached) " >&6
6760 else
6761   ac_check_lib_save_LIBS=$LIBS
6762 LIBS="-lsvld  $LIBS"
6763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6764 /* end confdefs.h.  */
6765
6766 /* Override any GCC internal prototype to avoid an error.
6767    Use char because int might match the return type of a GCC
6768    builtin and then its argument prototype would still apply.  */
6769 #ifdef __cplusplus
6770 extern "C"
6771 #endif
6772 char dlopen ();
6773 int
6774 main ()
6775 {
6776 return dlopen ();
6777   ;
6778   return 0;
6779 }
6780 _ACEOF
6781 if ac_fn_c_try_link "$LINENO"; then :
6782   ac_cv_lib_svld_dlopen=yes
6783 else
6784   ac_cv_lib_svld_dlopen=no
6785 fi
6786 rm -f core conftest.err conftest.$ac_objext \
6787     conftest$ac_exeext conftest.$ac_ext
6788 LIBS=$ac_check_lib_save_LIBS
6789 fi
6790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
6791 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
6792 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
6793   svn_sqlite_dso_ldflags="-lsvld"
6794 else
6795   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
6796 $as_echo_n "checking for dld_link in -ldld... " >&6; }
6797 if ${ac_cv_lib_dld_dld_link+:} false; then :
6798   $as_echo_n "(cached) " >&6
6799 else
6800   ac_check_lib_save_LIBS=$LIBS
6801 LIBS="-ldld  $LIBS"
6802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6803 /* end confdefs.h.  */
6804
6805 /* Override any GCC internal prototype to avoid an error.
6806    Use char because int might match the return type of a GCC
6807    builtin and then its argument prototype would still apply.  */
6808 #ifdef __cplusplus
6809 extern "C"
6810 #endif
6811 char dld_link ();
6812 int
6813 main ()
6814 {
6815 return dld_link ();
6816   ;
6817   return 0;
6818 }
6819 _ACEOF
6820 if ac_fn_c_try_link "$LINENO"; then :
6821   ac_cv_lib_dld_dld_link=yes
6822 else
6823   ac_cv_lib_dld_dld_link=no
6824 fi
6825 rm -f core conftest.err conftest.$ac_objext \
6826     conftest$ac_exeext conftest.$ac_ext
6827 LIBS=$ac_check_lib_save_LIBS
6828 fi
6829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
6830 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
6831 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
6832   svn_sqlite_dso_ldflags="-ldld"
6833 fi
6834
6835
6836 fi
6837
6838
6839 fi
6840
6841
6842 fi
6843
6844
6845 fi
6846
6847
6848 fi
6849
6850     ;;
6851   esac
6852
6853   { $as_echo "$as_me:${as_lineno-$LINENO}: checking additional libraries for sqlite" >&5
6854 $as_echo_n "checking additional libraries for sqlite... " >&6; }
6855   if test -n "$svn_sqlite_dso_ldflags"; then
6856     { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${svn_sqlite_dso_ldflags}" >&5
6857 $as_echo "${svn_sqlite_dso_ldflags}" >&6; }
6858   else
6859     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6860 $as_echo "none" >&6; }
6861   fi
6862
6863
6864 $as_echo "#define SVN_SQLITE_INLINE 1" >>confdefs.h
6865
6866                   SVN_SQLITE_INCLUDES="-I`dirname $sqlite_amalg`"
6867                   if test -n "$svn_sqlite_dso_ldflags"; then
6868                     SVN_SQLITE_LIBS="$svn_sqlite_dso_ldflags -lpthread"
6869                   else
6870                     SVN_SQLITE_LIBS="-lpthread"
6871                   fi
6872                   svn_lib_sqlite="yes"
6873 else
6874   { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported amalgamation SQLite version" >&5
6875 $as_echo "unsupported amalgamation SQLite version" >&6; }
6876 fi
6877 rm -f conftest*
6878
6879   fi
6880
6881
6882     if test -z "$svn_lib_sqlite"; then
6883
6884   sqlite_amalg="$abs_builddir/sqlite-amalgamation/sqlite3.c"
6885   { $as_echo "$as_me:${as_lineno-$LINENO}: checking sqlite amalgamation" >&5
6886 $as_echo_n "checking sqlite amalgamation... " >&6; }
6887   if test ! -e $sqlite_amalg; then
6888     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6889 $as_echo "no" >&6; }
6890   else
6891     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6892 $as_echo "yes" >&6; }
6893     { $as_echo "$as_me:${as_lineno-$LINENO}: checking sqlite amalgamation file version" >&5
6894 $as_echo_n "checking sqlite amalgamation file version... " >&6; }
6895     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6896 /* end confdefs.h.  */
6897
6898 #include "$sqlite_amalg"
6899 #if SQLITE_VERSION_NUMBER >= $sqlite_min_ver_num
6900 SQLITE_VERSION_OKAY
6901 #endif
6902 _ACEOF
6903 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6904   $EGREP "SQLITE_VERSION_OKAY" >/dev/null 2>&1; then :
6905   { $as_echo "$as_me:${as_lineno-$LINENO}: result: amalgamation found and is okay" >&5
6906 $as_echo "amalgamation found and is okay" >&6; }
6907
6908   case $host_os in
6909   beos* | mingw* | pw32* | cegcc* | cygwin*)
6910     svn_sqlite_dso_ldflags=
6911     ;;
6912
6913   darwin*)
6914   # if libdl is installed we need to link against it
6915     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
6916 $as_echo_n "checking for dlopen in -ldl... " >&6; }
6917 if ${ac_cv_lib_dl_dlopen+:} false; then :
6918   $as_echo_n "(cached) " >&6
6919 else
6920   ac_check_lib_save_LIBS=$LIBS
6921 LIBS="-ldl  $LIBS"
6922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6923 /* end confdefs.h.  */
6924
6925 /* Override any GCC internal prototype to avoid an error.
6926    Use char because int might match the return type of a GCC
6927    builtin and then its argument prototype would still apply.  */
6928 #ifdef __cplusplus
6929 extern "C"
6930 #endif
6931 char dlopen ();
6932 int
6933 main ()
6934 {
6935 return dlopen ();
6936   ;
6937   return 0;
6938 }
6939 _ACEOF
6940 if ac_fn_c_try_link "$LINENO"; then :
6941   ac_cv_lib_dl_dlopen=yes
6942 else
6943   ac_cv_lib_dl_dlopen=no
6944 fi
6945 rm -f core conftest.err conftest.$ac_objext \
6946     conftest$ac_exeext conftest.$ac_ext
6947 LIBS=$ac_check_lib_save_LIBS
6948 fi
6949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
6950 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
6951 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
6952   lt_cv_dlopen="dlopen" svn_sqlite_dso_ldflags="-ldl"
6953 else
6954
6955     svn_sqlite_dso_ldflags=
6956
6957 fi
6958
6959     ;;
6960
6961   *)
6962     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
6963 if test "x$ac_cv_func_shl_load" = xyes; then :
6964   svn_sqlite_dso_ldflags=
6965 else
6966   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
6967 $as_echo_n "checking for shl_load in -ldld... " >&6; }
6968 if ${ac_cv_lib_dld_shl_load+:} false; then :
6969   $as_echo_n "(cached) " >&6
6970 else
6971   ac_check_lib_save_LIBS=$LIBS
6972 LIBS="-ldld  $LIBS"
6973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6974 /* end confdefs.h.  */
6975
6976 /* Override any GCC internal prototype to avoid an error.
6977    Use char because int might match the return type of a GCC
6978    builtin and then its argument prototype would still apply.  */
6979 #ifdef __cplusplus
6980 extern "C"
6981 #endif
6982 char shl_load ();
6983 int
6984 main ()
6985 {
6986 return shl_load ();
6987   ;
6988   return 0;
6989 }
6990 _ACEOF
6991 if ac_fn_c_try_link "$LINENO"; then :
6992   ac_cv_lib_dld_shl_load=yes
6993 else
6994   ac_cv_lib_dld_shl_load=no
6995 fi
6996 rm -f core conftest.err conftest.$ac_objext \
6997     conftest$ac_exeext conftest.$ac_ext
6998 LIBS=$ac_check_lib_save_LIBS
6999 fi
7000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
7001 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
7002 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
7003   svn_sqlite_dso_ldflags="-ldld"
7004 else
7005   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
7006 if test "x$ac_cv_func_dlopen" = xyes; then :
7007   svn_sqlite_dso_ldflags=
7008 else
7009   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
7010 $as_echo_n "checking for dlopen in -ldl... " >&6; }
7011 if ${ac_cv_lib_dl_dlopen+:} false; then :
7012   $as_echo_n "(cached) " >&6
7013 else
7014   ac_check_lib_save_LIBS=$LIBS
7015 LIBS="-ldl  $LIBS"
7016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7017 /* end confdefs.h.  */
7018
7019 /* Override any GCC internal prototype to avoid an error.
7020    Use char because int might match the return type of a GCC
7021    builtin and then its argument prototype would still apply.  */
7022 #ifdef __cplusplus
7023 extern "C"
7024 #endif
7025 char dlopen ();
7026 int
7027 main ()
7028 {
7029 return dlopen ();
7030   ;
7031   return 0;
7032 }
7033 _ACEOF
7034 if ac_fn_c_try_link "$LINENO"; then :
7035   ac_cv_lib_dl_dlopen=yes
7036 else
7037   ac_cv_lib_dl_dlopen=no
7038 fi
7039 rm -f core conftest.err conftest.$ac_objext \
7040     conftest$ac_exeext conftest.$ac_ext
7041 LIBS=$ac_check_lib_save_LIBS
7042 fi
7043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
7044 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
7045 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
7046   svn_sqlite_dso_ldflags="-ldl"
7047 else
7048   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
7049 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
7050 if ${ac_cv_lib_svld_dlopen+:} false; then :
7051   $as_echo_n "(cached) " >&6
7052 else
7053   ac_check_lib_save_LIBS=$LIBS
7054 LIBS="-lsvld  $LIBS"
7055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7056 /* end confdefs.h.  */
7057
7058 /* Override any GCC internal prototype to avoid an error.
7059    Use char because int might match the return type of a GCC
7060    builtin and then its argument prototype would still apply.  */
7061 #ifdef __cplusplus
7062 extern "C"
7063 #endif
7064 char dlopen ();
7065 int
7066 main ()
7067 {
7068 return dlopen ();
7069   ;
7070   return 0;
7071 }
7072 _ACEOF
7073 if ac_fn_c_try_link "$LINENO"; then :
7074   ac_cv_lib_svld_dlopen=yes
7075 else
7076   ac_cv_lib_svld_dlopen=no
7077 fi
7078 rm -f core conftest.err conftest.$ac_objext \
7079     conftest$ac_exeext conftest.$ac_ext
7080 LIBS=$ac_check_lib_save_LIBS
7081 fi
7082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
7083 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
7084 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
7085   svn_sqlite_dso_ldflags="-lsvld"
7086 else
7087   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
7088 $as_echo_n "checking for dld_link in -ldld... " >&6; }
7089 if ${ac_cv_lib_dld_dld_link+:} false; then :
7090   $as_echo_n "(cached) " >&6
7091 else
7092   ac_check_lib_save_LIBS=$LIBS
7093 LIBS="-ldld  $LIBS"
7094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7095 /* end confdefs.h.  */
7096
7097 /* Override any GCC internal prototype to avoid an error.
7098    Use char because int might match the return type of a GCC
7099    builtin and then its argument prototype would still apply.  */
7100 #ifdef __cplusplus
7101 extern "C"
7102 #endif
7103 char dld_link ();
7104 int
7105 main ()
7106 {
7107 return dld_link ();
7108   ;
7109   return 0;
7110 }
7111 _ACEOF
7112 if ac_fn_c_try_link "$LINENO"; then :
7113   ac_cv_lib_dld_dld_link=yes
7114 else
7115   ac_cv_lib_dld_dld_link=no
7116 fi
7117 rm -f core conftest.err conftest.$ac_objext \
7118     conftest$ac_exeext conftest.$ac_ext
7119 LIBS=$ac_check_lib_save_LIBS
7120 fi
7121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
7122 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
7123 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
7124   svn_sqlite_dso_ldflags="-ldld"
7125 fi
7126
7127
7128 fi
7129
7130
7131 fi
7132
7133
7134 fi
7135
7136
7137 fi
7138
7139
7140 fi
7141
7142     ;;
7143   esac
7144
7145   { $as_echo "$as_me:${as_lineno-$LINENO}: checking additional libraries for sqlite" >&5
7146 $as_echo_n "checking additional libraries for sqlite... " >&6; }
7147   if test -n "$svn_sqlite_dso_ldflags"; then
7148     { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${svn_sqlite_dso_ldflags}" >&5
7149 $as_echo "${svn_sqlite_dso_ldflags}" >&6; }
7150   else
7151     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
7152 $as_echo "none" >&6; }
7153   fi
7154
7155
7156 $as_echo "#define SVN_SQLITE_INLINE 1" >>confdefs.h
7157
7158                   SVN_SQLITE_INCLUDES="-I`dirname $sqlite_amalg`"
7159                   if test -n "$svn_sqlite_dso_ldflags"; then
7160                     SVN_SQLITE_LIBS="$svn_sqlite_dso_ldflags -lpthread"
7161                   else
7162                     SVN_SQLITE_LIBS="-lpthread"
7163                   fi
7164                   svn_lib_sqlite="yes"
7165 else
7166   { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported amalgamation SQLite version" >&5
7167 $as_echo "unsupported amalgamation SQLite version" >&6; }
7168 fi
7169 rm -f conftest*
7170
7171   fi
7172
7173     fi
7174
7175     if test -z "$svn_lib_sqlite"; then
7176
7177   if test -z ""; then
7178     sqlite_dir=""
7179     sqlite_include="sqlite3.h"
7180   else
7181     sqlite_dir=""
7182     sqlite_include="/include/sqlite3.h"
7183   fi
7184
7185   save_CPPFLAGS="$CPPFLAGS"
7186   save_LDFLAGS="$LDFLAGS"
7187
7188   if test ! -z ""; then
7189     CPPFLAGS="$CPPFLAGS -I$sqlite_dir/include"
7190     LDFLAGS="$LDFLAGS -L$sqlite_dir/lib"
7191   fi
7192
7193   ac_fn_c_check_header_mongrel "$LINENO" "sqlite3.h" "ac_cv_header_sqlite3_h" "$ac_includes_default"
7194 if test "x$ac_cv_header_sqlite3_h" = xyes; then :
7195
7196       { $as_echo "$as_me:${as_lineno-$LINENO}: checking sqlite library version (via header)" >&5
7197 $as_echo_n "checking sqlite library version (via header)... " >&6; }
7198       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7199 /* end confdefs.h.  */
7200
7201 #include "$sqlite_include"
7202 #if SQLITE_VERSION_NUMBER >= $sqlite_min_ver_num
7203 SQLITE_VERSION_OKAY
7204 #endif
7205 _ACEOF
7206 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7207   $EGREP "SQLITE_VERSION_OKAY" >/dev/null 2>&1; then :
7208   { $as_echo "$as_me:${as_lineno-$LINENO}: result: okay" >&5
7209 $as_echo "okay" >&6; }
7210                    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite3_close in -lsqlite3" >&5
7211 $as_echo_n "checking for sqlite3_close in -lsqlite3... " >&6; }
7212 if ${ac_cv_lib_sqlite3_sqlite3_close+:} false; then :
7213   $as_echo_n "(cached) " >&6
7214 else
7215   ac_check_lib_save_LIBS=$LIBS
7216 LIBS="-lsqlite3  $LIBS"
7217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7218 /* end confdefs.h.  */
7219
7220 /* Override any GCC internal prototype to avoid an error.
7221    Use char because int might match the return type of a GCC
7222    builtin and then its argument prototype would still apply.  */
7223 #ifdef __cplusplus
7224 extern "C"
7225 #endif
7226 char sqlite3_close ();
7227 int
7228 main ()
7229 {
7230 return sqlite3_close ();
7231   ;
7232   return 0;
7233 }
7234 _ACEOF
7235 if ac_fn_c_try_link "$LINENO"; then :
7236   ac_cv_lib_sqlite3_sqlite3_close=yes
7237 else
7238   ac_cv_lib_sqlite3_sqlite3_close=no
7239 fi
7240 rm -f core conftest.err conftest.$ac_objext \
7241     conftest$ac_exeext conftest.$ac_ext
7242 LIBS=$ac_check_lib_save_LIBS
7243 fi
7244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_close" >&5
7245 $as_echo "$ac_cv_lib_sqlite3_sqlite3_close" >&6; }
7246 if test "x$ac_cv_lib_sqlite3_sqlite3_close" = xyes; then :
7247
7248                       svn_lib_sqlite="yes"
7249                       if test -z "$sqlite_dir" -o ! -d "$sqlite_dir"; then
7250                         SVN_SQLITE_LIBS="-lsqlite3"
7251                       else
7252                         SVN_SQLITE_INCLUDES="-I$sqlite_dir/include"
7253                         SVN_SQLITE_LIBS="`
7254   input_flags="-L$sqlite_dir/lib -lsqlite3"
7255   output_flags=""
7256   filtered_dirs="/lib /lib64 /usr/lib /usr/lib64"
7257   for flag in $input_flags; do
7258     filter="no"
7259     for dir in $filtered_dirs; do
7260       if test "$flag" = "-L$dir" || test "$flag" = "-L$dir/"; then
7261         filter="yes"
7262         break
7263       fi
7264     done
7265     if test "$filter" = "no"; then
7266       output_flags="$output_flags $flag"
7267     fi
7268   done
7269   if test -n "$output_flags"; then
7270     printf "%s" "${output_flags# }"
7271   fi
7272 `"
7273                       fi
7274
7275 fi
7276
7277 else
7278   { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported SQLite version" >&5
7279 $as_echo "unsupported SQLite version" >&6; }
7280 fi
7281 rm -f conftest*
7282
7283
7284 fi
7285
7286
7287
7288   CPPFLAGS="$save_CPPFLAGS"
7289   LDFLAGS="$save_LDFLAGS"
7290
7291     fi
7292
7293     if test -z "$svn_lib_sqlite"; then
7294
7295     if test -n "$PKG_CONFIG"; then
7296       { $as_echo "$as_me:${as_lineno-$LINENO}: checking sqlite library version (via pkg-config)" >&5
7297 $as_echo_n "checking sqlite library version (via pkg-config)... " >&6; }
7298       sqlite_version=`$PKG_CONFIG $SQLITE_PKGNAME --modversion --silence-errors`
7299
7300       if test -n "$sqlite_version"; then
7301
7302   version_string="$sqlite_version"
7303
7304   major=`expr $version_string : '\([0-9]*\)'`
7305   minor=`expr $version_string : '[0-9]*\.\([0-9]*\)'`
7306   micro=`expr $version_string : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
7307   if test -z "$micro"; then
7308     micro=0
7309   fi
7310   sqlite_ver_num=`expr $major \* 1000000 \
7311         \+ $minor \* 1000 \
7312         \+ $micro`
7313
7314
7315         if test "$sqlite_ver_num" -ge "$sqlite_min_ver_num"; then
7316           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sqlite_version" >&5
7317 $as_echo "$sqlite_version" >&6; }
7318           svn_lib_sqlite="yes"
7319           SVN_SQLITE_INCLUDES="`$PKG_CONFIG $SQLITE_PKGNAME --cflags`"
7320           SVN_SQLITE_LIBS="`$PKG_CONFIG $SQLITE_PKGNAME --libs`"
7321         else
7322           { $as_echo "$as_me:${as_lineno-$LINENO}: result: none or unsupported $sqlite_version" >&5
7323 $as_echo "none or unsupported $sqlite_version" >&6; }
7324         fi
7325       fi
7326     fi
7327
7328     if test -z "$svn_lib_sqlite"; then
7329       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7330 $as_echo "no" >&6; }
7331     fi
7332
7333     fi
7334
7335     if test -z "$svn_lib_sqlite"; then
7336
7337   echo ""
7338   echo "An appropriate version of sqlite could not be found.  We recommmend"
7339   echo "${SQLITE_RECOMMENDED_VER}, but require at least ${SQLITE_MINIMUM_VER}."
7340   echo "Please either install a newer sqlite on this system"
7341   echo ""
7342   echo "or"
7343   echo ""
7344   echo "get the sqlite ${SQLITE_RECOMMENDED_VER} amalgamation from:"
7345   echo "    ${SQLITE_URL}"
7346   echo "unpack the archive using unzip and rename the resulting"
7347   echo "directory to:"
7348   echo "$abs_srcdir/sqlite-amalgamation"
7349   if test x"$abs_srcdir" != x"$abs_builddir"; then
7350     echo "or to:"
7351     echo "$abs_builddir/sqlite-amalgamation"
7352   fi
7353   echo ""
7354   as_fn_error $? "Subversion requires SQLite" "$LINENO" 5
7355
7356     fi
7357
7358 fi
7359
7360
7361
7362
7363
7364
7365 # Check whether --enable-sqlite-compatibility-version was given.
7366 if test "${enable_sqlite_compatibility_version+set}" = set; then :
7367   enableval=$enable_sqlite_compatibility_version; sqlite_compat_ver=$enableval
7368 else
7369   sqlite_compat_ver=no
7370 fi
7371
7372
7373 if test -n "$sqlite_compat_ver" && test "$sqlite_compat_ver" != no; then
7374
7375   version_string="$sqlite_compat_ver"
7376
7377   major=`expr $version_string : '\([0-9]*\)'`
7378   minor=`expr $version_string : '[0-9]*\.\([0-9]*\)'`
7379   micro=`expr $version_string : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
7380   if test -z "$micro"; then
7381     micro=0
7382   fi
7383   sqlite_compat_ver_num=`expr $major \* 1000000 \
7384         \+ $minor \* 1000 \
7385         \+ $micro`
7386
7387   CFLAGS="-DSVN_SQLITE_MIN_VERSION='\"$sqlite_compat_ver\"' $CFLAGS"
7388   CFLAGS="-DSVN_SQLITE_MIN_VERSION_NUMBER=$sqlite_compat_ver_num $CFLAGS"
7389 fi
7390
7391
7392   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler provides atomic builtins" >&5
7393 $as_echo_n "checking whether the compiler provides atomic builtins... " >&6; }
7394 if ${svn_cv_atomic_builtins+:} false; then :
7395   $as_echo_n "(cached) " >&6
7396 else
7397   if test "$cross_compiling" = yes; then :
7398   svn_cv_atomic_builtins=no
7399 else
7400   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7401 /* end confdefs.h.  */
7402
7403   int main()
7404   {
7405       unsigned long long val = 1010, tmp, *mem = &val;
7406
7407       if (__sync_fetch_and_add(&val, 1010) != 1010 || val != 2020)
7408           return 1;
7409
7410       tmp = val;
7411
7412       if (__sync_fetch_and_sub(mem, 1010) != tmp || val != 1010)
7413           return 1;
7414
7415       if (__sync_sub_and_fetch(&val, 1010) != 0 || val != 0)
7416           return 1;
7417
7418       tmp = 3030;
7419
7420       if (__sync_val_compare_and_swap(mem, 0, tmp) != 0 || val != tmp)
7421           return 1;
7422
7423       if (__sync_lock_test_and_set(&val, 4040) != 3030)
7424           return 1;
7425
7426       mem = &tmp;
7427
7428       if (__sync_val_compare_and_swap(&mem, &tmp, &val) != &tmp)
7429           return 1;
7430
7431       __sync_synchronize();
7432
7433       if (mem != &val)
7434           return 1;
7435
7436       return 0;
7437   }
7438 _ACEOF
7439 if ac_fn_c_try_run "$LINENO"; then :
7440   svn_cv_atomic_builtins=yes
7441 else
7442   svn_cv_atomic_builtins=no
7443 fi
7444 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7445   conftest.$ac_objext conftest.beam conftest.$ac_ext
7446 fi
7447
7448 fi
7449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $svn_cv_atomic_builtins" >&5
7450 $as_echo "$svn_cv_atomic_builtins" >&6; }
7451
7452 if test "$svn_cv_atomic_builtins" = "yes"; then
7453
7454 $as_echo "#define SVN_HAS_ATOMIC_BUILTINS 1" >>confdefs.h
7455
7456 fi
7457
7458
7459 if test "${bindir}" = '${exec_prefix}/bin'; then
7460         if test "${exec_prefix}" = "NONE"; then
7461                 if test "${prefix}" = "NONE"; then
7462                         SVN_BINDIR="${ac_default_prefix}/bin"
7463                 else
7464                         SVN_BINDIR="${prefix}/bin"
7465                 fi
7466         else
7467                 SVN_BINDIR="${exec_prefix}/bin"
7468         fi
7469 else
7470         SVN_BINDIR="${bindir}"
7471 fi
7472
7473 SVN_BINDIR="`eval echo ${SVN_BINDIR}`"
7474
7475
7476
7477 cat >>confdefs.h <<_ACEOF
7478 #define SVN_BINDIR "${SVN_BINDIR}"
7479 _ACEOF
7480
7481
7482 localedir='${datadir}/locale'
7483
7484
7485 if test "${prefix}" = "NONE" \
7486   && ( test "${datadir}" = '${prefix}/share' \
7487        || ( test "${datadir}" = '${datarootdir}' \
7488             && test "${datarootdir}" = '${prefix}/share' ) ); then
7489   exp_localedir='${ac_default_prefix}/share/locale'
7490 else
7491   exp_localedir=$localedir
7492 fi
7493
7494 svn_last=
7495 svn_cur=""${exp_localedir}""
7496 while test "x${svn_cur}" != "x${svn_last}";
7497 do
7498   svn_last="${svn_cur}"
7499   svn_cur=`eval "echo ${svn_cur}"`
7500 done
7501 svn_localedir="${svn_cur}"
7502
7503
7504 cat >>confdefs.h <<_ACEOF
7505 #define SVN_LOCALE_DIR "${svn_localedir}"
7506 _ACEOF
7507
7508
7509 { $as_echo "$as_me:${as_lineno-$LINENO}: configuring libtool now" >&5
7510 $as_echo "$as_me: configuring libtool now" >&6;}
7511 case `pwd` in
7512   *\ * | *\     *)
7513     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
7514 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
7515 esac
7516
7517
7518
7519 macro_version='2.4.6'
7520 macro_revision='2.4.6'
7521
7522
7523
7524
7525
7526
7527
7528
7529
7530
7531
7532
7533
7534 ltmain=$ac_aux_dir/ltmain.sh
7535
7536 # Backslashify metacharacters that are still active within
7537 # double-quoted strings.
7538 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7539
7540 # Same as above, but do not quote variable references.
7541 double_quote_subst='s/\(["`\\]\)/\\\1/g'
7542
7543 # Sed substitution to delay expansion of an escaped shell variable in a
7544 # double_quote_subst'ed string.
7545 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7546
7547 # Sed substitution to delay expansion of an escaped single quote.
7548 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7549
7550 # Sed substitution to avoid accidental globbing in evaled expressions
7551 no_glob_subst='s/\*/\\\*/g'
7552
7553 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7554 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
7555 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
7556
7557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
7558 $as_echo_n "checking how to print strings... " >&6; }
7559 # Test print first, because it will be a builtin if present.
7560 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
7561    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
7562   ECHO='print -r --'
7563 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
7564   ECHO='printf %s\n'
7565 else
7566   # Use this function as a fallback that always works.
7567   func_fallback_echo ()
7568   {
7569     eval 'cat <<_LTECHO_EOF
7570 $1
7571 _LTECHO_EOF'
7572   }
7573   ECHO='func_fallback_echo'
7574 fi
7575
7576 # func_echo_all arg...
7577 # Invoke $ECHO with all args, space-separated.
7578 func_echo_all ()
7579 {
7580     $ECHO ""
7581 }
7582
7583 case $ECHO in
7584   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
7585 $as_echo "printf" >&6; } ;;
7586   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
7587 $as_echo "print -r" >&6; } ;;
7588   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
7589 $as_echo "cat" >&6; } ;;
7590 esac
7591
7592
7593
7594
7595
7596
7597
7598
7599
7600
7601
7602
7603
7604
7605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
7606 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
7607 if ${ac_cv_path_SED+:} false; then :
7608   $as_echo_n "(cached) " >&6
7609 else
7610             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
7611      for ac_i in 1 2 3 4 5 6 7; do
7612        ac_script="$ac_script$as_nl$ac_script"
7613      done
7614      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
7615      { ac_script=; unset ac_script;}
7616      if test -z "$SED"; then
7617   ac_path_SED_found=false
7618   # Loop through the user's path and test for each of PROGNAME-LIST
7619   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7620 for as_dir in $PATH
7621 do
7622   IFS=$as_save_IFS
7623   test -z "$as_dir" && as_dir=.
7624     for ac_prog in sed gsed; do
7625     for ac_exec_ext in '' $ac_executable_extensions; do
7626       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
7627       as_fn_executable_p "$ac_path_SED" || continue
7628 # Check for GNU ac_path_SED and select it if it is found.
7629   # Check for GNU $ac_path_SED
7630 case `"$ac_path_SED" --version 2>&1` in
7631 *GNU*)
7632   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
7633 *)
7634   ac_count=0
7635   $as_echo_n 0123456789 >"conftest.in"
7636   while :
7637   do
7638     cat "conftest.in" "conftest.in" >"conftest.tmp"
7639     mv "conftest.tmp" "conftest.in"
7640     cp "conftest.in" "conftest.nl"
7641     $as_echo '' >> "conftest.nl"
7642     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
7643     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7644     as_fn_arith $ac_count + 1 && ac_count=$as_val
7645     if test $ac_count -gt ${ac_path_SED_max-0}; then
7646       # Best one so far, save it but keep looking for a better one
7647       ac_cv_path_SED="$ac_path_SED"
7648       ac_path_SED_max=$ac_count
7649     fi
7650     # 10*(2^10) chars as input seems more than enough
7651     test $ac_count -gt 10 && break
7652   done
7653   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7654 esac
7655
7656       $ac_path_SED_found && break 3
7657     done
7658   done
7659   done
7660 IFS=$as_save_IFS
7661   if test -z "$ac_cv_path_SED"; then
7662     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
7663   fi
7664 else
7665   ac_cv_path_SED=$SED
7666 fi
7667
7668 fi
7669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
7670 $as_echo "$ac_cv_path_SED" >&6; }
7671  SED="$ac_cv_path_SED"
7672   rm -f conftest.sed
7673
7674 test -z "$SED" && SED=sed
7675 Xsed="$SED -e 1s/^X//"
7676
7677
7678
7679
7680
7681
7682
7683
7684
7685
7686
7687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
7688 $as_echo_n "checking for fgrep... " >&6; }
7689 if ${ac_cv_path_FGREP+:} false; then :
7690   $as_echo_n "(cached) " >&6
7691 else
7692   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
7693    then ac_cv_path_FGREP="$GREP -F"
7694    else
7695      if test -z "$FGREP"; then
7696   ac_path_FGREP_found=false
7697   # Loop through the user's path and test for each of PROGNAME-LIST
7698   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7699 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7700 do
7701   IFS=$as_save_IFS
7702   test -z "$as_dir" && as_dir=.
7703     for ac_prog in fgrep; do
7704     for ac_exec_ext in '' $ac_executable_extensions; do
7705       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
7706       as_fn_executable_p "$ac_path_FGREP" || continue
7707 # Check for GNU ac_path_FGREP and select it if it is found.
7708   # Check for GNU $ac_path_FGREP
7709 case `"$ac_path_FGREP" --version 2>&1` in
7710 *GNU*)
7711   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
7712 *)
7713   ac_count=0
7714   $as_echo_n 0123456789 >"conftest.in"
7715   while :
7716   do
7717     cat "conftest.in" "conftest.in" >"conftest.tmp"
7718     mv "conftest.tmp" "conftest.in"
7719     cp "conftest.in" "conftest.nl"
7720     $as_echo 'FGREP' >> "conftest.nl"
7721     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
7722     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7723     as_fn_arith $ac_count + 1 && ac_count=$as_val
7724     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
7725       # Best one so far, save it but keep looking for a better one
7726       ac_cv_path_FGREP="$ac_path_FGREP"
7727       ac_path_FGREP_max=$ac_count
7728     fi
7729     # 10*(2^10) chars as input seems more than enough
7730     test $ac_count -gt 10 && break
7731   done
7732   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7733 esac
7734
7735       $ac_path_FGREP_found && break 3
7736     done
7737   done
7738   done
7739 IFS=$as_save_IFS
7740   if test -z "$ac_cv_path_FGREP"; then
7741     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7742   fi
7743 else
7744   ac_cv_path_FGREP=$FGREP
7745 fi
7746
7747    fi
7748 fi
7749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
7750 $as_echo "$ac_cv_path_FGREP" >&6; }
7751  FGREP="$ac_cv_path_FGREP"
7752
7753
7754 test -z "$GREP" && GREP=grep
7755
7756
7757
7758
7759
7760
7761
7762
7763
7764
7765
7766
7767
7768
7769
7770
7771
7772
7773
7774 # Check whether --with-gnu-ld was given.
7775 if test "${with_gnu_ld+set}" = set; then :
7776   withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
7777 else
7778   with_gnu_ld=no
7779 fi
7780
7781 ac_prog=ld
7782 if test yes = "$GCC"; then
7783   # Check if gcc -print-prog-name=ld gives a path.
7784   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7785 $as_echo_n "checking for ld used by $CC... " >&6; }
7786   case $host in
7787   *-*-mingw*)
7788     # gcc leaves a trailing carriage return, which upsets mingw
7789     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7790   *)
7791     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7792   esac
7793   case $ac_prog in
7794     # Accept absolute paths.
7795     [\\/]* | ?:[\\/]*)
7796       re_direlt='/[^/][^/]*/\.\./'
7797       # Canonicalize the pathname of ld
7798       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
7799       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
7800         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
7801       done
7802       test -z "$LD" && LD=$ac_prog
7803       ;;
7804   "")
7805     # If it fails, then pretend we aren't using GCC.
7806     ac_prog=ld
7807     ;;
7808   *)
7809     # If it is relative, then search for the first ld in PATH.
7810     with_gnu_ld=unknown
7811     ;;
7812   esac
7813 elif test yes = "$with_gnu_ld"; then
7814   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7815 $as_echo_n "checking for GNU ld... " >&6; }
7816 else
7817   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7818 $as_echo_n "checking for non-GNU ld... " >&6; }
7819 fi
7820 if ${lt_cv_path_LD+:} false; then :
7821   $as_echo_n "(cached) " >&6
7822 else
7823   if test -z "$LD"; then
7824   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
7825   for ac_dir in $PATH; do
7826     IFS=$lt_save_ifs
7827     test -z "$ac_dir" && ac_dir=.
7828     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7829       lt_cv_path_LD=$ac_dir/$ac_prog
7830       # Check to see if the program is GNU ld.  I'd rather use --version,
7831       # but apparently some variants of GNU ld only accept -v.
7832       # Break only if it was the GNU/non-GNU ld that we prefer.
7833       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7834       *GNU* | *'with BFD'*)
7835         test no != "$with_gnu_ld" && break
7836         ;;
7837       *)
7838         test yes != "$with_gnu_ld" && break
7839         ;;
7840       esac
7841     fi
7842   done
7843   IFS=$lt_save_ifs
7844 else
7845   lt_cv_path_LD=$LD # Let the user override the test with a path.
7846 fi
7847 fi
7848
7849 LD=$lt_cv_path_LD
7850 if test -n "$LD"; then
7851   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7852 $as_echo "$LD" >&6; }
7853 else
7854   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7855 $as_echo "no" >&6; }
7856 fi
7857 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
7858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7859 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7860 if ${lt_cv_prog_gnu_ld+:} false; then :
7861   $as_echo_n "(cached) " >&6
7862 else
7863   # I'd rather use --version here, but apparently some GNU lds only accept -v.
7864 case `$LD -v 2>&1 </dev/null` in
7865 *GNU* | *'with BFD'*)
7866   lt_cv_prog_gnu_ld=yes
7867   ;;
7868 *)
7869   lt_cv_prog_gnu_ld=no
7870   ;;
7871 esac
7872 fi
7873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
7874 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
7875 with_gnu_ld=$lt_cv_prog_gnu_ld
7876
7877
7878
7879
7880
7881
7882
7883
7884
7885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
7886 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
7887 if ${lt_cv_path_NM+:} false; then :
7888   $as_echo_n "(cached) " >&6
7889 else
7890   if test -n "$NM"; then
7891   # Let the user override the test.
7892   lt_cv_path_NM=$NM
7893 else
7894   lt_nm_to_check=${ac_tool_prefix}nm
7895   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
7896     lt_nm_to_check="$lt_nm_to_check nm"
7897   fi
7898   for lt_tmp_nm in $lt_nm_to_check; do
7899     lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
7900     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
7901       IFS=$lt_save_ifs
7902       test -z "$ac_dir" && ac_dir=.
7903       tmp_nm=$ac_dir/$lt_tmp_nm
7904       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
7905         # Check to see if the nm accepts a BSD-compat flag.
7906         # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
7907         #   nm: unknown option "B" ignored
7908         # Tru64's nm complains that /dev/null is an invalid object file
7909         # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
7910         case $build_os in
7911         mingw*) lt_bad_file=conftest.nm/nofile ;;
7912         *) lt_bad_file=/dev/null ;;
7913         esac
7914         case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
7915         *$lt_bad_file* | *'Invalid file or object type'*)
7916           lt_cv_path_NM="$tmp_nm -B"
7917           break 2
7918           ;;
7919         *)
7920           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
7921           */dev/null*)
7922             lt_cv_path_NM="$tmp_nm -p"
7923             break 2
7924             ;;
7925           *)
7926             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
7927             continue # so that we can try to find one that supports BSD flags
7928             ;;
7929           esac
7930           ;;
7931         esac
7932       fi
7933     done
7934     IFS=$lt_save_ifs
7935   done
7936   : ${lt_cv_path_NM=no}
7937 fi
7938 fi
7939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
7940 $as_echo "$lt_cv_path_NM" >&6; }
7941 if test no != "$lt_cv_path_NM"; then
7942   NM=$lt_cv_path_NM
7943 else
7944   # Didn't find any BSD compatible name lister, look for dumpbin.
7945   if test -n "$DUMPBIN"; then :
7946     # Let the user override the test.
7947   else
7948     if test -n "$ac_tool_prefix"; then
7949   for ac_prog in dumpbin "link -dump"
7950   do
7951     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7952 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7954 $as_echo_n "checking for $ac_word... " >&6; }
7955 if ${ac_cv_prog_DUMPBIN+:} false; then :
7956   $as_echo_n "(cached) " >&6
7957 else
7958   if test -n "$DUMPBIN"; then
7959   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
7960 else
7961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7962 for as_dir in $PATH
7963 do
7964   IFS=$as_save_IFS
7965   test -z "$as_dir" && as_dir=.
7966     for ac_exec_ext in '' $ac_executable_extensions; do
7967   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7968     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
7969     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7970     break 2
7971   fi
7972 done
7973   done
7974 IFS=$as_save_IFS
7975
7976 fi
7977 fi
7978 DUMPBIN=$ac_cv_prog_DUMPBIN
7979 if test -n "$DUMPBIN"; then
7980   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
7981 $as_echo "$DUMPBIN" >&6; }
7982 else
7983   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7984 $as_echo "no" >&6; }
7985 fi
7986
7987
7988     test -n "$DUMPBIN" && break
7989   done
7990 fi
7991 if test -z "$DUMPBIN"; then
7992   ac_ct_DUMPBIN=$DUMPBIN
7993   for ac_prog in dumpbin "link -dump"
7994 do
7995   # Extract the first word of "$ac_prog", so it can be a program name with args.
7996 set dummy $ac_prog; ac_word=$2
7997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7998 $as_echo_n "checking for $ac_word... " >&6; }
7999 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
8000   $as_echo_n "(cached) " >&6
8001 else
8002   if test -n "$ac_ct_DUMPBIN"; then
8003   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
8004 else
8005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8006 for as_dir in $PATH
8007 do
8008   IFS=$as_save_IFS
8009   test -z "$as_dir" && as_dir=.
8010     for ac_exec_ext in '' $ac_executable_extensions; do
8011   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8012     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
8013     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8014     break 2
8015   fi
8016 done
8017   done
8018 IFS=$as_save_IFS
8019
8020 fi
8021 fi
8022 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
8023 if test -n "$ac_ct_DUMPBIN"; then
8024   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
8025 $as_echo "$ac_ct_DUMPBIN" >&6; }
8026 else
8027   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8028 $as_echo "no" >&6; }
8029 fi
8030
8031
8032   test -n "$ac_ct_DUMPBIN" && break
8033 done
8034
8035   if test "x$ac_ct_DUMPBIN" = x; then
8036     DUMPBIN=":"
8037   else
8038     case $cross_compiling:$ac_tool_warned in
8039 yes:)
8040 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8041 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8042 ac_tool_warned=yes ;;
8043 esac
8044     DUMPBIN=$ac_ct_DUMPBIN
8045   fi
8046 fi
8047
8048     case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
8049     *COFF*)
8050       DUMPBIN="$DUMPBIN -symbols -headers"
8051       ;;
8052     *)
8053       DUMPBIN=:
8054       ;;
8055     esac
8056   fi
8057
8058   if test : != "$DUMPBIN"; then
8059     NM=$DUMPBIN
8060   fi
8061 fi
8062 test -z "$NM" && NM=nm
8063
8064
8065
8066
8067
8068
8069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
8070 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
8071 if ${lt_cv_nm_interface+:} false; then :
8072   $as_echo_n "(cached) " >&6
8073 else
8074   lt_cv_nm_interface="BSD nm"
8075   echo "int some_variable = 0;" > conftest.$ac_ext
8076   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
8077   (eval "$ac_compile" 2>conftest.err)
8078   cat conftest.err >&5
8079   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
8080   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
8081   cat conftest.err >&5
8082   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
8083   cat conftest.out >&5
8084   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
8085     lt_cv_nm_interface="MS dumpbin"
8086   fi
8087   rm -f conftest*
8088 fi
8089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
8090 $as_echo "$lt_cv_nm_interface" >&6; }
8091
8092 # find the maximum length of command line arguments
8093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
8094 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
8095 if ${lt_cv_sys_max_cmd_len+:} false; then :
8096   $as_echo_n "(cached) " >&6
8097 else
8098     i=0
8099   teststring=ABCD
8100
8101   case $build_os in
8102   msdosdjgpp*)
8103     # On DJGPP, this test can blow up pretty badly due to problems in libc
8104     # (any single argument exceeding 2000 bytes causes a buffer overrun
8105     # during glob expansion).  Even if it were fixed, the result of this
8106     # check would be larger than it should be.
8107     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
8108     ;;
8109
8110   gnu*)
8111     # Under GNU Hurd, this test is not required because there is
8112     # no limit to the length of command line arguments.
8113     # Libtool will interpret -1 as no limit whatsoever
8114     lt_cv_sys_max_cmd_len=-1;
8115     ;;
8116
8117   cygwin* | mingw* | cegcc*)
8118     # On Win9x/ME, this test blows up -- it succeeds, but takes
8119     # about 5 minutes as the teststring grows exponentially.
8120     # Worse, since 9x/ME are not pre-emptively multitasking,
8121     # you end up with a "frozen" computer, even though with patience
8122     # the test eventually succeeds (with a max line length of 256k).
8123     # Instead, let's just punt: use the minimum linelength reported by
8124     # all of the supported platforms: 8192 (on NT/2K/XP).
8125     lt_cv_sys_max_cmd_len=8192;
8126     ;;
8127
8128   mint*)
8129     # On MiNT this can take a long time and run out of memory.
8130     lt_cv_sys_max_cmd_len=8192;
8131     ;;
8132
8133   amigaos*)
8134     # On AmigaOS with pdksh, this test takes hours, literally.
8135     # So we just punt and use a minimum line length of 8192.
8136     lt_cv_sys_max_cmd_len=8192;
8137     ;;
8138
8139   bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
8140     # This has been around since 386BSD, at least.  Likely further.
8141     if test -x /sbin/sysctl; then
8142       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
8143     elif test -x /usr/sbin/sysctl; then
8144       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
8145     else
8146       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
8147     fi
8148     # And add a safety zone
8149     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
8150     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
8151     ;;
8152
8153   interix*)
8154     # We know the value 262144 and hardcode it with a safety zone (like BSD)
8155     lt_cv_sys_max_cmd_len=196608
8156     ;;
8157
8158   os2*)
8159     # The test takes a long time on OS/2.
8160     lt_cv_sys_max_cmd_len=8192
8161     ;;
8162
8163   osf*)
8164     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
8165     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
8166     # nice to cause kernel panics so lets avoid the loop below.
8167     # First set a reasonable default.
8168     lt_cv_sys_max_cmd_len=16384
8169     #
8170     if test -x /sbin/sysconfig; then
8171       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
8172         *1*) lt_cv_sys_max_cmd_len=-1 ;;
8173       esac
8174     fi
8175     ;;
8176   sco3.2v5*)
8177     lt_cv_sys_max_cmd_len=102400
8178     ;;
8179   sysv5* | sco5v6* | sysv4.2uw2*)
8180     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
8181     if test -n "$kargmax"; then
8182       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
8183     else
8184       lt_cv_sys_max_cmd_len=32768
8185     fi
8186     ;;
8187   *)
8188     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
8189     if test -n "$lt_cv_sys_max_cmd_len" && \
8190        test undefined != "$lt_cv_sys_max_cmd_len"; then
8191       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
8192       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
8193     else
8194       # Make teststring a little bigger before we do anything with it.
8195       # a 1K string should be a reasonable start.
8196       for i in 1 2 3 4 5 6 7 8; do
8197         teststring=$teststring$teststring
8198       done
8199       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
8200       # If test is not a shell built-in, we'll probably end up computing a
8201       # maximum length that is only half of the actual maximum length, but
8202       # we can't tell.
8203       while { test X`env echo "$teststring$teststring" 2>/dev/null` \
8204                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
8205               test 17 != "$i" # 1/2 MB should be enough
8206       do
8207         i=`expr $i + 1`
8208         teststring=$teststring$teststring
8209       done
8210       # Only check the string length outside the loop.
8211       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
8212       teststring=
8213       # Add a significant safety factor because C++ compilers can tack on
8214       # massive amounts of additional arguments before passing them to the
8215       # linker.  It appears as though 1/2 is a usable value.
8216       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
8217     fi
8218     ;;
8219   esac
8220
8221 fi
8222
8223 if test -n "$lt_cv_sys_max_cmd_len"; then
8224   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
8225 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
8226 else
8227   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
8228 $as_echo "none" >&6; }
8229 fi
8230 max_cmd_len=$lt_cv_sys_max_cmd_len
8231
8232
8233
8234
8235
8236
8237 : ${CP="cp -f"}
8238 : ${MV="mv -f"}
8239 : ${RM="rm -f"}
8240
8241 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
8242   lt_unset=unset
8243 else
8244   lt_unset=false
8245 fi
8246
8247
8248
8249
8250
8251 # test EBCDIC or ASCII
8252 case `echo X|tr X '\101'` in
8253  A) # ASCII based system
8254     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
8255   lt_SP2NL='tr \040 \012'
8256   lt_NL2SP='tr \015\012 \040\040'
8257   ;;
8258  *) # EBCDIC based system
8259   lt_SP2NL='tr \100 \n'
8260   lt_NL2SP='tr \r\n \100\100'
8261   ;;
8262 esac
8263
8264
8265
8266
8267
8268
8269
8270
8271
8272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
8273 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
8274 if ${lt_cv_to_host_file_cmd+:} false; then :
8275   $as_echo_n "(cached) " >&6
8276 else
8277   case $host in
8278   *-*-mingw* )
8279     case $build in
8280       *-*-mingw* ) # actually msys
8281         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
8282         ;;
8283       *-*-cygwin* )
8284         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
8285         ;;
8286       * ) # otherwise, assume *nix
8287         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
8288         ;;
8289     esac
8290     ;;
8291   *-*-cygwin* )
8292     case $build in
8293       *-*-mingw* ) # actually msys
8294         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
8295         ;;
8296       *-*-cygwin* )
8297         lt_cv_to_host_file_cmd=func_convert_file_noop
8298         ;;
8299       * ) # otherwise, assume *nix
8300         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
8301         ;;
8302     esac
8303     ;;
8304   * ) # unhandled hosts (and "normal" native builds)
8305     lt_cv_to_host_file_cmd=func_convert_file_noop
8306     ;;
8307 esac
8308
8309 fi
8310
8311 to_host_file_cmd=$lt_cv_to_host_file_cmd
8312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
8313 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
8314
8315
8316
8317
8318
8319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
8320 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
8321 if ${lt_cv_to_tool_file_cmd+:} false; then :
8322   $as_echo_n "(cached) " >&6
8323 else
8324   #assume ordinary cross tools, or native build.
8325 lt_cv_to_tool_file_cmd=func_convert_file_noop
8326 case $host in
8327   *-*-mingw* )
8328     case $build in
8329       *-*-mingw* ) # actually msys
8330         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
8331         ;;
8332     esac
8333     ;;
8334 esac
8335
8336 fi
8337
8338 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
8339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
8340 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
8341
8342
8343
8344
8345
8346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
8347 $as_echo_n "checking for $LD option to reload object files... " >&6; }
8348 if ${lt_cv_ld_reload_flag+:} false; then :
8349   $as_echo_n "(cached) " >&6
8350 else
8351   lt_cv_ld_reload_flag='-r'
8352 fi
8353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
8354 $as_echo "$lt_cv_ld_reload_flag" >&6; }
8355 reload_flag=$lt_cv_ld_reload_flag
8356 case $reload_flag in
8357 "" | " "*) ;;
8358 *) reload_flag=" $reload_flag" ;;
8359 esac
8360 reload_cmds='$LD$reload_flag -o $output$reload_objs'
8361 case $host_os in
8362   cygwin* | mingw* | pw32* | cegcc*)
8363     if test yes != "$GCC"; then
8364       reload_cmds=false
8365     fi
8366     ;;
8367   darwin*)
8368     if test yes = "$GCC"; then
8369       reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
8370     else
8371       reload_cmds='$LD$reload_flag -o $output$reload_objs'
8372     fi
8373     ;;
8374 esac
8375
8376
8377
8378
8379
8380
8381
8382
8383
8384 if test -n "$ac_tool_prefix"; then
8385   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
8386 set dummy ${ac_tool_prefix}objdump; ac_word=$2
8387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8388 $as_echo_n "checking for $ac_word... " >&6; }
8389 if ${ac_cv_prog_OBJDUMP+:} false; then :
8390   $as_echo_n "(cached) " >&6
8391 else
8392   if test -n "$OBJDUMP"; then
8393   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
8394 else
8395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8396 for as_dir in $PATH
8397 do
8398   IFS=$as_save_IFS
8399   test -z "$as_dir" && as_dir=.
8400     for ac_exec_ext in '' $ac_executable_extensions; do
8401   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8402     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
8403     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8404     break 2
8405   fi
8406 done
8407   done
8408 IFS=$as_save_IFS
8409
8410 fi
8411 fi
8412 OBJDUMP=$ac_cv_prog_OBJDUMP
8413 if test -n "$OBJDUMP"; then
8414   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
8415 $as_echo "$OBJDUMP" >&6; }
8416 else
8417   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8418 $as_echo "no" >&6; }
8419 fi
8420
8421
8422 fi
8423 if test -z "$ac_cv_prog_OBJDUMP"; then
8424   ac_ct_OBJDUMP=$OBJDUMP
8425   # Extract the first word of "objdump", so it can be a program name with args.
8426 set dummy objdump; ac_word=$2
8427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8428 $as_echo_n "checking for $ac_word... " >&6; }
8429 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
8430   $as_echo_n "(cached) " >&6
8431 else
8432   if test -n "$ac_ct_OBJDUMP"; then
8433   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
8434 else
8435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8436 for as_dir in $PATH
8437 do
8438   IFS=$as_save_IFS
8439   test -z "$as_dir" && as_dir=.
8440     for ac_exec_ext in '' $ac_executable_extensions; do
8441   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8442     ac_cv_prog_ac_ct_OBJDUMP="objdump"
8443     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8444     break 2
8445   fi
8446 done
8447   done
8448 IFS=$as_save_IFS
8449
8450 fi
8451 fi
8452 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
8453 if test -n "$ac_ct_OBJDUMP"; then
8454   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
8455 $as_echo "$ac_ct_OBJDUMP" >&6; }
8456 else
8457   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8458 $as_echo "no" >&6; }
8459 fi
8460
8461   if test "x$ac_ct_OBJDUMP" = x; then
8462     OBJDUMP="false"
8463   else
8464     case $cross_compiling:$ac_tool_warned in
8465 yes:)
8466 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8467 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8468 ac_tool_warned=yes ;;
8469 esac
8470     OBJDUMP=$ac_ct_OBJDUMP
8471   fi
8472 else
8473   OBJDUMP="$ac_cv_prog_OBJDUMP"
8474 fi
8475
8476 test -z "$OBJDUMP" && OBJDUMP=objdump
8477
8478
8479
8480
8481
8482
8483
8484
8485
8486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
8487 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
8488 if ${lt_cv_deplibs_check_method+:} false; then :
8489   $as_echo_n "(cached) " >&6
8490 else
8491   lt_cv_file_magic_cmd='$MAGIC_CMD'
8492 lt_cv_file_magic_test_file=
8493 lt_cv_deplibs_check_method='unknown'
8494 # Need to set the preceding variable on all platforms that support
8495 # interlibrary dependencies.
8496 # 'none' -- dependencies not supported.
8497 # 'unknown' -- same as none, but documents that we really don't know.
8498 # 'pass_all' -- all dependencies passed with no checks.
8499 # 'test_compile' -- check by making test program.
8500 # 'file_magic [[regex]]' -- check by looking for files in library path
8501 # that responds to the $file_magic_cmd with a given extended regex.
8502 # If you have 'file' or equivalent on your system and you're not sure
8503 # whether 'pass_all' will *always* work, you probably want this one.
8504
8505 case $host_os in
8506 aix[4-9]*)
8507   lt_cv_deplibs_check_method=pass_all
8508   ;;
8509
8510 beos*)
8511   lt_cv_deplibs_check_method=pass_all
8512   ;;
8513
8514 bsdi[45]*)
8515   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
8516   lt_cv_file_magic_cmd='/usr/bin/file -L'
8517   lt_cv_file_magic_test_file=/shlib/libc.so
8518   ;;
8519
8520 cygwin*)
8521   # func_win32_libid is a shell function defined in ltmain.sh
8522   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
8523   lt_cv_file_magic_cmd='func_win32_libid'
8524   ;;
8525
8526 mingw* | pw32*)
8527   # Base MSYS/MinGW do not provide the 'file' command needed by
8528   # func_win32_libid shell function, so use a weaker test based on 'objdump',
8529   # unless we find 'file', for example because we are cross-compiling.
8530   if ( file / ) >/dev/null 2>&1; then
8531     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
8532     lt_cv_file_magic_cmd='func_win32_libid'
8533   else
8534     # Keep this pattern in sync with the one in func_win32_libid.
8535     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
8536     lt_cv_file_magic_cmd='$OBJDUMP -f'
8537   fi
8538   ;;
8539
8540 cegcc*)
8541   # use the weaker test based on 'objdump'. See mingw*.
8542   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
8543   lt_cv_file_magic_cmd='$OBJDUMP -f'
8544   ;;
8545
8546 darwin* | rhapsody*)
8547   lt_cv_deplibs_check_method=pass_all
8548   ;;
8549
8550 freebsd* | dragonfly*)
8551   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8552     case $host_cpu in
8553     i*86 )
8554       # Not sure whether the presence of OpenBSD here was a mistake.
8555       # Let's accept both of them until this is cleared up.
8556       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
8557       lt_cv_file_magic_cmd=/usr/bin/file
8558       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
8559       ;;
8560     esac
8561   else
8562     lt_cv_deplibs_check_method=pass_all
8563   fi
8564   ;;
8565
8566 haiku*)
8567   lt_cv_deplibs_check_method=pass_all
8568   ;;
8569
8570 hpux10.20* | hpux11*)
8571   lt_cv_file_magic_cmd=/usr/bin/file
8572   case $host_cpu in
8573   ia64*)
8574     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
8575     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
8576     ;;
8577   hppa*64*)
8578     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]'
8579     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
8580     ;;
8581   *)
8582     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
8583     lt_cv_file_magic_test_file=/usr/lib/libc.sl
8584     ;;
8585   esac
8586   ;;
8587
8588 interix[3-9]*)
8589   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
8590   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
8591   ;;
8592
8593 irix5* | irix6* | nonstopux*)
8594   case $LD in
8595   *-32|*"-32 ") libmagic=32-bit;;
8596   *-n32|*"-n32 ") libmagic=N32;;
8597   *-64|*"-64 ") libmagic=64-bit;;
8598   *) libmagic=never-match;;
8599   esac
8600   lt_cv_deplibs_check_method=pass_all
8601   ;;
8602
8603 # This must be glibc/ELF.
8604 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8605   lt_cv_deplibs_check_method=pass_all
8606   ;;
8607
8608 netbsd*)
8609   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8610     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8611   else
8612     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
8613   fi
8614   ;;
8615
8616 newos6*)
8617   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
8618   lt_cv_file_magic_cmd=/usr/bin/file
8619   lt_cv_file_magic_test_file=/usr/lib/libnls.so
8620   ;;
8621
8622 *nto* | *qnx*)
8623   lt_cv_deplibs_check_method=pass_all
8624   ;;
8625
8626 openbsd* | bitrig*)
8627   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
8628     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
8629   else
8630     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8631   fi
8632   ;;
8633
8634 osf3* | osf4* | osf5*)
8635   lt_cv_deplibs_check_method=pass_all
8636   ;;
8637
8638 rdos*)
8639   lt_cv_deplibs_check_method=pass_all
8640   ;;
8641
8642 solaris*)
8643   lt_cv_deplibs_check_method=pass_all
8644   ;;
8645
8646 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8647   lt_cv_deplibs_check_method=pass_all
8648   ;;
8649
8650 sysv4 | sysv4.3*)
8651   case $host_vendor in
8652   motorola)
8653     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]'
8654     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
8655     ;;
8656   ncr)
8657     lt_cv_deplibs_check_method=pass_all
8658     ;;
8659   sequent)
8660     lt_cv_file_magic_cmd='/bin/file'
8661     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
8662     ;;
8663   sni)
8664     lt_cv_file_magic_cmd='/bin/file'
8665     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
8666     lt_cv_file_magic_test_file=/lib/libc.so
8667     ;;
8668   siemens)
8669     lt_cv_deplibs_check_method=pass_all
8670     ;;
8671   pc)
8672     lt_cv_deplibs_check_method=pass_all
8673     ;;
8674   esac
8675   ;;
8676
8677 tpf*)
8678   lt_cv_deplibs_check_method=pass_all
8679   ;;
8680 os2*)
8681   lt_cv_deplibs_check_method=pass_all
8682   ;;
8683 esac
8684
8685 fi
8686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
8687 $as_echo "$lt_cv_deplibs_check_method" >&6; }
8688
8689 file_magic_glob=
8690 want_nocaseglob=no
8691 if test "$build" = "$host"; then
8692   case $host_os in
8693   mingw* | pw32*)
8694     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
8695       want_nocaseglob=yes
8696     else
8697       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
8698     fi
8699     ;;
8700   esac
8701 fi
8702
8703 file_magic_cmd=$lt_cv_file_magic_cmd
8704 deplibs_check_method=$lt_cv_deplibs_check_method
8705 test -z "$deplibs_check_method" && deplibs_check_method=unknown
8706
8707
8708
8709
8710
8711
8712
8713
8714
8715
8716
8717
8718
8719
8720
8721
8722
8723
8724
8725
8726
8727
8728 if test -n "$ac_tool_prefix"; then
8729   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
8730 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
8731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8732 $as_echo_n "checking for $ac_word... " >&6; }
8733 if ${ac_cv_prog_DLLTOOL+:} false; then :
8734   $as_echo_n "(cached) " >&6
8735 else
8736   if test -n "$DLLTOOL"; then
8737   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8738 else
8739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8740 for as_dir in $PATH
8741 do
8742   IFS=$as_save_IFS
8743   test -z "$as_dir" && as_dir=.
8744     for ac_exec_ext in '' $ac_executable_extensions; do
8745   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8746     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
8747     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8748     break 2
8749   fi
8750 done
8751   done
8752 IFS=$as_save_IFS
8753
8754 fi
8755 fi
8756 DLLTOOL=$ac_cv_prog_DLLTOOL
8757 if test -n "$DLLTOOL"; then
8758   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8759 $as_echo "$DLLTOOL" >&6; }
8760 else
8761   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8762 $as_echo "no" >&6; }
8763 fi
8764
8765
8766 fi
8767 if test -z "$ac_cv_prog_DLLTOOL"; then
8768   ac_ct_DLLTOOL=$DLLTOOL
8769   # Extract the first word of "dlltool", so it can be a program name with args.
8770 set dummy dlltool; ac_word=$2
8771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8772 $as_echo_n "checking for $ac_word... " >&6; }
8773 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
8774   $as_echo_n "(cached) " >&6
8775 else
8776   if test -n "$ac_ct_DLLTOOL"; then
8777   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
8778 else
8779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8780 for as_dir in $PATH
8781 do
8782   IFS=$as_save_IFS
8783   test -z "$as_dir" && as_dir=.
8784     for ac_exec_ext in '' $ac_executable_extensions; do
8785   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8786     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
8787     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8788     break 2
8789   fi
8790 done
8791   done
8792 IFS=$as_save_IFS
8793
8794 fi
8795 fi
8796 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
8797 if test -n "$ac_ct_DLLTOOL"; then
8798   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
8799 $as_echo "$ac_ct_DLLTOOL" >&6; }
8800 else
8801   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8802 $as_echo "no" >&6; }
8803 fi
8804
8805   if test "x$ac_ct_DLLTOOL" = x; then
8806     DLLTOOL="false"
8807   else
8808     case $cross_compiling:$ac_tool_warned in
8809 yes:)
8810 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8811 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8812 ac_tool_warned=yes ;;
8813 esac
8814     DLLTOOL=$ac_ct_DLLTOOL
8815   fi
8816 else
8817   DLLTOOL="$ac_cv_prog_DLLTOOL"
8818 fi
8819
8820 test -z "$DLLTOOL" && DLLTOOL=dlltool
8821
8822
8823
8824
8825
8826
8827
8828
8829
8830
8831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
8832 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
8833 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
8834   $as_echo_n "(cached) " >&6
8835 else
8836   lt_cv_sharedlib_from_linklib_cmd='unknown'
8837
8838 case $host_os in
8839 cygwin* | mingw* | pw32* | cegcc*)
8840   # two different shell functions defined in ltmain.sh;
8841   # decide which one to use based on capabilities of $DLLTOOL
8842   case `$DLLTOOL --help 2>&1` in
8843   *--identify-strict*)
8844     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
8845     ;;
8846   *)
8847     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
8848     ;;
8849   esac
8850   ;;
8851 *)
8852   # fallback: assume linklib IS sharedlib
8853   lt_cv_sharedlib_from_linklib_cmd=$ECHO
8854   ;;
8855 esac
8856
8857 fi
8858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
8859 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
8860 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
8861 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
8862
8863
8864
8865
8866
8867
8868
8869 if test -n "$ac_tool_prefix"; then
8870   for ac_prog in ar
8871   do
8872     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8873 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8875 $as_echo_n "checking for $ac_word... " >&6; }
8876 if ${ac_cv_prog_AR+:} false; then :
8877   $as_echo_n "(cached) " >&6
8878 else
8879   if test -n "$AR"; then
8880   ac_cv_prog_AR="$AR" # Let the user override the test.
8881 else
8882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8883 for as_dir in $PATH
8884 do
8885   IFS=$as_save_IFS
8886   test -z "$as_dir" && as_dir=.
8887     for ac_exec_ext in '' $ac_executable_extensions; do
8888   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8889     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
8890     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8891     break 2
8892   fi
8893 done
8894   done
8895 IFS=$as_save_IFS
8896
8897 fi
8898 fi
8899 AR=$ac_cv_prog_AR
8900 if test -n "$AR"; then
8901   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8902 $as_echo "$AR" >&6; }
8903 else
8904   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8905 $as_echo "no" >&6; }
8906 fi
8907
8908
8909     test -n "$AR" && break
8910   done
8911 fi
8912 if test -z "$AR"; then
8913   ac_ct_AR=$AR
8914   for ac_prog in ar
8915 do
8916   # Extract the first word of "$ac_prog", so it can be a program name with args.
8917 set dummy $ac_prog; ac_word=$2
8918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8919 $as_echo_n "checking for $ac_word... " >&6; }
8920 if ${ac_cv_prog_ac_ct_AR+:} false; then :
8921   $as_echo_n "(cached) " >&6
8922 else
8923   if test -n "$ac_ct_AR"; then
8924   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8925 else
8926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8927 for as_dir in $PATH
8928 do
8929   IFS=$as_save_IFS
8930   test -z "$as_dir" && as_dir=.
8931     for ac_exec_ext in '' $ac_executable_extensions; do
8932   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8933     ac_cv_prog_ac_ct_AR="$ac_prog"
8934     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8935     break 2
8936   fi
8937 done
8938   done
8939 IFS=$as_save_IFS
8940
8941 fi
8942 fi
8943 ac_ct_AR=$ac_cv_prog_ac_ct_AR
8944 if test -n "$ac_ct_AR"; then
8945   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
8946 $as_echo "$ac_ct_AR" >&6; }
8947 else
8948   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8949 $as_echo "no" >&6; }
8950 fi
8951
8952
8953   test -n "$ac_ct_AR" && break
8954 done
8955
8956   if test "x$ac_ct_AR" = x; then
8957     AR="false"
8958   else
8959     case $cross_compiling:$ac_tool_warned in
8960 yes:)
8961 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8962 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8963 ac_tool_warned=yes ;;
8964 esac
8965     AR=$ac_ct_AR
8966   fi
8967 fi
8968
8969 : ${AR=ar}
8970 : ${AR_FLAGS=cru}
8971
8972
8973
8974
8975
8976
8977
8978
8979
8980
8981
8982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
8983 $as_echo_n "checking for archiver @FILE support... " >&6; }
8984 if ${lt_cv_ar_at_file+:} false; then :
8985   $as_echo_n "(cached) " >&6
8986 else
8987   lt_cv_ar_at_file=no
8988    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8989 /* end confdefs.h.  */
8990
8991 int
8992 main ()
8993 {
8994
8995   ;
8996   return 0;
8997 }
8998 _ACEOF
8999 if ac_fn_c_try_compile "$LINENO"; then :
9000   echo conftest.$ac_objext > conftest.lst
9001       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
9002       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
9003   (eval $lt_ar_try) 2>&5
9004   ac_status=$?
9005   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9006   test $ac_status = 0; }
9007       if test 0 -eq "$ac_status"; then
9008         # Ensure the archiver fails upon bogus file names.
9009         rm -f conftest.$ac_objext libconftest.a
9010         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
9011   (eval $lt_ar_try) 2>&5
9012   ac_status=$?
9013   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9014   test $ac_status = 0; }
9015         if test 0 -ne "$ac_status"; then
9016           lt_cv_ar_at_file=@
9017         fi
9018       fi
9019       rm -f conftest.* libconftest.a
9020
9021 fi
9022 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9023
9024 fi
9025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
9026 $as_echo "$lt_cv_ar_at_file" >&6; }
9027
9028 if test no = "$lt_cv_ar_at_file"; then
9029   archiver_list_spec=
9030 else
9031   archiver_list_spec=$lt_cv_ar_at_file
9032 fi
9033
9034
9035
9036
9037
9038
9039
9040 if test -n "$ac_tool_prefix"; then
9041   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
9042 set dummy ${ac_tool_prefix}strip; ac_word=$2
9043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9044 $as_echo_n "checking for $ac_word... " >&6; }
9045 if ${ac_cv_prog_STRIP+:} false; then :
9046   $as_echo_n "(cached) " >&6
9047 else
9048   if test -n "$STRIP"; then
9049   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9050 else
9051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9052 for as_dir in $PATH
9053 do
9054   IFS=$as_save_IFS
9055   test -z "$as_dir" && as_dir=.
9056     for ac_exec_ext in '' $ac_executable_extensions; do
9057   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9058     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
9059     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9060     break 2
9061   fi
9062 done
9063   done
9064 IFS=$as_save_IFS
9065
9066 fi
9067 fi
9068 STRIP=$ac_cv_prog_STRIP
9069 if test -n "$STRIP"; then
9070   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9071 $as_echo "$STRIP" >&6; }
9072 else
9073   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9074 $as_echo "no" >&6; }
9075 fi
9076
9077
9078 fi
9079 if test -z "$ac_cv_prog_STRIP"; then
9080   ac_ct_STRIP=$STRIP
9081   # Extract the first word of "strip", so it can be a program name with args.
9082 set dummy strip; ac_word=$2
9083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9084 $as_echo_n "checking for $ac_word... " >&6; }
9085 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
9086   $as_echo_n "(cached) " >&6
9087 else
9088   if test -n "$ac_ct_STRIP"; then
9089   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
9090 else
9091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9092 for as_dir in $PATH
9093 do
9094   IFS=$as_save_IFS
9095   test -z "$as_dir" && as_dir=.
9096     for ac_exec_ext in '' $ac_executable_extensions; do
9097   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9098     ac_cv_prog_ac_ct_STRIP="strip"
9099     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9100     break 2
9101   fi
9102 done
9103   done
9104 IFS=$as_save_IFS
9105
9106 fi
9107 fi
9108 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
9109 if test -n "$ac_ct_STRIP"; then
9110   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
9111 $as_echo "$ac_ct_STRIP" >&6; }
9112 else
9113   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9114 $as_echo "no" >&6; }
9115 fi
9116
9117   if test "x$ac_ct_STRIP" = x; then
9118     STRIP=":"
9119   else
9120     case $cross_compiling:$ac_tool_warned in
9121 yes:)
9122 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9123 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9124 ac_tool_warned=yes ;;
9125 esac
9126     STRIP=$ac_ct_STRIP
9127   fi
9128 else
9129   STRIP="$ac_cv_prog_STRIP"
9130 fi
9131
9132 test -z "$STRIP" && STRIP=:
9133
9134
9135
9136
9137
9138
9139 if test -n "$ac_tool_prefix"; then
9140   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
9141 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
9142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9143 $as_echo_n "checking for $ac_word... " >&6; }
9144 if ${ac_cv_prog_RANLIB+:} false; then :
9145   $as_echo_n "(cached) " >&6
9146 else
9147   if test -n "$RANLIB"; then
9148   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9149 else
9150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9151 for as_dir in $PATH
9152 do
9153   IFS=$as_save_IFS
9154   test -z "$as_dir" && as_dir=.
9155     for ac_exec_ext in '' $ac_executable_extensions; do
9156   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9157     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
9158     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9159     break 2
9160   fi
9161 done
9162   done
9163 IFS=$as_save_IFS
9164
9165 fi
9166 fi
9167 RANLIB=$ac_cv_prog_RANLIB
9168 if test -n "$RANLIB"; then
9169   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9170 $as_echo "$RANLIB" >&6; }
9171 else
9172   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9173 $as_echo "no" >&6; }
9174 fi
9175
9176
9177 fi
9178 if test -z "$ac_cv_prog_RANLIB"; then
9179   ac_ct_RANLIB=$RANLIB
9180   # Extract the first word of "ranlib", so it can be a program name with args.
9181 set dummy ranlib; ac_word=$2
9182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9183 $as_echo_n "checking for $ac_word... " >&6; }
9184 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
9185   $as_echo_n "(cached) " >&6
9186 else
9187   if test -n "$ac_ct_RANLIB"; then
9188   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
9189 else
9190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9191 for as_dir in $PATH
9192 do
9193   IFS=$as_save_IFS
9194   test -z "$as_dir" && as_dir=.
9195     for ac_exec_ext in '' $ac_executable_extensions; do
9196   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9197     ac_cv_prog_ac_ct_RANLIB="ranlib"
9198     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9199     break 2
9200   fi
9201 done
9202   done
9203 IFS=$as_save_IFS
9204
9205 fi
9206 fi
9207 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
9208 if test -n "$ac_ct_RANLIB"; then
9209   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
9210 $as_echo "$ac_ct_RANLIB" >&6; }
9211 else
9212   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9213 $as_echo "no" >&6; }
9214 fi
9215
9216   if test "x$ac_ct_RANLIB" = x; then
9217     RANLIB=":"
9218   else
9219     case $cross_compiling:$ac_tool_warned in
9220 yes:)
9221 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9222 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9223 ac_tool_warned=yes ;;
9224 esac
9225     RANLIB=$ac_ct_RANLIB
9226   fi
9227 else
9228   RANLIB="$ac_cv_prog_RANLIB"
9229 fi
9230
9231 test -z "$RANLIB" && RANLIB=:
9232
9233
9234
9235
9236
9237
9238 # Determine commands to create old-style static archives.
9239 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
9240 old_postinstall_cmds='chmod 644 $oldlib'
9241 old_postuninstall_cmds=
9242
9243 if test -n "$RANLIB"; then
9244   case $host_os in
9245   bitrig* | openbsd*)
9246     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
9247     ;;
9248   *)
9249     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
9250     ;;
9251   esac
9252   old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
9253 fi
9254
9255 case $host_os in
9256   darwin*)
9257     lock_old_archive_extraction=yes ;;
9258   *)
9259     lock_old_archive_extraction=no ;;
9260 esac
9261
9262
9263
9264
9265
9266
9267
9268
9269
9270
9271
9272
9273
9274
9275
9276
9277
9278
9279
9280
9281
9282 for ac_prog in gawk mawk nawk awk
9283 do
9284   # Extract the first word of "$ac_prog", so it can be a program name with args.
9285 set dummy $ac_prog; ac_word=$2
9286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9287 $as_echo_n "checking for $ac_word... " >&6; }
9288 if ${ac_cv_prog_AWK+:} false; then :
9289   $as_echo_n "(cached) " >&6
9290 else
9291   if test -n "$AWK"; then
9292   ac_cv_prog_AWK="$AWK" # Let the user override the test.
9293 else
9294 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9295 for as_dir in $PATH
9296 do
9297   IFS=$as_save_IFS
9298   test -z "$as_dir" && as_dir=.
9299     for ac_exec_ext in '' $ac_executable_extensions; do
9300   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9301     ac_cv_prog_AWK="$ac_prog"
9302     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9303     break 2
9304   fi
9305 done
9306   done
9307 IFS=$as_save_IFS
9308
9309 fi
9310 fi
9311 AWK=$ac_cv_prog_AWK
9312 if test -n "$AWK"; then
9313   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
9314 $as_echo "$AWK" >&6; }
9315 else
9316   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9317 $as_echo "no" >&6; }
9318 fi
9319
9320
9321   test -n "$AWK" && break
9322 done
9323
9324
9325
9326
9327
9328
9329
9330
9331
9332
9333
9334
9335
9336
9337
9338
9339
9340
9341
9342 # If no C compiler was specified, use CC.
9343 LTCC=${LTCC-"$CC"}
9344
9345 # If no C compiler flags were specified, use CFLAGS.
9346 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9347
9348 # Allow CC to be a program name with arguments.
9349 compiler=$CC
9350
9351
9352 # Check for command to grab the raw symbol name followed by C symbol from nm.
9353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
9354 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
9355 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
9356   $as_echo_n "(cached) " >&6
9357 else
9358
9359 # These are sane defaults that work on at least a few old systems.
9360 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
9361
9362 # Character class describing NM global symbol codes.
9363 symcode='[BCDEGRST]'
9364
9365 # Regexp to match symbols that can be accessed directly from C.
9366 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9367
9368 # Define system-specific variables.
9369 case $host_os in
9370 aix*)
9371   symcode='[BCDT]'
9372   ;;
9373 cygwin* | mingw* | pw32* | cegcc*)
9374   symcode='[ABCDGISTW]'
9375   ;;
9376 hpux*)
9377   if test ia64 = "$host_cpu"; then
9378     symcode='[ABCDEGRST]'
9379   fi
9380   ;;
9381 irix* | nonstopux*)
9382   symcode='[BCDEGRST]'
9383   ;;
9384 osf*)
9385   symcode='[BCDEGQRST]'
9386   ;;
9387 solaris*)
9388   symcode='[BDRT]'
9389   ;;
9390 sco3.2v5*)
9391   symcode='[DT]'
9392   ;;
9393 sysv4.2uw2*)
9394   symcode='[DT]'
9395   ;;
9396 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9397   symcode='[ABDT]'
9398   ;;
9399 sysv4)
9400   symcode='[DFNSTU]'
9401   ;;
9402 esac
9403
9404 # If we're using GNU nm, then use its standard symbol codes.
9405 case `$NM -V 2>&1` in
9406 *GNU* | *'with BFD'*)
9407   symcode='[ABCDGIRSTW]' ;;
9408 esac
9409
9410 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9411   # Gets list of data symbols to import.
9412   lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
9413   # Adjust the below global symbol transforms to fixup imported variables.
9414   lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
9415   lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
9416   lt_c_name_lib_hook="\
9417   -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
9418   -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
9419 else
9420   # Disable hooks by default.
9421   lt_cv_sys_global_symbol_to_import=
9422   lt_cdecl_hook=
9423   lt_c_name_hook=
9424   lt_c_name_lib_hook=
9425 fi
9426
9427 # Transform an extracted symbol line into a proper C declaration.
9428 # Some systems (esp. on ia64) link data and code symbols differently,
9429 # so use this general approach.
9430 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
9431 $lt_cdecl_hook\
9432 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
9433 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
9434
9435 # Transform an extracted symbol line into symbol name and symbol address
9436 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
9437 $lt_c_name_hook\
9438 " -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
9439 " -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
9440
9441 # Transform an extracted symbol line into symbol name with lib prefix and
9442 # symbol address.
9443 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
9444 $lt_c_name_lib_hook\
9445 " -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
9446 " -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
9447 " -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
9448
9449 # Handle CRLF in mingw tool chain
9450 opt_cr=
9451 case $build_os in
9452 mingw*)
9453   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9454   ;;
9455 esac
9456
9457 # Try without a prefix underscore, then with it.
9458 for ac_symprfx in "" "_"; do
9459
9460   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9461   symxfrm="\\1 $ac_symprfx\\2 \\2"
9462
9463   # Write the raw and C identifiers.
9464   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9465     # Fake it for dumpbin and say T for any non-static function,
9466     # D for any global variable and I for any imported variable.
9467     # Also find C++ and __fastcall symbols from MSVC++,
9468     # which start with @ or ?.
9469     lt_cv_sys_global_symbol_pipe="$AWK '"\
9470 "     {last_section=section; section=\$ 3};"\
9471 "     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
9472 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
9473 "     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
9474 "     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
9475 "     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
9476 "     \$ 0!~/External *\|/{next};"\
9477 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
9478 "     {if(hide[section]) next};"\
9479 "     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
9480 "     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
9481 "     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
9482 "     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
9483 "     ' prfx=^$ac_symprfx"
9484   else
9485     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9486   fi
9487   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
9488
9489   # Check to see that the pipe works correctly.
9490   pipe_works=no
9491
9492   rm -f conftest*
9493   cat > conftest.$ac_ext <<_LT_EOF
9494 #ifdef __cplusplus
9495 extern "C" {
9496 #endif
9497 char nm_test_var;
9498 void nm_test_func(void);
9499 void nm_test_func(void){}
9500 #ifdef __cplusplus
9501 }
9502 #endif
9503 int main(){nm_test_var='a';nm_test_func();return(0);}
9504 _LT_EOF
9505
9506   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9507   (eval $ac_compile) 2>&5
9508   ac_status=$?
9509   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9510   test $ac_status = 0; }; then
9511     # Now try to grab the symbols.
9512     nlist=conftest.nm
9513     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
9514   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
9515   ac_status=$?
9516   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9517   test $ac_status = 0; } && test -s "$nlist"; then
9518       # Try sorting and uniquifying the output.
9519       if sort "$nlist" | uniq > "$nlist"T; then
9520         mv -f "$nlist"T "$nlist"
9521       else
9522         rm -f "$nlist"T
9523       fi
9524
9525       # Make sure that we snagged all the symbols we need.
9526       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
9527         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
9528           cat <<_LT_EOF > conftest.$ac_ext
9529 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
9530 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
9531 /* DATA imports from DLLs on WIN32 can't be const, because runtime
9532    relocations are performed -- see ld's documentation on pseudo-relocs.  */
9533 # define LT_DLSYM_CONST
9534 #elif defined __osf__
9535 /* This system does not cope well with relocations in const data.  */
9536 # define LT_DLSYM_CONST
9537 #else
9538 # define LT_DLSYM_CONST const
9539 #endif
9540
9541 #ifdef __cplusplus
9542 extern "C" {
9543 #endif
9544
9545 _LT_EOF
9546           # Now generate the symbol file.
9547           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
9548
9549           cat <<_LT_EOF >> conftest.$ac_ext
9550
9551 /* The mapping between symbol names and symbols.  */
9552 LT_DLSYM_CONST struct {
9553   const char *name;
9554   void       *address;
9555 }
9556 lt__PROGRAM__LTX_preloaded_symbols[] =
9557 {
9558   { "@PROGRAM@", (void *) 0 },
9559 _LT_EOF
9560           $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
9561           cat <<\_LT_EOF >> conftest.$ac_ext
9562   {0, (void *) 0}
9563 };
9564
9565 /* This works around a problem in FreeBSD linker */
9566 #ifdef FREEBSD_WORKAROUND
9567 static const void *lt_preloaded_setup() {
9568   return lt__PROGRAM__LTX_preloaded_symbols;
9569 }
9570 #endif
9571
9572 #ifdef __cplusplus
9573 }
9574 #endif
9575 _LT_EOF
9576           # Now try linking the two files.
9577           mv conftest.$ac_objext conftstm.$ac_objext
9578           lt_globsym_save_LIBS=$LIBS
9579           lt_globsym_save_CFLAGS=$CFLAGS
9580           LIBS=conftstm.$ac_objext
9581           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9582           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
9583   (eval $ac_link) 2>&5
9584   ac_status=$?
9585   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9586   test $ac_status = 0; } && test -s conftest$ac_exeext; then
9587             pipe_works=yes
9588           fi
9589           LIBS=$lt_globsym_save_LIBS
9590           CFLAGS=$lt_globsym_save_CFLAGS
9591         else
9592           echo "cannot find nm_test_func in $nlist" >&5
9593         fi
9594       else
9595         echo "cannot find nm_test_var in $nlist" >&5
9596       fi
9597     else
9598       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9599     fi
9600   else
9601     echo "$progname: failed program was:" >&5
9602     cat conftest.$ac_ext >&5
9603   fi
9604   rm -rf conftest* conftst*
9605
9606   # Do not use the global_symbol_pipe unless it works.
9607   if test yes = "$pipe_works"; then
9608     break
9609   else
9610     lt_cv_sys_global_symbol_pipe=
9611   fi
9612 done
9613
9614 fi
9615
9616 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9617   lt_cv_sys_global_symbol_to_cdecl=
9618 fi
9619 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9620   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
9621 $as_echo "failed" >&6; }
9622 else
9623   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
9624 $as_echo "ok" >&6; }
9625 fi
9626
9627 # Response file support.
9628 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9629   nm_file_list_spec='@'
9630 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
9631   nm_file_list_spec='@'
9632 fi
9633
9634
9635
9636
9637
9638
9639
9640
9641
9642
9643
9644
9645
9646
9647
9648
9649
9650
9651
9652
9653
9654
9655
9656
9657
9658
9659
9660
9661
9662
9663
9664
9665
9666
9667
9668
9669
9670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
9671 $as_echo_n "checking for sysroot... " >&6; }
9672
9673 # Check whether --with-sysroot was given.
9674 if test "${with_sysroot+set}" = set; then :
9675   withval=$with_sysroot;
9676 else
9677   with_sysroot=no
9678 fi
9679
9680
9681 lt_sysroot=
9682 case $with_sysroot in #(
9683  yes)
9684    if test yes = "$GCC"; then
9685      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
9686    fi
9687    ;; #(
9688  /*)
9689    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
9690    ;; #(
9691  no|'')
9692    ;; #(
9693  *)
9694    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
9695 $as_echo "$with_sysroot" >&6; }
9696    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
9697    ;;
9698 esac
9699
9700  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
9701 $as_echo "${lt_sysroot:-no}" >&6; }
9702
9703
9704
9705
9706
9707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
9708 $as_echo_n "checking for a working dd... " >&6; }
9709 if ${ac_cv_path_lt_DD+:} false; then :
9710   $as_echo_n "(cached) " >&6
9711 else
9712   printf 0123456789abcdef0123456789abcdef >conftest.i
9713 cat conftest.i conftest.i >conftest2.i
9714 : ${lt_DD:=$DD}
9715 if test -z "$lt_DD"; then
9716   ac_path_lt_DD_found=false
9717   # Loop through the user's path and test for each of PROGNAME-LIST
9718   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9719 for as_dir in $PATH
9720 do
9721   IFS=$as_save_IFS
9722   test -z "$as_dir" && as_dir=.
9723     for ac_prog in dd; do
9724     for ac_exec_ext in '' $ac_executable_extensions; do
9725       ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
9726       as_fn_executable_p "$ac_path_lt_DD" || continue
9727 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
9728   cmp -s conftest.i conftest.out \
9729   && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
9730 fi
9731       $ac_path_lt_DD_found && break 3
9732     done
9733   done
9734   done
9735 IFS=$as_save_IFS
9736   if test -z "$ac_cv_path_lt_DD"; then
9737     :
9738   fi
9739 else
9740   ac_cv_path_lt_DD=$lt_DD
9741 fi
9742
9743 rm -f conftest.i conftest2.i conftest.out
9744 fi
9745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
9746 $as_echo "$ac_cv_path_lt_DD" >&6; }
9747
9748
9749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
9750 $as_echo_n "checking how to truncate binary pipes... " >&6; }
9751 if ${lt_cv_truncate_bin+:} false; then :
9752   $as_echo_n "(cached) " >&6
9753 else
9754   printf 0123456789abcdef0123456789abcdef >conftest.i
9755 cat conftest.i conftest.i >conftest2.i
9756 lt_cv_truncate_bin=
9757 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
9758   cmp -s conftest.i conftest.out \
9759   && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
9760 fi
9761 rm -f conftest.i conftest2.i conftest.out
9762 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
9763 fi
9764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
9765 $as_echo "$lt_cv_truncate_bin" >&6; }
9766
9767
9768
9769
9770
9771
9772
9773 # Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
9774 func_cc_basename ()
9775 {
9776     for cc_temp in $*""; do
9777       case $cc_temp in
9778         compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9779         distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9780         \-*) ;;
9781         *) break;;
9782       esac
9783     done
9784     func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9785 }
9786
9787 # Check whether --enable-libtool-lock was given.
9788 if test "${enable_libtool_lock+set}" = set; then :
9789   enableval=$enable_libtool_lock;
9790 fi
9791
9792 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
9793
9794 # Some flags need to be propagated to the compiler or linker for good
9795 # libtool support.
9796 case $host in
9797 ia64-*-hpux*)
9798   # Find out what ABI is being produced by ac_compile, and set mode
9799   # options accordingly.
9800   echo 'int i;' > conftest.$ac_ext
9801   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9802   (eval $ac_compile) 2>&5
9803   ac_status=$?
9804   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9805   test $ac_status = 0; }; then
9806     case `/usr/bin/file conftest.$ac_objext` in
9807       *ELF-32*)
9808         HPUX_IA64_MODE=32
9809         ;;
9810       *ELF-64*)
9811         HPUX_IA64_MODE=64
9812         ;;
9813     esac
9814   fi
9815   rm -rf conftest*
9816   ;;
9817 *-*-irix6*)
9818   # Find out what ABI is being produced by ac_compile, and set linker
9819   # options accordingly.
9820   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
9821   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9822   (eval $ac_compile) 2>&5
9823   ac_status=$?
9824   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9825   test $ac_status = 0; }; then
9826     if test yes = "$lt_cv_prog_gnu_ld"; then
9827       case `/usr/bin/file conftest.$ac_objext` in
9828         *32-bit*)
9829           LD="${LD-ld} -melf32bsmip"
9830           ;;
9831         *N32*)
9832           LD="${LD-ld} -melf32bmipn32"
9833           ;;
9834         *64-bit*)
9835           LD="${LD-ld} -melf64bmip"
9836         ;;
9837       esac
9838     else
9839       case `/usr/bin/file conftest.$ac_objext` in
9840         *32-bit*)
9841           LD="${LD-ld} -32"
9842           ;;
9843         *N32*)
9844           LD="${LD-ld} -n32"
9845           ;;
9846         *64-bit*)
9847           LD="${LD-ld} -64"
9848           ;;
9849       esac
9850     fi
9851   fi
9852   rm -rf conftest*
9853   ;;
9854
9855 mips64*-*linux*)
9856   # Find out what ABI is being produced by ac_compile, and set linker
9857   # options accordingly.
9858   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
9859   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9860   (eval $ac_compile) 2>&5
9861   ac_status=$?
9862   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9863   test $ac_status = 0; }; then
9864     emul=elf
9865     case `/usr/bin/file conftest.$ac_objext` in
9866       *32-bit*)
9867         emul="${emul}32"
9868         ;;
9869       *64-bit*)
9870         emul="${emul}64"
9871         ;;
9872     esac
9873     case `/usr/bin/file conftest.$ac_objext` in
9874       *MSB*)
9875         emul="${emul}btsmip"
9876         ;;
9877       *LSB*)
9878         emul="${emul}ltsmip"
9879         ;;
9880     esac
9881     case `/usr/bin/file conftest.$ac_objext` in
9882       *N32*)
9883         emul="${emul}n32"
9884         ;;
9885     esac
9886     LD="${LD-ld} -m $emul"
9887   fi
9888   rm -rf conftest*
9889   ;;
9890
9891 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
9892 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
9893   # Find out what ABI is being produced by ac_compile, and set linker
9894   # options accordingly.  Note that the listed cases only cover the
9895   # situations where additional linker options are needed (such as when
9896   # doing 32-bit compilation for a host where ld defaults to 64-bit, or
9897   # vice versa); the common cases where no linker options are needed do
9898   # not appear in the list.
9899   echo 'int i;' > conftest.$ac_ext
9900   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9901   (eval $ac_compile) 2>&5
9902   ac_status=$?
9903   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9904   test $ac_status = 0; }; then
9905     case `/usr/bin/file conftest.o` in
9906       *32-bit*)
9907         case $host in
9908           x86_64-*kfreebsd*-gnu)
9909             LD="${LD-ld} -m elf_i386_fbsd"
9910             ;;
9911           x86_64-*linux*)
9912             case `/usr/bin/file conftest.o` in
9913               *x86-64*)
9914                 LD="${LD-ld} -m elf32_x86_64"
9915                 ;;
9916               *)
9917                 LD="${LD-ld} -m elf_i386"
9918                 ;;
9919             esac
9920             ;;
9921           powerpc64le-*linux*)
9922             LD="${LD-ld} -m elf32lppclinux"
9923             ;;
9924           powerpc64-*linux*)
9925             LD="${LD-ld} -m elf32ppclinux"
9926             ;;
9927           s390x-*linux*)
9928             LD="${LD-ld} -m elf_s390"
9929             ;;
9930           sparc64-*linux*)
9931             LD="${LD-ld} -m elf32_sparc"
9932             ;;
9933         esac
9934         ;;
9935       *64-bit*)
9936         case $host in
9937           x86_64-*kfreebsd*-gnu)
9938             LD="${LD-ld} -m elf_x86_64_fbsd"
9939             ;;
9940           x86_64-*linux*)
9941             LD="${LD-ld} -m elf_x86_64"
9942             ;;
9943           powerpcle-*linux*)
9944             LD="${LD-ld} -m elf64lppc"
9945             ;;
9946           powerpc-*linux*)
9947             LD="${LD-ld} -m elf64ppc"
9948             ;;
9949           s390*-*linux*|s390*-*tpf*)
9950             LD="${LD-ld} -m elf64_s390"
9951             ;;
9952           sparc*-*linux*)
9953             LD="${LD-ld} -m elf64_sparc"
9954             ;;
9955         esac
9956         ;;
9957     esac
9958   fi
9959   rm -rf conftest*
9960   ;;
9961
9962 *-*-sco3.2v5*)
9963   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
9964   SAVE_CFLAGS=$CFLAGS
9965   CFLAGS="$CFLAGS -belf"
9966   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
9967 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
9968 if ${lt_cv_cc_needs_belf+:} false; then :
9969   $as_echo_n "(cached) " >&6
9970 else
9971   ac_ext=c
9972 ac_cpp='$CPP $CPPFLAGS'
9973 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9974 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9975 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9976
9977      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9978 /* end confdefs.h.  */
9979
9980 int
9981 main ()
9982 {
9983
9984   ;
9985   return 0;
9986 }
9987 _ACEOF
9988 if ac_fn_c_try_link "$LINENO"; then :
9989   lt_cv_cc_needs_belf=yes
9990 else
9991   lt_cv_cc_needs_belf=no
9992 fi
9993 rm -f core conftest.err conftest.$ac_objext \
9994     conftest$ac_exeext conftest.$ac_ext
9995      ac_ext=c
9996 ac_cpp='$CPP $CPPFLAGS'
9997 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9998 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9999 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10000
10001 fi
10002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
10003 $as_echo "$lt_cv_cc_needs_belf" >&6; }
10004   if test yes != "$lt_cv_cc_needs_belf"; then
10005     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
10006     CFLAGS=$SAVE_CFLAGS
10007   fi
10008   ;;
10009 *-*solaris*)
10010   # Find out what ABI is being produced by ac_compile, and set linker
10011   # options accordingly.
10012   echo 'int i;' > conftest.$ac_ext
10013   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10014   (eval $ac_compile) 2>&5
10015   ac_status=$?
10016   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10017   test $ac_status = 0; }; then
10018     case `/usr/bin/file conftest.o` in
10019     *64-bit*)
10020       case $lt_cv_prog_gnu_ld in
10021       yes*)
10022         case $host in
10023         i?86-*-solaris*|x86_64-*-solaris*)
10024           LD="${LD-ld} -m elf_x86_64"
10025           ;;
10026         sparc*-*-solaris*)
10027           LD="${LD-ld} -m elf64_sparc"
10028           ;;
10029         esac
10030         # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
10031         if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
10032           LD=${LD-ld}_sol2
10033         fi
10034         ;;
10035       *)
10036         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
10037           LD="${LD-ld} -64"
10038         fi
10039         ;;
10040       esac
10041       ;;
10042     esac
10043   fi
10044   rm -rf conftest*
10045   ;;
10046 esac
10047
10048 need_locks=$enable_libtool_lock
10049
10050 if test -n "$ac_tool_prefix"; then
10051   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
10052 set dummy ${ac_tool_prefix}mt; ac_word=$2
10053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10054 $as_echo_n "checking for $ac_word... " >&6; }
10055 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
10056   $as_echo_n "(cached) " >&6
10057 else
10058   if test -n "$MANIFEST_TOOL"; then
10059   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
10060 else
10061 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10062 for as_dir in $PATH
10063 do
10064   IFS=$as_save_IFS
10065   test -z "$as_dir" && as_dir=.
10066     for ac_exec_ext in '' $ac_executable_extensions; do
10067   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10068     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
10069     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10070     break 2
10071   fi
10072 done
10073   done
10074 IFS=$as_save_IFS
10075
10076 fi
10077 fi
10078 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
10079 if test -n "$MANIFEST_TOOL"; then
10080   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
10081 $as_echo "$MANIFEST_TOOL" >&6; }
10082 else
10083   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10084 $as_echo "no" >&6; }
10085 fi
10086
10087
10088 fi
10089 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
10090   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
10091   # Extract the first word of "mt", so it can be a program name with args.
10092 set dummy mt; ac_word=$2
10093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10094 $as_echo_n "checking for $ac_word... " >&6; }
10095 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
10096   $as_echo_n "(cached) " >&6
10097 else
10098   if test -n "$ac_ct_MANIFEST_TOOL"; then
10099   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
10100 else
10101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10102 for as_dir in $PATH
10103 do
10104   IFS=$as_save_IFS
10105   test -z "$as_dir" && as_dir=.
10106     for ac_exec_ext in '' $ac_executable_extensions; do
10107   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10108     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
10109     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10110     break 2
10111   fi
10112 done
10113   done
10114 IFS=$as_save_IFS
10115
10116 fi
10117 fi
10118 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
10119 if test -n "$ac_ct_MANIFEST_TOOL"; then
10120   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
10121 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
10122 else
10123   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10124 $as_echo "no" >&6; }
10125 fi
10126
10127   if test "x$ac_ct_MANIFEST_TOOL" = x; then
10128     MANIFEST_TOOL=":"
10129   else
10130     case $cross_compiling:$ac_tool_warned in
10131 yes:)
10132 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10133 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10134 ac_tool_warned=yes ;;
10135 esac
10136     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
10137   fi
10138 else
10139   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
10140 fi
10141
10142 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
10143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
10144 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
10145 if ${lt_cv_path_mainfest_tool+:} false; then :
10146   $as_echo_n "(cached) " >&6
10147 else
10148   lt_cv_path_mainfest_tool=no
10149   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
10150   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
10151   cat conftest.err >&5
10152   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
10153     lt_cv_path_mainfest_tool=yes
10154   fi
10155   rm -f conftest*
10156 fi
10157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
10158 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
10159 if test yes != "$lt_cv_path_mainfest_tool"; then
10160   MANIFEST_TOOL=:
10161 fi
10162
10163
10164
10165
10166
10167
10168   case $host_os in
10169     rhapsody* | darwin*)
10170     if test -n "$ac_tool_prefix"; then
10171   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
10172 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
10173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10174 $as_echo_n "checking for $ac_word... " >&6; }
10175 if ${ac_cv_prog_DSYMUTIL+:} false; then :
10176   $as_echo_n "(cached) " >&6
10177 else
10178   if test -n "$DSYMUTIL"; then
10179   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
10180 else
10181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10182 for as_dir in $PATH
10183 do
10184   IFS=$as_save_IFS
10185   test -z "$as_dir" && as_dir=.
10186     for ac_exec_ext in '' $ac_executable_extensions; do
10187   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10188     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
10189     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10190     break 2
10191   fi
10192 done
10193   done
10194 IFS=$as_save_IFS
10195
10196 fi
10197 fi
10198 DSYMUTIL=$ac_cv_prog_DSYMUTIL
10199 if test -n "$DSYMUTIL"; then
10200   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
10201 $as_echo "$DSYMUTIL" >&6; }
10202 else
10203   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10204 $as_echo "no" >&6; }
10205 fi
10206
10207
10208 fi
10209 if test -z "$ac_cv_prog_DSYMUTIL"; then
10210   ac_ct_DSYMUTIL=$DSYMUTIL
10211   # Extract the first word of "dsymutil", so it can be a program name with args.
10212 set dummy dsymutil; ac_word=$2
10213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10214 $as_echo_n "checking for $ac_word... " >&6; }
10215 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
10216   $as_echo_n "(cached) " >&6
10217 else
10218   if test -n "$ac_ct_DSYMUTIL"; then
10219   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
10220 else
10221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10222 for as_dir in $PATH
10223 do
10224   IFS=$as_save_IFS
10225   test -z "$as_dir" && as_dir=.
10226     for ac_exec_ext in '' $ac_executable_extensions; do
10227   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10228     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
10229     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10230     break 2
10231   fi
10232 done
10233   done
10234 IFS=$as_save_IFS
10235
10236 fi
10237 fi
10238 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
10239 if test -n "$ac_ct_DSYMUTIL"; then
10240   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
10241 $as_echo "$ac_ct_DSYMUTIL" >&6; }
10242 else
10243   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10244 $as_echo "no" >&6; }
10245 fi
10246
10247   if test "x$ac_ct_DSYMUTIL" = x; then
10248     DSYMUTIL=":"
10249   else
10250     case $cross_compiling:$ac_tool_warned in
10251 yes:)
10252 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10253 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10254 ac_tool_warned=yes ;;
10255 esac
10256     DSYMUTIL=$ac_ct_DSYMUTIL
10257   fi
10258 else
10259   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
10260 fi
10261
10262     if test -n "$ac_tool_prefix"; then
10263   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
10264 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
10265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10266 $as_echo_n "checking for $ac_word... " >&6; }
10267 if ${ac_cv_prog_NMEDIT+:} false; then :
10268   $as_echo_n "(cached) " >&6
10269 else
10270   if test -n "$NMEDIT"; then
10271   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
10272 else
10273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10274 for as_dir in $PATH
10275 do
10276   IFS=$as_save_IFS
10277   test -z "$as_dir" && as_dir=.
10278     for ac_exec_ext in '' $ac_executable_extensions; do
10279   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10280     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
10281     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10282     break 2
10283   fi
10284 done
10285   done
10286 IFS=$as_save_IFS
10287
10288 fi
10289 fi
10290 NMEDIT=$ac_cv_prog_NMEDIT
10291 if test -n "$NMEDIT"; then
10292   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
10293 $as_echo "$NMEDIT" >&6; }
10294 else
10295   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10296 $as_echo "no" >&6; }
10297 fi
10298
10299
10300 fi
10301 if test -z "$ac_cv_prog_NMEDIT"; then
10302   ac_ct_NMEDIT=$NMEDIT
10303   # Extract the first word of "nmedit", so it can be a program name with args.
10304 set dummy nmedit; ac_word=$2
10305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10306 $as_echo_n "checking for $ac_word... " >&6; }
10307 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
10308   $as_echo_n "(cached) " >&6
10309 else
10310   if test -n "$ac_ct_NMEDIT"; then
10311   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
10312 else
10313 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10314 for as_dir in $PATH
10315 do
10316   IFS=$as_save_IFS
10317   test -z "$as_dir" && as_dir=.
10318     for ac_exec_ext in '' $ac_executable_extensions; do
10319   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10320     ac_cv_prog_ac_ct_NMEDIT="nmedit"
10321     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10322     break 2
10323   fi
10324 done
10325   done
10326 IFS=$as_save_IFS
10327
10328 fi
10329 fi
10330 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
10331 if test -n "$ac_ct_NMEDIT"; then
10332   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
10333 $as_echo "$ac_ct_NMEDIT" >&6; }
10334 else
10335   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10336 $as_echo "no" >&6; }
10337 fi
10338
10339   if test "x$ac_ct_NMEDIT" = x; then
10340     NMEDIT=":"
10341   else
10342     case $cross_compiling:$ac_tool_warned in
10343 yes:)
10344 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10345 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10346 ac_tool_warned=yes ;;
10347 esac
10348     NMEDIT=$ac_ct_NMEDIT
10349   fi
10350 else
10351   NMEDIT="$ac_cv_prog_NMEDIT"
10352 fi
10353
10354     if test -n "$ac_tool_prefix"; then
10355   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
10356 set dummy ${ac_tool_prefix}lipo; ac_word=$2
10357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10358 $as_echo_n "checking for $ac_word... " >&6; }
10359 if ${ac_cv_prog_LIPO+:} false; then :
10360   $as_echo_n "(cached) " >&6
10361 else
10362   if test -n "$LIPO"; then
10363   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
10364 else
10365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10366 for as_dir in $PATH
10367 do
10368   IFS=$as_save_IFS
10369   test -z "$as_dir" && as_dir=.
10370     for ac_exec_ext in '' $ac_executable_extensions; do
10371   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10372     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
10373     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10374     break 2
10375   fi
10376 done
10377   done
10378 IFS=$as_save_IFS
10379
10380 fi
10381 fi
10382 LIPO=$ac_cv_prog_LIPO
10383 if test -n "$LIPO"; then
10384   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
10385 $as_echo "$LIPO" >&6; }
10386 else
10387   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10388 $as_echo "no" >&6; }
10389 fi
10390
10391
10392 fi
10393 if test -z "$ac_cv_prog_LIPO"; then
10394   ac_ct_LIPO=$LIPO
10395   # Extract the first word of "lipo", so it can be a program name with args.
10396 set dummy lipo; ac_word=$2
10397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10398 $as_echo_n "checking for $ac_word... " >&6; }
10399 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
10400   $as_echo_n "(cached) " >&6
10401 else
10402   if test -n "$ac_ct_LIPO"; then
10403   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
10404 else
10405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10406 for as_dir in $PATH
10407 do
10408   IFS=$as_save_IFS
10409   test -z "$as_dir" && as_dir=.
10410     for ac_exec_ext in '' $ac_executable_extensions; do
10411   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10412     ac_cv_prog_ac_ct_LIPO="lipo"
10413     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10414     break 2
10415   fi
10416 done
10417   done
10418 IFS=$as_save_IFS
10419
10420 fi
10421 fi
10422 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
10423 if test -n "$ac_ct_LIPO"; then
10424   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
10425 $as_echo "$ac_ct_LIPO" >&6; }
10426 else
10427   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10428 $as_echo "no" >&6; }
10429 fi
10430
10431   if test "x$ac_ct_LIPO" = x; then
10432     LIPO=":"
10433   else
10434     case $cross_compiling:$ac_tool_warned in
10435 yes:)
10436 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10437 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10438 ac_tool_warned=yes ;;
10439 esac
10440     LIPO=$ac_ct_LIPO
10441   fi
10442 else
10443   LIPO="$ac_cv_prog_LIPO"
10444 fi
10445
10446     if test -n "$ac_tool_prefix"; then
10447   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
10448 set dummy ${ac_tool_prefix}otool; ac_word=$2
10449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10450 $as_echo_n "checking for $ac_word... " >&6; }
10451 if ${ac_cv_prog_OTOOL+:} false; then :
10452   $as_echo_n "(cached) " >&6
10453 else
10454   if test -n "$OTOOL"; then
10455   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
10456 else
10457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10458 for as_dir in $PATH
10459 do
10460   IFS=$as_save_IFS
10461   test -z "$as_dir" && as_dir=.
10462     for ac_exec_ext in '' $ac_executable_extensions; do
10463   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10464     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
10465     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10466     break 2
10467   fi
10468 done
10469   done
10470 IFS=$as_save_IFS
10471
10472 fi
10473 fi
10474 OTOOL=$ac_cv_prog_OTOOL
10475 if test -n "$OTOOL"; then
10476   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
10477 $as_echo "$OTOOL" >&6; }
10478 else
10479   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10480 $as_echo "no" >&6; }
10481 fi
10482
10483
10484 fi
10485 if test -z "$ac_cv_prog_OTOOL"; then
10486   ac_ct_OTOOL=$OTOOL
10487   # Extract the first word of "otool", so it can be a program name with args.
10488 set dummy otool; ac_word=$2
10489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10490 $as_echo_n "checking for $ac_word... " >&6; }
10491 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
10492   $as_echo_n "(cached) " >&6
10493 else
10494   if test -n "$ac_ct_OTOOL"; then
10495   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
10496 else
10497 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10498 for as_dir in $PATH
10499 do
10500   IFS=$as_save_IFS
10501   test -z "$as_dir" && as_dir=.
10502     for ac_exec_ext in '' $ac_executable_extensions; do
10503   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10504     ac_cv_prog_ac_ct_OTOOL="otool"
10505     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10506     break 2
10507   fi
10508 done
10509   done
10510 IFS=$as_save_IFS
10511
10512 fi
10513 fi
10514 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
10515 if test -n "$ac_ct_OTOOL"; then
10516   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
10517 $as_echo "$ac_ct_OTOOL" >&6; }
10518 else
10519   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10520 $as_echo "no" >&6; }
10521 fi
10522
10523   if test "x$ac_ct_OTOOL" = x; then
10524     OTOOL=":"
10525   else
10526     case $cross_compiling:$ac_tool_warned in
10527 yes:)
10528 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10529 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10530 ac_tool_warned=yes ;;
10531 esac
10532     OTOOL=$ac_ct_OTOOL
10533   fi
10534 else
10535   OTOOL="$ac_cv_prog_OTOOL"
10536 fi
10537
10538     if test -n "$ac_tool_prefix"; then
10539   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
10540 set dummy ${ac_tool_prefix}otool64; ac_word=$2
10541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10542 $as_echo_n "checking for $ac_word... " >&6; }
10543 if ${ac_cv_prog_OTOOL64+:} false; then :
10544   $as_echo_n "(cached) " >&6
10545 else
10546   if test -n "$OTOOL64"; then
10547   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
10548 else
10549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10550 for as_dir in $PATH
10551 do
10552   IFS=$as_save_IFS
10553   test -z "$as_dir" && as_dir=.
10554     for ac_exec_ext in '' $ac_executable_extensions; do
10555   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10556     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
10557     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10558     break 2
10559   fi
10560 done
10561   done
10562 IFS=$as_save_IFS
10563
10564 fi
10565 fi
10566 OTOOL64=$ac_cv_prog_OTOOL64
10567 if test -n "$OTOOL64"; then
10568   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
10569 $as_echo "$OTOOL64" >&6; }
10570 else
10571   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10572 $as_echo "no" >&6; }
10573 fi
10574
10575
10576 fi
10577 if test -z "$ac_cv_prog_OTOOL64"; then
10578   ac_ct_OTOOL64=$OTOOL64
10579   # Extract the first word of "otool64", so it can be a program name with args.
10580 set dummy otool64; ac_word=$2
10581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10582 $as_echo_n "checking for $ac_word... " >&6; }
10583 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
10584   $as_echo_n "(cached) " >&6
10585 else
10586   if test -n "$ac_ct_OTOOL64"; then
10587   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
10588 else
10589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10590 for as_dir in $PATH
10591 do
10592   IFS=$as_save_IFS
10593   test -z "$as_dir" && as_dir=.
10594     for ac_exec_ext in '' $ac_executable_extensions; do
10595   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10596     ac_cv_prog_ac_ct_OTOOL64="otool64"
10597     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10598     break 2
10599   fi
10600 done
10601   done
10602 IFS=$as_save_IFS
10603
10604 fi
10605 fi
10606 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
10607 if test -n "$ac_ct_OTOOL64"; then
10608   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
10609 $as_echo "$ac_ct_OTOOL64" >&6; }
10610 else
10611   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10612 $as_echo "no" >&6; }
10613 fi
10614
10615   if test "x$ac_ct_OTOOL64" = x; then
10616     OTOOL64=":"
10617   else
10618     case $cross_compiling:$ac_tool_warned in
10619 yes:)
10620 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10621 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10622 ac_tool_warned=yes ;;
10623 esac
10624     OTOOL64=$ac_ct_OTOOL64
10625   fi
10626 else
10627   OTOOL64="$ac_cv_prog_OTOOL64"
10628 fi
10629
10630
10631
10632
10633
10634
10635
10636
10637
10638
10639
10640
10641
10642
10643
10644
10645
10646
10647
10648
10649
10650
10651
10652
10653
10654
10655
10656     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
10657 $as_echo_n "checking for -single_module linker flag... " >&6; }
10658 if ${lt_cv_apple_cc_single_mod+:} false; then :
10659   $as_echo_n "(cached) " >&6
10660 else
10661   lt_cv_apple_cc_single_mod=no
10662       if test -z "$LT_MULTI_MODULE"; then
10663         # By default we will add the -single_module flag. You can override
10664         # by either setting the environment variable LT_MULTI_MODULE
10665         # non-empty at configure time, or by adding -multi_module to the
10666         # link flags.
10667         rm -rf libconftest.dylib*
10668         echo "int foo(void){return 1;}" > conftest.c
10669         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
10670 -dynamiclib -Wl,-single_module conftest.c" >&5
10671         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
10672           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
10673         _lt_result=$?
10674         # If there is a non-empty error log, and "single_module"
10675         # appears in it, assume the flag caused a linker warning
10676         if test -s conftest.err && $GREP single_module conftest.err; then
10677           cat conftest.err >&5
10678         # Otherwise, if the output was created with a 0 exit code from
10679         # the compiler, it worked.
10680         elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
10681           lt_cv_apple_cc_single_mod=yes
10682         else
10683           cat conftest.err >&5
10684         fi
10685         rm -rf libconftest.dylib*
10686         rm -f conftest.*
10687       fi
10688 fi
10689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
10690 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
10691
10692     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
10693 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
10694 if ${lt_cv_ld_exported_symbols_list+:} false; then :
10695   $as_echo_n "(cached) " >&6
10696 else
10697   lt_cv_ld_exported_symbols_list=no
10698       save_LDFLAGS=$LDFLAGS
10699       echo "_main" > conftest.sym
10700       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
10701       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10702 /* end confdefs.h.  */
10703
10704 int
10705 main ()
10706 {
10707
10708   ;
10709   return 0;
10710 }
10711 _ACEOF
10712 if ac_fn_c_try_link "$LINENO"; then :
10713   lt_cv_ld_exported_symbols_list=yes
10714 else
10715   lt_cv_ld_exported_symbols_list=no
10716 fi
10717 rm -f core conftest.err conftest.$ac_objext \
10718     conftest$ac_exeext conftest.$ac_ext
10719         LDFLAGS=$save_LDFLAGS
10720
10721 fi
10722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
10723 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
10724
10725     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
10726 $as_echo_n "checking for -force_load linker flag... " >&6; }
10727 if ${lt_cv_ld_force_load+:} false; then :
10728   $as_echo_n "(cached) " >&6
10729 else
10730   lt_cv_ld_force_load=no
10731       cat > conftest.c << _LT_EOF
10732 int forced_loaded() { return 2;}
10733 _LT_EOF
10734       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
10735       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
10736       echo "$AR cru libconftest.a conftest.o" >&5
10737       $AR cru libconftest.a conftest.o 2>&5
10738       echo "$RANLIB libconftest.a" >&5
10739       $RANLIB libconftest.a 2>&5
10740       cat > conftest.c << _LT_EOF
10741 int main() { return 0;}
10742 _LT_EOF
10743       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
10744       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
10745       _lt_result=$?
10746       if test -s conftest.err && $GREP force_load conftest.err; then
10747         cat conftest.err >&5
10748       elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
10749         lt_cv_ld_force_load=yes
10750       else
10751         cat conftest.err >&5
10752       fi
10753         rm -f conftest.err libconftest.a conftest conftest.c
10754         rm -rf conftest.dSYM
10755
10756 fi
10757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
10758 $as_echo "$lt_cv_ld_force_load" >&6; }
10759     case $host_os in
10760     rhapsody* | darwin1.[012])
10761       _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
10762     darwin1.*)
10763       _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
10764     darwin*) # darwin 5.x on
10765       # if running on 10.5 or later, the deployment target defaults
10766       # to the OS version, if on x86, and 10.4, the deployment
10767       # target defaults to 10.4. Don't you love it?
10768       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
10769         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
10770           _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
10771         10.[012][,.]*)
10772           _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
10773         10.*)
10774           _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
10775       esac
10776     ;;
10777   esac
10778     if test yes = "$lt_cv_apple_cc_single_mod"; then
10779       _lt_dar_single_mod='$single_module'
10780     fi
10781     if test yes = "$lt_cv_ld_exported_symbols_list"; then
10782       _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
10783     else
10784       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
10785     fi
10786     if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
10787       _lt_dsymutil='~$DSYMUTIL $lib || :'
10788     else
10789       _lt_dsymutil=
10790     fi
10791     ;;
10792   esac
10793
10794 # func_munge_path_list VARIABLE PATH
10795 # -----------------------------------
10796 # VARIABLE is name of variable containing _space_ separated list of
10797 # directories to be munged by the contents of PATH, which is string
10798 # having a format:
10799 # "DIR[:DIR]:"
10800 #       string "DIR[ DIR]" will be prepended to VARIABLE
10801 # ":DIR[:DIR]"
10802 #       string "DIR[ DIR]" will be appended to VARIABLE
10803 # "DIRP[:DIRP]::[DIRA:]DIRA"
10804 #       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
10805 #       "DIRA[ DIRA]" will be appended to VARIABLE
10806 # "DIR[:DIR]"
10807 #       VARIABLE will be replaced by "DIR[ DIR]"
10808 func_munge_path_list ()
10809 {
10810     case x$2 in
10811     x)
10812         ;;
10813     *:)
10814         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
10815         ;;
10816     x:*)
10817         eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
10818         ;;
10819     *::*)
10820         eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
10821         eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
10822         ;;
10823     *)
10824         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
10825         ;;
10826     esac
10827 }
10828
10829 for ac_header in dlfcn.h
10830 do :
10831   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
10832 "
10833 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
10834   cat >>confdefs.h <<_ACEOF
10835 #define HAVE_DLFCN_H 1
10836 _ACEOF
10837
10838 fi
10839
10840 done
10841
10842
10843
10844 func_stripname_cnf ()
10845 {
10846   case $2 in
10847   .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;;
10848   *)  func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;;
10849   esac
10850 } # func_stripname_cnf
10851
10852
10853
10854
10855
10856 # Set options
10857
10858
10859
10860         enable_dlopen=no
10861
10862
10863   enable_win32_dll=no
10864
10865
10866             # Check whether --enable-shared was given.
10867 if test "${enable_shared+set}" = set; then :
10868   enableval=$enable_shared; p=${PACKAGE-default}
10869     case $enableval in
10870     yes) enable_shared=yes ;;
10871     no) enable_shared=no ;;
10872     *)
10873       enable_shared=no
10874       # Look at the argument we got.  We use all the common list separators.
10875       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10876       for pkg in $enableval; do
10877         IFS=$lt_save_ifs
10878         if test "X$pkg" = "X$p"; then
10879           enable_shared=yes
10880         fi
10881       done
10882       IFS=$lt_save_ifs
10883       ;;
10884     esac
10885 else
10886   enable_shared=yes
10887 fi
10888
10889
10890
10891
10892
10893
10894
10895
10896
10897   # Check whether --enable-static was given.
10898 if test "${enable_static+set}" = set; then :
10899   enableval=$enable_static; p=${PACKAGE-default}
10900     case $enableval in
10901     yes) enable_static=yes ;;
10902     no) enable_static=no ;;
10903     *)
10904      enable_static=no
10905       # Look at the argument we got.  We use all the common list separators.
10906       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10907       for pkg in $enableval; do
10908         IFS=$lt_save_ifs
10909         if test "X$pkg" = "X$p"; then
10910           enable_static=yes
10911         fi
10912       done
10913       IFS=$lt_save_ifs
10914       ;;
10915     esac
10916 else
10917   enable_static=yes
10918 fi
10919
10920
10921
10922
10923
10924
10925
10926
10927
10928
10929 # Check whether --with-pic was given.
10930 if test "${with_pic+set}" = set; then :
10931   withval=$with_pic; lt_p=${PACKAGE-default}
10932     case $withval in
10933     yes|no) pic_mode=$withval ;;
10934     *)
10935       pic_mode=default
10936       # Look at the argument we got.  We use all the common list separators.
10937       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10938       for lt_pkg in $withval; do
10939         IFS=$lt_save_ifs
10940         if test "X$lt_pkg" = "X$lt_p"; then
10941           pic_mode=yes
10942         fi
10943       done
10944       IFS=$lt_save_ifs
10945       ;;
10946     esac
10947 else
10948   pic_mode=default
10949 fi
10950
10951
10952
10953
10954
10955
10956
10957
10958   # Check whether --enable-fast-install was given.
10959 if test "${enable_fast_install+set}" = set; then :
10960   enableval=$enable_fast_install; p=${PACKAGE-default}
10961     case $enableval in
10962     yes) enable_fast_install=yes ;;
10963     no) enable_fast_install=no ;;
10964     *)
10965       enable_fast_install=no
10966       # Look at the argument we got.  We use all the common list separators.
10967       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10968       for pkg in $enableval; do
10969         IFS=$lt_save_ifs
10970         if test "X$pkg" = "X$p"; then
10971           enable_fast_install=yes
10972         fi
10973       done
10974       IFS=$lt_save_ifs
10975       ;;
10976     esac
10977 else
10978   enable_fast_install=yes
10979 fi
10980
10981
10982
10983
10984
10985
10986
10987
10988   shared_archive_member_spec=
10989 case $host,$enable_shared in
10990 power*-*-aix[5-9]*,yes)
10991   { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
10992 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
10993
10994 # Check whether --with-aix-soname was given.
10995 if test "${with_aix_soname+set}" = set; then :
10996   withval=$with_aix_soname; case $withval in
10997     aix|svr4|both)
10998       ;;
10999     *)
11000       as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
11001       ;;
11002     esac
11003     lt_cv_with_aix_soname=$with_aix_soname
11004 else
11005   if ${lt_cv_with_aix_soname+:} false; then :
11006   $as_echo_n "(cached) " >&6
11007 else
11008   lt_cv_with_aix_soname=aix
11009 fi
11010
11011     with_aix_soname=$lt_cv_with_aix_soname
11012 fi
11013
11014   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
11015 $as_echo "$with_aix_soname" >&6; }
11016   if test aix != "$with_aix_soname"; then
11017     # For the AIX way of multilib, we name the shared archive member
11018     # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
11019     # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
11020     # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
11021     # the AIX toolchain works better with OBJECT_MODE set (default 32).
11022     if test 64 = "${OBJECT_MODE-32}"; then
11023       shared_archive_member_spec=shr_64
11024     else
11025       shared_archive_member_spec=shr
11026     fi
11027   fi
11028   ;;
11029 *)
11030   with_aix_soname=aix
11031   ;;
11032 esac
11033
11034
11035
11036
11037
11038
11039
11040
11041
11042
11043 # This can be used to rebuild libtool when needed
11044 LIBTOOL_DEPS=$ltmain
11045
11046 # Always use our own libtool.
11047 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
11048
11049
11050
11051
11052
11053
11054
11055
11056
11057
11058
11059
11060
11061
11062
11063
11064
11065
11066
11067
11068
11069
11070
11071
11072
11073
11074
11075
11076
11077
11078 test -z "$LN_S" && LN_S="ln -s"
11079
11080
11081
11082
11083
11084
11085
11086
11087
11088
11089
11090
11091
11092
11093 if test -n "${ZSH_VERSION+set}"; then
11094    setopt NO_GLOB_SUBST
11095 fi
11096
11097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
11098 $as_echo_n "checking for objdir... " >&6; }
11099 if ${lt_cv_objdir+:} false; then :
11100   $as_echo_n "(cached) " >&6
11101 else
11102   rm -f .libs 2>/dev/null
11103 mkdir .libs 2>/dev/null
11104 if test -d .libs; then
11105   lt_cv_objdir=.libs
11106 else
11107   # MS-DOS does not allow filenames that begin with a dot.
11108   lt_cv_objdir=_libs
11109 fi
11110 rmdir .libs 2>/dev/null
11111 fi
11112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
11113 $as_echo "$lt_cv_objdir" >&6; }
11114 objdir=$lt_cv_objdir
11115
11116
11117
11118
11119
11120 cat >>confdefs.h <<_ACEOF
11121 #define LT_OBJDIR "$lt_cv_objdir/"
11122 _ACEOF
11123
11124
11125
11126
11127 case $host_os in
11128 aix3*)
11129   # AIX sometimes has problems with the GCC collect2 program.  For some
11130   # reason, if we set the COLLECT_NAMES environment variable, the problems
11131   # vanish in a puff of smoke.
11132   if test set != "${COLLECT_NAMES+set}"; then
11133     COLLECT_NAMES=
11134     export COLLECT_NAMES
11135   fi
11136   ;;
11137 esac
11138
11139 # Global variables:
11140 ofile=libtool
11141 can_build_shared=yes
11142
11143 # All known linkers require a '.a' archive for static linking (except MSVC,
11144 # which needs '.lib').
11145 libext=a
11146
11147 with_gnu_ld=$lt_cv_prog_gnu_ld
11148
11149 old_CC=$CC
11150 old_CFLAGS=$CFLAGS
11151
11152 # Set sane defaults for various variables
11153 test -z "$CC" && CC=cc
11154 test -z "$LTCC" && LTCC=$CC
11155 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
11156 test -z "$LD" && LD=ld
11157 test -z "$ac_objext" && ac_objext=o
11158
11159 func_cc_basename $compiler
11160 cc_basename=$func_cc_basename_result
11161
11162
11163 # Only perform the check for file, if the check method requires it
11164 test -z "$MAGIC_CMD" && MAGIC_CMD=file
11165 case $deplibs_check_method in
11166 file_magic*)
11167   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
11168     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
11169 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
11170 if ${lt_cv_path_MAGIC_CMD+:} false; then :
11171   $as_echo_n "(cached) " >&6
11172 else
11173   case $MAGIC_CMD in
11174 [\\/*] |  ?:[\\/]*)
11175   lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
11176   ;;
11177 *)
11178   lt_save_MAGIC_CMD=$MAGIC_CMD
11179   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
11180   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11181   for ac_dir in $ac_dummy; do
11182     IFS=$lt_save_ifs
11183     test -z "$ac_dir" && ac_dir=.
11184     if test -f "$ac_dir/${ac_tool_prefix}file"; then
11185       lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
11186       if test -n "$file_magic_test_file"; then
11187         case $deplibs_check_method in
11188         "file_magic "*)
11189           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
11190           MAGIC_CMD=$lt_cv_path_MAGIC_CMD
11191           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11192             $EGREP "$file_magic_regex" > /dev/null; then
11193             :
11194           else
11195             cat <<_LT_EOF 1>&2
11196
11197 *** Warning: the command libtool uses to detect shared libraries,
11198 *** $file_magic_cmd, produces output that libtool cannot recognize.
11199 *** The result is that libtool may fail to recognize shared libraries
11200 *** as such.  This will affect the creation of libtool libraries that
11201 *** depend on shared libraries, but programs linked with such libtool
11202 *** libraries will work regardless of this problem.  Nevertheless, you
11203 *** may want to report the problem to your system manager and/or to
11204 *** bug-libtool@gnu.org
11205
11206 _LT_EOF
11207           fi ;;
11208         esac
11209       fi
11210       break
11211     fi
11212   done
11213   IFS=$lt_save_ifs
11214   MAGIC_CMD=$lt_save_MAGIC_CMD
11215   ;;
11216 esac
11217 fi
11218
11219 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
11220 if test -n "$MAGIC_CMD"; then
11221   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
11222 $as_echo "$MAGIC_CMD" >&6; }
11223 else
11224   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11225 $as_echo "no" >&6; }
11226 fi
11227
11228
11229
11230
11231
11232 if test -z "$lt_cv_path_MAGIC_CMD"; then
11233   if test -n "$ac_tool_prefix"; then
11234     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
11235 $as_echo_n "checking for file... " >&6; }
11236 if ${lt_cv_path_MAGIC_CMD+:} false; then :
11237   $as_echo_n "(cached) " >&6
11238 else
11239   case $MAGIC_CMD in
11240 [\\/*] |  ?:[\\/]*)
11241   lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
11242   ;;
11243 *)
11244   lt_save_MAGIC_CMD=$MAGIC_CMD
11245   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
11246   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11247   for ac_dir in $ac_dummy; do
11248     IFS=$lt_save_ifs
11249     test -z "$ac_dir" && ac_dir=.
11250     if test -f "$ac_dir/file"; then
11251       lt_cv_path_MAGIC_CMD=$ac_dir/"file"
11252       if test -n "$file_magic_test_file"; then
11253         case $deplibs_check_method in
11254         "file_magic "*)
11255           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
11256           MAGIC_CMD=$lt_cv_path_MAGIC_CMD
11257           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11258             $EGREP "$file_magic_regex" > /dev/null; then
11259             :
11260           else
11261             cat <<_LT_EOF 1>&2
11262
11263 *** Warning: the command libtool uses to detect shared libraries,
11264 *** $file_magic_cmd, produces output that libtool cannot recognize.
11265 *** The result is that libtool may fail to recognize shared libraries
11266 *** as such.  This will affect the creation of libtool libraries that
11267 *** depend on shared libraries, but programs linked with such libtool
11268 *** libraries will work regardless of this problem.  Nevertheless, you
11269 *** may want to report the problem to your system manager and/or to
11270 *** bug-libtool@gnu.org
11271
11272 _LT_EOF
11273           fi ;;
11274         esac
11275       fi
11276       break
11277     fi
11278   done
11279   IFS=$lt_save_ifs
11280   MAGIC_CMD=$lt_save_MAGIC_CMD
11281   ;;
11282 esac
11283 fi
11284
11285 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
11286 if test -n "$MAGIC_CMD"; then
11287   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
11288 $as_echo "$MAGIC_CMD" >&6; }
11289 else
11290   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11291 $as_echo "no" >&6; }
11292 fi
11293
11294
11295   else
11296     MAGIC_CMD=:
11297   fi
11298 fi
11299
11300   fi
11301   ;;
11302 esac
11303
11304 # Use C for the default configuration in the libtool script
11305
11306 lt_save_CC=$CC
11307 ac_ext=c
11308 ac_cpp='$CPP $CPPFLAGS'
11309 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11310 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11311 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11312
11313
11314 # Source file extension for C test sources.
11315 ac_ext=c
11316
11317 # Object file extension for compiled C test sources.
11318 objext=o
11319 objext=$objext
11320
11321 # Code to be used in simple compile tests
11322 lt_simple_compile_test_code="int some_variable = 0;"
11323
11324 # Code to be used in simple link tests
11325 lt_simple_link_test_code='int main(){return(0);}'
11326
11327
11328
11329
11330
11331
11332
11333 # If no C compiler was specified, use CC.
11334 LTCC=${LTCC-"$CC"}
11335
11336 # If no C compiler flags were specified, use CFLAGS.
11337 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11338
11339 # Allow CC to be a program name with arguments.
11340 compiler=$CC
11341
11342 # Save the default compiler, since it gets overwritten when the other
11343 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
11344 compiler_DEFAULT=$CC
11345
11346 # save warnings/boilerplate of simple test code
11347 ac_outfile=conftest.$ac_objext
11348 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11349 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11350 _lt_compiler_boilerplate=`cat conftest.err`
11351 $RM conftest*
11352
11353 ac_outfile=conftest.$ac_objext
11354 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11355 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11356 _lt_linker_boilerplate=`cat conftest.err`
11357 $RM -r conftest*
11358
11359
11360 ## CAVEAT EMPTOR:
11361 ## There is no encapsulation within the following macros, do not change
11362 ## the running order or otherwise move them around unless you know exactly
11363 ## what you are doing...
11364 if test -n "$compiler"; then
11365
11366 lt_prog_compiler_no_builtin_flag=
11367
11368 if test yes = "$GCC"; then
11369   case $cc_basename in
11370   nvcc*)
11371     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
11372   *)
11373     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
11374   esac
11375
11376   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
11377 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
11378 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
11379   $as_echo_n "(cached) " >&6
11380 else
11381   lt_cv_prog_compiler_rtti_exceptions=no
11382    ac_outfile=conftest.$ac_objext
11383    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11384    lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
11385    # Insert the option either (1) after the last *FLAGS variable, or
11386    # (2) before a word containing "conftest.", or (3) at the end.
11387    # Note that $ac_compile itself does not contain backslashes and begins
11388    # with a dollar sign (not a hyphen), so the echo should work correctly.
11389    # The option is referenced via a variable to avoid confusing sed.
11390    lt_compile=`echo "$ac_compile" | $SED \
11391    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11392    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11393    -e 's:$: $lt_compiler_flag:'`
11394    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11395    (eval "$lt_compile" 2>conftest.err)
11396    ac_status=$?
11397    cat conftest.err >&5
11398    echo "$as_me:$LINENO: \$? = $ac_status" >&5
11399    if (exit $ac_status) && test -s "$ac_outfile"; then
11400      # The compiler can only warn and ignore the option if not recognized
11401      # So say no if there are warnings other than the usual output.
11402      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11403      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11404      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11405        lt_cv_prog_compiler_rtti_exceptions=yes
11406      fi
11407    fi
11408    $RM conftest*
11409
11410 fi
11411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
11412 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
11413
11414 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
11415     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
11416 else
11417     :
11418 fi
11419
11420 fi
11421
11422
11423
11424
11425
11426
11427   lt_prog_compiler_wl=
11428 lt_prog_compiler_pic=
11429 lt_prog_compiler_static=
11430
11431
11432   if test yes = "$GCC"; then
11433     lt_prog_compiler_wl='-Wl,'
11434     lt_prog_compiler_static='-static'
11435
11436     case $host_os in
11437       aix*)
11438       # All AIX code is PIC.
11439       if test ia64 = "$host_cpu"; then
11440         # AIX 5 now supports IA64 processor
11441         lt_prog_compiler_static='-Bstatic'
11442       fi
11443       lt_prog_compiler_pic='-fPIC'
11444       ;;
11445
11446     amigaos*)
11447       case $host_cpu in
11448       powerpc)
11449             # see comment about AmigaOS4 .so support
11450             lt_prog_compiler_pic='-fPIC'
11451         ;;
11452       m68k)
11453             # FIXME: we need at least 68020 code to build shared libraries, but
11454             # adding the '-m68020' flag to GCC prevents building anything better,
11455             # like '-m68040'.
11456             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
11457         ;;
11458       esac
11459       ;;
11460
11461     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11462       # PIC is the default for these OSes.
11463       ;;
11464
11465     mingw* | cygwin* | pw32* | os2* | cegcc*)
11466       # This hack is so that the source file can tell whether it is being
11467       # built for inclusion in a dll (and should export symbols for example).
11468       # Although the cygwin gcc ignores -fPIC, still need this for old-style
11469       # (--disable-auto-import) libraries
11470       lt_prog_compiler_pic='-DDLL_EXPORT'
11471       case $host_os in
11472       os2*)
11473         lt_prog_compiler_static='$wl-static'
11474         ;;
11475       esac
11476       ;;
11477
11478     darwin* | rhapsody*)
11479       # PIC is the default on this platform
11480       # Common symbols not allowed in MH_DYLIB files
11481       lt_prog_compiler_pic='-fno-common'
11482       ;;
11483
11484     haiku*)
11485       # PIC is the default for Haiku.
11486       # The "-static" flag exists, but is broken.
11487       lt_prog_compiler_static=
11488       ;;
11489
11490     hpux*)
11491       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
11492       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
11493       # sets the default TLS model and affects inlining.
11494       case $host_cpu in
11495       hppa*64*)
11496         # +Z the default
11497         ;;
11498       *)
11499         lt_prog_compiler_pic='-fPIC'
11500         ;;
11501       esac
11502       ;;
11503
11504     interix[3-9]*)
11505       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11506       # Instead, we relocate shared libraries at runtime.
11507       ;;
11508
11509     msdosdjgpp*)
11510       # Just because we use GCC doesn't mean we suddenly get shared libraries
11511       # on systems that don't support them.
11512       lt_prog_compiler_can_build_shared=no
11513       enable_shared=no
11514       ;;
11515
11516     *nto* | *qnx*)
11517       # QNX uses GNU C++, but need to define -shared option too, otherwise
11518       # it will coredump.
11519       lt_prog_compiler_pic='-fPIC -shared'
11520       ;;
11521
11522     sysv4*MP*)
11523       if test -d /usr/nec; then
11524         lt_prog_compiler_pic=-Kconform_pic
11525       fi
11526       ;;
11527
11528     *)
11529       lt_prog_compiler_pic='-fPIC'
11530       ;;
11531     esac
11532
11533     case $cc_basename in
11534     nvcc*) # Cuda Compiler Driver 2.2
11535       lt_prog_compiler_wl='-Xlinker '
11536       if test -n "$lt_prog_compiler_pic"; then
11537         lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
11538       fi
11539       ;;
11540     esac
11541   else
11542     # PORTME Check for flag to pass linker flags through the system compiler.
11543     case $host_os in
11544     aix*)
11545       lt_prog_compiler_wl='-Wl,'
11546       if test ia64 = "$host_cpu"; then
11547         # AIX 5 now supports IA64 processor
11548         lt_prog_compiler_static='-Bstatic'
11549       else
11550         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
11551       fi
11552       ;;
11553
11554     darwin* | rhapsody*)
11555       # PIC is the default on this platform
11556       # Common symbols not allowed in MH_DYLIB files
11557       lt_prog_compiler_pic='-fno-common'
11558       case $cc_basename in
11559       nagfor*)
11560         # NAG Fortran compiler
11561         lt_prog_compiler_wl='-Wl,-Wl,,'
11562         lt_prog_compiler_pic='-PIC'
11563         lt_prog_compiler_static='-Bstatic'
11564         ;;
11565       esac
11566       ;;
11567
11568     mingw* | cygwin* | pw32* | os2* | cegcc*)
11569       # This hack is so that the source file can tell whether it is being
11570       # built for inclusion in a dll (and should export symbols for example).
11571       lt_prog_compiler_pic='-DDLL_EXPORT'
11572       case $host_os in
11573       os2*)
11574         lt_prog_compiler_static='$wl-static'
11575         ;;
11576       esac
11577       ;;
11578
11579     hpux9* | hpux10* | hpux11*)
11580       lt_prog_compiler_wl='-Wl,'
11581       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11582       # not for PA HP-UX.
11583       case $host_cpu in
11584       hppa*64*|ia64*)
11585         # +Z the default
11586         ;;
11587       *)
11588         lt_prog_compiler_pic='+Z'
11589         ;;
11590       esac
11591       # Is there a better lt_prog_compiler_static that works with the bundled CC?
11592       lt_prog_compiler_static='$wl-a ${wl}archive'
11593       ;;
11594
11595     irix5* | irix6* | nonstopux*)
11596       lt_prog_compiler_wl='-Wl,'
11597       # PIC (with -KPIC) is the default.
11598       lt_prog_compiler_static='-non_shared'
11599       ;;
11600
11601     linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11602       case $cc_basename in
11603       # old Intel for x86_64, which still supported -KPIC.
11604       ecc*)
11605         lt_prog_compiler_wl='-Wl,'
11606         lt_prog_compiler_pic='-KPIC'
11607         lt_prog_compiler_static='-static'
11608         ;;
11609       # icc used to be incompatible with GCC.
11610       # ICC 10 doesn't accept -KPIC any more.
11611       icc* | ifort*)
11612         lt_prog_compiler_wl='-Wl,'
11613         lt_prog_compiler_pic='-fPIC'
11614         lt_prog_compiler_static='-static'
11615         ;;
11616       # Lahey Fortran 8.1.
11617       lf95*)
11618         lt_prog_compiler_wl='-Wl,'
11619         lt_prog_compiler_pic='--shared'
11620         lt_prog_compiler_static='--static'
11621         ;;
11622       nagfor*)
11623         # NAG Fortran compiler
11624         lt_prog_compiler_wl='-Wl,-Wl,,'
11625         lt_prog_compiler_pic='-PIC'
11626         lt_prog_compiler_static='-Bstatic'
11627         ;;
11628       tcc*)
11629         # Fabrice Bellard et al's Tiny C Compiler
11630         lt_prog_compiler_wl='-Wl,'
11631         lt_prog_compiler_pic='-fPIC'
11632         lt_prog_compiler_static='-static'
11633         ;;
11634       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
11635         # Portland Group compilers (*not* the Pentium gcc compiler,
11636         # which looks to be a dead project)
11637         lt_prog_compiler_wl='-Wl,'
11638         lt_prog_compiler_pic='-fpic'
11639         lt_prog_compiler_static='-Bstatic'
11640         ;;
11641       ccc*)
11642         lt_prog_compiler_wl='-Wl,'
11643         # All Alpha code is PIC.
11644         lt_prog_compiler_static='-non_shared'
11645         ;;
11646       xl* | bgxl* | bgf* | mpixl*)
11647         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
11648         lt_prog_compiler_wl='-Wl,'
11649         lt_prog_compiler_pic='-qpic'
11650         lt_prog_compiler_static='-qstaticlink'
11651         ;;
11652       *)
11653         case `$CC -V 2>&1 | sed 5q` in
11654         *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
11655           # Sun Fortran 8.3 passes all unrecognized flags to the linker
11656           lt_prog_compiler_pic='-KPIC'
11657           lt_prog_compiler_static='-Bstatic'
11658           lt_prog_compiler_wl=''
11659           ;;
11660         *Sun\ F* | *Sun*Fortran*)
11661           lt_prog_compiler_pic='-KPIC'
11662           lt_prog_compiler_static='-Bstatic'
11663           lt_prog_compiler_wl='-Qoption ld '
11664           ;;
11665         *Sun\ C*)
11666           # Sun C 5.9
11667           lt_prog_compiler_pic='-KPIC'
11668           lt_prog_compiler_static='-Bstatic'
11669           lt_prog_compiler_wl='-Wl,'
11670           ;;
11671         *Intel*\ [CF]*Compiler*)
11672           lt_prog_compiler_wl='-Wl,'
11673           lt_prog_compiler_pic='-fPIC'
11674           lt_prog_compiler_static='-static'
11675           ;;
11676         *Portland\ Group*)
11677           lt_prog_compiler_wl='-Wl,'
11678           lt_prog_compiler_pic='-fpic'
11679           lt_prog_compiler_static='-Bstatic'
11680           ;;
11681         esac
11682         ;;
11683       esac
11684       ;;
11685
11686     newsos6)
11687       lt_prog_compiler_pic='-KPIC'
11688       lt_prog_compiler_static='-Bstatic'
11689       ;;
11690
11691     *nto* | *qnx*)
11692       # QNX uses GNU C++, but need to define -shared option too, otherwise
11693       # it will coredump.
11694       lt_prog_compiler_pic='-fPIC -shared'
11695       ;;
11696
11697     osf3* | osf4* | osf5*)
11698       lt_prog_compiler_wl='-Wl,'
11699       # All OSF/1 code is PIC.
11700       lt_prog_compiler_static='-non_shared'
11701       ;;
11702
11703     rdos*)
11704       lt_prog_compiler_static='-non_shared'
11705       ;;
11706
11707     solaris*)
11708       lt_prog_compiler_pic='-KPIC'
11709       lt_prog_compiler_static='-Bstatic'
11710       case $cc_basename in
11711       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
11712         lt_prog_compiler_wl='-Qoption ld ';;
11713       *)
11714         lt_prog_compiler_wl='-Wl,';;
11715       esac
11716       ;;
11717
11718     sunos4*)
11719       lt_prog_compiler_wl='-Qoption ld '
11720       lt_prog_compiler_pic='-PIC'
11721       lt_prog_compiler_static='-Bstatic'
11722       ;;
11723
11724     sysv4 | sysv4.2uw2* | sysv4.3*)
11725       lt_prog_compiler_wl='-Wl,'
11726       lt_prog_compiler_pic='-KPIC'
11727       lt_prog_compiler_static='-Bstatic'
11728       ;;
11729
11730     sysv4*MP*)
11731       if test -d /usr/nec; then
11732         lt_prog_compiler_pic='-Kconform_pic'
11733         lt_prog_compiler_static='-Bstatic'
11734       fi
11735       ;;
11736
11737     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11738       lt_prog_compiler_wl='-Wl,'
11739       lt_prog_compiler_pic='-KPIC'
11740       lt_prog_compiler_static='-Bstatic'
11741       ;;
11742
11743     unicos*)
11744       lt_prog_compiler_wl='-Wl,'
11745       lt_prog_compiler_can_build_shared=no
11746       ;;
11747
11748     uts4*)
11749       lt_prog_compiler_pic='-pic'
11750       lt_prog_compiler_static='-Bstatic'
11751       ;;
11752
11753     *)
11754       lt_prog_compiler_can_build_shared=no
11755       ;;
11756     esac
11757   fi
11758
11759 case $host_os in
11760   # For platforms that do not support PIC, -DPIC is meaningless:
11761   *djgpp*)
11762     lt_prog_compiler_pic=
11763     ;;
11764   *)
11765     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
11766     ;;
11767 esac
11768
11769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
11770 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
11771 if ${lt_cv_prog_compiler_pic+:} false; then :
11772   $as_echo_n "(cached) " >&6
11773 else
11774   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
11775 fi
11776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
11777 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
11778 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
11779
11780 #
11781 # Check to make sure the PIC flag actually works.
11782 #
11783 if test -n "$lt_prog_compiler_pic"; then
11784   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
11785 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
11786 if ${lt_cv_prog_compiler_pic_works+:} false; then :
11787   $as_echo_n "(cached) " >&6
11788 else
11789   lt_cv_prog_compiler_pic_works=no
11790    ac_outfile=conftest.$ac_objext
11791    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11792    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
11793    # Insert the option either (1) after the last *FLAGS variable, or
11794    # (2) before a word containing "conftest.", or (3) at the end.
11795    # Note that $ac_compile itself does not contain backslashes and begins
11796    # with a dollar sign (not a hyphen), so the echo should work correctly.
11797    # The option is referenced via a variable to avoid confusing sed.
11798    lt_compile=`echo "$ac_compile" | $SED \
11799    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11800    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11801    -e 's:$: $lt_compiler_flag:'`
11802    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11803    (eval "$lt_compile" 2>conftest.err)
11804    ac_status=$?
11805    cat conftest.err >&5
11806    echo "$as_me:$LINENO: \$? = $ac_status" >&5
11807    if (exit $ac_status) && test -s "$ac_outfile"; then
11808      # The compiler can only warn and ignore the option if not recognized
11809      # So say no if there are warnings other than the usual output.
11810      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11811      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11812      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11813        lt_cv_prog_compiler_pic_works=yes
11814      fi
11815    fi
11816    $RM conftest*
11817
11818 fi
11819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
11820 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
11821
11822 if test yes = "$lt_cv_prog_compiler_pic_works"; then
11823     case $lt_prog_compiler_pic in
11824      "" | " "*) ;;
11825      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
11826      esac
11827 else
11828     lt_prog_compiler_pic=
11829      lt_prog_compiler_can_build_shared=no
11830 fi
11831
11832 fi
11833
11834
11835
11836
11837
11838
11839
11840
11841
11842
11843
11844 #
11845 # Check to make sure the static flag actually works.
11846 #
11847 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
11848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11849 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
11850 if ${lt_cv_prog_compiler_static_works+:} false; then :
11851   $as_echo_n "(cached) " >&6
11852 else
11853   lt_cv_prog_compiler_static_works=no
11854    save_LDFLAGS=$LDFLAGS
11855    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11856    echo "$lt_simple_link_test_code" > conftest.$ac_ext
11857    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11858      # The linker can only warn and ignore the option if not recognized
11859      # So say no if there are warnings
11860      if test -s conftest.err; then
11861        # Append any errors to the config.log.
11862        cat conftest.err 1>&5
11863        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11864        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11865        if diff conftest.exp conftest.er2 >/dev/null; then
11866          lt_cv_prog_compiler_static_works=yes
11867        fi
11868      else
11869        lt_cv_prog_compiler_static_works=yes
11870      fi
11871    fi
11872    $RM -r conftest*
11873    LDFLAGS=$save_LDFLAGS
11874
11875 fi
11876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
11877 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
11878
11879 if test yes = "$lt_cv_prog_compiler_static_works"; then
11880     :
11881 else
11882     lt_prog_compiler_static=
11883 fi
11884
11885
11886
11887
11888
11889
11890
11891   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11892 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11893 if ${lt_cv_prog_compiler_c_o+:} false; then :
11894   $as_echo_n "(cached) " >&6
11895 else
11896   lt_cv_prog_compiler_c_o=no
11897    $RM -r conftest 2>/dev/null
11898    mkdir conftest
11899    cd conftest
11900    mkdir out
11901    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11902
11903    lt_compiler_flag="-o out/conftest2.$ac_objext"
11904    # Insert the option either (1) after the last *FLAGS variable, or
11905    # (2) before a word containing "conftest.", or (3) at the end.
11906    # Note that $ac_compile itself does not contain backslashes and begins
11907    # with a dollar sign (not a hyphen), so the echo should work correctly.
11908    lt_compile=`echo "$ac_compile" | $SED \
11909    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11910    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11911    -e 's:$: $lt_compiler_flag:'`
11912    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11913    (eval "$lt_compile" 2>out/conftest.err)
11914    ac_status=$?
11915    cat out/conftest.err >&5
11916    echo "$as_me:$LINENO: \$? = $ac_status" >&5
11917    if (exit $ac_status) && test -s out/conftest2.$ac_objext
11918    then
11919      # The compiler can only warn and ignore the option if not recognized
11920      # So say no if there are warnings
11921      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
11922      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11923      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11924        lt_cv_prog_compiler_c_o=yes
11925      fi
11926    fi
11927    chmod u+w . 2>&5
11928    $RM conftest*
11929    # SGI C++ compiler will create directory out/ii_files/ for
11930    # template instantiation
11931    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11932    $RM out/* && rmdir out
11933    cd ..
11934    $RM -r conftest
11935    $RM conftest*
11936
11937 fi
11938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
11939 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
11940
11941
11942
11943
11944
11945
11946   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11947 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11948 if ${lt_cv_prog_compiler_c_o+:} false; then :
11949   $as_echo_n "(cached) " >&6
11950 else
11951   lt_cv_prog_compiler_c_o=no
11952    $RM -r conftest 2>/dev/null
11953    mkdir conftest
11954    cd conftest
11955    mkdir out
11956    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11957
11958    lt_compiler_flag="-o out/conftest2.$ac_objext"
11959    # Insert the option either (1) after the last *FLAGS variable, or
11960    # (2) before a word containing "conftest.", or (3) at the end.
11961    # Note that $ac_compile itself does not contain backslashes and begins
11962    # with a dollar sign (not a hyphen), so the echo should work correctly.
11963    lt_compile=`echo "$ac_compile" | $SED \
11964    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11965    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11966    -e 's:$: $lt_compiler_flag:'`
11967    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11968    (eval "$lt_compile" 2>out/conftest.err)
11969    ac_status=$?
11970    cat out/conftest.err >&5
11971    echo "$as_me:$LINENO: \$? = $ac_status" >&5
11972    if (exit $ac_status) && test -s out/conftest2.$ac_objext
11973    then
11974      # The compiler can only warn and ignore the option if not recognized
11975      # So say no if there are warnings
11976      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
11977      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11978      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11979        lt_cv_prog_compiler_c_o=yes
11980      fi
11981    fi
11982    chmod u+w . 2>&5
11983    $RM conftest*
11984    # SGI C++ compiler will create directory out/ii_files/ for
11985    # template instantiation
11986    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11987    $RM out/* && rmdir out
11988    cd ..
11989    $RM -r conftest
11990    $RM conftest*
11991
11992 fi
11993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
11994 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
11995
11996
11997
11998
11999 hard_links=nottested
12000 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
12001   # do not overwrite the value of need_locks provided by the user
12002   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
12003 $as_echo_n "checking if we can lock with hard links... " >&6; }
12004   hard_links=yes
12005   $RM conftest*
12006   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12007   touch conftest.a
12008   ln conftest.a conftest.b 2>&5 || hard_links=no
12009   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12010   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
12011 $as_echo "$hard_links" >&6; }
12012   if test no = "$hard_links"; then
12013     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
12014 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
12015     need_locks=warn
12016   fi
12017 else
12018   need_locks=no
12019 fi
12020
12021
12022
12023
12024
12025
12026   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12027 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12028
12029   runpath_var=
12030   allow_undefined_flag=
12031   always_export_symbols=no
12032   archive_cmds=
12033   archive_expsym_cmds=
12034   compiler_needs_object=no
12035   enable_shared_with_static_runtimes=no
12036   export_dynamic_flag_spec=
12037   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12038   hardcode_automatic=no
12039   hardcode_direct=no
12040   hardcode_direct_absolute=no
12041   hardcode_libdir_flag_spec=
12042   hardcode_libdir_separator=
12043   hardcode_minus_L=no
12044   hardcode_shlibpath_var=unsupported
12045   inherit_rpath=no
12046   link_all_deplibs=unknown
12047   module_cmds=
12048   module_expsym_cmds=
12049   old_archive_from_new_cmds=
12050   old_archive_from_expsyms_cmds=
12051   thread_safe_flag_spec=
12052   whole_archive_flag_spec=
12053   # include_expsyms should be a list of space-separated symbols to be *always*
12054   # included in the symbol list
12055   include_expsyms=
12056   # exclude_expsyms can be an extended regexp of symbols to exclude
12057   # it will be wrapped by ' (' and ')$', so one must not match beginning or
12058   # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
12059   # as well as any symbol that contains 'd'.
12060   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12061   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12062   # platforms (ab)use it in PIC code, but their linkers get confused if
12063   # the symbol is explicitly referenced.  Since portable code cannot
12064   # rely on this symbol name, it's probably fine to never include it in
12065   # preloaded symbol tables.
12066   # Exclude shared library initialization/finalization symbols.
12067   extract_expsyms_cmds=
12068
12069   case $host_os in
12070   cygwin* | mingw* | pw32* | cegcc*)
12071     # FIXME: the MSVC++ port hasn't been tested in a loooong time
12072     # When not using gcc, we currently assume that we are using
12073     # Microsoft Visual C++.
12074     if test yes != "$GCC"; then
12075       with_gnu_ld=no
12076     fi
12077     ;;
12078   interix*)
12079     # we just hope/assume this is gcc and not c89 (= MSVC++)
12080     with_gnu_ld=yes
12081     ;;
12082   openbsd* | bitrig*)
12083     with_gnu_ld=no
12084     ;;
12085   esac
12086
12087   ld_shlibs=yes
12088
12089   # On some targets, GNU ld is compatible enough with the native linker
12090   # that we're better off using the native interface for both.
12091   lt_use_gnu_ld_interface=no
12092   if test yes = "$with_gnu_ld"; then
12093     case $host_os in
12094       aix*)
12095         # The AIX port of GNU ld has always aspired to compatibility
12096         # with the native linker.  However, as the warning in the GNU ld
12097         # block says, versions before 2.19.5* couldn't really create working
12098         # shared libraries, regardless of the interface used.
12099         case `$LD -v 2>&1` in
12100           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
12101           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
12102           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
12103           *)
12104             lt_use_gnu_ld_interface=yes
12105             ;;
12106         esac
12107         ;;
12108       *)
12109         lt_use_gnu_ld_interface=yes
12110         ;;
12111     esac
12112   fi
12113
12114   if test yes = "$lt_use_gnu_ld_interface"; then
12115     # If archive_cmds runs LD, not CC, wlarc should be empty
12116     wlarc='$wl'
12117
12118     # Set some defaults for GNU ld with shared library support. These
12119     # are reset later if shared libraries are not supported. Putting them
12120     # here allows them to be overridden if necessary.
12121     runpath_var=LD_RUN_PATH
12122     hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12123     export_dynamic_flag_spec='$wl--export-dynamic'
12124     # ancient GNU ld didn't support --whole-archive et. al.
12125     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
12126       whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
12127     else
12128       whole_archive_flag_spec=
12129     fi
12130     supports_anon_versioning=no
12131     case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
12132       *GNU\ gold*) supports_anon_versioning=yes ;;
12133       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12134       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12135       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12136       *\ 2.11.*) ;; # other 2.11 versions
12137       *) supports_anon_versioning=yes ;;
12138     esac
12139
12140     # See if GNU ld supports shared libraries.
12141     case $host_os in
12142     aix[3-9]*)
12143       # On AIX/PPC, the GNU linker is very broken
12144       if test ia64 != "$host_cpu"; then
12145         ld_shlibs=no
12146         cat <<_LT_EOF 1>&2
12147
12148 *** Warning: the GNU linker, at least up to release 2.19, is reported
12149 *** to be unable to reliably create shared libraries on AIX.
12150 *** Therefore, libtool is disabling shared libraries support.  If you
12151 *** really care for shared libraries, you may want to install binutils
12152 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
12153 *** You will then need to restart the configuration process.
12154
12155 _LT_EOF
12156       fi
12157       ;;
12158
12159     amigaos*)
12160       case $host_cpu in
12161       powerpc)
12162             # see comment about AmigaOS4 .so support
12163             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12164             archive_expsym_cmds=''
12165         ;;
12166       m68k)
12167             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)'
12168             hardcode_libdir_flag_spec='-L$libdir'
12169             hardcode_minus_L=yes
12170         ;;
12171       esac
12172       ;;
12173
12174     beos*)
12175       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12176         allow_undefined_flag=unsupported
12177         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12178         # support --undefined.  This deserves some investigation.  FIXME
12179         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12180       else
12181         ld_shlibs=no
12182       fi
12183       ;;
12184
12185     cygwin* | mingw* | pw32* | cegcc*)
12186       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
12187       # as there is no search path for DLLs.
12188       hardcode_libdir_flag_spec='-L$libdir'
12189       export_dynamic_flag_spec='$wl--export-all-symbols'
12190       allow_undefined_flag=unsupported
12191       always_export_symbols=no
12192       enable_shared_with_static_runtimes=yes
12193       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'
12194       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
12195
12196       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12197         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12198         # If the export-symbols file already is a .def file, use it as
12199         # is; otherwise, prepend EXPORTS...
12200         archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[   ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([     ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
12201           cp $export_symbols $output_objdir/$soname.def;
12202         else
12203           echo EXPORTS > $output_objdir/$soname.def;
12204           cat $export_symbols >> $output_objdir/$soname.def;
12205         fi~
12206         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12207       else
12208         ld_shlibs=no
12209       fi
12210       ;;
12211
12212     haiku*)
12213       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12214       link_all_deplibs=yes
12215       ;;
12216
12217     os2*)
12218       hardcode_libdir_flag_spec='-L$libdir'
12219       hardcode_minus_L=yes
12220       allow_undefined_flag=unsupported
12221       shrext_cmds=.dll
12222       archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12223         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12224         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12225         $ECHO EXPORTS >> $output_objdir/$libname.def~
12226         emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
12227         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12228         emximp -o $lib $output_objdir/$libname.def'
12229       archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12230         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12231         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12232         $ECHO EXPORTS >> $output_objdir/$libname.def~
12233         prefix_cmds="$SED"~
12234         if test EXPORTS = "`$SED 1q $export_symbols`"; then
12235           prefix_cmds="$prefix_cmds -e 1d";
12236         fi~
12237         prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
12238         cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
12239         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12240         emximp -o $lib $output_objdir/$libname.def'
12241       old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
12242       enable_shared_with_static_runtimes=yes
12243       ;;
12244
12245     interix[3-9]*)
12246       hardcode_direct=no
12247       hardcode_shlibpath_var=no
12248       hardcode_libdir_flag_spec='$wl-rpath,$libdir'
12249       export_dynamic_flag_spec='$wl-E'
12250       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12251       # Instead, shared libraries are loaded at an image base (0x10000000 by
12252       # default) and relocated if they conflict, which is a slow very memory
12253       # consuming and fragmenting process.  To avoid this, we pick a random,
12254       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12255       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
12256       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
12257       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'
12258       ;;
12259
12260     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
12261       tmp_diet=no
12262       if test linux-dietlibc = "$host_os"; then
12263         case $cc_basename in
12264           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
12265         esac
12266       fi
12267       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
12268          && test no = "$tmp_diet"
12269       then
12270         tmp_addflag=' $pic_flag'
12271         tmp_sharedflag='-shared'
12272         case $cc_basename,$host_cpu in
12273         pgcc*)                          # Portland Group C compiler
12274           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'
12275           tmp_addflag=' $pic_flag'
12276           ;;
12277         pgf77* | pgf90* | pgf95* | pgfortran*)
12278                                         # Portland Group f77 and f90 compilers
12279           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'
12280           tmp_addflag=' $pic_flag -Mnomain' ;;
12281         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
12282           tmp_addflag=' -i_dynamic' ;;
12283         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
12284           tmp_addflag=' -i_dynamic -nofor_main' ;;
12285         ifc* | ifort*)                  # Intel Fortran compiler
12286           tmp_addflag=' -nofor_main' ;;
12287         lf95*)                          # Lahey Fortran 8.1
12288           whole_archive_flag_spec=
12289           tmp_sharedflag='--shared' ;;
12290         nagfor*)                        # NAGFOR 5.3
12291           tmp_sharedflag='-Wl,-shared' ;;
12292         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
12293           tmp_sharedflag='-qmkshrobj'
12294           tmp_addflag= ;;
12295         nvcc*)  # Cuda Compiler Driver 2.2
12296           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'
12297           compiler_needs_object=yes
12298           ;;
12299         esac
12300         case `$CC -V 2>&1 | sed 5q` in
12301         *Sun\ C*)                       # Sun C 5.9
12302           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'
12303           compiler_needs_object=yes
12304           tmp_sharedflag='-G' ;;
12305         *Sun\ F*)                       # Sun Fortran 8.3
12306           tmp_sharedflag='-G' ;;
12307         esac
12308         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12309
12310         if test yes = "$supports_anon_versioning"; then
12311           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
12312             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12313             echo "local: *; };" >> $output_objdir/$libname.ver~
12314             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
12315         fi
12316
12317         case $cc_basename in
12318         tcc*)
12319           export_dynamic_flag_spec='-rdynamic'
12320           ;;
12321         xlf* | bgf* | bgxlf* | mpixlf*)
12322           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
12323           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
12324           hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12325           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
12326           if test yes = "$supports_anon_versioning"; then
12327             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
12328               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12329               echo "local: *; };" >> $output_objdir/$libname.ver~
12330               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
12331           fi
12332           ;;
12333         esac
12334       else
12335         ld_shlibs=no
12336       fi
12337       ;;
12338
12339     netbsd*)
12340       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12341         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12342         wlarc=
12343       else
12344         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12345         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12346       fi
12347       ;;
12348
12349     solaris*)
12350       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
12351         ld_shlibs=no
12352         cat <<_LT_EOF 1>&2
12353
12354 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
12355 *** create shared libraries on Solaris systems.  Therefore, libtool
12356 *** is disabling shared libraries support.  We urge you to upgrade GNU
12357 *** binutils to release 2.9.1 or newer.  Another option is to modify
12358 *** your PATH or compiler configuration so that the native linker is
12359 *** used, and then restart.
12360
12361 _LT_EOF
12362       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12363         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12364         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12365       else
12366         ld_shlibs=no
12367       fi
12368       ;;
12369
12370     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
12371       case `$LD -v 2>&1` in
12372         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
12373         ld_shlibs=no
12374         cat <<_LT_EOF 1>&2
12375
12376 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
12377 *** reliably create shared libraries on SCO systems.  Therefore, libtool
12378 *** is disabling shared libraries support.  We urge you to upgrade GNU
12379 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
12380 *** your PATH or compiler configuration so that the native linker is
12381 *** used, and then restart.
12382
12383 _LT_EOF
12384         ;;
12385         *)
12386           # For security reasons, it is highly recommended that you always
12387           # use absolute paths for naming shared libraries, and exclude the
12388           # DT_RUNPATH tag from executables and libraries.  But doing so
12389           # requires that you compile everything twice, which is a pain.
12390           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12391             hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12392             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12393             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12394           else
12395             ld_shlibs=no
12396           fi
12397         ;;
12398       esac
12399       ;;
12400
12401     sunos4*)
12402       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12403       wlarc=
12404       hardcode_direct=yes
12405       hardcode_shlibpath_var=no
12406       ;;
12407
12408     *)
12409       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12410         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12411         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12412       else
12413         ld_shlibs=no
12414       fi
12415       ;;
12416     esac
12417
12418     if test no = "$ld_shlibs"; then
12419       runpath_var=
12420       hardcode_libdir_flag_spec=
12421       export_dynamic_flag_spec=
12422       whole_archive_flag_spec=
12423     fi
12424   else
12425     # PORTME fill in a description of your system's linker (not GNU ld)
12426     case $host_os in
12427     aix3*)
12428       allow_undefined_flag=unsupported
12429       always_export_symbols=yes
12430       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'
12431       # Note: this linker hardcodes the directories in LIBPATH if there
12432       # are no directories specified by -L.
12433       hardcode_minus_L=yes
12434       if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
12435         # Neither direct hardcoding nor static linking is supported with a
12436         # broken collect2.
12437         hardcode_direct=unsupported
12438       fi
12439       ;;
12440
12441     aix[4-9]*)
12442       if test ia64 = "$host_cpu"; then
12443         # On IA64, the linker does run time linking by default, so we don't
12444         # have to do anything special.
12445         aix_use_runtimelinking=no
12446         exp_sym_flag='-Bexport'
12447         no_entry_flag=
12448       else
12449         # If we're using GNU nm, then we don't want the "-C" option.
12450         # -C means demangle to GNU nm, but means don't demangle to AIX nm.
12451         # Without the "-l" option, or with the "-B" option, AIX nm treats
12452         # weak defined symbols like other global defined symbols, whereas
12453         # GNU nm marks them as "W".
12454         # While the 'weak' keyword is ignored in the Export File, we need
12455         # it in the Import File for the 'aix-soname' feature, so we have
12456         # to replace the "-B" option with "-P" for AIX nm.
12457         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
12458           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'
12459         else
12460           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'
12461         fi
12462         aix_use_runtimelinking=no
12463
12464         # Test if we are trying to use run time linking or normal
12465         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12466         # have runtime linking enabled, and use it for executables.
12467         # For shared libraries, we enable/disable runtime linking
12468         # depending on the kind of the shared library created -
12469         # when "with_aix_soname,aix_use_runtimelinking" is:
12470         # "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
12471         # "aix,yes"  lib.so          shared, rtl:yes, for executables
12472         #            lib.a           static archive
12473         # "both,no"  lib.so.V(shr.o) shared, rtl:yes
12474         #            lib.a(lib.so.V) shared, rtl:no,  for executables
12475         # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
12476         #            lib.a(lib.so.V) shared, rtl:no
12477         # "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
12478         #            lib.a           static archive
12479         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12480           for ld_flag in $LDFLAGS; do
12481           if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
12482             aix_use_runtimelinking=yes
12483             break
12484           fi
12485           done
12486           if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
12487             # With aix-soname=svr4, we create the lib.so.V shared archives only,
12488             # so we don't have lib.a shared libs to link our executables.
12489             # We have to force runtime linking in this case.
12490             aix_use_runtimelinking=yes
12491             LDFLAGS="$LDFLAGS -Wl,-brtl"
12492           fi
12493           ;;
12494         esac
12495
12496         exp_sym_flag='-bexport'
12497         no_entry_flag='-bnoentry'
12498       fi
12499
12500       # When large executables or shared objects are built, AIX ld can
12501       # have problems creating the table of contents.  If linking a library
12502       # or program results in "error TOC overflow" add -mminimal-toc to
12503       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
12504       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12505
12506       archive_cmds=''
12507       hardcode_direct=yes
12508       hardcode_direct_absolute=yes
12509       hardcode_libdir_separator=':'
12510       link_all_deplibs=yes
12511       file_list_spec='$wl-f,'
12512       case $with_aix_soname,$aix_use_runtimelinking in
12513       aix,*) ;; # traditional, no import file
12514       svr4,* | *,yes) # use import file
12515         # The Import File defines what to hardcode.
12516         hardcode_direct=no
12517         hardcode_direct_absolute=no
12518         ;;
12519       esac
12520
12521       if test yes = "$GCC"; then
12522         case $host_os in aix4.[012]|aix4.[012].*)
12523         # We only want to do this on AIX 4.2 and lower, the check
12524         # below for broken collect2 doesn't work under 4.3+
12525           collect2name=`$CC -print-prog-name=collect2`
12526           if test -f "$collect2name" &&
12527            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12528           then
12529           # We have reworked collect2
12530           :
12531           else
12532           # We have old collect2
12533           hardcode_direct=unsupported
12534           # It fails to find uninstalled libraries when the uninstalled
12535           # path is not listed in the libpath.  Setting hardcode_minus_L
12536           # to unsupported forces relinking
12537           hardcode_minus_L=yes
12538           hardcode_libdir_flag_spec='-L$libdir'
12539           hardcode_libdir_separator=
12540           fi
12541           ;;
12542         esac
12543         shared_flag='-shared'
12544         if test yes = "$aix_use_runtimelinking"; then
12545           shared_flag="$shared_flag "'$wl-G'
12546         fi
12547         # Need to ensure runtime linking is disabled for the traditional
12548         # shared library, or the linker may eventually find shared libraries
12549         # /with/ Import File - we do not want to mix them.
12550         shared_flag_aix='-shared'
12551         shared_flag_svr4='-shared $wl-G'
12552       else
12553         # not using gcc
12554         if test ia64 = "$host_cpu"; then
12555         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12556         # chokes on -Wl,-G. The following line is correct:
12557           shared_flag='-G'
12558         else
12559           if test yes = "$aix_use_runtimelinking"; then
12560             shared_flag='$wl-G'
12561           else
12562             shared_flag='$wl-bM:SRE'
12563           fi
12564           shared_flag_aix='$wl-bM:SRE'
12565           shared_flag_svr4='$wl-G'
12566         fi
12567       fi
12568
12569       export_dynamic_flag_spec='$wl-bexpall'
12570       # It seems that -bexpall does not export symbols beginning with
12571       # underscore (_), so it is better to generate a list of symbols to export.
12572       always_export_symbols=yes
12573       if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
12574         # Warning - without using the other runtime loading flags (-brtl),
12575         # -berok will link without error, but may produce a broken library.
12576         allow_undefined_flag='-berok'
12577         # Determine the default libpath from the value encoded in an
12578         # empty executable.
12579         if test set = "${lt_cv_aix_libpath+set}"; then
12580   aix_libpath=$lt_cv_aix_libpath
12581 else
12582   if ${lt_cv_aix_libpath_+:} false; then :
12583   $as_echo_n "(cached) " >&6
12584 else
12585   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12586 /* end confdefs.h.  */
12587
12588 int
12589 main ()
12590 {
12591
12592   ;
12593   return 0;
12594 }
12595 _ACEOF
12596 if ac_fn_c_try_link "$LINENO"; then :
12597
12598   lt_aix_libpath_sed='
12599       /Import File Strings/,/^$/ {
12600           /^0/ {
12601               s/^0  *\([^ ]*\) *$/\1/
12602               p
12603           }
12604       }'
12605   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12606   # Check for a 64-bit object if we didn't find anything.
12607   if test -z "$lt_cv_aix_libpath_"; then
12608     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12609   fi
12610 fi
12611 rm -f core conftest.err conftest.$ac_objext \
12612     conftest$ac_exeext conftest.$ac_ext
12613   if test -z "$lt_cv_aix_libpath_"; then
12614     lt_cv_aix_libpath_=/usr/lib:/lib
12615   fi
12616
12617 fi
12618
12619   aix_libpath=$lt_cv_aix_libpath_
12620 fi
12621
12622         hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
12623         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
12624       else
12625         if test ia64 = "$host_cpu"; then
12626           hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
12627           allow_undefined_flag="-z nodefs"
12628           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"
12629         else
12630          # Determine the default libpath from the value encoded in an
12631          # empty executable.
12632          if test set = "${lt_cv_aix_libpath+set}"; then
12633   aix_libpath=$lt_cv_aix_libpath
12634 else
12635   if ${lt_cv_aix_libpath_+:} false; then :
12636   $as_echo_n "(cached) " >&6
12637 else
12638   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12639 /* end confdefs.h.  */
12640
12641 int
12642 main ()
12643 {
12644
12645   ;
12646   return 0;
12647 }
12648 _ACEOF
12649 if ac_fn_c_try_link "$LINENO"; then :
12650
12651   lt_aix_libpath_sed='
12652       /Import File Strings/,/^$/ {
12653           /^0/ {
12654               s/^0  *\([^ ]*\) *$/\1/
12655               p
12656           }
12657       }'
12658   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12659   # Check for a 64-bit object if we didn't find anything.
12660   if test -z "$lt_cv_aix_libpath_"; then
12661     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12662   fi
12663 fi
12664 rm -f core conftest.err conftest.$ac_objext \
12665     conftest$ac_exeext conftest.$ac_ext
12666   if test -z "$lt_cv_aix_libpath_"; then
12667     lt_cv_aix_libpath_=/usr/lib:/lib
12668   fi
12669
12670 fi
12671
12672   aix_libpath=$lt_cv_aix_libpath_
12673 fi
12674
12675          hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
12676           # Warning - without using the other run time loading flags,
12677           # -berok will link without error, but may produce a broken library.
12678           no_undefined_flag=' $wl-bernotok'
12679           allow_undefined_flag=' $wl-berok'
12680           if test yes = "$with_gnu_ld"; then
12681             # We only use this code for GNU lds that support --whole-archive.
12682             whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
12683           else
12684             # Exported symbols can be pulled into shared objects from archives
12685             whole_archive_flag_spec='$convenience'
12686           fi
12687           archive_cmds_need_lc=yes
12688           archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
12689           # -brtl affects multiple linker settings, -berok does not and is overridden later
12690           compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
12691           if test svr4 != "$with_aix_soname"; then
12692             # This is similar to how AIX traditionally builds its shared libraries.
12693             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'
12694           fi
12695           if test aix != "$with_aix_soname"; then
12696             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'
12697           else
12698             # used by -dlpreopen to get the symbols
12699             archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
12700           fi
12701           archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
12702         fi
12703       fi
12704       ;;
12705
12706     amigaos*)
12707       case $host_cpu in
12708       powerpc)
12709             # see comment about AmigaOS4 .so support
12710             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12711             archive_expsym_cmds=''
12712         ;;
12713       m68k)
12714             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)'
12715             hardcode_libdir_flag_spec='-L$libdir'
12716             hardcode_minus_L=yes
12717         ;;
12718       esac
12719       ;;
12720
12721     bsdi[45]*)
12722       export_dynamic_flag_spec=-rdynamic
12723       ;;
12724
12725     cygwin* | mingw* | pw32* | cegcc*)
12726       # When not using gcc, we currently assume that we are using
12727       # Microsoft Visual C++.
12728       # hardcode_libdir_flag_spec is actually meaningless, as there is
12729       # no search path for DLLs.
12730       case $cc_basename in
12731       cl*)
12732         # Native MSVC
12733         hardcode_libdir_flag_spec=' '
12734         allow_undefined_flag=unsupported
12735         always_export_symbols=yes
12736         file_list_spec='@'
12737         # Tell ltmain to make .lib files, not .a files.
12738         libext=lib
12739         # Tell ltmain to make .dll files, not .so files.
12740         shrext_cmds=.dll
12741         # FIXME: Setting linknames here is a bad hack.
12742         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
12743         archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[   ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([     ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
12744             cp "$export_symbols" "$output_objdir/$soname.def";
12745             echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
12746           else
12747             $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
12748           fi~
12749           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
12750           linknames='
12751         # The linker will not automatically build a static lib if we build a DLL.
12752         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
12753         enable_shared_with_static_runtimes=yes
12754         exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
12755         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
12756         # Don't use ranlib
12757         old_postinstall_cmds='chmod 644 $oldlib'
12758         postlink_cmds='lt_outputfile="@OUTPUT@"~
12759           lt_tool_outputfile="@TOOL_OUTPUT@"~
12760           case $lt_outputfile in
12761             *.exe|*.EXE) ;;
12762             *)
12763               lt_outputfile=$lt_outputfile.exe
12764               lt_tool_outputfile=$lt_tool_outputfile.exe
12765               ;;
12766           esac~
12767           if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
12768             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
12769             $RM "$lt_outputfile.manifest";
12770           fi'
12771         ;;
12772       *)
12773         # Assume MSVC wrapper
12774         hardcode_libdir_flag_spec=' '
12775         allow_undefined_flag=unsupported
12776         # Tell ltmain to make .lib files, not .a files.
12777         libext=lib
12778         # Tell ltmain to make .dll files, not .so files.
12779         shrext_cmds=.dll
12780         # FIXME: Setting linknames here is a bad hack.
12781         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
12782         # The linker will automatically build a .lib file if we build a DLL.
12783         old_archive_from_new_cmds='true'
12784         # FIXME: Should let the user specify the lib program.
12785         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
12786         enable_shared_with_static_runtimes=yes
12787         ;;
12788       esac
12789       ;;
12790
12791     darwin* | rhapsody*)
12792
12793
12794   archive_cmds_need_lc=no
12795   hardcode_direct=no
12796   hardcode_automatic=yes
12797   hardcode_shlibpath_var=unsupported
12798   if test yes = "$lt_cv_ld_force_load"; then
12799     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\"`'
12800
12801   else
12802     whole_archive_flag_spec=''
12803   fi
12804   link_all_deplibs=yes
12805   allow_undefined_flag=$_lt_dar_allow_undefined
12806   case $cc_basename in
12807      ifort*|nagfor*) _lt_dar_can_shared=yes ;;
12808      *) _lt_dar_can_shared=$GCC ;;
12809   esac
12810   if test yes = "$_lt_dar_can_shared"; then
12811     output_verbose_link_cmd=func_echo_all
12812     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
12813     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
12814     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"
12815     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"
12816
12817   else
12818   ld_shlibs=no
12819   fi
12820
12821       ;;
12822
12823     dgux*)
12824       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12825       hardcode_libdir_flag_spec='-L$libdir'
12826       hardcode_shlibpath_var=no
12827       ;;
12828
12829     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12830     # support.  Future versions do this automatically, but an explicit c++rt0.o
12831     # does not break anything, and helps significantly (at the cost of a little
12832     # extra space).
12833     freebsd2.2*)
12834       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
12835       hardcode_libdir_flag_spec='-R$libdir'
12836       hardcode_direct=yes
12837       hardcode_shlibpath_var=no
12838       ;;
12839
12840     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
12841     freebsd2.*)
12842       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12843       hardcode_direct=yes
12844       hardcode_minus_L=yes
12845       hardcode_shlibpath_var=no
12846       ;;
12847
12848     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
12849     freebsd* | dragonfly*)
12850       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12851       hardcode_libdir_flag_spec='-R$libdir'
12852       hardcode_direct=yes
12853       hardcode_shlibpath_var=no
12854       ;;
12855
12856     hpux9*)
12857       if test yes = "$GCC"; then
12858         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'
12859       else
12860         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'
12861       fi
12862       hardcode_libdir_flag_spec='$wl+b $wl$libdir'
12863       hardcode_libdir_separator=:
12864       hardcode_direct=yes
12865
12866       # hardcode_minus_L: Not really in the search PATH,
12867       # but as the default location of the library.
12868       hardcode_minus_L=yes
12869       export_dynamic_flag_spec='$wl-E'
12870       ;;
12871
12872     hpux10*)
12873       if test yes,no = "$GCC,$with_gnu_ld"; then
12874         archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12875       else
12876         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12877       fi
12878       if test no = "$with_gnu_ld"; then
12879         hardcode_libdir_flag_spec='$wl+b $wl$libdir'
12880         hardcode_libdir_separator=:
12881         hardcode_direct=yes
12882         hardcode_direct_absolute=yes
12883         export_dynamic_flag_spec='$wl-E'
12884         # hardcode_minus_L: Not really in the search PATH,
12885         # but as the default location of the library.
12886         hardcode_minus_L=yes
12887       fi
12888       ;;
12889
12890     hpux11*)
12891       if test yes,no = "$GCC,$with_gnu_ld"; then
12892         case $host_cpu in
12893         hppa*64*)
12894           archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
12895           ;;
12896         ia64*)
12897           archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12898           ;;
12899         *)
12900           archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12901           ;;
12902         esac
12903       else
12904         case $host_cpu in
12905         hppa*64*)
12906           archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
12907           ;;
12908         ia64*)
12909           archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12910           ;;
12911         *)
12912
12913           # Older versions of the 11.00 compiler do not understand -b yet
12914           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
12915           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
12916 $as_echo_n "checking if $CC understands -b... " >&6; }
12917 if ${lt_cv_prog_compiler__b+:} false; then :
12918   $as_echo_n "(cached) " >&6
12919 else
12920   lt_cv_prog_compiler__b=no
12921    save_LDFLAGS=$LDFLAGS
12922    LDFLAGS="$LDFLAGS -b"
12923    echo "$lt_simple_link_test_code" > conftest.$ac_ext
12924    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12925      # The linker can only warn and ignore the option if not recognized
12926      # So say no if there are warnings
12927      if test -s conftest.err; then
12928        # Append any errors to the config.log.
12929        cat conftest.err 1>&5
12930        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
12931        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12932        if diff conftest.exp conftest.er2 >/dev/null; then
12933          lt_cv_prog_compiler__b=yes
12934        fi
12935      else
12936        lt_cv_prog_compiler__b=yes
12937      fi
12938    fi
12939    $RM -r conftest*
12940    LDFLAGS=$save_LDFLAGS
12941
12942 fi
12943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
12944 $as_echo "$lt_cv_prog_compiler__b" >&6; }
12945
12946 if test yes = "$lt_cv_prog_compiler__b"; then
12947     archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12948 else
12949     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12950 fi
12951
12952           ;;
12953         esac
12954       fi
12955       if test no = "$with_gnu_ld"; then
12956         hardcode_libdir_flag_spec='$wl+b $wl$libdir'
12957         hardcode_libdir_separator=:
12958
12959         case $host_cpu in
12960         hppa*64*|ia64*)
12961           hardcode_direct=no
12962           hardcode_shlibpath_var=no
12963           ;;
12964         *)
12965           hardcode_direct=yes
12966           hardcode_direct_absolute=yes
12967           export_dynamic_flag_spec='$wl-E'
12968
12969           # hardcode_minus_L: Not really in the search PATH,
12970           # but as the default location of the library.
12971           hardcode_minus_L=yes
12972           ;;
12973         esac
12974       fi
12975       ;;
12976
12977     irix5* | irix6* | nonstopux*)
12978       if test yes = "$GCC"; then
12979         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'
12980         # Try to use the -exported_symbol ld option, if it does not
12981         # work, assume that -exports_file does not work either and
12982         # implicitly export all symbols.
12983         # This should be the same for all languages, so no per-tag cache variable.
12984         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
12985 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
12986 if ${lt_cv_irix_exported_symbol+:} false; then :
12987   $as_echo_n "(cached) " >&6
12988 else
12989   save_LDFLAGS=$LDFLAGS
12990            LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
12991            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12992 /* end confdefs.h.  */
12993 int foo (void) { return 0; }
12994 _ACEOF
12995 if ac_fn_c_try_link "$LINENO"; then :
12996   lt_cv_irix_exported_symbol=yes
12997 else
12998   lt_cv_irix_exported_symbol=no
12999 fi
13000 rm -f core conftest.err conftest.$ac_objext \
13001     conftest$ac_exeext conftest.$ac_ext
13002            LDFLAGS=$save_LDFLAGS
13003 fi
13004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
13005 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
13006         if test yes = "$lt_cv_irix_exported_symbol"; then
13007           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'
13008         fi
13009       else
13010         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'
13011         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'
13012       fi
13013       archive_cmds_need_lc='no'
13014       hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13015       hardcode_libdir_separator=:
13016       inherit_rpath=yes
13017       link_all_deplibs=yes
13018       ;;
13019
13020     linux*)
13021       case $cc_basename in
13022       tcc*)
13023         # Fabrice Bellard et al's Tiny C Compiler
13024         ld_shlibs=yes
13025         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13026         ;;
13027       esac
13028       ;;
13029
13030     netbsd*)
13031       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13032         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
13033       else
13034         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
13035       fi
13036       hardcode_libdir_flag_spec='-R$libdir'
13037       hardcode_direct=yes
13038       hardcode_shlibpath_var=no
13039       ;;
13040
13041     newsos6)
13042       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13043       hardcode_direct=yes
13044       hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13045       hardcode_libdir_separator=:
13046       hardcode_shlibpath_var=no
13047       ;;
13048
13049     *nto* | *qnx*)
13050       ;;
13051
13052     openbsd* | bitrig*)
13053       if test -f /usr/libexec/ld.so; then
13054         hardcode_direct=yes
13055         hardcode_shlibpath_var=no
13056         hardcode_direct_absolute=yes
13057         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
13058           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13059           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
13060           hardcode_libdir_flag_spec='$wl-rpath,$libdir'
13061           export_dynamic_flag_spec='$wl-E'
13062         else
13063           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13064           hardcode_libdir_flag_spec='$wl-rpath,$libdir'
13065         fi
13066       else
13067         ld_shlibs=no
13068       fi
13069       ;;
13070
13071     os2*)
13072       hardcode_libdir_flag_spec='-L$libdir'
13073       hardcode_minus_L=yes
13074       allow_undefined_flag=unsupported
13075       shrext_cmds=.dll
13076       archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
13077         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
13078         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
13079         $ECHO EXPORTS >> $output_objdir/$libname.def~
13080         emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
13081         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
13082         emximp -o $lib $output_objdir/$libname.def'
13083       archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
13084         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
13085         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
13086         $ECHO EXPORTS >> $output_objdir/$libname.def~
13087         prefix_cmds="$SED"~
13088         if test EXPORTS = "`$SED 1q $export_symbols`"; then
13089           prefix_cmds="$prefix_cmds -e 1d";
13090         fi~
13091         prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
13092         cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
13093         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
13094         emximp -o $lib $output_objdir/$libname.def'
13095       old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
13096       enable_shared_with_static_runtimes=yes
13097       ;;
13098
13099     osf3*)
13100       if test yes = "$GCC"; then
13101         allow_undefined_flag=' $wl-expect_unresolved $wl\*'
13102         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'
13103       else
13104         allow_undefined_flag=' -expect_unresolved \*'
13105         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'
13106       fi
13107       archive_cmds_need_lc='no'
13108       hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13109       hardcode_libdir_separator=:
13110       ;;
13111
13112     osf4* | osf5*)      # as osf3* with the addition of -msym flag
13113       if test yes = "$GCC"; then
13114         allow_undefined_flag=' $wl-expect_unresolved $wl\*'
13115         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'
13116         hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13117       else
13118         allow_undefined_flag=' -expect_unresolved \*'
13119         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'
13120         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~
13121           $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'
13122
13123         # Both c and cxx compiler support -rpath directly
13124         hardcode_libdir_flag_spec='-rpath $libdir'
13125       fi
13126       archive_cmds_need_lc='no'
13127       hardcode_libdir_separator=:
13128       ;;
13129
13130     solaris*)
13131       no_undefined_flag=' -z defs'
13132       if test yes = "$GCC"; then
13133         wlarc='$wl'
13134         archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
13135         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13136           $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'
13137       else
13138         case `$CC -V 2>&1` in
13139         *"Compilers 5.0"*)
13140           wlarc=''
13141           archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
13142           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13143             $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
13144           ;;
13145         *)
13146           wlarc='$wl'
13147           archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
13148           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13149             $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13150           ;;
13151         esac
13152       fi
13153       hardcode_libdir_flag_spec='-R$libdir'
13154       hardcode_shlibpath_var=no
13155       case $host_os in
13156       solaris2.[0-5] | solaris2.[0-5].*) ;;
13157       *)
13158         # The compiler driver will combine and reorder linker options,
13159         # but understands '-z linker_flag'.  GCC discards it without '$wl',
13160         # but is careful enough not to reorder.
13161         # Supported since Solaris 2.6 (maybe 2.5.1?)
13162         if test yes = "$GCC"; then
13163           whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
13164         else
13165           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
13166         fi
13167         ;;
13168       esac
13169       link_all_deplibs=yes
13170       ;;
13171
13172     sunos4*)
13173       if test sequent = "$host_vendor"; then
13174         # Use $CC to link under sequent, because it throws in some extra .o
13175         # files that make .init and .fini sections work.
13176         archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13177       else
13178         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13179       fi
13180       hardcode_libdir_flag_spec='-L$libdir'
13181       hardcode_direct=yes
13182       hardcode_minus_L=yes
13183       hardcode_shlibpath_var=no
13184       ;;
13185
13186     sysv4)
13187       case $host_vendor in
13188         sni)
13189           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13190           hardcode_direct=yes # is this really true???
13191         ;;
13192         siemens)
13193           ## LD is ld it makes a PLAMLIB
13194           ## CC just makes a GrossModule.
13195           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13196           reload_cmds='$CC -r -o $output$reload_objs'
13197           hardcode_direct=no
13198         ;;
13199         motorola)
13200           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13201           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
13202         ;;
13203       esac
13204       runpath_var='LD_RUN_PATH'
13205       hardcode_shlibpath_var=no
13206       ;;
13207
13208     sysv4.3*)
13209       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13210       hardcode_shlibpath_var=no
13211       export_dynamic_flag_spec='-Bexport'
13212       ;;
13213
13214     sysv4*MP*)
13215       if test -d /usr/nec; then
13216         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13217         hardcode_shlibpath_var=no
13218         runpath_var=LD_RUN_PATH
13219         hardcode_runpath_var=yes
13220         ld_shlibs=yes
13221       fi
13222       ;;
13223
13224     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13225       no_undefined_flag='$wl-z,text'
13226       archive_cmds_need_lc=no
13227       hardcode_shlibpath_var=no
13228       runpath_var='LD_RUN_PATH'
13229
13230       if test yes = "$GCC"; then
13231         archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13232         archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13233       else
13234         archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13235         archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13236       fi
13237       ;;
13238
13239     sysv5* | sco3.2v5* | sco5v6*)
13240       # Note: We CANNOT use -z defs as we might desire, because we do not
13241       # link with -lc, and that would cause any symbols used from libc to
13242       # always be unresolved, which means just about no library would
13243       # ever link correctly.  If we're not using GNU ld we use -z text
13244       # though, which does catch some bad symbols but isn't as heavy-handed
13245       # as -z defs.
13246       no_undefined_flag='$wl-z,text'
13247       allow_undefined_flag='$wl-z,nodefs'
13248       archive_cmds_need_lc=no
13249       hardcode_shlibpath_var=no
13250       hardcode_libdir_flag_spec='$wl-R,$libdir'
13251       hardcode_libdir_separator=':'
13252       link_all_deplibs=yes
13253       export_dynamic_flag_spec='$wl-Bexport'
13254       runpath_var='LD_RUN_PATH'
13255
13256       if test yes = "$GCC"; then
13257         archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13258         archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13259       else
13260         archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13261         archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13262       fi
13263       ;;
13264
13265     uts4*)
13266       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13267       hardcode_libdir_flag_spec='-L$libdir'
13268       hardcode_shlibpath_var=no
13269       ;;
13270
13271     *)
13272       ld_shlibs=no
13273       ;;
13274     esac
13275
13276     if test sni = "$host_vendor"; then
13277       case $host in
13278       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13279         export_dynamic_flag_spec='$wl-Blargedynsym'
13280         ;;
13281       esac
13282     fi
13283   fi
13284
13285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
13286 $as_echo "$ld_shlibs" >&6; }
13287 test no = "$ld_shlibs" && can_build_shared=no
13288
13289 with_gnu_ld=$with_gnu_ld
13290
13291
13292
13293
13294
13295
13296
13297
13298
13299
13300
13301
13302
13303
13304
13305 #
13306 # Do we need to explicitly link libc?
13307 #
13308 case "x$archive_cmds_need_lc" in
13309 x|xyes)
13310   # Assume -lc should be added
13311   archive_cmds_need_lc=yes
13312
13313   if test yes,yes = "$GCC,$enable_shared"; then
13314     case $archive_cmds in
13315     *'~'*)
13316       # FIXME: we may have to deal with multi-command sequences.
13317       ;;
13318     '$CC '*)
13319       # Test whether the compiler implicitly links with -lc since on some
13320       # systems, -lgcc has to come before -lc. If gcc already passes -lc
13321       # to ld, don't add -lc before -lgcc.
13322       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13323 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13324 if ${lt_cv_archive_cmds_need_lc+:} false; then :
13325   $as_echo_n "(cached) " >&6
13326 else
13327   $RM conftest*
13328         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13329
13330         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13331   (eval $ac_compile) 2>&5
13332   ac_status=$?
13333   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13334   test $ac_status = 0; } 2>conftest.err; then
13335           soname=conftest
13336           lib=conftest
13337           libobjs=conftest.$ac_objext
13338           deplibs=
13339           wl=$lt_prog_compiler_wl
13340           pic_flag=$lt_prog_compiler_pic
13341           compiler_flags=-v
13342           linker_flags=-v
13343           verstring=
13344           output_objdir=.
13345           libname=conftest
13346           lt_save_allow_undefined_flag=$allow_undefined_flag
13347           allow_undefined_flag=
13348           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13349   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13350   ac_status=$?
13351   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13352   test $ac_status = 0; }
13353           then
13354             lt_cv_archive_cmds_need_lc=no
13355           else
13356             lt_cv_archive_cmds_need_lc=yes
13357           fi
13358           allow_undefined_flag=$lt_save_allow_undefined_flag
13359         else
13360           cat conftest.err 1>&5
13361         fi
13362         $RM conftest*
13363
13364 fi
13365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
13366 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
13367       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
13368       ;;
13369     esac
13370   fi
13371   ;;
13372 esac
13373
13374
13375
13376
13377
13378
13379
13380
13381
13382
13383
13384
13385
13386
13387
13388
13389
13390
13391
13392
13393
13394
13395
13396
13397
13398
13399
13400
13401
13402
13403
13404
13405
13406
13407
13408
13409
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   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
13526 $as_echo_n "checking dynamic linker characteristics... " >&6; }
13527
13528 if test yes = "$GCC"; then
13529   case $host_os in
13530     darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
13531     *) lt_awk_arg='/^libraries:/' ;;
13532   esac
13533   case $host_os in
13534     mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
13535     *) lt_sed_strip_eq='s|=/|/|g' ;;
13536   esac
13537   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
13538   case $lt_search_path_spec in
13539   *\;*)
13540     # if the path contains ";" then we assume it to be the separator
13541     # otherwise default to the standard path separator (i.e. ":") - it is
13542     # assumed that no part of a normal pathname contains ";" but that should
13543     # okay in the real world where ";" in dirpaths is itself problematic.
13544     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
13545     ;;
13546   *)
13547     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
13548     ;;
13549   esac
13550   # Ok, now we have the path, separated by spaces, we can step through it
13551   # and add multilib dir if necessary...
13552   lt_tmp_lt_search_path_spec=
13553   lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
13554   # ...but if some path component already ends with the multilib dir we assume
13555   # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
13556   case "$lt_multi_os_dir; $lt_search_path_spec " in
13557   "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
13558     lt_multi_os_dir=
13559     ;;
13560   esac
13561   for lt_sys_path in $lt_search_path_spec; do
13562     if test -d "$lt_sys_path$lt_multi_os_dir"; then
13563       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
13564     elif test -n "$lt_multi_os_dir"; then
13565       test -d "$lt_sys_path" && \
13566         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
13567     fi
13568   done
13569   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
13570 BEGIN {RS = " "; FS = "/|\n";} {
13571   lt_foo = "";
13572   lt_count = 0;
13573   for (lt_i = NF; lt_i > 0; lt_i--) {
13574     if ($lt_i != "" && $lt_i != ".") {
13575       if ($lt_i == "..") {
13576         lt_count++;
13577       } else {
13578         if (lt_count == 0) {
13579           lt_foo = "/" $lt_i lt_foo;
13580         } else {
13581           lt_count--;
13582         }
13583       }
13584     }
13585   }
13586   if (lt_foo != "") { lt_freq[lt_foo]++; }
13587   if (lt_freq[lt_foo] == 1) { print lt_foo; }
13588 }'`
13589   # AWK program above erroneously prepends '/' to C:/dos/paths
13590   # for these hosts.
13591   case $host_os in
13592     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
13593       $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
13594   esac
13595   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
13596 else
13597   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13598 fi
13599 library_names_spec=
13600 libname_spec='lib$name'
13601 soname_spec=
13602 shrext_cmds=.so
13603 postinstall_cmds=
13604 postuninstall_cmds=
13605 finish_cmds=
13606 finish_eval=
13607 shlibpath_var=
13608 shlibpath_overrides_runpath=unknown
13609 version_type=none
13610 dynamic_linker="$host_os ld.so"
13611 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13612 need_lib_prefix=unknown
13613 hardcode_into_libs=no
13614
13615 # when you set need_version to no, make sure it does not cause -set_version
13616 # flags to be left without arguments
13617 need_version=unknown
13618
13619
13620
13621 case $host_os in
13622 aix3*)
13623   version_type=linux # correct to gnu/linux during the next big refactor
13624   library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
13625   shlibpath_var=LIBPATH
13626
13627   # AIX 3 has no versioning support, so we append a major version to the name.
13628   soname_spec='$libname$release$shared_ext$major'
13629   ;;
13630
13631 aix[4-9]*)
13632   version_type=linux # correct to gnu/linux during the next big refactor
13633   need_lib_prefix=no
13634   need_version=no
13635   hardcode_into_libs=yes
13636   if test ia64 = "$host_cpu"; then
13637     # AIX 5 supports IA64
13638     library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
13639     shlibpath_var=LD_LIBRARY_PATH
13640   else
13641     # With GCC up to 2.95.x, collect2 would create an import file
13642     # for dependence libraries.  The import file would start with
13643     # the line '#! .'.  This would cause the generated library to
13644     # depend on '.', always an invalid library.  This was fixed in
13645     # development snapshots of GCC prior to 3.0.
13646     case $host_os in
13647       aix4 | aix4.[01] | aix4.[01].*)
13648       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13649            echo ' yes '
13650            echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
13651         :
13652       else
13653         can_build_shared=no
13654       fi
13655       ;;
13656     esac
13657     # Using Import Files as archive members, it is possible to support
13658     # filename-based versioning of shared library archives on AIX. While
13659     # this would work for both with and without runtime linking, it will
13660     # prevent static linking of such archives. So we do filename-based
13661     # shared library versioning with .so extension only, which is used
13662     # when both runtime linking and shared linking is enabled.
13663     # Unfortunately, runtime linking may impact performance, so we do
13664     # not want this to be the default eventually. Also, we use the
13665     # versioned .so libs for executables only if there is the -brtl
13666     # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
13667     # To allow for filename-based versioning support, we need to create
13668     # libNAME.so.V as an archive file, containing:
13669     # *) an Import File, referring to the versioned filename of the
13670     #    archive as well as the shared archive member, telling the
13671     #    bitwidth (32 or 64) of that shared object, and providing the
13672     #    list of exported symbols of that shared object, eventually
13673     #    decorated with the 'weak' keyword
13674     # *) the shared object with the F_LOADONLY flag set, to really avoid
13675     #    it being seen by the linker.
13676     # At run time we better use the real file rather than another symlink,
13677     # but for link time we create the symlink libNAME.so -> libNAME.so.V
13678
13679     case $with_aix_soname,$aix_use_runtimelinking in
13680     # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
13681     # soname into executable. Probably we can add versioning support to
13682     # collect2, so additional links can be useful in future.
13683     aix,yes) # traditional libtool
13684       dynamic_linker='AIX unversionable lib.so'
13685       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13686       # instead of lib<name>.a to let people know that these are not
13687       # typical AIX shared libraries.
13688       library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13689       ;;
13690     aix,no) # traditional AIX only
13691       dynamic_linker='AIX lib.a(lib.so.V)'
13692       # We preserve .a as extension for shared libraries through AIX4.2
13693       # and later when we are not doing run time linking.
13694       library_names_spec='$libname$release.a $libname.a'
13695       soname_spec='$libname$release$shared_ext$major'
13696       ;;
13697     svr4,*) # full svr4 only
13698       dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
13699       library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
13700       # We do not specify a path in Import Files, so LIBPATH fires.
13701       shlibpath_overrides_runpath=yes
13702       ;;
13703     *,yes) # both, prefer svr4
13704       dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
13705       library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
13706       # unpreferred sharedlib libNAME.a needs extra handling
13707       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"'
13708       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"'
13709       # We do not specify a path in Import Files, so LIBPATH fires.
13710       shlibpath_overrides_runpath=yes
13711       ;;
13712     *,no) # both, prefer aix
13713       dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
13714       library_names_spec='$libname$release.a $libname.a'
13715       soname_spec='$libname$release$shared_ext$major'
13716       # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
13717       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)'
13718       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"'
13719       ;;
13720     esac
13721     shlibpath_var=LIBPATH
13722   fi
13723   ;;
13724
13725 amigaos*)
13726   case $host_cpu in
13727   powerpc)
13728     # Since July 2007 AmigaOS4 officially supports .so libraries.
13729     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
13730     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13731     ;;
13732   m68k)
13733     library_names_spec='$libname.ixlibrary $libname.a'
13734     # Create ${libname}_ixlibrary.a entries in /sys/libs.
13735     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'
13736     ;;
13737   esac
13738   ;;
13739
13740 beos*)
13741   library_names_spec='$libname$shared_ext'
13742   dynamic_linker="$host_os ld.so"
13743   shlibpath_var=LIBRARY_PATH
13744   ;;
13745
13746 bsdi[45]*)
13747   version_type=linux # correct to gnu/linux during the next big refactor
13748   need_version=no
13749   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13750   soname_spec='$libname$release$shared_ext$major'
13751   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13752   shlibpath_var=LD_LIBRARY_PATH
13753   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13754   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13755   # the default ld.so.conf also contains /usr/contrib/lib and
13756   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13757   # libtool to hard-code these into programs
13758   ;;
13759
13760 cygwin* | mingw* | pw32* | cegcc*)
13761   version_type=windows
13762   shrext_cmds=.dll
13763   need_version=no
13764   need_lib_prefix=no
13765
13766   case $GCC,$cc_basename in
13767   yes,*)
13768     # gcc
13769     library_names_spec='$libname.dll.a'
13770     # DLL is installed to $(libdir)/../bin by postinstall_cmds
13771     postinstall_cmds='base_file=`basename \$file`~
13772       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
13773       dldir=$destdir/`dirname \$dlpath`~
13774       test -d \$dldir || mkdir -p \$dldir~
13775       $install_prog $dir/$dlname \$dldir/$dlname~
13776       chmod a+x \$dldir/$dlname~
13777       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13778         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13779       fi'
13780     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13781       dlpath=$dir/\$dldll~
13782        $RM \$dlpath'
13783     shlibpath_overrides_runpath=yes
13784
13785     case $host_os in
13786     cygwin*)
13787       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13788       soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13789
13790       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
13791       ;;
13792     mingw* | cegcc*)
13793       # MinGW DLLs use traditional 'lib' prefix
13794       soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13795       ;;
13796     pw32*)
13797       # pw32 DLLs use 'pw' prefix rather than 'lib'
13798       library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13799       ;;
13800     esac
13801     dynamic_linker='Win32 ld.exe'
13802     ;;
13803
13804   *,cl*)
13805     # Native MSVC
13806     libname_spec='$name'
13807     soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13808     library_names_spec='$libname.dll.lib'
13809
13810     case $build_os in
13811     mingw*)
13812       sys_lib_search_path_spec=
13813       lt_save_ifs=$IFS
13814       IFS=';'
13815       for lt_path in $LIB
13816       do
13817         IFS=$lt_save_ifs
13818         # Let DOS variable expansion print the short 8.3 style file name.
13819         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
13820         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
13821       done
13822       IFS=$lt_save_ifs
13823       # Convert to MSYS style.
13824       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
13825       ;;
13826     cygwin*)
13827       # Convert to unix form, then to dos form, then back to unix form
13828       # but this time dos style (no spaces!) so that the unix form looks
13829       # like /cygdrive/c/PROGRA~1:/cygdr...
13830       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
13831       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
13832       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13833       ;;
13834     *)
13835       sys_lib_search_path_spec=$LIB
13836       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
13837         # It is most probably a Windows format PATH.
13838         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13839       else
13840         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13841       fi
13842       # FIXME: find the short name or the path components, as spaces are
13843       # common. (e.g. "Program Files" -> "PROGRA~1")
13844       ;;
13845     esac
13846
13847     # DLL is installed to $(libdir)/../bin by postinstall_cmds
13848     postinstall_cmds='base_file=`basename \$file`~
13849       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
13850       dldir=$destdir/`dirname \$dlpath`~
13851       test -d \$dldir || mkdir -p \$dldir~
13852       $install_prog $dir/$dlname \$dldir/$dlname'
13853     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13854       dlpath=$dir/\$dldll~
13855        $RM \$dlpath'
13856     shlibpath_overrides_runpath=yes
13857     dynamic_linker='Win32 link.exe'
13858     ;;
13859
13860   *)
13861     # Assume MSVC wrapper
13862     library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
13863     dynamic_linker='Win32 ld.exe'
13864     ;;
13865   esac
13866   # FIXME: first we should search . and the directory the executable is in
13867   shlibpath_var=PATH
13868   ;;
13869
13870 darwin* | rhapsody*)
13871   dynamic_linker="$host_os dyld"
13872   version_type=darwin
13873   need_lib_prefix=no
13874   need_version=no
13875   library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
13876   soname_spec='$libname$release$major$shared_ext'
13877   shlibpath_overrides_runpath=yes
13878   shlibpath_var=DYLD_LIBRARY_PATH
13879   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13880
13881   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
13882   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13883   ;;
13884
13885 dgux*)
13886   version_type=linux # correct to gnu/linux during the next big refactor
13887   need_lib_prefix=no
13888   need_version=no
13889   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13890   soname_spec='$libname$release$shared_ext$major'
13891   shlibpath_var=LD_LIBRARY_PATH
13892   ;;
13893
13894 freebsd* | dragonfly*)
13895   # DragonFly does not have aout.  When/if they implement a new
13896   # versioning mechanism, adjust this.
13897   if test -x /usr/bin/objformat; then
13898     objformat=`/usr/bin/objformat`
13899   else
13900     case $host_os in
13901     freebsd[23].*) objformat=aout ;;
13902     *) objformat=elf ;;
13903     esac
13904   fi
13905   version_type=freebsd-$objformat
13906   case $version_type in
13907     freebsd-elf*)
13908       library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13909       soname_spec='$libname$release$shared_ext$major'
13910       need_version=no
13911       need_lib_prefix=no
13912       ;;
13913     freebsd-*)
13914       library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13915       need_version=yes
13916       ;;
13917   esac
13918   shlibpath_var=LD_LIBRARY_PATH
13919   case $host_os in
13920   freebsd2.*)
13921     shlibpath_overrides_runpath=yes
13922     ;;
13923   freebsd3.[01]* | freebsdelf3.[01]*)
13924     shlibpath_overrides_runpath=yes
13925     hardcode_into_libs=yes
13926     ;;
13927   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13928   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13929     shlibpath_overrides_runpath=no
13930     hardcode_into_libs=yes
13931     ;;
13932   *) # from 4.6 on, and DragonFly
13933     shlibpath_overrides_runpath=yes
13934     hardcode_into_libs=yes
13935     ;;
13936   esac
13937   ;;
13938
13939 haiku*)
13940   version_type=linux # correct to gnu/linux during the next big refactor
13941   need_lib_prefix=no
13942   need_version=no
13943   dynamic_linker="$host_os runtime_loader"
13944   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13945   soname_spec='$libname$release$shared_ext$major'
13946   shlibpath_var=LIBRARY_PATH
13947   shlibpath_overrides_runpath=no
13948   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
13949   hardcode_into_libs=yes
13950   ;;
13951
13952 hpux9* | hpux10* | hpux11*)
13953   # Give a soname corresponding to the major version so that dld.sl refuses to
13954   # link against other versions.
13955   version_type=sunos
13956   need_lib_prefix=no
13957   need_version=no
13958   case $host_cpu in
13959   ia64*)
13960     shrext_cmds='.so'
13961     hardcode_into_libs=yes
13962     dynamic_linker="$host_os dld.so"
13963     shlibpath_var=LD_LIBRARY_PATH
13964     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13965     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13966     soname_spec='$libname$release$shared_ext$major'
13967     if test 32 = "$HPUX_IA64_MODE"; then
13968       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13969       sys_lib_dlsearch_path_spec=/usr/lib/hpux32
13970     else
13971       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13972       sys_lib_dlsearch_path_spec=/usr/lib/hpux64
13973     fi
13974     ;;
13975   hppa*64*)
13976     shrext_cmds='.sl'
13977     hardcode_into_libs=yes
13978     dynamic_linker="$host_os dld.sl"
13979     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13980     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
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     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13984     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13985     ;;
13986   *)
13987     shrext_cmds='.sl'
13988     dynamic_linker="$host_os dld.sl"
13989     shlibpath_var=SHLIB_PATH
13990     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13991     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13992     soname_spec='$libname$release$shared_ext$major'
13993     ;;
13994   esac
13995   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
13996   postinstall_cmds='chmod 555 $lib'
13997   # or fails outright, so override atomically:
13998   install_override_mode=555
13999   ;;
14000
14001 interix[3-9]*)
14002   version_type=linux # correct to gnu/linux during the next big refactor
14003   need_lib_prefix=no
14004   need_version=no
14005   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14006   soname_spec='$libname$release$shared_ext$major'
14007   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14008   shlibpath_var=LD_LIBRARY_PATH
14009   shlibpath_overrides_runpath=no
14010   hardcode_into_libs=yes
14011   ;;
14012
14013 irix5* | irix6* | nonstopux*)
14014   case $host_os in
14015     nonstopux*) version_type=nonstopux ;;
14016     *)
14017         if test yes = "$lt_cv_prog_gnu_ld"; then
14018                 version_type=linux # correct to gnu/linux during the next big refactor
14019         else
14020                 version_type=irix
14021         fi ;;
14022   esac
14023   need_lib_prefix=no
14024   need_version=no
14025   soname_spec='$libname$release$shared_ext$major'
14026   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
14027   case $host_os in
14028   irix5* | nonstopux*)
14029     libsuff= shlibsuff=
14030     ;;
14031   *)
14032     case $LD in # libtool.m4 will add one of these switches to LD
14033     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14034       libsuff= shlibsuff= libmagic=32-bit;;
14035     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14036       libsuff=32 shlibsuff=N32 libmagic=N32;;
14037     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14038       libsuff=64 shlibsuff=64 libmagic=64-bit;;
14039     *) libsuff= shlibsuff= libmagic=never-match;;
14040     esac
14041     ;;
14042   esac
14043   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14044   shlibpath_overrides_runpath=no
14045   sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
14046   sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
14047   hardcode_into_libs=yes
14048   ;;
14049
14050 # No shared lib support for Linux oldld, aout, or coff.
14051 linux*oldld* | linux*aout* | linux*coff*)
14052   dynamic_linker=no
14053   ;;
14054
14055 linux*android*)
14056   version_type=none # Android doesn't support versioned libraries.
14057   need_lib_prefix=no
14058   need_version=no
14059   library_names_spec='$libname$release$shared_ext'
14060   soname_spec='$libname$release$shared_ext'
14061   finish_cmds=
14062   shlibpath_var=LD_LIBRARY_PATH
14063   shlibpath_overrides_runpath=yes
14064
14065   # This implies no fast_install, which is unacceptable.
14066   # Some rework will be needed to allow for fast_install
14067   # before this can be enabled.
14068   hardcode_into_libs=yes
14069
14070   dynamic_linker='Android linker'
14071   # Don't embed -rpath directories since the linker doesn't support them.
14072   hardcode_libdir_flag_spec='-L$libdir'
14073   ;;
14074
14075 # This must be glibc/ELF.
14076 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14077   version_type=linux # correct to gnu/linux during the next big refactor
14078   need_lib_prefix=no
14079   need_version=no
14080   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14081   soname_spec='$libname$release$shared_ext$major'
14082   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14083   shlibpath_var=LD_LIBRARY_PATH
14084   shlibpath_overrides_runpath=no
14085
14086   # Some binutils ld are patched to set DT_RUNPATH
14087   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
14088   $as_echo_n "(cached) " >&6
14089 else
14090   lt_cv_shlibpath_overrides_runpath=no
14091     save_LDFLAGS=$LDFLAGS
14092     save_libdir=$libdir
14093     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
14094          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
14095     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14096 /* end confdefs.h.  */
14097
14098 int
14099 main ()
14100 {
14101
14102   ;
14103   return 0;
14104 }
14105 _ACEOF
14106 if ac_fn_c_try_link "$LINENO"; then :
14107   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14108   lt_cv_shlibpath_overrides_runpath=yes
14109 fi
14110 fi
14111 rm -f core conftest.err conftest.$ac_objext \
14112     conftest$ac_exeext conftest.$ac_ext
14113     LDFLAGS=$save_LDFLAGS
14114     libdir=$save_libdir
14115
14116 fi
14117
14118   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
14119
14120   # This implies no fast_install, which is unacceptable.
14121   # Some rework will be needed to allow for fast_install
14122   # before this can be enabled.
14123   hardcode_into_libs=yes
14124
14125   # Ideally, we could use ldconfig to report *all* directores which are
14126   # searched for libraries, however this is still not possible.  Aside from not
14127   # being certain /sbin/ldconfig is available, command
14128   # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
14129   # even though it is searched at run-time.  Try to do the best guess by
14130   # appending ld.so.conf contents (and includes) to the search path.
14131   if test -f /etc/ld.so.conf; then
14132     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' ' '`
14133     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14134   fi
14135
14136   # We used to test for /lib/ld.so.1 and disable shared libraries on
14137   # powerpc, because MkLinux only supported shared libraries with the
14138   # GNU dynamic linker.  Since this was broken with cross compilers,
14139   # most powerpc-linux boxes support dynamic linking these days and
14140   # people can always --disable-shared, the test was removed, and we
14141   # assume the GNU/Linux dynamic linker is in use.
14142   dynamic_linker='GNU/Linux ld.so'
14143   ;;
14144
14145 netbsd*)
14146   version_type=sunos
14147   need_lib_prefix=no
14148   need_version=no
14149   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14150     library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
14151     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14152     dynamic_linker='NetBSD (a.out) ld.so'
14153   else
14154     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14155     soname_spec='$libname$release$shared_ext$major'
14156     dynamic_linker='NetBSD ld.elf_so'
14157   fi
14158   shlibpath_var=LD_LIBRARY_PATH
14159   shlibpath_overrides_runpath=yes
14160   hardcode_into_libs=yes
14161   ;;
14162
14163 newsos6)
14164   version_type=linux # correct to gnu/linux during the next big refactor
14165   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14166   shlibpath_var=LD_LIBRARY_PATH
14167   shlibpath_overrides_runpath=yes
14168   ;;
14169
14170 *nto* | *qnx*)
14171   version_type=qnx
14172   need_lib_prefix=no
14173   need_version=no
14174   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14175   soname_spec='$libname$release$shared_ext$major'
14176   shlibpath_var=LD_LIBRARY_PATH
14177   shlibpath_overrides_runpath=no
14178   hardcode_into_libs=yes
14179   dynamic_linker='ldqnx.so'
14180   ;;
14181
14182 openbsd* | bitrig*)
14183   version_type=sunos
14184   sys_lib_dlsearch_path_spec=/usr/lib
14185   need_lib_prefix=no
14186   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
14187     need_version=no
14188   else
14189     need_version=yes
14190   fi
14191   library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
14192   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14193   shlibpath_var=LD_LIBRARY_PATH
14194   shlibpath_overrides_runpath=yes
14195   ;;
14196
14197 os2*)
14198   libname_spec='$name'
14199   version_type=windows
14200   shrext_cmds=.dll
14201   need_version=no
14202   need_lib_prefix=no
14203   # OS/2 can only load a DLL with a base name of 8 characters or less.
14204   soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
14205     v=$($ECHO $release$versuffix | tr -d .-);
14206     n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
14207     $ECHO $n$v`$shared_ext'
14208   library_names_spec='${libname}_dll.$libext'
14209   dynamic_linker='OS/2 ld.exe'
14210   shlibpath_var=BEGINLIBPATH
14211   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14212   sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14213   postinstall_cmds='base_file=`basename \$file`~
14214     dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
14215     dldir=$destdir/`dirname \$dlpath`~
14216     test -d \$dldir || mkdir -p \$dldir~
14217     $install_prog $dir/$dlname \$dldir/$dlname~
14218     chmod a+x \$dldir/$dlname~
14219     if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14220       eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14221     fi'
14222   postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
14223     dlpath=$dir/\$dldll~
14224     $RM \$dlpath'
14225   ;;
14226
14227 osf3* | osf4* | osf5*)
14228   version_type=osf
14229   need_lib_prefix=no
14230   need_version=no
14231   soname_spec='$libname$release$shared_ext$major'
14232   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14233   shlibpath_var=LD_LIBRARY_PATH
14234   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14235   sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14236   ;;
14237
14238 rdos*)
14239   dynamic_linker=no
14240   ;;
14241
14242 solaris*)
14243   version_type=linux # correct to gnu/linux during the next big refactor
14244   need_lib_prefix=no
14245   need_version=no
14246   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14247   soname_spec='$libname$release$shared_ext$major'
14248   shlibpath_var=LD_LIBRARY_PATH
14249   shlibpath_overrides_runpath=yes
14250   hardcode_into_libs=yes
14251   # ldd complains unless libraries are executable
14252   postinstall_cmds='chmod +x $lib'
14253   ;;
14254
14255 sunos4*)
14256   version_type=sunos
14257   library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
14258   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14259   shlibpath_var=LD_LIBRARY_PATH
14260   shlibpath_overrides_runpath=yes
14261   if test yes = "$with_gnu_ld"; then
14262     need_lib_prefix=no
14263   fi
14264   need_version=yes
14265   ;;
14266
14267 sysv4 | sysv4.3*)
14268   version_type=linux # correct to gnu/linux during the next big refactor
14269   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14270   soname_spec='$libname$release$shared_ext$major'
14271   shlibpath_var=LD_LIBRARY_PATH
14272   case $host_vendor in
14273     sni)
14274       shlibpath_overrides_runpath=no
14275       need_lib_prefix=no
14276       runpath_var=LD_RUN_PATH
14277       ;;
14278     siemens)
14279       need_lib_prefix=no
14280       ;;
14281     motorola)
14282       need_lib_prefix=no
14283       need_version=no
14284       shlibpath_overrides_runpath=no
14285       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14286       ;;
14287   esac
14288   ;;
14289
14290 sysv4*MP*)
14291   if test -d /usr/nec; then
14292     version_type=linux # correct to gnu/linux during the next big refactor
14293     library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
14294     soname_spec='$libname$shared_ext.$major'
14295     shlibpath_var=LD_LIBRARY_PATH
14296   fi
14297   ;;
14298
14299 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14300   version_type=sco
14301   need_lib_prefix=no
14302   need_version=no
14303   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
14304   soname_spec='$libname$release$shared_ext$major'
14305   shlibpath_var=LD_LIBRARY_PATH
14306   shlibpath_overrides_runpath=yes
14307   hardcode_into_libs=yes
14308   if test yes = "$with_gnu_ld"; then
14309     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14310   else
14311     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14312     case $host_os in
14313       sco3.2v5*)
14314         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14315         ;;
14316     esac
14317   fi
14318   sys_lib_dlsearch_path_spec='/usr/lib'
14319   ;;
14320
14321 tpf*)
14322   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
14323   version_type=linux # correct to gnu/linux during the next big refactor
14324   need_lib_prefix=no
14325   need_version=no
14326   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14327   shlibpath_var=LD_LIBRARY_PATH
14328   shlibpath_overrides_runpath=no
14329   hardcode_into_libs=yes
14330   ;;
14331
14332 uts4*)
14333   version_type=linux # correct to gnu/linux during the next big refactor
14334   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14335   soname_spec='$libname$release$shared_ext$major'
14336   shlibpath_var=LD_LIBRARY_PATH
14337   ;;
14338
14339 *)
14340   dynamic_linker=no
14341   ;;
14342 esac
14343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14344 $as_echo "$dynamic_linker" >&6; }
14345 test no = "$dynamic_linker" && can_build_shared=no
14346
14347 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14348 if test yes = "$GCC"; then
14349   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14350 fi
14351
14352 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
14353   sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
14354 fi
14355
14356 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
14357   sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
14358 fi
14359
14360 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
14361 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
14362
14363 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
14364 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
14365
14366 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
14367 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
14368
14369
14370
14371
14372
14373
14374
14375
14376
14377
14378
14379
14380
14381
14382
14383
14384
14385
14386
14387
14388
14389
14390
14391
14392
14393
14394
14395
14396
14397
14398
14399
14400
14401
14402
14403
14404
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   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14466 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14467 hardcode_action=
14468 if test -n "$hardcode_libdir_flag_spec" ||
14469    test -n "$runpath_var" ||
14470    test yes = "$hardcode_automatic"; then
14471
14472   # We can hardcode non-existent directories.
14473   if test no != "$hardcode_direct" &&
14474      # If the only mechanism to avoid hardcoding is shlibpath_var, we
14475      # have to relink, otherwise we might link with an installed library
14476      # when we should be linking with a yet-to-be-installed one
14477      ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
14478      test no != "$hardcode_minus_L"; then
14479     # Linking always hardcodes the temporary library directory.
14480     hardcode_action=relink
14481   else
14482     # We can link without hardcoding, and we can hardcode nonexisting dirs.
14483     hardcode_action=immediate
14484   fi
14485 else
14486   # We cannot hardcode anything, or else we can only hardcode existing
14487   # directories.
14488   hardcode_action=unsupported
14489 fi
14490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
14491 $as_echo "$hardcode_action" >&6; }
14492
14493 if test relink = "$hardcode_action" ||
14494    test yes = "$inherit_rpath"; then
14495   # Fast installation is not supported
14496   enable_fast_install=no
14497 elif test yes = "$shlibpath_overrides_runpath" ||
14498      test no = "$enable_shared"; then
14499   # Fast installation is not necessary
14500   enable_fast_install=needless
14501 fi
14502
14503
14504
14505
14506
14507
14508   if test yes != "$enable_dlopen"; then
14509   enable_dlopen=unknown
14510   enable_dlopen_self=unknown
14511   enable_dlopen_self_static=unknown
14512 else
14513   lt_cv_dlopen=no
14514   lt_cv_dlopen_libs=
14515
14516   case $host_os in
14517   beos*)
14518     lt_cv_dlopen=load_add_on
14519     lt_cv_dlopen_libs=
14520     lt_cv_dlopen_self=yes
14521     ;;
14522
14523   mingw* | pw32* | cegcc*)
14524     lt_cv_dlopen=LoadLibrary
14525     lt_cv_dlopen_libs=
14526     ;;
14527
14528   cygwin*)
14529     lt_cv_dlopen=dlopen
14530     lt_cv_dlopen_libs=
14531     ;;
14532
14533   darwin*)
14534     # if libdl is installed we need to link against it
14535     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14536 $as_echo_n "checking for dlopen in -ldl... " >&6; }
14537 if ${ac_cv_lib_dl_dlopen+:} false; then :
14538   $as_echo_n "(cached) " >&6
14539 else
14540   ac_check_lib_save_LIBS=$LIBS
14541 LIBS="-ldl  $LIBS"
14542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14543 /* end confdefs.h.  */
14544
14545 /* Override any GCC internal prototype to avoid an error.
14546    Use char because int might match the return type of a GCC
14547    builtin and then its argument prototype would still apply.  */
14548 #ifdef __cplusplus
14549 extern "C"
14550 #endif
14551 char dlopen ();
14552 int
14553 main ()
14554 {
14555 return dlopen ();
14556   ;
14557   return 0;
14558 }
14559 _ACEOF
14560 if ac_fn_c_try_link "$LINENO"; then :
14561   ac_cv_lib_dl_dlopen=yes
14562 else
14563   ac_cv_lib_dl_dlopen=no
14564 fi
14565 rm -f core conftest.err conftest.$ac_objext \
14566     conftest$ac_exeext conftest.$ac_ext
14567 LIBS=$ac_check_lib_save_LIBS
14568 fi
14569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14570 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
14571 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
14572   lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
14573 else
14574
14575     lt_cv_dlopen=dyld
14576     lt_cv_dlopen_libs=
14577     lt_cv_dlopen_self=yes
14578
14579 fi
14580
14581     ;;
14582
14583   tpf*)
14584     # Don't try to run any link tests for TPF.  We know it's impossible
14585     # because TPF is a cross-compiler, and we know how we open DSOs.
14586     lt_cv_dlopen=dlopen
14587     lt_cv_dlopen_libs=
14588     lt_cv_dlopen_self=no
14589     ;;
14590
14591   *)
14592     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
14593 if test "x$ac_cv_func_shl_load" = xyes; then :
14594   lt_cv_dlopen=shl_load
14595 else
14596   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
14597 $as_echo_n "checking for shl_load in -ldld... " >&6; }
14598 if ${ac_cv_lib_dld_shl_load+:} false; then :
14599   $as_echo_n "(cached) " >&6
14600 else
14601   ac_check_lib_save_LIBS=$LIBS
14602 LIBS="-ldld  $LIBS"
14603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14604 /* end confdefs.h.  */
14605
14606 /* Override any GCC internal prototype to avoid an error.
14607    Use char because int might match the return type of a GCC
14608    builtin and then its argument prototype would still apply.  */
14609 #ifdef __cplusplus
14610 extern "C"
14611 #endif
14612 char shl_load ();
14613 int
14614 main ()
14615 {
14616 return shl_load ();
14617   ;
14618   return 0;
14619 }
14620 _ACEOF
14621 if ac_fn_c_try_link "$LINENO"; then :
14622   ac_cv_lib_dld_shl_load=yes
14623 else
14624   ac_cv_lib_dld_shl_load=no
14625 fi
14626 rm -f core conftest.err conftest.$ac_objext \
14627     conftest$ac_exeext conftest.$ac_ext
14628 LIBS=$ac_check_lib_save_LIBS
14629 fi
14630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
14631 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
14632 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
14633   lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
14634 else
14635   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
14636 if test "x$ac_cv_func_dlopen" = xyes; then :
14637   lt_cv_dlopen=dlopen
14638 else
14639   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14640 $as_echo_n "checking for dlopen in -ldl... " >&6; }
14641 if ${ac_cv_lib_dl_dlopen+:} false; then :
14642   $as_echo_n "(cached) " >&6
14643 else
14644   ac_check_lib_save_LIBS=$LIBS
14645 LIBS="-ldl  $LIBS"
14646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14647 /* end confdefs.h.  */
14648
14649 /* Override any GCC internal prototype to avoid an error.
14650    Use char because int might match the return type of a GCC
14651    builtin and then its argument prototype would still apply.  */
14652 #ifdef __cplusplus
14653 extern "C"
14654 #endif
14655 char dlopen ();
14656 int
14657 main ()
14658 {
14659 return dlopen ();
14660   ;
14661   return 0;
14662 }
14663 _ACEOF
14664 if ac_fn_c_try_link "$LINENO"; then :
14665   ac_cv_lib_dl_dlopen=yes
14666 else
14667   ac_cv_lib_dl_dlopen=no
14668 fi
14669 rm -f core conftest.err conftest.$ac_objext \
14670     conftest$ac_exeext conftest.$ac_ext
14671 LIBS=$ac_check_lib_save_LIBS
14672 fi
14673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14674 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
14675 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
14676   lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
14677 else
14678   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
14679 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
14680 if ${ac_cv_lib_svld_dlopen+:} false; then :
14681   $as_echo_n "(cached) " >&6
14682 else
14683   ac_check_lib_save_LIBS=$LIBS
14684 LIBS="-lsvld  $LIBS"
14685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14686 /* end confdefs.h.  */
14687
14688 /* Override any GCC internal prototype to avoid an error.
14689    Use char because int might match the return type of a GCC
14690    builtin and then its argument prototype would still apply.  */
14691 #ifdef __cplusplus
14692 extern "C"
14693 #endif
14694 char dlopen ();
14695 int
14696 main ()
14697 {
14698 return dlopen ();
14699   ;
14700   return 0;
14701 }
14702 _ACEOF
14703 if ac_fn_c_try_link "$LINENO"; then :
14704   ac_cv_lib_svld_dlopen=yes
14705 else
14706   ac_cv_lib_svld_dlopen=no
14707 fi
14708 rm -f core conftest.err conftest.$ac_objext \
14709     conftest$ac_exeext conftest.$ac_ext
14710 LIBS=$ac_check_lib_save_LIBS
14711 fi
14712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
14713 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
14714 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
14715   lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
14716 else
14717   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
14718 $as_echo_n "checking for dld_link in -ldld... " >&6; }
14719 if ${ac_cv_lib_dld_dld_link+:} false; then :
14720   $as_echo_n "(cached) " >&6
14721 else
14722   ac_check_lib_save_LIBS=$LIBS
14723 LIBS="-ldld  $LIBS"
14724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14725 /* end confdefs.h.  */
14726
14727 /* Override any GCC internal prototype to avoid an error.
14728    Use char because int might match the return type of a GCC
14729    builtin and then its argument prototype would still apply.  */
14730 #ifdef __cplusplus
14731 extern "C"
14732 #endif
14733 char dld_link ();
14734 int
14735 main ()
14736 {
14737 return dld_link ();
14738   ;
14739   return 0;
14740 }
14741 _ACEOF
14742 if ac_fn_c_try_link "$LINENO"; then :
14743   ac_cv_lib_dld_dld_link=yes
14744 else
14745   ac_cv_lib_dld_dld_link=no
14746 fi
14747 rm -f core conftest.err conftest.$ac_objext \
14748     conftest$ac_exeext conftest.$ac_ext
14749 LIBS=$ac_check_lib_save_LIBS
14750 fi
14751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
14752 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
14753 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
14754   lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
14755 fi
14756
14757
14758 fi
14759
14760
14761 fi
14762
14763
14764 fi
14765
14766
14767 fi
14768
14769
14770 fi
14771
14772     ;;
14773   esac
14774
14775   if test no = "$lt_cv_dlopen"; then
14776     enable_dlopen=no
14777   else
14778     enable_dlopen=yes
14779   fi
14780
14781   case $lt_cv_dlopen in
14782   dlopen)
14783     save_CPPFLAGS=$CPPFLAGS
14784     test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
14785
14786     save_LDFLAGS=$LDFLAGS
14787     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
14788
14789     save_LIBS=$LIBS
14790     LIBS="$lt_cv_dlopen_libs $LIBS"
14791
14792     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
14793 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
14794 if ${lt_cv_dlopen_self+:} false; then :
14795   $as_echo_n "(cached) " >&6
14796 else
14797           if test yes = "$cross_compiling"; then :
14798   lt_cv_dlopen_self=cross
14799 else
14800   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14801   lt_status=$lt_dlunknown
14802   cat > conftest.$ac_ext <<_LT_EOF
14803 #line $LINENO "configure"
14804 #include "confdefs.h"
14805
14806 #if HAVE_DLFCN_H
14807 #include <dlfcn.h>
14808 #endif
14809
14810 #include <stdio.h>
14811
14812 #ifdef RTLD_GLOBAL
14813 #  define LT_DLGLOBAL           RTLD_GLOBAL
14814 #else
14815 #  ifdef DL_GLOBAL
14816 #    define LT_DLGLOBAL         DL_GLOBAL
14817 #  else
14818 #    define LT_DLGLOBAL         0
14819 #  endif
14820 #endif
14821
14822 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14823    find out it does not work in some platform. */
14824 #ifndef LT_DLLAZY_OR_NOW
14825 #  ifdef RTLD_LAZY
14826 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
14827 #  else
14828 #    ifdef DL_LAZY
14829 #      define LT_DLLAZY_OR_NOW          DL_LAZY
14830 #    else
14831 #      ifdef RTLD_NOW
14832 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
14833 #      else
14834 #        ifdef DL_NOW
14835 #          define LT_DLLAZY_OR_NOW      DL_NOW
14836 #        else
14837 #          define LT_DLLAZY_OR_NOW      0
14838 #        endif
14839 #      endif
14840 #    endif
14841 #  endif
14842 #endif
14843
14844 /* When -fvisibility=hidden is used, assume the code has been annotated
14845    correspondingly for the symbols needed.  */
14846 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
14847 int fnord () __attribute__((visibility("default")));
14848 #endif
14849
14850 int fnord () { return 42; }
14851 int main ()
14852 {
14853   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14854   int status = $lt_dlunknown;
14855
14856   if (self)
14857     {
14858       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
14859       else
14860         {
14861           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
14862           else puts (dlerror ());
14863         }
14864       /* dlclose (self); */
14865     }
14866   else
14867     puts (dlerror ());
14868
14869   return status;
14870 }
14871 _LT_EOF
14872   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14873   (eval $ac_link) 2>&5
14874   ac_status=$?
14875   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14876   test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
14877     (./conftest; exit; ) >&5 2>/dev/null
14878     lt_status=$?
14879     case x$lt_status in
14880       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
14881       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
14882       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
14883     esac
14884   else :
14885     # compilation failed
14886     lt_cv_dlopen_self=no
14887   fi
14888 fi
14889 rm -fr conftest*
14890
14891
14892 fi
14893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
14894 $as_echo "$lt_cv_dlopen_self" >&6; }
14895
14896     if test yes = "$lt_cv_dlopen_self"; then
14897       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
14898       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
14899 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
14900 if ${lt_cv_dlopen_self_static+:} false; then :
14901   $as_echo_n "(cached) " >&6
14902 else
14903           if test yes = "$cross_compiling"; then :
14904   lt_cv_dlopen_self_static=cross
14905 else
14906   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14907   lt_status=$lt_dlunknown
14908   cat > conftest.$ac_ext <<_LT_EOF
14909 #line $LINENO "configure"
14910 #include "confdefs.h"
14911
14912 #if HAVE_DLFCN_H
14913 #include <dlfcn.h>
14914 #endif
14915
14916 #include <stdio.h>
14917
14918 #ifdef RTLD_GLOBAL
14919 #  define LT_DLGLOBAL           RTLD_GLOBAL
14920 #else
14921 #  ifdef DL_GLOBAL
14922 #    define LT_DLGLOBAL         DL_GLOBAL
14923 #  else
14924 #    define LT_DLGLOBAL         0
14925 #  endif
14926 #endif
14927
14928 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14929    find out it does not work in some platform. */
14930 #ifndef LT_DLLAZY_OR_NOW
14931 #  ifdef RTLD_LAZY
14932 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
14933 #  else
14934 #    ifdef DL_LAZY
14935 #      define LT_DLLAZY_OR_NOW          DL_LAZY
14936 #    else
14937 #      ifdef RTLD_NOW
14938 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
14939 #      else
14940 #        ifdef DL_NOW
14941 #          define LT_DLLAZY_OR_NOW      DL_NOW
14942 #        else
14943 #          define LT_DLLAZY_OR_NOW      0
14944 #        endif
14945 #      endif
14946 #    endif
14947 #  endif
14948 #endif
14949
14950 /* When -fvisibility=hidden is used, assume the code has been annotated
14951    correspondingly for the symbols needed.  */
14952 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
14953 int fnord () __attribute__((visibility("default")));
14954 #endif
14955
14956 int fnord () { return 42; }
14957 int main ()
14958 {
14959   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14960   int status = $lt_dlunknown;
14961
14962   if (self)
14963     {
14964       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
14965       else
14966         {
14967           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
14968           else puts (dlerror ());
14969         }
14970       /* dlclose (self); */
14971     }
14972   else
14973     puts (dlerror ());
14974
14975   return status;
14976 }
14977 _LT_EOF
14978   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14979   (eval $ac_link) 2>&5
14980   ac_status=$?
14981   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14982   test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
14983     (./conftest; exit; ) >&5 2>/dev/null
14984     lt_status=$?
14985     case x$lt_status in
14986       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
14987       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
14988       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
14989     esac
14990   else :
14991     # compilation failed
14992     lt_cv_dlopen_self_static=no
14993   fi
14994 fi
14995 rm -fr conftest*
14996
14997
14998 fi
14999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
15000 $as_echo "$lt_cv_dlopen_self_static" >&6; }
15001     fi
15002
15003     CPPFLAGS=$save_CPPFLAGS
15004     LDFLAGS=$save_LDFLAGS
15005     LIBS=$save_LIBS
15006     ;;
15007   esac
15008
15009   case $lt_cv_dlopen_self in
15010   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
15011   *) enable_dlopen_self=unknown ;;
15012   esac
15013
15014   case $lt_cv_dlopen_self_static in
15015   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
15016   *) enable_dlopen_self_static=unknown ;;
15017   esac
15018 fi
15019
15020
15021
15022
15023
15024
15025
15026
15027
15028
15029
15030
15031
15032
15033
15034
15035
15036 striplib=
15037 old_striplib=
15038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
15039 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
15040 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
15041   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15042   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15043   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15044 $as_echo "yes" >&6; }
15045 else
15046 # FIXME - insert some real tests, host_os isn't really good enough
15047   case $host_os in
15048   darwin*)
15049     if test -n "$STRIP"; then
15050       striplib="$STRIP -x"
15051       old_striplib="$STRIP -S"
15052       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15053 $as_echo "yes" >&6; }
15054     else
15055       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15056 $as_echo "no" >&6; }
15057     fi
15058     ;;
15059   *)
15060     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15061 $as_echo "no" >&6; }
15062     ;;
15063   esac
15064 fi
15065
15066
15067
15068
15069
15070
15071
15072
15073
15074
15075
15076
15077   # Report what library types will actually be built
15078   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
15079 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
15080   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
15081 $as_echo "$can_build_shared" >&6; }
15082
15083   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
15084 $as_echo_n "checking whether to build shared libraries... " >&6; }
15085   test no = "$can_build_shared" && enable_shared=no
15086
15087   # On AIX, shared libraries and static libraries use the same namespace, and
15088   # are all built from PIC.
15089   case $host_os in
15090   aix3*)
15091     test yes = "$enable_shared" && enable_static=no
15092     if test -n "$RANLIB"; then
15093       archive_cmds="$archive_cmds~\$RANLIB \$lib"
15094       postinstall_cmds='$RANLIB $lib'
15095     fi
15096     ;;
15097
15098   aix[4-9]*)
15099     if test ia64 != "$host_cpu"; then
15100       case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
15101       yes,aix,yes) ;;                   # shared object as lib.so file only
15102       yes,svr4,*) ;;                    # shared object as lib.so archive member only
15103       yes,*) enable_static=no ;;        # shared object in lib.a archive as well
15104       esac
15105     fi
15106     ;;
15107   esac
15108   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
15109 $as_echo "$enable_shared" >&6; }
15110
15111   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
15112 $as_echo_n "checking whether to build static libraries... " >&6; }
15113   # Make sure either enable_shared or enable_static is yes.
15114   test yes = "$enable_shared" || enable_static=yes
15115   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
15116 $as_echo "$enable_static" >&6; }
15117
15118
15119
15120
15121 fi
15122 ac_ext=c
15123 ac_cpp='$CPP $CPPFLAGS'
15124 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15125 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15126 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15127
15128 CC=$lt_save_CC
15129
15130       if test -n "$CXX" && ( test no != "$CXX" &&
15131     ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
15132     (test g++ != "$CXX"))); then
15133   ac_ext=cpp
15134 ac_cpp='$CXXCPP $CPPFLAGS'
15135 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15136 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15137 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
15139 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
15140 if test -z "$CXXCPP"; then
15141   if ${ac_cv_prog_CXXCPP+:} false; then :
15142   $as_echo_n "(cached) " >&6
15143 else
15144       # Double quotes because CXXCPP needs to be expanded
15145     for CXXCPP in "$CXX -E" "/lib/cpp"
15146     do
15147       ac_preproc_ok=false
15148 for ac_cxx_preproc_warn_flag in '' yes
15149 do
15150   # Use a header file that comes with gcc, so configuring glibc
15151   # with a fresh cross-compiler works.
15152   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15153   # <limits.h> exists even on freestanding compilers.
15154   # On the NeXT, cc -E runs the code through the compiler's parser,
15155   # not just through cpp. "Syntax error" is here to catch this case.
15156   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15157 /* end confdefs.h.  */
15158 #ifdef __STDC__
15159 # include <limits.h>
15160 #else
15161 # include <assert.h>
15162 #endif
15163                      Syntax error
15164 _ACEOF
15165 if ac_fn_cxx_try_cpp "$LINENO"; then :
15166
15167 else
15168   # Broken: fails on valid input.
15169 continue
15170 fi
15171 rm -f conftest.err conftest.i conftest.$ac_ext
15172
15173   # OK, works on sane cases.  Now check whether nonexistent headers
15174   # can be detected and how.
15175   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15176 /* end confdefs.h.  */
15177 #include <ac_nonexistent.h>
15178 _ACEOF
15179 if ac_fn_cxx_try_cpp "$LINENO"; then :
15180   # Broken: success on invalid input.
15181 continue
15182 else
15183   # Passes both tests.
15184 ac_preproc_ok=:
15185 break
15186 fi
15187 rm -f conftest.err conftest.i conftest.$ac_ext
15188
15189 done
15190 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
15191 rm -f conftest.i conftest.err conftest.$ac_ext
15192 if $ac_preproc_ok; then :
15193   break
15194 fi
15195
15196     done
15197     ac_cv_prog_CXXCPP=$CXXCPP
15198
15199 fi
15200   CXXCPP=$ac_cv_prog_CXXCPP
15201 else
15202   ac_cv_prog_CXXCPP=$CXXCPP
15203 fi
15204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
15205 $as_echo "$CXXCPP" >&6; }
15206 ac_preproc_ok=false
15207 for ac_cxx_preproc_warn_flag in '' yes
15208 do
15209   # Use a header file that comes with gcc, so configuring glibc
15210   # with a fresh cross-compiler works.
15211   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15212   # <limits.h> exists even on freestanding compilers.
15213   # On the NeXT, cc -E runs the code through the compiler's parser,
15214   # not just through cpp. "Syntax error" is here to catch this case.
15215   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15216 /* end confdefs.h.  */
15217 #ifdef __STDC__
15218 # include <limits.h>
15219 #else
15220 # include <assert.h>
15221 #endif
15222                      Syntax error
15223 _ACEOF
15224 if ac_fn_cxx_try_cpp "$LINENO"; then :
15225
15226 else
15227   # Broken: fails on valid input.
15228 continue
15229 fi
15230 rm -f conftest.err conftest.i conftest.$ac_ext
15231
15232   # OK, works on sane cases.  Now check whether nonexistent headers
15233   # can be detected and how.
15234   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15235 /* end confdefs.h.  */
15236 #include <ac_nonexistent.h>
15237 _ACEOF
15238 if ac_fn_cxx_try_cpp "$LINENO"; then :
15239   # Broken: success on invalid input.
15240 continue
15241 else
15242   # Passes both tests.
15243 ac_preproc_ok=:
15244 break
15245 fi
15246 rm -f conftest.err conftest.i conftest.$ac_ext
15247
15248 done
15249 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
15250 rm -f conftest.i conftest.err conftest.$ac_ext
15251 if $ac_preproc_ok; then :
15252
15253 else
15254   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15255 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15256 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
15257 See \`config.log' for more details" "$LINENO" 5; }
15258 fi
15259
15260 ac_ext=c
15261 ac_cpp='$CPP $CPPFLAGS'
15262 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15263 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15264 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15265
15266 else
15267   _lt_caught_CXX_error=yes
15268 fi
15269
15270 ac_ext=cpp
15271 ac_cpp='$CXXCPP $CPPFLAGS'
15272 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15273 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15274 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15275
15276 archive_cmds_need_lc_CXX=no
15277 allow_undefined_flag_CXX=
15278 always_export_symbols_CXX=no
15279 archive_expsym_cmds_CXX=
15280 compiler_needs_object_CXX=no
15281 export_dynamic_flag_spec_CXX=
15282 hardcode_direct_CXX=no
15283 hardcode_direct_absolute_CXX=no
15284 hardcode_libdir_flag_spec_CXX=
15285 hardcode_libdir_separator_CXX=
15286 hardcode_minus_L_CXX=no
15287 hardcode_shlibpath_var_CXX=unsupported
15288 hardcode_automatic_CXX=no
15289 inherit_rpath_CXX=no
15290 module_cmds_CXX=
15291 module_expsym_cmds_CXX=
15292 link_all_deplibs_CXX=unknown
15293 old_archive_cmds_CXX=$old_archive_cmds
15294 reload_flag_CXX=$reload_flag
15295 reload_cmds_CXX=$reload_cmds
15296 no_undefined_flag_CXX=
15297 whole_archive_flag_spec_CXX=
15298 enable_shared_with_static_runtimes_CXX=no
15299
15300 # Source file extension for C++ test sources.
15301 ac_ext=cpp
15302
15303 # Object file extension for compiled C++ test sources.
15304 objext=o
15305 objext_CXX=$objext
15306
15307 # No sense in running all these tests if we already determined that
15308 # the CXX compiler isn't working.  Some variables (like enable_shared)
15309 # are currently assumed to apply to all compilers on this platform,
15310 # and will be corrupted by setting them based on a non-working compiler.
15311 if test yes != "$_lt_caught_CXX_error"; then
15312   # Code to be used in simple compile tests
15313   lt_simple_compile_test_code="int some_variable = 0;"
15314
15315   # Code to be used in simple link tests
15316   lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
15317
15318   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15319
15320
15321
15322
15323
15324
15325 # If no C compiler was specified, use CC.
15326 LTCC=${LTCC-"$CC"}
15327
15328 # If no C compiler flags were specified, use CFLAGS.
15329 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15330
15331 # Allow CC to be a program name with arguments.
15332 compiler=$CC
15333
15334
15335   # save warnings/boilerplate of simple test code
15336   ac_outfile=conftest.$ac_objext
15337 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15338 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15339 _lt_compiler_boilerplate=`cat conftest.err`
15340 $RM conftest*
15341
15342   ac_outfile=conftest.$ac_objext
15343 echo "$lt_simple_link_test_code" >conftest.$ac_ext
15344 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15345 _lt_linker_boilerplate=`cat conftest.err`
15346 $RM -r conftest*
15347
15348
15349   # Allow CC to be a program name with arguments.
15350   lt_save_CC=$CC
15351   lt_save_CFLAGS=$CFLAGS
15352   lt_save_LD=$LD
15353   lt_save_GCC=$GCC
15354   GCC=$GXX
15355   lt_save_with_gnu_ld=$with_gnu_ld
15356   lt_save_path_LD=$lt_cv_path_LD
15357   if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
15358     lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
15359   else
15360     $as_unset lt_cv_prog_gnu_ld
15361   fi
15362   if test -n "${lt_cv_path_LDCXX+set}"; then
15363     lt_cv_path_LD=$lt_cv_path_LDCXX
15364   else
15365     $as_unset lt_cv_path_LD
15366   fi
15367   test -z "${LDCXX+set}" || LD=$LDCXX
15368   CC=${CXX-"c++"}
15369   CFLAGS=$CXXFLAGS
15370   compiler=$CC
15371   compiler_CXX=$CC
15372   func_cc_basename $compiler
15373 cc_basename=$func_cc_basename_result
15374
15375
15376   if test -n "$compiler"; then
15377     # We don't want -fno-exception when compiling C++ code, so set the
15378     # no_builtin_flag separately
15379     if test yes = "$GXX"; then
15380       lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
15381     else
15382       lt_prog_compiler_no_builtin_flag_CXX=
15383     fi
15384
15385     if test yes = "$GXX"; then
15386       # Set up default GNU C++ configuration
15387
15388
15389
15390 # Check whether --with-gnu-ld was given.
15391 if test "${with_gnu_ld+set}" = set; then :
15392   withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
15393 else
15394   with_gnu_ld=no
15395 fi
15396
15397 ac_prog=ld
15398 if test yes = "$GCC"; then
15399   # Check if gcc -print-prog-name=ld gives a path.
15400   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
15401 $as_echo_n "checking for ld used by $CC... " >&6; }
15402   case $host in
15403   *-*-mingw*)
15404     # gcc leaves a trailing carriage return, which upsets mingw
15405     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
15406   *)
15407     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
15408   esac
15409   case $ac_prog in
15410     # Accept absolute paths.
15411     [\\/]* | ?:[\\/]*)
15412       re_direlt='/[^/][^/]*/\.\./'
15413       # Canonicalize the pathname of ld
15414       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
15415       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
15416         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
15417       done
15418       test -z "$LD" && LD=$ac_prog
15419       ;;
15420   "")
15421     # If it fails, then pretend we aren't using GCC.
15422     ac_prog=ld
15423     ;;
15424   *)
15425     # If it is relative, then search for the first ld in PATH.
15426     with_gnu_ld=unknown
15427     ;;
15428   esac
15429 elif test yes = "$with_gnu_ld"; then
15430   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
15431 $as_echo_n "checking for GNU ld... " >&6; }
15432 else
15433   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
15434 $as_echo_n "checking for non-GNU ld... " >&6; }
15435 fi
15436 if ${lt_cv_path_LD+:} false; then :
15437   $as_echo_n "(cached) " >&6
15438 else
15439   if test -z "$LD"; then
15440   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
15441   for ac_dir in $PATH; do
15442     IFS=$lt_save_ifs
15443     test -z "$ac_dir" && ac_dir=.
15444     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
15445       lt_cv_path_LD=$ac_dir/$ac_prog
15446       # Check to see if the program is GNU ld.  I'd rather use --version,
15447       # but apparently some variants of GNU ld only accept -v.
15448       # Break only if it was the GNU/non-GNU ld that we prefer.
15449       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
15450       *GNU* | *'with BFD'*)
15451         test no != "$with_gnu_ld" && break
15452         ;;
15453       *)
15454         test yes != "$with_gnu_ld" && break
15455         ;;
15456       esac
15457     fi
15458   done
15459   IFS=$lt_save_ifs
15460 else
15461   lt_cv_path_LD=$LD # Let the user override the test with a path.
15462 fi
15463 fi
15464
15465 LD=$lt_cv_path_LD
15466 if test -n "$LD"; then
15467   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
15468 $as_echo "$LD" >&6; }
15469 else
15470   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15471 $as_echo "no" >&6; }
15472 fi
15473 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
15474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
15475 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
15476 if ${lt_cv_prog_gnu_ld+:} false; then :
15477   $as_echo_n "(cached) " >&6
15478 else
15479   # I'd rather use --version here, but apparently some GNU lds only accept -v.
15480 case `$LD -v 2>&1 </dev/null` in
15481 *GNU* | *'with BFD'*)
15482   lt_cv_prog_gnu_ld=yes
15483   ;;
15484 *)
15485   lt_cv_prog_gnu_ld=no
15486   ;;
15487 esac
15488 fi
15489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
15490 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
15491 with_gnu_ld=$lt_cv_prog_gnu_ld
15492
15493
15494
15495
15496
15497
15498
15499       # Check if GNU C++ uses GNU ld as the underlying linker, since the
15500       # archiving commands below assume that GNU ld is being used.
15501       if test yes = "$with_gnu_ld"; then
15502         archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
15503         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'
15504
15505         hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
15506         export_dynamic_flag_spec_CXX='$wl--export-dynamic'
15507
15508         # If archive_cmds runs LD, not CC, wlarc should be empty
15509         # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
15510         #     investigate it a little bit more. (MM)
15511         wlarc='$wl'
15512
15513         # ancient GNU ld didn't support --whole-archive et. al.
15514         if eval "`$CC -print-prog-name=ld` --help 2>&1" |
15515           $GREP 'no-whole-archive' > /dev/null; then
15516           whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
15517         else
15518           whole_archive_flag_spec_CXX=
15519         fi
15520       else
15521         with_gnu_ld=no
15522         wlarc=
15523
15524         # A generic and very simple default shared library creation
15525         # command for GNU C++ for the case where it uses the native
15526         # linker, instead of GNU ld.  If possible, this setting should
15527         # overridden to take advantage of the native linker features on
15528         # the platform it is being used on.
15529         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15530       fi
15531
15532       # Commands to make compiler produce verbose output that lists
15533       # what "hidden" libraries, object files and flags are used when
15534       # linking a shared library.
15535       output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
15536
15537     else
15538       GXX=no
15539       with_gnu_ld=no
15540       wlarc=
15541     fi
15542
15543     # PORTME: fill in a description of your system's C++ link characteristics
15544     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15545 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15546     ld_shlibs_CXX=yes
15547     case $host_os in
15548       aix3*)
15549         # FIXME: insert proper C++ library support
15550         ld_shlibs_CXX=no
15551         ;;
15552       aix[4-9]*)
15553         if test ia64 = "$host_cpu"; then
15554           # On IA64, the linker does run time linking by default, so we don't
15555           # have to do anything special.
15556           aix_use_runtimelinking=no
15557           exp_sym_flag='-Bexport'
15558           no_entry_flag=
15559         else
15560           aix_use_runtimelinking=no
15561
15562           # Test if we are trying to use run time linking or normal
15563           # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15564           # have runtime linking enabled, and use it for executables.
15565           # For shared libraries, we enable/disable runtime linking
15566           # depending on the kind of the shared library created -
15567           # when "with_aix_soname,aix_use_runtimelinking" is:
15568           # "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
15569           # "aix,yes"  lib.so          shared, rtl:yes, for executables
15570           #            lib.a           static archive
15571           # "both,no"  lib.so.V(shr.o) shared, rtl:yes
15572           #            lib.a(lib.so.V) shared, rtl:no,  for executables
15573           # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
15574           #            lib.a(lib.so.V) shared, rtl:no
15575           # "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
15576           #            lib.a           static archive
15577           case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15578             for ld_flag in $LDFLAGS; do
15579               case $ld_flag in
15580               *-brtl*)
15581                 aix_use_runtimelinking=yes
15582                 break
15583                 ;;
15584               esac
15585             done
15586             if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
15587               # With aix-soname=svr4, we create the lib.so.V shared archives only,
15588               # so we don't have lib.a shared libs to link our executables.
15589               # We have to force runtime linking in this case.
15590               aix_use_runtimelinking=yes
15591               LDFLAGS="$LDFLAGS -Wl,-brtl"
15592             fi
15593             ;;
15594           esac
15595
15596           exp_sym_flag='-bexport'
15597           no_entry_flag='-bnoentry'
15598         fi
15599
15600         # When large executables or shared objects are built, AIX ld can
15601         # have problems creating the table of contents.  If linking a library
15602         # or program results in "error TOC overflow" add -mminimal-toc to
15603         # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15604         # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15605
15606         archive_cmds_CXX=''
15607         hardcode_direct_CXX=yes
15608         hardcode_direct_absolute_CXX=yes
15609         hardcode_libdir_separator_CXX=':'
15610         link_all_deplibs_CXX=yes
15611         file_list_spec_CXX='$wl-f,'
15612         case $with_aix_soname,$aix_use_runtimelinking in
15613         aix,*) ;;       # no import file
15614         svr4,* | *,yes) # use import file
15615           # The Import File defines what to hardcode.
15616           hardcode_direct_CXX=no
15617           hardcode_direct_absolute_CXX=no
15618           ;;
15619         esac
15620
15621         if test yes = "$GXX"; then
15622           case $host_os in aix4.[012]|aix4.[012].*)
15623           # We only want to do this on AIX 4.2 and lower, the check
15624           # below for broken collect2 doesn't work under 4.3+
15625           collect2name=`$CC -print-prog-name=collect2`
15626           if test -f "$collect2name" &&
15627              strings "$collect2name" | $GREP resolve_lib_name >/dev/null
15628           then
15629             # We have reworked collect2
15630             :
15631           else
15632             # We have old collect2
15633             hardcode_direct_CXX=unsupported
15634             # It fails to find uninstalled libraries when the uninstalled
15635             # path is not listed in the libpath.  Setting hardcode_minus_L
15636             # to unsupported forces relinking
15637             hardcode_minus_L_CXX=yes
15638             hardcode_libdir_flag_spec_CXX='-L$libdir'
15639             hardcode_libdir_separator_CXX=
15640           fi
15641           esac
15642           shared_flag='-shared'
15643           if test yes = "$aix_use_runtimelinking"; then
15644             shared_flag=$shared_flag' $wl-G'
15645           fi
15646           # Need to ensure runtime linking is disabled for the traditional
15647           # shared library, or the linker may eventually find shared libraries
15648           # /with/ Import File - we do not want to mix them.
15649           shared_flag_aix='-shared'
15650           shared_flag_svr4='-shared $wl-G'
15651         else
15652           # not using gcc
15653           if test ia64 = "$host_cpu"; then
15654           # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15655           # chokes on -Wl,-G. The following line is correct:
15656           shared_flag='-G'
15657           else
15658             if test yes = "$aix_use_runtimelinking"; then
15659               shared_flag='$wl-G'
15660             else
15661               shared_flag='$wl-bM:SRE'
15662             fi
15663             shared_flag_aix='$wl-bM:SRE'
15664             shared_flag_svr4='$wl-G'
15665           fi
15666         fi
15667
15668         export_dynamic_flag_spec_CXX='$wl-bexpall'
15669         # It seems that -bexpall does not export symbols beginning with
15670         # underscore (_), so it is better to generate a list of symbols to
15671         # export.
15672         always_export_symbols_CXX=yes
15673         if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
15674           # Warning - without using the other runtime loading flags (-brtl),
15675           # -berok will link without error, but may produce a broken library.
15676           # The "-G" linker flag allows undefined symbols.
15677           no_undefined_flag_CXX='-bernotok'
15678           # Determine the default libpath from the value encoded in an empty
15679           # executable.
15680           if test set = "${lt_cv_aix_libpath+set}"; then
15681   aix_libpath=$lt_cv_aix_libpath
15682 else
15683   if ${lt_cv_aix_libpath__CXX+:} false; then :
15684   $as_echo_n "(cached) " >&6
15685 else
15686   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15687 /* end confdefs.h.  */
15688
15689 int
15690 main ()
15691 {
15692
15693   ;
15694   return 0;
15695 }
15696 _ACEOF
15697 if ac_fn_cxx_try_link "$LINENO"; then :
15698
15699   lt_aix_libpath_sed='
15700       /Import File Strings/,/^$/ {
15701           /^0/ {
15702               s/^0  *\([^ ]*\) *$/\1/
15703               p
15704           }
15705       }'
15706   lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15707   # Check for a 64-bit object if we didn't find anything.
15708   if test -z "$lt_cv_aix_libpath__CXX"; then
15709     lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15710   fi
15711 fi
15712 rm -f core conftest.err conftest.$ac_objext \
15713     conftest$ac_exeext conftest.$ac_ext
15714   if test -z "$lt_cv_aix_libpath__CXX"; then
15715     lt_cv_aix_libpath__CXX=/usr/lib:/lib
15716   fi
15717
15718 fi
15719
15720   aix_libpath=$lt_cv_aix_libpath__CXX
15721 fi
15722
15723           hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
15724
15725           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
15726         else
15727           if test ia64 = "$host_cpu"; then
15728             hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib'
15729             allow_undefined_flag_CXX="-z nodefs"
15730             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"
15731           else
15732             # Determine the default libpath from the value encoded in an
15733             # empty executable.
15734             if test set = "${lt_cv_aix_libpath+set}"; then
15735   aix_libpath=$lt_cv_aix_libpath
15736 else
15737   if ${lt_cv_aix_libpath__CXX+:} false; then :
15738   $as_echo_n "(cached) " >&6
15739 else
15740   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15741 /* end confdefs.h.  */
15742
15743 int
15744 main ()
15745 {
15746
15747   ;
15748   return 0;
15749 }
15750 _ACEOF
15751 if ac_fn_cxx_try_link "$LINENO"; then :
15752
15753   lt_aix_libpath_sed='
15754       /Import File Strings/,/^$/ {
15755           /^0/ {
15756               s/^0  *\([^ ]*\) *$/\1/
15757               p
15758           }
15759       }'
15760   lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15761   # Check for a 64-bit object if we didn't find anything.
15762   if test -z "$lt_cv_aix_libpath__CXX"; then
15763     lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15764   fi
15765 fi
15766 rm -f core conftest.err conftest.$ac_objext \
15767     conftest$ac_exeext conftest.$ac_ext
15768   if test -z "$lt_cv_aix_libpath__CXX"; then
15769     lt_cv_aix_libpath__CXX=/usr/lib:/lib
15770   fi
15771
15772 fi
15773
15774   aix_libpath=$lt_cv_aix_libpath__CXX
15775 fi
15776
15777             hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
15778             # Warning - without using the other run time loading flags,
15779             # -berok will link without error, but may produce a broken library.
15780             no_undefined_flag_CXX=' $wl-bernotok'
15781             allow_undefined_flag_CXX=' $wl-berok'
15782             if test yes = "$with_gnu_ld"; then
15783               # We only use this code for GNU lds that support --whole-archive.
15784               whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
15785             else
15786               # Exported symbols can be pulled into shared objects from archives
15787               whole_archive_flag_spec_CXX='$convenience'
15788             fi
15789             archive_cmds_need_lc_CXX=yes
15790             archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
15791             # -brtl affects multiple linker settings, -berok does not and is overridden later
15792             compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
15793             if test svr4 != "$with_aix_soname"; then
15794               # This is similar to how AIX traditionally builds its shared
15795               # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
15796               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'
15797             fi
15798             if test aix != "$with_aix_soname"; then
15799               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'
15800             else
15801               # used by -dlpreopen to get the symbols
15802               archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
15803             fi
15804             archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d'
15805           fi
15806         fi
15807         ;;
15808
15809       beos*)
15810         if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15811           allow_undefined_flag_CXX=unsupported
15812           # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15813           # support --undefined.  This deserves some investigation.  FIXME
15814           archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15815         else
15816           ld_shlibs_CXX=no
15817         fi
15818         ;;
15819
15820       chorus*)
15821         case $cc_basename in
15822           *)
15823           # FIXME: insert proper C++ library support
15824           ld_shlibs_CXX=no
15825           ;;
15826         esac
15827         ;;
15828
15829       cygwin* | mingw* | pw32* | cegcc*)
15830         case $GXX,$cc_basename in
15831         ,cl* | no,cl*)
15832           # Native MSVC
15833           # hardcode_libdir_flag_spec is actually meaningless, as there is
15834           # no search path for DLLs.
15835           hardcode_libdir_flag_spec_CXX=' '
15836           allow_undefined_flag_CXX=unsupported
15837           always_export_symbols_CXX=yes
15838           file_list_spec_CXX='@'
15839           # Tell ltmain to make .lib files, not .a files.
15840           libext=lib
15841           # Tell ltmain to make .dll files, not .so files.
15842           shrext_cmds=.dll
15843           # FIXME: Setting linknames here is a bad hack.
15844           archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
15845           archive_expsym_cmds_CXX='if   test DEF = "`$SED -n     -e '\''s/^[     ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([     ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
15846               cp "$export_symbols" "$output_objdir/$soname.def";
15847               echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
15848             else
15849               $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
15850             fi~
15851             $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
15852             linknames='
15853           # The linker will not automatically build a static lib if we build a DLL.
15854           # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
15855           enable_shared_with_static_runtimes_CXX=yes
15856           # Don't use ranlib
15857           old_postinstall_cmds_CXX='chmod 644 $oldlib'
15858           postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
15859             lt_tool_outputfile="@TOOL_OUTPUT@"~
15860             case $lt_outputfile in
15861               *.exe|*.EXE) ;;
15862               *)
15863                 lt_outputfile=$lt_outputfile.exe
15864                 lt_tool_outputfile=$lt_tool_outputfile.exe
15865                 ;;
15866             esac~
15867             func_to_tool_file "$lt_outputfile"~
15868             if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
15869               $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
15870               $RM "$lt_outputfile.manifest";
15871             fi'
15872           ;;
15873         *)
15874           # g++
15875           # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
15876           # as there is no search path for DLLs.
15877           hardcode_libdir_flag_spec_CXX='-L$libdir'
15878           export_dynamic_flag_spec_CXX='$wl--export-all-symbols'
15879           allow_undefined_flag_CXX=unsupported
15880           always_export_symbols_CXX=no
15881           enable_shared_with_static_runtimes_CXX=yes
15882
15883           if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
15884             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'
15885             # If the export-symbols file already is a .def file, use it as
15886             # is; otherwise, prepend EXPORTS...
15887             archive_expsym_cmds_CXX='if   test DEF = "`$SED -n     -e '\''s/^[   ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([     ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
15888               cp $export_symbols $output_objdir/$soname.def;
15889             else
15890               echo EXPORTS > $output_objdir/$soname.def;
15891               cat $export_symbols >> $output_objdir/$soname.def;
15892             fi~
15893             $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'
15894           else
15895             ld_shlibs_CXX=no
15896           fi
15897           ;;
15898         esac
15899         ;;
15900       darwin* | rhapsody*)
15901
15902
15903   archive_cmds_need_lc_CXX=no
15904   hardcode_direct_CXX=no
15905   hardcode_automatic_CXX=yes
15906   hardcode_shlibpath_var_CXX=unsupported
15907   if test yes = "$lt_cv_ld_force_load"; then
15908     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\"`'
15909
15910   else
15911     whole_archive_flag_spec_CXX=''
15912   fi
15913   link_all_deplibs_CXX=yes
15914   allow_undefined_flag_CXX=$_lt_dar_allow_undefined
15915   case $cc_basename in
15916      ifort*|nagfor*) _lt_dar_can_shared=yes ;;
15917      *) _lt_dar_can_shared=$GCC ;;
15918   esac
15919   if test yes = "$_lt_dar_can_shared"; then
15920     output_verbose_link_cmd=func_echo_all
15921     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"
15922     module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
15923     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"
15924     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"
15925        if test yes != "$lt_cv_apple_cc_single_mod"; then
15926       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"
15927       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"
15928     fi
15929
15930   else
15931   ld_shlibs_CXX=no
15932   fi
15933
15934         ;;
15935
15936       os2*)
15937         hardcode_libdir_flag_spec_CXX='-L$libdir'
15938         hardcode_minus_L_CXX=yes
15939         allow_undefined_flag_CXX=unsupported
15940         shrext_cmds=.dll
15941         archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
15942           $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
15943           $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
15944           $ECHO EXPORTS >> $output_objdir/$libname.def~
15945           emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
15946           $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
15947           emximp -o $lib $output_objdir/$libname.def'
15948         archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
15949           $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
15950           $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
15951           $ECHO EXPORTS >> $output_objdir/$libname.def~
15952           prefix_cmds="$SED"~
15953           if test EXPORTS = "`$SED 1q $export_symbols`"; then
15954             prefix_cmds="$prefix_cmds -e 1d";
15955           fi~
15956           prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
15957           cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
15958           $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
15959           emximp -o $lib $output_objdir/$libname.def'
15960         old_archive_From_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
15961         enable_shared_with_static_runtimes_CXX=yes
15962         ;;
15963
15964       dgux*)
15965         case $cc_basename in
15966           ec++*)
15967             # FIXME: insert proper C++ library support
15968             ld_shlibs_CXX=no
15969             ;;
15970           ghcx*)
15971             # Green Hills C++ Compiler
15972             # FIXME: insert proper C++ library support
15973             ld_shlibs_CXX=no
15974             ;;
15975           *)
15976             # FIXME: insert proper C++ library support
15977             ld_shlibs_CXX=no
15978             ;;
15979         esac
15980         ;;
15981
15982       freebsd2.*)
15983         # C++ shared libraries reported to be fairly broken before
15984         # switch to ELF
15985         ld_shlibs_CXX=no
15986         ;;
15987
15988       freebsd-elf*)
15989         archive_cmds_need_lc_CXX=no
15990         ;;
15991
15992       freebsd* | dragonfly*)
15993         # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
15994         # conventions
15995         ld_shlibs_CXX=yes
15996         ;;
15997
15998       haiku*)
15999         archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16000         link_all_deplibs_CXX=yes
16001         ;;
16002
16003       hpux9*)
16004         hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
16005         hardcode_libdir_separator_CXX=:
16006         export_dynamic_flag_spec_CXX='$wl-E'
16007         hardcode_direct_CXX=yes
16008         hardcode_minus_L_CXX=yes # Not in the search PATH,
16009                                              # but as the default
16010                                              # location of the library.
16011
16012         case $cc_basename in
16013           CC*)
16014             # FIXME: insert proper C++ library support
16015             ld_shlibs_CXX=no
16016             ;;
16017           aCC*)
16018             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'
16019             # Commands to make compiler produce verbose output that lists
16020             # what "hidden" libraries, object files and flags are used when
16021             # linking a shared library.
16022             #
16023             # There doesn't appear to be a way to prevent this compiler from
16024             # explicitly linking system object files so we need to strip them
16025             # from the output so that they don't get included in the library
16026             # dependencies.
16027             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"'
16028             ;;
16029           *)
16030             if test yes = "$GXX"; then
16031               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'
16032             else
16033               # FIXME: insert proper C++ library support
16034               ld_shlibs_CXX=no
16035             fi
16036             ;;
16037         esac
16038         ;;
16039
16040       hpux10*|hpux11*)
16041         if test no = "$with_gnu_ld"; then
16042           hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
16043           hardcode_libdir_separator_CXX=:
16044
16045           case $host_cpu in
16046             hppa*64*|ia64*)
16047               ;;
16048             *)
16049               export_dynamic_flag_spec_CXX='$wl-E'
16050               ;;
16051           esac
16052         fi
16053         case $host_cpu in
16054           hppa*64*|ia64*)
16055             hardcode_direct_CXX=no
16056             hardcode_shlibpath_var_CXX=no
16057             ;;
16058           *)
16059             hardcode_direct_CXX=yes
16060             hardcode_direct_absolute_CXX=yes
16061             hardcode_minus_L_CXX=yes # Not in the search PATH,
16062                                                  # but as the default
16063                                                  # location of the library.
16064             ;;
16065         esac
16066
16067         case $cc_basename in
16068           CC*)
16069             # FIXME: insert proper C++ library support
16070             ld_shlibs_CXX=no
16071             ;;
16072           aCC*)
16073             case $host_cpu in
16074               hppa*64*)
16075                 archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16076                 ;;
16077               ia64*)
16078                 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16079                 ;;
16080               *)
16081                 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16082                 ;;
16083             esac
16084             # Commands to make compiler produce verbose output that lists
16085             # what "hidden" libraries, object files and flags are used when
16086             # linking a shared library.
16087             #
16088             # There doesn't appear to be a way to prevent this compiler from
16089             # explicitly linking system object files so we need to strip them
16090             # from the output so that they don't get included in the library
16091             # dependencies.
16092             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"'
16093             ;;
16094           *)
16095             if test yes = "$GXX"; then
16096               if test no = "$with_gnu_ld"; then
16097                 case $host_cpu in
16098                   hppa*64*)
16099                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16100                     ;;
16101                   ia64*)
16102                     archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16103                     ;;
16104                   *)
16105                     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'
16106                     ;;
16107                 esac
16108               fi
16109             else
16110               # FIXME: insert proper C++ library support
16111               ld_shlibs_CXX=no
16112             fi
16113             ;;
16114         esac
16115         ;;
16116
16117       interix[3-9]*)
16118         hardcode_direct_CXX=no
16119         hardcode_shlibpath_var_CXX=no
16120         hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
16121         export_dynamic_flag_spec_CXX='$wl-E'
16122         # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16123         # Instead, shared libraries are loaded at an image base (0x10000000 by
16124         # default) and relocated if they conflict, which is a slow very memory
16125         # consuming and fragmenting process.  To avoid this, we pick a random,
16126         # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16127         # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
16128         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'
16129         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'
16130         ;;
16131       irix5* | irix6*)
16132         case $cc_basename in
16133           CC*)
16134             # SGI C++
16135             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'
16136
16137             # Archives containing C++ object files must be created using
16138             # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
16139             # necessary to make sure instantiated templates are included
16140             # in the archive.
16141             old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
16142             ;;
16143           *)
16144             if test yes = "$GXX"; then
16145               if test no = "$with_gnu_ld"; then
16146                 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'
16147               else
16148                 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'
16149               fi
16150             fi
16151             link_all_deplibs_CXX=yes
16152             ;;
16153         esac
16154         hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
16155         hardcode_libdir_separator_CXX=:
16156         inherit_rpath_CXX=yes
16157         ;;
16158
16159       linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
16160         case $cc_basename in
16161           KCC*)
16162             # Kuck and Associates, Inc. (KAI) C++ Compiler
16163
16164             # KCC will only create a shared library if the output file
16165             # ends with ".so" (or ".sl" for HP-UX), so rename the library
16166             # to its proper name (with version) after linking.
16167             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'
16168             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'
16169             # Commands to make compiler produce verbose output that lists
16170             # what "hidden" libraries, object files and flags are used when
16171             # linking a shared library.
16172             #
16173             # There doesn't appear to be a way to prevent this compiler from
16174             # explicitly linking system object files so we need to strip them
16175             # from the output so that they don't get included in the library
16176             # dependencies.
16177             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"'
16178
16179             hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
16180             export_dynamic_flag_spec_CXX='$wl--export-dynamic'
16181
16182             # Archives containing C++ object files must be created using
16183             # "CC -Bstatic", where "CC" is the KAI C++ compiler.
16184             old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
16185             ;;
16186           icpc* | ecpc* )
16187             # Intel C++
16188             with_gnu_ld=yes
16189             # version 8.0 and above of icpc choke on multiply defined symbols
16190             # if we add $predep_objects and $postdep_objects, however 7.1 and
16191             # earlier do not add the objects themselves.
16192             case `$CC -V 2>&1` in
16193               *"Version 7."*)
16194                 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
16195                 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'
16196                 ;;
16197               *)  # Version 8.0 or newer
16198                 tmp_idyn=
16199                 case $host_cpu in
16200                   ia64*) tmp_idyn=' -i_dynamic';;
16201                 esac
16202                 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16203                 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'
16204                 ;;
16205             esac
16206             archive_cmds_need_lc_CXX=no
16207             hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
16208             export_dynamic_flag_spec_CXX='$wl--export-dynamic'
16209             whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
16210             ;;
16211           pgCC* | pgcpp*)
16212             # Portland Group C++ compiler
16213             case `$CC -V` in
16214             *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
16215               prelink_cmds_CXX='tpldir=Template.dir~
16216                rm -rf $tpldir~
16217                $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
16218                compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
16219               old_archive_cmds_CXX='tpldir=Template.dir~
16220                 rm -rf $tpldir~
16221                 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
16222                 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
16223                 $RANLIB $oldlib'
16224               archive_cmds_CXX='tpldir=Template.dir~
16225                 rm -rf $tpldir~
16226                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
16227                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
16228               archive_expsym_cmds_CXX='tpldir=Template.dir~
16229                 rm -rf $tpldir~
16230                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
16231                 $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'
16232               ;;
16233             *) # Version 6 and above use weak symbols
16234               archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
16235               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'
16236               ;;
16237             esac
16238
16239             hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir'
16240             export_dynamic_flag_spec_CXX='$wl--export-dynamic'
16241             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'
16242             ;;
16243           cxx*)
16244             # Compaq C++
16245             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
16246             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'
16247
16248             runpath_var=LD_RUN_PATH
16249             hardcode_libdir_flag_spec_CXX='-rpath $libdir'
16250             hardcode_libdir_separator_CXX=:
16251
16252             # Commands to make compiler produce verbose output that lists
16253             # what "hidden" libraries, object files and flags are used when
16254             # linking a shared library.
16255             #
16256             # There doesn't appear to be a way to prevent this compiler from
16257             # explicitly linking system object files so we need to strip them
16258             # from the output so that they don't get included in the library
16259             # dependencies.
16260             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'
16261             ;;
16262           xl* | mpixl* | bgxl*)
16263             # IBM XL 8.0 on PPC, with GNU ld
16264             hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
16265             export_dynamic_flag_spec_CXX='$wl--export-dynamic'
16266             archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16267             if test yes = "$supports_anon_versioning"; then
16268               archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
16269                 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16270                 echo "local: *; };" >> $output_objdir/$libname.ver~
16271                 $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
16272             fi
16273             ;;
16274           *)
16275             case `$CC -V 2>&1 | sed 5q` in
16276             *Sun\ C*)
16277               # Sun C++ 5.9
16278               no_undefined_flag_CXX=' -zdefs'
16279               archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16280               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'
16281               hardcode_libdir_flag_spec_CXX='-R$libdir'
16282               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'
16283               compiler_needs_object_CXX=yes
16284
16285               # Not sure whether something based on
16286               # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
16287               # would be better.
16288               output_verbose_link_cmd='func_echo_all'
16289
16290               # Archives containing C++ object files must be created using
16291               # "CC -xar", where "CC" is the Sun C++ compiler.  This is
16292               # necessary to make sure instantiated templates are included
16293               # in the archive.
16294               old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
16295               ;;
16296             esac
16297             ;;
16298         esac
16299         ;;
16300
16301       lynxos*)
16302         # FIXME: insert proper C++ library support
16303         ld_shlibs_CXX=no
16304         ;;
16305
16306       m88k*)
16307         # FIXME: insert proper C++ library support
16308         ld_shlibs_CXX=no
16309         ;;
16310
16311       mvs*)
16312         case $cc_basename in
16313           cxx*)
16314             # FIXME: insert proper C++ library support
16315             ld_shlibs_CXX=no
16316             ;;
16317           *)
16318             # FIXME: insert proper C++ library support
16319             ld_shlibs_CXX=no
16320             ;;
16321         esac
16322         ;;
16323
16324       netbsd*)
16325         if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16326           archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
16327           wlarc=
16328           hardcode_libdir_flag_spec_CXX='-R$libdir'
16329           hardcode_direct_CXX=yes
16330           hardcode_shlibpath_var_CXX=no
16331         fi
16332         # Workaround some broken pre-1.5 toolchains
16333         output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
16334         ;;
16335
16336       *nto* | *qnx*)
16337         ld_shlibs_CXX=yes
16338         ;;
16339
16340       openbsd* | bitrig*)
16341         if test -f /usr/libexec/ld.so; then
16342           hardcode_direct_CXX=yes
16343           hardcode_shlibpath_var_CXX=no
16344           hardcode_direct_absolute_CXX=yes
16345           archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
16346           hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
16347           if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
16348             archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib'
16349             export_dynamic_flag_spec_CXX='$wl-E'
16350             whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
16351           fi
16352           output_verbose_link_cmd=func_echo_all
16353         else
16354           ld_shlibs_CXX=no
16355         fi
16356         ;;
16357
16358       osf3* | osf4* | osf5*)
16359         case $cc_basename in
16360           KCC*)
16361             # Kuck and Associates, Inc. (KAI) C++ Compiler
16362
16363             # KCC will only create a shared library if the output file
16364             # ends with ".so" (or ".sl" for HP-UX), so rename the library
16365             # to its proper name (with version) after linking.
16366             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'
16367
16368             hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
16369             hardcode_libdir_separator_CXX=:
16370
16371             # Archives containing C++ object files must be created using
16372             # the KAI C++ compiler.
16373             case $host in
16374               osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
16375               *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
16376             esac
16377             ;;
16378           RCC*)
16379             # Rational C++ 2.4.1
16380             # FIXME: insert proper C++ library support
16381             ld_shlibs_CXX=no
16382             ;;
16383           cxx*)
16384             case $host in
16385               osf3*)
16386                 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
16387                 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'
16388                 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
16389                 ;;
16390               *)
16391                 allow_undefined_flag_CXX=' -expect_unresolved \*'
16392                 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'
16393                 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
16394                   echo "-hidden">> $lib.exp~
16395                   $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~
16396                   $RM $lib.exp'
16397                 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
16398                 ;;
16399             esac
16400
16401             hardcode_libdir_separator_CXX=:
16402
16403             # Commands to make compiler produce verbose output that lists
16404             # what "hidden" libraries, object files and flags are used when
16405             # linking a shared library.
16406             #
16407             # There doesn't appear to be a way to prevent this compiler from
16408             # explicitly linking system object files so we need to strip them
16409             # from the output so that they don't get included in the library
16410             # dependencies.
16411             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"'
16412             ;;
16413           *)
16414             if test yes,no = "$GXX,$with_gnu_ld"; then
16415               allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
16416               case $host in
16417                 osf3*)
16418                   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'
16419                   ;;
16420                 *)
16421                   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'
16422                   ;;
16423               esac
16424
16425               hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
16426               hardcode_libdir_separator_CXX=:
16427
16428               # Commands to make compiler produce verbose output that lists
16429               # what "hidden" libraries, object files and flags are used when
16430               # linking a shared library.
16431               output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
16432
16433             else
16434               # FIXME: insert proper C++ library support
16435               ld_shlibs_CXX=no
16436             fi
16437             ;;
16438         esac
16439         ;;
16440
16441       psos*)
16442         # FIXME: insert proper C++ library support
16443         ld_shlibs_CXX=no
16444         ;;
16445
16446       sunos4*)
16447         case $cc_basename in
16448           CC*)
16449             # Sun C++ 4.x
16450             # FIXME: insert proper C++ library support
16451             ld_shlibs_CXX=no
16452             ;;
16453           lcc*)
16454             # Lucid
16455             # FIXME: insert proper C++ library support
16456             ld_shlibs_CXX=no
16457             ;;
16458           *)
16459             # FIXME: insert proper C++ library support
16460             ld_shlibs_CXX=no
16461             ;;
16462         esac
16463         ;;
16464
16465       solaris*)
16466         case $cc_basename in
16467           CC* | sunCC*)
16468             # Sun C++ 4.2, 5.x and Centerline C++
16469             archive_cmds_need_lc_CXX=yes
16470             no_undefined_flag_CXX=' -zdefs'
16471             archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16472             archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16473               $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'
16474
16475             hardcode_libdir_flag_spec_CXX='-R$libdir'
16476             hardcode_shlibpath_var_CXX=no
16477             case $host_os in
16478               solaris2.[0-5] | solaris2.[0-5].*) ;;
16479               *)
16480                 # The compiler driver will combine and reorder linker options,
16481                 # but understands '-z linker_flag'.
16482                 # Supported since Solaris 2.6 (maybe 2.5.1?)
16483                 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
16484                 ;;
16485             esac
16486             link_all_deplibs_CXX=yes
16487
16488             output_verbose_link_cmd='func_echo_all'
16489
16490             # Archives containing C++ object files must be created using
16491             # "CC -xar", where "CC" is the Sun C++ compiler.  This is
16492             # necessary to make sure instantiated templates are included
16493             # in the archive.
16494             old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
16495             ;;
16496           gcx*)
16497             # Green Hills C++ Compiler
16498             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
16499
16500             # The C++ compiler must be used to create the archive.
16501             old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
16502             ;;
16503           *)
16504             # GNU C++ compiler with Solaris linker
16505             if test yes,no = "$GXX,$with_gnu_ld"; then
16506               no_undefined_flag_CXX=' $wl-z ${wl}defs'
16507               if $CC --version | $GREP -v '^2\.7' > /dev/null; then
16508                 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
16509                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16510                   $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'
16511
16512                 # Commands to make compiler produce verbose output that lists
16513                 # what "hidden" libraries, object files and flags are used when
16514                 # linking a shared library.
16515                 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
16516               else
16517                 # g++ 2.7 appears to require '-G' NOT '-shared' on this
16518                 # platform.
16519                 archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
16520                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16521                   $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'
16522
16523                 # Commands to make compiler produce verbose output that lists
16524                 # what "hidden" libraries, object files and flags are used when
16525                 # linking a shared library.
16526                 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
16527               fi
16528
16529               hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir'
16530               case $host_os in
16531                 solaris2.[0-5] | solaris2.[0-5].*) ;;
16532                 *)
16533                   whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
16534                   ;;
16535               esac
16536             fi
16537             ;;
16538         esac
16539         ;;
16540
16541     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
16542       no_undefined_flag_CXX='$wl-z,text'
16543       archive_cmds_need_lc_CXX=no
16544       hardcode_shlibpath_var_CXX=no
16545       runpath_var='LD_RUN_PATH'
16546
16547       case $cc_basename in
16548         CC*)
16549           archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16550           archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16551           ;;
16552         *)
16553           archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16554           archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16555           ;;
16556       esac
16557       ;;
16558
16559       sysv5* | sco3.2v5* | sco5v6*)
16560         # Note: We CANNOT use -z defs as we might desire, because we do not
16561         # link with -lc, and that would cause any symbols used from libc to
16562         # always be unresolved, which means just about no library would
16563         # ever link correctly.  If we're not using GNU ld we use -z text
16564         # though, which does catch some bad symbols but isn't as heavy-handed
16565         # as -z defs.
16566         no_undefined_flag_CXX='$wl-z,text'
16567         allow_undefined_flag_CXX='$wl-z,nodefs'
16568         archive_cmds_need_lc_CXX=no
16569         hardcode_shlibpath_var_CXX=no
16570         hardcode_libdir_flag_spec_CXX='$wl-R,$libdir'
16571         hardcode_libdir_separator_CXX=':'
16572         link_all_deplibs_CXX=yes
16573         export_dynamic_flag_spec_CXX='$wl-Bexport'
16574         runpath_var='LD_RUN_PATH'
16575
16576         case $cc_basename in
16577           CC*)
16578             archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16579             archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16580             old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
16581               '"$old_archive_cmds_CXX"
16582             reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
16583               '"$reload_cmds_CXX"
16584             ;;
16585           *)
16586             archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16587             archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16588             ;;
16589         esac
16590       ;;
16591
16592       tandem*)
16593         case $cc_basename in
16594           NCC*)
16595             # NonStop-UX NCC 3.20
16596             # FIXME: insert proper C++ library support
16597             ld_shlibs_CXX=no
16598             ;;
16599           *)
16600             # FIXME: insert proper C++ library support
16601             ld_shlibs_CXX=no
16602             ;;
16603         esac
16604         ;;
16605
16606       vxworks*)
16607         # FIXME: insert proper C++ library support
16608         ld_shlibs_CXX=no
16609         ;;
16610
16611       *)
16612         # FIXME: insert proper C++ library support
16613         ld_shlibs_CXX=no
16614         ;;
16615     esac
16616
16617     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
16618 $as_echo "$ld_shlibs_CXX" >&6; }
16619     test no = "$ld_shlibs_CXX" && can_build_shared=no
16620
16621     GCC_CXX=$GXX
16622     LD_CXX=$LD
16623
16624     ## CAVEAT EMPTOR:
16625     ## There is no encapsulation within the following macros, do not change
16626     ## the running order or otherwise move them around unless you know exactly
16627     ## what you are doing...
16628     # Dependencies to place before and after the object being linked:
16629 predep_objects_CXX=
16630 postdep_objects_CXX=
16631 predeps_CXX=
16632 postdeps_CXX=
16633 compiler_lib_search_path_CXX=
16634
16635 cat > conftest.$ac_ext <<_LT_EOF
16636 class Foo
16637 {
16638 public:
16639   Foo (void) { a = 0; }
16640 private:
16641   int a;
16642 };
16643 _LT_EOF
16644
16645
16646 _lt_libdeps_save_CFLAGS=$CFLAGS
16647 case "$CC $CFLAGS " in #(
16648 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
16649 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
16650 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
16651 esac
16652
16653 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16654   (eval $ac_compile) 2>&5
16655   ac_status=$?
16656   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16657   test $ac_status = 0; }; then
16658   # Parse the compiler output and extract the necessary
16659   # objects, libraries and library flags.
16660
16661   # Sentinel used to keep track of whether or not we are before
16662   # the conftest object file.
16663   pre_test_object_deps_done=no
16664
16665   for p in `eval "$output_verbose_link_cmd"`; do
16666     case $prev$p in
16667
16668     -L* | -R* | -l*)
16669        # Some compilers place space between "-{L,R}" and the path.
16670        # Remove the space.
16671        if test x-L = "$p" ||
16672           test x-R = "$p"; then
16673          prev=$p
16674          continue
16675        fi
16676
16677        # Expand the sysroot to ease extracting the directories later.
16678        if test -z "$prev"; then
16679          case $p in
16680          -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
16681          -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
16682          -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
16683          esac
16684        fi
16685        case $p in
16686        =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
16687        esac
16688        if test no = "$pre_test_object_deps_done"; then
16689          case $prev in
16690          -L | -R)
16691            # Internal compiler library paths should come after those
16692            # provided the user.  The postdeps already come after the
16693            # user supplied libs so there is no need to process them.
16694            if test -z "$compiler_lib_search_path_CXX"; then
16695              compiler_lib_search_path_CXX=$prev$p
16696            else
16697              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p"
16698            fi
16699            ;;
16700          # The "-l" case would never come before the object being
16701          # linked, so don't bother handling this case.
16702          esac
16703        else
16704          if test -z "$postdeps_CXX"; then
16705            postdeps_CXX=$prev$p
16706          else
16707            postdeps_CXX="${postdeps_CXX} $prev$p"
16708          fi
16709        fi
16710        prev=
16711        ;;
16712
16713     *.lto.$objext) ;; # Ignore GCC LTO objects
16714     *.$objext)
16715        # This assumes that the test object file only shows up
16716        # once in the compiler output.
16717        if test "$p" = "conftest.$objext"; then
16718          pre_test_object_deps_done=yes
16719          continue
16720        fi
16721
16722        if test no = "$pre_test_object_deps_done"; then
16723          if test -z "$predep_objects_CXX"; then
16724            predep_objects_CXX=$p
16725          else
16726            predep_objects_CXX="$predep_objects_CXX $p"
16727          fi
16728        else
16729          if test -z "$postdep_objects_CXX"; then
16730            postdep_objects_CXX=$p
16731          else
16732            postdep_objects_CXX="$postdep_objects_CXX $p"
16733          fi
16734        fi
16735        ;;
16736
16737     *) ;; # Ignore the rest.
16738
16739     esac
16740   done
16741
16742   # Clean up.
16743   rm -f a.out a.exe
16744 else
16745   echo "libtool.m4: error: problem compiling CXX test program"
16746 fi
16747
16748 $RM -f confest.$objext
16749 CFLAGS=$_lt_libdeps_save_CFLAGS
16750
16751 # PORTME: override above test on systems where it is broken
16752 case $host_os in
16753 interix[3-9]*)
16754   # Interix 3.5 installs completely hosed .la files for C++, so rather than
16755   # hack all around it, let's just trust "g++" to DTRT.
16756   predep_objects_CXX=
16757   postdep_objects_CXX=
16758   postdeps_CXX=
16759   ;;
16760 esac
16761
16762
16763 case " $postdeps_CXX " in
16764 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
16765 esac
16766  compiler_lib_search_dirs_CXX=
16767 if test -n "${compiler_lib_search_path_CXX}"; then
16768  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'`
16769 fi
16770
16771
16772
16773
16774
16775
16776
16777
16778
16779
16780
16781
16782
16783
16784
16785
16786
16787
16788
16789
16790
16791
16792
16793
16794
16795
16796
16797
16798
16799
16800
16801     lt_prog_compiler_wl_CXX=
16802 lt_prog_compiler_pic_CXX=
16803 lt_prog_compiler_static_CXX=
16804
16805
16806   # C++ specific cases for pic, static, wl, etc.
16807   if test yes = "$GXX"; then
16808     lt_prog_compiler_wl_CXX='-Wl,'
16809     lt_prog_compiler_static_CXX='-static'
16810
16811     case $host_os in
16812     aix*)
16813       # All AIX code is PIC.
16814       if test ia64 = "$host_cpu"; then
16815         # AIX 5 now supports IA64 processor
16816         lt_prog_compiler_static_CXX='-Bstatic'
16817       fi
16818       lt_prog_compiler_pic_CXX='-fPIC'
16819       ;;
16820
16821     amigaos*)
16822       case $host_cpu in
16823       powerpc)
16824             # see comment about AmigaOS4 .so support
16825             lt_prog_compiler_pic_CXX='-fPIC'
16826         ;;
16827       m68k)
16828             # FIXME: we need at least 68020 code to build shared libraries, but
16829             # adding the '-m68020' flag to GCC prevents building anything better,
16830             # like '-m68040'.
16831             lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
16832         ;;
16833       esac
16834       ;;
16835
16836     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16837       # PIC is the default for these OSes.
16838       ;;
16839     mingw* | cygwin* | os2* | pw32* | cegcc*)
16840       # This hack is so that the source file can tell whether it is being
16841       # built for inclusion in a dll (and should export symbols for example).
16842       # Although the cygwin gcc ignores -fPIC, still need this for old-style
16843       # (--disable-auto-import) libraries
16844       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
16845       case $host_os in
16846       os2*)
16847         lt_prog_compiler_static_CXX='$wl-static'
16848         ;;
16849       esac
16850       ;;
16851     darwin* | rhapsody*)
16852       # PIC is the default on this platform
16853       # Common symbols not allowed in MH_DYLIB files
16854       lt_prog_compiler_pic_CXX='-fno-common'
16855       ;;
16856     *djgpp*)
16857       # DJGPP does not support shared libraries at all
16858       lt_prog_compiler_pic_CXX=
16859       ;;
16860     haiku*)
16861       # PIC is the default for Haiku.
16862       # The "-static" flag exists, but is broken.
16863       lt_prog_compiler_static_CXX=
16864       ;;
16865     interix[3-9]*)
16866       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16867       # Instead, we relocate shared libraries at runtime.
16868       ;;
16869     sysv4*MP*)
16870       if test -d /usr/nec; then
16871         lt_prog_compiler_pic_CXX=-Kconform_pic
16872       fi
16873       ;;
16874     hpux*)
16875       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
16876       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
16877       # sets the default TLS model and affects inlining.
16878       case $host_cpu in
16879       hppa*64*)
16880         ;;
16881       *)
16882         lt_prog_compiler_pic_CXX='-fPIC'
16883         ;;
16884       esac
16885       ;;
16886     *qnx* | *nto*)
16887       # QNX uses GNU C++, but need to define -shared option too, otherwise
16888       # it will coredump.
16889       lt_prog_compiler_pic_CXX='-fPIC -shared'
16890       ;;
16891     *)
16892       lt_prog_compiler_pic_CXX='-fPIC'
16893       ;;
16894     esac
16895   else
16896     case $host_os in
16897       aix[4-9]*)
16898         # All AIX code is PIC.
16899         if test ia64 = "$host_cpu"; then
16900           # AIX 5 now supports IA64 processor
16901           lt_prog_compiler_static_CXX='-Bstatic'
16902         else
16903           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
16904         fi
16905         ;;
16906       chorus*)
16907         case $cc_basename in
16908         cxch68*)
16909           # Green Hills C++ Compiler
16910           # _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"
16911           ;;
16912         esac
16913         ;;
16914       mingw* | cygwin* | os2* | pw32* | cegcc*)
16915         # This hack is so that the source file can tell whether it is being
16916         # built for inclusion in a dll (and should export symbols for example).
16917         lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
16918         ;;
16919       dgux*)
16920         case $cc_basename in
16921           ec++*)
16922             lt_prog_compiler_pic_CXX='-KPIC'
16923             ;;
16924           ghcx*)
16925             # Green Hills C++ Compiler
16926             lt_prog_compiler_pic_CXX='-pic'
16927             ;;
16928           *)
16929             ;;
16930         esac
16931         ;;
16932       freebsd* | dragonfly*)
16933         # FreeBSD uses GNU C++
16934         ;;
16935       hpux9* | hpux10* | hpux11*)
16936         case $cc_basename in
16937           CC*)
16938             lt_prog_compiler_wl_CXX='-Wl,'
16939             lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
16940             if test ia64 != "$host_cpu"; then
16941               lt_prog_compiler_pic_CXX='+Z'
16942             fi
16943             ;;
16944           aCC*)
16945             lt_prog_compiler_wl_CXX='-Wl,'
16946             lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
16947             case $host_cpu in
16948             hppa*64*|ia64*)
16949               # +Z the default
16950               ;;
16951             *)
16952               lt_prog_compiler_pic_CXX='+Z'
16953               ;;
16954             esac
16955             ;;
16956           *)
16957             ;;
16958         esac
16959         ;;
16960       interix*)
16961         # This is c89, which is MS Visual C++ (no shared libs)
16962         # Anyone wants to do a port?
16963         ;;
16964       irix5* | irix6* | nonstopux*)
16965         case $cc_basename in
16966           CC*)
16967             lt_prog_compiler_wl_CXX='-Wl,'
16968             lt_prog_compiler_static_CXX='-non_shared'
16969             # CC pic flag -KPIC is the default.
16970             ;;
16971           *)
16972             ;;
16973         esac
16974         ;;
16975       linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
16976         case $cc_basename in
16977           KCC*)
16978             # KAI C++ Compiler
16979             lt_prog_compiler_wl_CXX='--backend -Wl,'
16980             lt_prog_compiler_pic_CXX='-fPIC'
16981             ;;
16982           ecpc* )
16983             # old Intel C++ for x86_64, which still supported -KPIC.
16984             lt_prog_compiler_wl_CXX='-Wl,'
16985             lt_prog_compiler_pic_CXX='-KPIC'
16986             lt_prog_compiler_static_CXX='-static'
16987             ;;
16988           icpc* )
16989             # Intel C++, used to be incompatible with GCC.
16990             # ICC 10 doesn't accept -KPIC any more.
16991             lt_prog_compiler_wl_CXX='-Wl,'
16992             lt_prog_compiler_pic_CXX='-fPIC'
16993             lt_prog_compiler_static_CXX='-static'
16994             ;;
16995           pgCC* | pgcpp*)
16996             # Portland Group C++ compiler
16997             lt_prog_compiler_wl_CXX='-Wl,'
16998             lt_prog_compiler_pic_CXX='-fpic'
16999             lt_prog_compiler_static_CXX='-Bstatic'
17000             ;;
17001           cxx*)
17002             # Compaq C++
17003             # Make sure the PIC flag is empty.  It appears that all Alpha
17004             # Linux and Compaq Tru64 Unix objects are PIC.
17005             lt_prog_compiler_pic_CXX=
17006             lt_prog_compiler_static_CXX='-non_shared'
17007             ;;
17008           xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
17009             # IBM XL 8.0, 9.0 on PPC and BlueGene
17010             lt_prog_compiler_wl_CXX='-Wl,'
17011             lt_prog_compiler_pic_CXX='-qpic'
17012             lt_prog_compiler_static_CXX='-qstaticlink'
17013             ;;
17014           *)
17015             case `$CC -V 2>&1 | sed 5q` in
17016             *Sun\ C*)
17017               # Sun C++ 5.9
17018               lt_prog_compiler_pic_CXX='-KPIC'
17019               lt_prog_compiler_static_CXX='-Bstatic'
17020               lt_prog_compiler_wl_CXX='-Qoption ld '
17021               ;;
17022             esac
17023             ;;
17024         esac
17025         ;;
17026       lynxos*)
17027         ;;
17028       m88k*)
17029         ;;
17030       mvs*)
17031         case $cc_basename in
17032           cxx*)
17033             lt_prog_compiler_pic_CXX='-W c,exportall'
17034             ;;
17035           *)
17036             ;;
17037         esac
17038         ;;
17039       netbsd*)
17040         ;;
17041       *qnx* | *nto*)
17042         # QNX uses GNU C++, but need to define -shared option too, otherwise
17043         # it will coredump.
17044         lt_prog_compiler_pic_CXX='-fPIC -shared'
17045         ;;
17046       osf3* | osf4* | osf5*)
17047         case $cc_basename in
17048           KCC*)
17049             lt_prog_compiler_wl_CXX='--backend -Wl,'
17050             ;;
17051           RCC*)
17052             # Rational C++ 2.4.1
17053             lt_prog_compiler_pic_CXX='-pic'
17054             ;;
17055           cxx*)
17056             # Digital/Compaq C++
17057             lt_prog_compiler_wl_CXX='-Wl,'
17058             # Make sure the PIC flag is empty.  It appears that all Alpha
17059             # Linux and Compaq Tru64 Unix objects are PIC.
17060             lt_prog_compiler_pic_CXX=
17061             lt_prog_compiler_static_CXX='-non_shared'
17062             ;;
17063           *)
17064             ;;
17065         esac
17066         ;;
17067       psos*)
17068         ;;
17069       solaris*)
17070         case $cc_basename in
17071           CC* | sunCC*)
17072             # Sun C++ 4.2, 5.x and Centerline C++
17073             lt_prog_compiler_pic_CXX='-KPIC'
17074             lt_prog_compiler_static_CXX='-Bstatic'
17075             lt_prog_compiler_wl_CXX='-Qoption ld '
17076             ;;
17077           gcx*)
17078             # Green Hills C++ Compiler
17079             lt_prog_compiler_pic_CXX='-PIC'
17080             ;;
17081           *)
17082             ;;
17083         esac
17084         ;;
17085       sunos4*)
17086         case $cc_basename in
17087           CC*)
17088             # Sun C++ 4.x
17089             lt_prog_compiler_pic_CXX='-pic'
17090             lt_prog_compiler_static_CXX='-Bstatic'
17091             ;;
17092           lcc*)
17093             # Lucid
17094             lt_prog_compiler_pic_CXX='-pic'
17095             ;;
17096           *)
17097             ;;
17098         esac
17099         ;;
17100       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17101         case $cc_basename in
17102           CC*)
17103             lt_prog_compiler_wl_CXX='-Wl,'
17104             lt_prog_compiler_pic_CXX='-KPIC'
17105             lt_prog_compiler_static_CXX='-Bstatic'
17106             ;;
17107         esac
17108         ;;
17109       tandem*)
17110         case $cc_basename in
17111           NCC*)
17112             # NonStop-UX NCC 3.20
17113             lt_prog_compiler_pic_CXX='-KPIC'
17114             ;;
17115           *)
17116             ;;
17117         esac
17118         ;;
17119       vxworks*)
17120         ;;
17121       *)
17122         lt_prog_compiler_can_build_shared_CXX=no
17123         ;;
17124     esac
17125   fi
17126
17127 case $host_os in
17128   # For platforms that do not support PIC, -DPIC is meaningless:
17129   *djgpp*)
17130     lt_prog_compiler_pic_CXX=
17131     ;;
17132   *)
17133     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
17134     ;;
17135 esac
17136
17137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
17138 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
17139 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
17140   $as_echo_n "(cached) " >&6
17141 else
17142   lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
17143 fi
17144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
17145 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
17146 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
17147
17148 #
17149 # Check to make sure the PIC flag actually works.
17150 #
17151 if test -n "$lt_prog_compiler_pic_CXX"; then
17152   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
17153 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
17154 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
17155   $as_echo_n "(cached) " >&6
17156 else
17157   lt_cv_prog_compiler_pic_works_CXX=no
17158    ac_outfile=conftest.$ac_objext
17159    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17160    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"  ## exclude from sc_useless_quotes_in_assignment
17161    # Insert the option either (1) after the last *FLAGS variable, or
17162    # (2) before a word containing "conftest.", or (3) at the end.
17163    # Note that $ac_compile itself does not contain backslashes and begins
17164    # with a dollar sign (not a hyphen), so the echo should work correctly.
17165    # The option is referenced via a variable to avoid confusing sed.
17166    lt_compile=`echo "$ac_compile" | $SED \
17167    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17168    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17169    -e 's:$: $lt_compiler_flag:'`
17170    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
17171    (eval "$lt_compile" 2>conftest.err)
17172    ac_status=$?
17173    cat conftest.err >&5
17174    echo "$as_me:$LINENO: \$? = $ac_status" >&5
17175    if (exit $ac_status) && test -s "$ac_outfile"; then
17176      # The compiler can only warn and ignore the option if not recognized
17177      # So say no if there are warnings other than the usual output.
17178      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
17179      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17180      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17181        lt_cv_prog_compiler_pic_works_CXX=yes
17182      fi
17183    fi
17184    $RM conftest*
17185
17186 fi
17187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
17188 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
17189
17190 if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
17191     case $lt_prog_compiler_pic_CXX in
17192      "" | " "*) ;;
17193      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
17194      esac
17195 else
17196     lt_prog_compiler_pic_CXX=
17197      lt_prog_compiler_can_build_shared_CXX=no
17198 fi
17199
17200 fi
17201
17202
17203
17204
17205
17206 #
17207 # Check to make sure the static flag actually works.
17208 #
17209 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
17210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17211 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
17212 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
17213   $as_echo_n "(cached) " >&6
17214 else
17215   lt_cv_prog_compiler_static_works_CXX=no
17216    save_LDFLAGS=$LDFLAGS
17217    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17218    echo "$lt_simple_link_test_code" > conftest.$ac_ext
17219    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17220      # The linker can only warn and ignore the option if not recognized
17221      # So say no if there are warnings
17222      if test -s conftest.err; then
17223        # Append any errors to the config.log.
17224        cat conftest.err 1>&5
17225        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
17226        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17227        if diff conftest.exp conftest.er2 >/dev/null; then
17228          lt_cv_prog_compiler_static_works_CXX=yes
17229        fi
17230      else
17231        lt_cv_prog_compiler_static_works_CXX=yes
17232      fi
17233    fi
17234    $RM -r conftest*
17235    LDFLAGS=$save_LDFLAGS
17236
17237 fi
17238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
17239 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
17240
17241 if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
17242     :
17243 else
17244     lt_prog_compiler_static_CXX=
17245 fi
17246
17247
17248
17249
17250     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
17251 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
17252 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
17253   $as_echo_n "(cached) " >&6
17254 else
17255   lt_cv_prog_compiler_c_o_CXX=no
17256    $RM -r conftest 2>/dev/null
17257    mkdir conftest
17258    cd conftest
17259    mkdir out
17260    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17261
17262    lt_compiler_flag="-o out/conftest2.$ac_objext"
17263    # Insert the option either (1) after the last *FLAGS variable, or
17264    # (2) before a word containing "conftest.", or (3) at the end.
17265    # Note that $ac_compile itself does not contain backslashes and begins
17266    # with a dollar sign (not a hyphen), so the echo should work correctly.
17267    lt_compile=`echo "$ac_compile" | $SED \
17268    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17269    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17270    -e 's:$: $lt_compiler_flag:'`
17271    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
17272    (eval "$lt_compile" 2>out/conftest.err)
17273    ac_status=$?
17274    cat out/conftest.err >&5
17275    echo "$as_me:$LINENO: \$? = $ac_status" >&5
17276    if (exit $ac_status) && test -s out/conftest2.$ac_objext
17277    then
17278      # The compiler can only warn and ignore the option if not recognized
17279      # So say no if there are warnings
17280      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
17281      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17282      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17283        lt_cv_prog_compiler_c_o_CXX=yes
17284      fi
17285    fi
17286    chmod u+w . 2>&5
17287    $RM conftest*
17288    # SGI C++ compiler will create directory out/ii_files/ for
17289    # template instantiation
17290    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
17291    $RM out/* && rmdir out
17292    cd ..
17293    $RM -r conftest
17294    $RM conftest*
17295
17296 fi
17297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
17298 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
17299
17300
17301
17302     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
17303 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
17304 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
17305   $as_echo_n "(cached) " >&6
17306 else
17307   lt_cv_prog_compiler_c_o_CXX=no
17308    $RM -r conftest 2>/dev/null
17309    mkdir conftest
17310    cd conftest
17311    mkdir out
17312    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17313
17314    lt_compiler_flag="-o out/conftest2.$ac_objext"
17315    # Insert the option either (1) after the last *FLAGS variable, or
17316    # (2) before a word containing "conftest.", or (3) at the end.
17317    # Note that $ac_compile itself does not contain backslashes and begins
17318    # with a dollar sign (not a hyphen), so the echo should work correctly.
17319    lt_compile=`echo "$ac_compile" | $SED \
17320    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17321    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17322    -e 's:$: $lt_compiler_flag:'`
17323    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
17324    (eval "$lt_compile" 2>out/conftest.err)
17325    ac_status=$?
17326    cat out/conftest.err >&5
17327    echo "$as_me:$LINENO: \$? = $ac_status" >&5
17328    if (exit $ac_status) && test -s out/conftest2.$ac_objext
17329    then
17330      # The compiler can only warn and ignore the option if not recognized
17331      # So say no if there are warnings
17332      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
17333      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17334      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17335        lt_cv_prog_compiler_c_o_CXX=yes
17336      fi
17337    fi
17338    chmod u+w . 2>&5
17339    $RM conftest*
17340    # SGI C++ compiler will create directory out/ii_files/ for
17341    # template instantiation
17342    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
17343    $RM out/* && rmdir out
17344    cd ..
17345    $RM -r conftest
17346    $RM conftest*
17347
17348 fi
17349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
17350 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
17351
17352
17353
17354
17355 hard_links=nottested
17356 if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then
17357   # do not overwrite the value of need_locks provided by the user
17358   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
17359 $as_echo_n "checking if we can lock with hard links... " >&6; }
17360   hard_links=yes
17361   $RM conftest*
17362   ln conftest.a conftest.b 2>/dev/null && hard_links=no
17363   touch conftest.a
17364   ln conftest.a conftest.b 2>&5 || hard_links=no
17365   ln conftest.a conftest.b 2>/dev/null && hard_links=no
17366   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
17367 $as_echo "$hard_links" >&6; }
17368   if test no = "$hard_links"; then
17369     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
17370 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
17371     need_locks=warn
17372   fi
17373 else
17374   need_locks=no
17375 fi
17376
17377
17378
17379     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17380 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
17381
17382   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17383   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17384   case $host_os in
17385   aix[4-9]*)
17386     # If we're using GNU nm, then we don't want the "-C" option.
17387     # -C means demangle to GNU nm, but means don't demangle to AIX nm.
17388     # Without the "-l" option, or with the "-B" option, AIX nm treats
17389     # weak defined symbols like other global defined symbols, whereas
17390     # GNU nm marks them as "W".
17391     # While the 'weak' keyword is ignored in the Export File, we need
17392     # it in the Import File for the 'aix-soname' feature, so we have
17393     # to replace the "-B" option with "-P" for AIX nm.
17394     if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
17395       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'
17396     else
17397       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'
17398     fi
17399     ;;
17400   pw32*)
17401     export_symbols_cmds_CXX=$ltdll_cmds
17402     ;;
17403   cygwin* | mingw* | cegcc*)
17404     case $cc_basename in
17405     cl*)
17406       exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
17407       ;;
17408     *)
17409       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'
17410       exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
17411       ;;
17412     esac
17413     ;;
17414   *)
17415     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17416     ;;
17417   esac
17418
17419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
17420 $as_echo "$ld_shlibs_CXX" >&6; }
17421 test no = "$ld_shlibs_CXX" && can_build_shared=no
17422
17423 with_gnu_ld_CXX=$with_gnu_ld
17424
17425
17426
17427
17428
17429
17430 #
17431 # Do we need to explicitly link libc?
17432 #
17433 case "x$archive_cmds_need_lc_CXX" in
17434 x|xyes)
17435   # Assume -lc should be added
17436   archive_cmds_need_lc_CXX=yes
17437
17438   if test yes,yes = "$GCC,$enable_shared"; then
17439     case $archive_cmds_CXX in
17440     *'~'*)
17441       # FIXME: we may have to deal with multi-command sequences.
17442       ;;
17443     '$CC '*)
17444       # Test whether the compiler implicitly links with -lc since on some
17445       # systems, -lgcc has to come before -lc. If gcc already passes -lc
17446       # to ld, don't add -lc before -lgcc.
17447       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
17448 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
17449 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
17450   $as_echo_n "(cached) " >&6
17451 else
17452   $RM conftest*
17453         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17454
17455         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17456   (eval $ac_compile) 2>&5
17457   ac_status=$?
17458   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17459   test $ac_status = 0; } 2>conftest.err; then
17460           soname=conftest
17461           lib=conftest
17462           libobjs=conftest.$ac_objext
17463           deplibs=
17464           wl=$lt_prog_compiler_wl_CXX
17465           pic_flag=$lt_prog_compiler_pic_CXX
17466           compiler_flags=-v
17467           linker_flags=-v
17468           verstring=
17469           output_objdir=.
17470           libname=conftest
17471           lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
17472           allow_undefined_flag_CXX=
17473           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
17474   (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
17475   ac_status=$?
17476   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17477   test $ac_status = 0; }
17478           then
17479             lt_cv_archive_cmds_need_lc_CXX=no
17480           else
17481             lt_cv_archive_cmds_need_lc_CXX=yes
17482           fi
17483           allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
17484         else
17485           cat conftest.err 1>&5
17486         fi
17487         $RM conftest*
17488
17489 fi
17490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
17491 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
17492       archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
17493       ;;
17494     esac
17495   fi
17496   ;;
17497 esac
17498
17499
17500
17501
17502
17503
17504
17505
17506
17507
17508
17509
17510
17511
17512
17513
17514
17515
17516
17517
17518
17519
17520
17521
17522
17523
17524
17525
17526
17527
17528
17529
17530
17531
17532
17533
17534
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     { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
17561 $as_echo_n "checking dynamic linker characteristics... " >&6; }
17562
17563 library_names_spec=
17564 libname_spec='lib$name'
17565 soname_spec=
17566 shrext_cmds=.so
17567 postinstall_cmds=
17568 postuninstall_cmds=
17569 finish_cmds=
17570 finish_eval=
17571 shlibpath_var=
17572 shlibpath_overrides_runpath=unknown
17573 version_type=none
17574 dynamic_linker="$host_os ld.so"
17575 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17576 need_lib_prefix=unknown
17577 hardcode_into_libs=no
17578
17579 # when you set need_version to no, make sure it does not cause -set_version
17580 # flags to be left without arguments
17581 need_version=unknown
17582
17583
17584
17585 case $host_os in
17586 aix3*)
17587   version_type=linux # correct to gnu/linux during the next big refactor
17588   library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
17589   shlibpath_var=LIBPATH
17590
17591   # AIX 3 has no versioning support, so we append a major version to the name.
17592   soname_spec='$libname$release$shared_ext$major'
17593   ;;
17594
17595 aix[4-9]*)
17596   version_type=linux # correct to gnu/linux during the next big refactor
17597   need_lib_prefix=no
17598   need_version=no
17599   hardcode_into_libs=yes
17600   if test ia64 = "$host_cpu"; then
17601     # AIX 5 supports IA64
17602     library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
17603     shlibpath_var=LD_LIBRARY_PATH
17604   else
17605     # With GCC up to 2.95.x, collect2 would create an import file
17606     # for dependence libraries.  The import file would start with
17607     # the line '#! .'.  This would cause the generated library to
17608     # depend on '.', always an invalid library.  This was fixed in
17609     # development snapshots of GCC prior to 3.0.
17610     case $host_os in
17611       aix4 | aix4.[01] | aix4.[01].*)
17612       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17613            echo ' yes '
17614            echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
17615         :
17616       else
17617         can_build_shared=no
17618       fi
17619       ;;
17620     esac
17621     # Using Import Files as archive members, it is possible to support
17622     # filename-based versioning of shared library archives on AIX. While
17623     # this would work for both with and without runtime linking, it will
17624     # prevent static linking of such archives. So we do filename-based
17625     # shared library versioning with .so extension only, which is used
17626     # when both runtime linking and shared linking is enabled.
17627     # Unfortunately, runtime linking may impact performance, so we do
17628     # not want this to be the default eventually. Also, we use the
17629     # versioned .so libs for executables only if there is the -brtl
17630     # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
17631     # To allow for filename-based versioning support, we need to create
17632     # libNAME.so.V as an archive file, containing:
17633     # *) an Import File, referring to the versioned filename of the
17634     #    archive as well as the shared archive member, telling the
17635     #    bitwidth (32 or 64) of that shared object, and providing the
17636     #    list of exported symbols of that shared object, eventually
17637     #    decorated with the 'weak' keyword
17638     # *) the shared object with the F_LOADONLY flag set, to really avoid
17639     #    it being seen by the linker.
17640     # At run time we better use the real file rather than another symlink,
17641     # but for link time we create the symlink libNAME.so -> libNAME.so.V
17642
17643     case $with_aix_soname,$aix_use_runtimelinking in
17644     # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
17645     # soname into executable. Probably we can add versioning support to
17646     # collect2, so additional links can be useful in future.
17647     aix,yes) # traditional libtool
17648       dynamic_linker='AIX unversionable lib.so'
17649       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17650       # instead of lib<name>.a to let people know that these are not
17651       # typical AIX shared libraries.
17652       library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17653       ;;
17654     aix,no) # traditional AIX only
17655       dynamic_linker='AIX lib.a(lib.so.V)'
17656       # We preserve .a as extension for shared libraries through AIX4.2
17657       # and later when we are not doing run time linking.
17658       library_names_spec='$libname$release.a $libname.a'
17659       soname_spec='$libname$release$shared_ext$major'
17660       ;;
17661     svr4,*) # full svr4 only
17662       dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
17663       library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
17664       # We do not specify a path in Import Files, so LIBPATH fires.
17665       shlibpath_overrides_runpath=yes
17666       ;;
17667     *,yes) # both, prefer svr4
17668       dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
17669       library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
17670       # unpreferred sharedlib libNAME.a needs extra handling
17671       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"'
17672       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"'
17673       # We do not specify a path in Import Files, so LIBPATH fires.
17674       shlibpath_overrides_runpath=yes
17675       ;;
17676     *,no) # both, prefer aix
17677       dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
17678       library_names_spec='$libname$release.a $libname.a'
17679       soname_spec='$libname$release$shared_ext$major'
17680       # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
17681       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)'
17682       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"'
17683       ;;
17684     esac
17685     shlibpath_var=LIBPATH
17686   fi
17687   ;;
17688
17689 amigaos*)
17690   case $host_cpu in
17691   powerpc)
17692     # Since July 2007 AmigaOS4 officially supports .so libraries.
17693     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
17694     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17695     ;;
17696   m68k)
17697     library_names_spec='$libname.ixlibrary $libname.a'
17698     # Create ${libname}_ixlibrary.a entries in /sys/libs.
17699     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'
17700     ;;
17701   esac
17702   ;;
17703
17704 beos*)
17705   library_names_spec='$libname$shared_ext'
17706   dynamic_linker="$host_os ld.so"
17707   shlibpath_var=LIBRARY_PATH
17708   ;;
17709
17710 bsdi[45]*)
17711   version_type=linux # correct to gnu/linux during the next big refactor
17712   need_version=no
17713   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17714   soname_spec='$libname$release$shared_ext$major'
17715   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17716   shlibpath_var=LD_LIBRARY_PATH
17717   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17718   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17719   # the default ld.so.conf also contains /usr/contrib/lib and
17720   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17721   # libtool to hard-code these into programs
17722   ;;
17723
17724 cygwin* | mingw* | pw32* | cegcc*)
17725   version_type=windows
17726   shrext_cmds=.dll
17727   need_version=no
17728   need_lib_prefix=no
17729
17730   case $GCC,$cc_basename in
17731   yes,*)
17732     # gcc
17733     library_names_spec='$libname.dll.a'
17734     # DLL is installed to $(libdir)/../bin by postinstall_cmds
17735     postinstall_cmds='base_file=`basename \$file`~
17736       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
17737       dldir=$destdir/`dirname \$dlpath`~
17738       test -d \$dldir || mkdir -p \$dldir~
17739       $install_prog $dir/$dlname \$dldir/$dlname~
17740       chmod a+x \$dldir/$dlname~
17741       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17742         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17743       fi'
17744     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17745       dlpath=$dir/\$dldll~
17746        $RM \$dlpath'
17747     shlibpath_overrides_runpath=yes
17748
17749     case $host_os in
17750     cygwin*)
17751       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17752       soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17753
17754       ;;
17755     mingw* | cegcc*)
17756       # MinGW DLLs use traditional 'lib' prefix
17757       soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17758       ;;
17759     pw32*)
17760       # pw32 DLLs use 'pw' prefix rather than 'lib'
17761       library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17762       ;;
17763     esac
17764     dynamic_linker='Win32 ld.exe'
17765     ;;
17766
17767   *,cl*)
17768     # Native MSVC
17769     libname_spec='$name'
17770     soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17771     library_names_spec='$libname.dll.lib'
17772
17773     case $build_os in
17774     mingw*)
17775       sys_lib_search_path_spec=
17776       lt_save_ifs=$IFS
17777       IFS=';'
17778       for lt_path in $LIB
17779       do
17780         IFS=$lt_save_ifs
17781         # Let DOS variable expansion print the short 8.3 style file name.
17782         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
17783         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
17784       done
17785       IFS=$lt_save_ifs
17786       # Convert to MSYS style.
17787       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
17788       ;;
17789     cygwin*)
17790       # Convert to unix form, then to dos form, then back to unix form
17791       # but this time dos style (no spaces!) so that the unix form looks
17792       # like /cygdrive/c/PROGRA~1:/cygdr...
17793       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
17794       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
17795       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17796       ;;
17797     *)
17798       sys_lib_search_path_spec=$LIB
17799       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
17800         # It is most probably a Windows format PATH.
17801         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17802       else
17803         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17804       fi
17805       # FIXME: find the short name or the path components, as spaces are
17806       # common. (e.g. "Program Files" -> "PROGRA~1")
17807       ;;
17808     esac
17809
17810     # DLL is installed to $(libdir)/../bin by postinstall_cmds
17811     postinstall_cmds='base_file=`basename \$file`~
17812       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
17813       dldir=$destdir/`dirname \$dlpath`~
17814       test -d \$dldir || mkdir -p \$dldir~
17815       $install_prog $dir/$dlname \$dldir/$dlname'
17816     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17817       dlpath=$dir/\$dldll~
17818        $RM \$dlpath'
17819     shlibpath_overrides_runpath=yes
17820     dynamic_linker='Win32 link.exe'
17821     ;;
17822
17823   *)
17824     # Assume MSVC wrapper
17825     library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
17826     dynamic_linker='Win32 ld.exe'
17827     ;;
17828   esac
17829   # FIXME: first we should search . and the directory the executable is in
17830   shlibpath_var=PATH
17831   ;;
17832
17833 darwin* | rhapsody*)
17834   dynamic_linker="$host_os dyld"
17835   version_type=darwin
17836   need_lib_prefix=no
17837   need_version=no
17838   library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
17839   soname_spec='$libname$release$major$shared_ext'
17840   shlibpath_overrides_runpath=yes
17841   shlibpath_var=DYLD_LIBRARY_PATH
17842   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17843
17844   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17845   ;;
17846
17847 dgux*)
17848   version_type=linux # correct to gnu/linux during the next big refactor
17849   need_lib_prefix=no
17850   need_version=no
17851   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17852   soname_spec='$libname$release$shared_ext$major'
17853   shlibpath_var=LD_LIBRARY_PATH
17854   ;;
17855
17856 freebsd* | dragonfly*)
17857   # DragonFly does not have aout.  When/if they implement a new
17858   # versioning mechanism, adjust this.
17859   if test -x /usr/bin/objformat; then
17860     objformat=`/usr/bin/objformat`
17861   else
17862     case $host_os in
17863     freebsd[23].*) objformat=aout ;;
17864     *) objformat=elf ;;
17865     esac
17866   fi
17867   version_type=freebsd-$objformat
17868   case $version_type in
17869     freebsd-elf*)
17870       library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17871       soname_spec='$libname$release$shared_ext$major'
17872       need_version=no
17873       need_lib_prefix=no
17874       ;;
17875     freebsd-*)
17876       library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
17877       need_version=yes
17878       ;;
17879   esac
17880   shlibpath_var=LD_LIBRARY_PATH
17881   case $host_os in
17882   freebsd2.*)
17883     shlibpath_overrides_runpath=yes
17884     ;;
17885   freebsd3.[01]* | freebsdelf3.[01]*)
17886     shlibpath_overrides_runpath=yes
17887     hardcode_into_libs=yes
17888     ;;
17889   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17890   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17891     shlibpath_overrides_runpath=no
17892     hardcode_into_libs=yes
17893     ;;
17894   *) # from 4.6 on, and DragonFly
17895     shlibpath_overrides_runpath=yes
17896     hardcode_into_libs=yes
17897     ;;
17898   esac
17899   ;;
17900
17901 haiku*)
17902   version_type=linux # correct to gnu/linux during the next big refactor
17903   need_lib_prefix=no
17904   need_version=no
17905   dynamic_linker="$host_os runtime_loader"
17906   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17907   soname_spec='$libname$release$shared_ext$major'
17908   shlibpath_var=LIBRARY_PATH
17909   shlibpath_overrides_runpath=no
17910   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
17911   hardcode_into_libs=yes
17912   ;;
17913
17914 hpux9* | hpux10* | hpux11*)
17915   # Give a soname corresponding to the major version so that dld.sl refuses to
17916   # link against other versions.
17917   version_type=sunos
17918   need_lib_prefix=no
17919   need_version=no
17920   case $host_cpu in
17921   ia64*)
17922     shrext_cmds='.so'
17923     hardcode_into_libs=yes
17924     dynamic_linker="$host_os dld.so"
17925     shlibpath_var=LD_LIBRARY_PATH
17926     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17927     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17928     soname_spec='$libname$release$shared_ext$major'
17929     if test 32 = "$HPUX_IA64_MODE"; then
17930       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17931       sys_lib_dlsearch_path_spec=/usr/lib/hpux32
17932     else
17933       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17934       sys_lib_dlsearch_path_spec=/usr/lib/hpux64
17935     fi
17936     ;;
17937   hppa*64*)
17938     shrext_cmds='.sl'
17939     hardcode_into_libs=yes
17940     dynamic_linker="$host_os dld.sl"
17941     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17942     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
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     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17946     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17947     ;;
17948   *)
17949     shrext_cmds='.sl'
17950     dynamic_linker="$host_os dld.sl"
17951     shlibpath_var=SHLIB_PATH
17952     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17953     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17954     soname_spec='$libname$release$shared_ext$major'
17955     ;;
17956   esac
17957   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
17958   postinstall_cmds='chmod 555 $lib'
17959   # or fails outright, so override atomically:
17960   install_override_mode=555
17961   ;;
17962
17963 interix[3-9]*)
17964   version_type=linux # correct to gnu/linux during the next big refactor
17965   need_lib_prefix=no
17966   need_version=no
17967   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17968   soname_spec='$libname$release$shared_ext$major'
17969   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17970   shlibpath_var=LD_LIBRARY_PATH
17971   shlibpath_overrides_runpath=no
17972   hardcode_into_libs=yes
17973   ;;
17974
17975 irix5* | irix6* | nonstopux*)
17976   case $host_os in
17977     nonstopux*) version_type=nonstopux ;;
17978     *)
17979         if test yes = "$lt_cv_prog_gnu_ld"; then
17980                 version_type=linux # correct to gnu/linux during the next big refactor
17981         else
17982                 version_type=irix
17983         fi ;;
17984   esac
17985   need_lib_prefix=no
17986   need_version=no
17987   soname_spec='$libname$release$shared_ext$major'
17988   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
17989   case $host_os in
17990   irix5* | nonstopux*)
17991     libsuff= shlibsuff=
17992     ;;
17993   *)
17994     case $LD in # libtool.m4 will add one of these switches to LD
17995     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17996       libsuff= shlibsuff= libmagic=32-bit;;
17997     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17998       libsuff=32 shlibsuff=N32 libmagic=N32;;
17999     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18000       libsuff=64 shlibsuff=64 libmagic=64-bit;;
18001     *) libsuff= shlibsuff= libmagic=never-match;;
18002     esac
18003     ;;
18004   esac
18005   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18006   shlibpath_overrides_runpath=no
18007   sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
18008   sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
18009   hardcode_into_libs=yes
18010   ;;
18011
18012 # No shared lib support for Linux oldld, aout, or coff.
18013 linux*oldld* | linux*aout* | linux*coff*)
18014   dynamic_linker=no
18015   ;;
18016
18017 linux*android*)
18018   version_type=none # Android doesn't support versioned libraries.
18019   need_lib_prefix=no
18020   need_version=no
18021   library_names_spec='$libname$release$shared_ext'
18022   soname_spec='$libname$release$shared_ext'
18023   finish_cmds=
18024   shlibpath_var=LD_LIBRARY_PATH
18025   shlibpath_overrides_runpath=yes
18026
18027   # This implies no fast_install, which is unacceptable.
18028   # Some rework will be needed to allow for fast_install
18029   # before this can be enabled.
18030   hardcode_into_libs=yes
18031
18032   dynamic_linker='Android linker'
18033   # Don't embed -rpath directories since the linker doesn't support them.
18034   hardcode_libdir_flag_spec_CXX='-L$libdir'
18035   ;;
18036
18037 # This must be glibc/ELF.
18038 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
18039   version_type=linux # correct to gnu/linux during the next big refactor
18040   need_lib_prefix=no
18041   need_version=no
18042   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18043   soname_spec='$libname$release$shared_ext$major'
18044   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18045   shlibpath_var=LD_LIBRARY_PATH
18046   shlibpath_overrides_runpath=no
18047
18048   # Some binutils ld are patched to set DT_RUNPATH
18049   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
18050   $as_echo_n "(cached) " >&6
18051 else
18052   lt_cv_shlibpath_overrides_runpath=no
18053     save_LDFLAGS=$LDFLAGS
18054     save_libdir=$libdir
18055     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
18056          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
18057     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18058 /* end confdefs.h.  */
18059
18060 int
18061 main ()
18062 {
18063
18064   ;
18065   return 0;
18066 }
18067 _ACEOF
18068 if ac_fn_cxx_try_link "$LINENO"; then :
18069   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
18070   lt_cv_shlibpath_overrides_runpath=yes
18071 fi
18072 fi
18073 rm -f core conftest.err conftest.$ac_objext \
18074     conftest$ac_exeext conftest.$ac_ext
18075     LDFLAGS=$save_LDFLAGS
18076     libdir=$save_libdir
18077
18078 fi
18079
18080   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
18081
18082   # This implies no fast_install, which is unacceptable.
18083   # Some rework will be needed to allow for fast_install
18084   # before this can be enabled.
18085   hardcode_into_libs=yes
18086
18087   # Ideally, we could use ldconfig to report *all* directores which are
18088   # searched for libraries, however this is still not possible.  Aside from not
18089   # being certain /sbin/ldconfig is available, command
18090   # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
18091   # even though it is searched at run-time.  Try to do the best guess by
18092   # appending ld.so.conf contents (and includes) to the search path.
18093   if test -f /etc/ld.so.conf; then
18094     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' ' '`
18095     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18096   fi
18097
18098   # We used to test for /lib/ld.so.1 and disable shared libraries on
18099   # powerpc, because MkLinux only supported shared libraries with the
18100   # GNU dynamic linker.  Since this was broken with cross compilers,
18101   # most powerpc-linux boxes support dynamic linking these days and
18102   # people can always --disable-shared, the test was removed, and we
18103   # assume the GNU/Linux dynamic linker is in use.
18104   dynamic_linker='GNU/Linux ld.so'
18105   ;;
18106
18107 netbsd*)
18108   version_type=sunos
18109   need_lib_prefix=no
18110   need_version=no
18111   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
18112     library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
18113     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18114     dynamic_linker='NetBSD (a.out) ld.so'
18115   else
18116     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18117     soname_spec='$libname$release$shared_ext$major'
18118     dynamic_linker='NetBSD ld.elf_so'
18119   fi
18120   shlibpath_var=LD_LIBRARY_PATH
18121   shlibpath_overrides_runpath=yes
18122   hardcode_into_libs=yes
18123   ;;
18124
18125 newsos6)
18126   version_type=linux # correct to gnu/linux during the next big refactor
18127   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18128   shlibpath_var=LD_LIBRARY_PATH
18129   shlibpath_overrides_runpath=yes
18130   ;;
18131
18132 *nto* | *qnx*)
18133   version_type=qnx
18134   need_lib_prefix=no
18135   need_version=no
18136   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18137   soname_spec='$libname$release$shared_ext$major'
18138   shlibpath_var=LD_LIBRARY_PATH
18139   shlibpath_overrides_runpath=no
18140   hardcode_into_libs=yes
18141   dynamic_linker='ldqnx.so'
18142   ;;
18143
18144 openbsd* | bitrig*)
18145   version_type=sunos
18146   sys_lib_dlsearch_path_spec=/usr/lib
18147   need_lib_prefix=no
18148   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
18149     need_version=no
18150   else
18151     need_version=yes
18152   fi
18153   library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
18154   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18155   shlibpath_var=LD_LIBRARY_PATH
18156   shlibpath_overrides_runpath=yes
18157   ;;
18158
18159 os2*)
18160   libname_spec='$name'
18161   version_type=windows
18162   shrext_cmds=.dll
18163   need_version=no
18164   need_lib_prefix=no
18165   # OS/2 can only load a DLL with a base name of 8 characters or less.
18166   soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
18167     v=$($ECHO $release$versuffix | tr -d .-);
18168     n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
18169     $ECHO $n$v`$shared_ext'
18170   library_names_spec='${libname}_dll.$libext'
18171   dynamic_linker='OS/2 ld.exe'
18172   shlibpath_var=BEGINLIBPATH
18173   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
18174   sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18175   postinstall_cmds='base_file=`basename \$file`~
18176     dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
18177     dldir=$destdir/`dirname \$dlpath`~
18178     test -d \$dldir || mkdir -p \$dldir~
18179     $install_prog $dir/$dlname \$dldir/$dlname~
18180     chmod a+x \$dldir/$dlname~
18181     if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
18182       eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
18183     fi'
18184   postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
18185     dlpath=$dir/\$dldll~
18186     $RM \$dlpath'
18187   ;;
18188
18189 osf3* | osf4* | osf5*)
18190   version_type=osf
18191   need_lib_prefix=no
18192   need_version=no
18193   soname_spec='$libname$release$shared_ext$major'
18194   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18195   shlibpath_var=LD_LIBRARY_PATH
18196   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18197   sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18198   ;;
18199
18200 rdos*)
18201   dynamic_linker=no
18202   ;;
18203
18204 solaris*)
18205   version_type=linux # correct to gnu/linux during the next big refactor
18206   need_lib_prefix=no
18207   need_version=no
18208   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18209   soname_spec='$libname$release$shared_ext$major'
18210   shlibpath_var=LD_LIBRARY_PATH
18211   shlibpath_overrides_runpath=yes
18212   hardcode_into_libs=yes
18213   # ldd complains unless libraries are executable
18214   postinstall_cmds='chmod +x $lib'
18215   ;;
18216
18217 sunos4*)
18218   version_type=sunos
18219   library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
18220   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18221   shlibpath_var=LD_LIBRARY_PATH
18222   shlibpath_overrides_runpath=yes
18223   if test yes = "$with_gnu_ld"; then
18224     need_lib_prefix=no
18225   fi
18226   need_version=yes
18227   ;;
18228
18229 sysv4 | sysv4.3*)
18230   version_type=linux # correct to gnu/linux during the next big refactor
18231   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18232   soname_spec='$libname$release$shared_ext$major'
18233   shlibpath_var=LD_LIBRARY_PATH
18234   case $host_vendor in
18235     sni)
18236       shlibpath_overrides_runpath=no
18237       need_lib_prefix=no
18238       runpath_var=LD_RUN_PATH
18239       ;;
18240     siemens)
18241       need_lib_prefix=no
18242       ;;
18243     motorola)
18244       need_lib_prefix=no
18245       need_version=no
18246       shlibpath_overrides_runpath=no
18247       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18248       ;;
18249   esac
18250   ;;
18251
18252 sysv4*MP*)
18253   if test -d /usr/nec; then
18254     version_type=linux # correct to gnu/linux during the next big refactor
18255     library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
18256     soname_spec='$libname$shared_ext.$major'
18257     shlibpath_var=LD_LIBRARY_PATH
18258   fi
18259   ;;
18260
18261 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18262   version_type=sco
18263   need_lib_prefix=no
18264   need_version=no
18265   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
18266   soname_spec='$libname$release$shared_ext$major'
18267   shlibpath_var=LD_LIBRARY_PATH
18268   shlibpath_overrides_runpath=yes
18269   hardcode_into_libs=yes
18270   if test yes = "$with_gnu_ld"; then
18271     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18272   else
18273     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18274     case $host_os in
18275       sco3.2v5*)
18276         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18277         ;;
18278     esac
18279   fi
18280   sys_lib_dlsearch_path_spec='/usr/lib'
18281   ;;
18282
18283 tpf*)
18284   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
18285   version_type=linux # correct to gnu/linux during the next big refactor
18286   need_lib_prefix=no
18287   need_version=no
18288   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18289   shlibpath_var=LD_LIBRARY_PATH
18290   shlibpath_overrides_runpath=no
18291   hardcode_into_libs=yes
18292   ;;
18293
18294 uts4*)
18295   version_type=linux # correct to gnu/linux during the next big refactor
18296   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18297   soname_spec='$libname$release$shared_ext$major'
18298   shlibpath_var=LD_LIBRARY_PATH
18299   ;;
18300
18301 *)
18302   dynamic_linker=no
18303   ;;
18304 esac
18305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
18306 $as_echo "$dynamic_linker" >&6; }
18307 test no = "$dynamic_linker" && can_build_shared=no
18308
18309 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18310 if test yes = "$GCC"; then
18311   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18312 fi
18313
18314 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
18315   sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
18316 fi
18317
18318 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
18319   sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
18320 fi
18321
18322 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
18323 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
18324
18325 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
18326 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
18327
18328 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
18329 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
18330
18331
18332
18333
18334
18335
18336
18337
18338
18339
18340
18341
18342
18343
18344
18345
18346
18347
18348
18349
18350
18351
18352
18353
18354
18355
18356
18357
18358
18359
18360
18361
18362
18363
18364
18365
18366
18367
18368
18369
18370     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
18371 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
18372 hardcode_action_CXX=
18373 if test -n "$hardcode_libdir_flag_spec_CXX" ||
18374    test -n "$runpath_var_CXX" ||
18375    test yes = "$hardcode_automatic_CXX"; then
18376
18377   # We can hardcode non-existent directories.
18378   if test no != "$hardcode_direct_CXX" &&
18379      # If the only mechanism to avoid hardcoding is shlibpath_var, we
18380      # have to relink, otherwise we might link with an installed library
18381      # when we should be linking with a yet-to-be-installed one
18382      ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" &&
18383      test no != "$hardcode_minus_L_CXX"; then
18384     # Linking always hardcodes the temporary library directory.
18385     hardcode_action_CXX=relink
18386   else
18387     # We can link without hardcoding, and we can hardcode nonexisting dirs.
18388     hardcode_action_CXX=immediate
18389   fi
18390 else
18391   # We cannot hardcode anything, or else we can only hardcode existing
18392   # directories.
18393   hardcode_action_CXX=unsupported
18394 fi
18395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
18396 $as_echo "$hardcode_action_CXX" >&6; }
18397
18398 if test relink = "$hardcode_action_CXX" ||
18399    test yes = "$inherit_rpath_CXX"; then
18400   # Fast installation is not supported
18401   enable_fast_install=no
18402 elif test yes = "$shlibpath_overrides_runpath" ||
18403      test no = "$enable_shared"; then
18404   # Fast installation is not necessary
18405   enable_fast_install=needless
18406 fi
18407
18408
18409
18410
18411
18412
18413
18414   fi # test -n "$compiler"
18415
18416   CC=$lt_save_CC
18417   CFLAGS=$lt_save_CFLAGS
18418   LDCXX=$LD
18419   LD=$lt_save_LD
18420   GCC=$lt_save_GCC
18421   with_gnu_ld=$lt_save_with_gnu_ld
18422   lt_cv_path_LDCXX=$lt_cv_path_LD
18423   lt_cv_path_LD=$lt_save_path_LD
18424   lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
18425   lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
18426 fi # test yes != "$_lt_caught_CXX_error"
18427
18428 ac_ext=c
18429 ac_cpp='$CPP $CPPFLAGS'
18430 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18431 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18432 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18433
18434
18435
18436
18437
18438
18439
18440
18441
18442
18443
18444
18445
18446
18447
18448         ac_config_commands="$ac_config_commands libtool"
18449
18450
18451
18452
18453 # Only expand once:
18454
18455
18456 # Check whether --enable-experimental-libtool was given.
18457 if test "${enable_experimental_libtool+set}" = set; then :
18458   enableval=$enable_experimental_libtool; experimental_libtool=$enableval
18459 else
18460   experimental_libtool=no
18461 fi
18462
18463
18464 if test "$experimental_libtool" = "yes"; then
18465   echo "using APR's libtool"
18466   sh_libtool="`$apr_config --apr-libtool`"
18467   LIBTOOL="$sh_libtool"
18468   SVN_LIBTOOL="$sh_libtool"
18469 else
18470   sh_libtool="$abs_builddir/libtool"
18471   SVN_LIBTOOL="\$(SHELL) \"$sh_libtool\""
18472 fi
18473
18474
18475 lt_pversion=`$LIBTOOL --version 2>/dev/null|$SED -e 's/([^)]*)//g;s/^[^0-9]*//;s/[- ].*//g;q'`
18476 lt_version=`echo $lt_pversion|$SED -e 's/\([a-z]*\)$/.\1/'`
18477 lt_major_version=`echo $lt_version | cut -d'.' -f 1`
18478
18479 svn_enable_static=yes
18480 svn_enable_shared=yes
18481
18482 # Check whether --enable-static was given.
18483 if test "${enable_static+set}" = set; then :
18484   enableval=$enable_static; svn_enable_static="$enableval"
18485 else
18486   svn_enable_static="yes"
18487 fi
18488
18489
18490 # Check whether --enable-shared was given.
18491 if test "${enable_shared+set}" = set; then :
18492   enableval=$enable_shared; svn_enable_shared="$enableval"
18493 else
18494   svn_enable_shared="yes"
18495 fi
18496
18497
18498 if test "$svn_enable_static" = "yes" && test "$svn_enable_shared" = "yes" ; then
18499   { $as_echo "$as_me:${as_lineno-$LINENO}: building both shared and static libraries" >&5
18500 $as_echo "$as_me: building both shared and static libraries" >&6;}
18501 elif test "$svn_enable_static" = "yes" ; then
18502   { $as_echo "$as_me:${as_lineno-$LINENO}: building static libraries only" >&5
18503 $as_echo "$as_me: building static libraries only" >&6;}
18504   LT_CFLAGS="-static $LT_CFLAGS"
18505   LT_LDFLAGS="-static $LT_LDFLAGS"
18506 elif test "$svn_enable_shared" = "yes" ; then
18507   { $as_echo "$as_me:${as_lineno-$LINENO}: building shared libraries only" >&5
18508 $as_echo "$as_me: building shared libraries only" >&6;}
18509   if test "$lt_major_version" = "1" ; then
18510     LT_CFLAGS="-prefer-pic $LT_CFLAGS"
18511   elif test "$lt_major_version" = "2" ; then
18512     LT_CFLAGS="-shared $LT_CFLAGS"
18513   fi
18514   LT_LDFLAGS="-shared $LT_LDFLAGS"
18515 else
18516   as_fn_error $? "cannot disable both shared and static libraries" "$LINENO" 5
18517 fi
18518
18519 # Check whether --enable-all-static was given.
18520 if test "${enable_all_static+set}" = set; then :
18521   enableval=$enable_all_static;
18522     if test "$enableval" = "yes" ; then
18523       LT_LDFLAGS="-all-static $LT_LDFLAGS"
18524     elif test "$enableval" != "no" ; then
18525       as_fn_error $? "--enable-all-static doesn't accept argument" "$LINENO" 5
18526     fi
18527
18528 fi
18529
18530
18531
18532
18533
18534 # Check whether --enable-local-library-preloading was given.
18535 if test "${enable_local_library_preloading+set}" = set; then :
18536   enableval=$enable_local_library_preloading;
18537   if test "$enableval" != "no"; then
18538     if test "$svn_enable_shared" = "yes"; then
18539       TRANSFORM_LIBTOOL_SCRIPTS="transform-libtool-scripts"
18540     else
18541       as_fn_error $? "--enable-local-library-preloading conflicts with --disable-shared" "$LINENO" 5
18542     fi
18543   else
18544     TRANSFORM_LIBTOOL_SCRIPTS=""
18545   fi
18546
18547 else
18548
18549   TRANSFORM_LIBTOOL_SCRIPTS=""
18550
18551 fi
18552
18553
18554
18555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libtool needs -no-undefined" >&5
18556 $as_echo_n "checking whether libtool needs -no-undefined... " >&6; }
18557 case $host in
18558   *-*-cygwin*)
18559     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18560 $as_echo "yes" >&6; }
18561     LT_NO_UNDEFINED="-no-undefined"
18562     ;;
18563   *)
18564     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18565 $as_echo "no" >&6; }
18566     LT_NO_UNDEFINED=""
18567     ;;
18568 esac
18569
18570
18571 trang=yes
18572
18573 # Check whether --with-trang was given.
18574 if test "${with_trang+set}" = set; then :
18575   withval=$with_trang;
18576     trang="$withval"
18577
18578 fi
18579
18580 if test "$trang" = "yes"; then
18581     # Extract the first word of "trang", so it can be a program name with args.
18582 set dummy trang; ac_word=$2
18583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18584 $as_echo_n "checking for $ac_word... " >&6; }
18585 if ${ac_cv_path_TRANG+:} false; then :
18586   $as_echo_n "(cached) " >&6
18587 else
18588   case $TRANG in
18589   [\\/]* | ?:[\\/]*)
18590   ac_cv_path_TRANG="$TRANG" # Let the user override the test with a path.
18591   ;;
18592   *)
18593   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18594 for as_dir in $PATH
18595 do
18596   IFS=$as_save_IFS
18597   test -z "$as_dir" && as_dir=.
18598     for ac_exec_ext in '' $ac_executable_extensions; do
18599   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18600     ac_cv_path_TRANG="$as_dir/$ac_word$ac_exec_ext"
18601     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18602     break 2
18603   fi
18604 done
18605   done
18606 IFS=$as_save_IFS
18607
18608   test -z "$ac_cv_path_TRANG" && ac_cv_path_TRANG="none"
18609   ;;
18610 esac
18611 fi
18612 TRANG=$ac_cv_path_TRANG
18613 if test -n "$TRANG"; then
18614   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TRANG" >&5
18615 $as_echo "$TRANG" >&6; }
18616 else
18617   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18618 $as_echo "no" >&6; }
18619 fi
18620
18621
18622 else
18623     TRANG="$trang"
18624
18625 fi
18626
18627 doxygen=yes
18628
18629 # Check whether --with-doxygen was given.
18630 if test "${with_doxygen+set}" = set; then :
18631   withval=$with_doxygen;
18632     doxygen="$withval"
18633
18634 fi
18635
18636 if test "$doxygen" = "yes"; then
18637     # Extract the first word of "doxygen", so it can be a program name with args.
18638 set dummy doxygen; ac_word=$2
18639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18640 $as_echo_n "checking for $ac_word... " >&6; }
18641 if ${ac_cv_path_DOXYGEN+:} false; then :
18642   $as_echo_n "(cached) " >&6
18643 else
18644   case $DOXYGEN in
18645   [\\/]* | ?:[\\/]*)
18646   ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
18647   ;;
18648   *)
18649   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18650 for as_dir in $PATH
18651 do
18652   IFS=$as_save_IFS
18653   test -z "$as_dir" && as_dir=.
18654     for ac_exec_ext in '' $ac_executable_extensions; do
18655   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18656     ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
18657     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18658     break 2
18659   fi
18660 done
18661   done
18662 IFS=$as_save_IFS
18663
18664   test -z "$ac_cv_path_DOXYGEN" && ac_cv_path_DOXYGEN="none"
18665   ;;
18666 esac
18667 fi
18668 DOXYGEN=$ac_cv_path_DOXYGEN
18669 if test -n "$DOXYGEN"; then
18670   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOXYGEN" >&5
18671 $as_echo "$DOXYGEN" >&6; }
18672 else
18673   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18674 $as_echo "no" >&6; }
18675 fi
18676
18677
18678 else
18679     DOXYGEN="$doxygen"
18680
18681 fi
18682
18683
18684
18685
18686
18687 # Check whether --with-expat was given.
18688 if test "${with_expat+set}" = set; then :
18689   withval=$with_expat; svn_lib_expat="$withval"
18690 else
18691   svn_lib_expat="::expat"
18692 fi
18693
18694
18695 # APR-util accepts "builtin" as an argument to this option so if the user
18696 # passed "builtin" pretend the user didn't specify the --with-expat option
18697 # at all. Expat will (hopefully) be found in apr-util.
18698 test "_$svn_lib_expat" = "_builtin" && svn_lib_expat="::expat"
18699
18700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Expat" >&5
18701 $as_echo_n "checking for Expat... " >&6; }
18702 if test -n "`echo "$svn_lib_expat" | $EGREP ":.*:"`"; then
18703   SVN_XML_INCLUDES=""
18704   for i in `echo "$svn_lib_expat" | $SED -e "s/\([^:]*\):.*/\1/"`; do
18705     SVN_XML_INCLUDES="$SVN_XML_INCLUDES -I$i"
18706   done
18707   SVN_XML_INCLUDES="${SVN_XML_INCLUDES## }"
18708   for l in `echo "$svn_lib_expat" | $SED -e "s/.*:\([^:]*\):.*/\1/"`; do
18709     LDFLAGS="$LDFLAGS -L$l"
18710   done
18711   for l in `echo "$svn_lib_expat" | $SED -e "s/.*:\([^:]*\)/\1/"`; do
18712     SVN_XML_LIBS="$SVN_XML_LIBS -l$l"
18713   done
18714   SVN_XML_LIBS="${SVN_XML_LIBS## }"
18715   old_CPPFLAGS="$CPPFLAGS"
18716   old_LIBS="$LIBS"
18717   CPPFLAGS="$CPPFLAGS $SVN_XML_INCLUDES"
18718   LIBS="$LIBS $SVN_XML_LIBS"
18719   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18720 /* end confdefs.h.  */
18721
18722 #include <expat.h>
18723 int main()
18724 {XML_ParserCreate(NULL);}
18725 _ACEOF
18726 if ac_fn_c_try_link "$LINENO"; then :
18727   svn_lib_expat="yes"
18728 else
18729   svn_lib_expat="no"
18730 fi
18731 rm -f core conftest.err conftest.$ac_objext \
18732     conftest$ac_exeext conftest.$ac_ext
18733   LIBS="$old_LIBS"
18734   if test "$svn_lib_expat" = "yes"; then
18735     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18736 $as_echo "yes" >&6; }
18737   else
18738     SVN_XML_INCLUDES=""
18739     SVN_XML_LIBS=""
18740     CPPFLAGS="$CPPFLAGS $SVN_APRUTIL_INCLUDES"
18741     if test "$enable_all_static" != "yes"; then
18742       SVN_APRUTIL_LIBS="$SVN_APRUTIL_LIBS `$apu_config --libs`"
18743     fi
18744     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18745 /* end confdefs.h.  */
18746
18747 #include <expat.h>
18748 int main()
18749 {XML_ParserCreate(NULL);}
18750 _ACEOF
18751 if ac_fn_c_try_compile "$LINENO"; then :
18752   svn_lib_expat="yes"
18753 else
18754   svn_lib_expat="no"
18755 fi
18756 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18757     if test "$svn_lib_expat" = "yes"; then
18758       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18759 $as_echo "yes" >&6; }
18760       { $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
18761 $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;}
18762     else
18763       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18764 $as_echo "no" >&6; }
18765       as_fn_error $? "Expat not found" "$LINENO" 5
18766     fi
18767   fi
18768   CPPFLAGS="$old_CPPFLAGS"
18769 else
18770   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18771 $as_echo "no" >&6; }
18772   if test "$svn_lib_expat" = "yes"; then
18773     as_fn_error $? "--with-expat option requires argument" "$LINENO" 5
18774   elif test "$svn_lib_expat" = "no"; then
18775     as_fn_error $? "Expat is required" "$LINENO" 5
18776   else
18777     as_fn_error $? "Invalid syntax of argument of --with-expat option" "$LINENO" 5
18778   fi
18779 fi
18780
18781
18782
18783
18784 # Berkeley DB on SCO OpenServer needs -lsocket
18785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
18786 $as_echo_n "checking for socket in -lsocket... " >&6; }
18787 if ${ac_cv_lib_socket_socket+:} false; then :
18788   $as_echo_n "(cached) " >&6
18789 else
18790   ac_check_lib_save_LIBS=$LIBS
18791 LIBS="-lsocket  $LIBS"
18792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18793 /* end confdefs.h.  */
18794
18795 /* Override any GCC internal prototype to avoid an error.
18796    Use char because int might match the return type of a GCC
18797    builtin and then its argument prototype would still apply.  */
18798 #ifdef __cplusplus
18799 extern "C"
18800 #endif
18801 char socket ();
18802 int
18803 main ()
18804 {
18805 return socket ();
18806   ;
18807   return 0;
18808 }
18809 _ACEOF
18810 if ac_fn_c_try_link "$LINENO"; then :
18811   ac_cv_lib_socket_socket=yes
18812 else
18813   ac_cv_lib_socket_socket=no
18814 fi
18815 rm -f core conftest.err conftest.$ac_objext \
18816     conftest$ac_exeext conftest.$ac_ext
18817 LIBS=$ac_check_lib_save_LIBS
18818 fi
18819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
18820 $as_echo "$ac_cv_lib_socket_socket" >&6; }
18821 if test "x$ac_cv_lib_socket_socket" = xyes; then :
18822   cat >>confdefs.h <<_ACEOF
18823 #define HAVE_LIBSOCKET 1
18824 _ACEOF
18825
18826   LIBS="-lsocket $LIBS"
18827
18828 fi
18829
18830
18831 # Build the BDB filesystem library only if we have an appropriate
18832 # version of Berkeley DB.
18833 case "$host" in
18834 powerpc-apple-darwin*)
18835     # Berkeley DB 4.0 does not work on OS X.
18836     SVN_FS_WANT_DB_MAJOR=4
18837     SVN_FS_WANT_DB_MINOR=1
18838     SVN_FS_WANT_DB_PATCH=25
18839     ;;
18840 *)
18841     SVN_FS_WANT_DB_MAJOR=4
18842     SVN_FS_WANT_DB_MINOR=0
18843     SVN_FS_WANT_DB_PATCH=14
18844     ;;
18845 esac
18846 db_alt_version="5.x"
18847 # Look for libdb4.so first:
18848
18849   db_version=$SVN_FS_WANT_DB_MAJOR.$SVN_FS_WANT_DB_MINOR.$SVN_FS_WANT_DB_PATCH
18850
18851
18852 # Check whether --with-berkeley-db was given.
18853 if test "${with_berkeley_db+set}" = set; then :
18854   withval=$with_berkeley_db;
18855     if test "$withval" = "no"; then
18856       bdb_status=skip
18857     elif test "$withval" = "yes"; then
18858       apu_db_version="`$apu_config --db-version`"
18859       if test $? -ne 0; then
18860         as_fn_error $? "Can't determine whether apr-util is linked against a
18861                       proper version of Berkeley DB." "$LINENO" 5
18862       fi
18863
18864       if test "$withval" = "yes"; then
18865         if test "$apu_db_version" -lt "4"; then
18866           as_fn_error $? "APR-UTIL was linked against Berkeley DB version $apu_db_version,
18867                         while version 4 or higher is required.  Reinstall
18868                         APR-UTIL with the appropriate options." "$LINENO" 5
18869         fi
18870
18871         bdb_status=required
18872
18873       elif test "$apu_found" != "reconfig"; then
18874         if test "$apu_db_version" -lt 4; then
18875           as_fn_error $? "APR-UTIL was installed independently, it won't be
18876                         possible to use the specified Berkeley DB: $withval" "$LINENO" 5
18877         fi
18878
18879         bdb_status=required
18880       fi
18881     else
18882       if echo "$withval" | $EGREP ":.*:.*:" > /dev/null; then
18883         svn_berkeley_db_header="`echo "$withval" | $SED -e "s/\([^:]*\):.*/\1/"`"
18884         SVN_DB_INCLUDES=""
18885         for i in `echo "$withval" | $SED -e "s/.*:\([^:]*\):[^:]*:.*/\1/"`; do
18886           SVN_DB_INCLUDES="$SVN_DB_INCLUDES -I$i"
18887         done
18888         SVN_DB_INCLUDES="${SVN_DB_INCLUDES## }"
18889         for l in `echo "$withval" | $SED -e "s/.*:[^:]*:\([^:]*\):.*/\1/"`; do
18890           LDFLAGS="$LDFLAGS `
18891   input_flags="-L$l"
18892   output_flags=""
18893   filtered_dirs="/lib /lib64 /usr/lib /usr/lib64"
18894   for flag in $input_flags; do
18895     filter="no"
18896     for dir in $filtered_dirs; do
18897       if test "$flag" = "-L$dir" || test "$flag" = "-L$dir/"; then
18898         filter="yes"
18899         break
18900       fi
18901     done
18902     if test "$filter" = "no"; then
18903       output_flags="$output_flags $flag"
18904     fi
18905   done
18906   if test -n "$output_flags"; then
18907     printf "%s" "${output_flags# }"
18908   fi
18909 `"
18910         done
18911         SVN_DB_LIBS=""
18912         for l in `echo "$withval" | $SED -e "s/.*:\([^:]*\)/\1/"`; do
18913           SVN_DB_LIBS="$SVN_DB_LIBS -l$l"
18914         done
18915         SVN_DB_LIBS="${SVN_DB_LIBS## }"
18916
18917         bdb_status=required
18918       else
18919         as_fn_error $? "Invalid syntax of argument of --with-berkeley-db option" "$LINENO" 5
18920       fi
18921     fi
18922
18923 else
18924
18925     # No --with-berkeley-db option:
18926     #
18927     # Check if APR-UTIL is providing the correct Berkeley DB version
18928     # for us.
18929     #
18930     apu_db_version="`$apu_config --db-version`"
18931     if test $? -ne 0; then
18932       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Detected older version of APR-UTIL, trying to determine
18933                    whether apr-util is linked against Berkeley DB
18934                    $db_version" >&5
18935 $as_echo "$as_me: WARNING: Detected older version of APR-UTIL, trying to determine
18936                    whether apr-util is linked against Berkeley DB
18937                    $db_version" >&2;}
18938       bdb_status=try-link
18939     elif test "$apu_db_version" -lt "4"; then
18940       bdb_status=skip
18941     else
18942       bdb_status=try-link
18943     fi
18944
18945 fi
18946
18947
18948   if test "$bdb_status" = "skip"; then
18949     svn_lib_berkeley_db=no
18950   else
18951     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for availability of Berkeley DB" >&5
18952 $as_echo_n "checking for availability of Berkeley DB... " >&6; }
18953     # Check whether --enable-bdb6 was given.
18954 if test "${enable_bdb6+set}" = set; then :
18955   enableval=$enable_bdb6; enable_bdb6=$enableval
18956 else
18957   enable_bdb6=unspecified
18958 fi
18959
18960
18961
18962     svn_lib_berkeley_db_try_save_cppflags="$CPPFLAGS"
18963     svn_lib_berkeley_db_try_save_libs="$LIBS"
18964
18965     svn_check_berkeley_db_major=$SVN_FS_WANT_DB_MAJOR
18966     svn_check_berkeley_db_minor=$SVN_FS_WANT_DB_MINOR
18967     svn_check_berkeley_db_patch=$SVN_FS_WANT_DB_PATCH
18968     enable_bdb6=$enable_bdb6
18969
18970    if test -z "$SVN_DB_LIBS"; then
18971       # We pass --dbm-libs here since Debian has modified apu-config not
18972       # to return -ldb unless --dbm-libs is passed.  This may also produce
18973       # extra output beyond -ldb but since we're only filtering for -ldb
18974       # it won't matter to us.  However, --dbm-libs was added to apu-config
18975       # in 1.3.8 so it's possible the version we have doesn't support it
18976       # so fallback without it if we get an error.
18977       svn_db_libs_prefiltered="`$apu_config --libs --dbm-libs`"
18978       if test $? -ne 0; then
18979         svn_db_libs_prefiltered="`$apu_config --libs`"
18980       fi
18981
18982       # Extract only the -ldb.* flag from the libs supplied by apu-config
18983       # Otherwise we get bit by the fact that expat might not be built yet
18984       # Or that it resides in a non-standard location which we would have
18985       # to compensate with using something like -R`$apu_config --prefix`/lib.
18986       #
18987       SVN_DB_LIBS="`echo \"$svn_db_libs_prefiltered\" | $SED -e 's/.*\(-ldb[^[:space:]]*\).*/\1/' | $EGREP -- '-ldb[^[:space:]]*'`"
18988     fi
18989
18990     CPPFLAGS="$SVN_DB_INCLUDES $SVN_APRUTIL_INCLUDES $CPPFLAGS"
18991     LIBS="`$apu_config --ldflags` $SVN_DB_LIBS $LIBS"
18992
18993     if test -n "$svn_berkeley_db_header"; then
18994       SVN_DB_HEADER="#include <$svn_berkeley_db_header>"
18995       svn_db_header="#include <$svn_berkeley_db_header>"
18996     else
18997       SVN_DB_HEADER="#include <apu_want.h>"
18998       svn_db_header="#define APU_WANT_DB
18999 #include <apu_want.h>"
19000     fi
19001
19002
19003
19004     if test "$cross_compiling" = yes; then :
19005   svn_have_berkeley_db=yes
19006
19007 else
19008   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19009 /* end confdefs.h.  */
19010
19011 #include <string.h>
19012 #include <stdlib.h>
19013 $svn_db_header
19014
19015 int main ()
19016 {
19017   int major, minor, patch;
19018
19019   db_version (&major, &minor, &patch);
19020
19021   /* Sanity check: ensure that db.h constants actually match the db library */
19022   if (major != DB_VERSION_MAJOR
19023       || minor != DB_VERSION_MINOR
19024       || patch != DB_VERSION_PATCH)
19025     exit (1);
19026
19027   /* Block Berkeley DB 6, because (a) we haven't tested with it, (b) 6.0.20
19028      and newer are under the AGPL, and we want use of AGPL dependencies to be
19029      opt-in. */
19030   if (major >= 6 && strcmp("$enable_bdb6", "yes"))
19031     exit(2);
19032
19033   /* Run-time check:  ensure the library claims to be the correct version. */
19034
19035   if (major < $svn_check_berkeley_db_major)
19036     exit (1);
19037   if (major > $svn_check_berkeley_db_major)
19038     exit (0);
19039
19040   if (minor < $svn_check_berkeley_db_minor)
19041     exit (1);
19042   if (minor > $svn_check_berkeley_db_minor)
19043     exit (0);
19044
19045   if (patch >= $svn_check_berkeley_db_patch)
19046     exit (0);
19047   else
19048     exit (1);
19049 }
19050
19051 _ACEOF
19052 if ac_fn_c_try_run "$LINENO"; then :
19053   svn_have_berkeley_db=yes
19054 else
19055   rc=$?
19056        svn_have_berkeley_db=no
19057        if test $rc = 2; then
19058          svn_have_berkeley_db=no6
19059        fi
19060 fi
19061 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19062   conftest.$ac_objext conftest.beam conftest.$ac_ext
19063 fi
19064
19065
19066   CPPFLAGS="$svn_lib_berkeley_db_try_save_cppflags"
19067   LIBS="$svn_lib_berkeley_db_try_save_libs"
19068
19069
19070     if test "$svn_have_berkeley_db" = "yes"; then
19071       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19072 $as_echo "yes" >&6; }
19073       svn_lib_berkeley_db=yes
19074     else
19075       if test "$svn_have_berkeley_db" = "no6"; then
19076         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (found version 6, but --enable-bdb6 not specified)" >&5
19077 $as_echo "no (found version 6, but --enable-bdb6 not specified)" >&6; }
19078         # A warning will be printed at the end of configure.ac.
19079       else
19080         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19081 $as_echo "no" >&6; }
19082       fi
19083       svn_lib_berkeley_db=no
19084       if test "$bdb_status" = "required"; then
19085         as_fn_error $? "Berkeley DB $db_version or $db_alt_version wasn't found." "$LINENO" 5
19086       fi
19087     fi
19088   fi
19089
19090
19091
19092 cat >>confdefs.h <<_ACEOF
19093 #define SVN_FS_WANT_DB_MAJOR $SVN_FS_WANT_DB_MAJOR
19094 _ACEOF
19095
19096
19097 cat >>confdefs.h <<_ACEOF
19098 #define SVN_FS_WANT_DB_MINOR $SVN_FS_WANT_DB_MINOR
19099 _ACEOF
19100
19101
19102 cat >>confdefs.h <<_ACEOF
19103 #define SVN_FS_WANT_DB_PATCH $SVN_FS_WANT_DB_PATCH
19104 _ACEOF
19105
19106
19107
19108
19109
19110
19111
19112 # Check whether --with-sasl was given.
19113 if test "${with_sasl+set}" = set; then :
19114   withval=$with_sasl;
19115     with_sasl="$withval"
19116     required="yes"
19117
19118 else
19119
19120     with_sasl="yes"
19121     required="no"
19122
19123 fi
19124
19125
19126   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to look for SASL" >&5
19127 $as_echo_n "checking whether to look for SASL... " >&6; }
19128
19129   if test "${with_sasl}" = "no"; then
19130     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19131 $as_echo "no" >&6; }
19132     svn_lib_sasl=no
19133   else
19134     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19135 $as_echo "yes" >&6; }
19136     saved_LDFLAGS="$LDFLAGS"
19137     saved_CPPFLAGS="$CPPFLAGS"
19138
19139     if test "$with_sasl" = "yes"; then
19140       { $as_echo "$as_me:${as_lineno-$LINENO}: Looking in default locations" >&5
19141 $as_echo "$as_me: Looking in default locations" >&6;}
19142       ac_fn_c_check_header_mongrel "$LINENO" "sasl/sasl.h" "ac_cv_header_sasl_sasl_h" "$ac_includes_default"
19143 if test "x$ac_cv_header_sasl_sasl_h" = xyes; then :
19144   ac_fn_c_check_header_mongrel "$LINENO" "sasl/saslutil.h" "ac_cv_header_sasl_saslutil_h" "$ac_includes_default"
19145 if test "x$ac_cv_header_sasl_saslutil_h" = xyes; then :
19146   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prop_get in -lsasl2" >&5
19147 $as_echo_n "checking for prop_get in -lsasl2... " >&6; }
19148 if ${ac_cv_lib_sasl2_prop_get+:} false; then :
19149   $as_echo_n "(cached) " >&6
19150 else
19151   ac_check_lib_save_LIBS=$LIBS
19152 LIBS="-lsasl2  $LIBS"
19153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19154 /* end confdefs.h.  */
19155
19156 /* Override any GCC internal prototype to avoid an error.
19157    Use char because int might match the return type of a GCC
19158    builtin and then its argument prototype would still apply.  */
19159 #ifdef __cplusplus
19160 extern "C"
19161 #endif
19162 char prop_get ();
19163 int
19164 main ()
19165 {
19166 return prop_get ();
19167   ;
19168   return 0;
19169 }
19170 _ACEOF
19171 if ac_fn_c_try_link "$LINENO"; then :
19172   ac_cv_lib_sasl2_prop_get=yes
19173 else
19174   ac_cv_lib_sasl2_prop_get=no
19175 fi
19176 rm -f core conftest.err conftest.$ac_objext \
19177     conftest$ac_exeext conftest.$ac_ext
19178 LIBS=$ac_check_lib_save_LIBS
19179 fi
19180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sasl2_prop_get" >&5
19181 $as_echo "$ac_cv_lib_sasl2_prop_get" >&6; }
19182 if test "x$ac_cv_lib_sasl2_prop_get" = xyes; then :
19183   svn_lib_sasl=yes
19184 else
19185   svn_lib_sasl=no
19186 fi
19187
19188 else
19189   svn_lib_sasl=no
19190 fi
19191
19192
19193 else
19194   svn_lib_sasl=no
19195 fi
19196
19197
19198       if test "$svn_lib_sasl" = "no"; then
19199         with_sasl="/usr/local"
19200       fi
19201     else
19202       svn_lib_sasl=no
19203     fi
19204
19205     if test "$svn_lib_sasl" = "no"; then
19206       SVN_SASL_INCLUDES="-I${with_sasl}/include"
19207       CPPFLAGS="$CPPFLAGS $SVN_SASL_INCLUDES"
19208       LDFLAGS="$LDFLAGS `
19209   input_flags="-L${with_sasl}/lib"
19210   output_flags=""
19211   filtered_dirs="/lib /lib64 /usr/lib /usr/lib64"
19212   for flag in $input_flags; do
19213     filter="no"
19214     for dir in $filtered_dirs; do
19215       if test "$flag" = "-L$dir" || test "$flag" = "-L$dir/"; then
19216         filter="yes"
19217         break
19218       fi
19219     done
19220     if test "$filter" = "no"; then
19221       output_flags="$output_flags $flag"
19222     fi
19223   done
19224   if test -n "$output_flags"; then
19225     printf "%s" "${output_flags# }"
19226   fi
19227 `"
19228
19229       ac_fn_c_check_header_mongrel "$LINENO" "sasl/sasl.h" "ac_cv_header_sasl_sasl_h" "$ac_includes_default"
19230 if test "x$ac_cv_header_sasl_sasl_h" = xyes; then :
19231   ac_fn_c_check_header_mongrel "$LINENO" "sasl/saslutil.h" "ac_cv_header_sasl_saslutil_h" "$ac_includes_default"
19232 if test "x$ac_cv_header_sasl_saslutil_h" = xyes; then :
19233   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prop_get in -lsasl2" >&5
19234 $as_echo_n "checking for prop_get in -lsasl2... " >&6; }
19235 if ${ac_cv_lib_sasl2_prop_get+:} false; then :
19236   $as_echo_n "(cached) " >&6
19237 else
19238   ac_check_lib_save_LIBS=$LIBS
19239 LIBS="-lsasl2  $LIBS"
19240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19241 /* end confdefs.h.  */
19242
19243 /* Override any GCC internal prototype to avoid an error.
19244    Use char because int might match the return type of a GCC
19245    builtin and then its argument prototype would still apply.  */
19246 #ifdef __cplusplus
19247 extern "C"
19248 #endif
19249 char prop_get ();
19250 int
19251 main ()
19252 {
19253 return prop_get ();
19254   ;
19255   return 0;
19256 }
19257 _ACEOF
19258 if ac_fn_c_try_link "$LINENO"; then :
19259   ac_cv_lib_sasl2_prop_get=yes
19260 else
19261   ac_cv_lib_sasl2_prop_get=no
19262 fi
19263 rm -f core conftest.err conftest.$ac_objext \
19264     conftest$ac_exeext conftest.$ac_ext
19265 LIBS=$ac_check_lib_save_LIBS
19266 fi
19267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sasl2_prop_get" >&5
19268 $as_echo "$ac_cv_lib_sasl2_prop_get" >&6; }
19269 if test "x$ac_cv_lib_sasl2_prop_get" = xyes; then :
19270   svn_lib_sasl=yes
19271 else
19272   svn_lib_sasl=no
19273 fi
19274
19275 else
19276   svn_lib_sasl=no
19277 fi
19278
19279
19280 else
19281   svn_lib_sasl=no
19282 fi
19283
19284
19285     fi
19286
19287     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for availability of Cyrus SASL v2" >&5
19288 $as_echo_n "checking for availability of Cyrus SASL v2... " >&6; }
19289     if test "$svn_lib_sasl" = "yes"; then
19290       SVN_SASL_LIBS="-lsasl2"
19291       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19292 $as_echo "yes" >&6; }
19293     else
19294       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19295 $as_echo "no" >&6; }
19296
19297       if test "$required" = "yes"; then
19298                         as_fn_error $? "Could not find Cyrus SASL v2" "$LINENO" 5
19299       fi
19300
19301       SVN_SASL_INCLUDES=""
19302       LDFLAGS="$saved_LDFLAGS"
19303     fi
19304
19305     CPPFLAGS="$saved_CPPFLAGS"
19306   fi
19307
19308
19309
19310
19311
19312 if test "$svn_lib_sasl" = "yes"; then
19313
19314 $as_echo "#define SVN_HAVE_SASL 1" >>confdefs.h
19315
19316 fi
19317
19318
19319
19320   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Mach-O dynamic module iteration functions" >&5
19321 $as_echo_n "checking for Mach-O dynamic module iteration functions... " >&6; }
19322   if test "$cross_compiling" = yes; then :
19323   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19324 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19325 as_fn_error $? "cannot run test program while cross compiling
19326 See \`config.log' for more details" "$LINENO" 5; }
19327 else
19328   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19329 /* end confdefs.h.  */
19330
19331     #include <mach-o/dyld.h>
19332     #include <mach-o/loader.h>
19333
19334 int
19335 main ()
19336 {
19337
19338     const struct mach_header *header = _dyld_get_image_header(0);
19339     const char *name = _dyld_get_image_name(0);
19340     if (name && header) return 0;
19341     return 1;
19342
19343   ;
19344   return 0;
19345 }
19346 _ACEOF
19347 if ac_fn_c_try_run "$LINENO"; then :
19348
19349
19350 $as_echo "#define SVN_HAVE_MACHO_ITERATE 1" >>confdefs.h
19351
19352     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19353 $as_echo "yes" >&6; }
19354
19355 else
19356
19357     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19358 $as_echo "no" >&6; }
19359
19360 fi
19361 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19362   conftest.$ac_objext conftest.beam conftest.$ac_ext
19363 fi
19364
19365
19366
19367   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Mac OS property list utilities" >&5
19368 $as_echo_n "checking for Mac OS property list utilities... " >&6; }
19369
19370   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19371 /* end confdefs.h.  */
19372
19373     #include <AvailabilityMacros.h>
19374     #if !defined(MAC_OS_X_VERSION_MAX_ALLOWED) \
19375      || !defined(MAC_OS_X_VERSION_10_0) \
19376      || (MAC_OS_X_VERSION_MAX_ALLOWED <= MAC_OS_X_VERSION_10_0)
19377     #error ProperyList API unavailable.
19378     #endif
19379
19380 int
19381 main ()
19382 {
19383
19384   ;
19385   return 0;
19386 }
19387 _ACEOF
19388 if ac_fn_c_try_compile "$LINENO"; then :
19389
19390
19391     LIBS="$LIBS -framework CoreFoundation"
19392
19393 $as_echo "#define SVN_HAVE_MACOS_PLIST 1" >>confdefs.h
19394
19395     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19396 $as_echo "yes" >&6; }
19397
19398 else
19399
19400     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19401 $as_echo "no" >&6; }
19402
19403 fi
19404 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19405
19406
19407   # Check whether --enable-keychain was given.
19408 if test "${enable_keychain+set}" = set; then :
19409   enableval=$enable_keychain; enable_keychain=$enableval
19410 else
19411   enable_keychain=yes
19412 fi
19413
19414
19415   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Mac OS KeyChain Services" >&5
19416 $as_echo_n "checking for Mac OS KeyChain Services... " >&6; }
19417
19418   if test "$enable_keychain" = "yes"; then
19419     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19420 /* end confdefs.h.  */
19421
19422       #include <AvailabilityMacros.h>
19423       #if !defined(MAC_OS_X_VERSION_MAX_ALLOWED) \
19424        || !defined(MAC_OS_X_VERSION_10_2) \
19425        || (MAC_OS_X_VERSION_MAX_ALLOWED <= MAC_OS_X_VERSION_10_2)
19426       #error KeyChain API unavailable.
19427       #endif
19428
19429 int
19430 main ()
19431 {
19432
19433   ;
19434   return 0;
19435 }
19436 _ACEOF
19437 if ac_fn_c_try_compile "$LINENO"; then :
19438
19439             LIBS="$LIBS -framework Security"
19440       LIBS="$LIBS -framework CoreServices"
19441
19442 $as_echo "#define SVN_HAVE_KEYCHAIN_SERVICES 1" >>confdefs.h
19443
19444       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19445 $as_echo "yes" >&6; }
19446
19447 else
19448
19449       enable_keychain=no
19450       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19451 $as_echo "no" >&6; }
19452
19453 fi
19454 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19455   fi
19456
19457
19458
19459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether APR has support for DSOs" >&5
19460 $as_echo_n "checking whether APR has support for DSOs... " >&6; }
19461 old_CPPFLAGS="$CPPFLAGS"
19462 CPPFLAGS="$CPPFLAGS $SVN_APR_INCLUDES"
19463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19464 /* end confdefs.h.  */
19465
19466 #include <apr.h>
19467 #if !APR_HAS_DSO
19468 #error
19469 #endif
19470 _ACEOF
19471 if ac_fn_c_try_cpp "$LINENO"; then :
19472   APR_HAS_DSO="yes"
19473   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19474 $as_echo "yes" >&6; }
19475 else
19476   APR_HAS_DSO="no"
19477   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19478 $as_echo "no" >&6; }
19479 fi
19480 rm -f conftest.err conftest.i conftest.$ac_ext
19481 CPPFLAGS="$old_CPPFLAGS"
19482
19483
19484
19485 if test -n "$PKG_CONFIG"; then
19486   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for D-Bus .pc file" >&5
19487 $as_echo_n "checking for D-Bus .pc file... " >&6; }
19488   if $PKG_CONFIG --exists dbus-1; then
19489     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19490 $as_echo "yes" >&6; }
19491     old_CPPFLAGS="$CPPFLAGS"
19492     old_LIBS="$LIBS"
19493     DBUS_CPPFLAGS="`$PKG_CONFIG --cflags dbus-1`"
19494     { $as_echo "$as_me:${as_lineno-$LINENO}: checking D-Bus version" >&5
19495 $as_echo_n "checking D-Bus version... " >&6; }
19496     DBUS_VERSION="`$PKG_CONFIG --modversion dbus-1`"
19497     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBUS_VERSION" >&5
19498 $as_echo "$DBUS_VERSION" >&6; }
19499     # D-Bus 0.* requires DBUS_API_SUBJECT_TO_CHANGE
19500     if test -n "`echo "$DBUS_VERSION" | $EGREP '^0\.[[:digit:]]+'`"; then
19501       DBUS_CPPFLAGS="$DBUS_CPPFLAGS -DDBUS_API_SUBJECT_TO_CHANGE"
19502     fi
19503     DBUS_LIBS="`$PKG_CONFIG --libs dbus-1`"
19504     CPPFLAGS="$CPPFLAGS $DBUS_CPPFLAGS"
19505     LIBS="$LIBS $DBUS_LIBS"
19506     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for D-Bus" >&5
19507 $as_echo_n "checking for D-Bus... " >&6; }
19508     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19509 /* end confdefs.h.  */
19510
19511 #include <dbus/dbus.h>
19512 int main()
19513 {dbus_bus_get(DBUS_BUS_SESSION, NULL);}
19514 _ACEOF
19515 if ac_fn_c_try_link "$LINENO"; then :
19516   HAVE_DBUS="yes"
19517 else
19518   HAVE_DBUS="no"
19519 fi
19520 rm -f core conftest.err conftest.$ac_objext \
19521     conftest$ac_exeext conftest.$ac_ext
19522     if test "$HAVE_DBUS" = "yes"; then
19523       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19524 $as_echo "yes" >&6; }
19525     else
19526       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19527 $as_echo "no" >&6; }
19528     fi
19529     CPPFLAGS="$old_CPPFLAGS"
19530     LIBS="$old_LIBS"
19531   else
19532     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19533 $as_echo "no" >&6; }
19534   fi
19535 fi
19536
19537
19538
19539 # Check whether --with-gpg_agent was given.
19540 if test "${with_gpg_agent+set}" = set; then :
19541   withval=$with_gpg_agent;
19542 else
19543   with_gpg_agent=yes
19544 fi
19545
19546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support GPG-Agent" >&5
19547 $as_echo_n "checking whether to support GPG-Agent... " >&6; }
19548 if test "$with_gpg_agent" = "yes"; then
19549   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19550 $as_echo "yes" >&6; }
19551
19552 $as_echo "#define SVN_HAVE_GPG_AGENT 1" >>confdefs.h
19553
19554 else
19555   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19556 $as_echo "no" >&6; }
19557 fi
19558
19559
19560
19561
19562
19563 # Check whether --with-old_gnome_keyring was given.
19564 if test "${with_old_gnome_keyring+set}" = set; then :
19565   withval=$with_old_gnome_keyring; with_old_gnome_keyring="$withval"
19566 else
19567   with_old_gnome_keyring=no
19568 fi
19569
19570
19571 found_old_gnome_keyring=no
19572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to look for old GNOME Keyring" >&5
19573 $as_echo_n "checking whether to look for old GNOME Keyring... " >&6; }
19574 if test "$with_old_gnome_keyring" != "no"; then
19575   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19576 $as_echo "yes" >&6; }
19577   case "$host" in
19578   *-*-darwin*)
19579     if test "$with_old_gnome_keyring" = "yes"; then
19580       as_fn_error $? "--with-old-gnome-keyring is not supported on Mac OS X." "$LINENO" 5
19581     else
19582       with_old_gnome_keyring=no
19583     fi
19584     ;;
19585   *)
19586     if test "$svn_enable_shared" = "yes"; then
19587       if test "$APR_HAS_DSO" = "yes"; then
19588         if test -n "$PKG_CONFIG"; then
19589           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLib and GNOME Keyring .pc files" >&5
19590 $as_echo_n "checking for GLib and GNOME Keyring .pc files... " >&6; }
19591           if $PKG_CONFIG --exists glib-2.0 gnome-keyring-1; then
19592             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19593 $as_echo "yes" >&6; }
19594             old_CPPFLAGS="$CPPFLAGS"
19595             SVN_GNOME_KEYRING_INCLUDES="`$PKG_CONFIG --cflags glib-2.0 gnome-keyring-1`"
19596             CPPFLAGS="$CPPFLAGS $SVN_GNOME_KEYRING_INCLUDES"
19597             ac_fn_c_check_header_mongrel "$LINENO" "gnome-keyring.h" "ac_cv_header_gnome_keyring_h" "$ac_includes_default"
19598 if test "x$ac_cv_header_gnome_keyring_h" = xyes; then :
19599   found_old_gnome_keyring=yes
19600 else
19601   found_old_gnome_keyring=no
19602 fi
19603
19604
19605             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNOME Keyring" >&5
19606 $as_echo_n "checking for GNOME Keyring... " >&6; }
19607             if test "$found_old_gnome_keyring" = "yes"; then
19608               { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19609 $as_echo "yes" >&6; }
19610
19611 $as_echo "#define SVN_HAVE_GNOME_KEYRING 1" >>confdefs.h
19612
19613               CPPFLAGS="$old_CPPFLAGS"
19614               SVN_GNOME_KEYRING_LIBS="`$PKG_CONFIG --libs glib-2.0 gnome-keyring-1`"
19615             else
19616               { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19617 $as_echo "no" >&6; }
19618               if test "$with_old_gnome_keyring" = "yes"; then
19619                 as_fn_error $? "cannot find GNOME Keyring" "$LINENO" 5
19620               fi
19621             fi
19622           else
19623             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19624 $as_echo "no" >&6; }
19625             if test "$with_old_gnome_keyring" = "yes"; then
19626               as_fn_error $? "cannot find GLib and GNOME Keyring .pc files." "$LINENO" 5
19627             else
19628               with_old_gnome_keyring=no
19629             fi
19630           fi
19631         else
19632           if test "$with_old_gnome_keyring" = "yes"; then
19633             as_fn_error $? "cannot find pkg-config. GNOME Keyring requires this." "$LINENO" 5
19634           else
19635             with_old_gnome_keyring=no
19636           fi
19637         fi
19638       else
19639         if test "$with_old_gnome_keyring" = "yes"; then
19640           as_fn_error $? "APR does not have support for DSOs. GNOME Keyring requires this." "$LINENO" 5
19641         else
19642           with_old_gnome_keyring=no
19643         fi
19644       fi
19645     else
19646       if test "$with_old_gnome_keyring" = "yes"; then
19647         as_fn_error $? "--with-old-gnome-keyring conflicts with --disable-shared" "$LINENO" 5
19648       else
19649         with_old_gnome_keyring=no
19650       fi
19651     fi
19652     ;;
19653   esac
19654 else
19655   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19656 $as_echo "no" >&6; }
19657 fi
19658
19659
19660
19661
19662
19663 # Check whether --with-gnome_keyring was given.
19664 if test "${with_gnome_keyring+set}" = set; then :
19665   withval=$with_gnome_keyring; with_gnome_keyring="$withval"
19666 else
19667   with_gnome_keyring=auto
19668 fi
19669
19670
19671   found_gnome_keyring="no"
19672   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to look for GNOME Keyring" >&5
19673 $as_echo_n "checking whether to look for GNOME Keyring... " >&6; }
19674   if test "$found_old_gnome_keyring" = "yes" && test "$with_gnome_keyring" = "auto"; then
19675     with_gnome_keyring="no"
19676   fi
19677   if test "$with_gnome_keyring" != "no"; then
19678     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19679 $as_echo "yes" >&6; }
19680     case "$host" in
19681     *-*-darwin*)
19682       if test "$with_gnome_keyring" = "yes"; then
19683         as_fn_error $? "--with-gnome-keyring is not supported on Mac OS X." "$LINENO" 5
19684       fi
19685       ;;
19686     *)
19687       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNOME Keyring" >&5
19688 $as_echo_n "checking for GNOME Keyring... " >&6; }
19689       if test "$found_old_gnome_keyring" = "no"; then
19690         if test "$svn_enable_shared" = "yes"; then
19691           if test "$APR_HAS_DSO" = "yes"; then
19692             if test -n "$PKG_CONFIG"; then
19693               if $PKG_CONFIG --exists libsecret-1; then
19694                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19695 $as_echo "yes" >&6; }
19696
19697 $as_echo "#define SVN_HAVE_LIBSECRET 1" >>confdefs.h
19698
19699                 SVN_GNOME_KEYRING_INCLUDES="`$PKG_CONFIG --cflags libsecret-1`"
19700                 SVN_GNOME_KEYRING_LIBS="`$PKG_CONFIG --libs libsecret-1`"
19701                 found_gnome_keyring="yes"
19702               else
19703                 if test "$with_gnome_keyring" = "yes"; then
19704                   as_fn_error $? "cannot find libsecret" "$LINENO" 5
19705                 fi
19706               fi
19707             else
19708               if test "$with_gnome_keyring" = "yes"; then
19709                 as_fn_error $? "cannot find pkg-config" "$LINENO" 5
19710               fi
19711             fi
19712           else
19713             if test "$with_gnome_keyring" = "yes"; then
19714               as_fn_error $? "APR does not support DSOs" "$LINENO" 5
19715             fi
19716           fi
19717         else
19718           if test "$with_gnome_keyring" = "yes"; then
19719             as_fn_error $? "--with-gnome-keyring conflicts with --disable-shared" "$LINENO" 5
19720           fi
19721         fi
19722       else
19723         if test "$with_gnome_keyring" = "yes"; then
19724           as_fn_error $? "--with-gnome-keyring conflicts with --with-old-gnome-keyring" "$LINENO" 5
19725         fi
19726       fi
19727       if test "$found_gnome_keyring" = "no"; then
19728         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19729 $as_echo "no" >&6; }
19730       fi
19731       ;;
19732     esac
19733   else
19734     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19735 $as_echo "no" >&6; }
19736   fi
19737
19738
19739
19740
19741 # Check whether --enable-googlemock was given.
19742 if test "${enable_googlemock+set}" = set; then :
19743   enableval=$enable_googlemock;
19744 else
19745   enable_googlemock=yes
19746 fi
19747
19748
19749 GOOGLEMOCK_SRCDIR=$abs_srcdir/googlemock
19750
19751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether use Googlemock" >&5
19752 $as_echo_n "checking whether use Googlemock... " >&6; }
19753 if test "$enable_googlemock" != "no"; then
19754   if test -d "$GOOGLEMOCK_SRCDIR"; then
19755     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19756 $as_echo "yes" >&6; }
19757     SVN_USE_GOOGLEMOCK=true
19758   else
19759     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19760 $as_echo "no" >&6; }
19761     SVN_USE_GOOGLEMOCK=false
19762   fi
19763 else
19764   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19765 $as_echo "no" >&6; }
19766   SVN_USE_GOOGLEMOCK=false
19767 fi
19768
19769
19770 # Check whether --enable-ev2-impl was given.
19771 if test "${enable_ev2_impl+set}" = set; then :
19772   enableval=$enable_ev2_impl; enable_ev2_impl=$enableval
19773 else
19774   enable_ev2_impl=no
19775 fi
19776
19777 if test "$enable_ev2_impl" = "yes"; then
19778
19779 $as_echo "#define ENABLE_EV2_IMPL 1" >>confdefs.h
19780
19781 fi
19782
19783
19784
19785 # Check whether --enable-nls was given.
19786 if test "${enable_nls+set}" = set; then :
19787   enableval=$enable_nls; enable_nls=$enableval
19788 else
19789   enable_nls=yes
19790 fi
19791
19792
19793 USE_NLS="no"
19794 SVN_INTL_LIBS=""
19795 if test "$enable_nls" = "yes"; then
19796     # Extract the first word of "msgfmt", so it can be a program name with args.
19797 set dummy msgfmt; ac_word=$2
19798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19799 $as_echo_n "checking for $ac_word... " >&6; }
19800 if ${ac_cv_path_MSGFMT+:} false; then :
19801   $as_echo_n "(cached) " >&6
19802 else
19803   case $MSGFMT in
19804   [\\/]* | ?:[\\/]*)
19805   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
19806   ;;
19807   *)
19808   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19809 for as_dir in $PATH
19810 do
19811   IFS=$as_save_IFS
19812   test -z "$as_dir" && as_dir=.
19813     for ac_exec_ext in '' $ac_executable_extensions; do
19814   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19815     ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
19816     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19817     break 2
19818   fi
19819 done
19820   done
19821 IFS=$as_save_IFS
19822
19823   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="none"
19824   ;;
19825 esac
19826 fi
19827 MSGFMT=$ac_cv_path_MSGFMT
19828 if test -n "$MSGFMT"; then
19829   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
19830 $as_echo "$MSGFMT" >&6; }
19831 else
19832   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19833 $as_echo "no" >&6; }
19834 fi
19835
19836
19837   # Extract the first word of "msgmerge", so it can be a program name with args.
19838 set dummy msgmerge; ac_word=$2
19839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19840 $as_echo_n "checking for $ac_word... " >&6; }
19841 if ${ac_cv_path_MSGMERGE+:} false; then :
19842   $as_echo_n "(cached) " >&6
19843 else
19844   case $MSGMERGE in
19845   [\\/]* | ?:[\\/]*)
19846   ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
19847   ;;
19848   *)
19849   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19850 for as_dir in $PATH
19851 do
19852   IFS=$as_save_IFS
19853   test -z "$as_dir" && as_dir=.
19854     for ac_exec_ext in '' $ac_executable_extensions; do
19855   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19856     ac_cv_path_MSGMERGE="$as_dir/$ac_word$ac_exec_ext"
19857     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19858     break 2
19859   fi
19860 done
19861   done
19862 IFS=$as_save_IFS
19863
19864   test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE="none"
19865   ;;
19866 esac
19867 fi
19868 MSGMERGE=$ac_cv_path_MSGMERGE
19869 if test -n "$MSGMERGE"; then
19870   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
19871 $as_echo "$MSGMERGE" >&6; }
19872 else
19873   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19874 $as_echo "no" >&6; }
19875 fi
19876
19877
19878   # Extract the first word of "xgettext", so it can be a program name with args.
19879 set dummy xgettext; ac_word=$2
19880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19881 $as_echo_n "checking for $ac_word... " >&6; }
19882 if ${ac_cv_path_XGETTEXT+:} false; then :
19883   $as_echo_n "(cached) " >&6
19884 else
19885   case $XGETTEXT in
19886   [\\/]* | ?:[\\/]*)
19887   ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
19888   ;;
19889   *)
19890   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19891 for as_dir in $PATH
19892 do
19893   IFS=$as_save_IFS
19894   test -z "$as_dir" && as_dir=.
19895     for ac_exec_ext in '' $ac_executable_extensions; do
19896   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19897     ac_cv_path_XGETTEXT="$as_dir/$ac_word$ac_exec_ext"
19898     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19899     break 2
19900   fi
19901 done
19902   done
19903 IFS=$as_save_IFS
19904
19905   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT="none"
19906   ;;
19907 esac
19908 fi
19909 XGETTEXT=$ac_cv_path_XGETTEXT
19910 if test -n "$XGETTEXT"; then
19911   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
19912 $as_echo "$XGETTEXT" >&6; }
19913 else
19914   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19915 $as_echo "no" >&6; }
19916 fi
19917
19918
19919   if test "$MSGFMT" != "none"; then
19920     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing bindtextdomain" >&5
19921 $as_echo_n "checking for library containing bindtextdomain... " >&6; }
19922 if ${ac_cv_search_bindtextdomain+:} false; then :
19923   $as_echo_n "(cached) " >&6
19924 else
19925   ac_func_search_save_LIBS=$LIBS
19926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19927 /* end confdefs.h.  */
19928
19929 /* Override any GCC internal prototype to avoid an error.
19930    Use char because int might match the return type of a GCC
19931    builtin and then its argument prototype would still apply.  */
19932 #ifdef __cplusplus
19933 extern "C"
19934 #endif
19935 char bindtextdomain ();
19936 int
19937 main ()
19938 {
19939 return bindtextdomain ();
19940   ;
19941   return 0;
19942 }
19943 _ACEOF
19944 for ac_lib in '' intl; do
19945   if test -z "$ac_lib"; then
19946     ac_res="none required"
19947   else
19948     ac_res=-l$ac_lib
19949     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
19950   fi
19951   if ac_fn_c_try_link "$LINENO"; then :
19952   ac_cv_search_bindtextdomain=$ac_res
19953 fi
19954 rm -f core conftest.err conftest.$ac_objext \
19955     conftest$ac_exeext
19956   if ${ac_cv_search_bindtextdomain+:} false; then :
19957   break
19958 fi
19959 done
19960 if ${ac_cv_search_bindtextdomain+:} false; then :
19961
19962 else
19963   ac_cv_search_bindtextdomain=no
19964 fi
19965 rm conftest.$ac_ext
19966 LIBS=$ac_func_search_save_LIBS
19967 fi
19968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_bindtextdomain" >&5
19969 $as_echo "$ac_cv_search_bindtextdomain" >&6; }
19970 ac_res=$ac_cv_search_bindtextdomain
19971 if test "$ac_res" != no; then :
19972   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19973
19974                       # in case libintl needs to be linked explicitly,
19975                       # $ac_cv_search_bindtextdomain contains -l linker flags
19976                       if echo "$ac_cv_search_bindtextdomain" | grep '^-l' >/dev/null
19977                       then
19978                         SVN_INTL_LIBS="$ac_cv_search_bindtextdomain"
19979                       fi
19980
19981 else
19982
19983                     enable_nls="no"
19984
19985 fi
19986
19987     if test "$enable_nls" = "no"; then
19988       # Destroy the cached result so we can test again
19989       unset ac_cv_search_bindtextdomain
19990       # On some systems, libintl needs libiconv to link properly,
19991       # so try again with -liconv.
19992       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing bindtextdomain" >&5
19993 $as_echo_n "checking for library containing bindtextdomain... " >&6; }
19994 if ${ac_cv_search_bindtextdomain+:} false; then :
19995   $as_echo_n "(cached) " >&6
19996 else
19997   ac_func_search_save_LIBS=$LIBS
19998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19999 /* end confdefs.h.  */
20000
20001 /* Override any GCC internal prototype to avoid an error.
20002    Use char because int might match the return type of a GCC
20003    builtin and then its argument prototype would still apply.  */
20004 #ifdef __cplusplus
20005 extern "C"
20006 #endif
20007 char bindtextdomain ();
20008 int
20009 main ()
20010 {
20011 return bindtextdomain ();
20012   ;
20013   return 0;
20014 }
20015 _ACEOF
20016 for ac_lib in '' intl; do
20017   if test -z "$ac_lib"; then
20018     ac_res="none required"
20019   else
20020     ac_res=-l$ac_lib
20021     LIBS="-l$ac_lib -liconv $ac_func_search_save_LIBS"
20022   fi
20023   if ac_fn_c_try_link "$LINENO"; then :
20024   ac_cv_search_bindtextdomain=$ac_res
20025 fi
20026 rm -f core conftest.err conftest.$ac_objext \
20027     conftest$ac_exeext
20028   if ${ac_cv_search_bindtextdomain+:} false; then :
20029   break
20030 fi
20031 done
20032 if ${ac_cv_search_bindtextdomain+:} false; then :
20033
20034 else
20035   ac_cv_search_bindtextdomain=no
20036 fi
20037 rm conftest.$ac_ext
20038 LIBS=$ac_func_search_save_LIBS
20039 fi
20040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_bindtextdomain" >&5
20041 $as_echo "$ac_cv_search_bindtextdomain" >&6; }
20042 ac_res=$ac_cv_search_bindtextdomain
20043 if test "$ac_res" != no; then :
20044   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20045
20046                       enable_nls="yes"
20047                       if echo "$ac_cv_search_bindtextdomain" | grep '^-l' >/dev/null
20048                       then
20049                         SVN_INTL_LIBS="$ac_cv_search_bindtextdomain"
20050                       fi
20051                       # This is here so that -liconv ends up in LIBS
20052                       # if it worked with -liconv.
20053                       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libiconv_open in -liconv" >&5
20054 $as_echo_n "checking for libiconv_open in -liconv... " >&6; }
20055 if ${ac_cv_lib_iconv_libiconv_open+:} false; then :
20056   $as_echo_n "(cached) " >&6
20057 else
20058   ac_check_lib_save_LIBS=$LIBS
20059 LIBS="-liconv  $LIBS"
20060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20061 /* end confdefs.h.  */
20062
20063 /* Override any GCC internal prototype to avoid an error.
20064    Use char because int might match the return type of a GCC
20065    builtin and then its argument prototype would still apply.  */
20066 #ifdef __cplusplus
20067 extern "C"
20068 #endif
20069 char libiconv_open ();
20070 int
20071 main ()
20072 {
20073 return libiconv_open ();
20074   ;
20075   return 0;
20076 }
20077 _ACEOF
20078 if ac_fn_c_try_link "$LINENO"; then :
20079   ac_cv_lib_iconv_libiconv_open=yes
20080 else
20081   ac_cv_lib_iconv_libiconv_open=no
20082 fi
20083 rm -f core conftest.err conftest.$ac_objext \
20084     conftest$ac_exeext conftest.$ac_ext
20085 LIBS=$ac_check_lib_save_LIBS
20086 fi
20087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_iconv_libiconv_open" >&5
20088 $as_echo "$ac_cv_lib_iconv_libiconv_open" >&6; }
20089 if test "x$ac_cv_lib_iconv_libiconv_open" = xyes; then :
20090   cat >>confdefs.h <<_ACEOF
20091 #define HAVE_LIBICONV 1
20092 _ACEOF
20093
20094   LIBS="-liconv $LIBS"
20095
20096 fi
20097
20098
20099 else
20100
20101                       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: bindtextdomain() not found.  Disabling NLS." >&5
20102 $as_echo "$as_me: WARNING: bindtextdomain() not found.  Disabling NLS." >&2;}
20103                       enable_nls="no"
20104
20105 fi
20106
20107     fi
20108     if test "$enable_nls" = "yes"; then
20109
20110 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
20111
20112       USE_NLS="yes"
20113     fi
20114   fi
20115 fi
20116
20117
20118
20119
20120
20121 GETTEXT_CODESET=\#
20122 NO_GETTEXT_CODESET=\#
20123 if test $USE_NLS = "yes"; then
20124    for ac_func in bind_textdomain_codeset
20125 do :
20126   ac_fn_c_check_func "$LINENO" "bind_textdomain_codeset" "ac_cv_func_bind_textdomain_codeset"
20127 if test "x$ac_cv_func_bind_textdomain_codeset" = xyes; then :
20128   cat >>confdefs.h <<_ACEOF
20129 #define HAVE_BIND_TEXTDOMAIN_CODESET 1
20130 _ACEOF
20131   GETTEXT_CODESET=""
20132 else
20133    NO_GETTEXT_CODESET=""
20134 fi
20135 done
20136
20137 fi
20138
20139
20140
20141 # Check if we are using GNU gettext.
20142 GNU_GETTEXT=no
20143 MSGFMTFLAGS=''
20144 if test $USE_NLS = "yes"; then
20145    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we are using GNU gettext" >&5
20146 $as_echo_n "checking if we are using GNU gettext... " >&6; }
20147    if $MSGFMT --version 2>&1 | $EGREP GNU > /dev/null; then
20148       GNU_GETTEXT=yes
20149       MSGFMTFLAGS='-c'
20150    fi
20151    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNU_GETTEXT" >&5
20152 $as_echo "$GNU_GETTEXT" >&6; }
20153 fi
20154
20155
20156
20157 libmagic_found=no
20158
20159
20160 # Check whether --with-libmagic was given.
20161 if test "${with_libmagic+set}" = set; then :
20162   withval=$with_libmagic;
20163   if test "$withval" = "yes" ; then
20164     ac_fn_c_check_header_mongrel "$LINENO" "magic.h" "ac_cv_header_magic_h" "$ac_includes_default"
20165 if test "x$ac_cv_header_magic_h" = xyes; then :
20166
20167       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for magic_open in -lmagic" >&5
20168 $as_echo_n "checking for magic_open in -lmagic... " >&6; }
20169 if ${ac_cv_lib_magic_magic_open+:} false; then :
20170   $as_echo_n "(cached) " >&6
20171 else
20172   ac_check_lib_save_LIBS=$LIBS
20173 LIBS="-lmagic  $LIBS"
20174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20175 /* end confdefs.h.  */
20176
20177 /* Override any GCC internal prototype to avoid an error.
20178    Use char because int might match the return type of a GCC
20179    builtin and then its argument prototype would still apply.  */
20180 #ifdef __cplusplus
20181 extern "C"
20182 #endif
20183 char magic_open ();
20184 int
20185 main ()
20186 {
20187 return magic_open ();
20188   ;
20189   return 0;
20190 }
20191 _ACEOF
20192 if ac_fn_c_try_link "$LINENO"; then :
20193   ac_cv_lib_magic_magic_open=yes
20194 else
20195   ac_cv_lib_magic_magic_open=no
20196 fi
20197 rm -f core conftest.err conftest.$ac_objext \
20198     conftest$ac_exeext conftest.$ac_ext
20199 LIBS=$ac_check_lib_save_LIBS
20200 fi
20201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_magic_magic_open" >&5
20202 $as_echo "$ac_cv_lib_magic_magic_open" >&6; }
20203 if test "x$ac_cv_lib_magic_magic_open" = xyes; then :
20204   libmagic_found="builtin"
20205 fi
20206
20207
20208 fi
20209
20210
20211     libmagic_prefix="the default locations"
20212   elif test "$withval" != "no"; then
20213     libmagic_prefix=$withval
20214     save_cppflags="$CPPFLAGS"
20215     CPPFLAGS="$CPPFLAGS -I$libmagic_prefix/include"
20216     for ac_header in magic.h
20217 do :
20218   ac_fn_c_check_header_mongrel "$LINENO" "magic.h" "ac_cv_header_magic_h" "$ac_includes_default"
20219 if test "x$ac_cv_header_magic_h" = xyes; then :
20220   cat >>confdefs.h <<_ACEOF
20221 #define HAVE_MAGIC_H 1
20222 _ACEOF
20223
20224       save_ldflags="$LDFLAGS"
20225       LDFLAGS="-L$libmagic_prefix/lib $LDFLAGS"
20226       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for magic_open in -lmagic" >&5
20227 $as_echo_n "checking for magic_open in -lmagic... " >&6; }
20228 if ${ac_cv_lib_magic_magic_open+:} false; then :
20229   $as_echo_n "(cached) " >&6
20230 else
20231   ac_check_lib_save_LIBS=$LIBS
20232 LIBS="-lmagic  $LIBS"
20233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20234 /* end confdefs.h.  */
20235
20236 /* Override any GCC internal prototype to avoid an error.
20237    Use char because int might match the return type of a GCC
20238    builtin and then its argument prototype would still apply.  */
20239 #ifdef __cplusplus
20240 extern "C"
20241 #endif
20242 char magic_open ();
20243 int
20244 main ()
20245 {
20246 return magic_open ();
20247   ;
20248   return 0;
20249 }
20250 _ACEOF
20251 if ac_fn_c_try_link "$LINENO"; then :
20252   ac_cv_lib_magic_magic_open=yes
20253 else
20254   ac_cv_lib_magic_magic_open=no
20255 fi
20256 rm -f core conftest.err conftest.$ac_objext \
20257     conftest$ac_exeext conftest.$ac_ext
20258 LIBS=$ac_check_lib_save_LIBS
20259 fi
20260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_magic_magic_open" >&5
20261 $as_echo "$ac_cv_lib_magic_magic_open" >&6; }
20262 if test "x$ac_cv_lib_magic_magic_open" = xyes; then :
20263   libmagic_found="yes"
20264 fi
20265
20266       LDFLAGS="$save_ldflags"
20267
20268 fi
20269
20270 done
20271
20272     CPPFLAGS="$save_cppflags"
20273   fi
20274   if test "$withval" != "no" && test "$libmagic_found" = "no"; then
20275     as_fn_error $? "--with-libmagic requested, but libmagic not found at $libmagic_prefix" "$LINENO" 5
20276   fi
20277
20278 else
20279
20280   ac_fn_c_check_header_mongrel "$LINENO" "magic.h" "ac_cv_header_magic_h" "$ac_includes_default"
20281 if test "x$ac_cv_header_magic_h" = xyes; then :
20282
20283     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for magic_open in -lmagic" >&5
20284 $as_echo_n "checking for magic_open in -lmagic... " >&6; }
20285 if ${ac_cv_lib_magic_magic_open+:} false; then :
20286   $as_echo_n "(cached) " >&6
20287 else
20288   ac_check_lib_save_LIBS=$LIBS
20289 LIBS="-lmagic  $LIBS"
20290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20291 /* end confdefs.h.  */
20292
20293 /* Override any GCC internal prototype to avoid an error.
20294    Use char because int might match the return type of a GCC
20295    builtin and then its argument prototype would still apply.  */
20296 #ifdef __cplusplus
20297 extern "C"
20298 #endif
20299 char magic_open ();
20300 int
20301 main ()
20302 {
20303 return magic_open ();
20304   ;
20305   return 0;
20306 }
20307 _ACEOF
20308 if ac_fn_c_try_link "$LINENO"; then :
20309   ac_cv_lib_magic_magic_open=yes
20310 else
20311   ac_cv_lib_magic_magic_open=no
20312 fi
20313 rm -f core conftest.err conftest.$ac_objext \
20314     conftest$ac_exeext conftest.$ac_ext
20315 LIBS=$ac_check_lib_save_LIBS
20316 fi
20317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_magic_magic_open" >&5
20318 $as_echo "$ac_cv_lib_magic_magic_open" >&6; }
20319 if test "x$ac_cv_lib_magic_magic_open" = xyes; then :
20320   libmagic_found="builtin"
20321 fi
20322
20323
20324 fi
20325
20326
20327
20328 fi
20329
20330
20331 if test "$libmagic_found" != "no"; then
20332
20333 $as_echo "#define SVN_HAVE_LIBMAGIC 1" >>confdefs.h
20334
20335   SVN_MAGIC_LIBS="-lmagic"
20336 fi
20337
20338 if test "$libmagic_found" = "yes"; then
20339   SVN_MAGIC_INCLUDES="-I$libmagic_prefix/include"
20340   LDFLAGS="$LDFLAGS `
20341   input_flags="-L$libmagic_prefix/lib"
20342   output_flags=""
20343   filtered_dirs="/lib /lib64 /usr/lib /usr/lib64"
20344   for flag in $input_flags; do
20345     filter="no"
20346     for dir in $filtered_dirs; do
20347       if test "$flag" = "-L$dir" || test "$flag" = "-L$dir/"; then
20348         filter="yes"
20349         break
20350       fi
20351     done
20352     if test "$filter" = "no"; then
20353       output_flags="$output_flags $flag"
20354     fi
20355   done
20356   if test -n "$output_flags"; then
20357     printf "%s" "${output_flags# }"
20358   fi
20359 `"
20360 fi
20361
20362
20363
20364
20365
20366
20367 # Check whether --with-kwallet was given.
20368 if test "${with_kwallet+set}" = set; then :
20369   withval=$with_kwallet; svn_lib_kwallet="$withval"
20370 else
20371   svn_lib_kwallet=no
20372 fi
20373
20374
20375   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to look for KWallet" >&5
20376 $as_echo_n "checking whether to look for KWallet... " >&6; }
20377   if test "$svn_lib_kwallet" != "no"; then
20378     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20379 $as_echo "yes" >&6; }
20380     case "$host" in
20381     *-*-darwin*)
20382       as_fn_error $? "--with-kwallet is not supported on Mac OS X." "$LINENO" 5
20383       ;;
20384     *)
20385       if test "$svn_enable_shared" = "yes"; then
20386         if test "$APR_HAS_DSO" = "yes"; then
20387           if test -n "$PKG_CONFIG"; then
20388             if test "$HAVE_DBUS" = "yes"; then
20389               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Qt" >&5
20390 $as_echo_n "checking for Qt... " >&6; }
20391               if $PKG_CONFIG --exists Qt5Core Qt5DBus Qt5Gui; then
20392                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, Qt5" >&5
20393 $as_echo "yes, Qt5" >&6; }
20394                 qt_pkg_config_names="Qt5Core Qt5DBus Qt5Gui"
20395                 kde_config_name="kf5-config"
20396                 kde_inc_names="KF5/KWallet KF5/KCoreAddons KF5/KI18n"
20397                 kde_lib_names="-lKF5Wallet -lKF5I18n -lKF5CoreAddons -lQt5Gui -lQt5DBus -lQt5Core"
20398               elif $PKG_CONFIG --exists QtCore QtDBus QtGui; then
20399                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, Qt4" >&5
20400 $as_echo "yes, Qt4" >&6; }
20401                 qt_pkg_config_names="QtCore QtDBus QtGui"
20402                 kde_config_name="kde4-config"
20403                 kde_inc_names="/"
20404                 kde_lib_names="-lkdeui -lkdecore -lQtGui -lQtDBus -lQtCore"
20405               fi
20406               if test -n "$qt_pkg_config_names"; then
20407                 if test "$svn_lib_kwallet" != "yes"; then
20408                   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $kde_config_name" >&5
20409 $as_echo_n "checking for $kde_config_name... " >&6; }
20410                   KDE_CONFIG="$svn_lib_kwallet/bin/$kde_config_name"
20411                   if test -f "$KDE_CONFIG" && test -x "$KDE_CONFIG"; then
20412                     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20413 $as_echo "yes" >&6; }
20414                   else
20415                     if echo "$svn_lib_kwallet" | $EGREP ":" > /dev/null; then
20416                       { $as_echo "$as_me:${as_lineno-$LINENO}: result: unneeded" >&5
20417 $as_echo "unneeded" >&6; }
20418                       KDE_CONFIG="unneeded"
20419                       kde_incdir="`echo "$svn_lib_kwallet" | $SED -e "s/:.*//"`"
20420                       kde_libdir="`echo "$svn_lib_kwallet" | $SED -e "s/.*://"`"
20421                     else
20422                       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20423 $as_echo "no" >&6; }
20424                       KDE_CONFIG=""
20425                     fi
20426                   fi
20427                 else
20428                   # Extract the first word of "$kde_config_name", so it can be a program name with args.
20429 set dummy $kde_config_name; ac_word=$2
20430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20431 $as_echo_n "checking for $ac_word... " >&6; }
20432 if ${ac_cv_path_KDE_CONFIG+:} false; then :
20433   $as_echo_n "(cached) " >&6
20434 else
20435   case $KDE_CONFIG in
20436   [\\/]* | ?:[\\/]*)
20437   ac_cv_path_KDE_CONFIG="$KDE_CONFIG" # Let the user override the test with a path.
20438   ;;
20439   *)
20440   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20441 for as_dir in $PATH
20442 do
20443   IFS=$as_save_IFS
20444   test -z "$as_dir" && as_dir=.
20445     for ac_exec_ext in '' $ac_executable_extensions; do
20446   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20447     ac_cv_path_KDE_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20448     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20449     break 2
20450   fi
20451 done
20452   done
20453 IFS=$as_save_IFS
20454
20455   ;;
20456 esac
20457 fi
20458 KDE_CONFIG=$ac_cv_path_KDE_CONFIG
20459 if test -n "$KDE_CONFIG"; then
20460   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $KDE_CONFIG" >&5
20461 $as_echo "$KDE_CONFIG" >&6; }
20462 else
20463   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20464 $as_echo "no" >&6; }
20465 fi
20466
20467
20468                   if test -n "$KDE_CONFIG"; then
20469                     kde_incdir="`$KDE_CONFIG --install include`"
20470                     kde_libdir="`$KDE_CONFIG --install lib`"
20471                   fi
20472                 fi
20473                 if test -n "$KDE_CONFIG"; then
20474                   if test $kde_config_name = "kf5-config"; then
20475
20476   CXXFLAGS_KEEP="$CXXFLAGS"
20477   CXXFLAGS=""
20478
20479   if test "$GXX" = "yes"; then
20480
20481   _svn_xxflags__save="$CXXFLAGS"
20482   ac_ext=cpp
20483 ac_cpp='$CXXCPP $CPPFLAGS'
20484 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20485 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20486 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20487
20488   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CXX accepts -std=c++11" >&5
20489 $as_echo_n "checking if $CXX accepts -std=c++11... " >&6; }
20490   CXXFLAGS="-std=c++11 $CXXFLAGS"
20491         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20492 /* end confdefs.h.  */
20493 int main(){}
20494 _ACEOF
20495 if ac_fn_cxx_try_link "$LINENO"; then :
20496
20497     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20498 $as_echo "yes" >&6; }
20499
20500
20501 else
20502
20503     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20504 $as_echo "no" >&6; }
20505     CXXFLAGS="$_svn_xxflags__save"
20506
20507
20508 fi
20509 rm -f core conftest.err conftest.$ac_objext \
20510     conftest$ac_exeext conftest.$ac_ext
20511   ac_ext=c
20512 ac_cpp='$CPP $CPPFLAGS'
20513 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20514 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20515 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20516
20517
20518   fi
20519
20520   CXXMODEFLAGS="$CXXFLAGS"
20521   CXXFLAGS="$CXXFLAGS_KEEP"
20522
20523
20524                   fi
20525                   old_CXXFLAGS="$CXXFLAGS"
20526                   old_LDFLAGS="$LDFLAGS"
20527                   old_LIBS="$LIBS"
20528                                     CXXFLAGS="$CXXFLAGS $CXXMODEFLAGS"
20529                   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for KWallet" >&5
20530 $as_echo_n "checking for KWallet... " >&6; }
20531                   for d in `$PKG_CONFIG --cflags $qt_pkg_config_names`; do
20532                     if test -n "`echo "$d" | $EGREP -- '^-D[^[:space:]]*'`"; then
20533                       CPPFLAGS="$CPPFLAGS $d"
20534                     fi
20535                   done
20536                   qt_include_dirs="`$PKG_CONFIG --cflags-only-I $qt_pkg_config_names`"
20537                   for kde_inc_name in $kde_inc_names; do
20538                     kde_kwallet_includes="$kde_kwallet_includes -I$kde_incdir/$kde_inc_name"
20539                   done
20540                   SVN_KWALLET_INCLUDES="$DBUS_CPPFLAGS $qt_include_dirs $kde_kwallet_includes"
20541                   qt_libs_other_options="`$PKG_CONFIG --libs-only-other $qt_pkg_config_names`"
20542                   SVN_KWALLET_LIBS="$DBUS_LIBS $kde_lib_names $qt_libs_other_options"
20543                   CXXFLAGS="$CXXFLAGS $SVN_KWALLET_INCLUDES -fPIC"
20544                   LIBS="$LIBS $SVN_KWALLET_LIBS"
20545                   qt_lib_dirs="`$PKG_CONFIG --libs-only-L $qt_pkg_config_names`"
20546                   LDFLAGS="$old_LDFLAGS `
20547   input_flags="$qt_lib_dirs -L$kde_libdir"
20548   output_flags=""
20549   filtered_dirs="/lib /lib64 /usr/lib /usr/lib64"
20550   for flag in $input_flags; do
20551     filter="no"
20552     for dir in $filtered_dirs; do
20553       if test "$flag" = "-L$dir" || test "$flag" = "-L$dir/"; then
20554         filter="yes"
20555         break
20556       fi
20557     done
20558     if test "$filter" = "no"; then
20559       output_flags="$output_flags $flag"
20560     fi
20561   done
20562   if test -n "$output_flags"; then
20563     printf "%s" "${output_flags# }"
20564   fi
20565 `"
20566                   ac_ext=cpp
20567 ac_cpp='$CXXCPP $CPPFLAGS'
20568 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20569 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20570 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20571
20572                   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20573 /* end confdefs.h.  */
20574
20575 #include <kwallet.h>
20576 int main()
20577 {KWallet::Wallet::walletList();}
20578 _ACEOF
20579 if ac_fn_cxx_try_link "$LINENO"; then :
20580   svn_lib_kwallet="yes"
20581 else
20582   svn_lib_kwallet="no"
20583 fi
20584 rm -f core conftest.err conftest.$ac_objext \
20585     conftest$ac_exeext conftest.$ac_ext
20586                   ac_ext=c
20587 ac_cpp='$CPP $CPPFLAGS'
20588 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20589 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20590 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20591
20592                   if test "$svn_lib_kwallet" = "yes"; then
20593                     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20594 $as_echo "yes" >&6; }
20595                     CXXFLAGS="$old_CXXFLAGS"
20596                     LIBS="$old_LIBS"
20597                     if test "$kde_config_name" = "kf5-config"; then
20598
20599 $as_echo "#define SVN_HAVE_KF5 1" >>confdefs.h
20600
20601                     fi
20602                   else
20603                     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20604 $as_echo "no" >&6; }
20605                     as_fn_error $? "cannot find KWallet" "$LINENO" 5
20606                   fi
20607                 else
20608                   as_fn_error $? "cannot find $kde_config_name" "$LINENO" 5
20609                 fi
20610               else
20611                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20612 $as_echo "no" >&6; }
20613                 as_fn_error $? "cannot find Qt" "$LINENO" 5
20614               fi
20615             else
20616               as_fn_error $? "cannot find D-Bus" "$LINENO" 5
20617             fi
20618           else
20619             as_fn_error $? "cannot find pkg-config" "$LINENO" 5
20620           fi
20621         else
20622           as_fn_error $? "APR does not have support for DSOs" "$LINENO" 5
20623         fi
20624       else
20625         as_fn_error $? "--with-kwallet conflicts with --disable-shared" "$LINENO" 5
20626       fi
20627     ;;
20628     esac
20629   else
20630     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20631 $as_echo "no" >&6; }
20632   fi
20633
20634
20635
20636
20637 if test "$svn_lib_kwallet" = "yes"; then
20638
20639 $as_echo "#define SVN_HAVE_KWALLET 1" >>confdefs.h
20640
20641 fi
20642
20643 # Check whether --enable-plaintext-password-storage was given.
20644 if test "${enable_plaintext_password_storage+set}" = set; then :
20645   enableval=$enable_plaintext_password_storage;
20646    if test "$enableval" = "no"; then
20647       { $as_echo "$as_me:${as_lineno-$LINENO}: Disabling plaintext password/passphrase storage" >&5
20648 $as_echo "$as_me: Disabling plaintext password/passphrase storage" >&6;}
20649
20650 $as_echo "#define SVN_DISABLE_PLAINTEXT_PASSWORD_STORAGE 1" >>confdefs.h
20651
20652    fi
20653
20654 fi
20655
20656
20657
20658 INSTALL_STATIC_RULES="install-bin install-docs"
20659 INSTALL_RULES="install-fsmod-lib install-ramod-lib install-lib install-include install-static"
20660 INSTALL_RULES="$INSTALL_RULES $INSTALL_APACHE_RULE"
20661 BUILD_RULES="fsmod-lib ramod-lib lib bin test sub-test $BUILD_APACHE_RULE tools"
20662
20663 if test "$svn_lib_berkeley_db" = "yes"; then
20664   BUILD_RULES="$BUILD_RULES bdb-lib bdb-test"
20665   INSTALL_RULES="`echo $INSTALL_RULES | $SED 's/install-fsmod-lib/install-fsmod-lib install-bdb-lib/'`"
20666   INSTALL_STATIC_RULES="$INSTALL_STATIC_RULES install-bdb-lib"
20667   BDB_TEST_DEPS="\$(BDB_TEST_DEPS)"
20668   BDB_TEST_PROGRAMS="\$(BDB_TEST_PROGRAMS)"
20669 fi
20670
20671 if test "$svn_lib_serf" = "yes"; then
20672   BUILD_RULES="$BUILD_RULES serf-lib"
20673   INSTALL_RULES="`echo $INSTALL_RULES | $SED 's/install-ramod-lib/install-ramod-lib install-serf-lib/'`"
20674   INSTALL_STATIC_RULES="$INSTALL_STATIC_RULES install-serf-lib"
20675 fi
20676
20677 if test "$svn_lib_kwallet" = "yes"; then
20678   BUILD_RULES="$BUILD_RULES kwallet-lib"
20679   INSTALL_RULES="`echo $INSTALL_RULES | $SED 's/install-lib/install-lib install-kwallet-lib/'`"
20680   INSTALL_STATIC_RULES="$INSTALL_STATIC_RULES install-kwallet-lib"
20681 fi
20682
20683 if test "$found_old_gnome_keyring" = "yes" || test "$found_gnome_keyring" = "yes"; then
20684   BUILD_RULES="$BUILD_RULES gnome-keyring-lib"
20685   INSTALL_RULES="`echo $INSTALL_RULES | $SED 's/install-lib/install-lib install-gnome-keyring-lib/'`"
20686   INSTALL_STATIC_RULES="$INSTALL_STATIC_RULES install-gnome-keyring-lib"
20687 fi
20688
20689 if test "$USE_NLS" = "yes"; then
20690   BUILD_RULES="$BUILD_RULES locale"
20691   INSTALL_RULES="$INSTALL_RULES install-locale"
20692 fi
20693
20694
20695
20696
20697
20698
20699
20700
20701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
20702 $as_echo_n "checking for ANSI C header files... " >&6; }
20703 if ${ac_cv_header_stdc+:} false; then :
20704   $as_echo_n "(cached) " >&6
20705 else
20706   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20707 /* end confdefs.h.  */
20708 #include <stdlib.h>
20709 #include <stdarg.h>
20710 #include <string.h>
20711 #include <float.h>
20712
20713 int
20714 main ()
20715 {
20716
20717   ;
20718   return 0;
20719 }
20720 _ACEOF
20721 if ac_fn_c_try_compile "$LINENO"; then :
20722   ac_cv_header_stdc=yes
20723 else
20724   ac_cv_header_stdc=no
20725 fi
20726 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20727
20728 if test $ac_cv_header_stdc = yes; then
20729   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
20730   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20731 /* end confdefs.h.  */
20732 #include <string.h>
20733
20734 _ACEOF
20735 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20736   $EGREP "memchr" >/dev/null 2>&1; then :
20737
20738 else
20739   ac_cv_header_stdc=no
20740 fi
20741 rm -f conftest*
20742
20743 fi
20744
20745 if test $ac_cv_header_stdc = yes; then
20746   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
20747   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20748 /* end confdefs.h.  */
20749 #include <stdlib.h>
20750
20751 _ACEOF
20752 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20753   $EGREP "free" >/dev/null 2>&1; then :
20754
20755 else
20756   ac_cv_header_stdc=no
20757 fi
20758 rm -f conftest*
20759
20760 fi
20761
20762 if test $ac_cv_header_stdc = yes; then
20763   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
20764   if test "$cross_compiling" = yes; then :
20765   :
20766 else
20767   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20768 /* end confdefs.h.  */
20769 #include <ctype.h>
20770 #include <stdlib.h>
20771 #if ((' ' & 0x0FF) == 0x020)
20772 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
20773 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
20774 #else
20775 # define ISLOWER(c) \
20776                    (('a' <= (c) && (c) <= 'i') \
20777                      || ('j' <= (c) && (c) <= 'r') \
20778                      || ('s' <= (c) && (c) <= 'z'))
20779 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
20780 #endif
20781
20782 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
20783 int
20784 main ()
20785 {
20786   int i;
20787   for (i = 0; i < 256; i++)
20788     if (XOR (islower (i), ISLOWER (i))
20789         || toupper (i) != TOUPPER (i))
20790       return 2;
20791   return 0;
20792 }
20793 _ACEOF
20794 if ac_fn_c_try_run "$LINENO"; then :
20795
20796 else
20797   ac_cv_header_stdc=no
20798 fi
20799 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20800   conftest.$ac_objext conftest.beam conftest.$ac_ext
20801 fi
20802
20803 fi
20804 fi
20805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
20806 $as_echo "$ac_cv_header_stdc" >&6; }
20807 if test $ac_cv_header_stdc = yes; then
20808
20809 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
20810
20811 fi
20812
20813
20814
20815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
20816 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
20817 if ${ac_cv_c_const+:} false; then :
20818   $as_echo_n "(cached) " >&6
20819 else
20820   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20821 /* end confdefs.h.  */
20822
20823 int
20824 main ()
20825 {
20826
20827 #ifndef __cplusplus
20828   /* Ultrix mips cc rejects this sort of thing.  */
20829   typedef int charset[2];
20830   const charset cs = { 0, 0 };
20831   /* SunOS 4.1.1 cc rejects this.  */
20832   char const *const *pcpcc;
20833   char **ppc;
20834   /* NEC SVR4.0.2 mips cc rejects this.  */
20835   struct point {int x, y;};
20836   static struct point const zero = {0,0};
20837   /* AIX XL C 1.02.0.0 rejects this.
20838      It does not let you subtract one const X* pointer from another in
20839      an arm of an if-expression whose if-part is not a constant
20840      expression */
20841   const char *g = "string";
20842   pcpcc = &g + (g ? g-g : 0);
20843   /* HPUX 7.0 cc rejects these. */
20844   ++pcpcc;
20845   ppc = (char**) pcpcc;
20846   pcpcc = (char const *const *) ppc;
20847   { /* SCO 3.2v4 cc rejects this sort of thing.  */
20848     char tx;
20849     char *t = &tx;
20850     char const *s = 0 ? (char *) 0 : (char const *) 0;
20851
20852     *t++ = 0;
20853     if (s) return 0;
20854   }
20855   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
20856     int x[] = {25, 17};
20857     const int *foo = &x[0];
20858     ++foo;
20859   }
20860   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
20861     typedef const int *iptr;
20862     iptr p = 0;
20863     ++p;
20864   }
20865   { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
20866        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
20867     struct s { int j; const int *ap[3]; } bx;
20868     struct s *b = &bx; b->j = 5;
20869   }
20870   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
20871     const int foo = 10;
20872     if (!foo) return 0;
20873   }
20874   return !cs[0] && !zero.x;
20875 #endif
20876
20877   ;
20878   return 0;
20879 }
20880 _ACEOF
20881 if ac_fn_c_try_compile "$LINENO"; then :
20882   ac_cv_c_const=yes
20883 else
20884   ac_cv_c_const=no
20885 fi
20886 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20887 fi
20888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
20889 $as_echo "$ac_cv_c_const" >&6; }
20890 if test $ac_cv_c_const = no; then
20891
20892 $as_echo "#define const /**/" >>confdefs.h
20893
20894 fi
20895
20896
20897 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
20898 if test "x$ac_cv_type_size_t" = xyes; then :
20899
20900 else
20901
20902 cat >>confdefs.h <<_ACEOF
20903 #define size_t unsigned int
20904 _ACEOF
20905
20906 fi
20907
20908
20909
20910
20911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
20912 $as_echo_n "checking for working memcmp... " >&6; }
20913 if ${ac_cv_func_memcmp_working+:} false; then :
20914   $as_echo_n "(cached) " >&6
20915 else
20916   if test "$cross_compiling" = yes; then :
20917   ac_cv_func_memcmp_working=no
20918 else
20919   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20920 /* end confdefs.h.  */
20921 $ac_includes_default
20922 int
20923 main ()
20924 {
20925
20926   /* Some versions of memcmp are not 8-bit clean.  */
20927   char c0 = '\100', c1 = '\200', c2 = '\201';
20928   if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
20929     return 1;
20930
20931   /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
20932      or more and with at least one buffer not starting on a 4-byte boundary.
20933      William Lewis provided this test program.   */
20934   {
20935     char foo[21];
20936     char bar[21];
20937     int i;
20938     for (i = 0; i < 4; i++)
20939       {
20940         char *a = foo + i;
20941         char *b = bar + i;
20942         strcpy (a, "--------01111111");
20943         strcpy (b, "--------10000000");
20944         if (memcmp (a, b, 16) >= 0)
20945           return 1;
20946       }
20947     return 0;
20948   }
20949
20950   ;
20951   return 0;
20952 }
20953 _ACEOF
20954 if ac_fn_c_try_run "$LINENO"; then :
20955   ac_cv_func_memcmp_working=yes
20956 else
20957   ac_cv_func_memcmp_working=no
20958 fi
20959 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20960   conftest.$ac_objext conftest.beam conftest.$ac_ext
20961 fi
20962
20963 fi
20964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
20965 $as_echo "$ac_cv_func_memcmp_working" >&6; }
20966 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
20967   *" memcmp.$ac_objext "* ) ;;
20968   *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
20969  ;;
20970 esac
20971
20972
20973
20974 for ac_func in vprintf
20975 do :
20976   ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
20977 if test "x$ac_cv_func_vprintf" = xyes; then :
20978   cat >>confdefs.h <<_ACEOF
20979 #define HAVE_VPRINTF 1
20980 _ACEOF
20981
20982 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
20983 if test "x$ac_cv_func__doprnt" = xyes; then :
20984
20985 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
20986
20987 fi
20988
20989 fi
20990 done
20991
20992
20993
20994 for ac_func in symlink readlink
20995 do :
20996   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20997 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20998 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
20999   cat >>confdefs.h <<_ACEOF
21000 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21001 _ACEOF
21002
21003 fi
21004 done
21005
21006
21007 for ac_header in sys/utsname.h
21008 do :
21009   ac_fn_c_check_header_mongrel "$LINENO" "sys/utsname.h" "ac_cv_header_sys_utsname_h" "$ac_includes_default"
21010 if test "x$ac_cv_header_sys_utsname_h" = xyes; then :
21011   cat >>confdefs.h <<_ACEOF
21012 #define HAVE_SYS_UTSNAME_H 1
21013 _ACEOF
21014  for ac_func in uname
21015 do :
21016   ac_fn_c_check_func "$LINENO" "uname" "ac_cv_func_uname"
21017 if test "x$ac_cv_func_uname" = xyes; then :
21018   cat >>confdefs.h <<_ACEOF
21019 #define HAVE_UNAME 1
21020 _ACEOF
21021
21022 fi
21023 done
21024
21025 fi
21026
21027 done
21028
21029
21030 ac_fn_c_check_header_mongrel "$LINENO" "termios.h" "ac_cv_header_termios_h" "$ac_includes_default"
21031 if test "x$ac_cv_header_termios_h" = xyes; then :
21032
21033   for ac_func in tcgetattr tcsetattr
21034 do :
21035   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21036 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21037 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
21038   cat >>confdefs.h <<_ACEOF
21039 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21040 _ACEOF
21041
21042
21043 $as_echo "#define HAVE_TERMIOS_H 1" >>confdefs.h
21044
21045
21046 fi
21047 done
21048
21049
21050 fi
21051
21052
21053
21054
21055 # Check whether --enable-debug was given.
21056 if test "${enable_debug+set}" = set; then :
21057   enableval=$enable_debug;
21058     if test "$enableval" = "yes" ; then
21059       enable_debugging="yes"
21060     else
21061       enable_debugging="no"
21062     fi
21063
21064 else
21065
21066     # Neither --enable-debug nor --disable-debug was passed.
21067     enable_debugging="maybe"
21068
21069 fi
21070
21071
21072 # Check whether --enable-optimize was given.
21073 if test "${enable_optimize+set}" = set; then :
21074   enableval=$enable_optimize;
21075     if test "$enableval" = "yes" ; then
21076       enable_optimization="yes"
21077     else
21078       enable_optimization="no"
21079     fi
21080
21081 else
21082
21083     # Neither --enable-optimize nor --disable-optimize was passed.
21084     enable_optimization="maybe"
21085
21086 fi
21087
21088
21089 # Check whether --enable-disallowing-of-undefined-references was given.
21090 if test "${enable_disallowing_of_undefined_references+set}" = set; then :
21091   enableval=$enable_disallowing_of_undefined_references;
21092 fi
21093
21094 if test "$enable_disallowing_of_undefined_references" != "yes" && test "`uname`" != "Linux"; then
21095   enable_disallowing_of_undefined_references="no"
21096 fi
21097 if test "$enable_disallowing_of_undefined_references" != "no"; then
21098   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -Wl,--no-undefined" >&5
21099 $as_echo_n "checking for -Wl,--no-undefined... " >&6; }
21100   old_LDFLAGS="$LDFLAGS"
21101   LDFLAGS="$LDFLAGS -Wl,--no-undefined"
21102   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21103 /* end confdefs.h.  */
21104 int main(){;}
21105 _ACEOF
21106 if ac_fn_c_try_link "$LINENO"; then :
21107   svn_wl_no_undefined="yes"
21108 else
21109   svn_wl_no_undefined="no"
21110 fi
21111 rm -f core conftest.err conftest.$ac_objext \
21112     conftest$ac_exeext conftest.$ac_ext
21113   LDFLAGS="$old_LDFLAGS"
21114   if test "$svn_wl_no_undefined" = "yes"; then
21115     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21116 $as_echo "yes" >&6; }
21117     for library_dir in "$abs_srcdir/subversion/libsvn_"*; do
21118       eval "`basename $library_dir`_LDFLAGS=-Wl,--no-undefined"
21119     done
21120     shared_only_LDFLAGS="-Wl,--no-undefined"
21121   else
21122     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21123 $as_echo "no" >&6; }
21124     if test "$enable_disallowing_of_undefined_references" = "yes"; then
21125       as_fn_error $? "--enable-disallowing-of-undefined-references explicitly requested, but -Wl,--no-undefined not supported" "$LINENO" 5
21126     fi
21127   fi
21128 fi
21129
21130
21131
21132
21133
21134
21135
21136
21137
21138
21139
21140
21141
21142
21143
21144
21145
21146 # Check whether --enable-maintainer-mode was given.
21147 if test "${enable_maintainer_mode+set}" = set; then :
21148   enableval=$enable_maintainer_mode;
21149     if test "$enableval" = "yes" ; then
21150       if test "$enable_debugging" = "no" ; then
21151         as_fn_error $? "Can't have --disable-debug and --enable-maintainer-mode" "$LINENO" 5
21152       fi
21153       enable_debugging=yes
21154
21155                   if test "$GCC" = "yes"; then
21156         { $as_echo "$as_me:${as_lineno-$LINENO}: maintainer-mode: adding GCC warning flags" >&5
21157 $as_echo "$as_me: maintainer-mode: adding GCC warning flags" >&6;}
21158
21159
21160                 CFLAGS_KEEP="$CFLAGS"
21161         CFLAGS=""
21162
21163
21164   _svn_xxflags__save="$CFLAGS"
21165   ac_ext=c
21166 ac_cpp='$CPP $CPPFLAGS'
21167 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21168 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21169 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21170
21171   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -Werror=implicit-function-declaration" >&5
21172 $as_echo_n "checking if $CC accepts -Werror=implicit-function-declaration... " >&6; }
21173   CFLAGS="-Werror=implicit-function-declaration $CFLAGS"
21174         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21175 /* end confdefs.h.  */
21176 int main(void){return 0;}
21177 _ACEOF
21178 if ac_fn_c_try_link "$LINENO"; then :
21179
21180     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21181 $as_echo "yes" >&6; }
21182
21183
21184 else
21185
21186     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21187 $as_echo "no" >&6; }
21188     CFLAGS="$_svn_xxflags__save"
21189
21190
21191 fi
21192 rm -f core conftest.err conftest.$ac_objext \
21193     conftest$ac_exeext conftest.$ac_ext
21194   ac_ext=c
21195 ac_cpp='$CPP $CPPFLAGS'
21196 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21197 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21198 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21199
21200
21201
21202   _svn_xxflags__save="$CFLAGS"
21203   ac_ext=c
21204 ac_cpp='$CPP $CPPFLAGS'
21205 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21206 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21207 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21208
21209   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -Werror=declaration-after-statement" >&5
21210 $as_echo_n "checking if $CC accepts -Werror=declaration-after-statement... " >&6; }
21211   CFLAGS="-Werror=declaration-after-statement $CFLAGS"
21212         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21213 /* end confdefs.h.  */
21214 int main(void){return 0;}
21215 _ACEOF
21216 if ac_fn_c_try_link "$LINENO"; then :
21217
21218     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21219 $as_echo "yes" >&6; }
21220
21221
21222 else
21223
21224     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21225 $as_echo "no" >&6; }
21226     CFLAGS="$_svn_xxflags__save"
21227
21228
21229 fi
21230 rm -f core conftest.err conftest.$ac_objext \
21231     conftest$ac_exeext conftest.$ac_ext
21232   ac_ext=c
21233 ac_cpp='$CPP $CPPFLAGS'
21234 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21235 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21236 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21237
21238
21239
21240   _svn_xxflags__save="$CFLAGS"
21241   ac_ext=c
21242 ac_cpp='$CPP $CPPFLAGS'
21243 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21244 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21245 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21246
21247   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -Wextra-tokens" >&5
21248 $as_echo_n "checking if $CC accepts -Wextra-tokens... " >&6; }
21249   CFLAGS="-Wextra-tokens $CFLAGS"
21250         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21251 /* end confdefs.h.  */
21252 int main(void){return 0;}
21253 _ACEOF
21254 if ac_fn_c_try_link "$LINENO"; then :
21255
21256     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21257 $as_echo "yes" >&6; }
21258
21259
21260 else
21261
21262     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21263 $as_echo "no" >&6; }
21264     CFLAGS="$_svn_xxflags__save"
21265
21266
21267 fi
21268 rm -f core conftest.err conftest.$ac_objext \
21269     conftest$ac_exeext conftest.$ac_ext
21270   ac_ext=c
21271 ac_cpp='$CPP $CPPFLAGS'
21272 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21273 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21274 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21275
21276
21277
21278   _svn_xxflags__save="$CFLAGS"
21279   ac_ext=c
21280 ac_cpp='$CPP $CPPFLAGS'
21281 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21282 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21283 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21284
21285   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -Wnewline-eof" >&5
21286 $as_echo_n "checking if $CC accepts -Wnewline-eof... " >&6; }
21287   CFLAGS="-Wnewline-eof $CFLAGS"
21288         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21289 /* end confdefs.h.  */
21290 int main(void){return 0;}
21291 _ACEOF
21292 if ac_fn_c_try_link "$LINENO"; then :
21293
21294     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21295 $as_echo "yes" >&6; }
21296
21297
21298 else
21299
21300     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21301 $as_echo "no" >&6; }
21302     CFLAGS="$_svn_xxflags__save"
21303
21304
21305 fi
21306 rm -f core conftest.err conftest.$ac_objext \
21307     conftest$ac_exeext conftest.$ac_ext
21308   ac_ext=c
21309 ac_cpp='$CPP $CPPFLAGS'
21310 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21311 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21312 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21313
21314
21315
21316   _svn_xxflags__save="$CFLAGS"
21317   ac_ext=c
21318 ac_cpp='$CPP $CPPFLAGS'
21319 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21320 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21321 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21322
21323   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -Wshorten-64-to-32" >&5
21324 $as_echo_n "checking if $CC accepts -Wshorten-64-to-32... " >&6; }
21325   CFLAGS="-Wshorten-64-to-32 $CFLAGS"
21326         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21327 /* end confdefs.h.  */
21328 int main(void){return 0;}
21329 _ACEOF
21330 if ac_fn_c_try_link "$LINENO"; then :
21331
21332     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21333 $as_echo "yes" >&6; }
21334
21335
21336 else
21337
21338     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21339 $as_echo "no" >&6; }
21340     CFLAGS="$_svn_xxflags__save"
21341
21342
21343 fi
21344 rm -f core conftest.err conftest.$ac_objext \
21345     conftest$ac_exeext conftest.$ac_ext
21346   ac_ext=c
21347 ac_cpp='$CPP $CPPFLAGS'
21348 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21349 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21350 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21351
21352
21353
21354   _svn_xxflags__save="$CFLAGS"
21355   ac_ext=c
21356 ac_cpp='$CPP $CPPFLAGS'
21357 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21358 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21359 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21360
21361   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -Wold-style-definition" >&5
21362 $as_echo_n "checking if $CC accepts -Wold-style-definition... " >&6; }
21363   CFLAGS="-Wold-style-definition $CFLAGS"
21364         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21365 /* end confdefs.h.  */
21366 int main(void){return 0;}
21367 _ACEOF
21368 if ac_fn_c_try_link "$LINENO"; then :
21369
21370     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21371 $as_echo "yes" >&6; }
21372
21373
21374 else
21375
21376     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21377 $as_echo "no" >&6; }
21378     CFLAGS="$_svn_xxflags__save"
21379
21380
21381 fi
21382 rm -f core conftest.err conftest.$ac_objext \
21383     conftest$ac_exeext conftest.$ac_ext
21384   ac_ext=c
21385 ac_cpp='$CPP $CPPFLAGS'
21386 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21387 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21388 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21389
21390
21391
21392   _svn_xxflags__save="$CFLAGS"
21393   ac_ext=c
21394 ac_cpp='$CPP $CPPFLAGS'
21395 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21396 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21397 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21398
21399   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -Wno-system-headers" >&5
21400 $as_echo_n "checking if $CC accepts -Wno-system-headers... " >&6; }
21401   CFLAGS="-Wno-system-headers $CFLAGS"
21402         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21403 /* end confdefs.h.  */
21404 int main(void){return 0;}
21405 _ACEOF
21406 if ac_fn_c_try_link "$LINENO"; then :
21407
21408     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21409 $as_echo "yes" >&6; }
21410
21411
21412 else
21413
21414     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21415 $as_echo "no" >&6; }
21416     CFLAGS="$_svn_xxflags__save"
21417
21418
21419 fi
21420 rm -f core conftest.err conftest.$ac_objext \
21421     conftest$ac_exeext conftest.$ac_ext
21422   ac_ext=c
21423 ac_cpp='$CPP $CPPFLAGS'
21424 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21425 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21426 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21427
21428
21429
21430   _svn_xxflags__save="$CFLAGS"
21431   ac_ext=c
21432 ac_cpp='$CPP $CPPFLAGS'
21433 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21434 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21435 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21436
21437   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -Wno-format-nonliteral" >&5
21438 $as_echo_n "checking if $CC accepts -Wno-format-nonliteral... " >&6; }
21439   CFLAGS="-Wno-format-nonliteral $CFLAGS"
21440         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21441 /* end confdefs.h.  */
21442 int main(void){return 0;}
21443 _ACEOF
21444 if ac_fn_c_try_link "$LINENO"; then :
21445
21446     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21447 $as_echo "yes" >&6; }
21448
21449
21450 else
21451
21452     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21453 $as_echo "no" >&6; }
21454     CFLAGS="$_svn_xxflags__save"
21455
21456
21457 fi
21458 rm -f core conftest.err conftest.$ac_objext \
21459     conftest$ac_exeext conftest.$ac_ext
21460   ac_ext=c
21461 ac_cpp='$CPP $CPPFLAGS'
21462 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21463 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21464 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21465
21466
21467
21468   _svn_xxflags__save="$CFLAGS"
21469   ac_ext=c
21470 ac_cpp='$CPP $CPPFLAGS'
21471 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21472 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21473 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21474
21475   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -Wmissing-variable-declarations" >&5
21476 $as_echo_n "checking if $CC accepts -Wmissing-variable-declarations... " >&6; }
21477   CFLAGS="-Wmissing-variable-declarations $CFLAGS"
21478         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21479 /* end confdefs.h.  */
21480 int main(void){return 0;}
21481 _ACEOF
21482 if ac_fn_c_try_link "$LINENO"; then :
21483
21484     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21485 $as_echo "yes" >&6; }
21486
21487
21488 else
21489
21490     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21491 $as_echo "no" >&6; }
21492     CFLAGS="$_svn_xxflags__save"
21493
21494
21495 fi
21496 rm -f core conftest.err conftest.$ac_objext \
21497     conftest$ac_exeext conftest.$ac_ext
21498   ac_ext=c
21499 ac_cpp='$CPP $CPPFLAGS'
21500 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21501 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21502 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21503
21504
21505
21506   _svn_xxflags__save="$CFLAGS"
21507   ac_ext=c
21508 ac_cpp='$CPP $CPPFLAGS'
21509 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21510 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21511 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21512
21513   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -Wno-unused-const-variable" >&5
21514 $as_echo_n "checking if $CC accepts -Wno-unused-const-variable... " >&6; }
21515   CFLAGS="-Wno-unused-const-variable $CFLAGS"
21516         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21517 /* end confdefs.h.  */
21518 int main(void){return 0;}
21519 _ACEOF
21520 if ac_fn_c_try_link "$LINENO"; then :
21521
21522     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21523 $as_echo "yes" >&6; }
21524
21525
21526 else
21527
21528     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21529 $as_echo "no" >&6; }
21530     CFLAGS="$_svn_xxflags__save"
21531
21532
21533 fi
21534 rm -f core conftest.err conftest.$ac_objext \
21535     conftest$ac_exeext conftest.$ac_ext
21536   ac_ext=c
21537 ac_cpp='$CPP $CPPFLAGS'
21538 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21539 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21540 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21541
21542
21543
21544         CMAINTAINERFLAGS="$CFLAGS"
21545         CFLAGS="$CFLAGS_KEEP"
21546
21547                 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"
21548       fi
21549       if test "$GXX" = "yes"; then
21550         { $as_echo "$as_me:${as_lineno-$LINENO}: maintainer-mode: adding G++ warning flags" >&5
21551 $as_echo "$as_me: maintainer-mode: adding G++ warning flags" >&6;}
21552
21553                 CXXFLAGS_KEEP="$CXXFLAGS"
21554         CXXFLAGS=""
21555
21556
21557   _svn_xxflags__save="$CXXFLAGS"
21558   ac_ext=cpp
21559 ac_cpp='$CXXCPP $CPPFLAGS'
21560 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21561 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21562 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21563
21564   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CXX accepts -Wextra-tokens" >&5
21565 $as_echo_n "checking if $CXX accepts -Wextra-tokens... " >&6; }
21566   CXXFLAGS="-Wextra-tokens $CXXFLAGS"
21567         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21568 /* end confdefs.h.  */
21569 int main(){}
21570 _ACEOF
21571 if ac_fn_cxx_try_link "$LINENO"; then :
21572
21573     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21574 $as_echo "yes" >&6; }
21575
21576
21577 else
21578
21579     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21580 $as_echo "no" >&6; }
21581     CXXFLAGS="$_svn_xxflags__save"
21582
21583
21584 fi
21585 rm -f core conftest.err conftest.$ac_objext \
21586     conftest$ac_exeext conftest.$ac_ext
21587   ac_ext=c
21588 ac_cpp='$CPP $CPPFLAGS'
21589 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21590 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21591 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21592
21593
21594
21595   _svn_xxflags__save="$CXXFLAGS"
21596   ac_ext=cpp
21597 ac_cpp='$CXXCPP $CPPFLAGS'
21598 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21599 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21600 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21601
21602   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CXX accepts -Wnewline-eof" >&5
21603 $as_echo_n "checking if $CXX accepts -Wnewline-eof... " >&6; }
21604   CXXFLAGS="-Wnewline-eof $CXXFLAGS"
21605         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21606 /* end confdefs.h.  */
21607 int main(){}
21608 _ACEOF
21609 if ac_fn_cxx_try_link "$LINENO"; then :
21610
21611     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21612 $as_echo "yes" >&6; }
21613
21614
21615 else
21616
21617     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21618 $as_echo "no" >&6; }
21619     CXXFLAGS="$_svn_xxflags__save"
21620
21621
21622 fi
21623 rm -f core conftest.err conftest.$ac_objext \
21624     conftest$ac_exeext conftest.$ac_ext
21625   ac_ext=c
21626 ac_cpp='$CPP $CPPFLAGS'
21627 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21628 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21629 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21630
21631
21632
21633   _svn_xxflags__save="$CXXFLAGS"
21634   ac_ext=cpp
21635 ac_cpp='$CXXCPP $CPPFLAGS'
21636 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21637 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21638 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21639
21640   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CXX accepts -Wshorten-64-to-32" >&5
21641 $as_echo_n "checking if $CXX accepts -Wshorten-64-to-32... " >&6; }
21642   CXXFLAGS="-Wshorten-64-to-32 $CXXFLAGS"
21643         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21644 /* end confdefs.h.  */
21645 int main(){}
21646 _ACEOF
21647 if ac_fn_cxx_try_link "$LINENO"; then :
21648
21649     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21650 $as_echo "yes" >&6; }
21651
21652
21653 else
21654
21655     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21656 $as_echo "no" >&6; }
21657     CXXFLAGS="$_svn_xxflags__save"
21658
21659
21660 fi
21661 rm -f core conftest.err conftest.$ac_objext \
21662     conftest$ac_exeext conftest.$ac_ext
21663   ac_ext=c
21664 ac_cpp='$CPP $CPPFLAGS'
21665 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21666 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21667 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21668
21669
21670
21671   _svn_xxflags__save="$CXXFLAGS"
21672   ac_ext=cpp
21673 ac_cpp='$CXXCPP $CPPFLAGS'
21674 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21675 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21676 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21677
21678   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CXX accepts -Wno-system-headers" >&5
21679 $as_echo_n "checking if $CXX accepts -Wno-system-headers... " >&6; }
21680   CXXFLAGS="-Wno-system-headers $CXXFLAGS"
21681         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21682 /* end confdefs.h.  */
21683 int main(){}
21684 _ACEOF
21685 if ac_fn_cxx_try_link "$LINENO"; then :
21686
21687     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21688 $as_echo "yes" >&6; }
21689
21690
21691 else
21692
21693     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21694 $as_echo "no" >&6; }
21695     CXXFLAGS="$_svn_xxflags__save"
21696
21697
21698 fi
21699 rm -f core conftest.err conftest.$ac_objext \
21700     conftest$ac_exeext conftest.$ac_ext
21701   ac_ext=c
21702 ac_cpp='$CPP $CPPFLAGS'
21703 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21704 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21705 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21706
21707
21708
21709         CXXMAINTAINERFLAGS="$CXXFLAGS"
21710         CXXFLAGS="$CXXFLAGS_KEEP"
21711
21712                 CXXMAINTAINERFLAGS="-Wall -Wpointer-arith -Wwrite-strings -Wshadow -Wunused -Wunreachable-code $CXXMAINTAINERFLAGS"
21713       fi
21714     fi
21715
21716 fi
21717
21718
21719 if test "$enable_debugging" = "yes" ; then
21720       if test "$enable_optimization" != "yes"; then
21721     { $as_echo "$as_me:${as_lineno-$LINENO}: Disabling optimizations for debugging" >&5
21722 $as_echo "$as_me: Disabling optimizations for debugging" >&6;}
21723     CFLAGS="`echo $CFLAGS' ' | $SED -e 's/-O[^ ]* //g'`"
21724     CXXFLAGS="`echo $CXXFLAGS' ' | $SED -e 's/-O[^ ]* //g'`"
21725   fi
21726     if test -z "`echo $CUSERFLAGS' ' | $EGREP -- '-g[0-9]? '`"; then
21727     { $as_echo "$as_me:${as_lineno-$LINENO}: Enabling debugging for C" >&5
21728 $as_echo "$as_me: Enabling debugging for C" >&6;}
21729     CFLAGS="`echo $CFLAGS' ' | $SED -e 's/-g[0-9] //g' -e 's/-g //g'`"
21730
21731   _svn_xxflags__save="$CFLAGS"
21732   ac_ext=c
21733 ac_cpp='$CPP $CPPFLAGS'
21734 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21735 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21736 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21737
21738   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -fno-inline" >&5
21739 $as_echo_n "checking if $CC accepts -fno-inline... " >&6; }
21740   CFLAGS="-fno-inline $CFLAGS"
21741         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21742 /* end confdefs.h.  */
21743 int main(void){return 0;}
21744 _ACEOF
21745 if ac_fn_c_try_link "$LINENO"; then :
21746
21747     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21748 $as_echo "yes" >&6; }
21749
21750
21751 else
21752
21753     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21754 $as_echo "no" >&6; }
21755     CFLAGS="$_svn_xxflags__save"
21756
21757
21758 fi
21759 rm -f core conftest.err conftest.$ac_objext \
21760     conftest$ac_exeext conftest.$ac_ext
21761   ac_ext=c
21762 ac_cpp='$CPP $CPPFLAGS'
21763 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21764 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21765 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21766
21767
21768
21769   _svn_xxflags__save="$CFLAGS"
21770   ac_ext=c
21771 ac_cpp='$CPP $CPPFLAGS'
21772 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21773 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21774 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21775
21776   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -fno-omit-frame-pointer" >&5
21777 $as_echo_n "checking if $CC accepts -fno-omit-frame-pointer... " >&6; }
21778   CFLAGS="-fno-omit-frame-pointer $CFLAGS"
21779         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21780 /* end confdefs.h.  */
21781 int main(void){return 0;}
21782 _ACEOF
21783 if ac_fn_c_try_link "$LINENO"; then :
21784
21785     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21786 $as_echo "yes" >&6; }
21787
21788
21789 else
21790
21791     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21792 $as_echo "no" >&6; }
21793     CFLAGS="$_svn_xxflags__save"
21794
21795
21796 fi
21797 rm -f core conftest.err conftest.$ac_objext \
21798     conftest$ac_exeext conftest.$ac_ext
21799   ac_ext=c
21800 ac_cpp='$CPP $CPPFLAGS'
21801 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21802 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21803 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21804
21805
21806
21807   _svn_xxflags__save="$CFLAGS"
21808   ac_ext=c
21809 ac_cpp='$CPP $CPPFLAGS'
21810 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21811 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21812 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21813
21814   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -g3" >&5
21815 $as_echo_n "checking if $CC accepts -g3... " >&6; }
21816   CFLAGS="-g3 $CFLAGS"
21817         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21818 /* end confdefs.h.  */
21819 int main(void){return 0;}
21820 _ACEOF
21821 if ac_fn_c_try_link "$LINENO"; then :
21822
21823     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21824 $as_echo "yes" >&6; }
21825
21826
21827 else
21828
21829     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21830 $as_echo "no" >&6; }
21831     CFLAGS="$_svn_xxflags__save"
21832
21833
21834   _svn_xxflags__save="$CFLAGS"
21835   ac_ext=c
21836 ac_cpp='$CPP $CPPFLAGS'
21837 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21838 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21839 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21840
21841   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -g2" >&5
21842 $as_echo_n "checking if $CC accepts -g2... " >&6; }
21843   CFLAGS="-g2 $CFLAGS"
21844         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21845 /* end confdefs.h.  */
21846 int main(void){return 0;}
21847 _ACEOF
21848 if ac_fn_c_try_link "$LINENO"; then :
21849
21850     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21851 $as_echo "yes" >&6; }
21852
21853
21854 else
21855
21856     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21857 $as_echo "no" >&6; }
21858     CFLAGS="$_svn_xxflags__save"
21859
21860
21861   _svn_xxflags__save="$CFLAGS"
21862   ac_ext=c
21863 ac_cpp='$CPP $CPPFLAGS'
21864 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21865 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21866 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21867
21868   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -g" >&5
21869 $as_echo_n "checking if $CC accepts -g... " >&6; }
21870   CFLAGS="-g $CFLAGS"
21871         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21872 /* end confdefs.h.  */
21873 int main(void){return 0;}
21874 _ACEOF
21875 if ac_fn_c_try_link "$LINENO"; then :
21876
21877     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21878 $as_echo "yes" >&6; }
21879
21880
21881 else
21882
21883     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21884 $as_echo "no" >&6; }
21885     CFLAGS="$_svn_xxflags__save"
21886
21887
21888 fi
21889 rm -f core conftest.err conftest.$ac_objext \
21890     conftest$ac_exeext conftest.$ac_ext
21891   ac_ext=c
21892 ac_cpp='$CPP $CPPFLAGS'
21893 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21894 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21895 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21896
21897
21898
21899 fi
21900 rm -f core conftest.err conftest.$ac_objext \
21901     conftest$ac_exeext conftest.$ac_ext
21902   ac_ext=c
21903 ac_cpp='$CPP $CPPFLAGS'
21904 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21905 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21906 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21907
21908
21909
21910 fi
21911 rm -f core conftest.err conftest.$ac_objext \
21912     conftest$ac_exeext conftest.$ac_ext
21913   ac_ext=c
21914 ac_cpp='$CPP $CPPFLAGS'
21915 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21916 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21917 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21918
21919
21920   fi
21921   if test -z "`echo $CXXUSERFLAGS' ' | $EGREP -- '-g[0-9]? '`"; then
21922     { $as_echo "$as_me:${as_lineno-$LINENO}: Enabling debugging for C++" >&5
21923 $as_echo "$as_me: Enabling debugging for C++" >&6;}
21924     CXXFLAGS="`echo $CXXFLAGS' ' | $SED -e 's/-g[0-9] //g' -e 's/-g //g'`"
21925
21926   _svn_xxflags__save="$CXXFLAGS"
21927   ac_ext=cpp
21928 ac_cpp='$CXXCPP $CPPFLAGS'
21929 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21930 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21931 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21932
21933   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CXX accepts -fno-inline" >&5
21934 $as_echo_n "checking if $CXX accepts -fno-inline... " >&6; }
21935   CXXFLAGS="-fno-inline $CXXFLAGS"
21936         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21937 /* end confdefs.h.  */
21938 int main(){}
21939 _ACEOF
21940 if ac_fn_cxx_try_link "$LINENO"; then :
21941
21942     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21943 $as_echo "yes" >&6; }
21944
21945
21946 else
21947
21948     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21949 $as_echo "no" >&6; }
21950     CXXFLAGS="$_svn_xxflags__save"
21951
21952
21953 fi
21954 rm -f core conftest.err conftest.$ac_objext \
21955     conftest$ac_exeext conftest.$ac_ext
21956   ac_ext=c
21957 ac_cpp='$CPP $CPPFLAGS'
21958 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21959 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21960 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21961
21962
21963
21964   _svn_xxflags__save="$CXXFLAGS"
21965   ac_ext=cpp
21966 ac_cpp='$CXXCPP $CPPFLAGS'
21967 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21968 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21969 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21970
21971   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CXX accepts -fno-omit-frame-pointer" >&5
21972 $as_echo_n "checking if $CXX accepts -fno-omit-frame-pointer... " >&6; }
21973   CXXFLAGS="-fno-omit-frame-pointer $CXXFLAGS"
21974         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21975 /* end confdefs.h.  */
21976 int main(){}
21977 _ACEOF
21978 if ac_fn_cxx_try_link "$LINENO"; then :
21979
21980     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21981 $as_echo "yes" >&6; }
21982
21983
21984 else
21985
21986     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21987 $as_echo "no" >&6; }
21988     CXXFLAGS="$_svn_xxflags__save"
21989
21990
21991 fi
21992 rm -f core conftest.err conftest.$ac_objext \
21993     conftest$ac_exeext conftest.$ac_ext
21994   ac_ext=c
21995 ac_cpp='$CPP $CPPFLAGS'
21996 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21997 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21998 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21999
22000
22001
22002   _svn_xxflags__save="$CXXFLAGS"
22003   ac_ext=cpp
22004 ac_cpp='$CXXCPP $CPPFLAGS'
22005 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22006 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22007 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22008
22009   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CXX accepts -g3" >&5
22010 $as_echo_n "checking if $CXX accepts -g3... " >&6; }
22011   CXXFLAGS="-g3 $CXXFLAGS"
22012         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22013 /* end confdefs.h.  */
22014 int main(){}
22015 _ACEOF
22016 if ac_fn_cxx_try_link "$LINENO"; then :
22017
22018     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22019 $as_echo "yes" >&6; }
22020
22021
22022 else
22023
22024     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22025 $as_echo "no" >&6; }
22026     CXXFLAGS="$_svn_xxflags__save"
22027
22028
22029   _svn_xxflags__save="$CXXFLAGS"
22030   ac_ext=cpp
22031 ac_cpp='$CXXCPP $CPPFLAGS'
22032 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22033 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22034 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22035
22036   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CXX accepts -g2" >&5
22037 $as_echo_n "checking if $CXX accepts -g2... " >&6; }
22038   CXXFLAGS="-g2 $CXXFLAGS"
22039         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22040 /* end confdefs.h.  */
22041 int main(){}
22042 _ACEOF
22043 if ac_fn_cxx_try_link "$LINENO"; then :
22044
22045     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22046 $as_echo "yes" >&6; }
22047
22048
22049 else
22050
22051     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22052 $as_echo "no" >&6; }
22053     CXXFLAGS="$_svn_xxflags__save"
22054
22055
22056   _svn_xxflags__save="$CXXFLAGS"
22057   ac_ext=cpp
22058 ac_cpp='$CXXCPP $CPPFLAGS'
22059 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22060 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22061 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22062
22063   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CXX accepts -g" >&5
22064 $as_echo_n "checking if $CXX accepts -g... " >&6; }
22065   CXXFLAGS="-g $CXXFLAGS"
22066         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22067 /* end confdefs.h.  */
22068 int main(){}
22069 _ACEOF
22070 if ac_fn_cxx_try_link "$LINENO"; then :
22071
22072     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22073 $as_echo "yes" >&6; }
22074
22075
22076 else
22077
22078     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22079 $as_echo "no" >&6; }
22080     CXXFLAGS="$_svn_xxflags__save"
22081
22082
22083 fi
22084 rm -f core conftest.err conftest.$ac_objext \
22085     conftest$ac_exeext conftest.$ac_ext
22086   ac_ext=cpp
22087 ac_cpp='$CXXCPP $CPPFLAGS'
22088 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22089 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22090 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22091
22092
22093
22094 fi
22095 rm -f core conftest.err conftest.$ac_objext \
22096     conftest$ac_exeext conftest.$ac_ext
22097   ac_ext=cpp
22098 ac_cpp='$CXXCPP $CPPFLAGS'
22099 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22100 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22101 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22102
22103
22104
22105 fi
22106 rm -f core conftest.err conftest.$ac_objext \
22107     conftest$ac_exeext conftest.$ac_ext
22108   ac_ext=c
22109 ac_cpp='$CPP $CPPFLAGS'
22110 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22111 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22112 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22113
22114
22115   fi
22116       CFLAGS="$CFLAGS -DSVN_DEBUG -DAP_DEBUG"
22117   CXXFLAGS="$CXXFLAGS -DSVN_DEBUG -DAP_DEBUG"
22118 elif test "$enable_debugging" = "no" ; then
22119   { $as_echo "$as_me:${as_lineno-$LINENO}: Disabling debugging" >&5
22120 $as_echo "$as_me: Disabling debugging" >&6;}
22121   CFLAGS="`echo $CFLAGS' ' | $SED -e 's/-g[0-9] //g' -e 's/-g //g'`"
22122   CXXFLAGS="`echo $CXXFLAGS' ' | $SED -e 's/-g[0-9] //g' -e 's/-g //g'`"
22123     CFLAGS="$CFLAGS -DNDEBUG"
22124   CXXFLAGS="$CXXFLAGS -DNDEBUG"
22125 # elif test "$enable_debugging" = "maybe" ; then
22126 #   # do nothing
22127 fi
22128
22129 if test "$enable_optimization" = "yes"; then
22130     if test -z "`echo $CUSERFLAGS' ' | $EGREP -- '-O[^ ]* '`"; then
22131     CFLAGS="`echo $CFLAGS' ' | $SED -e 's/-O[^ ]* //g'`"
22132     if test "$enable_debugging" = "yes"; then
22133       { $as_echo "$as_me:${as_lineno-$LINENO}: Enabling optimizations for C (with debugging enabled)" >&5
22134 $as_echo "$as_me: Enabling optimizations for C (with debugging enabled)" >&6;}
22135
22136   _svn_xxflags__save="$CFLAGS"
22137   ac_ext=c
22138 ac_cpp='$CPP $CPPFLAGS'
22139 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22140 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22141 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22142
22143   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -O1" >&5
22144 $as_echo_n "checking if $CC accepts -O1... " >&6; }
22145   CFLAGS="-O1 $CFLAGS"
22146         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22147 /* end confdefs.h.  */
22148 int main(void){return 0;}
22149 _ACEOF
22150 if ac_fn_c_try_link "$LINENO"; then :
22151
22152     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22153 $as_echo "yes" >&6; }
22154
22155
22156 else
22157
22158     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22159 $as_echo "no" >&6; }
22160     CFLAGS="$_svn_xxflags__save"
22161
22162
22163   _svn_xxflags__save="$CFLAGS"
22164   ac_ext=c
22165 ac_cpp='$CPP $CPPFLAGS'
22166 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22167 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22168 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22169
22170   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -O" >&5
22171 $as_echo_n "checking if $CC accepts -O... " >&6; }
22172   CFLAGS="-O $CFLAGS"
22173         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22174 /* end confdefs.h.  */
22175 int main(void){return 0;}
22176 _ACEOF
22177 if ac_fn_c_try_link "$LINENO"; then :
22178
22179     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22180 $as_echo "yes" >&6; }
22181
22182
22183 else
22184
22185     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22186 $as_echo "no" >&6; }
22187     CFLAGS="$_svn_xxflags__save"
22188
22189
22190 fi
22191 rm -f core conftest.err conftest.$ac_objext \
22192     conftest$ac_exeext conftest.$ac_ext
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
22200
22201 fi
22202 rm -f core conftest.err conftest.$ac_objext \
22203     conftest$ac_exeext conftest.$ac_ext
22204   ac_ext=c
22205 ac_cpp='$CPP $CPPFLAGS'
22206 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22207 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22208 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22209
22210
22211     else
22212       { $as_echo "$as_me:${as_lineno-$LINENO}: Enabling optimizations for C" >&5
22213 $as_echo "$as_me: Enabling optimizations for C" >&6;}
22214
22215   _svn_xxflags__save="$CFLAGS"
22216   ac_ext=c
22217 ac_cpp='$CPP $CPPFLAGS'
22218 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22219 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22220 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22221
22222   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -O3" >&5
22223 $as_echo_n "checking if $CC accepts -O3... " >&6; }
22224   CFLAGS="-O3 $CFLAGS"
22225         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22226 /* end confdefs.h.  */
22227 int main(void){return 0;}
22228 _ACEOF
22229 if ac_fn_c_try_link "$LINENO"; then :
22230
22231     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22232 $as_echo "yes" >&6; }
22233
22234
22235 else
22236
22237     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22238 $as_echo "no" >&6; }
22239     CFLAGS="$_svn_xxflags__save"
22240
22241
22242   _svn_xxflags__save="$CFLAGS"
22243   ac_ext=c
22244 ac_cpp='$CPP $CPPFLAGS'
22245 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22246 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22247 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22248
22249   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -O2" >&5
22250 $as_echo_n "checking if $CC accepts -O2... " >&6; }
22251   CFLAGS="-O2 $CFLAGS"
22252         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22253 /* end confdefs.h.  */
22254 int main(void){return 0;}
22255 _ACEOF
22256 if ac_fn_c_try_link "$LINENO"; then :
22257
22258     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22259 $as_echo "yes" >&6; }
22260
22261
22262 else
22263
22264     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22265 $as_echo "no" >&6; }
22266     CFLAGS="$_svn_xxflags__save"
22267
22268
22269   _svn_xxflags__save="$CFLAGS"
22270   ac_ext=c
22271 ac_cpp='$CPP $CPPFLAGS'
22272 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22273 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22274 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22275
22276   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -O1" >&5
22277 $as_echo_n "checking if $CC accepts -O1... " >&6; }
22278   CFLAGS="-O1 $CFLAGS"
22279         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22280 /* end confdefs.h.  */
22281 int main(void){return 0;}
22282 _ACEOF
22283 if ac_fn_c_try_link "$LINENO"; then :
22284
22285     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22286 $as_echo "yes" >&6; }
22287
22288
22289 else
22290
22291     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22292 $as_echo "no" >&6; }
22293     CFLAGS="$_svn_xxflags__save"
22294
22295
22296   _svn_xxflags__save="$CFLAGS"
22297   ac_ext=c
22298 ac_cpp='$CPP $CPPFLAGS'
22299 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22300 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22301 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22302
22303   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -O" >&5
22304 $as_echo_n "checking if $CC accepts -O... " >&6; }
22305   CFLAGS="-O $CFLAGS"
22306         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22307 /* end confdefs.h.  */
22308 int main(void){return 0;}
22309 _ACEOF
22310 if ac_fn_c_try_link "$LINENO"; then :
22311
22312     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22313 $as_echo "yes" >&6; }
22314
22315
22316 else
22317
22318     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22319 $as_echo "no" >&6; }
22320     CFLAGS="$_svn_xxflags__save"
22321
22322
22323 fi
22324 rm -f core conftest.err conftest.$ac_objext \
22325     conftest$ac_exeext conftest.$ac_ext
22326   ac_ext=c
22327 ac_cpp='$CPP $CPPFLAGS'
22328 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22329 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22330 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22331
22332
22333
22334 fi
22335 rm -f core conftest.err conftest.$ac_objext \
22336     conftest$ac_exeext conftest.$ac_ext
22337   ac_ext=c
22338 ac_cpp='$CPP $CPPFLAGS'
22339 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22340 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22341 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22342
22343
22344
22345 fi
22346 rm -f core conftest.err conftest.$ac_objext \
22347     conftest$ac_exeext conftest.$ac_ext
22348   ac_ext=c
22349 ac_cpp='$CPP $CPPFLAGS'
22350 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22351 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22352 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22353
22354
22355
22356 fi
22357 rm -f core conftest.err conftest.$ac_objext \
22358     conftest$ac_exeext conftest.$ac_ext
22359   ac_ext=c
22360 ac_cpp='$CPP $CPPFLAGS'
22361 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22362 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22363 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22364
22365
22366
22367   _svn_xxflags__save="$CFLAGS"
22368   ac_ext=c
22369 ac_cpp='$CPP $CPPFLAGS'
22370 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22371 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22372 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22373
22374   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -Wno-clobbered" >&5
22375 $as_echo_n "checking if $CC accepts -Wno-clobbered... " >&6; }
22376   CFLAGS="-Wno-clobbered $CFLAGS"
22377         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22378 /* end confdefs.h.  */
22379 int main(void){return 0;}
22380 _ACEOF
22381 if ac_fn_c_try_link "$LINENO"; then :
22382
22383     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22384 $as_echo "yes" >&6; }
22385
22386
22387 else
22388
22389     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22390 $as_echo "no" >&6; }
22391     CFLAGS="$_svn_xxflags__save"
22392
22393
22394 fi
22395 rm -f core conftest.err conftest.$ac_objext \
22396     conftest$ac_exeext conftest.$ac_ext
22397   ac_ext=c
22398 ac_cpp='$CPP $CPPFLAGS'
22399 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22400 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22401 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22402
22403
22404
22405   _svn_xxflags__save="$CFLAGS"
22406   ac_ext=c
22407 ac_cpp='$CPP $CPPFLAGS'
22408 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22409 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22410 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22411
22412   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -flto" >&5
22413 $as_echo_n "checking if $CC accepts -flto... " >&6; }
22414   CFLAGS="-flto $CFLAGS"
22415         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22416 /* end confdefs.h.  */
22417 int main(void){return 0;}
22418 _ACEOF
22419 if ac_fn_c_try_link "$LINENO"; then :
22420
22421     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22422 $as_echo "yes" >&6; }
22423
22424
22425 else
22426
22427     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22428 $as_echo "no" >&6; }
22429     CFLAGS="$_svn_xxflags__save"
22430
22431
22432 fi
22433 rm -f core conftest.err conftest.$ac_objext \
22434     conftest$ac_exeext conftest.$ac_ext
22435   ac_ext=c
22436 ac_cpp='$CPP $CPPFLAGS'
22437 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22438 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22439 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22440
22441
22442     fi
22443   fi
22444   if test -z "`echo $CXXUSERFLAGS' ' | $EGREP -- '-O[^ ]* '`"; then
22445     CXXFLAGS="`echo $CXXFLAGS' ' | $SED -e 's/-O[^ ]* //g'`"
22446     if test "$enable_debugging" = "yes"; then
22447       { $as_echo "$as_me:${as_lineno-$LINENO}: Enabling optimizations for C++ (with debugging enabled)" >&5
22448 $as_echo "$as_me: Enabling optimizations for C++ (with debugging enabled)" >&6;}
22449
22450   _svn_xxflags__save="$CXXFLAGS"
22451   ac_ext=cpp
22452 ac_cpp='$CXXCPP $CPPFLAGS'
22453 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22454 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22455 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22456
22457   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CXX accepts -O1" >&5
22458 $as_echo_n "checking if $CXX accepts -O1... " >&6; }
22459   CXXFLAGS="-O1 $CXXFLAGS"
22460         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22461 /* end confdefs.h.  */
22462 int main(){}
22463 _ACEOF
22464 if ac_fn_cxx_try_link "$LINENO"; then :
22465
22466     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22467 $as_echo "yes" >&6; }
22468
22469
22470 else
22471
22472     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22473 $as_echo "no" >&6; }
22474     CXXFLAGS="$_svn_xxflags__save"
22475
22476
22477   _svn_xxflags__save="$CXXFLAGS"
22478   ac_ext=cpp
22479 ac_cpp='$CXXCPP $CPPFLAGS'
22480 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22481 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22482 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22483
22484   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CXX accepts -O" >&5
22485 $as_echo_n "checking if $CXX accepts -O... " >&6; }
22486   CXXFLAGS="-O $CXXFLAGS"
22487         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22488 /* end confdefs.h.  */
22489 int main(){}
22490 _ACEOF
22491 if ac_fn_cxx_try_link "$LINENO"; then :
22492
22493     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22494 $as_echo "yes" >&6; }
22495
22496
22497 else
22498
22499     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22500 $as_echo "no" >&6; }
22501     CXXFLAGS="$_svn_xxflags__save"
22502
22503
22504 fi
22505 rm -f core conftest.err conftest.$ac_objext \
22506     conftest$ac_exeext conftest.$ac_ext
22507   ac_ext=cpp
22508 ac_cpp='$CXXCPP $CPPFLAGS'
22509 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22510 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22511 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22512
22513
22514
22515 fi
22516 rm -f core conftest.err conftest.$ac_objext \
22517     conftest$ac_exeext conftest.$ac_ext
22518   ac_ext=c
22519 ac_cpp='$CPP $CPPFLAGS'
22520 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22521 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22522 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22523
22524
22525     else
22526       { $as_echo "$as_me:${as_lineno-$LINENO}: Enabling optimizations for C++" >&5
22527 $as_echo "$as_me: Enabling optimizations for C++" >&6;}
22528
22529   _svn_xxflags__save="$CXXFLAGS"
22530   ac_ext=cpp
22531 ac_cpp='$CXXCPP $CPPFLAGS'
22532 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22533 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22534 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22535
22536   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CXX accepts -O3" >&5
22537 $as_echo_n "checking if $CXX accepts -O3... " >&6; }
22538   CXXFLAGS="-O3 $CXXFLAGS"
22539         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22540 /* end confdefs.h.  */
22541 int main(){}
22542 _ACEOF
22543 if ac_fn_cxx_try_link "$LINENO"; then :
22544
22545     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22546 $as_echo "yes" >&6; }
22547
22548
22549 else
22550
22551     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22552 $as_echo "no" >&6; }
22553     CXXFLAGS="$_svn_xxflags__save"
22554
22555
22556   _svn_xxflags__save="$CXXFLAGS"
22557   ac_ext=cpp
22558 ac_cpp='$CXXCPP $CPPFLAGS'
22559 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22560 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22561 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22562
22563   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CXX accepts -O2" >&5
22564 $as_echo_n "checking if $CXX accepts -O2... " >&6; }
22565   CXXFLAGS="-O2 $CXXFLAGS"
22566         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22567 /* end confdefs.h.  */
22568 int main(){}
22569 _ACEOF
22570 if ac_fn_cxx_try_link "$LINENO"; then :
22571
22572     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22573 $as_echo "yes" >&6; }
22574
22575
22576 else
22577
22578     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22579 $as_echo "no" >&6; }
22580     CXXFLAGS="$_svn_xxflags__save"
22581
22582
22583   _svn_xxflags__save="$CXXFLAGS"
22584   ac_ext=cpp
22585 ac_cpp='$CXXCPP $CPPFLAGS'
22586 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22587 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22588 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22589
22590   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CXX accepts -O1" >&5
22591 $as_echo_n "checking if $CXX accepts -O1... " >&6; }
22592   CXXFLAGS="-O1 $CXXFLAGS"
22593         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22594 /* end confdefs.h.  */
22595 int main(){}
22596 _ACEOF
22597 if ac_fn_cxx_try_link "$LINENO"; then :
22598
22599     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22600 $as_echo "yes" >&6; }
22601
22602
22603 else
22604
22605     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22606 $as_echo "no" >&6; }
22607     CXXFLAGS="$_svn_xxflags__save"
22608
22609
22610   _svn_xxflags__save="$CXXFLAGS"
22611   ac_ext=cpp
22612 ac_cpp='$CXXCPP $CPPFLAGS'
22613 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22614 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22615 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22616
22617   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CXX accepts -O" >&5
22618 $as_echo_n "checking if $CXX accepts -O... " >&6; }
22619   CXXFLAGS="-O $CXXFLAGS"
22620         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22621 /* end confdefs.h.  */
22622 int main(){}
22623 _ACEOF
22624 if ac_fn_cxx_try_link "$LINENO"; then :
22625
22626     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22627 $as_echo "yes" >&6; }
22628
22629
22630 else
22631
22632     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22633 $as_echo "no" >&6; }
22634     CXXFLAGS="$_svn_xxflags__save"
22635
22636
22637 fi
22638 rm -f core conftest.err conftest.$ac_objext \
22639     conftest$ac_exeext conftest.$ac_ext
22640   ac_ext=cpp
22641 ac_cpp='$CXXCPP $CPPFLAGS'
22642 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22643 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22644 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22645
22646
22647
22648 fi
22649 rm -f core conftest.err conftest.$ac_objext \
22650     conftest$ac_exeext conftest.$ac_ext
22651   ac_ext=cpp
22652 ac_cpp='$CXXCPP $CPPFLAGS'
22653 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22654 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22655 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22656
22657
22658
22659 fi
22660 rm -f core conftest.err conftest.$ac_objext \
22661     conftest$ac_exeext conftest.$ac_ext
22662   ac_ext=cpp
22663 ac_cpp='$CXXCPP $CPPFLAGS'
22664 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22665 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22666 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22667
22668
22669
22670 fi
22671 rm -f core conftest.err conftest.$ac_objext \
22672     conftest$ac_exeext conftest.$ac_ext
22673   ac_ext=c
22674 ac_cpp='$CPP $CPPFLAGS'
22675 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22676 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22677 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22678
22679
22680
22681   _svn_xxflags__save="$CXXFLAGS"
22682   ac_ext=cpp
22683 ac_cpp='$CXXCPP $CPPFLAGS'
22684 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22685 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22686 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22687
22688   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CXX accepts -Wno-clobbered" >&5
22689 $as_echo_n "checking if $CXX accepts -Wno-clobbered... " >&6; }
22690   CXXFLAGS="-Wno-clobbered $CXXFLAGS"
22691         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22692 /* end confdefs.h.  */
22693 int main(){}
22694 _ACEOF
22695 if ac_fn_cxx_try_link "$LINENO"; then :
22696
22697     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22698 $as_echo "yes" >&6; }
22699
22700
22701 else
22702
22703     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22704 $as_echo "no" >&6; }
22705     CXXFLAGS="$_svn_xxflags__save"
22706
22707
22708 fi
22709 rm -f core conftest.err conftest.$ac_objext \
22710     conftest$ac_exeext conftest.$ac_ext
22711   ac_ext=c
22712 ac_cpp='$CPP $CPPFLAGS'
22713 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22714 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22715 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22716
22717
22718
22719   _svn_xxflags__save="$CXXFLAGS"
22720   ac_ext=cpp
22721 ac_cpp='$CXXCPP $CPPFLAGS'
22722 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22723 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22724 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22725
22726   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CXX accepts -flto" >&5
22727 $as_echo_n "checking if $CXX accepts -flto... " >&6; }
22728   CXXFLAGS="-flto $CXXFLAGS"
22729         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22730 /* end confdefs.h.  */
22731 int main(){}
22732 _ACEOF
22733 if ac_fn_cxx_try_link "$LINENO"; then :
22734
22735     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22736 $as_echo "yes" >&6; }
22737
22738
22739 else
22740
22741     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22742 $as_echo "no" >&6; }
22743     CXXFLAGS="$_svn_xxflags__save"
22744
22745
22746 fi
22747 rm -f core conftest.err conftest.$ac_objext \
22748     conftest$ac_exeext conftest.$ac_ext
22749   ac_ext=c
22750 ac_cpp='$CPP $CPPFLAGS'
22751 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22752 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22753 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22754
22755
22756     fi
22757   fi
22758 elif test "$enable_optimization" = "no"; then
22759     { $as_echo "$as_me:${as_lineno-$LINENO}: Disabling optimizations" >&5
22760 $as_echo "$as_me: Disabling optimizations" >&6;}
22761   CFLAGS="`echo $CFLAGS' ' | $SED -e 's/-O[^ ]* //g'`"
22762   CXXFLAGS="`echo $CXXFLAGS' ' | $SED -e 's/-O[^ ]* //g'`"
22763 # elif test "$enable_optimization" = "maybe" ; then
22764 #   # do nothing
22765 fi
22766
22767 { $as_echo "$as_me:${as_lineno-$LINENO}: C compiler flags: $CFLAGS" >&5
22768 $as_echo "$as_me: C compiler flags: $CFLAGS" >&6;}
22769 { $as_echo "$as_me:${as_lineno-$LINENO}:     user-defined: $CUSERFLAGS" >&5
22770 $as_echo "$as_me:     user-defined: $CUSERFLAGS" >&6;}
22771 { $as_echo "$as_me:${as_lineno-$LINENO}:  maintainer-mode: $CMAINTAINERFLAGS" >&5
22772 $as_echo "$as_me:  maintainer-mode: $CMAINTAINERFLAGS" >&6;}
22773 { $as_echo "$as_me:${as_lineno-$LINENO}: C++ compiler flags: $CXXFLAGS" >&5
22774 $as_echo "$as_me: C++ compiler flags: $CXXFLAGS" >&6;}
22775 { $as_echo "$as_me:${as_lineno-$LINENO}:       user-defined: $CXXUSERFLAGS" >&5
22776 $as_echo "$as_me:       user-defined: $CXXUSERFLAGS" >&6;}
22777 { $as_echo "$as_me:${as_lineno-$LINENO}:    maintainer-mode: $CXXMAINTAINERFLAGS" >&5
22778 $as_echo "$as_me:    maintainer-mode: $CXXMAINTAINERFLAGS" >&6;}
22779
22780 # Check whether --enable-full-version-match was given.
22781 if test "${enable_full_version_match+set}" = set; then :
22782   enableval=$enable_full_version_match;
22783     if test "$enableval" = "no" ; then
22784       { $as_echo "$as_me:${as_lineno-$LINENO}: Disabling svn full version matching" >&5
22785 $as_echo "$as_me: Disabling svn full version matching" >&6;}
22786
22787 $as_echo "#define SVN_DISABLE_FULL_VERSION_MATCH 1" >>confdefs.h
22788
22789     fi
22790
22791 fi
22792
22793
22794
22795 # Check whether --with-editor was given.
22796 if test "${with_editor+set}" = set; then :
22797   withval=$with_editor;
22798
22799     if test "$withval" = "yes" ; then
22800       as_fn_error $? "--with-editor requires an argument." "$LINENO" 5
22801     else
22802       SVN_CLIENT_EDITOR=$withval
22803
22804 cat >>confdefs.h <<_ACEOF
22805 #define SVN_CLIENT_EDITOR "$SVN_CLIENT_EDITOR"
22806 _ACEOF
22807
22808
22809     fi
22810
22811
22812 fi
22813
22814
22815
22816   zlib_found=no
22817   zlib_skip=no
22818
22819
22820 # Check whether --with-zlib was given.
22821 if test "${with_zlib+set}" = set; then :
22822   withval=$with_zlib;
22823     if test "$withval" = "yes"; then
22824       zlib_skip=no
22825     elif test "$withval" = "no"; then
22826       zlib_skip=yes
22827     else
22828       zlib_skip=no
22829       zlib_prefix="$withval"
22830     fi
22831
22832 fi
22833
22834
22835   if test "$zlib_skip" = "yes"; then
22836     as_fn_error $? "subversion requires zlib" "$LINENO" 5
22837   fi
22838
22839   if test -n "$zlib_prefix"; then
22840     { $as_echo "$as_me:${as_lineno-$LINENO}: zlib library configuration via prefix" >&5
22841 $as_echo "$as_me: zlib library configuration via prefix" >&6;}
22842     save_cppflags="$CPPFLAGS"
22843     CPPFLAGS="$CPPFLAGS -I$zlib_prefix/include"
22844     for ac_header in zlib.h
22845 do :
22846   ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
22847 if test "x$ac_cv_header_zlib_h" = xyes; then :
22848   cat >>confdefs.h <<_ACEOF
22849 #define HAVE_ZLIB_H 1
22850 _ACEOF
22851
22852       save_ldflags="$LDFLAGS"
22853       LDFLAGS="$LDFLAGS -L$zlib_prefix/lib"
22854       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
22855 $as_echo_n "checking for inflate in -lz... " >&6; }
22856 if ${ac_cv_lib_z_inflate+:} false; then :
22857   $as_echo_n "(cached) " >&6
22858 else
22859   ac_check_lib_save_LIBS=$LIBS
22860 LIBS="-lz  $LIBS"
22861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22862 /* end confdefs.h.  */
22863
22864 /* Override any GCC internal prototype to avoid an error.
22865    Use char because int might match the return type of a GCC
22866    builtin and then its argument prototype would still apply.  */
22867 #ifdef __cplusplus
22868 extern "C"
22869 #endif
22870 char inflate ();
22871 int
22872 main ()
22873 {
22874 return inflate ();
22875   ;
22876   return 0;
22877 }
22878 _ACEOF
22879 if ac_fn_c_try_link "$LINENO"; then :
22880   ac_cv_lib_z_inflate=yes
22881 else
22882   ac_cv_lib_z_inflate=no
22883 fi
22884 rm -f core conftest.err conftest.$ac_objext \
22885     conftest$ac_exeext conftest.$ac_ext
22886 LIBS=$ac_check_lib_save_LIBS
22887 fi
22888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
22889 $as_echo "$ac_cv_lib_z_inflate" >&6; }
22890 if test "x$ac_cv_lib_z_inflate" = xyes; then :
22891
22892         zlib_found="yes"
22893         SVN_ZLIB_INCLUDES="-I$zlib_prefix/include"
22894         SVN_ZLIB_LIBS="`
22895   input_flags="-L$zlib_prefix/lib"
22896   output_flags=""
22897   filtered_dirs="/lib /lib64 /usr/lib /usr/lib64"
22898   for flag in $input_flags; do
22899     filter="no"
22900     for dir in $filtered_dirs; do
22901       if test "$flag" = "-L$dir" || test "$flag" = "-L$dir/"; then
22902         filter="yes"
22903         break
22904       fi
22905     done
22906     if test "$filter" = "no"; then
22907       output_flags="$output_flags $flag"
22908     fi
22909   done
22910   if test -n "$output_flags"; then
22911     printf "%s" "${output_flags# }"
22912   fi
22913 ` -lz"
22914
22915 fi
22916
22917       LDFLAGS="$save_ldflags"
22918
22919 fi
22920
22921 done
22922
22923     CPPFLAGS="$save_cppflags"
22924   else
22925
22926   { $as_echo "$as_me:${as_lineno-$LINENO}: zlib library configuration via pkg-config" >&5
22927 $as_echo "$as_me: zlib library configuration via pkg-config" >&6;}
22928   if test -n "$PKG_CONFIG"; then
22929     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for zlib library" >&5
22930 $as_echo_n "checking for zlib library... " >&6; }
22931     if $PKG_CONFIG zlib --exists; then
22932       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22933 $as_echo "yes" >&6; }
22934       zlib_found=yes
22935       SVN_ZLIB_INCLUDES=`$PKG_CONFIG zlib --cflags`
22936       SVN_ZLIB_LIBS=`$PKG_CONFIG zlib --libs`
22937       SVN_ZLIB_LIBS="`
22938   input_flags="$SVN_ZLIB_LIBS"
22939   output_flags=""
22940   filtered_dirs="/lib /lib64 /usr/lib /usr/lib64"
22941   for flag in $input_flags; do
22942     filter="no"
22943     for dir in $filtered_dirs; do
22944       if test "$flag" = "-L$dir" || test "$flag" = "-L$dir/"; then
22945         filter="yes"
22946         break
22947       fi
22948     done
22949     if test "$filter" = "no"; then
22950       output_flags="$output_flags $flag"
22951     fi
22952   done
22953   if test -n "$output_flags"; then
22954     printf "%s" "${output_flags# }"
22955   fi
22956 `"
22957     else
22958       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22959 $as_echo "no" >&6; }
22960     fi
22961   fi
22962
22963
22964     if test "$zlib_found" = "no"; then
22965       { $as_echo "$as_me:${as_lineno-$LINENO}: zlib library configuration" >&5
22966 $as_echo "$as_me: zlib library configuration" >&6;}
22967       ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
22968 if test "x$ac_cv_header_zlib_h" = xyes; then :
22969
22970         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
22971 $as_echo_n "checking for inflate in -lz... " >&6; }
22972 if ${ac_cv_lib_z_inflate+:} false; then :
22973   $as_echo_n "(cached) " >&6
22974 else
22975   ac_check_lib_save_LIBS=$LIBS
22976 LIBS="-lz  $LIBS"
22977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22978 /* end confdefs.h.  */
22979
22980 /* Override any GCC internal prototype to avoid an error.
22981    Use char because int might match the return type of a GCC
22982    builtin and then its argument prototype would still apply.  */
22983 #ifdef __cplusplus
22984 extern "C"
22985 #endif
22986 char inflate ();
22987 int
22988 main ()
22989 {
22990 return inflate ();
22991   ;
22992   return 0;
22993 }
22994 _ACEOF
22995 if ac_fn_c_try_link "$LINENO"; then :
22996   ac_cv_lib_z_inflate=yes
22997 else
22998   ac_cv_lib_z_inflate=no
22999 fi
23000 rm -f core conftest.err conftest.$ac_objext \
23001     conftest$ac_exeext conftest.$ac_ext
23002 LIBS=$ac_check_lib_save_LIBS
23003 fi
23004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
23005 $as_echo "$ac_cv_lib_z_inflate" >&6; }
23006 if test "x$ac_cv_lib_z_inflate" = xyes; then :
23007
23008           zlib_found="builtin"
23009           SVN_ZLIB_LIBS="-lz"
23010
23011 fi
23012
23013
23014 fi
23015
23016
23017     fi
23018   fi
23019
23020   if test "$zlib_found" = "no"; then
23021     as_fn_error $? "subversion requires zlib" "$LINENO" 5
23022   fi
23023
23024
23025
23026
23027
23028
23029
23030 # Check whether --with-lz4 was given.
23031 if test "${with_lz4+set}" = set; then :
23032   withval=$with_lz4;
23033       if test "$withval" = internal; then
23034         lz4_prefix=internal
23035       elif test "$withval" = yes; then
23036         lz4_prefix=std
23037       else
23038         lz4_prefix="$withval"
23039       fi
23040
23041 else
23042   lz4_prefix=std
23043 fi
23044
23045
23046   if test "$lz4_prefix" = "internal"; then
23047     { $as_echo "$as_me:${as_lineno-$LINENO}: using internal lz4" >&5
23048 $as_echo "$as_me: using internal lz4" >&6;}
23049
23050 $as_echo "#define SVN_INTERNAL_LZ4 1" >>confdefs.h
23051
23052   else
23053     if test "$lz4_prefix" = "std"; then
23054
23055   if test -n "$PKG_CONFIG"; then
23056     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lz4 library via pkg-config" >&5
23057 $as_echo_n "checking for lz4 library via pkg-config... " >&6; }
23058     if $PKG_CONFIG liblz4 --atleast-version=129 || $PKG_CONFIG liblz4 --max-version=3; then
23059       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23060 $as_echo "yes" >&6; }
23061       lz4_found=yes
23062       SVN_LZ4_INCLUDES=`$PKG_CONFIG liblz4 --cflags`
23063       SVN_LZ4_LIBS=`$PKG_CONFIG liblz4 --libs`
23064       SVN_LZ4_LIBS="`
23065   input_flags="$SVN_LZ4_LIBS"
23066   output_flags=""
23067   filtered_dirs="/lib /lib64 /usr/lib /usr/lib64"
23068   for flag in $input_flags; do
23069     filter="no"
23070     for dir in $filtered_dirs; do
23071       if test "$flag" = "-L$dir" || test "$flag" = "-L$dir/"; then
23072         filter="yes"
23073         break
23074       fi
23075     done
23076     if test "$filter" = "no"; then
23077       output_flags="$output_flags $flag"
23078     fi
23079   done
23080   if test -n "$output_flags"; then
23081     printf "%s" "${output_flags# }"
23082   fi
23083 `"
23084     else
23085       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23086 $as_echo "no" >&6; }
23087     fi
23088   fi
23089   if test "$lz4_found" != "yes"; then
23090     { $as_echo "$as_me:${as_lineno-$LINENO}: lz4 configuration without pkg-config" >&5
23091 $as_echo "$as_me: lz4 configuration without pkg-config" >&6;}
23092     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LZ4_compress_default in -llz4" >&5
23093 $as_echo_n "checking for LZ4_compress_default in -llz4... " >&6; }
23094 if ${ac_cv_lib_lz4_LZ4_compress_default+:} false; then :
23095   $as_echo_n "(cached) " >&6
23096 else
23097   ac_check_lib_save_LIBS=$LIBS
23098 LIBS="-llz4  $LIBS"
23099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23100 /* end confdefs.h.  */
23101
23102 /* Override any GCC internal prototype to avoid an error.
23103    Use char because int might match the return type of a GCC
23104    builtin and then its argument prototype would still apply.  */
23105 #ifdef __cplusplus
23106 extern "C"
23107 #endif
23108 char LZ4_compress_default ();
23109 int
23110 main ()
23111 {
23112 return LZ4_compress_default ();
23113   ;
23114   return 0;
23115 }
23116 _ACEOF
23117 if ac_fn_c_try_link "$LINENO"; then :
23118   ac_cv_lib_lz4_LZ4_compress_default=yes
23119 else
23120   ac_cv_lib_lz4_LZ4_compress_default=no
23121 fi
23122 rm -f core conftest.err conftest.$ac_objext \
23123     conftest$ac_exeext conftest.$ac_ext
23124 LIBS=$ac_check_lib_save_LIBS
23125 fi
23126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lz4_LZ4_compress_default" >&5
23127 $as_echo "$ac_cv_lib_lz4_LZ4_compress_default" >&6; }
23128 if test "x$ac_cv_lib_lz4_LZ4_compress_default" = xyes; then :
23129
23130       lz4_found=yes
23131       SVN_LZ4_LIBS="-llz4"
23132
23133 fi
23134
23135   fi
23136
23137     else
23138
23139   { $as_echo "$as_me:${as_lineno-$LINENO}: lz4 configuration via prefix" >&5
23140 $as_echo "$as_me: lz4 configuration via prefix" >&6;}
23141   save_cppflags="$CPPFLAGS"
23142   CPPFLAGS="$CPPFLAGS -I$lz4_prefix/include"
23143   save_ldflags="$LDFLAGS"
23144   LDFLAGS="$LDFLAGS -L$lz4_prefix/lib"
23145   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LZ4_compress_default in -llz4" >&5
23146 $as_echo_n "checking for LZ4_compress_default in -llz4... " >&6; }
23147 if ${ac_cv_lib_lz4_LZ4_compress_default+:} false; then :
23148   $as_echo_n "(cached) " >&6
23149 else
23150   ac_check_lib_save_LIBS=$LIBS
23151 LIBS="-llz4  $LIBS"
23152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23153 /* end confdefs.h.  */
23154
23155 /* Override any GCC internal prototype to avoid an error.
23156    Use char because int might match the return type of a GCC
23157    builtin and then its argument prototype would still apply.  */
23158 #ifdef __cplusplus
23159 extern "C"
23160 #endif
23161 char LZ4_compress_default ();
23162 int
23163 main ()
23164 {
23165 return LZ4_compress_default ();
23166   ;
23167   return 0;
23168 }
23169 _ACEOF
23170 if ac_fn_c_try_link "$LINENO"; then :
23171   ac_cv_lib_lz4_LZ4_compress_default=yes
23172 else
23173   ac_cv_lib_lz4_LZ4_compress_default=no
23174 fi
23175 rm -f core conftest.err conftest.$ac_objext \
23176     conftest$ac_exeext conftest.$ac_ext
23177 LIBS=$ac_check_lib_save_LIBS
23178 fi
23179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lz4_LZ4_compress_default" >&5
23180 $as_echo "$ac_cv_lib_lz4_LZ4_compress_default" >&6; }
23181 if test "x$ac_cv_lib_lz4_LZ4_compress_default" = xyes; then :
23182
23183     lz4_found=yes
23184     SVN_LZ4_INCLUDES="-I$lz4_prefix/include"
23185     SVN_LZ4_LIBS="`
23186   input_flags="-L$lz4_prefix/lib"
23187   output_flags=""
23188   filtered_dirs="/lib /lib64 /usr/lib /usr/lib64"
23189   for flag in $input_flags; do
23190     filter="no"
23191     for dir in $filtered_dirs; do
23192       if test "$flag" = "-L$dir" || test "$flag" = "-L$dir/"; then
23193         filter="yes"
23194         break
23195       fi
23196     done
23197     if test "$filter" = "no"; then
23198       output_flags="$output_flags $flag"
23199     fi
23200   done
23201   if test -n "$output_flags"; then
23202     printf "%s" "${output_flags# }"
23203   fi
23204 ` -llz4"
23205
23206 fi
23207
23208   LDFLAGS="$save_ldflags"
23209   CPPFLAGS="$save_cppflags"
23210
23211     fi
23212     if test "$lz4_found" != "yes"; then
23213       as_fn_error $? "Subversion requires LZ4 >= r129, or use --with-lz4=internal" "$LINENO" 5
23214     fi
23215   fi
23216
23217
23218
23219
23220
23221
23222 # Check whether --with-utf8proc was given.
23223 if test "${with_utf8proc+set}" = set; then :
23224   withval=$with_utf8proc;
23225       if test "$withval" = internal; then
23226         utf8proc_prefix=internal
23227       elif test "$withval" = yes; then
23228         utf8proc_prefix=std
23229       else
23230         utf8proc_prefix="$withval"
23231       fi
23232
23233 else
23234   utf8proc_prefix=std
23235 fi
23236
23237
23238   if test "$utf8proc_prefix" = "internal"; then
23239     { $as_echo "$as_me:${as_lineno-$LINENO}: using internal utf8proc" >&5
23240 $as_echo "$as_me: using internal utf8proc" >&6;}
23241
23242 $as_echo "#define SVN_INTERNAL_UTF8PROC 1" >>confdefs.h
23243
23244   else
23245     if test "$utf8proc_prefix" = "std"; then
23246
23247   { $as_echo "$as_me:${as_lineno-$LINENO}: utf8proc configuration without pkg-config" >&5
23248 $as_echo "$as_me: utf8proc configuration without pkg-config" >&6;}
23249   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for utf8proc_version in -lutf8proc" >&5
23250 $as_echo_n "checking for utf8proc_version in -lutf8proc... " >&6; }
23251 if ${ac_cv_lib_utf8proc_utf8proc_version+:} false; then :
23252   $as_echo_n "(cached) " >&6
23253 else
23254   ac_check_lib_save_LIBS=$LIBS
23255 LIBS="-lutf8proc  $LIBS"
23256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23257 /* end confdefs.h.  */
23258
23259 /* Override any GCC internal prototype to avoid an error.
23260    Use char because int might match the return type of a GCC
23261    builtin and then its argument prototype would still apply.  */
23262 #ifdef __cplusplus
23263 extern "C"
23264 #endif
23265 char utf8proc_version ();
23266 int
23267 main ()
23268 {
23269 return utf8proc_version ();
23270   ;
23271   return 0;
23272 }
23273 _ACEOF
23274 if ac_fn_c_try_link "$LINENO"; then :
23275   ac_cv_lib_utf8proc_utf8proc_version=yes
23276 else
23277   ac_cv_lib_utf8proc_utf8proc_version=no
23278 fi
23279 rm -f core conftest.err conftest.$ac_objext \
23280     conftest$ac_exeext conftest.$ac_ext
23281 LIBS=$ac_check_lib_save_LIBS
23282 fi
23283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_utf8proc_utf8proc_version" >&5
23284 $as_echo "$ac_cv_lib_utf8proc_utf8proc_version" >&6; }
23285 if test "x$ac_cv_lib_utf8proc_utf8proc_version" = xyes; then :
23286
23287      utf8proc_found=yes
23288      SVN_UTF8PROC_LIBS="-lutf8proc"
23289
23290 fi
23291
23292
23293     else
23294
23295   { $as_echo "$as_me:${as_lineno-$LINENO}: utf8proc configuration via prefix" >&5
23296 $as_echo "$as_me: utf8proc configuration via prefix" >&6;}
23297   save_cppflags="$CPPFLAGS"
23298   CPPFLAGS="$CPPFLAGS -I$utf8proc_prefix/include"
23299   save_ldflags="$LDFLAGS"
23300   LDFLAGS="$LDFLAGS -L$utf8proc_prefix/lib"
23301   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for utf8proc_version in -lutf8proc" >&5
23302 $as_echo_n "checking for utf8proc_version in -lutf8proc... " >&6; }
23303 if ${ac_cv_lib_utf8proc_utf8proc_version+:} false; then :
23304   $as_echo_n "(cached) " >&6
23305 else
23306   ac_check_lib_save_LIBS=$LIBS
23307 LIBS="-lutf8proc  $LIBS"
23308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23309 /* end confdefs.h.  */
23310
23311 /* Override any GCC internal prototype to avoid an error.
23312    Use char because int might match the return type of a GCC
23313    builtin and then its argument prototype would still apply.  */
23314 #ifdef __cplusplus
23315 extern "C"
23316 #endif
23317 char utf8proc_version ();
23318 int
23319 main ()
23320 {
23321 return utf8proc_version ();
23322   ;
23323   return 0;
23324 }
23325 _ACEOF
23326 if ac_fn_c_try_link "$LINENO"; then :
23327   ac_cv_lib_utf8proc_utf8proc_version=yes
23328 else
23329   ac_cv_lib_utf8proc_utf8proc_version=no
23330 fi
23331 rm -f core conftest.err conftest.$ac_objext \
23332     conftest$ac_exeext conftest.$ac_ext
23333 LIBS=$ac_check_lib_save_LIBS
23334 fi
23335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_utf8proc_utf8proc_version" >&5
23336 $as_echo "$ac_cv_lib_utf8proc_utf8proc_version" >&6; }
23337 if test "x$ac_cv_lib_utf8proc_utf8proc_version" = xyes; then :
23338
23339     utf8proc_found=yes
23340     SVN_UTF8PROC_INCLUDES="-I$utf8proc_prefix/include"
23341     SVN_UTF8PROC_LIBS="`
23342   input_flags="-L$utf8proc_prefix/lib"
23343   output_flags=""
23344   filtered_dirs="/lib /lib64 /usr/lib /usr/lib64"
23345   for flag in $input_flags; do
23346     filter="no"
23347     for dir in $filtered_dirs; do
23348       if test "$flag" = "-L$dir" || test "$flag" = "-L$dir/"; then
23349         filter="yes"
23350         break
23351       fi
23352     done
23353     if test "$filter" = "no"; then
23354       output_flags="$output_flags $flag"
23355     fi
23356   done
23357   if test -n "$output_flags"; then
23358     printf "%s" "${output_flags# }"
23359   fi
23360 ` -lutf8proc"
23361
23362 fi
23363
23364   LDFLAGS="$save_ldflags"
23365   CPPFLAGS="$save_cppflags"
23366
23367     fi
23368     if test "$utf8proc_found" != "yes"; then
23369       as_fn_error $? "Subversion requires UTF8PROC" "$LINENO" 5
23370     fi
23371   fi
23372
23373
23374
23375
23376 MOD_ACTIVATION=""
23377 # Check whether --enable-mod-activation was given.
23378 if test "${enable_mod_activation+set}" = set; then :
23379   enableval=$enable_mod_activation;
23380     if test "$enableval" = "yes" ; then
23381       MOD_ACTIVATION="-a"
23382       { $as_echo "$as_me:${as_lineno-$LINENO}: Enabling apache module activation" >&5
23383 $as_echo "$as_me: Enabling apache module activation" >&6;}
23384     else
23385       { $as_echo "$as_me:${as_lineno-$LINENO}: Disabling apache module activation" >&5
23386 $as_echo "$as_me: Disabling apache module activation" >&6;}
23387     fi
23388
23389 fi
23390
23391
23392
23393
23394
23395 # Check whether --enable-gcov was given.
23396 if test "${enable_gcov+set}" = set; then :
23397   enableval=$enable_gcov;
23398     if test "$enableval" = "yes" ; then
23399                   if test "$GCC" = "yes"; then
23400         if test "$svn_enable_shared" = "yes" ; then
23401           as_fn_error $? "Can't have --enable-gcov without --disable-shared (we
23402                         recommend also using --enable-all-static)." "$LINENO" 5
23403         fi
23404         if test ! "$enable_all_static" = "yes" ; then
23405           { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: We recommend --enable-all-static with --enable-gcov." >&5
23406 $as_echo "$as_me: WARNING: We recommend --enable-all-static with --enable-gcov." >&2;}
23407         fi
23408         { $as_echo "$as_me:${as_lineno-$LINENO}: Enabling gcov coverage testing." >&5
23409 $as_echo "$as_me: Enabling gcov coverage testing." >&6;}
23410         CFLAGS="$CFLAGS -fprofile-arcs -ftest-coverage"
23411         CXXFLAGS="$CXXFLAGS -fprofile-arcs -ftest-coverage"
23412       else
23413         as_fn_error $? "We only support --enable-gcov with GCC right now." "$LINENO" 5
23414       fi
23415     fi
23416
23417 fi
23418
23419
23420 # Check whether --enable-gprof was given.
23421 if test "${enable_gprof+set}" = set; then :
23422   enableval=$enable_gprof;
23423     if test "$enableval" = "yes" ; then
23424                   if test "$GCC" = "yes"; then
23425         if test "$svn_enable_shared" = "yes" ; then
23426           as_fn_error $? "Can't have --enable-gprof without --disable-shared (we
23427                         recommend also using --enable-all-static)." "$LINENO" 5
23428         fi
23429         if test ! "$enable_all_static" = "yes" ; then
23430           { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: We recommend --enable-all-static with --enable-gprof." >&5
23431 $as_echo "$as_me: WARNING: We recommend --enable-all-static with --enable-gprof." >&2;}
23432         fi
23433         { $as_echo "$as_me:${as_lineno-$LINENO}: Enabling gprof profiling data (to gmon.out)." >&5
23434 $as_echo "$as_me: Enabling gprof profiling data (to gmon.out)." >&6;}
23435         CFLAGS="$CFLAGS -pg"
23436         CXXFLAGS="$CXXFLAGS -pg"
23437         LT_LDFLAGS="$LT_LDFLAGS -pg"
23438       else
23439         as_fn_error $? "We only support --enable-gprof with GCC right now." "$LINENO" 5
23440       fi
23441     fi
23442
23443 fi
23444
23445
23446
23447 # Scripting and Bindings languages
23448
23449 # Python: Used for testsuite, and bindings
23450
23451
23452 PYTHON="`$abs_srcdir/build/find_python.sh`"
23453 if test -z "$PYTHON"; then
23454   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Python 2.7 or later is required to run the testsuite" >&5
23455 $as_echo "$as_me: WARNING: Python 2.7 or later is required to run the testsuite" >&2;}
23456   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: or to use the Subversion Python bindings" >&5
23457 $as_echo "$as_me: WARNING: or to use the Subversion Python bindings" >&2;}
23458   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: " >&5
23459 $as_echo "$as_me: WARNING: " >&2;}
23460   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: If you have a suitable Python installed, but not on the" >&5
23461 $as_echo "$as_me: WARNING: If you have a suitable Python installed, but not on the" >&2;}
23462   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PATH, set the environment variable PYTHON to the full path" >&5
23463 $as_echo "$as_me: WARNING: PATH, set the environment variable PYTHON to the full path" >&2;}
23464   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: to the Python executable, and re-run configure" >&5
23465 $as_echo "$as_me: WARNING: to the Python executable, and re-run configure" >&2;}
23466 fi
23467 for ac_prog in "$PYTHON"
23468 do
23469   # Extract the first word of "$ac_prog", so it can be a program name with args.
23470 set dummy $ac_prog; ac_word=$2
23471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23472 $as_echo_n "checking for $ac_word... " >&6; }
23473 if ${ac_cv_path_PYTHON+:} false; then :
23474   $as_echo_n "(cached) " >&6
23475 else
23476   case $PYTHON in
23477   [\\/]* | ?:[\\/]*)
23478   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
23479   ;;
23480   *)
23481   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23482 for as_dir in $PATH
23483 do
23484   IFS=$as_save_IFS
23485   test -z "$as_dir" && as_dir=.
23486     for ac_exec_ext in '' $ac_executable_extensions; do
23487   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23488     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
23489     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23490     break 2
23491   fi
23492 done
23493   done
23494 IFS=$as_save_IFS
23495
23496   ;;
23497 esac
23498 fi
23499 PYTHON=$ac_cv_path_PYTHON
23500 if test -n "$PYTHON"; then
23501   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
23502 $as_echo "$PYTHON" >&6; }
23503 else
23504   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23505 $as_echo "no" >&6; }
23506 fi
23507
23508
23509   test -n "$PYTHON" && break
23510 done
23511 test -n "$PYTHON" || PYTHON="none"
23512
23513
23514 # The minimum version for the JVM runtime for our Java bytecode.
23515 JAVA_OLDEST_WORKING_VER='1.6'
23516 # SVN_CHECK_JDK sets $JAVA_CLASSPATH
23517
23518   JAVA_OLDEST_WORKING_VER="$JAVA_OLDEST_WORKING_VER"
23519
23520 # Check whether --with-jdk was given.
23521 if test "${with_jdk+set}" = set; then :
23522   withval=$with_jdk;
23523     case "$withval" in
23524       "no")
23525         JDK_SUITABLE=no
23526       ;;
23527       "yes")
23528
23529   where=check
23530   JAVA_OLDEST_WORKING_VER="$JAVA_OLDEST_WORKING_VER"
23531
23532   JDK=none
23533   JAVA_BIN=none
23534   JAVADOC=none
23535   JAVAC=none
23536   JAVAH=none
23537   JAR=none
23538   JNI_INCLUDES=none
23539
23540   JDK_SUITABLE=no
23541   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JDK" >&5
23542 $as_echo_n "checking for JDK... " >&6; }
23543   if test $where = check; then
23544                 if test -x "$JAVA_HOME/bin/java"; then
23545       JDK="$JAVA_HOME"
23546     elif test -x "/usr/libexec/java_home"; then
23547       JDK=`/usr/libexec/java_home`
23548     elif test -x "/Library/Java/Home/bin/java"; then
23549       JDK="/Library/Java/Home"
23550     elif test -x "/usr/bin/java"; then
23551       JDK="/usr"
23552     elif test -x "/usr/local/bin/java"; then
23553       JDK="/usr/local"
23554     fi
23555   else
23556     JDK=$where
23557   fi
23558
23559           os_arch="`uname`"
23560   if test "$os_arch" = "Darwin"; then
23561     OSX_VER=`/usr/bin/sw_vers | grep ProductVersion | cut -f2 | cut -d"." -f1,2`
23562
23563     if test "$OSX_VER" = "10.4"; then
23564             OSX_VER="10.4u"
23565     fi
23566
23567     OSX_SYS_JAVA_FRAMEWORK="/System/Library/Frameworks/JavaVM.framework"
23568     OSX_SDK_JAVA_FRAMEWORK="/Developer/SDKs/MacOSX$OSX_VER.sdk/System/Library"
23569     OSX_SDK_JAVA_FRAMEWORK="$OSX_SDK_JAVA_FRAMEWORK/Frameworks/JavaVM.framework"
23570   fi
23571
23572   if test "$os_arch" = "Darwin" && test "$JDK" = "/usr" &&
23573      test -d "/Library/Java/Home"; then
23574     JDK="/Library/Java/Home"
23575   fi
23576
23577   if test "$os_arch" = "Darwin" && test "$JDK" = "/Library/Java/Home"; then
23578     JRE_LIB_DIR="$OSX_SYS_JAVA_FRAMEWORK/Classes"
23579   else
23580     JRE_LIB_DIR="$JDK/jre/lib"
23581   fi
23582
23583   if test -f "$JDK/include/jni.h"; then
23584         JNI_INCLUDEDIR="$JDK/include"
23585     JDK_SUITABLE=yes
23586   elif test "$os_arch" = "Darwin" && test -e "$JDK/Headers/jni.h"; then
23587         JNI_INCLUDEDIR="$JDK/Headers"
23588     JDK_SUITABLE=yes
23589   elif test "$os_arch" = "Darwin" &&
23590        test -e "$OSX_SYS_JAVA_FRAMEWORK/Headers/jni.h"; then
23591         JNI_INCLUDEDIR="$OSX_SYS_JAVA_FRAMEWORK/Headers"
23592     JDK_SUITABLE=yes
23593   elif test "$os_arch" = "Darwin" &&
23594        test -e "$OSX_SDK_JAVA_FRAMEWORK/Headers/jni.h"; then
23595         JNI_INCLUDEDIR="$OSX_SDK_JAVA_FRAMEWORK/Headers"
23596     JDK_SUITABLE=yes
23597   else
23598     JDK_SUITABLE=no
23599   fi
23600   if test "$JDK_SUITABLE" = "yes"; then
23601     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JNI_INCLUDEDIR/jni.h" >&5
23602 $as_echo "$JNI_INCLUDEDIR/jni.h" >&6; }
23603   else
23604     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23605 $as_echo "no" >&6; }
23606     if test "$where" != "check"; then
23607       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no JNI header files found." >&5
23608 $as_echo "$as_me: WARNING: no JNI header files found." >&2;}
23609       if test "$os_arch" = "Darwin"; then
23610         { $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
23611 $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;}
23612       fi
23613     fi
23614   fi
23615
23616   if test "$JDK_SUITABLE" = "yes"; then
23617     JAVA_BIN='$(JDK)/bin'
23618
23619     JAVA="$JAVA_BIN/java"
23620     JAVAC="$JAVA_BIN/javac"
23621     JAVAH="$JAVA_BIN/javah"
23622     JAVADOC="$JAVA_BIN/javadoc"
23623     JAR="$JAVA_BIN/jar"
23624
23625
23626 # Check whether --with-jikes was given.
23627 if test "${with_jikes+set}" = set; then :
23628   withval=$with_jikes;
23629       if test "$withval" != "no"; then
23630         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The --with-jikes option was ignored" >&5
23631 $as_echo "$as_me: WARNING: The --with-jikes option was ignored" >&2;}
23632       fi
23633
23634 fi
23635
23636
23637         # The release for "-source" could actually be greater than that
23638     # of "-target", if we want to cross-compile for lesser JVMs.
23639     if test -z "$JAVAC_FLAGS"; then
23640       JAVAC_FLAGS="-target $JAVA_OLDEST_WORKING_VER -source 1.6"
23641       if test "$enable_debugging" = "yes"; then
23642         JAVAC_FLAGS="-g -Xlint -Xlint:unchecked -Xlint:serial -Xlint:path $JAVAC_FLAGS"
23643         if test -z "$JAVAC_COMPAT_FLAGS"; then
23644           JAVAC_COMPAT_FLAGS="$JAVAC_FLAGS -Xlint:-unchecked -Xlint:-deprecation -Xlint:-dep-ann -Xlint:-rawtypes"
23645         fi
23646       fi
23647     fi
23648
23649     JNI_INCLUDES="-I$JNI_INCLUDEDIR"
23650     list="`find "$JNI_INCLUDEDIR" -type d -print`"
23651     for dir in $list; do
23652       JNI_INCLUDES="$JNI_INCLUDES -I$dir"
23653     done
23654   fi
23655
23656
23657
23658
23659
23660
23661
23662
23663
23664
23665
23666       ;;
23667       *)
23668
23669   where=$withval
23670   JAVA_OLDEST_WORKING_VER="$JAVA_OLDEST_WORKING_VER"
23671
23672   JDK=none
23673   JAVA_BIN=none
23674   JAVADOC=none
23675   JAVAC=none
23676   JAVAH=none
23677   JAR=none
23678   JNI_INCLUDES=none
23679
23680   JDK_SUITABLE=no
23681   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JDK" >&5
23682 $as_echo_n "checking for JDK... " >&6; }
23683   if test $where = check; then
23684                 if test -x "$JAVA_HOME/bin/java"; then
23685       JDK="$JAVA_HOME"
23686     elif test -x "/usr/libexec/java_home"; then
23687       JDK=`/usr/libexec/java_home`
23688     elif test -x "/Library/Java/Home/bin/java"; then
23689       JDK="/Library/Java/Home"
23690     elif test -x "/usr/bin/java"; then
23691       JDK="/usr"
23692     elif test -x "/usr/local/bin/java"; then
23693       JDK="/usr/local"
23694     fi
23695   else
23696     JDK=$where
23697   fi
23698
23699           os_arch="`uname`"
23700   if test "$os_arch" = "Darwin"; then
23701     OSX_VER=`/usr/bin/sw_vers | grep ProductVersion | cut -f2 | cut -d"." -f1,2`
23702
23703     if test "$OSX_VER" = "10.4"; then
23704             OSX_VER="10.4u"
23705     fi
23706
23707     OSX_SYS_JAVA_FRAMEWORK="/System/Library/Frameworks/JavaVM.framework"
23708     OSX_SDK_JAVA_FRAMEWORK="/Developer/SDKs/MacOSX$OSX_VER.sdk/System/Library"
23709     OSX_SDK_JAVA_FRAMEWORK="$OSX_SDK_JAVA_FRAMEWORK/Frameworks/JavaVM.framework"
23710   fi
23711
23712   if test "$os_arch" = "Darwin" && test "$JDK" = "/usr" &&
23713      test -d "/Library/Java/Home"; then
23714     JDK="/Library/Java/Home"
23715   fi
23716
23717   if test "$os_arch" = "Darwin" && test "$JDK" = "/Library/Java/Home"; then
23718     JRE_LIB_DIR="$OSX_SYS_JAVA_FRAMEWORK/Classes"
23719   else
23720     JRE_LIB_DIR="$JDK/jre/lib"
23721   fi
23722
23723   if test -f "$JDK/include/jni.h"; then
23724         JNI_INCLUDEDIR="$JDK/include"
23725     JDK_SUITABLE=yes
23726   elif test "$os_arch" = "Darwin" && test -e "$JDK/Headers/jni.h"; then
23727         JNI_INCLUDEDIR="$JDK/Headers"
23728     JDK_SUITABLE=yes
23729   elif test "$os_arch" = "Darwin" &&
23730        test -e "$OSX_SYS_JAVA_FRAMEWORK/Headers/jni.h"; then
23731         JNI_INCLUDEDIR="$OSX_SYS_JAVA_FRAMEWORK/Headers"
23732     JDK_SUITABLE=yes
23733   elif test "$os_arch" = "Darwin" &&
23734        test -e "$OSX_SDK_JAVA_FRAMEWORK/Headers/jni.h"; then
23735         JNI_INCLUDEDIR="$OSX_SDK_JAVA_FRAMEWORK/Headers"
23736     JDK_SUITABLE=yes
23737   else
23738     JDK_SUITABLE=no
23739   fi
23740   if test "$JDK_SUITABLE" = "yes"; then
23741     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JNI_INCLUDEDIR/jni.h" >&5
23742 $as_echo "$JNI_INCLUDEDIR/jni.h" >&6; }
23743   else
23744     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23745 $as_echo "no" >&6; }
23746     if test "$where" != "check"; then
23747       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no JNI header files found." >&5
23748 $as_echo "$as_me: WARNING: no JNI header files found." >&2;}
23749       if test "$os_arch" = "Darwin"; then
23750         { $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
23751 $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;}
23752       fi
23753     fi
23754   fi
23755
23756   if test "$JDK_SUITABLE" = "yes"; then
23757     JAVA_BIN='$(JDK)/bin'
23758
23759     JAVA="$JAVA_BIN/java"
23760     JAVAC="$JAVA_BIN/javac"
23761     JAVAH="$JAVA_BIN/javah"
23762     JAVADOC="$JAVA_BIN/javadoc"
23763     JAR="$JAVA_BIN/jar"
23764
23765
23766 # Check whether --with-jikes was given.
23767 if test "${with_jikes+set}" = set; then :
23768   withval=$with_jikes;
23769       if test "$withval" != "no"; then
23770         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The --with-jikes option was ignored" >&5
23771 $as_echo "$as_me: WARNING: The --with-jikes option was ignored" >&2;}
23772       fi
23773
23774 fi
23775
23776
23777         # The release for "-source" could actually be greater than that
23778     # of "-target", if we want to cross-compile for lesser JVMs.
23779     if test -z "$JAVAC_FLAGS"; then
23780       JAVAC_FLAGS="-target $JAVA_OLDEST_WORKING_VER -source 1.6"
23781       if test "$enable_debugging" = "yes"; then
23782         JAVAC_FLAGS="-g -Xlint -Xlint:unchecked -Xlint:serial -Xlint:path $JAVAC_FLAGS"
23783         if test -z "$JAVAC_COMPAT_FLAGS"; then
23784           JAVAC_COMPAT_FLAGS="$JAVAC_FLAGS -Xlint:-unchecked -Xlint:-deprecation -Xlint:-dep-ann -Xlint:-rawtypes"
23785         fi
23786       fi
23787     fi
23788
23789     JNI_INCLUDES="-I$JNI_INCLUDEDIR"
23790     list="`find "$JNI_INCLUDEDIR" -type d -print`"
23791     for dir in $list; do
23792       JNI_INCLUDES="$JNI_INCLUDES -I$dir"
23793     done
23794   fi
23795
23796
23797
23798
23799
23800
23801
23802
23803
23804
23805
23806       ;;
23807     esac
23808
23809 else
23810
23811
23812   where=check
23813   JAVA_OLDEST_WORKING_VER="$JAVA_OLDEST_WORKING_VER"
23814
23815   JDK=none
23816   JAVA_BIN=none
23817   JAVADOC=none
23818   JAVAC=none
23819   JAVAH=none
23820   JAR=none
23821   JNI_INCLUDES=none
23822
23823   JDK_SUITABLE=no
23824   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JDK" >&5
23825 $as_echo_n "checking for JDK... " >&6; }
23826   if test $where = check; then
23827                 if test -x "$JAVA_HOME/bin/java"; then
23828       JDK="$JAVA_HOME"
23829     elif test -x "/usr/libexec/java_home"; then
23830       JDK=`/usr/libexec/java_home`
23831     elif test -x "/Library/Java/Home/bin/java"; then
23832       JDK="/Library/Java/Home"
23833     elif test -x "/usr/bin/java"; then
23834       JDK="/usr"
23835     elif test -x "/usr/local/bin/java"; then
23836       JDK="/usr/local"
23837     fi
23838   else
23839     JDK=$where
23840   fi
23841
23842           os_arch="`uname`"
23843   if test "$os_arch" = "Darwin"; then
23844     OSX_VER=`/usr/bin/sw_vers | grep ProductVersion | cut -f2 | cut -d"." -f1,2`
23845
23846     if test "$OSX_VER" = "10.4"; then
23847             OSX_VER="10.4u"
23848     fi
23849
23850     OSX_SYS_JAVA_FRAMEWORK="/System/Library/Frameworks/JavaVM.framework"
23851     OSX_SDK_JAVA_FRAMEWORK="/Developer/SDKs/MacOSX$OSX_VER.sdk/System/Library"
23852     OSX_SDK_JAVA_FRAMEWORK="$OSX_SDK_JAVA_FRAMEWORK/Frameworks/JavaVM.framework"
23853   fi
23854
23855   if test "$os_arch" = "Darwin" && test "$JDK" = "/usr" &&
23856      test -d "/Library/Java/Home"; then
23857     JDK="/Library/Java/Home"
23858   fi
23859
23860   if test "$os_arch" = "Darwin" && test "$JDK" = "/Library/Java/Home"; then
23861     JRE_LIB_DIR="$OSX_SYS_JAVA_FRAMEWORK/Classes"
23862   else
23863     JRE_LIB_DIR="$JDK/jre/lib"
23864   fi
23865
23866   if test -f "$JDK/include/jni.h"; then
23867         JNI_INCLUDEDIR="$JDK/include"
23868     JDK_SUITABLE=yes
23869   elif test "$os_arch" = "Darwin" && test -e "$JDK/Headers/jni.h"; then
23870         JNI_INCLUDEDIR="$JDK/Headers"
23871     JDK_SUITABLE=yes
23872   elif test "$os_arch" = "Darwin" &&
23873        test -e "$OSX_SYS_JAVA_FRAMEWORK/Headers/jni.h"; then
23874         JNI_INCLUDEDIR="$OSX_SYS_JAVA_FRAMEWORK/Headers"
23875     JDK_SUITABLE=yes
23876   elif test "$os_arch" = "Darwin" &&
23877        test -e "$OSX_SDK_JAVA_FRAMEWORK/Headers/jni.h"; then
23878         JNI_INCLUDEDIR="$OSX_SDK_JAVA_FRAMEWORK/Headers"
23879     JDK_SUITABLE=yes
23880   else
23881     JDK_SUITABLE=no
23882   fi
23883   if test "$JDK_SUITABLE" = "yes"; then
23884     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JNI_INCLUDEDIR/jni.h" >&5
23885 $as_echo "$JNI_INCLUDEDIR/jni.h" >&6; }
23886   else
23887     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23888 $as_echo "no" >&6; }
23889     if test "$where" != "check"; then
23890       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no JNI header files found." >&5
23891 $as_echo "$as_me: WARNING: no JNI header files found." >&2;}
23892       if test "$os_arch" = "Darwin"; then
23893         { $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
23894 $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;}
23895       fi
23896     fi
23897   fi
23898
23899   if test "$JDK_SUITABLE" = "yes"; then
23900     JAVA_BIN='$(JDK)/bin'
23901
23902     JAVA="$JAVA_BIN/java"
23903     JAVAC="$JAVA_BIN/javac"
23904     JAVAH="$JAVA_BIN/javah"
23905     JAVADOC="$JAVA_BIN/javadoc"
23906     JAR="$JAVA_BIN/jar"
23907
23908
23909 # Check whether --with-jikes was given.
23910 if test "${with_jikes+set}" = set; then :
23911   withval=$with_jikes;
23912       if test "$withval" != "no"; then
23913         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The --with-jikes option was ignored" >&5
23914 $as_echo "$as_me: WARNING: The --with-jikes option was ignored" >&2;}
23915       fi
23916
23917 fi
23918
23919
23920         # The release for "-source" could actually be greater than that
23921     # of "-target", if we want to cross-compile for lesser JVMs.
23922     if test -z "$JAVAC_FLAGS"; then
23923       JAVAC_FLAGS="-target $JAVA_OLDEST_WORKING_VER -source 1.6"
23924       if test "$enable_debugging" = "yes"; then
23925         JAVAC_FLAGS="-g -Xlint -Xlint:unchecked -Xlint:serial -Xlint:path $JAVAC_FLAGS"
23926         if test -z "$JAVAC_COMPAT_FLAGS"; then
23927           JAVAC_COMPAT_FLAGS="$JAVAC_FLAGS -Xlint:-unchecked -Xlint:-deprecation -Xlint:-dep-ann -Xlint:-rawtypes"
23928         fi
23929       fi
23930     fi
23931
23932     JNI_INCLUDES="-I$JNI_INCLUDEDIR"
23933     list="`find "$JNI_INCLUDEDIR" -type d -print`"
23934     for dir in $list; do
23935       JNI_INCLUDES="$JNI_INCLUDES -I$dir"
23936     done
23937   fi
23938
23939
23940
23941
23942
23943
23944
23945
23946
23947
23948
23949
23950 fi
23951
23952
23953
23954 # Extract the first word of "perl", so it can be a program name with args.
23955 set dummy perl; ac_word=$2
23956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23957 $as_echo_n "checking for $ac_word... " >&6; }
23958 if ${ac_cv_path_PERL+:} false; then :
23959   $as_echo_n "(cached) " >&6
23960 else
23961   case $PERL in
23962   [\\/]* | ?:[\\/]*)
23963   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
23964   ;;
23965   *)
23966   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23967 for as_dir in $PATH
23968 do
23969   IFS=$as_save_IFS
23970   test -z "$as_dir" && as_dir=.
23971     for ac_exec_ext in '' $ac_executable_extensions; do
23972   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23973     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
23974     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23975     break 2
23976   fi
23977 done
23978   done
23979 IFS=$as_save_IFS
23980
23981   test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
23982   ;;
23983 esac
23984 fi
23985 PERL=$ac_cv_path_PERL
23986 if test -n "$PERL"; then
23987   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
23988 $as_echo "$PERL" >&6; }
23989 else
23990   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23991 $as_echo "no" >&6; }
23992 fi
23993
23994
23995
23996 if test -n "$RUBY"; then
23997   # Extract the first word of ""$RUBY"", so it can be a program name with args.
23998 set dummy "$RUBY"; ac_word=$2
23999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24000 $as_echo_n "checking for $ac_word... " >&6; }
24001 if ${ac_cv_path_RUBY+:} false; then :
24002   $as_echo_n "(cached) " >&6
24003 else
24004   case $RUBY in
24005   [\\/]* | ?:[\\/]*)
24006   ac_cv_path_RUBY="$RUBY" # Let the user override the test with a path.
24007   ;;
24008   *)
24009   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24010 for as_dir in $PATH
24011 do
24012   IFS=$as_save_IFS
24013   test -z "$as_dir" && as_dir=.
24014     for ac_exec_ext in '' $ac_executable_extensions; do
24015   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24016     ac_cv_path_RUBY="$as_dir/$ac_word$ac_exec_ext"
24017     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24018     break 2
24019   fi
24020 done
24021   done
24022 IFS=$as_save_IFS
24023
24024   test -z "$ac_cv_path_RUBY" && ac_cv_path_RUBY="none"
24025   ;;
24026 esac
24027 fi
24028 RUBY=$ac_cv_path_RUBY
24029 if test -n "$RUBY"; then
24030   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUBY" >&5
24031 $as_echo "$RUBY" >&6; }
24032 else
24033   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24034 $as_echo "no" >&6; }
24035 fi
24036
24037
24038 else
24039   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
24040 do
24041   # Extract the first word of "$ac_prog", so it can be a program name with args.
24042 set dummy $ac_prog; ac_word=$2
24043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24044 $as_echo_n "checking for $ac_word... " >&6; }
24045 if ${ac_cv_path_RUBY+:} false; then :
24046   $as_echo_n "(cached) " >&6
24047 else
24048   case $RUBY in
24049   [\\/]* | ?:[\\/]*)
24050   ac_cv_path_RUBY="$RUBY" # Let the user override the test with a path.
24051   ;;
24052   *)
24053   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24054 for as_dir in $PATH
24055 do
24056   IFS=$as_save_IFS
24057   test -z "$as_dir" && as_dir=.
24058     for ac_exec_ext in '' $ac_executable_extensions; do
24059   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24060     ac_cv_path_RUBY="$as_dir/$ac_word$ac_exec_ext"
24061     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24062     break 2
24063   fi
24064 done
24065   done
24066 IFS=$as_save_IFS
24067
24068   ;;
24069 esac
24070 fi
24071 RUBY=$ac_cv_path_RUBY
24072 if test -n "$RUBY"; then
24073   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUBY" >&5
24074 $as_echo "$RUBY" >&6; }
24075 else
24076   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24077 $as_echo "no" >&6; }
24078 fi
24079
24080
24081   test -n "$RUBY" && break
24082 done
24083 test -n "$RUBY" || RUBY="none"
24084
24085 fi
24086 if test "$RUBY" != "none"; then
24087   { $as_echo "$as_me:${as_lineno-$LINENO}: checking rb_hash_foreach" >&5
24088 $as_echo_n "checking rb_hash_foreach... " >&6; }
24089   if "$RUBY" -r mkmf -e 'exit(have_func("rb_hash_foreach") ? 0 : 1)' >/dev/null; then
24090     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24091 $as_echo "yes" >&6; }
24092     if test -n "$RDOC"; then
24093       # Extract the first word of ""$RDOC"", so it can be a program name with args.
24094 set dummy "$RDOC"; ac_word=$2
24095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24096 $as_echo_n "checking for $ac_word... " >&6; }
24097 if ${ac_cv_path_RDOC+:} false; then :
24098   $as_echo_n "(cached) " >&6
24099 else
24100   case $RDOC in
24101   [\\/]* | ?:[\\/]*)
24102   ac_cv_path_RDOC="$RDOC" # Let the user override the test with a path.
24103   ;;
24104   *)
24105   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24106 for as_dir in $PATH
24107 do
24108   IFS=$as_save_IFS
24109   test -z "$as_dir" && as_dir=.
24110     for ac_exec_ext in '' $ac_executable_extensions; do
24111   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24112     ac_cv_path_RDOC="$as_dir/$ac_word$ac_exec_ext"
24113     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24114     break 2
24115   fi
24116 done
24117   done
24118 IFS=$as_save_IFS
24119
24120   test -z "$ac_cv_path_RDOC" && ac_cv_path_RDOC="none"
24121   ;;
24122 esac
24123 fi
24124 RDOC=$ac_cv_path_RDOC
24125 if test -n "$RDOC"; then
24126   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RDOC" >&5
24127 $as_echo "$RDOC" >&6; }
24128 else
24129   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24130 $as_echo "no" >&6; }
24131 fi
24132
24133
24134     else
24135       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
24136 do
24137   # Extract the first word of "$ac_prog", so it can be a program name with args.
24138 set dummy $ac_prog; ac_word=$2
24139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24140 $as_echo_n "checking for $ac_word... " >&6; }
24141 if ${ac_cv_path_RUBY+:} false; then :
24142   $as_echo_n "(cached) " >&6
24143 else
24144   case $RUBY in
24145   [\\/]* | ?:[\\/]*)
24146   ac_cv_path_RUBY="$RUBY" # Let the user override the test with a path.
24147   ;;
24148   *)
24149   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24150 for as_dir in $PATH
24151 do
24152   IFS=$as_save_IFS
24153   test -z "$as_dir" && as_dir=.
24154     for ac_exec_ext in '' $ac_executable_extensions; do
24155   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24156     ac_cv_path_RUBY="$as_dir/$ac_word$ac_exec_ext"
24157     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24158     break 2
24159   fi
24160 done
24161   done
24162 IFS=$as_save_IFS
24163
24164   ;;
24165 esac
24166 fi
24167 RUBY=$ac_cv_path_RUBY
24168 if test -n "$RUBY"; then
24169   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUBY" >&5
24170 $as_echo "$RUBY" >&6; }
24171 else
24172   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24173 $as_echo "no" >&6; }
24174 fi
24175
24176
24177   test -n "$RUBY" && break
24178 done
24179 test -n "$RUBY" || RUBY="none"
24180
24181     fi
24182     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ruby major version" >&5
24183 $as_echo_n "checking for Ruby major version... " >&6; }
24184 if ${svn_cv_ruby_major+:} false; then :
24185   $as_echo_n "(cached) " >&6
24186 else
24187
24188     svn_cv_ruby_major="`$RUBY -rrbconfig -e 'print RbConfig::CONFIG.fetch(%q(MAJOR))'`"
24189
24190 fi
24191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $svn_cv_ruby_major" >&5
24192 $as_echo "$svn_cv_ruby_major" >&6; }
24193     RUBY_MAJOR="$svn_cv_ruby_major"
24194
24195     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ruby minor version" >&5
24196 $as_echo_n "checking for Ruby minor version... " >&6; }
24197 if ${svn_cv_ruby_minor+:} false; then :
24198   $as_echo_n "(cached) " >&6
24199 else
24200
24201     svn_cv_ruby_minor="`$RUBY -rrbconfig -e 'print RbConfig::CONFIG.fetch(%q(MINOR))'`"
24202
24203 fi
24204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $svn_cv_ruby_minor" >&5
24205 $as_echo "$svn_cv_ruby_minor" >&6; }
24206     RUBY_MINOR="$svn_cv_ruby_minor"
24207
24208     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ruby teeny version" >&5
24209 $as_echo_n "checking for Ruby teeny version... " >&6; }
24210 if ${svn_cv_ruby_teeny+:} false; then :
24211   $as_echo_n "(cached) " >&6
24212 else
24213
24214     svn_cv_ruby_teeny="`$RUBY -rrbconfig -e 'major, minor, teeny = RUBY_VERSION.split("."); print teeny;'`"
24215
24216 fi
24217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $svn_cv_ruby_teeny" >&5
24218 $as_echo "$svn_cv_ruby_teeny" >&6; }
24219     RUBY_TEENY="$svn_cv_ruby_teeny"
24220
24221
24222
24223
24224     if test \( "$RUBY_MAJOR" -eq "1" -a "$RUBY_MINOR" -gt "8" -a "$RUBY_TEENY" -lt "3" \); then
24225       # Disallow Ruby between 1.8.7 and 1.9.3
24226       RUBY="none"
24227       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The detected Ruby is between 1.9 and 1.9.3" >&5
24228 $as_echo "$as_me: WARNING: The detected Ruby is between 1.9 and 1.9.3" >&2;}
24229       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Only 1.8.x and 1.9.3 or later are supported at this time" >&5
24230 $as_echo "$as_me: WARNING: Only 1.8.x and 1.9.3 or later are supported at this time" >&2;}
24231     fi
24232   else
24233     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24234 $as_echo "no" >&6; }
24235     RUBY="none"
24236     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The detected Ruby is too old for Subversion to use" >&5
24237 $as_echo "$as_me: WARNING: The detected Ruby is too old for Subversion to use" >&2;}
24238     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: A Ruby which has rb_hash_foreach is required to use the" >&5
24239 $as_echo "$as_me: WARNING: A Ruby which has rb_hash_foreach is required to use the" >&2;}
24240     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Subversion Ruby bindings" >&5
24241 $as_echo "$as_me: WARNING: Subversion Ruby bindings" >&2;}
24242     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Upgrade to the official 1.8.2 release, or later" >&5
24243 $as_echo "$as_me: WARNING: Upgrade to the official 1.8.2 release, or later" >&2;}
24244   fi
24245 fi
24246
24247
24248
24249 # Check whether --with-swig was given.
24250 if test "${with_swig+set}" = set; then :
24251   withval=$with_swig;
24252     case "$withval" in
24253       "no")
24254         SWIG_SUITABLE=no
24255
24256   where=no
24257
24258   if test $where = no; then
24259     SWIG=none
24260   elif test $where = required || test $where = check; then
24261     # Extract the first word of "swig", so it can be a program name with args.
24262 set dummy swig; ac_word=$2
24263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24264 $as_echo_n "checking for $ac_word... " >&6; }
24265 if ${ac_cv_path_SWIG+:} false; then :
24266   $as_echo_n "(cached) " >&6
24267 else
24268   case $SWIG in
24269   [\\/]* | ?:[\\/]*)
24270   ac_cv_path_SWIG="$SWIG" # Let the user override the test with a path.
24271   ;;
24272   *)
24273   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24274 for as_dir in $PATH
24275 do
24276   IFS=$as_save_IFS
24277   test -z "$as_dir" && as_dir=.
24278     for ac_exec_ext in '' $ac_executable_extensions; do
24279   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24280     ac_cv_path_SWIG="$as_dir/$ac_word$ac_exec_ext"
24281     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24282     break 2
24283   fi
24284 done
24285   done
24286 IFS=$as_save_IFS
24287
24288   test -z "$ac_cv_path_SWIG" && ac_cv_path_SWIG="none"
24289   ;;
24290 esac
24291 fi
24292 SWIG=$ac_cv_path_SWIG
24293 if test -n "$SWIG"; then
24294   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG" >&5
24295 $as_echo "$SWIG" >&6; }
24296 else
24297   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24298 $as_echo "no" >&6; }
24299 fi
24300
24301
24302     if test "$SWIG" = "none" && test $where = required; then
24303       as_fn_error $? "SWIG required, but not found" "$LINENO" 5
24304     fi
24305   else
24306     if test -f "$where"; then
24307       SWIG="$where"
24308     else
24309       SWIG="$where/bin/swig"
24310     fi
24311     if test ! -f "$SWIG" || test ! -x "$SWIG"; then
24312       as_fn_error $? "Could not find swig binary at $SWIG" "$LINENO" 5
24313     fi
24314   fi
24315
24316   if test "$SWIG" != "none"; then
24317     { $as_echo "$as_me:${as_lineno-$LINENO}: checking swig version" >&5
24318 $as_echo_n "checking swig version... " >&6; }
24319     SWIG_VERSION_RAW="`$SWIG -version 2>&1 | \
24320                        $SED -ne 's/^.*Version \(.*\)$/\1/p'`"
24321     # We want the version as an integer so we can test against
24322     # which version we're using.  SWIG doesn't provide this
24323     # to us so we have to come up with it on our own.
24324     # The major is passed straight through,
24325     # the minor is zero padded to two places,
24326     # and the patch level is zero padded to three places.
24327     # e.g. 1.3.24 becomes 103024
24328     SWIG_VERSION="`echo \"$SWIG_VERSION_RAW\" | \
24329                   $SED -e 's/[^0-9\.].*$//' \
24330                       -e 's/\.\([0-9]\)$/.0\1/' \
24331                       -e 's/\.\([0-9][0-9]\)$/.0\1/' \
24332                       -e 's/\.\([0-9]\)\./0\1/; s/\.//g;'`"
24333     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG_VERSION_RAW" >&5
24334 $as_echo "$SWIG_VERSION_RAW" >&6; }
24335     # If you change the required swig version number, don't forget to update:
24336     #   subversion/bindings/swig/INSTALL
24337     if test -n "$SWIG_VERSION" && test "$SWIG_VERSION" -ge "103024"; then
24338       SWIG_SUITABLE=yes
24339     else
24340       SWIG_SUITABLE=no
24341       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Detected SWIG version $SWIG_VERSION_RAW" >&5
24342 $as_echo "$as_me: WARNING: Detected SWIG version $SWIG_VERSION_RAW" >&2;}
24343       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Subversion requires SWIG >= 1.3.24" >&5
24344 $as_echo "$as_me: WARNING: Subversion requires SWIG >= 1.3.24" >&2;}
24345     fi
24346
24347     SWIG_PY_COMPILE="none"
24348     SWIG_PY_LINK="none"
24349     if test "$PYTHON" != "none"; then
24350       { $as_echo "$as_me:${as_lineno-$LINENO}: Configuring python swig binding" >&5
24351 $as_echo "$as_me: Configuring python swig binding" >&6;}
24352
24353       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python includes" >&5
24354 $as_echo_n "checking for Python includes... " >&6; }
24355 if ${ac_cv_python_includes+:} false; then :
24356   $as_echo_n "(cached) " >&6
24357 else
24358
24359         ac_cv_python_includes="`$PYTHON ${abs_srcdir}/build/get-py-info.py --includes`"
24360
24361 fi
24362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_python_includes" >&5
24363 $as_echo "$ac_cv_python_includes" >&6; }
24364       SWIG_PY_INCLUDES="\$(SWIG_INCLUDES) $ac_cv_python_includes"
24365
24366       if test "$ac_cv_python_includes" = "none"; then
24367         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: python bindings cannot be built without distutils module" >&5
24368 $as_echo "$as_me: WARNING: python bindings cannot be built without distutils module" >&2;}
24369       fi
24370
24371       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiling Python extensions" >&5
24372 $as_echo_n "checking for compiling Python extensions... " >&6; }
24373 if ${ac_cv_python_compile+:} false; then :
24374   $as_echo_n "(cached) " >&6
24375 else
24376
24377         ac_cv_python_compile="`$PYTHON ${abs_srcdir}/build/get-py-info.py --compile`"
24378
24379 fi
24380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_python_compile" >&5
24381 $as_echo "$ac_cv_python_compile" >&6; }
24382       SWIG_PY_COMPILE="$ac_cv_python_compile $CFLAGS"
24383
24384       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linking Python extensions" >&5
24385 $as_echo_n "checking for linking Python extensions... " >&6; }
24386 if ${ac_cv_python_link+:} false; then :
24387   $as_echo_n "(cached) " >&6
24388 else
24389
24390         ac_cv_python_link="`$PYTHON ${abs_srcdir}/build/get-py-info.py --link`"
24391
24392 fi
24393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_python_link" >&5
24394 $as_echo "$ac_cv_python_link" >&6; }
24395       SWIG_PY_LINK="$ac_cv_python_link"
24396
24397       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linking Python libraries" >&5
24398 $as_echo_n "checking for linking Python libraries... " >&6; }
24399 if ${ac_cv_python_libs+:} false; then :
24400   $as_echo_n "(cached) " >&6
24401 else
24402
24403         ac_cv_python_libs="`$PYTHON ${abs_srcdir}/build/get-py-info.py --libs`"
24404
24405 fi
24406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_python_libs" >&5
24407 $as_echo "$ac_cv_python_libs" >&6; }
24408       SWIG_PY_LIBS="`
24409   input_flags="$ac_cv_python_libs"
24410   output_flags=""
24411   filtered_dirs="/lib /lib64 /usr/lib /usr/lib64"
24412   for flag in $input_flags; do
24413     filter="no"
24414     for dir in $filtered_dirs; do
24415       if test "$flag" = "-L$dir" || test "$flag" = "-L$dir/"; then
24416         filter="yes"
24417         break
24418       fi
24419     done
24420     if test "$filter" = "no"; then
24421       output_flags="$output_flags $flag"
24422     fi
24423   done
24424   if test -n "$output_flags"; then
24425     printf "%s" "${output_flags# }"
24426   fi
24427 `"
24428
24429                         SVN_PYCFMT_SAVE_CPPFLAGS="$CPPFLAGS"
24430       CPPFLAGS="$CPPFLAGS $SVN_APR_INCLUDES"
24431       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for apr_int64_t Python/C API format string" >&5
24432 $as_echo_n "checking for apr_int64_t Python/C API format string... " >&6; }
24433 if ${svn_cv_pycfmt_apr_int64_t+:} false; then :
24434   $as_echo_n "(cached) " >&6
24435 else
24436
24437         if test "x$svn_cv_pycfmt_apr_int64_t" = "x"; then
24438           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24439 /* end confdefs.h.  */
24440 #include <apr.h>
24441                         MaTcHtHiS APR_INT64_T_FMT EnDeNd
24442 _ACEOF
24443 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24444   $EGREP "MaTcHtHiS +\"lld\" +EnDeNd" >/dev/null 2>&1; then :
24445   svn_cv_pycfmt_apr_int64_t="L"
24446 fi
24447 rm -f conftest*
24448
24449         fi
24450         if test "x$svn_cv_pycfmt_apr_int64_t" = "x"; then
24451           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24452 /* end confdefs.h.  */
24453 r
24454                        #include <apr.h>
24455                         MaTcHtHiS APR_INT64_T_FMT EnDeNd
24456 _ACEOF
24457 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24458   $EGREP "MaTcHtHiS +\"ld\" +EnDeNd" >/dev/null 2>&1; then :
24459   svn_cv_pycfmt_apr_int64_t="l"
24460 fi
24461 rm -f conftest*
24462
24463         fi
24464         if test "x$svn_cv_pycfmt_apr_int64_t" = "x"; then
24465           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24466 /* end confdefs.h.  */
24467 #include <apr.h>
24468                         MaTcHtHiS APR_INT64_T_FMT EnDeNd
24469 _ACEOF
24470 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24471   $EGREP "MaTcHtHiS +\"d\" +EnDeNd" >/dev/null 2>&1; then :
24472   svn_cv_pycfmt_apr_int64_t="i"
24473 fi
24474 rm -f conftest*
24475
24476         fi
24477
24478 fi
24479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $svn_cv_pycfmt_apr_int64_t" >&5
24480 $as_echo "$svn_cv_pycfmt_apr_int64_t" >&6; }
24481       CPPFLAGS="$SVN_PYCFMT_SAVE_CPPFLAGS"
24482       if test "x$svn_cv_pycfmt_apr_int64_t" = "x"; then
24483         as_fn_error $? "failed to recognize APR_INT64_T_FMT on this platform" "$LINENO" 5
24484       fi
24485
24486 cat >>confdefs.h <<_ACEOF
24487 #define SVN_APR_INT64_T_PYCFMT "$svn_cv_pycfmt_apr_int64_t"
24488 _ACEOF
24489
24490     fi
24491
24492     if test "$PERL" != "none"; then
24493       { $as_echo "$as_me:${as_lineno-$LINENO}: checking perl version" >&5
24494 $as_echo_n "checking perl version... " >&6; }
24495                   PERL_VERSION="`$PERL -e 'q([); print $] * 1000000,$/;'`"
24496       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL_VERSION" >&5
24497 $as_echo "$PERL_VERSION" >&6; }
24498       if test "$PERL_VERSION" -ge "5008000"; then
24499         SWIG_PL_INCLUDES="\$(SWIG_INCLUDES) `$PERL -MExtUtils::Embed -e ccopts`"
24500         SWIG_PL_LINK="`$PERL -MExtUtils::Embed -e ldopts`"
24501         SWIG_PL_LINK="`
24502   input_flags="$SWIG_PL_LINK"
24503   output_flags=""
24504   filtered_dirs="/lib /lib64 /usr/lib /usr/lib64"
24505   for flag in $input_flags; do
24506     filter="no"
24507     for dir in $filtered_dirs; do
24508       if test "$flag" = "-L$dir" || test "$flag" = "-L$dir/"; then
24509         filter="yes"
24510         break
24511       fi
24512     done
24513     if test "$filter" = "no"; then
24514       output_flags="$output_flags $flag"
24515     fi
24516   done
24517   if test -n "$output_flags"; then
24518     printf "%s" "${output_flags# }"
24519   fi
24520 `"
24521       else
24522         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: perl bindings require perl 5.8.0 or newer." >&5
24523 $as_echo "$as_me: WARNING: perl bindings require perl 5.8.0 or newer." >&2;}
24524       fi
24525     fi
24526
24527     SWIG_RB_COMPILE="none"
24528     SWIG_RB_LINK="none"
24529     if test "$RUBY" != "none"; then
24530       rbconfig="$RUBY -rrbconfig -e "
24531
24532       for var_name in arch archdir CC LDSHARED DLEXT LIBS LIBRUBYARG \
24533                       rubyhdrdir rubyarchhdrdir sitedir sitelibdir sitearchdir libdir
24534       do
24535         rbconfig_tmp=`$rbconfig "print RbConfig::CONFIG['$var_name']"`
24536         eval "rbconfig_$var_name=\"$rbconfig_tmp\""
24537       done
24538
24539       { $as_echo "$as_me:${as_lineno-$LINENO}: Configuring Ruby SWIG binding" >&5
24540 $as_echo "$as_me: Configuring Ruby SWIG binding" >&6;}
24541
24542       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ruby include path" >&5
24543 $as_echo_n "checking for Ruby include path... " >&6; }
24544 if ${svn_cv_ruby_includes+:} false; then :
24545   $as_echo_n "(cached) " >&6
24546 else
24547
24548       if test -d "$rbconfig_rubyhdrdir"; then
24549                 svn_cv_ruby_includes="-I. -I$rbconfig_rubyhdrdir -I$rbconfig_rubyhdrdir/ruby -I$rbconfig_rubyhdrdir/ruby/backward"
24550         if test -d "$rbconfig_rubyarchhdrdir"; then
24551                     svn_cv_ruby_includes="$svn_cv_ruby_includes -I$rbconfig_rubyarchhdrdir"
24552         else
24553           svn_cv_ruby_includes="$svn_cv_ruby_includes -I$rbconfig_rubyhdrdir/$rbconfig_arch"
24554         fi
24555       else
24556                 svn_cv_ruby_includes="-I. -I$rbconfig_archdir"
24557       fi
24558
24559 fi
24560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $svn_cv_ruby_includes" >&5
24561 $as_echo "$svn_cv_ruby_includes" >&6; }
24562       SWIG_RB_INCLUDES="\$(SWIG_INCLUDES) $svn_cv_ruby_includes"
24563
24564       { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compile Ruby extensions" >&5
24565 $as_echo_n "checking how to compile Ruby extensions... " >&6; }
24566 if ${svn_cv_ruby_compile+:} false; then :
24567   $as_echo_n "(cached) " >&6
24568 else
24569
24570         svn_cv_ruby_compile="$rbconfig_CC $CFLAGS"
24571
24572 fi
24573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $svn_cv_ruby_compile" >&5
24574 $as_echo "$svn_cv_ruby_compile" >&6; }
24575       SWIG_RB_COMPILE="$svn_cv_ruby_compile"
24576
24577   SWIG_RB_COMPILE=`echo "$SWIG_RB_COMPILE" | $SED -e 's/-ansi//'`
24578
24579
24580   SWIG_RB_COMPILE=`echo "$SWIG_RB_COMPILE" | $SED -e 's/-std=c89//'`
24581
24582
24583   SWIG_RB_COMPILE=`echo "$SWIG_RB_COMPILE" | $SED -e 's/-std=c90//'`
24584
24585             SWIG_RB_COMPILE="$SWIG_RB_COMPILE -Wno-int-to-pointer-cast"
24586
24587       { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link Ruby extensions" >&5
24588 $as_echo_n "checking how to link Ruby extensions... " >&6; }
24589 if ${svn_cv_ruby_link+:} false; then :
24590   $as_echo_n "(cached) " >&6
24591 else
24592
24593         svn_cv_ruby_link="`$RUBY -e 'ARGV.shift; print ARGV.join(%q( ))' \
24594                              $rbconfig_LDSHARED`"
24595         svn_cv_ruby_link="$rbconfig_CC $svn_cv_ruby_link"
24596         svn_cv_ruby_link="$svn_cv_ruby_link -shrext .$rbconfig_DLEXT"
24597
24598 fi
24599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $svn_cv_ruby_link" >&5
24600 $as_echo "$svn_cv_ruby_link" >&6; }
24601       SWIG_RB_LINK="$svn_cv_ruby_link"
24602
24603       { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link Ruby libraries" >&5
24604 $as_echo_n "checking how to link Ruby libraries... " >&6; }
24605 if ${ac_cv_ruby_libs+:} false; then :
24606   $as_echo_n "(cached) " >&6
24607 else
24608
24609         ac_cv_ruby_libs="$rbconfig_LIBRUBYARG $rbconfig_LIBS"
24610
24611 fi
24612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_ruby_libs" >&5
24613 $as_echo "$ac_cv_ruby_libs" >&6; }
24614       SWIG_RB_LIBS="`
24615   input_flags="$ac_cv_ruby_libs"
24616   output_flags=""
24617   filtered_dirs="/lib /lib64 /usr/lib /usr/lib64"
24618   for flag in $input_flags; do
24619     filter="no"
24620     for dir in $filtered_dirs; do
24621       if test "$flag" = "-L$dir" || test "$flag" = "-L$dir/"; then
24622         filter="yes"
24623         break
24624       fi
24625     done
24626     if test "$filter" = "no"; then
24627       output_flags="$output_flags $flag"
24628     fi
24629   done
24630   if test -n "$output_flags"; then
24631     printf "%s" "${output_flags# }"
24632   fi
24633 `"
24634
24635       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rb_errinfo" >&5
24636 $as_echo_n "checking for rb_errinfo... " >&6; }
24637       old_CFLAGS="$CFLAGS"
24638       old_LIBS="$LIBS"
24639       CFLAGS="$CFLAGS $svn_cv_ruby_includes"
24640
24641   CFLAGS=`echo "$CFLAGS" | $SED -e 's/-ansi//'`
24642
24643
24644   CFLAGS=`echo "$CFLAGS" | $SED -e 's/-std=c89//'`
24645
24646
24647   CFLAGS=`echo "$CFLAGS" | $SED -e 's/-std=c90//'`
24648
24649       LIBS="$SWIG_RB_LIBS"
24650       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24651 /* end confdefs.h.  */
24652
24653 #include <ruby.h>
24654 int main()
24655 {rb_errinfo();}
24656 _ACEOF
24657 if ac_fn_c_try_link "$LINENO"; then :
24658   have_rb_errinfo="yes"
24659 else
24660   have_rb_errinfo="no"
24661 fi
24662 rm -f core conftest.err conftest.$ac_objext \
24663     conftest$ac_exeext conftest.$ac_ext
24664       if test "$have_rb_errinfo" = "yes"; then
24665         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24666 $as_echo "yes" >&6; }
24667
24668 $as_echo "#define HAVE_RB_ERRINFO 1" >>confdefs.h
24669
24670       else
24671         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24672 $as_echo "no" >&6; }
24673       fi
24674       CFLAGS="$old_CFLAGS"
24675       LIBS="$old_LIBS"
24676
24677       if ${svn_cv_ruby_sitedir+:} false; then :
24678   $as_echo_n "(cached) " >&6
24679 else
24680
24681         svn_cv_ruby_sitedir="$rbconfig_sitedir"
24682
24683 fi
24684
24685
24686 # Check whether --with-ruby-sitedir was given.
24687 if test "${with_ruby_sitedir+set}" = set; then :
24688   withval=$with_ruby_sitedir; svn_ruby_installdir="$withval"
24689 else
24690   svn_ruby_installdir="$svn_cv_ruby_sitedir"
24691 fi
24692
24693
24694       { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to install Ruby scripts" >&5
24695 $as_echo_n "checking where to install Ruby scripts... " >&6; }
24696       if ${svn_cv_ruby_sitedir_libsuffix+:} false; then :
24697   $as_echo_n "(cached) " >&6
24698 else
24699
24700         svn_cv_ruby_sitedir_libsuffix="`echo "$rbconfig_sitelibdir" | \
24701                                           $SED -e "s,^$rbconfig_sitedir,,"`"
24702
24703 fi
24704
24705       SWIG_RB_SITE_LIB_DIR="${svn_ruby_installdir}${svn_cv_ruby_sitedir_libsuffix}"
24706       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG_RB_SITE_LIB_DIR" >&5
24707 $as_echo "$SWIG_RB_SITE_LIB_DIR" >&6; }
24708
24709       { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to install Ruby extensions" >&5
24710 $as_echo_n "checking where to install Ruby extensions... " >&6; }
24711       if ${svn_cv_ruby_sitedir_archsuffix+:} false; then :
24712   $as_echo_n "(cached) " >&6
24713 else
24714
24715         svn_cv_ruby_sitedir_archsuffix="`echo "$rbconfig_sitearchdir" | \
24716                                           $SED -e "s,^$rbconfig_sitedir,,"`"
24717
24718 fi
24719
24720       SWIG_RB_SITE_ARCH_DIR="${svn_ruby_installdir}${svn_cv_ruby_sitedir_archsuffix}"
24721       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG_RB_SITE_ARCH_DIR" >&5
24722 $as_echo "$SWIG_RB_SITE_ARCH_DIR" >&6; }
24723
24724       { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to use output level for Ruby bindings tests" >&5
24725 $as_echo_n "checking how to use output level for Ruby bindings tests... " >&6; }
24726       if ${svn_cv_ruby_test_verbose+:} false; then :
24727   $as_echo_n "(cached) " >&6
24728 else
24729
24730         svn_cv_ruby_test_verbose="normal"
24731
24732 fi
24733
24734
24735 # Check whether --with-ruby-test-verbose was given.
24736 if test "${with_ruby_test_verbose+set}" = set; then :
24737   withval=$with_ruby_test_verbose; svn_ruby_test_verbose="$withval"
24738 else
24739   svn_ruby_test_verbose="$svn_cv_ruby_test_verbose"
24740 fi
24741
24742         SWIG_RB_TEST_VERBOSE="$svn_ruby_test_verbose"
24743         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG_RB_TEST_VERBOSE" >&5
24744 $as_echo "$SWIG_RB_TEST_VERBOSE" >&6; }
24745     fi
24746   fi
24747
24748
24749
24750
24751
24752
24753
24754
24755
24756
24757
24758
24759
24760
24761
24762       ;;
24763       "yes")
24764
24765   where=required
24766
24767   if test $where = no; then
24768     SWIG=none
24769   elif test $where = required || test $where = check; then
24770     # Extract the first word of "swig", so it can be a program name with args.
24771 set dummy swig; ac_word=$2
24772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24773 $as_echo_n "checking for $ac_word... " >&6; }
24774 if ${ac_cv_path_SWIG+:} false; then :
24775   $as_echo_n "(cached) " >&6
24776 else
24777   case $SWIG in
24778   [\\/]* | ?:[\\/]*)
24779   ac_cv_path_SWIG="$SWIG" # Let the user override the test with a path.
24780   ;;
24781   *)
24782   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24783 for as_dir in $PATH
24784 do
24785   IFS=$as_save_IFS
24786   test -z "$as_dir" && as_dir=.
24787     for ac_exec_ext in '' $ac_executable_extensions; do
24788   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24789     ac_cv_path_SWIG="$as_dir/$ac_word$ac_exec_ext"
24790     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24791     break 2
24792   fi
24793 done
24794   done
24795 IFS=$as_save_IFS
24796
24797   test -z "$ac_cv_path_SWIG" && ac_cv_path_SWIG="none"
24798   ;;
24799 esac
24800 fi
24801 SWIG=$ac_cv_path_SWIG
24802 if test -n "$SWIG"; then
24803   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG" >&5
24804 $as_echo "$SWIG" >&6; }
24805 else
24806   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24807 $as_echo "no" >&6; }
24808 fi
24809
24810
24811     if test "$SWIG" = "none" && test $where = required; then
24812       as_fn_error $? "SWIG required, but not found" "$LINENO" 5
24813     fi
24814   else
24815     if test -f "$where"; then
24816       SWIG="$where"
24817     else
24818       SWIG="$where/bin/swig"
24819     fi
24820     if test ! -f "$SWIG" || test ! -x "$SWIG"; then
24821       as_fn_error $? "Could not find swig binary at $SWIG" "$LINENO" 5
24822     fi
24823   fi
24824
24825   if test "$SWIG" != "none"; then
24826     { $as_echo "$as_me:${as_lineno-$LINENO}: checking swig version" >&5
24827 $as_echo_n "checking swig version... " >&6; }
24828     SWIG_VERSION_RAW="`$SWIG -version 2>&1 | \
24829                        $SED -ne 's/^.*Version \(.*\)$/\1/p'`"
24830     # We want the version as an integer so we can test against
24831     # which version we're using.  SWIG doesn't provide this
24832     # to us so we have to come up with it on our own.
24833     # The major is passed straight through,
24834     # the minor is zero padded to two places,
24835     # and the patch level is zero padded to three places.
24836     # e.g. 1.3.24 becomes 103024
24837     SWIG_VERSION="`echo \"$SWIG_VERSION_RAW\" | \
24838                   $SED -e 's/[^0-9\.].*$//' \
24839                       -e 's/\.\([0-9]\)$/.0\1/' \
24840                       -e 's/\.\([0-9][0-9]\)$/.0\1/' \
24841                       -e 's/\.\([0-9]\)\./0\1/; s/\.//g;'`"
24842     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG_VERSION_RAW" >&5
24843 $as_echo "$SWIG_VERSION_RAW" >&6; }
24844     # If you change the required swig version number, don't forget to update:
24845     #   subversion/bindings/swig/INSTALL
24846     if test -n "$SWIG_VERSION" && test "$SWIG_VERSION" -ge "103024"; then
24847       SWIG_SUITABLE=yes
24848     else
24849       SWIG_SUITABLE=no
24850       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Detected SWIG version $SWIG_VERSION_RAW" >&5
24851 $as_echo "$as_me: WARNING: Detected SWIG version $SWIG_VERSION_RAW" >&2;}
24852       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Subversion requires SWIG >= 1.3.24" >&5
24853 $as_echo "$as_me: WARNING: Subversion requires SWIG >= 1.3.24" >&2;}
24854     fi
24855
24856     SWIG_PY_COMPILE="none"
24857     SWIG_PY_LINK="none"
24858     if test "$PYTHON" != "none"; then
24859       { $as_echo "$as_me:${as_lineno-$LINENO}: Configuring python swig binding" >&5
24860 $as_echo "$as_me: Configuring python swig binding" >&6;}
24861
24862       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python includes" >&5
24863 $as_echo_n "checking for Python includes... " >&6; }
24864 if ${ac_cv_python_includes+:} false; then :
24865   $as_echo_n "(cached) " >&6
24866 else
24867
24868         ac_cv_python_includes="`$PYTHON ${abs_srcdir}/build/get-py-info.py --includes`"
24869
24870 fi
24871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_python_includes" >&5
24872 $as_echo "$ac_cv_python_includes" >&6; }
24873       SWIG_PY_INCLUDES="\$(SWIG_INCLUDES) $ac_cv_python_includes"
24874
24875       if test "$ac_cv_python_includes" = "none"; then
24876         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: python bindings cannot be built without distutils module" >&5
24877 $as_echo "$as_me: WARNING: python bindings cannot be built without distutils module" >&2;}
24878       fi
24879
24880       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiling Python extensions" >&5
24881 $as_echo_n "checking for compiling Python extensions... " >&6; }
24882 if ${ac_cv_python_compile+:} false; then :
24883   $as_echo_n "(cached) " >&6
24884 else
24885
24886         ac_cv_python_compile="`$PYTHON ${abs_srcdir}/build/get-py-info.py --compile`"
24887
24888 fi
24889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_python_compile" >&5
24890 $as_echo "$ac_cv_python_compile" >&6; }
24891       SWIG_PY_COMPILE="$ac_cv_python_compile $CFLAGS"
24892
24893       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linking Python extensions" >&5
24894 $as_echo_n "checking for linking Python extensions... " >&6; }
24895 if ${ac_cv_python_link+:} false; then :
24896   $as_echo_n "(cached) " >&6
24897 else
24898
24899         ac_cv_python_link="`$PYTHON ${abs_srcdir}/build/get-py-info.py --link`"
24900
24901 fi
24902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_python_link" >&5
24903 $as_echo "$ac_cv_python_link" >&6; }
24904       SWIG_PY_LINK="$ac_cv_python_link"
24905
24906       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linking Python libraries" >&5
24907 $as_echo_n "checking for linking Python libraries... " >&6; }
24908 if ${ac_cv_python_libs+:} false; then :
24909   $as_echo_n "(cached) " >&6
24910 else
24911
24912         ac_cv_python_libs="`$PYTHON ${abs_srcdir}/build/get-py-info.py --libs`"
24913
24914 fi
24915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_python_libs" >&5
24916 $as_echo "$ac_cv_python_libs" >&6; }
24917       SWIG_PY_LIBS="`
24918   input_flags="$ac_cv_python_libs"
24919   output_flags=""
24920   filtered_dirs="/lib /lib64 /usr/lib /usr/lib64"
24921   for flag in $input_flags; do
24922     filter="no"
24923     for dir in $filtered_dirs; do
24924       if test "$flag" = "-L$dir" || test "$flag" = "-L$dir/"; then
24925         filter="yes"
24926         break
24927       fi
24928     done
24929     if test "$filter" = "no"; then
24930       output_flags="$output_flags $flag"
24931     fi
24932   done
24933   if test -n "$output_flags"; then
24934     printf "%s" "${output_flags# }"
24935   fi
24936 `"
24937
24938                         SVN_PYCFMT_SAVE_CPPFLAGS="$CPPFLAGS"
24939       CPPFLAGS="$CPPFLAGS $SVN_APR_INCLUDES"
24940       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for apr_int64_t Python/C API format string" >&5
24941 $as_echo_n "checking for apr_int64_t Python/C API format string... " >&6; }
24942 if ${svn_cv_pycfmt_apr_int64_t+:} false; then :
24943   $as_echo_n "(cached) " >&6
24944 else
24945
24946         if test "x$svn_cv_pycfmt_apr_int64_t" = "x"; then
24947           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24948 /* end confdefs.h.  */
24949 #include <apr.h>
24950                         MaTcHtHiS APR_INT64_T_FMT EnDeNd
24951 _ACEOF
24952 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24953   $EGREP "MaTcHtHiS +\"lld\" +EnDeNd" >/dev/null 2>&1; then :
24954   svn_cv_pycfmt_apr_int64_t="L"
24955 fi
24956 rm -f conftest*
24957
24958         fi
24959         if test "x$svn_cv_pycfmt_apr_int64_t" = "x"; then
24960           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24961 /* end confdefs.h.  */
24962 r
24963                        #include <apr.h>
24964                         MaTcHtHiS APR_INT64_T_FMT EnDeNd
24965 _ACEOF
24966 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24967   $EGREP "MaTcHtHiS +\"ld\" +EnDeNd" >/dev/null 2>&1; then :
24968   svn_cv_pycfmt_apr_int64_t="l"
24969 fi
24970 rm -f conftest*
24971
24972         fi
24973         if test "x$svn_cv_pycfmt_apr_int64_t" = "x"; then
24974           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24975 /* end confdefs.h.  */
24976 #include <apr.h>
24977                         MaTcHtHiS APR_INT64_T_FMT EnDeNd
24978 _ACEOF
24979 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24980   $EGREP "MaTcHtHiS +\"d\" +EnDeNd" >/dev/null 2>&1; then :
24981   svn_cv_pycfmt_apr_int64_t="i"
24982 fi
24983 rm -f conftest*
24984
24985         fi
24986
24987 fi
24988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $svn_cv_pycfmt_apr_int64_t" >&5
24989 $as_echo "$svn_cv_pycfmt_apr_int64_t" >&6; }
24990       CPPFLAGS="$SVN_PYCFMT_SAVE_CPPFLAGS"
24991       if test "x$svn_cv_pycfmt_apr_int64_t" = "x"; then
24992         as_fn_error $? "failed to recognize APR_INT64_T_FMT on this platform" "$LINENO" 5
24993       fi
24994
24995 cat >>confdefs.h <<_ACEOF
24996 #define SVN_APR_INT64_T_PYCFMT "$svn_cv_pycfmt_apr_int64_t"
24997 _ACEOF
24998
24999     fi
25000
25001     if test "$PERL" != "none"; then
25002       { $as_echo "$as_me:${as_lineno-$LINENO}: checking perl version" >&5
25003 $as_echo_n "checking perl version... " >&6; }
25004                   PERL_VERSION="`$PERL -e 'q([); print $] * 1000000,$/;'`"
25005       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL_VERSION" >&5
25006 $as_echo "$PERL_VERSION" >&6; }
25007       if test "$PERL_VERSION" -ge "5008000"; then
25008         SWIG_PL_INCLUDES="\$(SWIG_INCLUDES) `$PERL -MExtUtils::Embed -e ccopts`"
25009         SWIG_PL_LINK="`$PERL -MExtUtils::Embed -e ldopts`"
25010         SWIG_PL_LINK="`
25011   input_flags="$SWIG_PL_LINK"
25012   output_flags=""
25013   filtered_dirs="/lib /lib64 /usr/lib /usr/lib64"
25014   for flag in $input_flags; do
25015     filter="no"
25016     for dir in $filtered_dirs; do
25017       if test "$flag" = "-L$dir" || test "$flag" = "-L$dir/"; then
25018         filter="yes"
25019         break
25020       fi
25021     done
25022     if test "$filter" = "no"; then
25023       output_flags="$output_flags $flag"
25024     fi
25025   done
25026   if test -n "$output_flags"; then
25027     printf "%s" "${output_flags# }"
25028   fi
25029 `"
25030       else
25031         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: perl bindings require perl 5.8.0 or newer." >&5
25032 $as_echo "$as_me: WARNING: perl bindings require perl 5.8.0 or newer." >&2;}
25033       fi
25034     fi
25035
25036     SWIG_RB_COMPILE="none"
25037     SWIG_RB_LINK="none"
25038     if test "$RUBY" != "none"; then
25039       rbconfig="$RUBY -rrbconfig -e "
25040
25041       for var_name in arch archdir CC LDSHARED DLEXT LIBS LIBRUBYARG \
25042                       rubyhdrdir rubyarchhdrdir sitedir sitelibdir sitearchdir libdir
25043       do
25044         rbconfig_tmp=`$rbconfig "print RbConfig::CONFIG['$var_name']"`
25045         eval "rbconfig_$var_name=\"$rbconfig_tmp\""
25046       done
25047
25048       { $as_echo "$as_me:${as_lineno-$LINENO}: Configuring Ruby SWIG binding" >&5
25049 $as_echo "$as_me: Configuring Ruby SWIG binding" >&6;}
25050
25051       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ruby include path" >&5
25052 $as_echo_n "checking for Ruby include path... " >&6; }
25053 if ${svn_cv_ruby_includes+:} false; then :
25054   $as_echo_n "(cached) " >&6
25055 else
25056
25057       if test -d "$rbconfig_rubyhdrdir"; then
25058                 svn_cv_ruby_includes="-I. -I$rbconfig_rubyhdrdir -I$rbconfig_rubyhdrdir/ruby -I$rbconfig_rubyhdrdir/ruby/backward"
25059         if test -d "$rbconfig_rubyarchhdrdir"; then
25060                     svn_cv_ruby_includes="$svn_cv_ruby_includes -I$rbconfig_rubyarchhdrdir"
25061         else
25062           svn_cv_ruby_includes="$svn_cv_ruby_includes -I$rbconfig_rubyhdrdir/$rbconfig_arch"
25063         fi
25064       else
25065                 svn_cv_ruby_includes="-I. -I$rbconfig_archdir"
25066       fi
25067
25068 fi
25069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $svn_cv_ruby_includes" >&5
25070 $as_echo "$svn_cv_ruby_includes" >&6; }
25071       SWIG_RB_INCLUDES="\$(SWIG_INCLUDES) $svn_cv_ruby_includes"
25072
25073       { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compile Ruby extensions" >&5
25074 $as_echo_n "checking how to compile Ruby extensions... " >&6; }
25075 if ${svn_cv_ruby_compile+:} false; then :
25076   $as_echo_n "(cached) " >&6
25077 else
25078
25079         svn_cv_ruby_compile="$rbconfig_CC $CFLAGS"
25080
25081 fi
25082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $svn_cv_ruby_compile" >&5
25083 $as_echo "$svn_cv_ruby_compile" >&6; }
25084       SWIG_RB_COMPILE="$svn_cv_ruby_compile"
25085
25086   SWIG_RB_COMPILE=`echo "$SWIG_RB_COMPILE" | $SED -e 's/-ansi//'`
25087
25088
25089   SWIG_RB_COMPILE=`echo "$SWIG_RB_COMPILE" | $SED -e 's/-std=c89//'`
25090
25091
25092   SWIG_RB_COMPILE=`echo "$SWIG_RB_COMPILE" | $SED -e 's/-std=c90//'`
25093
25094             SWIG_RB_COMPILE="$SWIG_RB_COMPILE -Wno-int-to-pointer-cast"
25095
25096       { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link Ruby extensions" >&5
25097 $as_echo_n "checking how to link Ruby extensions... " >&6; }
25098 if ${svn_cv_ruby_link+:} false; then :
25099   $as_echo_n "(cached) " >&6
25100 else
25101
25102         svn_cv_ruby_link="`$RUBY -e 'ARGV.shift; print ARGV.join(%q( ))' \
25103                              $rbconfig_LDSHARED`"
25104         svn_cv_ruby_link="$rbconfig_CC $svn_cv_ruby_link"
25105         svn_cv_ruby_link="$svn_cv_ruby_link -shrext .$rbconfig_DLEXT"
25106
25107 fi
25108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $svn_cv_ruby_link" >&5
25109 $as_echo "$svn_cv_ruby_link" >&6; }
25110       SWIG_RB_LINK="$svn_cv_ruby_link"
25111
25112       { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link Ruby libraries" >&5
25113 $as_echo_n "checking how to link Ruby libraries... " >&6; }
25114 if ${ac_cv_ruby_libs+:} false; then :
25115   $as_echo_n "(cached) " >&6
25116 else
25117
25118         ac_cv_ruby_libs="$rbconfig_LIBRUBYARG $rbconfig_LIBS"
25119
25120 fi
25121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_ruby_libs" >&5
25122 $as_echo "$ac_cv_ruby_libs" >&6; }
25123       SWIG_RB_LIBS="`
25124   input_flags="$ac_cv_ruby_libs"
25125   output_flags=""
25126   filtered_dirs="/lib /lib64 /usr/lib /usr/lib64"
25127   for flag in $input_flags; do
25128     filter="no"
25129     for dir in $filtered_dirs; do
25130       if test "$flag" = "-L$dir" || test "$flag" = "-L$dir/"; then
25131         filter="yes"
25132         break
25133       fi
25134     done
25135     if test "$filter" = "no"; then
25136       output_flags="$output_flags $flag"
25137     fi
25138   done
25139   if test -n "$output_flags"; then
25140     printf "%s" "${output_flags# }"
25141   fi
25142 `"
25143
25144       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rb_errinfo" >&5
25145 $as_echo_n "checking for rb_errinfo... " >&6; }
25146       old_CFLAGS="$CFLAGS"
25147       old_LIBS="$LIBS"
25148       CFLAGS="$CFLAGS $svn_cv_ruby_includes"
25149
25150   CFLAGS=`echo "$CFLAGS" | $SED -e 's/-ansi//'`
25151
25152
25153   CFLAGS=`echo "$CFLAGS" | $SED -e 's/-std=c89//'`
25154
25155
25156   CFLAGS=`echo "$CFLAGS" | $SED -e 's/-std=c90//'`
25157
25158       LIBS="$SWIG_RB_LIBS"
25159       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25160 /* end confdefs.h.  */
25161
25162 #include <ruby.h>
25163 int main()
25164 {rb_errinfo();}
25165 _ACEOF
25166 if ac_fn_c_try_link "$LINENO"; then :
25167   have_rb_errinfo="yes"
25168 else
25169   have_rb_errinfo="no"
25170 fi
25171 rm -f core conftest.err conftest.$ac_objext \
25172     conftest$ac_exeext conftest.$ac_ext
25173       if test "$have_rb_errinfo" = "yes"; then
25174         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25175 $as_echo "yes" >&6; }
25176
25177 $as_echo "#define HAVE_RB_ERRINFO 1" >>confdefs.h
25178
25179       else
25180         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25181 $as_echo "no" >&6; }
25182       fi
25183       CFLAGS="$old_CFLAGS"
25184       LIBS="$old_LIBS"
25185
25186       if ${svn_cv_ruby_sitedir+:} false; then :
25187   $as_echo_n "(cached) " >&6
25188 else
25189
25190         svn_cv_ruby_sitedir="$rbconfig_sitedir"
25191
25192 fi
25193
25194
25195 # Check whether --with-ruby-sitedir was given.
25196 if test "${with_ruby_sitedir+set}" = set; then :
25197   withval=$with_ruby_sitedir; svn_ruby_installdir="$withval"
25198 else
25199   svn_ruby_installdir="$svn_cv_ruby_sitedir"
25200 fi
25201
25202
25203       { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to install Ruby scripts" >&5
25204 $as_echo_n "checking where to install Ruby scripts... " >&6; }
25205       if ${svn_cv_ruby_sitedir_libsuffix+:} false; then :
25206   $as_echo_n "(cached) " >&6
25207 else
25208
25209         svn_cv_ruby_sitedir_libsuffix="`echo "$rbconfig_sitelibdir" | \
25210                                           $SED -e "s,^$rbconfig_sitedir,,"`"
25211
25212 fi
25213
25214       SWIG_RB_SITE_LIB_DIR="${svn_ruby_installdir}${svn_cv_ruby_sitedir_libsuffix}"
25215       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG_RB_SITE_LIB_DIR" >&5
25216 $as_echo "$SWIG_RB_SITE_LIB_DIR" >&6; }
25217
25218       { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to install Ruby extensions" >&5
25219 $as_echo_n "checking where to install Ruby extensions... " >&6; }
25220       if ${svn_cv_ruby_sitedir_archsuffix+:} false; then :
25221   $as_echo_n "(cached) " >&6
25222 else
25223
25224         svn_cv_ruby_sitedir_archsuffix="`echo "$rbconfig_sitearchdir" | \
25225                                           $SED -e "s,^$rbconfig_sitedir,,"`"
25226
25227 fi
25228
25229       SWIG_RB_SITE_ARCH_DIR="${svn_ruby_installdir}${svn_cv_ruby_sitedir_archsuffix}"
25230       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG_RB_SITE_ARCH_DIR" >&5
25231 $as_echo "$SWIG_RB_SITE_ARCH_DIR" >&6; }
25232
25233       { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to use output level for Ruby bindings tests" >&5
25234 $as_echo_n "checking how to use output level for Ruby bindings tests... " >&6; }
25235       if ${svn_cv_ruby_test_verbose+:} false; then :
25236   $as_echo_n "(cached) " >&6
25237 else
25238
25239         svn_cv_ruby_test_verbose="normal"
25240
25241 fi
25242
25243
25244 # Check whether --with-ruby-test-verbose was given.
25245 if test "${with_ruby_test_verbose+set}" = set; then :
25246   withval=$with_ruby_test_verbose; svn_ruby_test_verbose="$withval"
25247 else
25248   svn_ruby_test_verbose="$svn_cv_ruby_test_verbose"
25249 fi
25250
25251         SWIG_RB_TEST_VERBOSE="$svn_ruby_test_verbose"
25252         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG_RB_TEST_VERBOSE" >&5
25253 $as_echo "$SWIG_RB_TEST_VERBOSE" >&6; }
25254     fi
25255   fi
25256
25257
25258
25259
25260
25261
25262
25263
25264
25265
25266
25267
25268
25269
25270
25271       ;;
25272       *)
25273
25274   where=$withval
25275
25276   if test $where = no; then
25277     SWIG=none
25278   elif test $where = required || test $where = check; then
25279     # Extract the first word of "swig", so it can be a program name with args.
25280 set dummy swig; ac_word=$2
25281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25282 $as_echo_n "checking for $ac_word... " >&6; }
25283 if ${ac_cv_path_SWIG+:} false; then :
25284   $as_echo_n "(cached) " >&6
25285 else
25286   case $SWIG in
25287   [\\/]* | ?:[\\/]*)
25288   ac_cv_path_SWIG="$SWIG" # Let the user override the test with a path.
25289   ;;
25290   *)
25291   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25292 for as_dir in $PATH
25293 do
25294   IFS=$as_save_IFS
25295   test -z "$as_dir" && as_dir=.
25296     for ac_exec_ext in '' $ac_executable_extensions; do
25297   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25298     ac_cv_path_SWIG="$as_dir/$ac_word$ac_exec_ext"
25299     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25300     break 2
25301   fi
25302 done
25303   done
25304 IFS=$as_save_IFS
25305
25306   test -z "$ac_cv_path_SWIG" && ac_cv_path_SWIG="none"
25307   ;;
25308 esac
25309 fi
25310 SWIG=$ac_cv_path_SWIG
25311 if test -n "$SWIG"; then
25312   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG" >&5
25313 $as_echo "$SWIG" >&6; }
25314 else
25315   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25316 $as_echo "no" >&6; }
25317 fi
25318
25319
25320     if test "$SWIG" = "none" && test $where = required; then
25321       as_fn_error $? "SWIG required, but not found" "$LINENO" 5
25322     fi
25323   else
25324     if test -f "$where"; then
25325       SWIG="$where"
25326     else
25327       SWIG="$where/bin/swig"
25328     fi
25329     if test ! -f "$SWIG" || test ! -x "$SWIG"; then
25330       as_fn_error $? "Could not find swig binary at $SWIG" "$LINENO" 5
25331     fi
25332   fi
25333
25334   if test "$SWIG" != "none"; then
25335     { $as_echo "$as_me:${as_lineno-$LINENO}: checking swig version" >&5
25336 $as_echo_n "checking swig version... " >&6; }
25337     SWIG_VERSION_RAW="`$SWIG -version 2>&1 | \
25338                        $SED -ne 's/^.*Version \(.*\)$/\1/p'`"
25339     # We want the version as an integer so we can test against
25340     # which version we're using.  SWIG doesn't provide this
25341     # to us so we have to come up with it on our own.
25342     # The major is passed straight through,
25343     # the minor is zero padded to two places,
25344     # and the patch level is zero padded to three places.
25345     # e.g. 1.3.24 becomes 103024
25346     SWIG_VERSION="`echo \"$SWIG_VERSION_RAW\" | \
25347                   $SED -e 's/[^0-9\.].*$//' \
25348                       -e 's/\.\([0-9]\)$/.0\1/' \
25349                       -e 's/\.\([0-9][0-9]\)$/.0\1/' \
25350                       -e 's/\.\([0-9]\)\./0\1/; s/\.//g;'`"
25351     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG_VERSION_RAW" >&5
25352 $as_echo "$SWIG_VERSION_RAW" >&6; }
25353     # If you change the required swig version number, don't forget to update:
25354     #   subversion/bindings/swig/INSTALL
25355     if test -n "$SWIG_VERSION" && test "$SWIG_VERSION" -ge "103024"; then
25356       SWIG_SUITABLE=yes
25357     else
25358       SWIG_SUITABLE=no
25359       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Detected SWIG version $SWIG_VERSION_RAW" >&5
25360 $as_echo "$as_me: WARNING: Detected SWIG version $SWIG_VERSION_RAW" >&2;}
25361       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Subversion requires SWIG >= 1.3.24" >&5
25362 $as_echo "$as_me: WARNING: Subversion requires SWIG >= 1.3.24" >&2;}
25363     fi
25364
25365     SWIG_PY_COMPILE="none"
25366     SWIG_PY_LINK="none"
25367     if test "$PYTHON" != "none"; then
25368       { $as_echo "$as_me:${as_lineno-$LINENO}: Configuring python swig binding" >&5
25369 $as_echo "$as_me: Configuring python swig binding" >&6;}
25370
25371       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python includes" >&5
25372 $as_echo_n "checking for Python includes... " >&6; }
25373 if ${ac_cv_python_includes+:} false; then :
25374   $as_echo_n "(cached) " >&6
25375 else
25376
25377         ac_cv_python_includes="`$PYTHON ${abs_srcdir}/build/get-py-info.py --includes`"
25378
25379 fi
25380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_python_includes" >&5
25381 $as_echo "$ac_cv_python_includes" >&6; }
25382       SWIG_PY_INCLUDES="\$(SWIG_INCLUDES) $ac_cv_python_includes"
25383
25384       if test "$ac_cv_python_includes" = "none"; then
25385         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: python bindings cannot be built without distutils module" >&5
25386 $as_echo "$as_me: WARNING: python bindings cannot be built without distutils module" >&2;}
25387       fi
25388
25389       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiling Python extensions" >&5
25390 $as_echo_n "checking for compiling Python extensions... " >&6; }
25391 if ${ac_cv_python_compile+:} false; then :
25392   $as_echo_n "(cached) " >&6
25393 else
25394
25395         ac_cv_python_compile="`$PYTHON ${abs_srcdir}/build/get-py-info.py --compile`"
25396
25397 fi
25398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_python_compile" >&5
25399 $as_echo "$ac_cv_python_compile" >&6; }
25400       SWIG_PY_COMPILE="$ac_cv_python_compile $CFLAGS"
25401
25402       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linking Python extensions" >&5
25403 $as_echo_n "checking for linking Python extensions... " >&6; }
25404 if ${ac_cv_python_link+:} false; then :
25405   $as_echo_n "(cached) " >&6
25406 else
25407
25408         ac_cv_python_link="`$PYTHON ${abs_srcdir}/build/get-py-info.py --link`"
25409
25410 fi
25411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_python_link" >&5
25412 $as_echo "$ac_cv_python_link" >&6; }
25413       SWIG_PY_LINK="$ac_cv_python_link"
25414
25415       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linking Python libraries" >&5
25416 $as_echo_n "checking for linking Python libraries... " >&6; }
25417 if ${ac_cv_python_libs+:} false; then :
25418   $as_echo_n "(cached) " >&6
25419 else
25420
25421         ac_cv_python_libs="`$PYTHON ${abs_srcdir}/build/get-py-info.py --libs`"
25422
25423 fi
25424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_python_libs" >&5
25425 $as_echo "$ac_cv_python_libs" >&6; }
25426       SWIG_PY_LIBS="`
25427   input_flags="$ac_cv_python_libs"
25428   output_flags=""
25429   filtered_dirs="/lib /lib64 /usr/lib /usr/lib64"
25430   for flag in $input_flags; do
25431     filter="no"
25432     for dir in $filtered_dirs; do
25433       if test "$flag" = "-L$dir" || test "$flag" = "-L$dir/"; then
25434         filter="yes"
25435         break
25436       fi
25437     done
25438     if test "$filter" = "no"; then
25439       output_flags="$output_flags $flag"
25440     fi
25441   done
25442   if test -n "$output_flags"; then
25443     printf "%s" "${output_flags# }"
25444   fi
25445 `"
25446
25447                         SVN_PYCFMT_SAVE_CPPFLAGS="$CPPFLAGS"
25448       CPPFLAGS="$CPPFLAGS $SVN_APR_INCLUDES"
25449       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for apr_int64_t Python/C API format string" >&5
25450 $as_echo_n "checking for apr_int64_t Python/C API format string... " >&6; }
25451 if ${svn_cv_pycfmt_apr_int64_t+:} false; then :
25452   $as_echo_n "(cached) " >&6
25453 else
25454
25455         if test "x$svn_cv_pycfmt_apr_int64_t" = "x"; then
25456           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25457 /* end confdefs.h.  */
25458 #include <apr.h>
25459                         MaTcHtHiS APR_INT64_T_FMT EnDeNd
25460 _ACEOF
25461 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25462   $EGREP "MaTcHtHiS +\"lld\" +EnDeNd" >/dev/null 2>&1; then :
25463   svn_cv_pycfmt_apr_int64_t="L"
25464 fi
25465 rm -f conftest*
25466
25467         fi
25468         if test "x$svn_cv_pycfmt_apr_int64_t" = "x"; then
25469           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25470 /* end confdefs.h.  */
25471 r
25472                        #include <apr.h>
25473                         MaTcHtHiS APR_INT64_T_FMT EnDeNd
25474 _ACEOF
25475 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25476   $EGREP "MaTcHtHiS +\"ld\" +EnDeNd" >/dev/null 2>&1; then :
25477   svn_cv_pycfmt_apr_int64_t="l"
25478 fi
25479 rm -f conftest*
25480
25481         fi
25482         if test "x$svn_cv_pycfmt_apr_int64_t" = "x"; then
25483           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25484 /* end confdefs.h.  */
25485 #include <apr.h>
25486                         MaTcHtHiS APR_INT64_T_FMT EnDeNd
25487 _ACEOF
25488 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25489   $EGREP "MaTcHtHiS +\"d\" +EnDeNd" >/dev/null 2>&1; then :
25490   svn_cv_pycfmt_apr_int64_t="i"
25491 fi
25492 rm -f conftest*
25493
25494         fi
25495
25496 fi
25497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $svn_cv_pycfmt_apr_int64_t" >&5
25498 $as_echo "$svn_cv_pycfmt_apr_int64_t" >&6; }
25499       CPPFLAGS="$SVN_PYCFMT_SAVE_CPPFLAGS"
25500       if test "x$svn_cv_pycfmt_apr_int64_t" = "x"; then
25501         as_fn_error $? "failed to recognize APR_INT64_T_FMT on this platform" "$LINENO" 5
25502       fi
25503
25504 cat >>confdefs.h <<_ACEOF
25505 #define SVN_APR_INT64_T_PYCFMT "$svn_cv_pycfmt_apr_int64_t"
25506 _ACEOF
25507
25508     fi
25509
25510     if test "$PERL" != "none"; then
25511       { $as_echo "$as_me:${as_lineno-$LINENO}: checking perl version" >&5
25512 $as_echo_n "checking perl version... " >&6; }
25513                   PERL_VERSION="`$PERL -e 'q([); print $] * 1000000,$/;'`"
25514       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL_VERSION" >&5
25515 $as_echo "$PERL_VERSION" >&6; }
25516       if test "$PERL_VERSION" -ge "5008000"; then
25517         SWIG_PL_INCLUDES="\$(SWIG_INCLUDES) `$PERL -MExtUtils::Embed -e ccopts`"
25518         SWIG_PL_LINK="`$PERL -MExtUtils::Embed -e ldopts`"
25519         SWIG_PL_LINK="`
25520   input_flags="$SWIG_PL_LINK"
25521   output_flags=""
25522   filtered_dirs="/lib /lib64 /usr/lib /usr/lib64"
25523   for flag in $input_flags; do
25524     filter="no"
25525     for dir in $filtered_dirs; do
25526       if test "$flag" = "-L$dir" || test "$flag" = "-L$dir/"; then
25527         filter="yes"
25528         break
25529       fi
25530     done
25531     if test "$filter" = "no"; then
25532       output_flags="$output_flags $flag"
25533     fi
25534   done
25535   if test -n "$output_flags"; then
25536     printf "%s" "${output_flags# }"
25537   fi
25538 `"
25539       else
25540         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: perl bindings require perl 5.8.0 or newer." >&5
25541 $as_echo "$as_me: WARNING: perl bindings require perl 5.8.0 or newer." >&2;}
25542       fi
25543     fi
25544
25545     SWIG_RB_COMPILE="none"
25546     SWIG_RB_LINK="none"
25547     if test "$RUBY" != "none"; then
25548       rbconfig="$RUBY -rrbconfig -e "
25549
25550       for var_name in arch archdir CC LDSHARED DLEXT LIBS LIBRUBYARG \
25551                       rubyhdrdir rubyarchhdrdir sitedir sitelibdir sitearchdir libdir
25552       do
25553         rbconfig_tmp=`$rbconfig "print RbConfig::CONFIG['$var_name']"`
25554         eval "rbconfig_$var_name=\"$rbconfig_tmp\""
25555       done
25556
25557       { $as_echo "$as_me:${as_lineno-$LINENO}: Configuring Ruby SWIG binding" >&5
25558 $as_echo "$as_me: Configuring Ruby SWIG binding" >&6;}
25559
25560       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ruby include path" >&5
25561 $as_echo_n "checking for Ruby include path... " >&6; }
25562 if ${svn_cv_ruby_includes+:} false; then :
25563   $as_echo_n "(cached) " >&6
25564 else
25565
25566       if test -d "$rbconfig_rubyhdrdir"; then
25567                 svn_cv_ruby_includes="-I. -I$rbconfig_rubyhdrdir -I$rbconfig_rubyhdrdir/ruby -I$rbconfig_rubyhdrdir/ruby/backward"
25568         if test -d "$rbconfig_rubyarchhdrdir"; then
25569                     svn_cv_ruby_includes="$svn_cv_ruby_includes -I$rbconfig_rubyarchhdrdir"
25570         else
25571           svn_cv_ruby_includes="$svn_cv_ruby_includes -I$rbconfig_rubyhdrdir/$rbconfig_arch"
25572         fi
25573       else
25574                 svn_cv_ruby_includes="-I. -I$rbconfig_archdir"
25575       fi
25576
25577 fi
25578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $svn_cv_ruby_includes" >&5
25579 $as_echo "$svn_cv_ruby_includes" >&6; }
25580       SWIG_RB_INCLUDES="\$(SWIG_INCLUDES) $svn_cv_ruby_includes"
25581
25582       { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compile Ruby extensions" >&5
25583 $as_echo_n "checking how to compile Ruby extensions... " >&6; }
25584 if ${svn_cv_ruby_compile+:} false; then :
25585   $as_echo_n "(cached) " >&6
25586 else
25587
25588         svn_cv_ruby_compile="$rbconfig_CC $CFLAGS"
25589
25590 fi
25591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $svn_cv_ruby_compile" >&5
25592 $as_echo "$svn_cv_ruby_compile" >&6; }
25593       SWIG_RB_COMPILE="$svn_cv_ruby_compile"
25594
25595   SWIG_RB_COMPILE=`echo "$SWIG_RB_COMPILE" | $SED -e 's/-ansi//'`
25596
25597
25598   SWIG_RB_COMPILE=`echo "$SWIG_RB_COMPILE" | $SED -e 's/-std=c89//'`
25599
25600
25601   SWIG_RB_COMPILE=`echo "$SWIG_RB_COMPILE" | $SED -e 's/-std=c90//'`
25602
25603             SWIG_RB_COMPILE="$SWIG_RB_COMPILE -Wno-int-to-pointer-cast"
25604
25605       { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link Ruby extensions" >&5
25606 $as_echo_n "checking how to link Ruby extensions... " >&6; }
25607 if ${svn_cv_ruby_link+:} false; then :
25608   $as_echo_n "(cached) " >&6
25609 else
25610
25611         svn_cv_ruby_link="`$RUBY -e 'ARGV.shift; print ARGV.join(%q( ))' \
25612                              $rbconfig_LDSHARED`"
25613         svn_cv_ruby_link="$rbconfig_CC $svn_cv_ruby_link"
25614         svn_cv_ruby_link="$svn_cv_ruby_link -shrext .$rbconfig_DLEXT"
25615
25616 fi
25617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $svn_cv_ruby_link" >&5
25618 $as_echo "$svn_cv_ruby_link" >&6; }
25619       SWIG_RB_LINK="$svn_cv_ruby_link"
25620
25621       { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link Ruby libraries" >&5
25622 $as_echo_n "checking how to link Ruby libraries... " >&6; }
25623 if ${ac_cv_ruby_libs+:} false; then :
25624   $as_echo_n "(cached) " >&6
25625 else
25626
25627         ac_cv_ruby_libs="$rbconfig_LIBRUBYARG $rbconfig_LIBS"
25628
25629 fi
25630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_ruby_libs" >&5
25631 $as_echo "$ac_cv_ruby_libs" >&6; }
25632       SWIG_RB_LIBS="`
25633   input_flags="$ac_cv_ruby_libs"
25634   output_flags=""
25635   filtered_dirs="/lib /lib64 /usr/lib /usr/lib64"
25636   for flag in $input_flags; do
25637     filter="no"
25638     for dir in $filtered_dirs; do
25639       if test "$flag" = "-L$dir" || test "$flag" = "-L$dir/"; then
25640         filter="yes"
25641         break
25642       fi
25643     done
25644     if test "$filter" = "no"; then
25645       output_flags="$output_flags $flag"
25646     fi
25647   done
25648   if test -n "$output_flags"; then
25649     printf "%s" "${output_flags# }"
25650   fi
25651 `"
25652
25653       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rb_errinfo" >&5
25654 $as_echo_n "checking for rb_errinfo... " >&6; }
25655       old_CFLAGS="$CFLAGS"
25656       old_LIBS="$LIBS"
25657       CFLAGS="$CFLAGS $svn_cv_ruby_includes"
25658
25659   CFLAGS=`echo "$CFLAGS" | $SED -e 's/-ansi//'`
25660
25661
25662   CFLAGS=`echo "$CFLAGS" | $SED -e 's/-std=c89//'`
25663
25664
25665   CFLAGS=`echo "$CFLAGS" | $SED -e 's/-std=c90//'`
25666
25667       LIBS="$SWIG_RB_LIBS"
25668       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25669 /* end confdefs.h.  */
25670
25671 #include <ruby.h>
25672 int main()
25673 {rb_errinfo();}
25674 _ACEOF
25675 if ac_fn_c_try_link "$LINENO"; then :
25676   have_rb_errinfo="yes"
25677 else
25678   have_rb_errinfo="no"
25679 fi
25680 rm -f core conftest.err conftest.$ac_objext \
25681     conftest$ac_exeext conftest.$ac_ext
25682       if test "$have_rb_errinfo" = "yes"; then
25683         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25684 $as_echo "yes" >&6; }
25685
25686 $as_echo "#define HAVE_RB_ERRINFO 1" >>confdefs.h
25687
25688       else
25689         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25690 $as_echo "no" >&6; }
25691       fi
25692       CFLAGS="$old_CFLAGS"
25693       LIBS="$old_LIBS"
25694
25695       if ${svn_cv_ruby_sitedir+:} false; then :
25696   $as_echo_n "(cached) " >&6
25697 else
25698
25699         svn_cv_ruby_sitedir="$rbconfig_sitedir"
25700
25701 fi
25702
25703
25704 # Check whether --with-ruby-sitedir was given.
25705 if test "${with_ruby_sitedir+set}" = set; then :
25706   withval=$with_ruby_sitedir; svn_ruby_installdir="$withval"
25707 else
25708   svn_ruby_installdir="$svn_cv_ruby_sitedir"
25709 fi
25710
25711
25712       { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to install Ruby scripts" >&5
25713 $as_echo_n "checking where to install Ruby scripts... " >&6; }
25714       if ${svn_cv_ruby_sitedir_libsuffix+:} false; then :
25715   $as_echo_n "(cached) " >&6
25716 else
25717
25718         svn_cv_ruby_sitedir_libsuffix="`echo "$rbconfig_sitelibdir" | \
25719                                           $SED -e "s,^$rbconfig_sitedir,,"`"
25720
25721 fi
25722
25723       SWIG_RB_SITE_LIB_DIR="${svn_ruby_installdir}${svn_cv_ruby_sitedir_libsuffix}"
25724       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG_RB_SITE_LIB_DIR" >&5
25725 $as_echo "$SWIG_RB_SITE_LIB_DIR" >&6; }
25726
25727       { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to install Ruby extensions" >&5
25728 $as_echo_n "checking where to install Ruby extensions... " >&6; }
25729       if ${svn_cv_ruby_sitedir_archsuffix+:} false; then :
25730   $as_echo_n "(cached) " >&6
25731 else
25732
25733         svn_cv_ruby_sitedir_archsuffix="`echo "$rbconfig_sitearchdir" | \
25734                                           $SED -e "s,^$rbconfig_sitedir,,"`"
25735
25736 fi
25737
25738       SWIG_RB_SITE_ARCH_DIR="${svn_ruby_installdir}${svn_cv_ruby_sitedir_archsuffix}"
25739       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG_RB_SITE_ARCH_DIR" >&5
25740 $as_echo "$SWIG_RB_SITE_ARCH_DIR" >&6; }
25741
25742       { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to use output level for Ruby bindings tests" >&5
25743 $as_echo_n "checking how to use output level for Ruby bindings tests... " >&6; }
25744       if ${svn_cv_ruby_test_verbose+:} false; then :
25745   $as_echo_n "(cached) " >&6
25746 else
25747
25748         svn_cv_ruby_test_verbose="normal"
25749
25750 fi
25751
25752
25753 # Check whether --with-ruby-test-verbose was given.
25754 if test "${with_ruby_test_verbose+set}" = set; then :
25755   withval=$with_ruby_test_verbose; svn_ruby_test_verbose="$withval"
25756 else
25757   svn_ruby_test_verbose="$svn_cv_ruby_test_verbose"
25758 fi
25759
25760         SWIG_RB_TEST_VERBOSE="$svn_ruby_test_verbose"
25761         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG_RB_TEST_VERBOSE" >&5
25762 $as_echo "$SWIG_RB_TEST_VERBOSE" >&6; }
25763     fi
25764   fi
25765
25766
25767
25768
25769
25770
25771
25772
25773
25774
25775
25776
25777
25778
25779
25780       ;;
25781     esac
25782
25783 else
25784
25785
25786   where=check
25787
25788   if test $where = no; then
25789     SWIG=none
25790   elif test $where = required || test $where = check; then
25791     # Extract the first word of "swig", so it can be a program name with args.
25792 set dummy swig; ac_word=$2
25793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25794 $as_echo_n "checking for $ac_word... " >&6; }
25795 if ${ac_cv_path_SWIG+:} false; then :
25796   $as_echo_n "(cached) " >&6
25797 else
25798   case $SWIG in
25799   [\\/]* | ?:[\\/]*)
25800   ac_cv_path_SWIG="$SWIG" # Let the user override the test with a path.
25801   ;;
25802   *)
25803   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25804 for as_dir in $PATH
25805 do
25806   IFS=$as_save_IFS
25807   test -z "$as_dir" && as_dir=.
25808     for ac_exec_ext in '' $ac_executable_extensions; do
25809   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25810     ac_cv_path_SWIG="$as_dir/$ac_word$ac_exec_ext"
25811     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25812     break 2
25813   fi
25814 done
25815   done
25816 IFS=$as_save_IFS
25817
25818   test -z "$ac_cv_path_SWIG" && ac_cv_path_SWIG="none"
25819   ;;
25820 esac
25821 fi
25822 SWIG=$ac_cv_path_SWIG
25823 if test -n "$SWIG"; then
25824   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG" >&5
25825 $as_echo "$SWIG" >&6; }
25826 else
25827   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25828 $as_echo "no" >&6; }
25829 fi
25830
25831
25832     if test "$SWIG" = "none" && test $where = required; then
25833       as_fn_error $? "SWIG required, but not found" "$LINENO" 5
25834     fi
25835   else
25836     if test -f "$where"; then
25837       SWIG="$where"
25838     else
25839       SWIG="$where/bin/swig"
25840     fi
25841     if test ! -f "$SWIG" || test ! -x "$SWIG"; then
25842       as_fn_error $? "Could not find swig binary at $SWIG" "$LINENO" 5
25843     fi
25844   fi
25845
25846   if test "$SWIG" != "none"; then
25847     { $as_echo "$as_me:${as_lineno-$LINENO}: checking swig version" >&5
25848 $as_echo_n "checking swig version... " >&6; }
25849     SWIG_VERSION_RAW="`$SWIG -version 2>&1 | \
25850                        $SED -ne 's/^.*Version \(.*\)$/\1/p'`"
25851     # We want the version as an integer so we can test against
25852     # which version we're using.  SWIG doesn't provide this
25853     # to us so we have to come up with it on our own.
25854     # The major is passed straight through,
25855     # the minor is zero padded to two places,
25856     # and the patch level is zero padded to three places.
25857     # e.g. 1.3.24 becomes 103024
25858     SWIG_VERSION="`echo \"$SWIG_VERSION_RAW\" | \
25859                   $SED -e 's/[^0-9\.].*$//' \
25860                       -e 's/\.\([0-9]\)$/.0\1/' \
25861                       -e 's/\.\([0-9][0-9]\)$/.0\1/' \
25862                       -e 's/\.\([0-9]\)\./0\1/; s/\.//g;'`"
25863     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG_VERSION_RAW" >&5
25864 $as_echo "$SWIG_VERSION_RAW" >&6; }
25865     # If you change the required swig version number, don't forget to update:
25866     #   subversion/bindings/swig/INSTALL
25867     if test -n "$SWIG_VERSION" && test "$SWIG_VERSION" -ge "103024"; then
25868       SWIG_SUITABLE=yes
25869     else
25870       SWIG_SUITABLE=no
25871       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Detected SWIG version $SWIG_VERSION_RAW" >&5
25872 $as_echo "$as_me: WARNING: Detected SWIG version $SWIG_VERSION_RAW" >&2;}
25873       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Subversion requires SWIG >= 1.3.24" >&5
25874 $as_echo "$as_me: WARNING: Subversion requires SWIG >= 1.3.24" >&2;}
25875     fi
25876
25877     SWIG_PY_COMPILE="none"
25878     SWIG_PY_LINK="none"
25879     if test "$PYTHON" != "none"; then
25880       { $as_echo "$as_me:${as_lineno-$LINENO}: Configuring python swig binding" >&5
25881 $as_echo "$as_me: Configuring python swig binding" >&6;}
25882
25883       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python includes" >&5
25884 $as_echo_n "checking for Python includes... " >&6; }
25885 if ${ac_cv_python_includes+:} false; then :
25886   $as_echo_n "(cached) " >&6
25887 else
25888
25889         ac_cv_python_includes="`$PYTHON ${abs_srcdir}/build/get-py-info.py --includes`"
25890
25891 fi
25892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_python_includes" >&5
25893 $as_echo "$ac_cv_python_includes" >&6; }
25894       SWIG_PY_INCLUDES="\$(SWIG_INCLUDES) $ac_cv_python_includes"
25895
25896       if test "$ac_cv_python_includes" = "none"; then
25897         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: python bindings cannot be built without distutils module" >&5
25898 $as_echo "$as_me: WARNING: python bindings cannot be built without distutils module" >&2;}
25899       fi
25900
25901       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiling Python extensions" >&5
25902 $as_echo_n "checking for compiling Python extensions... " >&6; }
25903 if ${ac_cv_python_compile+:} false; then :
25904   $as_echo_n "(cached) " >&6
25905 else
25906
25907         ac_cv_python_compile="`$PYTHON ${abs_srcdir}/build/get-py-info.py --compile`"
25908
25909 fi
25910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_python_compile" >&5
25911 $as_echo "$ac_cv_python_compile" >&6; }
25912       SWIG_PY_COMPILE="$ac_cv_python_compile $CFLAGS"
25913
25914       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linking Python extensions" >&5
25915 $as_echo_n "checking for linking Python extensions... " >&6; }
25916 if ${ac_cv_python_link+:} false; then :
25917   $as_echo_n "(cached) " >&6
25918 else
25919
25920         ac_cv_python_link="`$PYTHON ${abs_srcdir}/build/get-py-info.py --link`"
25921
25922 fi
25923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_python_link" >&5
25924 $as_echo "$ac_cv_python_link" >&6; }
25925       SWIG_PY_LINK="$ac_cv_python_link"
25926
25927       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linking Python libraries" >&5
25928 $as_echo_n "checking for linking Python libraries... " >&6; }
25929 if ${ac_cv_python_libs+:} false; then :
25930   $as_echo_n "(cached) " >&6
25931 else
25932
25933         ac_cv_python_libs="`$PYTHON ${abs_srcdir}/build/get-py-info.py --libs`"
25934
25935 fi
25936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_python_libs" >&5
25937 $as_echo "$ac_cv_python_libs" >&6; }
25938       SWIG_PY_LIBS="`
25939   input_flags="$ac_cv_python_libs"
25940   output_flags=""
25941   filtered_dirs="/lib /lib64 /usr/lib /usr/lib64"
25942   for flag in $input_flags; do
25943     filter="no"
25944     for dir in $filtered_dirs; do
25945       if test "$flag" = "-L$dir" || test "$flag" = "-L$dir/"; then
25946         filter="yes"
25947         break
25948       fi
25949     done
25950     if test "$filter" = "no"; then
25951       output_flags="$output_flags $flag"
25952     fi
25953   done
25954   if test -n "$output_flags"; then
25955     printf "%s" "${output_flags# }"
25956   fi
25957 `"
25958
25959                         SVN_PYCFMT_SAVE_CPPFLAGS="$CPPFLAGS"
25960       CPPFLAGS="$CPPFLAGS $SVN_APR_INCLUDES"
25961       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for apr_int64_t Python/C API format string" >&5
25962 $as_echo_n "checking for apr_int64_t Python/C API format string... " >&6; }
25963 if ${svn_cv_pycfmt_apr_int64_t+:} false; then :
25964   $as_echo_n "(cached) " >&6
25965 else
25966
25967         if test "x$svn_cv_pycfmt_apr_int64_t" = "x"; then
25968           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25969 /* end confdefs.h.  */
25970 #include <apr.h>
25971                         MaTcHtHiS APR_INT64_T_FMT EnDeNd
25972 _ACEOF
25973 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25974   $EGREP "MaTcHtHiS +\"lld\" +EnDeNd" >/dev/null 2>&1; then :
25975   svn_cv_pycfmt_apr_int64_t="L"
25976 fi
25977 rm -f conftest*
25978
25979         fi
25980         if test "x$svn_cv_pycfmt_apr_int64_t" = "x"; then
25981           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25982 /* end confdefs.h.  */
25983 r
25984                        #include <apr.h>
25985                         MaTcHtHiS APR_INT64_T_FMT EnDeNd
25986 _ACEOF
25987 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25988   $EGREP "MaTcHtHiS +\"ld\" +EnDeNd" >/dev/null 2>&1; then :
25989   svn_cv_pycfmt_apr_int64_t="l"
25990 fi
25991 rm -f conftest*
25992
25993         fi
25994         if test "x$svn_cv_pycfmt_apr_int64_t" = "x"; then
25995           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25996 /* end confdefs.h.  */
25997 #include <apr.h>
25998                         MaTcHtHiS APR_INT64_T_FMT EnDeNd
25999 _ACEOF
26000 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26001   $EGREP "MaTcHtHiS +\"d\" +EnDeNd" >/dev/null 2>&1; then :
26002   svn_cv_pycfmt_apr_int64_t="i"
26003 fi
26004 rm -f conftest*
26005
26006         fi
26007
26008 fi
26009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $svn_cv_pycfmt_apr_int64_t" >&5
26010 $as_echo "$svn_cv_pycfmt_apr_int64_t" >&6; }
26011       CPPFLAGS="$SVN_PYCFMT_SAVE_CPPFLAGS"
26012       if test "x$svn_cv_pycfmt_apr_int64_t" = "x"; then
26013         as_fn_error $? "failed to recognize APR_INT64_T_FMT on this platform" "$LINENO" 5
26014       fi
26015
26016 cat >>confdefs.h <<_ACEOF
26017 #define SVN_APR_INT64_T_PYCFMT "$svn_cv_pycfmt_apr_int64_t"
26018 _ACEOF
26019
26020     fi
26021
26022     if test "$PERL" != "none"; then
26023       { $as_echo "$as_me:${as_lineno-$LINENO}: checking perl version" >&5
26024 $as_echo_n "checking perl version... " >&6; }
26025                   PERL_VERSION="`$PERL -e 'q([); print $] * 1000000,$/;'`"
26026       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL_VERSION" >&5
26027 $as_echo "$PERL_VERSION" >&6; }
26028       if test "$PERL_VERSION" -ge "5008000"; then
26029         SWIG_PL_INCLUDES="\$(SWIG_INCLUDES) `$PERL -MExtUtils::Embed -e ccopts`"
26030         SWIG_PL_LINK="`$PERL -MExtUtils::Embed -e ldopts`"
26031         SWIG_PL_LINK="`
26032   input_flags="$SWIG_PL_LINK"
26033   output_flags=""
26034   filtered_dirs="/lib /lib64 /usr/lib /usr/lib64"
26035   for flag in $input_flags; do
26036     filter="no"
26037     for dir in $filtered_dirs; do
26038       if test "$flag" = "-L$dir" || test "$flag" = "-L$dir/"; then
26039         filter="yes"
26040         break
26041       fi
26042     done
26043     if test "$filter" = "no"; then
26044       output_flags="$output_flags $flag"
26045     fi
26046   done
26047   if test -n "$output_flags"; then
26048     printf "%s" "${output_flags# }"
26049   fi
26050 `"
26051       else
26052         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: perl bindings require perl 5.8.0 or newer." >&5
26053 $as_echo "$as_me: WARNING: perl bindings require perl 5.8.0 or newer." >&2;}
26054       fi
26055     fi
26056
26057     SWIG_RB_COMPILE="none"
26058     SWIG_RB_LINK="none"
26059     if test "$RUBY" != "none"; then
26060       rbconfig="$RUBY -rrbconfig -e "
26061
26062       for var_name in arch archdir CC LDSHARED DLEXT LIBS LIBRUBYARG \
26063                       rubyhdrdir rubyarchhdrdir sitedir sitelibdir sitearchdir libdir
26064       do
26065         rbconfig_tmp=`$rbconfig "print RbConfig::CONFIG['$var_name']"`
26066         eval "rbconfig_$var_name=\"$rbconfig_tmp\""
26067       done
26068
26069       { $as_echo "$as_me:${as_lineno-$LINENO}: Configuring Ruby SWIG binding" >&5
26070 $as_echo "$as_me: Configuring Ruby SWIG binding" >&6;}
26071
26072       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ruby include path" >&5
26073 $as_echo_n "checking for Ruby include path... " >&6; }
26074 if ${svn_cv_ruby_includes+:} false; then :
26075   $as_echo_n "(cached) " >&6
26076 else
26077
26078       if test -d "$rbconfig_rubyhdrdir"; then
26079                 svn_cv_ruby_includes="-I. -I$rbconfig_rubyhdrdir -I$rbconfig_rubyhdrdir/ruby -I$rbconfig_rubyhdrdir/ruby/backward"
26080         if test -d "$rbconfig_rubyarchhdrdir"; then
26081                     svn_cv_ruby_includes="$svn_cv_ruby_includes -I$rbconfig_rubyarchhdrdir"
26082         else
26083           svn_cv_ruby_includes="$svn_cv_ruby_includes -I$rbconfig_rubyhdrdir/$rbconfig_arch"
26084         fi
26085       else
26086                 svn_cv_ruby_includes="-I. -I$rbconfig_archdir"
26087       fi
26088
26089 fi
26090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $svn_cv_ruby_includes" >&5
26091 $as_echo "$svn_cv_ruby_includes" >&6; }
26092       SWIG_RB_INCLUDES="\$(SWIG_INCLUDES) $svn_cv_ruby_includes"
26093
26094       { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compile Ruby extensions" >&5
26095 $as_echo_n "checking how to compile Ruby extensions... " >&6; }
26096 if ${svn_cv_ruby_compile+:} false; then :
26097   $as_echo_n "(cached) " >&6
26098 else
26099
26100         svn_cv_ruby_compile="$rbconfig_CC $CFLAGS"
26101
26102 fi
26103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $svn_cv_ruby_compile" >&5
26104 $as_echo "$svn_cv_ruby_compile" >&6; }
26105       SWIG_RB_COMPILE="$svn_cv_ruby_compile"
26106
26107   SWIG_RB_COMPILE=`echo "$SWIG_RB_COMPILE" | $SED -e 's/-ansi//'`
26108
26109
26110   SWIG_RB_COMPILE=`echo "$SWIG_RB_COMPILE" | $SED -e 's/-std=c89//'`
26111
26112
26113   SWIG_RB_COMPILE=`echo "$SWIG_RB_COMPILE" | $SED -e 's/-std=c90//'`
26114
26115             SWIG_RB_COMPILE="$SWIG_RB_COMPILE -Wno-int-to-pointer-cast"
26116
26117       { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link Ruby extensions" >&5
26118 $as_echo_n "checking how to link Ruby extensions... " >&6; }
26119 if ${svn_cv_ruby_link+:} false; then :
26120   $as_echo_n "(cached) " >&6
26121 else
26122
26123         svn_cv_ruby_link="`$RUBY -e 'ARGV.shift; print ARGV.join(%q( ))' \
26124                              $rbconfig_LDSHARED`"
26125         svn_cv_ruby_link="$rbconfig_CC $svn_cv_ruby_link"
26126         svn_cv_ruby_link="$svn_cv_ruby_link -shrext .$rbconfig_DLEXT"
26127
26128 fi
26129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $svn_cv_ruby_link" >&5
26130 $as_echo "$svn_cv_ruby_link" >&6; }
26131       SWIG_RB_LINK="$svn_cv_ruby_link"
26132
26133       { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link Ruby libraries" >&5
26134 $as_echo_n "checking how to link Ruby libraries... " >&6; }
26135 if ${ac_cv_ruby_libs+:} false; then :
26136   $as_echo_n "(cached) " >&6
26137 else
26138
26139         ac_cv_ruby_libs="$rbconfig_LIBRUBYARG $rbconfig_LIBS"
26140
26141 fi
26142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_ruby_libs" >&5
26143 $as_echo "$ac_cv_ruby_libs" >&6; }
26144       SWIG_RB_LIBS="`
26145   input_flags="$ac_cv_ruby_libs"
26146   output_flags=""
26147   filtered_dirs="/lib /lib64 /usr/lib /usr/lib64"
26148   for flag in $input_flags; do
26149     filter="no"
26150     for dir in $filtered_dirs; do
26151       if test "$flag" = "-L$dir" || test "$flag" = "-L$dir/"; then
26152         filter="yes"
26153         break
26154       fi
26155     done
26156     if test "$filter" = "no"; then
26157       output_flags="$output_flags $flag"
26158     fi
26159   done
26160   if test -n "$output_flags"; then
26161     printf "%s" "${output_flags# }"
26162   fi
26163 `"
26164
26165       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rb_errinfo" >&5
26166 $as_echo_n "checking for rb_errinfo... " >&6; }
26167       old_CFLAGS="$CFLAGS"
26168       old_LIBS="$LIBS"
26169       CFLAGS="$CFLAGS $svn_cv_ruby_includes"
26170
26171   CFLAGS=`echo "$CFLAGS" | $SED -e 's/-ansi//'`
26172
26173
26174   CFLAGS=`echo "$CFLAGS" | $SED -e 's/-std=c89//'`
26175
26176
26177   CFLAGS=`echo "$CFLAGS" | $SED -e 's/-std=c90//'`
26178
26179       LIBS="$SWIG_RB_LIBS"
26180       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26181 /* end confdefs.h.  */
26182
26183 #include <ruby.h>
26184 int main()
26185 {rb_errinfo();}
26186 _ACEOF
26187 if ac_fn_c_try_link "$LINENO"; then :
26188   have_rb_errinfo="yes"
26189 else
26190   have_rb_errinfo="no"
26191 fi
26192 rm -f core conftest.err conftest.$ac_objext \
26193     conftest$ac_exeext conftest.$ac_ext
26194       if test "$have_rb_errinfo" = "yes"; then
26195         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26196 $as_echo "yes" >&6; }
26197
26198 $as_echo "#define HAVE_RB_ERRINFO 1" >>confdefs.h
26199
26200       else
26201         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26202 $as_echo "no" >&6; }
26203       fi
26204       CFLAGS="$old_CFLAGS"
26205       LIBS="$old_LIBS"
26206
26207       if ${svn_cv_ruby_sitedir+:} false; then :
26208   $as_echo_n "(cached) " >&6
26209 else
26210
26211         svn_cv_ruby_sitedir="$rbconfig_sitedir"
26212
26213 fi
26214
26215
26216 # Check whether --with-ruby-sitedir was given.
26217 if test "${with_ruby_sitedir+set}" = set; then :
26218   withval=$with_ruby_sitedir; svn_ruby_installdir="$withval"
26219 else
26220   svn_ruby_installdir="$svn_cv_ruby_sitedir"
26221 fi
26222
26223
26224       { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to install Ruby scripts" >&5
26225 $as_echo_n "checking where to install Ruby scripts... " >&6; }
26226       if ${svn_cv_ruby_sitedir_libsuffix+:} false; then :
26227   $as_echo_n "(cached) " >&6
26228 else
26229
26230         svn_cv_ruby_sitedir_libsuffix="`echo "$rbconfig_sitelibdir" | \
26231                                           $SED -e "s,^$rbconfig_sitedir,,"`"
26232
26233 fi
26234
26235       SWIG_RB_SITE_LIB_DIR="${svn_ruby_installdir}${svn_cv_ruby_sitedir_libsuffix}"
26236       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG_RB_SITE_LIB_DIR" >&5
26237 $as_echo "$SWIG_RB_SITE_LIB_DIR" >&6; }
26238
26239       { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to install Ruby extensions" >&5
26240 $as_echo_n "checking where to install Ruby extensions... " >&6; }
26241       if ${svn_cv_ruby_sitedir_archsuffix+:} false; then :
26242   $as_echo_n "(cached) " >&6
26243 else
26244
26245         svn_cv_ruby_sitedir_archsuffix="`echo "$rbconfig_sitearchdir" | \
26246                                           $SED -e "s,^$rbconfig_sitedir,,"`"
26247
26248 fi
26249
26250       SWIG_RB_SITE_ARCH_DIR="${svn_ruby_installdir}${svn_cv_ruby_sitedir_archsuffix}"
26251       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG_RB_SITE_ARCH_DIR" >&5
26252 $as_echo "$SWIG_RB_SITE_ARCH_DIR" >&6; }
26253
26254       { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to use output level for Ruby bindings tests" >&5
26255 $as_echo_n "checking how to use output level for Ruby bindings tests... " >&6; }
26256       if ${svn_cv_ruby_test_verbose+:} false; then :
26257   $as_echo_n "(cached) " >&6
26258 else
26259
26260         svn_cv_ruby_test_verbose="normal"
26261
26262 fi
26263
26264
26265 # Check whether --with-ruby-test-verbose was given.
26266 if test "${with_ruby_test_verbose+set}" = set; then :
26267   withval=$with_ruby_test_verbose; svn_ruby_test_verbose="$withval"
26268 else
26269   svn_ruby_test_verbose="$svn_cv_ruby_test_verbose"
26270 fi
26271
26272         SWIG_RB_TEST_VERBOSE="$svn_ruby_test_verbose"
26273         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG_RB_TEST_VERBOSE" >&5
26274 $as_echo "$SWIG_RB_TEST_VERBOSE" >&6; }
26275     fi
26276   fi
26277
26278
26279
26280
26281
26282
26283
26284
26285
26286
26287
26288
26289
26290
26291
26292
26293 fi
26294
26295
26296
26297
26298
26299
26300
26301
26302
26303 # Check whether --with-ctypesgen was given.
26304 if test "${with_ctypesgen+set}" = set; then :
26305   withval=$with_ctypesgen;
26306     case "$withval" in
26307       "no")
26308
26309   where=no
26310
26311   CTYPESGEN=none
26312
26313   if test $where = check; then
26314     # Extract the first word of ""ctypesgen.py"", so it can be a program name with args.
26315 set dummy "ctypesgen.py"; ac_word=$2
26316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26317 $as_echo_n "checking for $ac_word... " >&6; }
26318 if ${ac_cv_path_CTYPESGEN+:} false; then :
26319   $as_echo_n "(cached) " >&6
26320 else
26321   case $CTYPESGEN in
26322   [\\/]* | ?:[\\/]*)
26323   ac_cv_path_CTYPESGEN="$CTYPESGEN" # Let the user override the test with a path.
26324   ;;
26325   *)
26326   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26327 for as_dir in $PATH
26328 do
26329   IFS=$as_save_IFS
26330   test -z "$as_dir" && as_dir=.
26331     for ac_exec_ext in '' $ac_executable_extensions; do
26332   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26333     ac_cv_path_CTYPESGEN="$as_dir/$ac_word$ac_exec_ext"
26334     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26335     break 2
26336   fi
26337 done
26338   done
26339 IFS=$as_save_IFS
26340
26341   test -z "$ac_cv_path_CTYPESGEN" && ac_cv_path_CTYPESGEN="none"
26342   ;;
26343 esac
26344 fi
26345 CTYPESGEN=$ac_cv_path_CTYPESGEN
26346 if test -n "$CTYPESGEN"; then
26347   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CTYPESGEN" >&5
26348 $as_echo "$CTYPESGEN" >&6; }
26349 else
26350   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26351 $as_echo "no" >&6; }
26352 fi
26353
26354
26355   elif test $where != no; then
26356     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctypesgen.py" >&5
26357 $as_echo_n "checking for ctypesgen.py... " >&6; }
26358
26359     if test -f "$where"; then
26360       CTYPESGEN="$where"
26361     elif test -f "$where/bin/ctypesgen.py"; then
26362       CTYPESGEN="$where/bin/ctypesgen.py"
26363     else
26364       CTYPESGEN="$where/ctypesgen.py"
26365     fi
26366
26367     if test ! -f "$CTYPESGEN" || test ! -x "$CTYPESGEN"; then
26368       as_fn_error $? "Could not find ctypesgen at $where/ctypesgen.py or at
26369                     $where/bin/ctypesgen.py" "$LINENO" 5
26370     else
26371       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CTYPESGEN" >&5
26372 $as_echo "$CTYPESGEN" >&6; }
26373     fi
26374   fi
26375
26376
26377
26378       ;;
26379       "yes")
26380
26381   where=check
26382
26383   CTYPESGEN=none
26384
26385   if test $where = check; then
26386     # Extract the first word of ""ctypesgen.py"", so it can be a program name with args.
26387 set dummy "ctypesgen.py"; ac_word=$2
26388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26389 $as_echo_n "checking for $ac_word... " >&6; }
26390 if ${ac_cv_path_CTYPESGEN+:} false; then :
26391   $as_echo_n "(cached) " >&6
26392 else
26393   case $CTYPESGEN in
26394   [\\/]* | ?:[\\/]*)
26395   ac_cv_path_CTYPESGEN="$CTYPESGEN" # Let the user override the test with a path.
26396   ;;
26397   *)
26398   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26399 for as_dir in $PATH
26400 do
26401   IFS=$as_save_IFS
26402   test -z "$as_dir" && as_dir=.
26403     for ac_exec_ext in '' $ac_executable_extensions; do
26404   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26405     ac_cv_path_CTYPESGEN="$as_dir/$ac_word$ac_exec_ext"
26406     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26407     break 2
26408   fi
26409 done
26410   done
26411 IFS=$as_save_IFS
26412
26413   test -z "$ac_cv_path_CTYPESGEN" && ac_cv_path_CTYPESGEN="none"
26414   ;;
26415 esac
26416 fi
26417 CTYPESGEN=$ac_cv_path_CTYPESGEN
26418 if test -n "$CTYPESGEN"; then
26419   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CTYPESGEN" >&5
26420 $as_echo "$CTYPESGEN" >&6; }
26421 else
26422   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26423 $as_echo "no" >&6; }
26424 fi
26425
26426
26427   elif test $where != no; then
26428     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctypesgen.py" >&5
26429 $as_echo_n "checking for ctypesgen.py... " >&6; }
26430
26431     if test -f "$where"; then
26432       CTYPESGEN="$where"
26433     elif test -f "$where/bin/ctypesgen.py"; then
26434       CTYPESGEN="$where/bin/ctypesgen.py"
26435     else
26436       CTYPESGEN="$where/ctypesgen.py"
26437     fi
26438
26439     if test ! -f "$CTYPESGEN" || test ! -x "$CTYPESGEN"; then
26440       as_fn_error $? "Could not find ctypesgen at $where/ctypesgen.py or at
26441                     $where/bin/ctypesgen.py" "$LINENO" 5
26442     else
26443       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CTYPESGEN" >&5
26444 $as_echo "$CTYPESGEN" >&6; }
26445     fi
26446   fi
26447
26448
26449
26450       ;;
26451       *)
26452
26453   where=$withval
26454
26455   CTYPESGEN=none
26456
26457   if test $where = check; then
26458     # Extract the first word of ""ctypesgen.py"", so it can be a program name with args.
26459 set dummy "ctypesgen.py"; ac_word=$2
26460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26461 $as_echo_n "checking for $ac_word... " >&6; }
26462 if ${ac_cv_path_CTYPESGEN+:} false; then :
26463   $as_echo_n "(cached) " >&6
26464 else
26465   case $CTYPESGEN in
26466   [\\/]* | ?:[\\/]*)
26467   ac_cv_path_CTYPESGEN="$CTYPESGEN" # Let the user override the test with a path.
26468   ;;
26469   *)
26470   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26471 for as_dir in $PATH
26472 do
26473   IFS=$as_save_IFS
26474   test -z "$as_dir" && as_dir=.
26475     for ac_exec_ext in '' $ac_executable_extensions; do
26476   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26477     ac_cv_path_CTYPESGEN="$as_dir/$ac_word$ac_exec_ext"
26478     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26479     break 2
26480   fi
26481 done
26482   done
26483 IFS=$as_save_IFS
26484
26485   test -z "$ac_cv_path_CTYPESGEN" && ac_cv_path_CTYPESGEN="none"
26486   ;;
26487 esac
26488 fi
26489 CTYPESGEN=$ac_cv_path_CTYPESGEN
26490 if test -n "$CTYPESGEN"; then
26491   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CTYPESGEN" >&5
26492 $as_echo "$CTYPESGEN" >&6; }
26493 else
26494   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26495 $as_echo "no" >&6; }
26496 fi
26497
26498
26499   elif test $where != no; then
26500     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctypesgen.py" >&5
26501 $as_echo_n "checking for ctypesgen.py... " >&6; }
26502
26503     if test -f "$where"; then
26504       CTYPESGEN="$where"
26505     elif test -f "$where/bin/ctypesgen.py"; then
26506       CTYPESGEN="$where/bin/ctypesgen.py"
26507     else
26508       CTYPESGEN="$where/ctypesgen.py"
26509     fi
26510
26511     if test ! -f "$CTYPESGEN" || test ! -x "$CTYPESGEN"; then
26512       as_fn_error $? "Could not find ctypesgen at $where/ctypesgen.py or at
26513                     $where/bin/ctypesgen.py" "$LINENO" 5
26514     else
26515       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CTYPESGEN" >&5
26516 $as_echo "$CTYPESGEN" >&6; }
26517     fi
26518   fi
26519
26520
26521
26522       ;;
26523     esac
26524
26525 else
26526
26527
26528   where=check
26529
26530   CTYPESGEN=none
26531
26532   if test $where = check; then
26533     # Extract the first word of ""ctypesgen.py"", so it can be a program name with args.
26534 set dummy "ctypesgen.py"; ac_word=$2
26535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26536 $as_echo_n "checking for $ac_word... " >&6; }
26537 if ${ac_cv_path_CTYPESGEN+:} false; then :
26538   $as_echo_n "(cached) " >&6
26539 else
26540   case $CTYPESGEN in
26541   [\\/]* | ?:[\\/]*)
26542   ac_cv_path_CTYPESGEN="$CTYPESGEN" # Let the user override the test with a path.
26543   ;;
26544   *)
26545   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26546 for as_dir in $PATH
26547 do
26548   IFS=$as_save_IFS
26549   test -z "$as_dir" && as_dir=.
26550     for ac_exec_ext in '' $ac_executable_extensions; do
26551   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26552     ac_cv_path_CTYPESGEN="$as_dir/$ac_word$ac_exec_ext"
26553     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26554     break 2
26555   fi
26556 done
26557   done
26558 IFS=$as_save_IFS
26559
26560   test -z "$ac_cv_path_CTYPESGEN" && ac_cv_path_CTYPESGEN="none"
26561   ;;
26562 esac
26563 fi
26564 CTYPESGEN=$ac_cv_path_CTYPESGEN
26565 if test -n "$CTYPESGEN"; then
26566   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CTYPESGEN" >&5
26567 $as_echo "$CTYPESGEN" >&6; }
26568 else
26569   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26570 $as_echo "no" >&6; }
26571 fi
26572
26573
26574   elif test $where != no; then
26575     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctypesgen.py" >&5
26576 $as_echo_n "checking for ctypesgen.py... " >&6; }
26577
26578     if test -f "$where"; then
26579       CTYPESGEN="$where"
26580     elif test -f "$where/bin/ctypesgen.py"; then
26581       CTYPESGEN="$where/bin/ctypesgen.py"
26582     else
26583       CTYPESGEN="$where/ctypesgen.py"
26584     fi
26585
26586     if test ! -f "$CTYPESGEN" || test ! -x "$CTYPESGEN"; then
26587       as_fn_error $? "Could not find ctypesgen at $where/ctypesgen.py or at
26588                     $where/bin/ctypesgen.py" "$LINENO" 5
26589     else
26590       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CTYPESGEN" >&5
26591 $as_echo "$CTYPESGEN" >&6; }
26592     fi
26593   fi
26594
26595
26596
26597
26598 fi
26599
26600
26601
26602 # Check whether --enable-runtime-module-search was given.
26603 if test "${enable_runtime_module_search+set}" = set; then :
26604   enableval=$enable_runtime_module_search;
26605     if test "$enableval" = "yes"; then
26606       use_dso=yes
26607       if test "$svn_enable_shared" = "no"; then
26608         as_fn_error $? "--enable-runtime-module-search conflicts with --disable-shared" "$LINENO" 5
26609       fi
26610
26611 $as_echo "#define SVN_USE_DSO 1" >>confdefs.h
26612
26613
26614                   case "$host" in
26615         *-*-darwin*)
26616
26617 $as_echo "#define SVN_DSO_SUFFIX_FMT \"%d.%d.dylib\"" >>confdefs.h
26618
26619           ;;
26620         *)
26621
26622 $as_echo "#define SVN_DSO_SUFFIX_FMT \"%d.so.%d\"" >>confdefs.h
26623
26624           ;;
26625       esac
26626     fi
26627
26628 fi
26629
26630
26631 if test "$svn_enable_shared" = "no" || test "$use_dso" != "yes"; then
26632
26633 $as_echo "#define SVN_LIBSVN_RA_LINKS_RA_LOCAL 1" >>confdefs.h
26634
26635   svn_ra_lib_deps="\$(RA_LOCAL_DEPS)"
26636   svn_ra_lib_install_deps="install-ramod-lib"
26637   svn_ra_lib_link="\$(RA_LOCAL_LINK)"
26638
26639
26640 $as_echo "#define SVN_LIBSVN_RA_LINKS_RA_SVN 1" >>confdefs.h
26641
26642   svn_ra_lib_deps="$svn_ra_lib_deps \$(RA_SVN_DEPS)"
26643   svn_ra_lib_link="$svn_ra_lib_link \$(RA_SVN_LINK)"
26644
26645   if test "$svn_lib_serf" = "yes"; then
26646
26647 $as_echo "#define SVN_LIBSVN_RA_LINKS_RA_SERF 1" >>confdefs.h
26648
26649     svn_ra_lib_deps="$svn_ra_lib_deps \$(RA_SERF_DEPS)"
26650     svn_ra_lib_install_deps="$svn_ra_lib_install_deps install-serf-lib"
26651     svn_ra_lib_link="$svn_ra_lib_link \$(RA_SERF_LINK)"
26652   fi
26653
26654   SVN_RA_LIB_DEPS=$svn_ra_lib_deps
26655   SVN_RA_LIB_INSTALL_DEPS=$svn_ra_lib_install_deps
26656   SVN_RA_LIB_LINK=$svn_ra_lib_link
26657
26658
26659 $as_echo "#define SVN_LIBSVN_FS_LINKS_FS_FS 1" >>confdefs.h
26660
26661   svn_fs_lib_deps="\$(FS_FS_DEPS)"
26662   svn_fs_lib_install_deps="install-fsmod-lib"
26663   svn_fs_lib_link="\$(FS_FS_LINK)"
26664
26665
26666 $as_echo "#define SVN_LIBSVN_FS_LINKS_FS_X 1" >>confdefs.h
26667
26668   svn_fs_lib_deps="$svn_fs_lib_deps \$(FS_X_DEPS)"
26669   svn_fs_lib_link="$svn_fs_lib_link \$(FS_X_LINK)"
26670
26671   if test "$svn_lib_berkeley_db" = "yes"; then
26672
26673 $as_echo "#define SVN_LIBSVN_FS_LINKS_FS_BASE 1" >>confdefs.h
26674
26675     svn_fs_lib_deps="$svn_fs_lib_deps \$(FS_BASE_DEPS)"
26676     svn_fs_lib_install_deps="$svn_fs_lib_install_deps install-bdb-lib"
26677     svn_fs_lib_link="$svn_fs_lib_link \$(FS_BASE_LINK)"
26678   fi
26679
26680   SVN_FS_LIB_DEPS=$svn_fs_lib_deps
26681   SVN_FS_LIB_INSTALL_DEPS=$svn_fs_lib_install_deps
26682   SVN_FS_LIB_LINK=$svn_fs_lib_link
26683 fi
26684
26685
26686
26687
26688
26689
26690
26691
26692 # ==== JavaHL ================================================================
26693
26694 do_javahl_build=no
26695 # Check whether --enable-javahl was given.
26696 if test "${enable_javahl+set}" = set; then :
26697   enableval=$enable_javahl;  if test "$enableval" = "yes" ; then
26698         do_javahl_build="yes"
26699     fi
26700
26701 fi
26702
26703
26704 JAVAHL_OBJDIR=""
26705 INSTALL_EXTRA_JAVAHL_LIB=""
26706 FIX_JAVAHL_LIB=""
26707 JAVAHL_TESTS_TARGET=""
26708 JAVAHL_COMPAT_TESTS_TARGET=""
26709 LT_CXX_LIBADD=""
26710 if test "$do_javahl_build" = "yes"; then
26711     if test "$JDK_SUITABLE" = "no"; then
26712     as_fn_error $? "Cannot compile JavaHL without a suitable JDK.
26713                   Please specify a suitable JDK using the --with-jdk option." "$LINENO" 5
26714   fi
26715
26716     JAVAHL_OBJDIR='$(libsvnjavahl_PATH)/.libs'
26717
26718   os_arch=`uname`
26719   if test "$os_arch" = "Darwin"; then
26720         INSTALL_EXTRA_JAVAHL_LIB='ln -sf $(libdir)/libsvnjavahl-1.dylib $(libdir)/libsvnjavahl-1.jnilib'
26721     FIX_JAVAHL_LIB="ln -sf libsvnjavahl-1.dylib $JAVAHL_OBJDIR/libsvnjavahl-1.jnilib"
26722   fi
26723   # This segment (and the rest of r10800) is very likely unnecessary
26724   # with libtool 1.5, which automatically adds libstdc++ as a
26725   # dependency to the C++ libraries it builds.  So at some future time
26726   # when autogen.sh requires libtool 1.5 or higher, we can get rid of
26727   # it.
26728   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for additional flags to link C++ libraries" >&5
26729 $as_echo_n "checking for additional flags to link C++ libraries... " >&6; }
26730   if test "x$ac_compiler_gnu" = "xyes"; then
26731     case "$host" in
26732       *freebsd10*)
26733         { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
26734 $as_echo "none needed" >&6; }
26735       ;;
26736       *)
26737         LT_CXX_LIBADD="-lstdc++"
26738         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LT_CXX_LIBADD" >&5
26739 $as_echo "$LT_CXX_LIBADD" >&6; }
26740       ;;
26741     esac
26742   else
26743     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
26744 $as_echo "none needed" >&6; }
26745   fi
26746 fi
26747
26748
26749
26750
26751
26752
26753 # Check whether --with-junit was given.
26754 if test "${with_junit+set}" = set; then :
26755   withval=$with_junit;
26756     if test "$withval" != "no"; then
26757       if test -n "$JAVA_CLASSPATH"; then
26758         JAVA_CLASSPATH="$withval:$JAVA_CLASSPATH"
26759       else
26760         JAVA_CLASSPATH="$withval"
26761       fi
26762       JAVAHL_TESTS_TARGET="javahl-tests"
26763       JAVAHL_COMPAT_TESTS_TARGET="javahl-compat-tests"
26764     fi
26765
26766 fi
26767
26768
26769
26770
26771
26772 # ==== Miscellaneous bits ====================================================
26773
26774 for ac_header in stdbool.h stdint.h
26775 do :
26776   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
26777 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
26778 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
26779   cat >>confdefs.h <<_ACEOF
26780 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
26781 _ACEOF
26782
26783 fi
26784
26785 done
26786
26787
26788 # Strip '-no-cpp-precomp' from CPPFLAGS for the clang compiler
26789 ### I think we get this flag from APR, so the fix probably belongs there
26790 if test "$CC" = "clang"; then
26791
26792   CPPFLAGS=`echo "$CPPFLAGS" | $SED -e 's/-no-cpp-precomp //'`
26793
26794 fi
26795
26796
26797 cat >>confdefs.h <<_ACEOF
26798 #define SVN_PATH_LOCAL_SEPARATOR '/'
26799 _ACEOF
26800
26801
26802
26803 cat >>confdefs.h <<_ACEOF
26804 #define SVN_NULL_DEVICE_NAME "/dev/null"
26805 _ACEOF
26806
26807
26808 DEFAULT_FS_TYPE="fsfs"
26809
26810 cat >>confdefs.h <<_ACEOF
26811 #define DEFAULT_FS_TYPE "$DEFAULT_FS_TYPE"
26812 _ACEOF
26813
26814
26815 DEFAULT_HTTP_LIBRARY="serf"
26816
26817 cat >>confdefs.h <<_ACEOF
26818 #define DEFAULT_HTTP_LIBRARY "$DEFAULT_HTTP_LIBRARY"
26819 _ACEOF
26820
26821
26822 # BSD/OS (BSDi) needs to use a different include syntax in Makefile
26823 INCLUDE_OUTPUTS="include \$(top_srcdir)/build-outputs.mk"
26824 case "$host" in
26825   *bsdi*)
26826     # Check whether they've installed GNU make
26827     if ! make --version > /dev/null 2>&1; then
26828       # BSDi make
26829       INCLUDE_OUTPUTS=".include \"\$(top_srcdir)/build-outputs.mk\""
26830     fi
26831     ;;
26832 esac
26833
26834
26835 # ==== Detection complete - output and run config.status =====================
26836
26837 ac_config_headers="$ac_config_headers subversion/svn_private_config.h.tmp:subversion/svn_private_config.h.in"
26838
26839 ac_config_commands="$ac_config_commands svn_private_config.h.tmp"
26840
26841 ac_config_files="$ac_config_files Makefile"
26842
26843
26844 # Create pkg-config .pc files from .pc.in files
26845 for pc_in_file in "${abs_srcdir}"/subversion/libsvn_*/*.pc.in; do
26846   pc_file=${pc_in_file#${abs_srcdir}/}
26847   pc_file=${pc_file%.in}
26848   ac_config_files="$ac_config_files ${pc_file}"
26849
26850 done
26851
26852
26853   SVN_CONFIG_SCRIPT_FILES="$SVN_CONFIG_SCRIPT_FILES tools/backup/hot-backup.py"
26854   ac_config_files="$ac_config_files tools/backup/hot-backup.py"
26855
26856
26857   SVN_CONFIG_SCRIPT_FILES="$SVN_CONFIG_SCRIPT_FILES tools/hook-scripts/commit-access-control.pl"
26858   ac_config_files="$ac_config_files tools/hook-scripts/commit-access-control.pl"
26859
26860
26861   SVN_CONFIG_SCRIPT_FILES="$SVN_CONFIG_SCRIPT_FILES subversion/bindings/swig/perl/native/Makefile.PL"
26862   ac_config_files="$ac_config_files subversion/bindings/swig/perl/native/Makefile.PL"
26863
26864 if test -e packages/solaris/pkginfo.in; then
26865
26866   SVN_CONFIG_SCRIPT_FILES="$SVN_CONFIG_SCRIPT_FILES packages/solaris/pkginfo"
26867   ac_config_files="$ac_config_files packages/solaris/pkginfo"
26868
26869 fi
26870
26871
26872 # Ensure that SWIG is checked after reconfiguration.
26873 rm -f .swig_checked
26874
26875
26876 cat >>confdefs.h <<_ACEOF
26877 #define SVN_BUILD_HOST "${host}"
26878 _ACEOF
26879
26880
26881
26882 cat >>confdefs.h <<_ACEOF
26883 #define SVN_BUILD_TARGET "${target}"
26884 _ACEOF
26885
26886
26887 cat >confcache <<\_ACEOF
26888 # This file is a shell script that caches the results of configure
26889 # tests run on this system so they can be shared between configure
26890 # scripts and configure runs, see configure's option --config-cache.
26891 # It is not useful on other systems.  If it contains results you don't
26892 # want to keep, you may remove or edit it.
26893 #
26894 # config.status only pays attention to the cache file if you give it
26895 # the --recheck option to rerun configure.
26896 #
26897 # `ac_cv_env_foo' variables (set or unset) will be overridden when
26898 # loading this file, other *unset* `ac_cv_foo' will be assigned the
26899 # following values.
26900
26901 _ACEOF
26902
26903 # The following way of writing the cache mishandles newlines in values,
26904 # but we know of no workaround that is simple, portable, and efficient.
26905 # So, we kill variables containing newlines.
26906 # Ultrix sh set writes to stderr and can't be redirected directly,
26907 # and sets the high bit in the cache file unless we assign to the vars.
26908 (
26909   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
26910     eval ac_val=\$$ac_var
26911     case $ac_val in #(
26912     *${as_nl}*)
26913       case $ac_var in #(
26914       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
26915 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
26916       esac
26917       case $ac_var in #(
26918       _ | IFS | as_nl) ;; #(
26919       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
26920       *) { eval $ac_var=; unset $ac_var;} ;;
26921       esac ;;
26922     esac
26923   done
26924
26925   (set) 2>&1 |
26926     case $as_nl`(ac_space=' '; set) 2>&1` in #(
26927     *${as_nl}ac_space=\ *)
26928       # `set' does not quote correctly, so add quotes: double-quote
26929       # substitution turns \\\\ into \\, and sed turns \\ into \.
26930       sed -n \
26931         "s/'/'\\\\''/g;
26932           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
26933       ;; #(
26934     *)
26935       # `set' quotes correctly as required by POSIX, so do not add quotes.
26936       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
26937       ;;
26938     esac |
26939     sort
26940 ) |
26941   sed '
26942      /^ac_cv_env_/b end
26943      t clear
26944      :clear
26945      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
26946      t end
26947      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
26948      :end' >>confcache
26949 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
26950   if test -w "$cache_file"; then
26951     if test "x$cache_file" != "x/dev/null"; then
26952       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
26953 $as_echo "$as_me: updating cache $cache_file" >&6;}
26954       if test ! -f "$cache_file" || test -h "$cache_file"; then
26955         cat confcache >"$cache_file"
26956       else
26957         case $cache_file in #(
26958         */* | ?:*)
26959           mv -f confcache "$cache_file"$$ &&
26960           mv -f "$cache_file"$$ "$cache_file" ;; #(
26961         *)
26962           mv -f confcache "$cache_file" ;;
26963         esac
26964       fi
26965     fi
26966   else
26967     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
26968 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
26969   fi
26970 fi
26971 rm -f confcache
26972
26973 test "x$prefix" = xNONE && prefix=$ac_default_prefix
26974 # Let make expand exec_prefix.
26975 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
26976
26977 DEFS=-DHAVE_CONFIG_H
26978
26979 ac_libobjs=
26980 ac_ltlibobjs=
26981 U=
26982 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
26983   # 1. Remove the extension, and $U if already installed.
26984   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
26985   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
26986   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
26987   #    will be set to the directory where LIBOBJS objects are built.
26988   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
26989   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
26990 done
26991 LIBOBJS=$ac_libobjs
26992
26993 LTLIBOBJS=$ac_ltlibobjs
26994
26995
26996
26997 : "${CONFIG_STATUS=./config.status}"
26998 ac_write_fail=0
26999 ac_clean_files_save=$ac_clean_files
27000 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
27001 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
27002 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
27003 as_write_fail=0
27004 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
27005 #! $SHELL
27006 # Generated by $as_me.
27007 # Run this file to recreate the current configuration.
27008 # Compiler output produced by configure, useful for debugging
27009 # configure, is in config.log if it exists.
27010
27011 debug=false
27012 ac_cs_recheck=false
27013 ac_cs_silent=false
27014
27015 SHELL=\${CONFIG_SHELL-$SHELL}
27016 export SHELL
27017 _ASEOF
27018 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
27019 ## -------------------- ##
27020 ## M4sh Initialization. ##
27021 ## -------------------- ##
27022
27023 # Be more Bourne compatible
27024 DUALCASE=1; export DUALCASE # for MKS sh
27025 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
27026   emulate sh
27027   NULLCMD=:
27028   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
27029   # is contrary to our usage.  Disable this feature.
27030   alias -g '${1+"$@"}'='"$@"'
27031   setopt NO_GLOB_SUBST
27032 else
27033   case `(set -o) 2>/dev/null` in #(
27034   *posix*) :
27035     set -o posix ;; #(
27036   *) :
27037      ;;
27038 esac
27039 fi
27040
27041
27042 as_nl='
27043 '
27044 export as_nl
27045 # Printing a long string crashes Solaris 7 /usr/bin/printf.
27046 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
27047 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
27048 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
27049 # Prefer a ksh shell builtin over an external printf program on Solaris,
27050 # but without wasting forks for bash or zsh.
27051 if test -z "$BASH_VERSION$ZSH_VERSION" \
27052     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
27053   as_echo='print -r --'
27054   as_echo_n='print -rn --'
27055 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
27056   as_echo='printf %s\n'
27057   as_echo_n='printf %s'
27058 else
27059   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
27060     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
27061     as_echo_n='/usr/ucb/echo -n'
27062   else
27063     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
27064     as_echo_n_body='eval
27065       arg=$1;
27066       case $arg in #(
27067       *"$as_nl"*)
27068         expr "X$arg" : "X\\(.*\\)$as_nl";
27069         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
27070       esac;
27071       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
27072     '
27073     export as_echo_n_body
27074     as_echo_n='sh -c $as_echo_n_body as_echo'
27075   fi
27076   export as_echo_body
27077   as_echo='sh -c $as_echo_body as_echo'
27078 fi
27079
27080 # The user is always right.
27081 if test "${PATH_SEPARATOR+set}" != set; then
27082   PATH_SEPARATOR=:
27083   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
27084     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
27085       PATH_SEPARATOR=';'
27086   }
27087 fi
27088
27089
27090 # IFS
27091 # We need space, tab and new line, in precisely that order.  Quoting is
27092 # there to prevent editors from complaining about space-tab.
27093 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
27094 # splitting by setting IFS to empty value.)
27095 IFS=" ""        $as_nl"
27096
27097 # Find who we are.  Look in the path if we contain no directory separator.
27098 as_myself=
27099 case $0 in #((
27100   *[\\/]* ) as_myself=$0 ;;
27101   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27102 for as_dir in $PATH
27103 do
27104   IFS=$as_save_IFS
27105   test -z "$as_dir" && as_dir=.
27106     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
27107   done
27108 IFS=$as_save_IFS
27109
27110      ;;
27111 esac
27112 # We did not find ourselves, most probably we were run as `sh COMMAND'
27113 # in which case we are not to be found in the path.
27114 if test "x$as_myself" = x; then
27115   as_myself=$0
27116 fi
27117 if test ! -f "$as_myself"; then
27118   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
27119   exit 1
27120 fi
27121
27122 # Unset variables that we do not need and which cause bugs (e.g. in
27123 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
27124 # suppresses any "Segmentation fault" message there.  '((' could
27125 # trigger a bug in pdksh 5.2.14.
27126 for as_var in BASH_ENV ENV MAIL MAILPATH
27127 do eval test x\${$as_var+set} = xset \
27128   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
27129 done
27130 PS1='$ '
27131 PS2='> '
27132 PS4='+ '
27133
27134 # NLS nuisances.
27135 LC_ALL=C
27136 export LC_ALL
27137 LANGUAGE=C
27138 export LANGUAGE
27139
27140 # CDPATH.
27141 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
27142
27143
27144 # as_fn_error STATUS ERROR [LINENO LOG_FD]
27145 # ----------------------------------------
27146 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
27147 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
27148 # script with STATUS, using 1 if that was 0.
27149 as_fn_error ()
27150 {
27151   as_status=$1; test $as_status -eq 0 && as_status=1
27152   if test "$4"; then
27153     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
27154     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
27155   fi
27156   $as_echo "$as_me: error: $2" >&2
27157   as_fn_exit $as_status
27158 } # as_fn_error
27159
27160
27161 # as_fn_set_status STATUS
27162 # -----------------------
27163 # Set $? to STATUS, without forking.
27164 as_fn_set_status ()
27165 {
27166   return $1
27167 } # as_fn_set_status
27168
27169 # as_fn_exit STATUS
27170 # -----------------
27171 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
27172 as_fn_exit ()
27173 {
27174   set +e
27175   as_fn_set_status $1
27176   exit $1
27177 } # as_fn_exit
27178
27179 # as_fn_unset VAR
27180 # ---------------
27181 # Portably unset VAR.
27182 as_fn_unset ()
27183 {
27184   { eval $1=; unset $1;}
27185 }
27186 as_unset=as_fn_unset
27187 # as_fn_append VAR VALUE
27188 # ----------------------
27189 # Append the text in VALUE to the end of the definition contained in VAR. Take
27190 # advantage of any shell optimizations that allow amortized linear growth over
27191 # repeated appends, instead of the typical quadratic growth present in naive
27192 # implementations.
27193 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
27194   eval 'as_fn_append ()
27195   {
27196     eval $1+=\$2
27197   }'
27198 else
27199   as_fn_append ()
27200   {
27201     eval $1=\$$1\$2
27202   }
27203 fi # as_fn_append
27204
27205 # as_fn_arith ARG...
27206 # ------------------
27207 # Perform arithmetic evaluation on the ARGs, and store the result in the
27208 # global $as_val. Take advantage of shells that can avoid forks. The arguments
27209 # must be portable across $(()) and expr.
27210 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
27211   eval 'as_fn_arith ()
27212   {
27213     as_val=$(( $* ))
27214   }'
27215 else
27216   as_fn_arith ()
27217   {
27218     as_val=`expr "$@" || test $? -eq 1`
27219   }
27220 fi # as_fn_arith
27221
27222
27223 if expr a : '\(a\)' >/dev/null 2>&1 &&
27224    test "X`expr 00001 : '.*\(...\)'`" = X001; then
27225   as_expr=expr
27226 else
27227   as_expr=false
27228 fi
27229
27230 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
27231   as_basename=basename
27232 else
27233   as_basename=false
27234 fi
27235
27236 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
27237   as_dirname=dirname
27238 else
27239   as_dirname=false
27240 fi
27241
27242 as_me=`$as_basename -- "$0" ||
27243 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
27244          X"$0" : 'X\(//\)$' \| \
27245          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
27246 $as_echo X/"$0" |
27247     sed '/^.*\/\([^/][^/]*\)\/*$/{
27248             s//\1/
27249             q
27250           }
27251           /^X\/\(\/\/\)$/{
27252             s//\1/
27253             q
27254           }
27255           /^X\/\(\/\).*/{
27256             s//\1/
27257             q
27258           }
27259           s/.*/./; q'`
27260
27261 # Avoid depending upon Character Ranges.
27262 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
27263 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
27264 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
27265 as_cr_digits='0123456789'
27266 as_cr_alnum=$as_cr_Letters$as_cr_digits
27267
27268 ECHO_C= ECHO_N= ECHO_T=
27269 case `echo -n x` in #(((((
27270 -n*)
27271   case `echo 'xy\c'` in
27272   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
27273   xy)  ECHO_C='\c';;
27274   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
27275        ECHO_T=' ';;
27276   esac;;
27277 *)
27278   ECHO_N='-n';;
27279 esac
27280
27281 rm -f conf$$ conf$$.exe conf$$.file
27282 if test -d conf$$.dir; then
27283   rm -f conf$$.dir/conf$$.file
27284 else
27285   rm -f conf$$.dir
27286   mkdir conf$$.dir 2>/dev/null
27287 fi
27288 if (echo >conf$$.file) 2>/dev/null; then
27289   if ln -s conf$$.file conf$$ 2>/dev/null; then
27290     as_ln_s='ln -s'
27291     # ... but there are two gotchas:
27292     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
27293     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
27294     # In both cases, we have to default to `cp -pR'.
27295     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
27296       as_ln_s='cp -pR'
27297   elif ln conf$$.file conf$$ 2>/dev/null; then
27298     as_ln_s=ln
27299   else
27300     as_ln_s='cp -pR'
27301   fi
27302 else
27303   as_ln_s='cp -pR'
27304 fi
27305 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
27306 rmdir conf$$.dir 2>/dev/null
27307
27308
27309 # as_fn_mkdir_p
27310 # -------------
27311 # Create "$as_dir" as a directory, including parents if necessary.
27312 as_fn_mkdir_p ()
27313 {
27314
27315   case $as_dir in #(
27316   -*) as_dir=./$as_dir;;
27317   esac
27318   test -d "$as_dir" || eval $as_mkdir_p || {
27319     as_dirs=
27320     while :; do
27321       case $as_dir in #(
27322       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
27323       *) as_qdir=$as_dir;;
27324       esac
27325       as_dirs="'$as_qdir' $as_dirs"
27326       as_dir=`$as_dirname -- "$as_dir" ||
27327 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27328          X"$as_dir" : 'X\(//\)[^/]' \| \
27329          X"$as_dir" : 'X\(//\)$' \| \
27330          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
27331 $as_echo X"$as_dir" |
27332     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27333             s//\1/
27334             q
27335           }
27336           /^X\(\/\/\)[^/].*/{
27337             s//\1/
27338             q
27339           }
27340           /^X\(\/\/\)$/{
27341             s//\1/
27342             q
27343           }
27344           /^X\(\/\).*/{
27345             s//\1/
27346             q
27347           }
27348           s/.*/./; q'`
27349       test -d "$as_dir" && break
27350     done
27351     test -z "$as_dirs" || eval "mkdir $as_dirs"
27352   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
27353
27354
27355 } # as_fn_mkdir_p
27356 if mkdir -p . 2>/dev/null; then
27357   as_mkdir_p='mkdir -p "$as_dir"'
27358 else
27359   test -d ./-p && rmdir ./-p
27360   as_mkdir_p=false
27361 fi
27362
27363
27364 # as_fn_executable_p FILE
27365 # -----------------------
27366 # Test if FILE is an executable regular file.
27367 as_fn_executable_p ()
27368 {
27369   test -f "$1" && test -x "$1"
27370 } # as_fn_executable_p
27371 as_test_x='test -x'
27372 as_executable_p=as_fn_executable_p
27373
27374 # Sed expression to map a string onto a valid CPP name.
27375 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
27376
27377 # Sed expression to map a string onto a valid variable name.
27378 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
27379
27380
27381 exec 6>&1
27382 ## ----------------------------------- ##
27383 ## Main body of $CONFIG_STATUS script. ##
27384 ## ----------------------------------- ##
27385 _ASEOF
27386 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
27387
27388 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27389 # Save the log message, to keep $0 and so on meaningful, and to
27390 # report actual input values of CONFIG_FILES etc. instead of their
27391 # values after options handling.
27392 ac_log="
27393 This file was extended by subversion $as_me 1.10.0, which was
27394 generated by GNU Autoconf 2.69.  Invocation command line was
27395
27396   CONFIG_FILES    = $CONFIG_FILES
27397   CONFIG_HEADERS  = $CONFIG_HEADERS
27398   CONFIG_LINKS    = $CONFIG_LINKS
27399   CONFIG_COMMANDS = $CONFIG_COMMANDS
27400   $ $0 $@
27401
27402 on `(hostname || uname -n) 2>/dev/null | sed 1q`
27403 "
27404
27405 _ACEOF
27406
27407 case $ac_config_files in *"
27408 "*) set x $ac_config_files; shift; ac_config_files=$*;;
27409 esac
27410
27411 case $ac_config_headers in *"
27412 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
27413 esac
27414
27415
27416 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27417 # Files that config.status was made for.
27418 config_files="$ac_config_files"
27419 config_headers="$ac_config_headers"
27420 config_commands="$ac_config_commands"
27421
27422 _ACEOF
27423
27424 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27425 ac_cs_usage="\
27426 \`$as_me' instantiates files and other configuration actions
27427 from templates according to the current configuration.  Unless the files
27428 and actions are specified as TAGs, all are instantiated by default.
27429
27430 Usage: $0 [OPTION]... [TAG]...
27431
27432   -h, --help       print this help, then exit
27433   -V, --version    print version number and configuration settings, then exit
27434       --config     print configuration, then exit
27435   -q, --quiet, --silent
27436                    do not print progress messages
27437   -d, --debug      don't remove temporary files
27438       --recheck    update $as_me by reconfiguring in the same conditions
27439       --file=FILE[:TEMPLATE]
27440                    instantiate the configuration file FILE
27441       --header=FILE[:TEMPLATE]
27442                    instantiate the configuration header FILE
27443
27444 Configuration files:
27445 $config_files
27446
27447 Configuration headers:
27448 $config_headers
27449
27450 Configuration commands:
27451 $config_commands
27452
27453 Report bugs to <http://subversion.apache.org/>."
27454
27455 _ACEOF
27456 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27457 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
27458 ac_cs_version="\\
27459 subversion config.status 1.10.0
27460 configured by $0, generated by GNU Autoconf 2.69,
27461   with options \\"\$ac_cs_config\\"
27462
27463 Copyright (C) 2012 Free Software Foundation, Inc.
27464 This config.status script is free software; the Free Software Foundation
27465 gives unlimited permission to copy, distribute and modify it."
27466
27467 ac_pwd='$ac_pwd'
27468 srcdir='$srcdir'
27469 INSTALL='$INSTALL'
27470 AWK='$AWK'
27471 test -n "\$AWK" || AWK=awk
27472 _ACEOF
27473
27474 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27475 # The default lists apply if the user does not specify any file.
27476 ac_need_defaults=:
27477 while test $# != 0
27478 do
27479   case $1 in
27480   --*=?*)
27481     ac_option=`expr "X$1" : 'X\([^=]*\)='`
27482     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
27483     ac_shift=:
27484     ;;
27485   --*=)
27486     ac_option=`expr "X$1" : 'X\([^=]*\)='`
27487     ac_optarg=
27488     ac_shift=:
27489     ;;
27490   *)
27491     ac_option=$1
27492     ac_optarg=$2
27493     ac_shift=shift
27494     ;;
27495   esac
27496
27497   case $ac_option in
27498   # Handling of the options.
27499   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
27500     ac_cs_recheck=: ;;
27501   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
27502     $as_echo "$ac_cs_version"; exit ;;
27503   --config | --confi | --conf | --con | --co | --c )
27504     $as_echo "$ac_cs_config"; exit ;;
27505   --debug | --debu | --deb | --de | --d | -d )
27506     debug=: ;;
27507   --file | --fil | --fi | --f )
27508     $ac_shift
27509     case $ac_optarg in
27510     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
27511     '') as_fn_error $? "missing file argument" ;;
27512     esac
27513     as_fn_append CONFIG_FILES " '$ac_optarg'"
27514     ac_need_defaults=false;;
27515   --header | --heade | --head | --hea )
27516     $ac_shift
27517     case $ac_optarg in
27518     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
27519     esac
27520     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
27521     ac_need_defaults=false;;
27522   --he | --h)
27523     # Conflict between --help and --header
27524     as_fn_error $? "ambiguous option: \`$1'
27525 Try \`$0 --help' for more information.";;
27526   --help | --hel | -h )
27527     $as_echo "$ac_cs_usage"; exit ;;
27528   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
27529   | -silent | --silent | --silen | --sile | --sil | --si | --s)
27530     ac_cs_silent=: ;;
27531
27532   # This is an error.
27533   -*) as_fn_error $? "unrecognized option: \`$1'
27534 Try \`$0 --help' for more information." ;;
27535
27536   *) as_fn_append ac_config_targets " $1"
27537      ac_need_defaults=false ;;
27538
27539   esac
27540   shift
27541 done
27542
27543 ac_configure_extra_args=
27544
27545 if $ac_cs_silent; then
27546   exec 6>/dev/null
27547   ac_configure_extra_args="$ac_configure_extra_args --silent"
27548 fi
27549
27550 _ACEOF
27551 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27552 if \$ac_cs_recheck; then
27553   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
27554   shift
27555   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
27556   CONFIG_SHELL='$SHELL'
27557   export CONFIG_SHELL
27558   exec "\$@"
27559 fi
27560
27561 _ACEOF
27562 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27563 exec 5>>config.log
27564 {
27565   echo
27566   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
27567 ## Running $as_me. ##
27568 _ASBOX
27569   $as_echo "$ac_log"
27570 } >&5
27571
27572 _ACEOF
27573 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27574 #
27575 # INIT-COMMANDS
27576 #
27577
27578
27579 # The HP-UX ksh and POSIX shell print the target directory to stdout
27580 # if CDPATH is set.
27581 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
27582
27583 sed_quote_subst='$sed_quote_subst'
27584 double_quote_subst='$double_quote_subst'
27585 delay_variable_subst='$delay_variable_subst'
27586 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
27587 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
27588 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
27589 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
27590 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
27591 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
27592 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
27593 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
27594 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
27595 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
27596 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
27597 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
27598 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
27599 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
27600 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
27601 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
27602 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
27603 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
27604 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
27605 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
27606 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
27607 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
27608 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
27609 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
27610 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
27611 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
27612 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
27613 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
27614 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
27615 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
27616 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
27617 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
27618 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
27619 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
27620 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
27621 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
27622 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
27623 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
27624 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
27625 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
27626 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
27627 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
27628 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
27629 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
27630 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
27631 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
27632 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
27633 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
27634 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
27635 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
27636 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
27637 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
27638 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
27639 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
27640 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
27641 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
27642 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
27643 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
27644 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"`'
27645 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
27646 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
27647 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
27648 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
27649 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
27650 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
27651 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
27652 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
27653 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
27654 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
27655 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
27656 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
27657 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
27658 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
27659 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
27660 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
27661 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
27662 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
27663 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
27664 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
27665 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
27666 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
27667 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
27668 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
27669 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
27670 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
27671 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
27672 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
27673 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
27674 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
27675 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
27676 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
27677 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
27678 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
27679 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
27680 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
27681 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
27682 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
27683 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
27684 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
27685 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
27686 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
27687 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
27688 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
27689 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
27690 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
27691 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
27692 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
27693 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
27694 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
27695 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
27696 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
27697 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
27698 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
27699 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
27700 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
27701 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
27702 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
27703 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
27704 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
27705 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
27706 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
27707 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
27708 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
27709 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
27710 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
27711 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
27712 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
27713 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
27714 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
27715 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
27716 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
27717 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
27718 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
27719 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
27720 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
27721 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
27722 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
27723 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
27724 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
27725 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
27726 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
27727 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
27728 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
27729 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
27730 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
27731 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
27732 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
27733 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
27734 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
27735 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
27736 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
27737 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
27738 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
27739 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
27740 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
27741 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
27742 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
27743 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
27744 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
27745 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
27746 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
27747 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
27748 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
27749 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
27750 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
27751 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
27752 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
27753 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
27754 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
27755 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
27756 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
27757 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
27758 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
27759 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
27760 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
27761 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
27762 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
27763 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
27764 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
27765 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
27766 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
27767 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
27768 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
27769 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
27770 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
27771 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
27772 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
27773 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
27774 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
27775
27776 LTCC='$LTCC'
27777 LTCFLAGS='$LTCFLAGS'
27778 compiler='$compiler_DEFAULT'
27779
27780 # A function that is used when there is no print builtin or printf.
27781 func_fallback_echo ()
27782 {
27783   eval 'cat <<_LTECHO_EOF
27784 \$1
27785 _LTECHO_EOF'
27786 }
27787
27788 # Quote evaled strings.
27789 for var in SHELL \
27790 ECHO \
27791 PATH_SEPARATOR \
27792 SED \
27793 GREP \
27794 EGREP \
27795 FGREP \
27796 LD \
27797 NM \
27798 LN_S \
27799 lt_SP2NL \
27800 lt_NL2SP \
27801 reload_flag \
27802 OBJDUMP \
27803 deplibs_check_method \
27804 file_magic_cmd \
27805 file_magic_glob \
27806 want_nocaseglob \
27807 DLLTOOL \
27808 sharedlib_from_linklib_cmd \
27809 AR \
27810 AR_FLAGS \
27811 archiver_list_spec \
27812 STRIP \
27813 RANLIB \
27814 CC \
27815 CFLAGS \
27816 compiler \
27817 lt_cv_sys_global_symbol_pipe \
27818 lt_cv_sys_global_symbol_to_cdecl \
27819 lt_cv_sys_global_symbol_to_import \
27820 lt_cv_sys_global_symbol_to_c_name_address \
27821 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
27822 lt_cv_nm_interface \
27823 nm_file_list_spec \
27824 lt_cv_truncate_bin \
27825 lt_prog_compiler_no_builtin_flag \
27826 lt_prog_compiler_pic \
27827 lt_prog_compiler_wl \
27828 lt_prog_compiler_static \
27829 lt_cv_prog_compiler_c_o \
27830 need_locks \
27831 MANIFEST_TOOL \
27832 DSYMUTIL \
27833 NMEDIT \
27834 LIPO \
27835 OTOOL \
27836 OTOOL64 \
27837 shrext_cmds \
27838 export_dynamic_flag_spec \
27839 whole_archive_flag_spec \
27840 compiler_needs_object \
27841 with_gnu_ld \
27842 allow_undefined_flag \
27843 no_undefined_flag \
27844 hardcode_libdir_flag_spec \
27845 hardcode_libdir_separator \
27846 exclude_expsyms \
27847 include_expsyms \
27848 file_list_spec \
27849 variables_saved_for_relink \
27850 libname_spec \
27851 library_names_spec \
27852 soname_spec \
27853 install_override_mode \
27854 finish_eval \
27855 old_striplib \
27856 striplib \
27857 compiler_lib_search_dirs \
27858 predep_objects \
27859 postdep_objects \
27860 predeps \
27861 postdeps \
27862 compiler_lib_search_path \
27863 LD_CXX \
27864 reload_flag_CXX \
27865 compiler_CXX \
27866 lt_prog_compiler_no_builtin_flag_CXX \
27867 lt_prog_compiler_pic_CXX \
27868 lt_prog_compiler_wl_CXX \
27869 lt_prog_compiler_static_CXX \
27870 lt_cv_prog_compiler_c_o_CXX \
27871 export_dynamic_flag_spec_CXX \
27872 whole_archive_flag_spec_CXX \
27873 compiler_needs_object_CXX \
27874 with_gnu_ld_CXX \
27875 allow_undefined_flag_CXX \
27876 no_undefined_flag_CXX \
27877 hardcode_libdir_flag_spec_CXX \
27878 hardcode_libdir_separator_CXX \
27879 exclude_expsyms_CXX \
27880 include_expsyms_CXX \
27881 file_list_spec_CXX \
27882 compiler_lib_search_dirs_CXX \
27883 predep_objects_CXX \
27884 postdep_objects_CXX \
27885 predeps_CXX \
27886 postdeps_CXX \
27887 compiler_lib_search_path_CXX; do
27888     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
27889     *[\\\\\\\`\\"\\\$]*)
27890       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
27891       ;;
27892     *)
27893       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
27894       ;;
27895     esac
27896 done
27897
27898 # Double-quote double-evaled strings.
27899 for var in reload_cmds \
27900 old_postinstall_cmds \
27901 old_postuninstall_cmds \
27902 old_archive_cmds \
27903 extract_expsyms_cmds \
27904 old_archive_from_new_cmds \
27905 old_archive_from_expsyms_cmds \
27906 archive_cmds \
27907 archive_expsym_cmds \
27908 module_cmds \
27909 module_expsym_cmds \
27910 export_symbols_cmds \
27911 prelink_cmds \
27912 postlink_cmds \
27913 postinstall_cmds \
27914 postuninstall_cmds \
27915 finish_cmds \
27916 sys_lib_search_path_spec \
27917 configure_time_dlsearch_path \
27918 configure_time_lt_sys_library_path \
27919 reload_cmds_CXX \
27920 old_archive_cmds_CXX \
27921 old_archive_from_new_cmds_CXX \
27922 old_archive_from_expsyms_cmds_CXX \
27923 archive_cmds_CXX \
27924 archive_expsym_cmds_CXX \
27925 module_cmds_CXX \
27926 module_expsym_cmds_CXX \
27927 export_symbols_cmds_CXX \
27928 prelink_cmds_CXX \
27929 postlink_cmds_CXX; do
27930     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
27931     *[\\\\\\\`\\"\\\$]*)
27932       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
27933       ;;
27934     *)
27935       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
27936       ;;
27937     esac
27938 done
27939
27940 ac_aux_dir='$ac_aux_dir'
27941
27942 # See if we are running on zsh, and set the options that allow our
27943 # commands through without removal of \ escapes INIT.
27944 if test -n "\${ZSH_VERSION+set}"; then
27945    setopt NO_GLOB_SUBST
27946 fi
27947
27948
27949     PACKAGE='$PACKAGE'
27950     VERSION='$VERSION'
27951     RM='$RM'
27952     ofile='$ofile'
27953
27954
27955
27956
27957
27958 SED="$SED"
27959                     SVN_DB_HEADER="$SVN_DB_HEADER"
27960
27961 _ACEOF
27962
27963 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27964
27965 # Handling of arguments.
27966 for ac_config_target in $ac_config_targets
27967 do
27968   case $ac_config_target in
27969     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
27970     "subversion/svn_private_config.h.tmp") CONFIG_HEADERS="$CONFIG_HEADERS subversion/svn_private_config.h.tmp:subversion/svn_private_config.h.in" ;;
27971     "svn_private_config.h.tmp") CONFIG_COMMANDS="$CONFIG_COMMANDS svn_private_config.h.tmp" ;;
27972     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
27973     "${pc_file}") CONFIG_FILES="$CONFIG_FILES ${pc_file}" ;;
27974     "tools/backup/hot-backup.py") CONFIG_FILES="$CONFIG_FILES tools/backup/hot-backup.py" ;;
27975     "tools/hook-scripts/commit-access-control.pl") CONFIG_FILES="$CONFIG_FILES tools/hook-scripts/commit-access-control.pl" ;;
27976     "subversion/bindings/swig/perl/native/Makefile.PL") CONFIG_FILES="$CONFIG_FILES subversion/bindings/swig/perl/native/Makefile.PL" ;;
27977     "packages/solaris/pkginfo") CONFIG_FILES="$CONFIG_FILES packages/solaris/pkginfo" ;;
27978
27979   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
27980   esac
27981 done
27982
27983
27984 # If the user did not use the arguments to specify the items to instantiate,
27985 # then the envvar interface is used.  Set only those that are not.
27986 # We use the long form for the default assignment because of an extremely
27987 # bizarre bug on SunOS 4.1.3.
27988 if $ac_need_defaults; then
27989   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
27990   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
27991   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
27992 fi
27993
27994 # Have a temporary directory for convenience.  Make it in the build tree
27995 # simply because there is no reason against having it here, and in addition,
27996 # creating and moving files from /tmp can sometimes cause problems.
27997 # Hook for its removal unless debugging.
27998 # Note that there is a small window in which the directory will not be cleaned:
27999 # after its creation but before its name has been assigned to `$tmp'.
28000 $debug ||
28001 {
28002   tmp= ac_tmp=
28003   trap 'exit_status=$?
28004   : "${ac_tmp:=$tmp}"
28005   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
28006 ' 0
28007   trap 'as_fn_exit 1' 1 2 13 15
28008 }
28009 # Create a (secure) tmp directory for tmp files.
28010
28011 {
28012   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
28013   test -d "$tmp"
28014 }  ||
28015 {
28016   tmp=./conf$$-$RANDOM
28017   (umask 077 && mkdir "$tmp")
28018 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
28019 ac_tmp=$tmp
28020
28021 # Set up the scripts for CONFIG_FILES section.
28022 # No need to generate them if there are no CONFIG_FILES.
28023 # This happens for instance with `./config.status config.h'.
28024 if test -n "$CONFIG_FILES"; then
28025
28026
28027 ac_cr=`echo X | tr X '\015'`
28028 # On cygwin, bash can eat \r inside `` if the user requested igncr.
28029 # But we know of no other shell where ac_cr would be empty at this
28030 # point, so we can use a bashism as a fallback.
28031 if test "x$ac_cr" = x; then
28032   eval ac_cr=\$\'\\r\'
28033 fi
28034 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
28035 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
28036   ac_cs_awk_cr='\\r'
28037 else
28038   ac_cs_awk_cr=$ac_cr
28039 fi
28040
28041 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
28042 _ACEOF
28043
28044
28045 {
28046   echo "cat >conf$$subs.awk <<_ACEOF" &&
28047   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
28048   echo "_ACEOF"
28049 } >conf$$subs.sh ||
28050   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
28051 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
28052 ac_delim='%!_!# '
28053 for ac_last_try in false false false false false :; do
28054   . ./conf$$subs.sh ||
28055     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
28056
28057   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
28058   if test $ac_delim_n = $ac_delim_num; then
28059     break
28060   elif $ac_last_try; then
28061     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
28062   else
28063     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
28064   fi
28065 done
28066 rm -f conf$$subs.sh
28067
28068 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28069 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
28070 _ACEOF
28071 sed -n '
28072 h
28073 s/^/S["/; s/!.*/"]=/
28074 p
28075 g
28076 s/^[^!]*!//
28077 :repl
28078 t repl
28079 s/'"$ac_delim"'$//
28080 t delim
28081 :nl
28082 h
28083 s/\(.\{148\}\)..*/\1/
28084 t more1
28085 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
28086 p
28087 n
28088 b repl
28089 :more1
28090 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
28091 p
28092 g
28093 s/.\{148\}//
28094 t nl
28095 :delim
28096 h
28097 s/\(.\{148\}\)..*/\1/
28098 t more2
28099 s/["\\]/\\&/g; s/^/"/; s/$/"/
28100 p
28101 b
28102 :more2
28103 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
28104 p
28105 g
28106 s/.\{148\}//
28107 t delim
28108 ' <conf$$subs.awk | sed '
28109 /^[^""]/{
28110   N
28111   s/\n//
28112 }
28113 ' >>$CONFIG_STATUS || ac_write_fail=1
28114 rm -f conf$$subs.awk
28115 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28116 _ACAWK
28117 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
28118   for (key in S) S_is_set[key] = 1
28119   FS = "\a"
28120
28121 }
28122 {
28123   line = $ 0
28124   nfields = split(line, field, "@")
28125   substed = 0
28126   len = length(field[1])
28127   for (i = 2; i < nfields; i++) {
28128     key = field[i]
28129     keylen = length(key)
28130     if (S_is_set[key]) {
28131       value = S[key]
28132       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
28133       len += length(value) + length(field[++i])
28134       substed = 1
28135     } else
28136       len += 1 + keylen
28137   }
28138
28139   print line
28140 }
28141
28142 _ACAWK
28143 _ACEOF
28144 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28145 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
28146   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
28147 else
28148   cat
28149 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
28150   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
28151 _ACEOF
28152
28153 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
28154 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
28155 # trailing colons and then remove the whole line if VPATH becomes empty
28156 # (actually we leave an empty line to preserve line numbers).
28157 if test "x$srcdir" = x.; then
28158   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
28159 h
28160 s///
28161 s/^/:/
28162 s/[      ]*$/:/
28163 s/:\$(srcdir):/:/g
28164 s/:\${srcdir}:/:/g
28165 s/:@srcdir@:/:/g
28166 s/^:*//
28167 s/:*$//
28168 x
28169 s/\(=[   ]*\).*/\1/
28170 G
28171 s/\n//
28172 s/^[^=]*=[       ]*$//
28173 }'
28174 fi
28175
28176 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28177 fi # test -n "$CONFIG_FILES"
28178
28179 # Set up the scripts for CONFIG_HEADERS section.
28180 # No need to generate them if there are no CONFIG_HEADERS.
28181 # This happens for instance with `./config.status Makefile'.
28182 if test -n "$CONFIG_HEADERS"; then
28183 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
28184 BEGIN {
28185 _ACEOF
28186
28187 # Transform confdefs.h into an awk script `defines.awk', embedded as
28188 # here-document in config.status, that substitutes the proper values into
28189 # config.h.in to produce config.h.
28190
28191 # Create a delimiter string that does not exist in confdefs.h, to ease
28192 # handling of long lines.
28193 ac_delim='%!_!# '
28194 for ac_last_try in false false :; do
28195   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
28196   if test -z "$ac_tt"; then
28197     break
28198   elif $ac_last_try; then
28199     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
28200   else
28201     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
28202   fi
28203 done
28204
28205 # For the awk script, D is an array of macro values keyed by name,
28206 # likewise P contains macro parameters if any.  Preserve backslash
28207 # newline sequences.
28208
28209 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
28210 sed -n '
28211 s/.\{148\}/&'"$ac_delim"'/g
28212 t rset
28213 :rset
28214 s/^[     ]*#[    ]*define[       ][      ]*/ /
28215 t def
28216 d
28217 :def
28218 s/\\$//
28219 t bsnl
28220 s/["\\]/\\&/g
28221 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
28222 D["\1"]=" \3"/p
28223 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
28224 d
28225 :bsnl
28226 s/["\\]/\\&/g
28227 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
28228 D["\1"]=" \3\\\\\\n"\\/p
28229 t cont
28230 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
28231 t cont
28232 d
28233 :cont
28234 n
28235 s/.\{148\}/&'"$ac_delim"'/g
28236 t clear
28237 :clear
28238 s/\\$//
28239 t bsnlc
28240 s/["\\]/\\&/g; s/^/"/; s/$/"/p
28241 d
28242 :bsnlc
28243 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
28244 b cont
28245 ' <confdefs.h | sed '
28246 s/'"$ac_delim"'/"\\\
28247 "/g' >>$CONFIG_STATUS || ac_write_fail=1
28248
28249 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28250   for (key in D) D_is_set[key] = 1
28251   FS = "\a"
28252 }
28253 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
28254   line = \$ 0
28255   split(line, arg, " ")
28256   if (arg[1] == "#") {
28257     defundef = arg[2]
28258     mac1 = arg[3]
28259   } else {
28260     defundef = substr(arg[1], 2)
28261     mac1 = arg[2]
28262   }
28263   split(mac1, mac2, "(") #)
28264   macro = mac2[1]
28265   prefix = substr(line, 1, index(line, defundef) - 1)
28266   if (D_is_set[macro]) {
28267     # Preserve the white space surrounding the "#".
28268     print prefix "define", macro P[macro] D[macro]
28269     next
28270   } else {
28271     # Replace #undef with comments.  This is necessary, for example,
28272     # in the case of _POSIX_SOURCE, which is predefined and required
28273     # on some systems where configure will not decide to define it.
28274     if (defundef == "undef") {
28275       print "/*", prefix defundef, macro, "*/"
28276       next
28277     }
28278   }
28279 }
28280 { print }
28281 _ACAWK
28282 _ACEOF
28283 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28284   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
28285 fi # test -n "$CONFIG_HEADERS"
28286
28287
28288 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
28289 shift
28290 for ac_tag
28291 do
28292   case $ac_tag in
28293   :[FHLC]) ac_mode=$ac_tag; continue;;
28294   esac
28295   case $ac_mode$ac_tag in
28296   :[FHL]*:*);;
28297   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
28298   :[FH]-) ac_tag=-:-;;
28299   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
28300   esac
28301   ac_save_IFS=$IFS
28302   IFS=:
28303   set x $ac_tag
28304   IFS=$ac_save_IFS
28305   shift
28306   ac_file=$1
28307   shift
28308
28309   case $ac_mode in
28310   :L) ac_source=$1;;
28311   :[FH])
28312     ac_file_inputs=
28313     for ac_f
28314     do
28315       case $ac_f in
28316       -) ac_f="$ac_tmp/stdin";;
28317       *) # Look for the file first in the build tree, then in the source tree
28318          # (if the path is not absolute).  The absolute path cannot be DOS-style,
28319          # because $ac_f cannot contain `:'.
28320          test -f "$ac_f" ||
28321            case $ac_f in
28322            [\\/$]*) false;;
28323            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
28324            esac ||
28325            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
28326       esac
28327       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
28328       as_fn_append ac_file_inputs " '$ac_f'"
28329     done
28330
28331     # Let's still pretend it is `configure' which instantiates (i.e., don't
28332     # use $as_me), people would be surprised to read:
28333     #    /* config.h.  Generated by config.status.  */
28334     configure_input='Generated from '`
28335           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
28336         `' by configure.'
28337     if test x"$ac_file" != x-; then
28338       configure_input="$ac_file.  $configure_input"
28339       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
28340 $as_echo "$as_me: creating $ac_file" >&6;}
28341     fi
28342     # Neutralize special characters interpreted by sed in replacement strings.
28343     case $configure_input in #(
28344     *\&* | *\|* | *\\* )
28345        ac_sed_conf_input=`$as_echo "$configure_input" |
28346        sed 's/[\\\\&|]/\\\\&/g'`;; #(
28347     *) ac_sed_conf_input=$configure_input;;
28348     esac
28349
28350     case $ac_tag in
28351     *:-:* | *:-) cat >"$ac_tmp/stdin" \
28352       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
28353     esac
28354     ;;
28355   esac
28356
28357   ac_dir=`$as_dirname -- "$ac_file" ||
28358 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28359          X"$ac_file" : 'X\(//\)[^/]' \| \
28360          X"$ac_file" : 'X\(//\)$' \| \
28361          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
28362 $as_echo X"$ac_file" |
28363     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28364             s//\1/
28365             q
28366           }
28367           /^X\(\/\/\)[^/].*/{
28368             s//\1/
28369             q
28370           }
28371           /^X\(\/\/\)$/{
28372             s//\1/
28373             q
28374           }
28375           /^X\(\/\).*/{
28376             s//\1/
28377             q
28378           }
28379           s/.*/./; q'`
28380   as_dir="$ac_dir"; as_fn_mkdir_p
28381   ac_builddir=.
28382
28383 case "$ac_dir" in
28384 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
28385 *)
28386   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
28387   # A ".." for each directory in $ac_dir_suffix.
28388   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
28389   case $ac_top_builddir_sub in
28390   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
28391   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
28392   esac ;;
28393 esac
28394 ac_abs_top_builddir=$ac_pwd
28395 ac_abs_builddir=$ac_pwd$ac_dir_suffix
28396 # for backward compatibility:
28397 ac_top_builddir=$ac_top_build_prefix
28398
28399 case $srcdir in
28400   .)  # We are building in place.
28401     ac_srcdir=.
28402     ac_top_srcdir=$ac_top_builddir_sub
28403     ac_abs_top_srcdir=$ac_pwd ;;
28404   [\\/]* | ?:[\\/]* )  # Absolute name.
28405     ac_srcdir=$srcdir$ac_dir_suffix;
28406     ac_top_srcdir=$srcdir
28407     ac_abs_top_srcdir=$srcdir ;;
28408   *) # Relative name.
28409     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
28410     ac_top_srcdir=$ac_top_build_prefix$srcdir
28411     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
28412 esac
28413 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
28414
28415
28416   case $ac_mode in
28417   :F)
28418   #
28419   # CONFIG_FILE
28420   #
28421
28422   case $INSTALL in
28423   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
28424   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
28425   esac
28426 _ACEOF
28427
28428 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28429 # If the template does not know about datarootdir, expand it.
28430 # FIXME: This hack should be removed a few years after 2.60.
28431 ac_datarootdir_hack=; ac_datarootdir_seen=
28432 ac_sed_dataroot='
28433 /datarootdir/ {
28434   p
28435   q
28436 }
28437 /@datadir@/p
28438 /@docdir@/p
28439 /@infodir@/p
28440 /@localedir@/p
28441 /@mandir@/p'
28442 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
28443 *datarootdir*) ac_datarootdir_seen=yes;;
28444 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
28445   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
28446 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
28447 _ACEOF
28448 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28449   ac_datarootdir_hack='
28450   s&@datadir@&$datadir&g
28451   s&@docdir@&$docdir&g
28452   s&@infodir@&$infodir&g
28453   s&@localedir@&$localedir&g
28454   s&@mandir@&$mandir&g
28455   s&\\\${datarootdir}&$datarootdir&g' ;;
28456 esac
28457 _ACEOF
28458
28459 # Neutralize VPATH when `$srcdir' = `.'.
28460 # Shell code in configure.ac might set extrasub.
28461 # FIXME: do we really want to maintain this feature?
28462 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28463 ac_sed_extra="$ac_vpsub
28464 $extrasub
28465 _ACEOF
28466 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28467 :t
28468 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
28469 s|@configure_input@|$ac_sed_conf_input|;t t
28470 s&@top_builddir@&$ac_top_builddir_sub&;t t
28471 s&@top_build_prefix@&$ac_top_build_prefix&;t t
28472 s&@srcdir@&$ac_srcdir&;t t
28473 s&@abs_srcdir@&$ac_abs_srcdir&;t t
28474 s&@top_srcdir@&$ac_top_srcdir&;t t
28475 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
28476 s&@builddir@&$ac_builddir&;t t
28477 s&@abs_builddir@&$ac_abs_builddir&;t t
28478 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
28479 s&@INSTALL@&$ac_INSTALL&;t t
28480 $ac_datarootdir_hack
28481 "
28482 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
28483   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
28484
28485 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
28486   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
28487   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
28488       "$ac_tmp/out"`; test -z "$ac_out"; } &&
28489   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
28490 which seems to be undefined.  Please make sure it is defined" >&5
28491 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
28492 which seems to be undefined.  Please make sure it is defined" >&2;}
28493
28494   rm -f "$ac_tmp/stdin"
28495   case $ac_file in
28496   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
28497   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
28498   esac \
28499   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
28500  ;;
28501   :H)
28502   #
28503   # CONFIG_HEADER
28504   #
28505   if test x"$ac_file" != x-; then
28506     {
28507       $as_echo "/* $configure_input  */" \
28508       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
28509     } >"$ac_tmp/config.h" \
28510       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
28511     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
28512       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
28513 $as_echo "$as_me: $ac_file is unchanged" >&6;}
28514     else
28515       rm -f "$ac_file"
28516       mv "$ac_tmp/config.h" "$ac_file" \
28517         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
28518     fi
28519   else
28520     $as_echo "/* $configure_input  */" \
28521       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
28522       || as_fn_error $? "could not create -" "$LINENO" 5
28523   fi
28524  ;;
28525
28526   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
28527 $as_echo "$as_me: executing $ac_file commands" >&6;}
28528  ;;
28529   esac
28530
28531
28532   case $ac_file$ac_mode in
28533     "libtool":C)
28534
28535     # See if we are running on zsh, and set the options that allow our
28536     # commands through without removal of \ escapes.
28537     if test -n "${ZSH_VERSION+set}"; then
28538       setopt NO_GLOB_SUBST
28539     fi
28540
28541     cfgfile=${ofile}T
28542     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
28543     $RM "$cfgfile"
28544
28545     cat <<_LT_EOF >> "$cfgfile"
28546 #! $SHELL
28547 # Generated automatically by $as_me ($PACKAGE) $VERSION
28548 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
28549 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
28550
28551 # Provide generalized library-building support services.
28552 # Written by Gordon Matzigkeit, 1996
28553
28554 # Copyright (C) 2014 Free Software Foundation, Inc.
28555 # This is free software; see the source for copying conditions.  There is NO
28556 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
28557
28558 # GNU Libtool is free software; you can redistribute it and/or modify
28559 # it under the terms of the GNU General Public License as published by
28560 # the Free Software Foundation; either version 2 of of the License, or
28561 # (at your option) any later version.
28562 #
28563 # As a special exception to the GNU General Public License, if you
28564 # distribute this file as part of a program or library that is built
28565 # using GNU Libtool, you may include this file under the  same
28566 # distribution terms that you use for the rest of that program.
28567 #
28568 # GNU Libtool is distributed in the hope that it will be useful, but
28569 # WITHOUT ANY WARRANTY; without even the implied warranty of
28570 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
28571 # GNU General Public License for more details.
28572 #
28573 # You should have received a copy of the GNU General Public License
28574 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
28575
28576
28577 # The names of the tagged configurations supported by this script.
28578 available_tags='CXX '
28579
28580 # Configured defaults for sys_lib_dlsearch_path munging.
28581 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
28582
28583 # ### BEGIN LIBTOOL CONFIG
28584
28585 # Which release of libtool.m4 was used?
28586 macro_version=$macro_version
28587 macro_revision=$macro_revision
28588
28589 # Whether or not to build shared libraries.
28590 build_libtool_libs=$enable_shared
28591
28592 # Whether or not to build static libraries.
28593 build_old_libs=$enable_static
28594
28595 # What type of objects to build.
28596 pic_mode=$pic_mode
28597
28598 # Whether or not to optimize for fast installation.
28599 fast_install=$enable_fast_install
28600
28601 # Shared archive member basename,for filename based shared library versioning on AIX.
28602 shared_archive_member_spec=$shared_archive_member_spec
28603
28604 # Shell to use when invoking shell scripts.
28605 SHELL=$lt_SHELL
28606
28607 # An echo program that protects backslashes.
28608 ECHO=$lt_ECHO
28609
28610 # The PATH separator for the build system.
28611 PATH_SEPARATOR=$lt_PATH_SEPARATOR
28612
28613 # The host system.
28614 host_alias=$host_alias
28615 host=$host
28616 host_os=$host_os
28617
28618 # The build system.
28619 build_alias=$build_alias
28620 build=$build
28621 build_os=$build_os
28622
28623 # A sed program that does not truncate output.
28624 SED=$lt_SED
28625
28626 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
28627 Xsed="\$SED -e 1s/^X//"
28628
28629 # A grep program that handles long lines.
28630 GREP=$lt_GREP
28631
28632 # An ERE matcher.
28633 EGREP=$lt_EGREP
28634
28635 # A literal string matcher.
28636 FGREP=$lt_FGREP
28637
28638 # A BSD- or MS-compatible name lister.
28639 NM=$lt_NM
28640
28641 # Whether we need soft or hard links.
28642 LN_S=$lt_LN_S
28643
28644 # What is the maximum length of a command?
28645 max_cmd_len=$max_cmd_len
28646
28647 # Object file suffix (normally "o").
28648 objext=$ac_objext
28649
28650 # Executable file suffix (normally "").
28651 exeext=$exeext
28652
28653 # whether the shell understands "unset".
28654 lt_unset=$lt_unset
28655
28656 # turn spaces into newlines.
28657 SP2NL=$lt_lt_SP2NL
28658
28659 # turn newlines into spaces.
28660 NL2SP=$lt_lt_NL2SP
28661
28662 # convert \$build file names to \$host format.
28663 to_host_file_cmd=$lt_cv_to_host_file_cmd
28664
28665 # convert \$build files to toolchain format.
28666 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
28667
28668 # An object symbol dumper.
28669 OBJDUMP=$lt_OBJDUMP
28670
28671 # Method to check whether dependent libraries are shared objects.
28672 deplibs_check_method=$lt_deplibs_check_method
28673
28674 # Command to use when deplibs_check_method = "file_magic".
28675 file_magic_cmd=$lt_file_magic_cmd
28676
28677 # How to find potential files when deplibs_check_method = "file_magic".
28678 file_magic_glob=$lt_file_magic_glob
28679
28680 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
28681 want_nocaseglob=$lt_want_nocaseglob
28682
28683 # DLL creation program.
28684 DLLTOOL=$lt_DLLTOOL
28685
28686 # Command to associate shared and link libraries.
28687 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
28688
28689 # The archiver.
28690 AR=$lt_AR
28691
28692 # Flags to create an archive.
28693 AR_FLAGS=$lt_AR_FLAGS
28694
28695 # How to feed a file listing to the archiver.
28696 archiver_list_spec=$lt_archiver_list_spec
28697
28698 # A symbol stripping program.
28699 STRIP=$lt_STRIP
28700
28701 # Commands used to install an old-style archive.
28702 RANLIB=$lt_RANLIB
28703 old_postinstall_cmds=$lt_old_postinstall_cmds
28704 old_postuninstall_cmds=$lt_old_postuninstall_cmds
28705
28706 # Whether to use a lock for old archive extraction.
28707 lock_old_archive_extraction=$lock_old_archive_extraction
28708
28709 # A C compiler.
28710 LTCC=$lt_CC
28711
28712 # LTCC compiler flags.
28713 LTCFLAGS=$lt_CFLAGS
28714
28715 # Take the output of nm and produce a listing of raw symbols and C names.
28716 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
28717
28718 # Transform the output of nm in a proper C declaration.
28719 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
28720
28721 # Transform the output of nm into a list of symbols to manually relocate.
28722 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
28723
28724 # Transform the output of nm in a C name address pair.
28725 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
28726
28727 # Transform the output of nm in a C name address pair when lib prefix is needed.
28728 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
28729
28730 # The name lister interface.
28731 nm_interface=$lt_lt_cv_nm_interface
28732
28733 # Specify filename containing input files for \$NM.
28734 nm_file_list_spec=$lt_nm_file_list_spec
28735
28736 # The root where to search for dependent libraries,and where our libraries should be installed.
28737 lt_sysroot=$lt_sysroot
28738
28739 # Command to truncate a binary pipe.
28740 lt_truncate_bin=$lt_lt_cv_truncate_bin
28741
28742 # The name of the directory that contains temporary libtool files.
28743 objdir=$objdir
28744
28745 # Used to examine libraries when file_magic_cmd begins with "file".
28746 MAGIC_CMD=$MAGIC_CMD
28747
28748 # Must we lock files when doing compilation?
28749 need_locks=$lt_need_locks
28750
28751 # Manifest tool.
28752 MANIFEST_TOOL=$lt_MANIFEST_TOOL
28753
28754 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
28755 DSYMUTIL=$lt_DSYMUTIL
28756
28757 # Tool to change global to local symbols on Mac OS X.
28758 NMEDIT=$lt_NMEDIT
28759
28760 # Tool to manipulate fat objects and archives on Mac OS X.
28761 LIPO=$lt_LIPO
28762
28763 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
28764 OTOOL=$lt_OTOOL
28765
28766 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
28767 OTOOL64=$lt_OTOOL64
28768
28769 # Old archive suffix (normally "a").
28770 libext=$libext
28771
28772 # Shared library suffix (normally ".so").
28773 shrext_cmds=$lt_shrext_cmds
28774
28775 # The commands to extract the exported symbol list from a shared archive.
28776 extract_expsyms_cmds=$lt_extract_expsyms_cmds
28777
28778 # Variables whose values should be saved in libtool wrapper scripts and
28779 # restored at link time.
28780 variables_saved_for_relink=$lt_variables_saved_for_relink
28781
28782 # Do we need the "lib" prefix for modules?
28783 need_lib_prefix=$need_lib_prefix
28784
28785 # Do we need a version for libraries?
28786 need_version=$need_version
28787
28788 # Library versioning type.
28789 version_type=$version_type
28790
28791 # Shared library runtime path variable.
28792 runpath_var=$runpath_var
28793
28794 # Shared library path variable.
28795 shlibpath_var=$shlibpath_var
28796
28797 # Is shlibpath searched before the hard-coded library search path?
28798 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
28799
28800 # Format of library name prefix.
28801 libname_spec=$lt_libname_spec
28802
28803 # List of archive names.  First name is the real one, the rest are links.
28804 # The last name is the one that the linker finds with -lNAME
28805 library_names_spec=$lt_library_names_spec
28806
28807 # The coded name of the library, if different from the real name.
28808 soname_spec=$lt_soname_spec
28809
28810 # Permission mode override for installation of shared libraries.
28811 install_override_mode=$lt_install_override_mode
28812
28813 # Command to use after installation of a shared archive.
28814 postinstall_cmds=$lt_postinstall_cmds
28815
28816 # Command to use after uninstallation of a shared archive.
28817 postuninstall_cmds=$lt_postuninstall_cmds
28818
28819 # Commands used to finish a libtool library installation in a directory.
28820 finish_cmds=$lt_finish_cmds
28821
28822 # As "finish_cmds", except a single script fragment to be evaled but
28823 # not shown.
28824 finish_eval=$lt_finish_eval
28825
28826 # Whether we should hardcode library paths into libraries.
28827 hardcode_into_libs=$hardcode_into_libs
28828
28829 # Compile-time system search path for libraries.
28830 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
28831
28832 # Detected run-time system search path for libraries.
28833 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
28834
28835 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
28836 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
28837
28838 # Whether dlopen is supported.
28839 dlopen_support=$enable_dlopen
28840
28841 # Whether dlopen of programs is supported.
28842 dlopen_self=$enable_dlopen_self
28843
28844 # Whether dlopen of statically linked programs is supported.
28845 dlopen_self_static=$enable_dlopen_self_static
28846
28847 # Commands to strip libraries.
28848 old_striplib=$lt_old_striplib
28849 striplib=$lt_striplib
28850
28851
28852 # The linker used to build libraries.
28853 LD=$lt_LD
28854
28855 # How to create reloadable object files.
28856 reload_flag=$lt_reload_flag
28857 reload_cmds=$lt_reload_cmds
28858
28859 # Commands used to build an old-style archive.
28860 old_archive_cmds=$lt_old_archive_cmds
28861
28862 # A language specific compiler.
28863 CC=$lt_compiler
28864
28865 # Is the compiler the GNU compiler?
28866 with_gcc=$GCC
28867
28868 # Compiler flag to turn off builtin functions.
28869 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
28870
28871 # Additional compiler flags for building library objects.
28872 pic_flag=$lt_lt_prog_compiler_pic
28873
28874 # How to pass a linker flag through the compiler.
28875 wl=$lt_lt_prog_compiler_wl
28876
28877 # Compiler flag to prevent dynamic linking.
28878 link_static_flag=$lt_lt_prog_compiler_static
28879
28880 # Does compiler simultaneously support -c and -o options?
28881 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
28882
28883 # Whether or not to add -lc for building shared libraries.
28884 build_libtool_need_lc=$archive_cmds_need_lc
28885
28886 # Whether or not to disallow shared libs when runtime libs are static.
28887 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
28888
28889 # Compiler flag to allow reflexive dlopens.
28890 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
28891
28892 # Compiler flag to generate shared objects directly from archives.
28893 whole_archive_flag_spec=$lt_whole_archive_flag_spec
28894
28895 # Whether the compiler copes with passing no objects directly.
28896 compiler_needs_object=$lt_compiler_needs_object
28897
28898 # Create an old-style archive from a shared archive.
28899 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
28900
28901 # Create a temporary old-style archive to link instead of a shared archive.
28902 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
28903
28904 # Commands used to build a shared archive.
28905 archive_cmds=$lt_archive_cmds
28906 archive_expsym_cmds=$lt_archive_expsym_cmds
28907
28908 # Commands used to build a loadable module if different from building
28909 # a shared archive.
28910 module_cmds=$lt_module_cmds
28911 module_expsym_cmds=$lt_module_expsym_cmds
28912
28913 # Whether we are building with GNU ld or not.
28914 with_gnu_ld=$lt_with_gnu_ld
28915
28916 # Flag that allows shared libraries with undefined symbols to be built.
28917 allow_undefined_flag=$lt_allow_undefined_flag
28918
28919 # Flag that enforces no undefined symbols.
28920 no_undefined_flag=$lt_no_undefined_flag
28921
28922 # Flag to hardcode \$libdir into a binary during linking.
28923 # This must work even if \$libdir does not exist
28924 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
28925
28926 # Whether we need a single "-rpath" flag with a separated argument.
28927 hardcode_libdir_separator=$lt_hardcode_libdir_separator
28928
28929 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
28930 # DIR into the resulting binary.
28931 hardcode_direct=$hardcode_direct
28932
28933 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
28934 # DIR into the resulting binary and the resulting library dependency is
28935 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
28936 # library is relocated.
28937 hardcode_direct_absolute=$hardcode_direct_absolute
28938
28939 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
28940 # into the resulting binary.
28941 hardcode_minus_L=$hardcode_minus_L
28942
28943 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
28944 # into the resulting binary.
28945 hardcode_shlibpath_var=$hardcode_shlibpath_var
28946
28947 # Set to "yes" if building a shared library automatically hardcodes DIR
28948 # into the library and all subsequent libraries and executables linked
28949 # against it.
28950 hardcode_automatic=$hardcode_automatic
28951
28952 # Set to yes if linker adds runtime paths of dependent libraries
28953 # to runtime path list.
28954 inherit_rpath=$inherit_rpath
28955
28956 # Whether libtool must link a program against all its dependency libraries.
28957 link_all_deplibs=$link_all_deplibs
28958
28959 # Set to "yes" if exported symbols are required.
28960 always_export_symbols=$always_export_symbols
28961
28962 # The commands to list exported symbols.
28963 export_symbols_cmds=$lt_export_symbols_cmds
28964
28965 # Symbols that should not be listed in the preloaded symbols.
28966 exclude_expsyms=$lt_exclude_expsyms
28967
28968 # Symbols that must always be exported.
28969 include_expsyms=$lt_include_expsyms
28970
28971 # Commands necessary for linking programs (against libraries) with templates.
28972 prelink_cmds=$lt_prelink_cmds
28973
28974 # Commands necessary for finishing linking programs.
28975 postlink_cmds=$lt_postlink_cmds
28976
28977 # Specify filename containing input files.
28978 file_list_spec=$lt_file_list_spec
28979
28980 # How to hardcode a shared library path into an executable.
28981 hardcode_action=$hardcode_action
28982
28983 # The directories searched by this compiler when creating a shared library.
28984 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
28985
28986 # Dependencies to place before and after the objects being linked to
28987 # create a shared library.
28988 predep_objects=$lt_predep_objects
28989 postdep_objects=$lt_postdep_objects
28990 predeps=$lt_predeps
28991 postdeps=$lt_postdeps
28992
28993 # The library search path used internally by the compiler when linking
28994 # a shared library.
28995 compiler_lib_search_path=$lt_compiler_lib_search_path
28996
28997 # ### END LIBTOOL CONFIG
28998
28999 _LT_EOF
29000
29001     cat <<'_LT_EOF' >> "$cfgfile"
29002
29003 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
29004
29005 # func_munge_path_list VARIABLE PATH
29006 # -----------------------------------
29007 # VARIABLE is name of variable containing _space_ separated list of
29008 # directories to be munged by the contents of PATH, which is string
29009 # having a format:
29010 # "DIR[:DIR]:"
29011 #       string "DIR[ DIR]" will be prepended to VARIABLE
29012 # ":DIR[:DIR]"
29013 #       string "DIR[ DIR]" will be appended to VARIABLE
29014 # "DIRP[:DIRP]::[DIRA:]DIRA"
29015 #       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
29016 #       "DIRA[ DIRA]" will be appended to VARIABLE
29017 # "DIR[:DIR]"
29018 #       VARIABLE will be replaced by "DIR[ DIR]"
29019 func_munge_path_list ()
29020 {
29021     case x$2 in
29022     x)
29023         ;;
29024     *:)
29025         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
29026         ;;
29027     x:*)
29028         eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
29029         ;;
29030     *::*)
29031         eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
29032         eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
29033         ;;
29034     *)
29035         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
29036         ;;
29037     esac
29038 }
29039
29040
29041 # Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
29042 func_cc_basename ()
29043 {
29044     for cc_temp in $*""; do
29045       case $cc_temp in
29046         compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
29047         distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
29048         \-*) ;;
29049         *) break;;
29050       esac
29051     done
29052     func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
29053 }
29054
29055
29056 # ### END FUNCTIONS SHARED WITH CONFIGURE
29057
29058 _LT_EOF
29059
29060   case $host_os in
29061   aix3*)
29062     cat <<\_LT_EOF >> "$cfgfile"
29063 # AIX sometimes has problems with the GCC collect2 program.  For some
29064 # reason, if we set the COLLECT_NAMES environment variable, the problems
29065 # vanish in a puff of smoke.
29066 if test set != "${COLLECT_NAMES+set}"; then
29067   COLLECT_NAMES=
29068   export COLLECT_NAMES
29069 fi
29070 _LT_EOF
29071     ;;
29072   esac
29073
29074
29075 ltmain=$ac_aux_dir/ltmain.sh
29076
29077
29078   # We use sed instead of cat because bash on DJGPP gets confused if
29079   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
29080   # text mode, it properly converts lines to CR/LF.  This bash problem
29081   # is reportedly fixed, but why not run on old versions too?
29082   sed '$q' "$ltmain" >> "$cfgfile" \
29083      || (rm -f "$cfgfile"; exit 1)
29084
29085    mv -f "$cfgfile" "$ofile" ||
29086     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
29087   chmod +x "$ofile"
29088
29089
29090     cat <<_LT_EOF >> "$ofile"
29091
29092 # ### BEGIN LIBTOOL TAG CONFIG: CXX
29093
29094 # The linker used to build libraries.
29095 LD=$lt_LD_CXX
29096
29097 # How to create reloadable object files.
29098 reload_flag=$lt_reload_flag_CXX
29099 reload_cmds=$lt_reload_cmds_CXX
29100
29101 # Commands used to build an old-style archive.
29102 old_archive_cmds=$lt_old_archive_cmds_CXX
29103
29104 # A language specific compiler.
29105 CC=$lt_compiler_CXX
29106
29107 # Is the compiler the GNU compiler?
29108 with_gcc=$GCC_CXX
29109
29110 # Compiler flag to turn off builtin functions.
29111 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
29112
29113 # Additional compiler flags for building library objects.
29114 pic_flag=$lt_lt_prog_compiler_pic_CXX
29115
29116 # How to pass a linker flag through the compiler.
29117 wl=$lt_lt_prog_compiler_wl_CXX
29118
29119 # Compiler flag to prevent dynamic linking.
29120 link_static_flag=$lt_lt_prog_compiler_static_CXX
29121
29122 # Does compiler simultaneously support -c and -o options?
29123 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
29124
29125 # Whether or not to add -lc for building shared libraries.
29126 build_libtool_need_lc=$archive_cmds_need_lc_CXX
29127
29128 # Whether or not to disallow shared libs when runtime libs are static.
29129 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
29130
29131 # Compiler flag to allow reflexive dlopens.
29132 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
29133
29134 # Compiler flag to generate shared objects directly from archives.
29135 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
29136
29137 # Whether the compiler copes with passing no objects directly.
29138 compiler_needs_object=$lt_compiler_needs_object_CXX
29139
29140 # Create an old-style archive from a shared archive.
29141 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
29142
29143 # Create a temporary old-style archive to link instead of a shared archive.
29144 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
29145
29146 # Commands used to build a shared archive.
29147 archive_cmds=$lt_archive_cmds_CXX
29148 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
29149
29150 # Commands used to build a loadable module if different from building
29151 # a shared archive.
29152 module_cmds=$lt_module_cmds_CXX
29153 module_expsym_cmds=$lt_module_expsym_cmds_CXX
29154
29155 # Whether we are building with GNU ld or not.
29156 with_gnu_ld=$lt_with_gnu_ld_CXX
29157
29158 # Flag that allows shared libraries with undefined symbols to be built.
29159 allow_undefined_flag=$lt_allow_undefined_flag_CXX
29160
29161 # Flag that enforces no undefined symbols.
29162 no_undefined_flag=$lt_no_undefined_flag_CXX
29163
29164 # Flag to hardcode \$libdir into a binary during linking.
29165 # This must work even if \$libdir does not exist
29166 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
29167
29168 # Whether we need a single "-rpath" flag with a separated argument.
29169 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
29170
29171 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
29172 # DIR into the resulting binary.
29173 hardcode_direct=$hardcode_direct_CXX
29174
29175 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
29176 # DIR into the resulting binary and the resulting library dependency is
29177 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
29178 # library is relocated.
29179 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
29180
29181 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
29182 # into the resulting binary.
29183 hardcode_minus_L=$hardcode_minus_L_CXX
29184
29185 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
29186 # into the resulting binary.
29187 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
29188
29189 # Set to "yes" if building a shared library automatically hardcodes DIR
29190 # into the library and all subsequent libraries and executables linked
29191 # against it.
29192 hardcode_automatic=$hardcode_automatic_CXX
29193
29194 # Set to yes if linker adds runtime paths of dependent libraries
29195 # to runtime path list.
29196 inherit_rpath=$inherit_rpath_CXX
29197
29198 # Whether libtool must link a program against all its dependency libraries.
29199 link_all_deplibs=$link_all_deplibs_CXX
29200
29201 # Set to "yes" if exported symbols are required.
29202 always_export_symbols=$always_export_symbols_CXX
29203
29204 # The commands to list exported symbols.
29205 export_symbols_cmds=$lt_export_symbols_cmds_CXX
29206
29207 # Symbols that should not be listed in the preloaded symbols.
29208 exclude_expsyms=$lt_exclude_expsyms_CXX
29209
29210 # Symbols that must always be exported.
29211 include_expsyms=$lt_include_expsyms_CXX
29212
29213 # Commands necessary for linking programs (against libraries) with templates.
29214 prelink_cmds=$lt_prelink_cmds_CXX
29215
29216 # Commands necessary for finishing linking programs.
29217 postlink_cmds=$lt_postlink_cmds_CXX
29218
29219 # Specify filename containing input files.
29220 file_list_spec=$lt_file_list_spec_CXX
29221
29222 # How to hardcode a shared library path into an executable.
29223 hardcode_action=$hardcode_action_CXX
29224
29225 # The directories searched by this compiler when creating a shared library.
29226 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
29227
29228 # Dependencies to place before and after the objects being linked to
29229 # create a shared library.
29230 predep_objects=$lt_predep_objects_CXX
29231 postdep_objects=$lt_postdep_objects_CXX
29232 predeps=$lt_predeps_CXX
29233 postdeps=$lt_postdeps_CXX
29234
29235 # The library search path used internally by the compiler when linking
29236 # a shared library.
29237 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
29238
29239 # ### END LIBTOOL TAG CONFIG: CXX
29240 _LT_EOF
29241
29242  ;;
29243     "svn_private_config.h.tmp":C) svn_cf=subversion/svn_private_config.h;
29244                     $SED -e "s/@SVN_DB_HEADER@/$SVN_DB_HEADER/" $svn_cf.tmp > $svn_cf.tmp.new
29245                     cmp -s $svn_cf.tmp.new $svn_cf || mv -f $svn_cf.tmp.new $svn_cf
29246                     rm -f $svn_cf.tmp.new $svn_cf.tmp ;;
29247     "tools/backup/hot-backup.py":F) chmod +x tools/backup/hot-backup.py ;;
29248     "tools/hook-scripts/commit-access-control.pl":F) chmod +x tools/hook-scripts/commit-access-control.pl ;;
29249     "subversion/bindings/swig/perl/native/Makefile.PL":F) chmod +x subversion/bindings/swig/perl/native/Makefile.PL ;;
29250     "packages/solaris/pkginfo":F) chmod +x packages/solaris/pkginfo ;;
29251
29252   esac
29253 done # for ac_tag
29254
29255
29256 as_fn_exit 0
29257 _ACEOF
29258 ac_clean_files=$ac_clean_files_save
29259
29260 test $ac_write_fail = 0 ||
29261   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
29262
29263
29264 # configure is writing to config.log, and then calls config.status.
29265 # config.status does its own redirection, appending to config.log.
29266 # Unfortunately, on DOS this fails, as config.log is still kept open
29267 # by configure, so config.status won't be able to write to it; its
29268 # output is simply discarded.  So we exec the FD to /dev/null,
29269 # effectively closing config.log, so it can be properly (re)opened and
29270 # appended to by config.status.  When coming back to configure, we
29271 # need to make the FD available again.
29272 if test "$no_create" != yes; then
29273   ac_cs_success=:
29274   ac_config_status_args=
29275   test "$silent" = yes &&
29276     ac_config_status_args="$ac_config_status_args --quiet"
29277   exec 5>/dev/null
29278   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
29279   exec 5>>config.log
29280   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
29281   # would make configure fail if this is the last instruction.
29282   $ac_cs_success || as_fn_exit 1
29283 fi
29284 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
29285   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
29286 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
29287 fi
29288
29289
29290 # ==== Print final messages to user ==========================================
29291
29292
29293 if test "$svn_have_berkeley_db" = "no6" && test "$enable_bdb6" != "no"; then
29294   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: We have configured without BDB filesystem support
29295
29296
29297 Berkeley DB 6 was found, but not used.  Please re-run configure (see
29298 ./config.nice) with the '--enable-bdb6' flag to use it,
29299 or explicitly specify '--disable-bdb6' or '--without-berkeley-db'
29300 to silence this warning.
29301
29302 Please note that some versions of Berkeley DB 6+ are under the GNU Affero
29303 General Public License, version 3:
29304 https://oss.oracle.com/pipermail/bdb/2013-June/000056.html
29305
29306 The AGPL-3.0 licence may impose special requirements for making available
29307 source code of server-side software.  The text of the licence is:
29308 https://www.gnu.org/licenses/agpl-3.0.html
29309 http://opensource.org/licenses/AGPL-3.0
29310
29311 The Berkeley DB backend to Subversion is deprecated; see
29312 http://subversion.apache.org/docs/release-notes/1.8#bdb-deprecated
29313
29314 The Subversion developers have not tested Subversion with Berkeley DB 6 for
29315 technical problems or bugs.
29316 " >&5
29317 $as_echo "$as_me: WARNING: We have configured without BDB filesystem support
29318
29319
29320 Berkeley DB 6 was found, but not used.  Please re-run configure (see
29321 ./config.nice) with the '--enable-bdb6' flag to use it,
29322 or explicitly specify '--disable-bdb6' or '--without-berkeley-db'
29323 to silence this warning.
29324
29325 Please note that some versions of Berkeley DB 6+ are under the GNU Affero
29326 General Public License, version 3:
29327 https://oss.oracle.com/pipermail/bdb/2013-June/000056.html
29328
29329 The AGPL-3.0 licence may impose special requirements for making available
29330 source code of server-side software.  The text of the licence is:
29331 https://www.gnu.org/licenses/agpl-3.0.html
29332 http://opensource.org/licenses/AGPL-3.0
29333
29334 The Berkeley DB backend to Subversion is deprecated; see
29335 http://subversion.apache.org/docs/release-notes/1.8#bdb-deprecated
29336
29337 The Subversion developers have not tested Subversion with Berkeley DB 6 for
29338 technical problems or bugs.
29339 " >&2;}
29340 fi