]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/blob - contrib/subversion/configure
Backport security fix for absolute path traversal vulnerability in bsdcpio.
[FreeBSD/stable/10.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.9.4.
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.9.4'
594 PACKAGE_STRING='subversion 1.9.4'
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 SWIG_CPPFLAGS
639 JAVAHL_COMPAT_TESTS_TARGET
640 JAVAHL_TESTS_TARGET
641 JAVA_CLASSPATH
642 LT_CXX_LIBADD
643 FIX_JAVAHL_LIB
644 JAVAHL_OBJDIR
645 INSTALL_EXTRA_JAVAHL_LIB
646 SVN_FS_LIB_LINK
647 SVN_FS_LIB_INSTALL_DEPS
648 SVN_FS_LIB_DEPS
649 SVN_RA_LIB_LINK
650 SVN_RA_LIB_INSTALL_DEPS
651 SVN_RA_LIB_DEPS
652 CTYPESGEN
653 SWIG_RB_TEST_VERBOSE
654 SWIG_RB_SITE_ARCH_DIR
655 SWIG_RB_SITE_LIB_DIR
656 SWIG_RB_COMPILE
657 SWIG_RB_INCLUDES
658 SWIG_RB_LIBS
659 SWIG_RB_LINK
660 SWIG_PL_INCLUDES
661 SWIG_PY_LIBS
662 SWIG_PY_LINK
663 SWIG_PY_COMPILE
664 SWIG_PY_INCLUDES
665 SWIG
666 RUBY_TEENY
667 RUBY_MINOR
668 RUBY_MAJOR
669 RDOC
670 RUBY
671 PERL
672 JNI_INCLUDES
673 JAR
674 JAVAH
675 JAVADOC
676 JAVAC_COMPAT_FLAGS
677 JAVAC_FLAGS
678 JAVAC
679 JAVA
680 JDK
681 PYTHON
682 MOD_ACTIVATION
683 SVN_ZLIB_LIBS
684 SVN_ZLIB_INCLUDES
685 libsvn_wc_LDFLAGS
686 libsvn_subr_LDFLAGS
687 libsvn_repos_LDFLAGS
688 libsvn_ra_svn_LDFLAGS
689 libsvn_ra_serf_LDFLAGS
690 libsvn_ra_local_LDFLAGS
691 libsvn_ra_LDFLAGS
692 libsvn_fs_util_LDFLAGS
693 libsvn_fs_fs_LDFLAGS
694 libsvn_fs_base_LDFLAGS
695 libsvn_fs_LDFLAGS
696 libsvn_diff_LDFLAGS
697 libsvn_delta_LDFLAGS
698 libsvn_client_LDFLAGS
699 libsvn_auth_kwallet_LDFLAGS
700 libsvn_auth_gnome_keyring_LDFLAGS
701 LIBOBJS
702 BDB_TEST_PROGRAMS
703 BDB_TEST_DEPS
704 INSTALL_RULES
705 INSTALL_STATIC_RULES
706 BUILD_RULES
707 SVN_KWALLET_LIBS
708 SVN_KWALLET_INCLUDES
709 KDE4_CONFIG
710 SVN_MAGIC_LIBS
711 SVN_MAGIC_INCLUDES
712 MSGFMTFLAGS
713 NO_GETTEXT_CODESET
714 GETTEXT_CODESET
715 SVN_INTL_LIBS
716 XGETTEXT
717 MSGMERGE
718 MSGFMT
719 SVN_USE_GMOCK
720 GMOCK_SRCDIR
721 SVN_GNOME_KEYRING_LIBS
722 SVN_GNOME_KEYRING_INCLUDES
723 SVN_HAVE_GPG_AGENT
724 SVN_SASL_LIBS
725 SVN_SASL_INCLUDES
726 SVN_DB_LIBS
727 SVN_DB_INCLUDES
728 SVN_XML_LIBS
729 SVN_XML_INCLUDES
730 DOXYGEN
731 TRANG
732 LT_NO_UNDEFINED
733 TRANSFORM_LIBTOOL_SCRIPTS
734 LT_LDFLAGS
735 LT_CFLAGS
736 SVN_LIBTOOL
737 CXXCPP
738 LT_SYS_LIBRARY_PATH
739 OTOOL64
740 OTOOL
741 LIPO
742 NMEDIT
743 DSYMUTIL
744 MANIFEST_TOOL
745 AWK
746 RANLIB
747 STRIP
748 ac_ct_AR
749 AR
750 DLLTOOL
751 OBJDUMP
752 NM
753 ac_ct_DUMPBIN
754 DUMPBIN
755 LD
756 FGREP
757 LIBTOOL
758 SVN_BINDIR
759 SVN_SQLITE_LIBS
760 SVN_SQLITE_INCLUDES
761 HTTPD_VERSION
762 INSTALL_APACHE_MODS
763 APACHE_LIBEXECDIR
764 APACHE_INCLUDES
765 APACHE_LDFLAGS
766 APXS
767 SVN_APR_MEMCACHE_LIBS
768 SVN_APR_MEMCACHE_INCLUDES
769 SVN_SERF_LIBS
770 SVN_SERF_INCLUDES
771 PKG_CONFIG
772 SVN_LT_SOVERSION
773 SVN_APR_MAJOR_VERSION
774 SVN_APRUTIL_LIBS
775 SVN_APRUTIL_CONFIG
776 SVN_APRUTIL_INCLUDES
777 SVN_APR_SHLIB_PATH_VAR
778 SVN_APR_LIBS
779 SVN_APR_INCLUDES
780 SVN_APR_CONFIG
781 MKDIR
782 INSTALL_DATA
783 INSTALL_SCRIPT
784 INSTALL_PROGRAM
785 LN_S
786 EGREP
787 GREP
788 target_os
789 target_vendor
790 target_cpu
791 target
792 host_os
793 host_vendor
794 host_cpu
795 host
796 build_os
797 build_vendor
798 build_cpu
799 build
800 SED
801 CPP
802 CXXUSERFLAGS
803 CXXMAINTAINERFLAGS
804 CXXNOWARNFLAGS
805 CXXMODEFLAGS
806 ac_ct_CXX
807 CXXFLAGS
808 CXX
809 CUSERFLAGS
810 CMAINTAINERFLAGS
811 CNOWARNFLAGS
812 CMODEFLAGS
813 OBJEXT
814 EXEEXT
815 ac_ct_CC
816 CPPFLAGS
817 LDFLAGS
818 CFLAGS
819 CC
820 SWIG_LDFLAGS
821 canonicalized_srcdir
822 abs_builddir
823 abs_srcdir
824 target_alias
825 host_alias
826 build_alias
827 LIBS
828 ECHO_T
829 ECHO_N
830 ECHO_C
831 DEFS
832 mandir
833 localedir
834 libdir
835 psdir
836 pdfdir
837 dvidir
838 htmldir
839 infodir
840 docdir
841 oldincludedir
842 includedir
843 localstatedir
844 sharedstatedir
845 sysconfdir
846 datadir
847 datarootdir
848 libexecdir
849 sbindir
850 bindir
851 program_transform_name
852 prefix
853 exec_prefix
854 PACKAGE_URL
855 PACKAGE_BUGREPORT
856 PACKAGE_STRING
857 PACKAGE_VERSION
858 PACKAGE_TARNAME
859 PACKAGE_NAME
860 PATH_SEPARATOR
861 SHELL'
862 ac_subst_files=''
863 ac_user_opts='
864 enable_option_checking
865 with_apr
866 with_apr_util
867 with_serf
868 with_apr_memcache
869 with_apxs
870 with_apache_libexecdir
871 enable_broken_httpd_auth
872 with_sqlite
873 enable_sqlite_compatibility_version
874 enable_shared
875 enable_static
876 with_pic
877 enable_fast_install
878 with_aix_soname
879 with_gnu_ld
880 with_sysroot
881 enable_libtool_lock
882 enable_experimental_libtool
883 enable_all_static
884 enable_local_library_preloading
885 with_trang
886 with_doxygen
887 with_expat
888 with_berkeley_db
889 enable_bdb6
890 with_sasl
891 enable_keychain
892 with_gpg_agent
893 with_gnome_keyring
894 enable_gmock
895 enable_ev2_impl
896 enable_nls
897 with_libmagic
898 with_kwallet
899 enable_plaintext_password_storage
900 enable_debug
901 enable_optimize
902 enable_disallowing_of_undefined_references
903 enable_maintainer_mode
904 enable_full_version_match
905 with_editor
906 with_zlib
907 enable_mod_activation
908 enable_gcov
909 enable_gprof
910 with_jdk
911 with_jikes
912 with_swig
913 with_ruby_sitedir
914 with_ruby_test_verbose
915 with_ctypesgen
916 enable_runtime_module_search
917 enable_javahl
918 with_junit
919 '
920       ac_precious_vars='build_alias
921 host_alias
922 target_alias
923 CC
924 CFLAGS
925 LDFLAGS
926 LIBS
927 CPPFLAGS
928 CXX
929 CXXFLAGS
930 CCC
931 CPP
932 LT_SYS_LIBRARY_PATH
933 CXXCPP'
934
935
936 # Initialize some variables set by options.
937 ac_init_help=
938 ac_init_version=false
939 ac_unrecognized_opts=
940 ac_unrecognized_sep=
941 # The variables have the same names as the options, with
942 # dashes changed to underlines.
943 cache_file=/dev/null
944 exec_prefix=NONE
945 no_create=
946 no_recursion=
947 prefix=NONE
948 program_prefix=NONE
949 program_suffix=NONE
950 program_transform_name=s,x,x,
951 silent=
952 site=
953 srcdir=
954 verbose=
955 x_includes=NONE
956 x_libraries=NONE
957
958 # Installation directory options.
959 # These are left unexpanded so users can "make install exec_prefix=/foo"
960 # and all the variables that are supposed to be based on exec_prefix
961 # by default will actually change.
962 # Use braces instead of parens because sh, perl, etc. also accept them.
963 # (The list follows the same order as the GNU Coding Standards.)
964 bindir='${exec_prefix}/bin'
965 sbindir='${exec_prefix}/sbin'
966 libexecdir='${exec_prefix}/libexec'
967 datarootdir='${prefix}/share'
968 datadir='${datarootdir}'
969 sysconfdir='${prefix}/etc'
970 sharedstatedir='${prefix}/com'
971 localstatedir='${prefix}/var'
972 includedir='${prefix}/include'
973 oldincludedir='/usr/include'
974 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
975 infodir='${datarootdir}/info'
976 htmldir='${docdir}'
977 dvidir='${docdir}'
978 pdfdir='${docdir}'
979 psdir='${docdir}'
980 libdir='${exec_prefix}/lib'
981 localedir='${datarootdir}/locale'
982 mandir='${datarootdir}/man'
983
984 ac_prev=
985 ac_dashdash=
986 for ac_option
987 do
988   # If the previous option needs an argument, assign it.
989   if test -n "$ac_prev"; then
990     eval $ac_prev=\$ac_option
991     ac_prev=
992     continue
993   fi
994
995   case $ac_option in
996   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
997   *=)   ac_optarg= ;;
998   *)    ac_optarg=yes ;;
999   esac
1000
1001   # Accept the important Cygnus configure options, so we can diagnose typos.
1002
1003   case $ac_dashdash$ac_option in
1004   --)
1005     ac_dashdash=yes ;;
1006
1007   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1008     ac_prev=bindir ;;
1009   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1010     bindir=$ac_optarg ;;
1011
1012   -build | --build | --buil | --bui | --bu)
1013     ac_prev=build_alias ;;
1014   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1015     build_alias=$ac_optarg ;;
1016
1017   -cache-file | --cache-file | --cache-fil | --cache-fi \
1018   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1019     ac_prev=cache_file ;;
1020   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1021   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1022     cache_file=$ac_optarg ;;
1023
1024   --config-cache | -C)
1025     cache_file=config.cache ;;
1026
1027   -datadir | --datadir | --datadi | --datad)
1028     ac_prev=datadir ;;
1029   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1030     datadir=$ac_optarg ;;
1031
1032   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1033   | --dataroo | --dataro | --datar)
1034     ac_prev=datarootdir ;;
1035   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1036   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1037     datarootdir=$ac_optarg ;;
1038
1039   -disable-* | --disable-*)
1040     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1041     # Reject names that are not valid shell variable names.
1042     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1043       as_fn_error $? "invalid feature name: $ac_useropt"
1044     ac_useropt_orig=$ac_useropt
1045     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1046     case $ac_user_opts in
1047       *"
1048 "enable_$ac_useropt"
1049 "*) ;;
1050       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1051          ac_unrecognized_sep=', ';;
1052     esac
1053     eval enable_$ac_useropt=no ;;
1054
1055   -docdir | --docdir | --docdi | --doc | --do)
1056     ac_prev=docdir ;;
1057   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1058     docdir=$ac_optarg ;;
1059
1060   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1061     ac_prev=dvidir ;;
1062   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1063     dvidir=$ac_optarg ;;
1064
1065   -enable-* | --enable-*)
1066     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1067     # Reject names that are not valid shell variable names.
1068     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1069       as_fn_error $? "invalid feature name: $ac_useropt"
1070     ac_useropt_orig=$ac_useropt
1071     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1072     case $ac_user_opts in
1073       *"
1074 "enable_$ac_useropt"
1075 "*) ;;
1076       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1077          ac_unrecognized_sep=', ';;
1078     esac
1079     eval enable_$ac_useropt=\$ac_optarg ;;
1080
1081   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1082   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1083   | --exec | --exe | --ex)
1084     ac_prev=exec_prefix ;;
1085   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1086   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1087   | --exec=* | --exe=* | --ex=*)
1088     exec_prefix=$ac_optarg ;;
1089
1090   -gas | --gas | --ga | --g)
1091     # Obsolete; use --with-gas.
1092     with_gas=yes ;;
1093
1094   -help | --help | --hel | --he | -h)
1095     ac_init_help=long ;;
1096   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1097     ac_init_help=recursive ;;
1098   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1099     ac_init_help=short ;;
1100
1101   -host | --host | --hos | --ho)
1102     ac_prev=host_alias ;;
1103   -host=* | --host=* | --hos=* | --ho=*)
1104     host_alias=$ac_optarg ;;
1105
1106   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1107     ac_prev=htmldir ;;
1108   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1109   | --ht=*)
1110     htmldir=$ac_optarg ;;
1111
1112   -includedir | --includedir | --includedi | --included | --include \
1113   | --includ | --inclu | --incl | --inc)
1114     ac_prev=includedir ;;
1115   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1116   | --includ=* | --inclu=* | --incl=* | --inc=*)
1117     includedir=$ac_optarg ;;
1118
1119   -infodir | --infodir | --infodi | --infod | --info | --inf)
1120     ac_prev=infodir ;;
1121   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1122     infodir=$ac_optarg ;;
1123
1124   -libdir | --libdir | --libdi | --libd)
1125     ac_prev=libdir ;;
1126   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1127     libdir=$ac_optarg ;;
1128
1129   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1130   | --libexe | --libex | --libe)
1131     ac_prev=libexecdir ;;
1132   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1133   | --libexe=* | --libex=* | --libe=*)
1134     libexecdir=$ac_optarg ;;
1135
1136   -localedir | --localedir | --localedi | --localed | --locale)
1137     ac_prev=localedir ;;
1138   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1139     localedir=$ac_optarg ;;
1140
1141   -localstatedir | --localstatedir | --localstatedi | --localstated \
1142   | --localstate | --localstat | --localsta | --localst | --locals)
1143     ac_prev=localstatedir ;;
1144   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1145   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1146     localstatedir=$ac_optarg ;;
1147
1148   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1149     ac_prev=mandir ;;
1150   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1151     mandir=$ac_optarg ;;
1152
1153   -nfp | --nfp | --nf)
1154     # Obsolete; use --without-fp.
1155     with_fp=no ;;
1156
1157   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1158   | --no-cr | --no-c | -n)
1159     no_create=yes ;;
1160
1161   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1162   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1163     no_recursion=yes ;;
1164
1165   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1166   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1167   | --oldin | --oldi | --old | --ol | --o)
1168     ac_prev=oldincludedir ;;
1169   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1170   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1171   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1172     oldincludedir=$ac_optarg ;;
1173
1174   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1175     ac_prev=prefix ;;
1176   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1177     prefix=$ac_optarg ;;
1178
1179   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1180   | --program-pre | --program-pr | --program-p)
1181     ac_prev=program_prefix ;;
1182   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1183   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1184     program_prefix=$ac_optarg ;;
1185
1186   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1187   | --program-suf | --program-su | --program-s)
1188     ac_prev=program_suffix ;;
1189   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1190   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1191     program_suffix=$ac_optarg ;;
1192
1193   -program-transform-name | --program-transform-name \
1194   | --program-transform-nam | --program-transform-na \
1195   | --program-transform-n | --program-transform- \
1196   | --program-transform | --program-transfor \
1197   | --program-transfo | --program-transf \
1198   | --program-trans | --program-tran \
1199   | --progr-tra | --program-tr | --program-t)
1200     ac_prev=program_transform_name ;;
1201   -program-transform-name=* | --program-transform-name=* \
1202   | --program-transform-nam=* | --program-transform-na=* \
1203   | --program-transform-n=* | --program-transform-=* \
1204   | --program-transform=* | --program-transfor=* \
1205   | --program-transfo=* | --program-transf=* \
1206   | --program-trans=* | --program-tran=* \
1207   | --progr-tra=* | --program-tr=* | --program-t=*)
1208     program_transform_name=$ac_optarg ;;
1209
1210   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1211     ac_prev=pdfdir ;;
1212   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1213     pdfdir=$ac_optarg ;;
1214
1215   -psdir | --psdir | --psdi | --psd | --ps)
1216     ac_prev=psdir ;;
1217   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1218     psdir=$ac_optarg ;;
1219
1220   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1221   | -silent | --silent | --silen | --sile | --sil)
1222     silent=yes ;;
1223
1224   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1225     ac_prev=sbindir ;;
1226   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1227   | --sbi=* | --sb=*)
1228     sbindir=$ac_optarg ;;
1229
1230   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1231   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1232   | --sharedst | --shareds | --shared | --share | --shar \
1233   | --sha | --sh)
1234     ac_prev=sharedstatedir ;;
1235   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1236   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1237   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1238   | --sha=* | --sh=*)
1239     sharedstatedir=$ac_optarg ;;
1240
1241   -site | --site | --sit)
1242     ac_prev=site ;;
1243   -site=* | --site=* | --sit=*)
1244     site=$ac_optarg ;;
1245
1246   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1247     ac_prev=srcdir ;;
1248   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1249     srcdir=$ac_optarg ;;
1250
1251   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1252   | --syscon | --sysco | --sysc | --sys | --sy)
1253     ac_prev=sysconfdir ;;
1254   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1255   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1256     sysconfdir=$ac_optarg ;;
1257
1258   -target | --target | --targe | --targ | --tar | --ta | --t)
1259     ac_prev=target_alias ;;
1260   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1261     target_alias=$ac_optarg ;;
1262
1263   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1264     verbose=yes ;;
1265
1266   -version | --version | --versio | --versi | --vers | -V)
1267     ac_init_version=: ;;
1268
1269   -with-* | --with-*)
1270     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1271     # Reject names that are not valid shell variable names.
1272     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1273       as_fn_error $? "invalid package name: $ac_useropt"
1274     ac_useropt_orig=$ac_useropt
1275     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1276     case $ac_user_opts in
1277       *"
1278 "with_$ac_useropt"
1279 "*) ;;
1280       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1281          ac_unrecognized_sep=', ';;
1282     esac
1283     eval with_$ac_useropt=\$ac_optarg ;;
1284
1285   -without-* | --without-*)
1286     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
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--without-$ac_useropt_orig"
1297          ac_unrecognized_sep=', ';;
1298     esac
1299     eval with_$ac_useropt=no ;;
1300
1301   --x)
1302     # Obsolete; use --with-x.
1303     with_x=yes ;;
1304
1305   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1306   | --x-incl | --x-inc | --x-in | --x-i)
1307     ac_prev=x_includes ;;
1308   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1309   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1310     x_includes=$ac_optarg ;;
1311
1312   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1313   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1314     ac_prev=x_libraries ;;
1315   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1316   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1317     x_libraries=$ac_optarg ;;
1318
1319   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1320 Try \`$0 --help' for more information"
1321     ;;
1322
1323   *=*)
1324     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1325     # Reject names that are not valid shell variable names.
1326     case $ac_envvar in #(
1327       '' | [0-9]* | *[!_$as_cr_alnum]* )
1328       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1329     esac
1330     eval $ac_envvar=\$ac_optarg
1331     export $ac_envvar ;;
1332
1333   *)
1334     # FIXME: should be removed in autoconf 3.0.
1335     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1336     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1337       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1338     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1339     ;;
1340
1341   esac
1342 done
1343
1344 if test -n "$ac_prev"; then
1345   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1346   as_fn_error $? "missing argument to $ac_option"
1347 fi
1348
1349 if test -n "$ac_unrecognized_opts"; then
1350   case $enable_option_checking in
1351     no) ;;
1352     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1353     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1354   esac
1355 fi
1356
1357 # Check all directory arguments for consistency.
1358 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1359                 datadir sysconfdir sharedstatedir localstatedir includedir \
1360                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1361                 libdir localedir mandir
1362 do
1363   eval ac_val=\$$ac_var
1364   # Remove trailing slashes.
1365   case $ac_val in
1366     */ )
1367       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1368       eval $ac_var=\$ac_val;;
1369   esac
1370   # Be sure to have absolute directory names.
1371   case $ac_val in
1372     [\\/$]* | ?:[\\/]* )  continue;;
1373     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1374   esac
1375   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1376 done
1377
1378 # There might be people who depend on the old broken behavior: `$host'
1379 # used to hold the argument of --host etc.
1380 # FIXME: To remove some day.
1381 build=$build_alias
1382 host=$host_alias
1383 target=$target_alias
1384
1385 # FIXME: To remove some day.
1386 if test "x$host_alias" != x; then
1387   if test "x$build_alias" = x; then
1388     cross_compiling=maybe
1389   elif test "x$build_alias" != "x$host_alias"; then
1390     cross_compiling=yes
1391   fi
1392 fi
1393
1394 ac_tool_prefix=
1395 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1396
1397 test "$silent" = yes && exec 6>/dev/null
1398
1399
1400 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1401 ac_ls_di=`ls -di .` &&
1402 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1403   as_fn_error $? "working directory cannot be determined"
1404 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1405   as_fn_error $? "pwd does not report name of working directory"
1406
1407
1408 # Find the source files, if location was not specified.
1409 if test -z "$srcdir"; then
1410   ac_srcdir_defaulted=yes
1411   # Try the directory containing this script, then the parent directory.
1412   ac_confdir=`$as_dirname -- "$as_myself" ||
1413 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1414          X"$as_myself" : 'X\(//\)[^/]' \| \
1415          X"$as_myself" : 'X\(//\)$' \| \
1416          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1417 $as_echo X"$as_myself" |
1418     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1419             s//\1/
1420             q
1421           }
1422           /^X\(\/\/\)[^/].*/{
1423             s//\1/
1424             q
1425           }
1426           /^X\(\/\/\)$/{
1427             s//\1/
1428             q
1429           }
1430           /^X\(\/\).*/{
1431             s//\1/
1432             q
1433           }
1434           s/.*/./; q'`
1435   srcdir=$ac_confdir
1436   if test ! -r "$srcdir/$ac_unique_file"; then
1437     srcdir=..
1438   fi
1439 else
1440   ac_srcdir_defaulted=no
1441 fi
1442 if test ! -r "$srcdir/$ac_unique_file"; then
1443   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1444   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1445 fi
1446 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1447 ac_abs_confdir=`(
1448         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1449         pwd)`
1450 # When building in place, set srcdir=.
1451 if test "$ac_abs_confdir" = "$ac_pwd"; then
1452   srcdir=.
1453 fi
1454 # Remove unnecessary trailing slashes from srcdir.
1455 # Double slashes in file names in object file debugging info
1456 # mess up M-x gdb in Emacs.
1457 case $srcdir in
1458 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1459 esac
1460 for ac_var in $ac_precious_vars; do
1461   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1462   eval ac_env_${ac_var}_value=\$${ac_var}
1463   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1464   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1465 done
1466
1467 #
1468 # Report the --help message.
1469 #
1470 if test "$ac_init_help" = "long"; then
1471   # Omit some internal or obsolete options to make the list less imposing.
1472   # This message is too long to be a string in the A/UX 3.1 sh.
1473   cat <<_ACEOF
1474 \`configure' configures subversion 1.9.4 to adapt to many kinds of systems.
1475
1476 Usage: $0 [OPTION]... [VAR=VALUE]...
1477
1478 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1479 VAR=VALUE.  See below for descriptions of some of the useful variables.
1480
1481 Defaults for the options are specified in brackets.
1482
1483 Configuration:
1484   -h, --help              display this help and exit
1485       --help=short        display options specific to this package
1486       --help=recursive    display the short help of all the included packages
1487   -V, --version           display version information and exit
1488   -q, --quiet, --silent   do not print \`checking ...' messages
1489       --cache-file=FILE   cache test results in FILE [disabled]
1490   -C, --config-cache      alias for \`--cache-file=config.cache'
1491   -n, --no-create         do not create output files
1492       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1493
1494 Installation directories:
1495   --prefix=PREFIX         install architecture-independent files in PREFIX
1496                           [$ac_default_prefix]
1497   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1498                           [PREFIX]
1499
1500 By default, \`make install' will install all the files in
1501 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1502 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1503 for instance \`--prefix=\$HOME'.
1504
1505 For better control, use the options below.
1506
1507 Fine tuning of the installation directories:
1508   --bindir=DIR            user executables [EPREFIX/bin]
1509   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1510   --libexecdir=DIR        program executables [EPREFIX/libexec]
1511   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1512   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1513   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1514   --libdir=DIR            object code libraries [EPREFIX/lib]
1515   --includedir=DIR        C header files [PREFIX/include]
1516   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1517   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1518   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1519   --infodir=DIR           info documentation [DATAROOTDIR/info]
1520   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1521   --mandir=DIR            man documentation [DATAROOTDIR/man]
1522   --docdir=DIR            documentation root [DATAROOTDIR/doc/subversion]
1523   --htmldir=DIR           html documentation [DOCDIR]
1524   --dvidir=DIR            dvi documentation [DOCDIR]
1525   --pdfdir=DIR            pdf documentation [DOCDIR]
1526   --psdir=DIR             ps documentation [DOCDIR]
1527 _ACEOF
1528
1529   cat <<\_ACEOF
1530
1531 System types:
1532   --build=BUILD     configure for building on BUILD [guessed]
1533   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1534   --target=TARGET   configure for building compilers for TARGET [HOST]
1535 _ACEOF
1536 fi
1537
1538 if test -n "$ac_init_help"; then
1539   case $ac_init_help in
1540      short | recursive ) echo "Configuration of subversion 1.9.4:";;
1541    esac
1542   cat <<\_ACEOF
1543
1544 Optional Features:
1545   --disable-option-checking  ignore unrecognized --enable/--with options
1546   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1547   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1548   --enable-broken-httpd-auth
1549                           Force build against httpd 2.4 with broken auth
1550   --enable-sqlite-compatibility-version=X.Y.Z
1551                           Allow binary to run against SQLite as old as ARG
1552   --enable-shared[=PKGS]  build shared libraries [default=yes]
1553   --enable-static[=PKGS]  build static libraries [default=yes]
1554   --enable-fast-install[=PKGS]
1555                           optimize for fast installation [default=yes]
1556   --disable-libtool-lock  avoid locking (might break parallel builds)
1557   --enable-experimental-libtool
1558                           Use APR's libtool
1559   --enable-static         Build static libraries
1560   --enable-shared         Build shared libraries
1561   --enable-all-static     Build completely static (standalone) binaries.
1562   --enable-local-library-preloading
1563                           Enable preloading of locally built libraries in
1564                           locally built executables. This may be necessary for
1565                           testing prior to installation on some platforms. It
1566                           does not work on some platforms (Darwin, OpenBSD,
1567                           ...).
1568   --enable-bdb6           Allow building against BDB 6+. See
1569                           --with-berkeley-db for specifying the location of
1570                           the Berkeley DB installation. Using BDB 6 will fail
1571                           if this option is not used.
1572   --disable-keychain      Disable use of Mac OS KeyChain for auth credentials
1573   --disable-gmock         Do not use the Googlemock testing framework
1574   --enable-ev2-impl       Use Ev2 implementations, where available
1575                           [EXPERIMENTAL]
1576   --disable-nls           Disable gettext functionality
1577   --disable-plaintext-password-storage
1578                           Disable on-disk caching of plaintext passwords and
1579                           passphrases. (Leaving this functionality enabled
1580                           will not force Subversion to store passwords in
1581                           plaintext, but does permit users to explicitly allow
1582                           that behavior via runtime configuration.)
1583   --enable-debug          Turn on debugging
1584   --enable-optimize       Turn on optimizations
1585   --enable-disallowing-of-undefined-references
1586                           Use -Wl,--no-undefined flag during linking of some
1587                           libraries to disallow undefined references
1588   --enable-maintainer-mode
1589                           Turn on debugging and very strict compile-time
1590                           warnings
1591   --disable-full-version-match
1592                           Disable the full version match rules when checking
1593                           Subversion library compatibility.
1594   --enable-mod-activation Enable mod_dav_svn in httpd.conf
1595   --enable-gcov           Turn on gcov coverage testing (GCC only).
1596   --enable-gprof          Produce gprof profiling data in 'gmon.out' (GCC
1597                           only).
1598   --enable-runtime-module-search
1599                           Turn on dynamic loading of RA/FS libraries including
1600                           third-party FS libraries
1601   --enable-javahl         Enable compilation of Java high-level bindings
1602                           (requires C++)
1603
1604 Optional Packages:
1605   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1606   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1607   --with-apr=PATH         prefix for installed APR, path to APR build tree,
1608                           or the full path to apr-config
1609   --with-apr-util=PATH    prefix for installed APU, path to APU build tree,
1610                           or the full path to apu-config
1611   --with-serf=PREFIX      Serf HTTP client library (enabled by default if
1612                           found)
1613   --with-apr_memcache=PREFIX
1614                           Standalone apr_memcache client library
1615   --with-apxs[=FILE]      Build shared Apache modules. FILE is the optional
1616                           pathname to the Apache apxs tool; defaults to
1617                           "apxs".
1618   --with-apache-libexecdir[=PATH]
1619                           Install Apache modules to Apache's configured
1620                           modules directory instead of LIBEXECDIR; if PATH is
1621                           given, install to PATH.
1622   --with-sqlite=PREFIX    Use installed SQLite library or amalgamation file.
1623   --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1624                           both]
1625   --with-aix-soname=aix|svr4|both
1626                           shared library versioning (aka "SONAME") variant to
1627                           provide on AIX, [default=aix].
1628   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1629   --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
1630                           compiler's sysroot if not specified).
1631   --with-trang=PATH       Specify the command to run the trang schema
1632                           converter
1633   --with-doxygen=PATH     Specify the command to run doxygen
1634   --with-expat=INCLUDES:LIB_SEARCH_DIRS:LIBS
1635                           Specify location of Expat
1636   --with-berkeley-db[=HEADER:INCLUDES:LIB_SEARCH_DIRS:LIBS]
1637                           The Subversion Berkeley DB based filesystem library
1638                           requires Berkeley DB $db_version or $db_alt_version.
1639                           If you specify `--without-berkeley-db', that library
1640                           will not be built. If you omit the argument of this
1641                           option completely, the configure script will use
1642                           Berkeley DB used by APR-UTIL.
1643   --with-sasl=PATH        Compile with libsasl2 in PATH
1644   --without-gpg-agent     Disable support for GPG-Agent
1645   --with-gnome-keyring    Enable use of GNOME Keyring for auth credentials
1646                           (enabled by default if found)
1647   --with-libmagic=PREFIX  libmagic filetype detection library
1648   --with-kwallet[=PATH]   Enable use of KWallet (KDE 4) for auth credentials
1649   --with-editor=PATH      Specify a default editor for the subversion client.
1650   --with-zlib=PREFIX      zlib compression library
1651   --with-jdk=PATH         Try to use 'PATH/include' to find the JNI headers.
1652                           If PATH is not specified, look for a Java
1653                           Development Kit at JAVA_HOME.
1654   --with-jikes=PATH       Specify the path to a jikes binary to use it as your
1655                           Java compiler. The default is to look for jikes
1656                           (PATH optional). This behavior can be switched off
1657                           by supplying 'no'.
1658   --with-swig=PATH        Try to use 'PATH/bin/swig' to build the swig
1659                           bindings. If PATH is not specified, look for a
1660                           'swig' binary in your PATH.
1661   --with-ruby-sitedir=SITEDIR
1662                           install Ruby bindings in SITEDIR (default is same as
1663                           ruby's one)
1664   --with-ruby-test-verbose=LEVEL
1665                           how to use output level for Ruby bindings tests
1666                           (default is normal)
1667   --with-ctypesgen=PATH   Specify the path to ctypesgen. This can either be
1668                           the full path to a ctypesgen installation, the full
1669                           path to a ctypesgen source tree or the full path to
1670                           ctypesgen.py.
1671   --with-junit=PATH       Specify a path to the junit JAR file.
1672
1673 Some influential environment variables:
1674   CC          C compiler command
1675   CFLAGS      C compiler flags
1676   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1677               nonstandard directory <lib dir>
1678   LIBS        libraries to pass to the linker, e.g. -l<library>
1679   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1680               you have headers in a nonstandard directory <include dir>
1681   CXX         C++ compiler command
1682   CXXFLAGS    C++ compiler flags
1683   CPP         C preprocessor
1684   LT_SYS_LIBRARY_PATH
1685               User-defined run-time library search path.
1686   CXXCPP      C++ preprocessor
1687
1688 Use these variables to override the choices made by `configure' or to help
1689 it to find libraries and programs with nonstandard names/locations.
1690
1691 Report bugs to <http://subversion.apache.org/>.
1692 _ACEOF
1693 ac_status=$?
1694 fi
1695
1696 if test "$ac_init_help" = "recursive"; then
1697   # If there are subdirs, report their specific --help.
1698   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1699     test -d "$ac_dir" ||
1700       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1701       continue
1702     ac_builddir=.
1703
1704 case "$ac_dir" in
1705 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1706 *)
1707   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1708   # A ".." for each directory in $ac_dir_suffix.
1709   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1710   case $ac_top_builddir_sub in
1711   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1712   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1713   esac ;;
1714 esac
1715 ac_abs_top_builddir=$ac_pwd
1716 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1717 # for backward compatibility:
1718 ac_top_builddir=$ac_top_build_prefix
1719
1720 case $srcdir in
1721   .)  # We are building in place.
1722     ac_srcdir=.
1723     ac_top_srcdir=$ac_top_builddir_sub
1724     ac_abs_top_srcdir=$ac_pwd ;;
1725   [\\/]* | ?:[\\/]* )  # Absolute name.
1726     ac_srcdir=$srcdir$ac_dir_suffix;
1727     ac_top_srcdir=$srcdir
1728     ac_abs_top_srcdir=$srcdir ;;
1729   *) # Relative name.
1730     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1731     ac_top_srcdir=$ac_top_build_prefix$srcdir
1732     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1733 esac
1734 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1735
1736     cd "$ac_dir" || { ac_status=$?; continue; }
1737     # Check for guested configure.
1738     if test -f "$ac_srcdir/configure.gnu"; then
1739       echo &&
1740       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1741     elif test -f "$ac_srcdir/configure"; then
1742       echo &&
1743       $SHELL "$ac_srcdir/configure" --help=recursive
1744     else
1745       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1746     fi || ac_status=$?
1747     cd "$ac_pwd" || { ac_status=$?; break; }
1748   done
1749 fi
1750
1751 test -n "$ac_init_help" && exit $ac_status
1752 if $ac_init_version; then
1753   cat <<\_ACEOF
1754 subversion configure 1.9.4
1755 generated by GNU Autoconf 2.69
1756
1757 Copyright (C) 2012 Free Software Foundation, Inc.
1758 This configure script is free software; the Free Software Foundation
1759 gives unlimited permission to copy, distribute and modify it.
1760 _ACEOF
1761   exit
1762 fi
1763
1764 ## ------------------------ ##
1765 ## Autoconf initialization. ##
1766 ## ------------------------ ##
1767
1768 # ac_fn_c_try_compile LINENO
1769 # --------------------------
1770 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1771 ac_fn_c_try_compile ()
1772 {
1773   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1774   rm -f conftest.$ac_objext
1775   if { { ac_try="$ac_compile"
1776 case "(($ac_try" in
1777   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1778   *) ac_try_echo=$ac_try;;
1779 esac
1780 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1781 $as_echo "$ac_try_echo"; } >&5
1782   (eval "$ac_compile") 2>conftest.err
1783   ac_status=$?
1784   if test -s conftest.err; then
1785     grep -v '^ *+' conftest.err >conftest.er1
1786     cat conftest.er1 >&5
1787     mv -f conftest.er1 conftest.err
1788   fi
1789   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1790   test $ac_status = 0; } && {
1791          test -z "$ac_c_werror_flag" ||
1792          test ! -s conftest.err
1793        } && test -s conftest.$ac_objext; then :
1794   ac_retval=0
1795 else
1796   $as_echo "$as_me: failed program was:" >&5
1797 sed 's/^/| /' conftest.$ac_ext >&5
1798
1799         ac_retval=1
1800 fi
1801   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1802   as_fn_set_status $ac_retval
1803
1804 } # ac_fn_c_try_compile
1805
1806 # ac_fn_c_try_link LINENO
1807 # -----------------------
1808 # Try to link conftest.$ac_ext, and return whether this succeeded.
1809 ac_fn_c_try_link ()
1810 {
1811   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1812   rm -f conftest.$ac_objext conftest$ac_exeext
1813   if { { ac_try="$ac_link"
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_link") 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_exeext && {
1832          test "$cross_compiling" = yes ||
1833          test -x conftest$ac_exeext
1834        }; then :
1835   ac_retval=0
1836 else
1837   $as_echo "$as_me: failed program was:" >&5
1838 sed 's/^/| /' conftest.$ac_ext >&5
1839
1840         ac_retval=1
1841 fi
1842   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1843   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1844   # interfere with the next link command; also delete a directory that is
1845   # left behind by Apple's compiler.  We do this before executing the actions.
1846   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1847   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1848   as_fn_set_status $ac_retval
1849
1850 } # ac_fn_c_try_link
1851
1852 # ac_fn_cxx_try_compile LINENO
1853 # ----------------------------
1854 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1855 ac_fn_cxx_try_compile ()
1856 {
1857   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1858   rm -f conftest.$ac_objext
1859   if { { ac_try="$ac_compile"
1860 case "(($ac_try" in
1861   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1862   *) ac_try_echo=$ac_try;;
1863 esac
1864 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1865 $as_echo "$ac_try_echo"; } >&5
1866   (eval "$ac_compile") 2>conftest.err
1867   ac_status=$?
1868   if test -s conftest.err; then
1869     grep -v '^ *+' conftest.err >conftest.er1
1870     cat conftest.er1 >&5
1871     mv -f conftest.er1 conftest.err
1872   fi
1873   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1874   test $ac_status = 0; } && {
1875          test -z "$ac_cxx_werror_flag" ||
1876          test ! -s conftest.err
1877        } && test -s conftest.$ac_objext; then :
1878   ac_retval=0
1879 else
1880   $as_echo "$as_me: failed program was:" >&5
1881 sed 's/^/| /' conftest.$ac_ext >&5
1882
1883         ac_retval=1
1884 fi
1885   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1886   as_fn_set_status $ac_retval
1887
1888 } # ac_fn_cxx_try_compile
1889
1890 # ac_fn_cxx_try_link LINENO
1891 # -------------------------
1892 # Try to link conftest.$ac_ext, and return whether this succeeded.
1893 ac_fn_cxx_try_link ()
1894 {
1895   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1896   rm -f conftest.$ac_objext conftest$ac_exeext
1897   if { { ac_try="$ac_link"
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_link") 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_exeext && {
1916          test "$cross_compiling" = yes ||
1917          test -x conftest$ac_exeext
1918        }; then :
1919   ac_retval=0
1920 else
1921   $as_echo "$as_me: failed program was:" >&5
1922 sed 's/^/| /' conftest.$ac_ext >&5
1923
1924         ac_retval=1
1925 fi
1926   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1927   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1928   # interfere with the next link command; also delete a directory that is
1929   # left behind by Apple's compiler.  We do this before executing the actions.
1930   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1931   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1932   as_fn_set_status $ac_retval
1933
1934 } # ac_fn_cxx_try_link
1935
1936 # ac_fn_c_try_cpp LINENO
1937 # ----------------------
1938 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1939 ac_fn_c_try_cpp ()
1940 {
1941   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1942   if { { ac_try="$ac_cpp conftest.$ac_ext"
1943 case "(($ac_try" in
1944   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1945   *) ac_try_echo=$ac_try;;
1946 esac
1947 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1948 $as_echo "$ac_try_echo"; } >&5
1949   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1950   ac_status=$?
1951   if test -s conftest.err; then
1952     grep -v '^ *+' conftest.err >conftest.er1
1953     cat conftest.er1 >&5
1954     mv -f conftest.er1 conftest.err
1955   fi
1956   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1957   test $ac_status = 0; } > conftest.i && {
1958          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1959          test ! -s conftest.err
1960        }; then :
1961   ac_retval=0
1962 else
1963   $as_echo "$as_me: failed program was:" >&5
1964 sed 's/^/| /' conftest.$ac_ext >&5
1965
1966     ac_retval=1
1967 fi
1968   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1969   as_fn_set_status $ac_retval
1970
1971 } # ac_fn_c_try_cpp
1972
1973 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1974 # -------------------------------------------------------
1975 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1976 # the include files in INCLUDES and setting the cache variable VAR
1977 # accordingly.
1978 ac_fn_c_check_header_mongrel ()
1979 {
1980   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1981   if eval \${$3+:} false; then :
1982   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1983 $as_echo_n "checking for $2... " >&6; }
1984 if eval \${$3+:} false; then :
1985   $as_echo_n "(cached) " >&6
1986 fi
1987 eval ac_res=\$$3
1988                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1989 $as_echo "$ac_res" >&6; }
1990 else
1991   # Is the header compilable?
1992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1993 $as_echo_n "checking $2 usability... " >&6; }
1994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1995 /* end confdefs.h.  */
1996 $4
1997 #include <$2>
1998 _ACEOF
1999 if ac_fn_c_try_compile "$LINENO"; then :
2000   ac_header_compiler=yes
2001 else
2002   ac_header_compiler=no
2003 fi
2004 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2006 $as_echo "$ac_header_compiler" >&6; }
2007
2008 # Is the header present?
2009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2010 $as_echo_n "checking $2 presence... " >&6; }
2011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2012 /* end confdefs.h.  */
2013 #include <$2>
2014 _ACEOF
2015 if ac_fn_c_try_cpp "$LINENO"; then :
2016   ac_header_preproc=yes
2017 else
2018   ac_header_preproc=no
2019 fi
2020 rm -f conftest.err conftest.i conftest.$ac_ext
2021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2022 $as_echo "$ac_header_preproc" >&6; }
2023
2024 # So?  What about this header?
2025 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2026   yes:no: )
2027     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2028 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2029     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2030 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2031     ;;
2032   no:yes:* )
2033     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2034 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2035     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2036 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2037     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2038 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2039     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2040 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2041     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2042 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2043 ( $as_echo "## -------------------------------------------- ##
2044 ## Report this to http://subversion.apache.org/ ##
2045 ## -------------------------------------------- ##"
2046      ) | sed "s/^/$as_me: WARNING:     /" >&2
2047     ;;
2048 esac
2049   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2050 $as_echo_n "checking for $2... " >&6; }
2051 if eval \${$3+:} false; then :
2052   $as_echo_n "(cached) " >&6
2053 else
2054   eval "$3=\$ac_header_compiler"
2055 fi
2056 eval ac_res=\$$3
2057                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2058 $as_echo "$ac_res" >&6; }
2059 fi
2060   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2061
2062 } # ac_fn_c_check_header_mongrel
2063
2064 # ac_fn_c_try_run LINENO
2065 # ----------------------
2066 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2067 # that executables *can* be run.
2068 ac_fn_c_try_run ()
2069 {
2070   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2071   if { { ac_try="$ac_link"
2072 case "(($ac_try" in
2073   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2074   *) ac_try_echo=$ac_try;;
2075 esac
2076 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2077 $as_echo "$ac_try_echo"; } >&5
2078   (eval "$ac_link") 2>&5
2079   ac_status=$?
2080   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2081   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2082   { { case "(($ac_try" in
2083   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2084   *) ac_try_echo=$ac_try;;
2085 esac
2086 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2087 $as_echo "$ac_try_echo"; } >&5
2088   (eval "$ac_try") 2>&5
2089   ac_status=$?
2090   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2091   test $ac_status = 0; }; }; then :
2092   ac_retval=0
2093 else
2094   $as_echo "$as_me: program exited with status $ac_status" >&5
2095        $as_echo "$as_me: failed program was:" >&5
2096 sed 's/^/| /' conftest.$ac_ext >&5
2097
2098        ac_retval=$ac_status
2099 fi
2100   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2101   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2102   as_fn_set_status $ac_retval
2103
2104 } # ac_fn_c_try_run
2105
2106 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2107 # -------------------------------------------------------
2108 # Tests whether HEADER exists and can be compiled using the include files in
2109 # INCLUDES, setting the cache variable VAR accordingly.
2110 ac_fn_c_check_header_compile ()
2111 {
2112   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2113   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2114 $as_echo_n "checking for $2... " >&6; }
2115 if eval \${$3+:} false; then :
2116   $as_echo_n "(cached) " >&6
2117 else
2118   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2119 /* end confdefs.h.  */
2120 $4
2121 #include <$2>
2122 _ACEOF
2123 if ac_fn_c_try_compile "$LINENO"; then :
2124   eval "$3=yes"
2125 else
2126   eval "$3=no"
2127 fi
2128 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2129 fi
2130 eval ac_res=\$$3
2131                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2132 $as_echo "$ac_res" >&6; }
2133   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2134
2135 } # ac_fn_c_check_header_compile
2136
2137 # ac_fn_c_check_func LINENO FUNC VAR
2138 # ----------------------------------
2139 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2140 ac_fn_c_check_func ()
2141 {
2142   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2143   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2144 $as_echo_n "checking for $2... " >&6; }
2145 if eval \${$3+:} false; then :
2146   $as_echo_n "(cached) " >&6
2147 else
2148   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2149 /* end confdefs.h.  */
2150 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2151    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2152 #define $2 innocuous_$2
2153
2154 /* System header to define __stub macros and hopefully few prototypes,
2155     which can conflict with char $2 (); below.
2156     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2157     <limits.h> exists even on freestanding compilers.  */
2158
2159 #ifdef __STDC__
2160 # include <limits.h>
2161 #else
2162 # include <assert.h>
2163 #endif
2164
2165 #undef $2
2166
2167 /* Override any GCC internal prototype to avoid an error.
2168    Use char because int might match the return type of a GCC
2169    builtin and then its argument prototype would still apply.  */
2170 #ifdef __cplusplus
2171 extern "C"
2172 #endif
2173 char $2 ();
2174 /* The GNU C library defines this for functions which it implements
2175     to always fail with ENOSYS.  Some functions are actually named
2176     something starting with __ and the normal name is an alias.  */
2177 #if defined __stub_$2 || defined __stub___$2
2178 choke me
2179 #endif
2180
2181 int
2182 main ()
2183 {
2184 return $2 ();
2185   ;
2186   return 0;
2187 }
2188 _ACEOF
2189 if ac_fn_c_try_link "$LINENO"; then :
2190   eval "$3=yes"
2191 else
2192   eval "$3=no"
2193 fi
2194 rm -f core conftest.err conftest.$ac_objext \
2195     conftest$ac_exeext conftest.$ac_ext
2196 fi
2197 eval ac_res=\$$3
2198                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2199 $as_echo "$ac_res" >&6; }
2200   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2201
2202 } # ac_fn_c_check_func
2203
2204 # ac_fn_cxx_try_cpp LINENO
2205 # ------------------------
2206 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2207 ac_fn_cxx_try_cpp ()
2208 {
2209   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2210   if { { ac_try="$ac_cpp conftest.$ac_ext"
2211 case "(($ac_try" in
2212   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2213   *) ac_try_echo=$ac_try;;
2214 esac
2215 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2216 $as_echo "$ac_try_echo"; } >&5
2217   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2218   ac_status=$?
2219   if test -s conftest.err; then
2220     grep -v '^ *+' conftest.err >conftest.er1
2221     cat conftest.er1 >&5
2222     mv -f conftest.er1 conftest.err
2223   fi
2224   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2225   test $ac_status = 0; } > conftest.i && {
2226          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2227          test ! -s conftest.err
2228        }; then :
2229   ac_retval=0
2230 else
2231   $as_echo "$as_me: failed program was:" >&5
2232 sed 's/^/| /' conftest.$ac_ext >&5
2233
2234     ac_retval=1
2235 fi
2236   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2237   as_fn_set_status $ac_retval
2238
2239 } # ac_fn_cxx_try_cpp
2240
2241 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2242 # -------------------------------------------
2243 # Tests whether TYPE exists after having included INCLUDES, setting cache
2244 # variable VAR accordingly.
2245 ac_fn_c_check_type ()
2246 {
2247   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2248   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2249 $as_echo_n "checking for $2... " >&6; }
2250 if eval \${$3+:} false; then :
2251   $as_echo_n "(cached) " >&6
2252 else
2253   eval "$3=no"
2254   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2255 /* end confdefs.h.  */
2256 $4
2257 int
2258 main ()
2259 {
2260 if (sizeof ($2))
2261          return 0;
2262   ;
2263   return 0;
2264 }
2265 _ACEOF
2266 if ac_fn_c_try_compile "$LINENO"; then :
2267   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2268 /* end confdefs.h.  */
2269 $4
2270 int
2271 main ()
2272 {
2273 if (sizeof (($2)))
2274             return 0;
2275   ;
2276   return 0;
2277 }
2278 _ACEOF
2279 if ac_fn_c_try_compile "$LINENO"; then :
2280
2281 else
2282   eval "$3=yes"
2283 fi
2284 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2285 fi
2286 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2287 fi
2288 eval ac_res=\$$3
2289                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2290 $as_echo "$ac_res" >&6; }
2291   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2292
2293 } # ac_fn_c_check_type
2294 cat >config.log <<_ACEOF
2295 This file contains any messages produced by compilers while
2296 running configure, to aid debugging if configure makes a mistake.
2297
2298 It was created by subversion $as_me 1.9.4, which was
2299 generated by GNU Autoconf 2.69.  Invocation command line was
2300
2301   $ $0 $@
2302
2303 _ACEOF
2304 exec 5>>config.log
2305 {
2306 cat <<_ASUNAME
2307 ## --------- ##
2308 ## Platform. ##
2309 ## --------- ##
2310
2311 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2312 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2313 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2314 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2315 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2316
2317 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2318 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2319
2320 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2321 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2322 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2323 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2324 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2325 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2326 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2327
2328 _ASUNAME
2329
2330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2331 for as_dir in $PATH
2332 do
2333   IFS=$as_save_IFS
2334   test -z "$as_dir" && as_dir=.
2335     $as_echo "PATH: $as_dir"
2336   done
2337 IFS=$as_save_IFS
2338
2339 } >&5
2340
2341 cat >&5 <<_ACEOF
2342
2343
2344 ## ----------- ##
2345 ## Core tests. ##
2346 ## ----------- ##
2347
2348 _ACEOF
2349
2350
2351 # Keep a trace of the command line.
2352 # Strip out --no-create and --no-recursion so they do not pile up.
2353 # Strip out --silent because we don't want to record it for future runs.
2354 # Also quote any args containing shell meta-characters.
2355 # Make two passes to allow for proper duplicate-argument suppression.
2356 ac_configure_args=
2357 ac_configure_args0=
2358 ac_configure_args1=
2359 ac_must_keep_next=false
2360 for ac_pass in 1 2
2361 do
2362   for ac_arg
2363   do
2364     case $ac_arg in
2365     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2366     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2367     | -silent | --silent | --silen | --sile | --sil)
2368       continue ;;
2369     *\'*)
2370       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2371     esac
2372     case $ac_pass in
2373     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2374     2)
2375       as_fn_append ac_configure_args1 " '$ac_arg'"
2376       if test $ac_must_keep_next = true; then
2377         ac_must_keep_next=false # Got value, back to normal.
2378       else
2379         case $ac_arg in
2380           *=* | --config-cache | -C | -disable-* | --disable-* \
2381           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2382           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2383           | -with-* | --with-* | -without-* | --without-* | --x)
2384             case "$ac_configure_args0 " in
2385               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2386             esac
2387             ;;
2388           -* ) ac_must_keep_next=true ;;
2389         esac
2390       fi
2391       as_fn_append ac_configure_args " '$ac_arg'"
2392       ;;
2393     esac
2394   done
2395 done
2396 { ac_configure_args0=; unset ac_configure_args0;}
2397 { ac_configure_args1=; unset ac_configure_args1;}
2398
2399 # When interrupted or exit'd, cleanup temporary files, and complete
2400 # config.log.  We remove comments because anyway the quotes in there
2401 # would cause problems or look ugly.
2402 # WARNING: Use '\'' to represent an apostrophe within the trap.
2403 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2404 trap 'exit_status=$?
2405   # Save into config.log some information that might help in debugging.
2406   {
2407     echo
2408
2409     $as_echo "## ---------------- ##
2410 ## Cache variables. ##
2411 ## ---------------- ##"
2412     echo
2413     # The following way of writing the cache mishandles newlines in values,
2414 (
2415   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2416     eval ac_val=\$$ac_var
2417     case $ac_val in #(
2418     *${as_nl}*)
2419       case $ac_var in #(
2420       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2421 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2422       esac
2423       case $ac_var in #(
2424       _ | IFS | as_nl) ;; #(
2425       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2426       *) { eval $ac_var=; unset $ac_var;} ;;
2427       esac ;;
2428     esac
2429   done
2430   (set) 2>&1 |
2431     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2432     *${as_nl}ac_space=\ *)
2433       sed -n \
2434         "s/'\''/'\''\\\\'\'''\''/g;
2435           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2436       ;; #(
2437     *)
2438       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2439       ;;
2440     esac |
2441     sort
2442 )
2443     echo
2444
2445     $as_echo "## ----------------- ##
2446 ## Output variables. ##
2447 ## ----------------- ##"
2448     echo
2449     for ac_var in $ac_subst_vars
2450     do
2451       eval ac_val=\$$ac_var
2452       case $ac_val in
2453       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2454       esac
2455       $as_echo "$ac_var='\''$ac_val'\''"
2456     done | sort
2457     echo
2458
2459     if test -n "$ac_subst_files"; then
2460       $as_echo "## ------------------- ##
2461 ## File substitutions. ##
2462 ## ------------------- ##"
2463       echo
2464       for ac_var in $ac_subst_files
2465       do
2466         eval ac_val=\$$ac_var
2467         case $ac_val in
2468         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2469         esac
2470         $as_echo "$ac_var='\''$ac_val'\''"
2471       done | sort
2472       echo
2473     fi
2474
2475     if test -s confdefs.h; then
2476       $as_echo "## ----------- ##
2477 ## confdefs.h. ##
2478 ## ----------- ##"
2479       echo
2480       cat confdefs.h
2481       echo
2482     fi
2483     test "$ac_signal" != 0 &&
2484       $as_echo "$as_me: caught signal $ac_signal"
2485     $as_echo "$as_me: exit $exit_status"
2486   } >&5
2487   rm -f core *.core core.conftest.* &&
2488     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2489     exit $exit_status
2490 ' 0
2491 for ac_signal in 1 2 13 15; do
2492   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2493 done
2494 ac_signal=0
2495
2496 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2497 rm -f -r conftest* confdefs.h
2498
2499 $as_echo "/* confdefs.h */" > confdefs.h
2500
2501 # Predefined preprocessor variables.
2502
2503 cat >>confdefs.h <<_ACEOF
2504 #define PACKAGE_NAME "$PACKAGE_NAME"
2505 _ACEOF
2506
2507 cat >>confdefs.h <<_ACEOF
2508 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2509 _ACEOF
2510
2511 cat >>confdefs.h <<_ACEOF
2512 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2513 _ACEOF
2514
2515 cat >>confdefs.h <<_ACEOF
2516 #define PACKAGE_STRING "$PACKAGE_STRING"
2517 _ACEOF
2518
2519 cat >>confdefs.h <<_ACEOF
2520 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2521 _ACEOF
2522
2523 cat >>confdefs.h <<_ACEOF
2524 #define PACKAGE_URL "$PACKAGE_URL"
2525 _ACEOF
2526
2527
2528 # Let the site file select an alternate cache file if it wants to.
2529 # Prefer an explicitly selected file to automatically selected ones.
2530 ac_site_file1=NONE
2531 ac_site_file2=NONE
2532 if test -n "$CONFIG_SITE"; then
2533   # We do not want a PATH search for config.site.
2534   case $CONFIG_SITE in #((
2535     -*)  ac_site_file1=./$CONFIG_SITE;;
2536     */*) ac_site_file1=$CONFIG_SITE;;
2537     *)   ac_site_file1=./$CONFIG_SITE;;
2538   esac
2539 elif test "x$prefix" != xNONE; then
2540   ac_site_file1=$prefix/share/config.site
2541   ac_site_file2=$prefix/etc/config.site
2542 else
2543   ac_site_file1=$ac_default_prefix/share/config.site
2544   ac_site_file2=$ac_default_prefix/etc/config.site
2545 fi
2546 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2547 do
2548   test "x$ac_site_file" = xNONE && continue
2549   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2550     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2551 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2552     sed 's/^/| /' "$ac_site_file" >&5
2553     . "$ac_site_file" \
2554       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2555 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2556 as_fn_error $? "failed to load site script $ac_site_file
2557 See \`config.log' for more details" "$LINENO" 5; }
2558   fi
2559 done
2560
2561 if test -r "$cache_file"; then
2562   # Some versions of bash will fail to source /dev/null (special files
2563   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2564   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2565     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2566 $as_echo "$as_me: loading cache $cache_file" >&6;}
2567     case $cache_file in
2568       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2569       *)                      . "./$cache_file";;
2570     esac
2571   fi
2572 else
2573   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2574 $as_echo "$as_me: creating cache $cache_file" >&6;}
2575   >$cache_file
2576 fi
2577
2578 # Check that the precious variables saved in the cache have kept the same
2579 # value.
2580 ac_cache_corrupted=false
2581 for ac_var in $ac_precious_vars; do
2582   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2583   eval ac_new_set=\$ac_env_${ac_var}_set
2584   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2585   eval ac_new_val=\$ac_env_${ac_var}_value
2586   case $ac_old_set,$ac_new_set in
2587     set,)
2588       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2589 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2590       ac_cache_corrupted=: ;;
2591     ,set)
2592       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2593 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2594       ac_cache_corrupted=: ;;
2595     ,);;
2596     *)
2597       if test "x$ac_old_val" != "x$ac_new_val"; then
2598         # differences in whitespace do not lead to failure.
2599         ac_old_val_w=`echo x $ac_old_val`
2600         ac_new_val_w=`echo x $ac_new_val`
2601         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2602           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2603 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2604           ac_cache_corrupted=:
2605         else
2606           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2607 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2608           eval $ac_var=\$ac_old_val
2609         fi
2610         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2611 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2612         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2613 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2614       fi;;
2615   esac
2616   # Pass precious variables to config.status.
2617   if test "$ac_new_set" = set; then
2618     case $ac_new_val in
2619     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2620     *) ac_arg=$ac_var=$ac_new_val ;;
2621     esac
2622     case " $ac_configure_args " in
2623       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2624       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2625     esac
2626   fi
2627 done
2628 if $ac_cache_corrupted; then
2629   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2630 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2631   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2632 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2633   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2634 fi
2635 ## -------------------- ##
2636 ## Main body of script. ##
2637 ## -------------------- ##
2638
2639 ac_ext=c
2640 ac_cpp='$CPP $CPPFLAGS'
2641 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2642 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2643 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2644
2645
2646
2647
2648 ac_aux_dir=
2649 for ac_dir in build "$srcdir"/build; do
2650   if test -f "$ac_dir/install-sh"; then
2651     ac_aux_dir=$ac_dir
2652     ac_install_sh="$ac_aux_dir/install-sh -c"
2653     break
2654   elif test -f "$ac_dir/install.sh"; then
2655     ac_aux_dir=$ac_dir
2656     ac_install_sh="$ac_aux_dir/install.sh -c"
2657     break
2658   elif test -f "$ac_dir/shtool"; then
2659     ac_aux_dir=$ac_dir
2660     ac_install_sh="$ac_aux_dir/shtool install -c"
2661     break
2662   fi
2663 done
2664 if test -z "$ac_aux_dir"; then
2665   as_fn_error $? "cannot find install-sh, install.sh, or shtool in build \"$srcdir\"/build" "$LINENO" 5
2666 fi
2667
2668 # These three variables are undocumented and unsupported,
2669 # and are intended to be withdrawn in a future Autoconf release.
2670 # They can cause serious problems if a builder's source tree is in a directory
2671 # whose full name contains unusual characters.
2672 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2673 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2674 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2675
2676
2677
2678 { $as_echo "$as_me:${as_lineno-$LINENO}: Configuring Subversion 1.9.4" >&5
2679 $as_echo "$as_me: Configuring Subversion 1.9.4" >&6;}
2680
2681 abs_srcdir="`cd $srcdir && pwd`"
2682
2683 abs_builddir="`pwd`"
2684
2685 if test "$abs_srcdir" = "$abs_builddir"; then
2686   canonicalized_srcdir=""
2687 else
2688   canonicalized_srcdir="$srcdir/"
2689 fi
2690
2691
2692 SWIG_LDFLAGS="$LDFLAGS"
2693
2694
2695 # Generate config.nice early (before the arguments are munged)
2696
2697   { $as_echo "$as_me:${as_lineno-$LINENO}: creating config.nice" >&5
2698 $as_echo "$as_me: creating config.nice" >&6;}
2699   # This little dance satisfies Cygwin, which cannot overwrite in-use files.
2700   if test -f "config.nice"; then
2701     mv "config.nice" "config.nice.old"
2702   fi
2703
2704   cat >"config.nice" <<EOF
2705 #! /bin/sh
2706 #
2707 # Created by configure
2708
2709 '$0' $ac_configure_args "\$@"
2710 EOF
2711
2712   chmod +x "config.nice"
2713   rm -f "config.nice.old"
2714
2715
2716 # ==== Check for programs ====================================================
2717
2718 # Look for a C compiler (before anything can set CFLAGS)
2719 CUSERFLAGS="$CFLAGS"
2720 ac_ext=c
2721 ac_cpp='$CPP $CPPFLAGS'
2722 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2723 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2724 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2725 if test -n "$ac_tool_prefix"; then
2726   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2727 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2729 $as_echo_n "checking for $ac_word... " >&6; }
2730 if ${ac_cv_prog_CC+:} false; then :
2731   $as_echo_n "(cached) " >&6
2732 else
2733   if test -n "$CC"; then
2734   ac_cv_prog_CC="$CC" # Let the user override the test.
2735 else
2736 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2737 for as_dir in $PATH
2738 do
2739   IFS=$as_save_IFS
2740   test -z "$as_dir" && as_dir=.
2741     for ac_exec_ext in '' $ac_executable_extensions; do
2742   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2743     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2744     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2745     break 2
2746   fi
2747 done
2748   done
2749 IFS=$as_save_IFS
2750
2751 fi
2752 fi
2753 CC=$ac_cv_prog_CC
2754 if test -n "$CC"; then
2755   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2756 $as_echo "$CC" >&6; }
2757 else
2758   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2759 $as_echo "no" >&6; }
2760 fi
2761
2762
2763 fi
2764 if test -z "$ac_cv_prog_CC"; then
2765   ac_ct_CC=$CC
2766   # Extract the first word of "gcc", so it can be a program name with args.
2767 set dummy gcc; ac_word=$2
2768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2769 $as_echo_n "checking for $ac_word... " >&6; }
2770 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2771   $as_echo_n "(cached) " >&6
2772 else
2773   if test -n "$ac_ct_CC"; then
2774   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2775 else
2776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2777 for as_dir in $PATH
2778 do
2779   IFS=$as_save_IFS
2780   test -z "$as_dir" && as_dir=.
2781     for ac_exec_ext in '' $ac_executable_extensions; do
2782   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2783     ac_cv_prog_ac_ct_CC="gcc"
2784     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2785     break 2
2786   fi
2787 done
2788   done
2789 IFS=$as_save_IFS
2790
2791 fi
2792 fi
2793 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2794 if test -n "$ac_ct_CC"; then
2795   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2796 $as_echo "$ac_ct_CC" >&6; }
2797 else
2798   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2799 $as_echo "no" >&6; }
2800 fi
2801
2802   if test "x$ac_ct_CC" = x; then
2803     CC=""
2804   else
2805     case $cross_compiling:$ac_tool_warned in
2806 yes:)
2807 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2808 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2809 ac_tool_warned=yes ;;
2810 esac
2811     CC=$ac_ct_CC
2812   fi
2813 else
2814   CC="$ac_cv_prog_CC"
2815 fi
2816
2817 if test -z "$CC"; then
2818           if test -n "$ac_tool_prefix"; then
2819     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2820 set dummy ${ac_tool_prefix}cc; ac_word=$2
2821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2822 $as_echo_n "checking for $ac_word... " >&6; }
2823 if ${ac_cv_prog_CC+:} false; then :
2824   $as_echo_n "(cached) " >&6
2825 else
2826   if test -n "$CC"; then
2827   ac_cv_prog_CC="$CC" # Let the user override the test.
2828 else
2829 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2830 for as_dir in $PATH
2831 do
2832   IFS=$as_save_IFS
2833   test -z "$as_dir" && as_dir=.
2834     for ac_exec_ext in '' $ac_executable_extensions; do
2835   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2836     ac_cv_prog_CC="${ac_tool_prefix}cc"
2837     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2838     break 2
2839   fi
2840 done
2841   done
2842 IFS=$as_save_IFS
2843
2844 fi
2845 fi
2846 CC=$ac_cv_prog_CC
2847 if test -n "$CC"; then
2848   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2849 $as_echo "$CC" >&6; }
2850 else
2851   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2852 $as_echo "no" >&6; }
2853 fi
2854
2855
2856   fi
2857 fi
2858 if test -z "$CC"; then
2859   # Extract the first word of "cc", so it can be a program name with args.
2860 set dummy cc; ac_word=$2
2861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2862 $as_echo_n "checking for $ac_word... " >&6; }
2863 if ${ac_cv_prog_CC+:} false; then :
2864   $as_echo_n "(cached) " >&6
2865 else
2866   if test -n "$CC"; then
2867   ac_cv_prog_CC="$CC" # Let the user override the test.
2868 else
2869   ac_prog_rejected=no
2870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2871 for as_dir in $PATH
2872 do
2873   IFS=$as_save_IFS
2874   test -z "$as_dir" && as_dir=.
2875     for ac_exec_ext in '' $ac_executable_extensions; do
2876   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2877     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2878        ac_prog_rejected=yes
2879        continue
2880      fi
2881     ac_cv_prog_CC="cc"
2882     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2883     break 2
2884   fi
2885 done
2886   done
2887 IFS=$as_save_IFS
2888
2889 if test $ac_prog_rejected = yes; then
2890   # We found a bogon in the path, so make sure we never use it.
2891   set dummy $ac_cv_prog_CC
2892   shift
2893   if test $# != 0; then
2894     # We chose a different compiler from the bogus one.
2895     # However, it has the same basename, so the bogon will be chosen
2896     # first if we set CC to just the basename; use the full file name.
2897     shift
2898     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2899   fi
2900 fi
2901 fi
2902 fi
2903 CC=$ac_cv_prog_CC
2904 if test -n "$CC"; then
2905   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2906 $as_echo "$CC" >&6; }
2907 else
2908   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2909 $as_echo "no" >&6; }
2910 fi
2911
2912
2913 fi
2914 if test -z "$CC"; then
2915   if test -n "$ac_tool_prefix"; then
2916   for ac_prog in cl.exe
2917   do
2918     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2919 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2921 $as_echo_n "checking for $ac_word... " >&6; }
2922 if ${ac_cv_prog_CC+:} false; then :
2923   $as_echo_n "(cached) " >&6
2924 else
2925   if test -n "$CC"; then
2926   ac_cv_prog_CC="$CC" # Let the user override the test.
2927 else
2928 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2929 for as_dir in $PATH
2930 do
2931   IFS=$as_save_IFS
2932   test -z "$as_dir" && as_dir=.
2933     for ac_exec_ext in '' $ac_executable_extensions; do
2934   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2935     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2936     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2937     break 2
2938   fi
2939 done
2940   done
2941 IFS=$as_save_IFS
2942
2943 fi
2944 fi
2945 CC=$ac_cv_prog_CC
2946 if test -n "$CC"; then
2947   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2948 $as_echo "$CC" >&6; }
2949 else
2950   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2951 $as_echo "no" >&6; }
2952 fi
2953
2954
2955     test -n "$CC" && break
2956   done
2957 fi
2958 if test -z "$CC"; then
2959   ac_ct_CC=$CC
2960   for ac_prog in cl.exe
2961 do
2962   # Extract the first word of "$ac_prog", so it can be a program name with args.
2963 set dummy $ac_prog; ac_word=$2
2964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2965 $as_echo_n "checking for $ac_word... " >&6; }
2966 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2967   $as_echo_n "(cached) " >&6
2968 else
2969   if test -n "$ac_ct_CC"; then
2970   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2971 else
2972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2973 for as_dir in $PATH
2974 do
2975   IFS=$as_save_IFS
2976   test -z "$as_dir" && as_dir=.
2977     for ac_exec_ext in '' $ac_executable_extensions; do
2978   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2979     ac_cv_prog_ac_ct_CC="$ac_prog"
2980     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2981     break 2
2982   fi
2983 done
2984   done
2985 IFS=$as_save_IFS
2986
2987 fi
2988 fi
2989 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2990 if test -n "$ac_ct_CC"; then
2991   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2992 $as_echo "$ac_ct_CC" >&6; }
2993 else
2994   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2995 $as_echo "no" >&6; }
2996 fi
2997
2998
2999   test -n "$ac_ct_CC" && break
3000 done
3001
3002   if test "x$ac_ct_CC" = x; then
3003     CC=""
3004   else
3005     case $cross_compiling:$ac_tool_warned in
3006 yes:)
3007 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3008 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3009 ac_tool_warned=yes ;;
3010 esac
3011     CC=$ac_ct_CC
3012   fi
3013 fi
3014
3015 fi
3016
3017
3018 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3019 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3020 as_fn_error $? "no acceptable C compiler found in \$PATH
3021 See \`config.log' for more details" "$LINENO" 5; }
3022
3023 # Provide some information about the compiler.
3024 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3025 set X $ac_compile
3026 ac_compiler=$2
3027 for ac_option in --version -v -V -qversion; do
3028   { { ac_try="$ac_compiler $ac_option >&5"
3029 case "(($ac_try" in
3030   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3031   *) ac_try_echo=$ac_try;;
3032 esac
3033 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3034 $as_echo "$ac_try_echo"; } >&5
3035   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3036   ac_status=$?
3037   if test -s conftest.err; then
3038     sed '10a\
3039 ... rest of stderr output deleted ...
3040          10q' conftest.err >conftest.er1
3041     cat conftest.er1 >&5
3042   fi
3043   rm -f conftest.er1 conftest.err
3044   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3045   test $ac_status = 0; }
3046 done
3047
3048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3049 /* end confdefs.h.  */
3050
3051 int
3052 main ()
3053 {
3054
3055   ;
3056   return 0;
3057 }
3058 _ACEOF
3059 ac_clean_files_save=$ac_clean_files
3060 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3061 # Try to create an executable without -o first, disregard a.out.
3062 # It will help us diagnose broken compilers, and finding out an intuition
3063 # of exeext.
3064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3065 $as_echo_n "checking whether the C compiler works... " >&6; }
3066 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3067
3068 # The possible output files:
3069 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3070
3071 ac_rmfiles=
3072 for ac_file in $ac_files
3073 do
3074   case $ac_file in
3075     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3076     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3077   esac
3078 done
3079 rm -f $ac_rmfiles
3080
3081 if { { ac_try="$ac_link_default"
3082 case "(($ac_try" in
3083   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3084   *) ac_try_echo=$ac_try;;
3085 esac
3086 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3087 $as_echo "$ac_try_echo"; } >&5
3088   (eval "$ac_link_default") 2>&5
3089   ac_status=$?
3090   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3091   test $ac_status = 0; }; then :
3092   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3093 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3094 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3095 # so that the user can short-circuit this test for compilers unknown to
3096 # Autoconf.
3097 for ac_file in $ac_files ''
3098 do
3099   test -f "$ac_file" || continue
3100   case $ac_file in
3101     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3102         ;;
3103     [ab].out )
3104         # We found the default executable, but exeext='' is most
3105         # certainly right.
3106         break;;
3107     *.* )
3108         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3109         then :; else
3110            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3111         fi
3112         # We set ac_cv_exeext here because the later test for it is not
3113         # safe: cross compilers may not add the suffix if given an `-o'
3114         # argument, so we may need to know it at that point already.
3115         # Even if this section looks crufty: it has the advantage of
3116         # actually working.
3117         break;;
3118     * )
3119         break;;
3120   esac
3121 done
3122 test "$ac_cv_exeext" = no && ac_cv_exeext=
3123
3124 else
3125   ac_file=''
3126 fi
3127 if test -z "$ac_file"; then :
3128   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3129 $as_echo "no" >&6; }
3130 $as_echo "$as_me: failed program was:" >&5
3131 sed 's/^/| /' conftest.$ac_ext >&5
3132
3133 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3134 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3135 as_fn_error 77 "C compiler cannot create executables
3136 See \`config.log' for more details" "$LINENO" 5; }
3137 else
3138   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3139 $as_echo "yes" >&6; }
3140 fi
3141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3142 $as_echo_n "checking for C compiler default output file name... " >&6; }
3143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3144 $as_echo "$ac_file" >&6; }
3145 ac_exeext=$ac_cv_exeext
3146
3147 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3148 ac_clean_files=$ac_clean_files_save
3149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3150 $as_echo_n "checking for suffix of executables... " >&6; }
3151 if { { ac_try="$ac_link"
3152 case "(($ac_try" in
3153   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3154   *) ac_try_echo=$ac_try;;
3155 esac
3156 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3157 $as_echo "$ac_try_echo"; } >&5
3158   (eval "$ac_link") 2>&5
3159   ac_status=$?
3160   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3161   test $ac_status = 0; }; then :
3162   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3163 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3164 # work properly (i.e., refer to `conftest.exe'), while it won't with
3165 # `rm'.
3166 for ac_file in conftest.exe conftest conftest.*; do
3167   test -f "$ac_file" || continue
3168   case $ac_file in
3169     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3170     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3171           break;;
3172     * ) break;;
3173   esac
3174 done
3175 else
3176   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3177 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3178 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3179 See \`config.log' for more details" "$LINENO" 5; }
3180 fi
3181 rm -f conftest conftest$ac_cv_exeext
3182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3183 $as_echo "$ac_cv_exeext" >&6; }
3184
3185 rm -f conftest.$ac_ext
3186 EXEEXT=$ac_cv_exeext
3187 ac_exeext=$EXEEXT
3188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3189 /* end confdefs.h.  */
3190 #include <stdio.h>
3191 int
3192 main ()
3193 {
3194 FILE *f = fopen ("conftest.out", "w");
3195  return ferror (f) || fclose (f) != 0;
3196
3197   ;
3198   return 0;
3199 }
3200 _ACEOF
3201 ac_clean_files="$ac_clean_files conftest.out"
3202 # Check that the compiler produces executables we can run.  If not, either
3203 # the compiler is broken, or we cross compile.
3204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3205 $as_echo_n "checking whether we are cross compiling... " >&6; }
3206 if test "$cross_compiling" != yes; then
3207   { { ac_try="$ac_link"
3208 case "(($ac_try" in
3209   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3210   *) ac_try_echo=$ac_try;;
3211 esac
3212 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3213 $as_echo "$ac_try_echo"; } >&5
3214   (eval "$ac_link") 2>&5
3215   ac_status=$?
3216   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3217   test $ac_status = 0; }
3218   if { ac_try='./conftest$ac_cv_exeext'
3219   { { case "(($ac_try" in
3220   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3221   *) ac_try_echo=$ac_try;;
3222 esac
3223 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3224 $as_echo "$ac_try_echo"; } >&5
3225   (eval "$ac_try") 2>&5
3226   ac_status=$?
3227   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3228   test $ac_status = 0; }; }; then
3229     cross_compiling=no
3230   else
3231     if test "$cross_compiling" = maybe; then
3232         cross_compiling=yes
3233     else
3234         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3235 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3236 as_fn_error $? "cannot run C compiled programs.
3237 If you meant to cross compile, use \`--host'.
3238 See \`config.log' for more details" "$LINENO" 5; }
3239     fi
3240   fi
3241 fi
3242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3243 $as_echo "$cross_compiling" >&6; }
3244
3245 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3246 ac_clean_files=$ac_clean_files_save
3247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3248 $as_echo_n "checking for suffix of object files... " >&6; }
3249 if ${ac_cv_objext+:} false; then :
3250   $as_echo_n "(cached) " >&6
3251 else
3252   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3253 /* end confdefs.h.  */
3254
3255 int
3256 main ()
3257 {
3258
3259   ;
3260   return 0;
3261 }
3262 _ACEOF
3263 rm -f conftest.o conftest.obj
3264 if { { ac_try="$ac_compile"
3265 case "(($ac_try" in
3266   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3267   *) ac_try_echo=$ac_try;;
3268 esac
3269 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3270 $as_echo "$ac_try_echo"; } >&5
3271   (eval "$ac_compile") 2>&5
3272   ac_status=$?
3273   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3274   test $ac_status = 0; }; then :
3275   for ac_file in conftest.o conftest.obj conftest.*; do
3276   test -f "$ac_file" || continue;
3277   case $ac_file in
3278     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3279     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3280        break;;
3281   esac
3282 done
3283 else
3284   $as_echo "$as_me: failed program was:" >&5
3285 sed 's/^/| /' conftest.$ac_ext >&5
3286
3287 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3288 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3289 as_fn_error $? "cannot compute suffix of object files: cannot compile
3290 See \`config.log' for more details" "$LINENO" 5; }
3291 fi
3292 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3293 fi
3294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3295 $as_echo "$ac_cv_objext" >&6; }
3296 OBJEXT=$ac_cv_objext
3297 ac_objext=$OBJEXT
3298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3299 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3300 if ${ac_cv_c_compiler_gnu+:} false; then :
3301   $as_echo_n "(cached) " >&6
3302 else
3303   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3304 /* end confdefs.h.  */
3305
3306 int
3307 main ()
3308 {
3309 #ifndef __GNUC__
3310        choke me
3311 #endif
3312
3313   ;
3314   return 0;
3315 }
3316 _ACEOF
3317 if ac_fn_c_try_compile "$LINENO"; then :
3318   ac_compiler_gnu=yes
3319 else
3320   ac_compiler_gnu=no
3321 fi
3322 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3323 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3324
3325 fi
3326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3327 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3328 if test $ac_compiler_gnu = yes; then
3329   GCC=yes
3330 else
3331   GCC=
3332 fi
3333 ac_test_CFLAGS=${CFLAGS+set}
3334 ac_save_CFLAGS=$CFLAGS
3335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3336 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3337 if ${ac_cv_prog_cc_g+:} false; then :
3338   $as_echo_n "(cached) " >&6
3339 else
3340   ac_save_c_werror_flag=$ac_c_werror_flag
3341    ac_c_werror_flag=yes
3342    ac_cv_prog_cc_g=no
3343    CFLAGS="-g"
3344    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3345 /* end confdefs.h.  */
3346
3347 int
3348 main ()
3349 {
3350
3351   ;
3352   return 0;
3353 }
3354 _ACEOF
3355 if ac_fn_c_try_compile "$LINENO"; then :
3356   ac_cv_prog_cc_g=yes
3357 else
3358   CFLAGS=""
3359       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3360 /* end confdefs.h.  */
3361
3362 int
3363 main ()
3364 {
3365
3366   ;
3367   return 0;
3368 }
3369 _ACEOF
3370 if ac_fn_c_try_compile "$LINENO"; then :
3371
3372 else
3373   ac_c_werror_flag=$ac_save_c_werror_flag
3374          CFLAGS="-g"
3375          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3376 /* end confdefs.h.  */
3377
3378 int
3379 main ()
3380 {
3381
3382   ;
3383   return 0;
3384 }
3385 _ACEOF
3386 if ac_fn_c_try_compile "$LINENO"; then :
3387   ac_cv_prog_cc_g=yes
3388 fi
3389 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3390 fi
3391 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3392 fi
3393 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3394    ac_c_werror_flag=$ac_save_c_werror_flag
3395 fi
3396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3397 $as_echo "$ac_cv_prog_cc_g" >&6; }
3398 if test "$ac_test_CFLAGS" = set; then
3399   CFLAGS=$ac_save_CFLAGS
3400 elif test $ac_cv_prog_cc_g = yes; then
3401   if test "$GCC" = yes; then
3402     CFLAGS="-g -O2"
3403   else
3404     CFLAGS="-g"
3405   fi
3406 else
3407   if test "$GCC" = yes; then
3408     CFLAGS="-O2"
3409   else
3410     CFLAGS=
3411   fi
3412 fi
3413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3414 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3415 if ${ac_cv_prog_cc_c89+:} false; then :
3416   $as_echo_n "(cached) " >&6
3417 else
3418   ac_cv_prog_cc_c89=no
3419 ac_save_CC=$CC
3420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3421 /* end confdefs.h.  */
3422 #include <stdarg.h>
3423 #include <stdio.h>
3424 struct stat;
3425 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3426 struct buf { int x; };
3427 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3428 static char *e (p, i)
3429      char **p;
3430      int i;
3431 {
3432   return p[i];
3433 }
3434 static char *f (char * (*g) (char **, int), char **p, ...)
3435 {
3436   char *s;
3437   va_list v;
3438   va_start (v,p);
3439   s = g (p, va_arg (v,int));
3440   va_end (v);
3441   return s;
3442 }
3443
3444 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3445    function prototypes and stuff, but not '\xHH' hex character constants.
3446    These don't provoke an error unfortunately, instead are silently treated
3447    as 'x'.  The following induces an error, until -std is added to get
3448    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3449    array size at least.  It's necessary to write '\x00'==0 to get something
3450    that's true only with -std.  */
3451 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3452
3453 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3454    inside strings and character constants.  */
3455 #define FOO(x) 'x'
3456 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3457
3458 int test (int i, double x);
3459 struct s1 {int (*f) (int a);};
3460 struct s2 {int (*f) (double a);};
3461 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3462 int argc;
3463 char **argv;
3464 int
3465 main ()
3466 {
3467 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3468   ;
3469   return 0;
3470 }
3471 _ACEOF
3472 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3473         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3474 do
3475   CC="$ac_save_CC $ac_arg"
3476   if ac_fn_c_try_compile "$LINENO"; then :
3477   ac_cv_prog_cc_c89=$ac_arg
3478 fi
3479 rm -f core conftest.err conftest.$ac_objext
3480   test "x$ac_cv_prog_cc_c89" != "xno" && break
3481 done
3482 rm -f conftest.$ac_ext
3483 CC=$ac_save_CC
3484
3485 fi
3486 # AC_CACHE_VAL
3487 case "x$ac_cv_prog_cc_c89" in
3488   x)
3489     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3490 $as_echo "none needed" >&6; } ;;
3491   xno)
3492     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3493 $as_echo "unsupported" >&6; } ;;
3494   *)
3495     CC="$CC $ac_cv_prog_cc_c89"
3496     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3497 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3498 esac
3499 if test "x$ac_cv_prog_cc_c89" != xno; then :
3500
3501 fi
3502
3503 ac_ext=c
3504 ac_cpp='$CPP $CPPFLAGS'
3505 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3506 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3507 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3508
3509
3510
3511   CFLAGS_KEEP="$CFLAGS"
3512   CFLAGS=""
3513
3514   if test "$GCC" = "yes"; then
3515
3516   _svn_xxflags__save="$CFLAGS"
3517   ac_ext=c
3518 ac_cpp='$CPP $CPPFLAGS'
3519 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3520 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3521 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3522
3523   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -std=c90" >&5
3524 $as_echo_n "checking if $CC accepts -std=c90... " >&6; }
3525   CFLAGS="-std=c90 $CFLAGS"
3526         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3527 /* end confdefs.h.  */
3528 int main(void){return 0;}
3529 _ACEOF
3530 if ac_fn_c_try_link "$LINENO"; then :
3531
3532     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3533 $as_echo "yes" >&6; }
3534
3535
3536 else
3537
3538     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3539 $as_echo "no" >&6; }
3540     CFLAGS="$_svn_xxflags__save"
3541
3542
3543   _svn_xxflags__save="$CFLAGS"
3544   ac_ext=c
3545 ac_cpp='$CPP $CPPFLAGS'
3546 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3547 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3548 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3549
3550   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -std=c89" >&5
3551 $as_echo_n "checking if $CC accepts -std=c89... " >&6; }
3552   CFLAGS="-std=c89 $CFLAGS"
3553         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3554 /* end confdefs.h.  */
3555 int main(void){return 0;}
3556 _ACEOF
3557 if ac_fn_c_try_link "$LINENO"; then :
3558
3559     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3560 $as_echo "yes" >&6; }
3561
3562
3563 else
3564
3565     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3566 $as_echo "no" >&6; }
3567     CFLAGS="$_svn_xxflags__save"
3568
3569
3570   _svn_xxflags__save="$CFLAGS"
3571   ac_ext=c
3572 ac_cpp='$CPP $CPPFLAGS'
3573 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3574 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3575 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3576
3577   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -ansi" >&5
3578 $as_echo_n "checking if $CC accepts -ansi... " >&6; }
3579   CFLAGS="-ansi $CFLAGS"
3580         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3581 /* end confdefs.h.  */
3582 int main(void){return 0;}
3583 _ACEOF
3584 if ac_fn_c_try_link "$LINENO"; then :
3585
3586     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3587 $as_echo "yes" >&6; }
3588
3589
3590 else
3591
3592     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3593 $as_echo "no" >&6; }
3594     CFLAGS="$_svn_xxflags__save"
3595
3596
3597 fi
3598 rm -f core conftest.err conftest.$ac_objext \
3599     conftest$ac_exeext conftest.$ac_ext
3600   ac_ext=c
3601 ac_cpp='$CPP $CPPFLAGS'
3602 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3603 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3604 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3605
3606
3607
3608
3609 fi
3610 rm -f core conftest.err conftest.$ac_objext \
3611     conftest$ac_exeext conftest.$ac_ext
3612   ac_ext=c
3613 ac_cpp='$CPP $CPPFLAGS'
3614 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3615 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3616 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3617
3618
3619
3620
3621 fi
3622 rm -f core conftest.err conftest.$ac_objext \
3623     conftest$ac_exeext conftest.$ac_ext
3624   ac_ext=c
3625 ac_cpp='$CPP $CPPFLAGS'
3626 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3627 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3628 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3629
3630
3631   fi
3632
3633   CMODEFLAGS="$CFLAGS"
3634   CFLAGS=""
3635
3636   if test "$GCC" = "yes"; then
3637
3638   _svn_xxflags__save="$CFLAGS"
3639   ac_ext=c
3640 ac_cpp='$CPP $CPPFLAGS'
3641 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3642 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3643 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3644
3645   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -w" >&5
3646 $as_echo_n "checking if $CC accepts -w... " >&6; }
3647   CFLAGS="-w $CFLAGS"
3648         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3649 /* end confdefs.h.  */
3650 int main(void){return 0;}
3651 _ACEOF
3652 if ac_fn_c_try_link "$LINENO"; then :
3653
3654     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3655 $as_echo "yes" >&6; }
3656
3657
3658 else
3659
3660     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3661 $as_echo "no" >&6; }
3662     CFLAGS="$_svn_xxflags__save"
3663
3664
3665 fi
3666 rm -f core conftest.err conftest.$ac_objext \
3667     conftest$ac_exeext conftest.$ac_ext
3668   ac_ext=c
3669 ac_cpp='$CPP $CPPFLAGS'
3670 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3671 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3672 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3673
3674
3675   fi
3676
3677   CNOWARNFLAGS="$CFLAGS"
3678   CFLAGS="$CFLAGS_KEEP"
3679
3680
3681
3682
3683
3684
3685   if test "$GCC" = "yes"; then
3686
3687   _svn_xxflags__save="$CFLAGS"
3688   ac_ext=c
3689 ac_cpp='$CPP $CPPFLAGS'
3690 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3691 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3692 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3693
3694   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -Werror=unknown-warning-option" >&5
3695 $as_echo_n "checking if $CC accepts -Werror=unknown-warning-option... " >&6; }
3696   CFLAGS="-Werror=unknown-warning-option $CFLAGS"
3697         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3698 /* end confdefs.h.  */
3699 int main(void){return 0;}
3700 _ACEOF
3701 if ac_fn_c_try_link "$LINENO"; then :
3702
3703     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3704 $as_echo "yes" >&6; }
3705
3706
3707 else
3708
3709     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3710 $as_echo "no" >&6; }
3711     CFLAGS="$_svn_xxflags__save"
3712
3713
3714 fi
3715 rm -f core conftest.err conftest.$ac_objext \
3716     conftest$ac_exeext conftest.$ac_ext
3717   ac_ext=c
3718 ac_cpp='$CPP $CPPFLAGS'
3719 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3720 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3721 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3722
3723
3724   fi
3725
3726
3727 # Look for a C++ compiler (before anything can set CXXFLAGS)
3728 CXXUSERFLAGS="$CXXFLAGS"
3729 ac_ext=cpp
3730 ac_cpp='$CXXCPP $CPPFLAGS'
3731 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3732 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3733 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3734 if test -z "$CXX"; then
3735   if test -n "$CCC"; then
3736     CXX=$CCC
3737   else
3738     if test -n "$ac_tool_prefix"; then
3739   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3740   do
3741     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3742 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3744 $as_echo_n "checking for $ac_word... " >&6; }
3745 if ${ac_cv_prog_CXX+:} false; then :
3746   $as_echo_n "(cached) " >&6
3747 else
3748   if test -n "$CXX"; then
3749   ac_cv_prog_CXX="$CXX" # Let the user override the test.
3750 else
3751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3752 for as_dir in $PATH
3753 do
3754   IFS=$as_save_IFS
3755   test -z "$as_dir" && as_dir=.
3756     for ac_exec_ext in '' $ac_executable_extensions; do
3757   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3758     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3759     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3760     break 2
3761   fi
3762 done
3763   done
3764 IFS=$as_save_IFS
3765
3766 fi
3767 fi
3768 CXX=$ac_cv_prog_CXX
3769 if test -n "$CXX"; then
3770   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3771 $as_echo "$CXX" >&6; }
3772 else
3773   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3774 $as_echo "no" >&6; }
3775 fi
3776
3777
3778     test -n "$CXX" && break
3779   done
3780 fi
3781 if test -z "$CXX"; then
3782   ac_ct_CXX=$CXX
3783   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3784 do
3785   # Extract the first word of "$ac_prog", so it can be a program name with args.
3786 set dummy $ac_prog; ac_word=$2
3787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3788 $as_echo_n "checking for $ac_word... " >&6; }
3789 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
3790   $as_echo_n "(cached) " >&6
3791 else
3792   if test -n "$ac_ct_CXX"; then
3793   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3794 else
3795 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3796 for as_dir in $PATH
3797 do
3798   IFS=$as_save_IFS
3799   test -z "$as_dir" && as_dir=.
3800     for ac_exec_ext in '' $ac_executable_extensions; do
3801   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3802     ac_cv_prog_ac_ct_CXX="$ac_prog"
3803     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3804     break 2
3805   fi
3806 done
3807   done
3808 IFS=$as_save_IFS
3809
3810 fi
3811 fi
3812 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3813 if test -n "$ac_ct_CXX"; then
3814   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3815 $as_echo "$ac_ct_CXX" >&6; }
3816 else
3817   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3818 $as_echo "no" >&6; }
3819 fi
3820
3821
3822   test -n "$ac_ct_CXX" && break
3823 done
3824
3825   if test "x$ac_ct_CXX" = x; then
3826     CXX="g++"
3827   else
3828     case $cross_compiling:$ac_tool_warned in
3829 yes:)
3830 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3831 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3832 ac_tool_warned=yes ;;
3833 esac
3834     CXX=$ac_ct_CXX
3835   fi
3836 fi
3837
3838   fi
3839 fi
3840 # Provide some information about the compiler.
3841 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3842 set X $ac_compile
3843 ac_compiler=$2
3844 for ac_option in --version -v -V -qversion; do
3845   { { ac_try="$ac_compiler $ac_option >&5"
3846 case "(($ac_try" in
3847   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3848   *) ac_try_echo=$ac_try;;
3849 esac
3850 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3851 $as_echo "$ac_try_echo"; } >&5
3852   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3853   ac_status=$?
3854   if test -s conftest.err; then
3855     sed '10a\
3856 ... rest of stderr output deleted ...
3857          10q' conftest.err >conftest.er1
3858     cat conftest.er1 >&5
3859   fi
3860   rm -f conftest.er1 conftest.err
3861   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3862   test $ac_status = 0; }
3863 done
3864
3865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3866 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3867 if ${ac_cv_cxx_compiler_gnu+:} false; then :
3868   $as_echo_n "(cached) " >&6
3869 else
3870   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3871 /* end confdefs.h.  */
3872
3873 int
3874 main ()
3875 {
3876 #ifndef __GNUC__
3877        choke me
3878 #endif
3879
3880   ;
3881   return 0;
3882 }
3883 _ACEOF
3884 if ac_fn_cxx_try_compile "$LINENO"; then :
3885   ac_compiler_gnu=yes
3886 else
3887   ac_compiler_gnu=no
3888 fi
3889 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3890 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3891
3892 fi
3893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3894 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3895 if test $ac_compiler_gnu = yes; then
3896   GXX=yes
3897 else
3898   GXX=
3899 fi
3900 ac_test_CXXFLAGS=${CXXFLAGS+set}
3901 ac_save_CXXFLAGS=$CXXFLAGS
3902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3903 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3904 if ${ac_cv_prog_cxx_g+:} false; then :
3905   $as_echo_n "(cached) " >&6
3906 else
3907   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3908    ac_cxx_werror_flag=yes
3909    ac_cv_prog_cxx_g=no
3910    CXXFLAGS="-g"
3911    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3912 /* end confdefs.h.  */
3913
3914 int
3915 main ()
3916 {
3917
3918   ;
3919   return 0;
3920 }
3921 _ACEOF
3922 if ac_fn_cxx_try_compile "$LINENO"; then :
3923   ac_cv_prog_cxx_g=yes
3924 else
3925   CXXFLAGS=""
3926       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3927 /* end confdefs.h.  */
3928
3929 int
3930 main ()
3931 {
3932
3933   ;
3934   return 0;
3935 }
3936 _ACEOF
3937 if ac_fn_cxx_try_compile "$LINENO"; then :
3938
3939 else
3940   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3941          CXXFLAGS="-g"
3942          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3943 /* end confdefs.h.  */
3944
3945 int
3946 main ()
3947 {
3948
3949   ;
3950   return 0;
3951 }
3952 _ACEOF
3953 if ac_fn_cxx_try_compile "$LINENO"; then :
3954   ac_cv_prog_cxx_g=yes
3955 fi
3956 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3957 fi
3958 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3959 fi
3960 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3961    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3962 fi
3963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3964 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3965 if test "$ac_test_CXXFLAGS" = set; then
3966   CXXFLAGS=$ac_save_CXXFLAGS
3967 elif test $ac_cv_prog_cxx_g = yes; then
3968   if test "$GXX" = yes; then
3969     CXXFLAGS="-g -O2"
3970   else
3971     CXXFLAGS="-g"
3972   fi
3973 else
3974   if test "$GXX" = yes; then
3975     CXXFLAGS="-O2"
3976   else
3977     CXXFLAGS=
3978   fi
3979 fi
3980 ac_ext=c
3981 ac_cpp='$CPP $CPPFLAGS'
3982 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3983 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3984 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3985
3986
3987
3988   CXXFLAGS_KEEP="$CXXFLAGS"
3989   CXXFLAGS=""
3990
3991   if test "$GXX" = "yes"; then
3992
3993   _svn_xxflags__save="$CXXFLAGS"
3994   ac_ext=cpp
3995 ac_cpp='$CXXCPP $CPPFLAGS'
3996 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3997 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3998 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3999
4000   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CXX accepts -std=c++98" >&5
4001 $as_echo_n "checking if $CXX accepts -std=c++98... " >&6; }
4002   CXXFLAGS="-std=c++98 $CXXFLAGS"
4003         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4004 /* end confdefs.h.  */
4005 int main(){}
4006 _ACEOF
4007 if ac_fn_cxx_try_link "$LINENO"; then :
4008
4009     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4010 $as_echo "yes" >&6; }
4011
4012
4013 else
4014
4015     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4016 $as_echo "no" >&6; }
4017     CXXFLAGS="$_svn_xxflags__save"
4018
4019
4020 fi
4021 rm -f core conftest.err conftest.$ac_objext \
4022     conftest$ac_exeext conftest.$ac_ext
4023   ac_ext=c
4024 ac_cpp='$CPP $CPPFLAGS'
4025 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4026 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4027 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4028
4029
4030   fi
4031
4032   CXXMODEFLAGS="$CXXFLAGS"
4033   CXXFLAGS=""
4034
4035   if test "$GXX" = "yes"; then
4036
4037   _svn_xxflags__save="$CXXFLAGS"
4038   ac_ext=cpp
4039 ac_cpp='$CXXCPP $CPPFLAGS'
4040 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4041 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4042 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4043
4044   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CXX accepts -w" >&5
4045 $as_echo_n "checking if $CXX accepts -w... " >&6; }
4046   CXXFLAGS="-w $CXXFLAGS"
4047         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4048 /* end confdefs.h.  */
4049 int main(){}
4050 _ACEOF
4051 if ac_fn_cxx_try_link "$LINENO"; then :
4052
4053     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4054 $as_echo "yes" >&6; }
4055
4056
4057 else
4058
4059     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4060 $as_echo "no" >&6; }
4061     CXXFLAGS="$_svn_xxflags__save"
4062
4063
4064 fi
4065 rm -f core conftest.err conftest.$ac_objext \
4066     conftest$ac_exeext conftest.$ac_ext
4067   ac_ext=c
4068 ac_cpp='$CPP $CPPFLAGS'
4069 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4070 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4071 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4072
4073
4074   fi
4075
4076   CXXNOWARNFLAGS="$CXXFLAGS"
4077   CXXFLAGS="$CXXFLAGS_KEEP"
4078
4079
4080
4081
4082
4083
4084   if test "$GXX" = "yes"; then
4085
4086   _svn_xxflags__save="$CXXFLAGS"
4087   ac_ext=cpp
4088 ac_cpp='$CXXCPP $CPPFLAGS'
4089 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4090 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4091 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4092
4093   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CXX accepts -Werror=unknown-warning-option" >&5
4094 $as_echo_n "checking if $CXX accepts -Werror=unknown-warning-option... " >&6; }
4095   CXXFLAGS="-Werror=unknown-warning-option $CXXFLAGS"
4096         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4097 /* end confdefs.h.  */
4098 int main(){}
4099 _ACEOF
4100 if ac_fn_cxx_try_link "$LINENO"; then :
4101
4102     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4103 $as_echo "yes" >&6; }
4104
4105
4106 else
4107
4108     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4109 $as_echo "no" >&6; }
4110     CXXFLAGS="$_svn_xxflags__save"
4111
4112
4113 fi
4114 rm -f core conftest.err conftest.$ac_objext \
4115     conftest$ac_exeext conftest.$ac_ext
4116   ac_ext=c
4117 ac_cpp='$CPP $CPPFLAGS'
4118 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4119 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4120 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4121
4122
4123   fi
4124
4125
4126 # Look for a C pre-processor
4127 ac_ext=c
4128 ac_cpp='$CPP $CPPFLAGS'
4129 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4130 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4131 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4133 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4134 # On Suns, sometimes $CPP names a directory.
4135 if test -n "$CPP" && test -d "$CPP"; then
4136   CPP=
4137 fi
4138 if test -z "$CPP"; then
4139   if ${ac_cv_prog_CPP+:} false; then :
4140   $as_echo_n "(cached) " >&6
4141 else
4142       # Double quotes because CPP needs to be expanded
4143     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4144     do
4145       ac_preproc_ok=false
4146 for ac_c_preproc_warn_flag in '' yes
4147 do
4148   # Use a header file that comes with gcc, so configuring glibc
4149   # with a fresh cross-compiler works.
4150   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4151   # <limits.h> exists even on freestanding compilers.
4152   # On the NeXT, cc -E runs the code through the compiler's parser,
4153   # not just through cpp. "Syntax error" is here to catch this case.
4154   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4155 /* end confdefs.h.  */
4156 #ifdef __STDC__
4157 # include <limits.h>
4158 #else
4159 # include <assert.h>
4160 #endif
4161                      Syntax error
4162 _ACEOF
4163 if ac_fn_c_try_cpp "$LINENO"; then :
4164
4165 else
4166   # Broken: fails on valid input.
4167 continue
4168 fi
4169 rm -f conftest.err conftest.i conftest.$ac_ext
4170
4171   # OK, works on sane cases.  Now check whether nonexistent headers
4172   # can be detected and how.
4173   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4174 /* end confdefs.h.  */
4175 #include <ac_nonexistent.h>
4176 _ACEOF
4177 if ac_fn_c_try_cpp "$LINENO"; then :
4178   # Broken: success on invalid input.
4179 continue
4180 else
4181   # Passes both tests.
4182 ac_preproc_ok=:
4183 break
4184 fi
4185 rm -f conftest.err conftest.i conftest.$ac_ext
4186
4187 done
4188 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4189 rm -f conftest.i conftest.err conftest.$ac_ext
4190 if $ac_preproc_ok; then :
4191   break
4192 fi
4193
4194     done
4195     ac_cv_prog_CPP=$CPP
4196
4197 fi
4198   CPP=$ac_cv_prog_CPP
4199 else
4200   ac_cv_prog_CPP=$CPP
4201 fi
4202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4203 $as_echo "$CPP" >&6; }
4204 ac_preproc_ok=false
4205 for ac_c_preproc_warn_flag in '' yes
4206 do
4207   # Use a header file that comes with gcc, so configuring glibc
4208   # with a fresh cross-compiler works.
4209   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4210   # <limits.h> exists even on freestanding compilers.
4211   # On the NeXT, cc -E runs the code through the compiler's parser,
4212   # not just through cpp. "Syntax error" is here to catch this case.
4213   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4214 /* end confdefs.h.  */
4215 #ifdef __STDC__
4216 # include <limits.h>
4217 #else
4218 # include <assert.h>
4219 #endif
4220                      Syntax error
4221 _ACEOF
4222 if ac_fn_c_try_cpp "$LINENO"; then :
4223
4224 else
4225   # Broken: fails on valid input.
4226 continue
4227 fi
4228 rm -f conftest.err conftest.i conftest.$ac_ext
4229
4230   # OK, works on sane cases.  Now check whether nonexistent headers
4231   # can be detected and how.
4232   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4233 /* end confdefs.h.  */
4234 #include <ac_nonexistent.h>
4235 _ACEOF
4236 if ac_fn_c_try_cpp "$LINENO"; then :
4237   # Broken: success on invalid input.
4238 continue
4239 else
4240   # Passes both tests.
4241 ac_preproc_ok=:
4242 break
4243 fi
4244 rm -f conftest.err conftest.i conftest.$ac_ext
4245
4246 done
4247 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4248 rm -f conftest.i conftest.err conftest.$ac_ext
4249 if $ac_preproc_ok; then :
4250
4251 else
4252   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4253 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4254 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4255 See \`config.log' for more details" "$LINENO" 5; }
4256 fi
4257
4258 ac_ext=c
4259 ac_cpp='$CPP $CPPFLAGS'
4260 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4261 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4262 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4263
4264
4265 # Look for a good sed
4266 # AC_PROG_SED was introduced in Autoconf 2.59b
4267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4268 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4269 if ${ac_cv_path_SED+:} false; then :
4270   $as_echo_n "(cached) " >&6
4271 else
4272             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4273      for ac_i in 1 2 3 4 5 6 7; do
4274        ac_script="$ac_script$as_nl$ac_script"
4275      done
4276      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4277      { ac_script=; unset ac_script;}
4278      if test -z "$SED"; then
4279   ac_path_SED_found=false
4280   # Loop through the user's path and test for each of PROGNAME-LIST
4281   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4282 for as_dir in $PATH
4283 do
4284   IFS=$as_save_IFS
4285   test -z "$as_dir" && as_dir=.
4286     for ac_prog in sed gsed; do
4287     for ac_exec_ext in '' $ac_executable_extensions; do
4288       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4289       as_fn_executable_p "$ac_path_SED" || continue
4290 # Check for GNU ac_path_SED and select it if it is found.
4291   # Check for GNU $ac_path_SED
4292 case `"$ac_path_SED" --version 2>&1` in
4293 *GNU*)
4294   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4295 *)
4296   ac_count=0
4297   $as_echo_n 0123456789 >"conftest.in"
4298   while :
4299   do
4300     cat "conftest.in" "conftest.in" >"conftest.tmp"
4301     mv "conftest.tmp" "conftest.in"
4302     cp "conftest.in" "conftest.nl"
4303     $as_echo '' >> "conftest.nl"
4304     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4305     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4306     as_fn_arith $ac_count + 1 && ac_count=$as_val
4307     if test $ac_count -gt ${ac_path_SED_max-0}; then
4308       # Best one so far, save it but keep looking for a better one
4309       ac_cv_path_SED="$ac_path_SED"
4310       ac_path_SED_max=$ac_count
4311     fi
4312     # 10*(2^10) chars as input seems more than enough
4313     test $ac_count -gt 10 && break
4314   done
4315   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4316 esac
4317
4318       $ac_path_SED_found && break 3
4319     done
4320   done
4321   done
4322 IFS=$as_save_IFS
4323   if test -z "$ac_cv_path_SED"; then
4324     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4325   fi
4326 else
4327   ac_cv_path_SED=$SED
4328 fi
4329
4330 fi
4331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4332 $as_echo "$ac_cv_path_SED" >&6; }
4333  SED="$ac_cv_path_SED"
4334   rm -f conftest.sed
4335
4336
4337 # Grab target_cpu, so we can use it in the Solaris pkginfo file
4338 # Make sure we can run config.sub.
4339 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4340   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4341
4342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4343 $as_echo_n "checking build system type... " >&6; }
4344 if ${ac_cv_build+:} false; then :
4345   $as_echo_n "(cached) " >&6
4346 else
4347   ac_build_alias=$build_alias
4348 test "x$ac_build_alias" = x &&
4349   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4350 test "x$ac_build_alias" = x &&
4351   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4352 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4353   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4354
4355 fi
4356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4357 $as_echo "$ac_cv_build" >&6; }
4358 case $ac_cv_build in
4359 *-*-*) ;;
4360 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4361 esac
4362 build=$ac_cv_build
4363 ac_save_IFS=$IFS; IFS='-'
4364 set x $ac_cv_build
4365 shift
4366 build_cpu=$1
4367 build_vendor=$2
4368 shift; shift
4369 # Remember, the first character of IFS is used to create $*,
4370 # except with old shells:
4371 build_os=$*
4372 IFS=$ac_save_IFS
4373 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4374
4375
4376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4377 $as_echo_n "checking host system type... " >&6; }
4378 if ${ac_cv_host+:} false; then :
4379   $as_echo_n "(cached) " >&6
4380 else
4381   if test "x$host_alias" = x; then
4382   ac_cv_host=$ac_cv_build
4383 else
4384   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4385     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4386 fi
4387
4388 fi
4389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4390 $as_echo "$ac_cv_host" >&6; }
4391 case $ac_cv_host in
4392 *-*-*) ;;
4393 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4394 esac
4395 host=$ac_cv_host
4396 ac_save_IFS=$IFS; IFS='-'
4397 set x $ac_cv_host
4398 shift
4399 host_cpu=$1
4400 host_vendor=$2
4401 shift; shift
4402 # Remember, the first character of IFS is used to create $*,
4403 # except with old shells:
4404 host_os=$*
4405 IFS=$ac_save_IFS
4406 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4407
4408
4409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
4410 $as_echo_n "checking target system type... " >&6; }
4411 if ${ac_cv_target+:} false; then :
4412   $as_echo_n "(cached) " >&6
4413 else
4414   if test "x$target_alias" = x; then
4415   ac_cv_target=$ac_cv_host
4416 else
4417   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
4418     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
4419 fi
4420
4421 fi
4422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
4423 $as_echo "$ac_cv_target" >&6; }
4424 case $ac_cv_target in
4425 *-*-*) ;;
4426 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
4427 esac
4428 target=$ac_cv_target
4429 ac_save_IFS=$IFS; IFS='-'
4430 set x $ac_cv_target
4431 shift
4432 target_cpu=$1
4433 target_vendor=$2
4434 shift; shift
4435 # Remember, the first character of IFS is used to create $*,
4436 # except with old shells:
4437 target_os=$*
4438 IFS=$ac_save_IFS
4439 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
4440
4441
4442 # The aliases save the names the user supplied, while $host etc.
4443 # will get canonicalized.
4444 test -n "$target_alias" &&
4445   test "$program_prefix$program_suffix$program_transform_name" = \
4446     NONENONEs,x,x, &&
4447   program_prefix=${target_alias}-
4448
4449 # Look for an extended grep
4450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4451 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4452 if ${ac_cv_path_GREP+:} false; then :
4453   $as_echo_n "(cached) " >&6
4454 else
4455   if test -z "$GREP"; then
4456   ac_path_GREP_found=false
4457   # Loop through the user's path and test for each of PROGNAME-LIST
4458   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4459 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4460 do
4461   IFS=$as_save_IFS
4462   test -z "$as_dir" && as_dir=.
4463     for ac_prog in grep ggrep; do
4464     for ac_exec_ext in '' $ac_executable_extensions; do
4465       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4466       as_fn_executable_p "$ac_path_GREP" || continue
4467 # Check for GNU ac_path_GREP and select it if it is found.
4468   # Check for GNU $ac_path_GREP
4469 case `"$ac_path_GREP" --version 2>&1` in
4470 *GNU*)
4471   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4472 *)
4473   ac_count=0
4474   $as_echo_n 0123456789 >"conftest.in"
4475   while :
4476   do
4477     cat "conftest.in" "conftest.in" >"conftest.tmp"
4478     mv "conftest.tmp" "conftest.in"
4479     cp "conftest.in" "conftest.nl"
4480     $as_echo 'GREP' >> "conftest.nl"
4481     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4482     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4483     as_fn_arith $ac_count + 1 && ac_count=$as_val
4484     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4485       # Best one so far, save it but keep looking for a better one
4486       ac_cv_path_GREP="$ac_path_GREP"
4487       ac_path_GREP_max=$ac_count
4488     fi
4489     # 10*(2^10) chars as input seems more than enough
4490     test $ac_count -gt 10 && break
4491   done
4492   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4493 esac
4494
4495       $ac_path_GREP_found && break 3
4496     done
4497   done
4498   done
4499 IFS=$as_save_IFS
4500   if test -z "$ac_cv_path_GREP"; then
4501     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4502   fi
4503 else
4504   ac_cv_path_GREP=$GREP
4505 fi
4506
4507 fi
4508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4509 $as_echo "$ac_cv_path_GREP" >&6; }
4510  GREP="$ac_cv_path_GREP"
4511
4512
4513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4514 $as_echo_n "checking for egrep... " >&6; }
4515 if ${ac_cv_path_EGREP+:} false; then :
4516   $as_echo_n "(cached) " >&6
4517 else
4518   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4519    then ac_cv_path_EGREP="$GREP -E"
4520    else
4521      if test -z "$EGREP"; then
4522   ac_path_EGREP_found=false
4523   # Loop through the user's path and test for each of PROGNAME-LIST
4524   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4525 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4526 do
4527   IFS=$as_save_IFS
4528   test -z "$as_dir" && as_dir=.
4529     for ac_prog in egrep; do
4530     for ac_exec_ext in '' $ac_executable_extensions; do
4531       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4532       as_fn_executable_p "$ac_path_EGREP" || continue
4533 # Check for GNU ac_path_EGREP and select it if it is found.
4534   # Check for GNU $ac_path_EGREP
4535 case `"$ac_path_EGREP" --version 2>&1` in
4536 *GNU*)
4537   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4538 *)
4539   ac_count=0
4540   $as_echo_n 0123456789 >"conftest.in"
4541   while :
4542   do
4543     cat "conftest.in" "conftest.in" >"conftest.tmp"
4544     mv "conftest.tmp" "conftest.in"
4545     cp "conftest.in" "conftest.nl"
4546     $as_echo 'EGREP' >> "conftest.nl"
4547     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4548     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4549     as_fn_arith $ac_count + 1 && ac_count=$as_val
4550     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4551       # Best one so far, save it but keep looking for a better one
4552       ac_cv_path_EGREP="$ac_path_EGREP"
4553       ac_path_EGREP_max=$ac_count
4554     fi
4555     # 10*(2^10) chars as input seems more than enough
4556     test $ac_count -gt 10 && break
4557   done
4558   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4559 esac
4560
4561       $ac_path_EGREP_found && break 3
4562     done
4563   done
4564   done
4565 IFS=$as_save_IFS
4566   if test -z "$ac_cv_path_EGREP"; then
4567     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4568   fi
4569 else
4570   ac_cv_path_EGREP=$EGREP
4571 fi
4572
4573    fi
4574 fi
4575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4576 $as_echo "$ac_cv_path_EGREP" >&6; }
4577  EGREP="$ac_cv_path_EGREP"
4578
4579
4580
4581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4582 $as_echo_n "checking whether ln -s works... " >&6; }
4583 LN_S=$as_ln_s
4584 if test "$LN_S" = "ln -s"; then
4585   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4586 $as_echo "yes" >&6; }
4587 else
4588   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4589 $as_echo "no, using $LN_S" >&6; }
4590 fi
4591
4592
4593 # Find a good install program.  We prefer a C program (faster),
4594 # so one script is as good as another.  But avoid the broken or
4595 # incompatible versions:
4596 # SysV /etc/install, /usr/sbin/install
4597 # SunOS /usr/etc/install
4598 # IRIX /sbin/install
4599 # AIX /bin/install
4600 # AmigaOS /C/install, which installs bootblocks on floppy discs
4601 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4602 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4603 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4604 # OS/2's system install, which has a completely different semantic
4605 # ./install, which can be erroneously created by make from ./install.sh.
4606 # Reject install programs that cannot install multiple files.
4607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4608 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4609 if test -z "$INSTALL"; then
4610 if ${ac_cv_path_install+:} false; then :
4611   $as_echo_n "(cached) " >&6
4612 else
4613   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4614 for as_dir in $PATH
4615 do
4616   IFS=$as_save_IFS
4617   test -z "$as_dir" && as_dir=.
4618     # Account for people who put trailing slashes in PATH elements.
4619 case $as_dir/ in #((
4620   ./ | .// | /[cC]/* | \
4621   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4622   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4623   /usr/ucb/* ) ;;
4624   *)
4625     # OSF1 and SCO ODT 3.0 have their own names for install.
4626     # Don't use installbsd from OSF since it installs stuff as root
4627     # by default.
4628     for ac_prog in ginstall scoinst install; do
4629       for ac_exec_ext in '' $ac_executable_extensions; do
4630         if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4631           if test $ac_prog = install &&
4632             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4633             # AIX install.  It has an incompatible calling convention.
4634             :
4635           elif test $ac_prog = install &&
4636             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4637             # program-specific install script used by HP pwplus--don't use.
4638             :
4639           else
4640             rm -rf conftest.one conftest.two conftest.dir
4641             echo one > conftest.one
4642             echo two > conftest.two
4643             mkdir conftest.dir
4644             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4645               test -s conftest.one && test -s conftest.two &&
4646               test -s conftest.dir/conftest.one &&
4647               test -s conftest.dir/conftest.two
4648             then
4649               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4650               break 3
4651             fi
4652           fi
4653         fi
4654       done
4655     done
4656     ;;
4657 esac
4658
4659   done
4660 IFS=$as_save_IFS
4661
4662 rm -rf conftest.one conftest.two conftest.dir
4663
4664 fi
4665   if test "${ac_cv_path_install+set}" = set; then
4666     INSTALL=$ac_cv_path_install
4667   else
4668     # As a last resort, use the slow shell script.  Don't cache a
4669     # value for INSTALL within a source directory, because that will
4670     # break other packages using the cache if that directory is
4671     # removed, or if the value is a relative name.
4672     INSTALL=$ac_install_sh
4673   fi
4674 fi
4675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4676 $as_echo "$INSTALL" >&6; }
4677
4678 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4679 # It thinks the first close brace ends the variable substitution.
4680 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4681
4682 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4683
4684 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4685
4686 # If $INSTALL is relative path to our fallback install-sh, then convert
4687 # to an absolute path, as in some cases (e.g. Solaris VPATH build), libtool
4688 # may try to use it from a changed working directory.
4689 if test "$INSTALL" = "build/install-sh -c"; then
4690   INSTALL="$abs_srcdir/$INSTALL"
4691 fi
4692
4693 if test -z "$MKDIR"; then
4694   MKDIR="$INSTALL -d"
4695 fi
4696
4697
4698 # ==== Libraries, for which we may have source to build ======================
4699
4700
4701 APR_VER_REGEXES="1\.[3-9]\. 2\."
4702
4703
4704   APR_WANTED_REGEXES="$APR_VER_REGEXES"
4705
4706   { $as_echo "$as_me:${as_lineno-$LINENO}: Apache Portable Runtime (APR) library configuration" >&5
4707 $as_echo "$as_me: Apache Portable Runtime (APR) library configuration" >&6;}
4708
4709
4710   apr_found="no"
4711
4712   if test "$ac_cv_emxos2" = "yes"; then
4713     # Scripts don't pass test -x on OS/2
4714     TEST_X="test -f"
4715   else
4716     TEST_X="test -x"
4717   fi
4718
4719   acceptable_majors="2 1 0"
4720
4721   apr_temp_acceptable_apr_config=""
4722   for apr_temp_major in $acceptable_majors
4723   do
4724     case $apr_temp_major in
4725       0)
4726       apr_temp_acceptable_apr_config="$apr_temp_acceptable_apr_config apr-config"
4727       ;;
4728       *)
4729       apr_temp_acceptable_apr_config="$apr_temp_acceptable_apr_config apr-$apr_temp_major-config"
4730       ;;
4731     esac
4732   done
4733
4734   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for APR" >&5
4735 $as_echo_n "checking for APR... " >&6; }
4736
4737 # Check whether --with-apr was given.
4738 if test "${with_apr+set}" = set; then :
4739   withval=$with_apr;
4740     if test "$withval" = "no" || test "$withval" = "yes"; then
4741       as_fn_error $? "--with-apr requires a directory or file to be provided" "$LINENO" 5
4742     fi
4743
4744     for apr_temp_apr_config_file in $apr_temp_acceptable_apr_config
4745     do
4746       for lookdir in "$withval/bin" "$withval"
4747       do
4748         if $TEST_X "$lookdir/$apr_temp_apr_config_file"; then
4749           apr_found="yes"
4750           apr_config="$lookdir/$apr_temp_apr_config_file"
4751           break 2
4752         fi
4753       done
4754     done
4755
4756     if test "$apr_found" != "yes" && $TEST_X "$withval" && $withval --help > /dev/null 2>&1 ; then
4757       apr_found="yes"
4758       apr_config="$withval"
4759     fi
4760
4761             if test "$apr_found" != "yes"; then
4762       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
4763     fi
4764
4765 else
4766
4767         if test -d """"; then
4768       apr_temp_abs_srcdir="`cd "" && pwd`"
4769       apr_found="reconfig"
4770       apr_bundled_major="`sed -n '/#define.*APR_MAJOR_VERSION/s/^[^0-9]*\([0-9]*\).*$/\1/p' \"""/include/apr_version.h\"`"
4771       case $apr_bundled_major in
4772         "")
4773           as_fn_error $? "failed to find major version of bundled APR" "$LINENO" 5
4774         ;;
4775         0)
4776           apr_temp_apr_config_file="apr-config"
4777         ;;
4778         *)
4779           apr_temp_apr_config_file="apr-$apr_bundled_major-config"
4780         ;;
4781       esac
4782       if test -n """"; then
4783         apr_config="""/$apr_temp_apr_config_file"
4784       else
4785         apr_config="""/$apr_temp_apr_config_file"
4786       fi
4787     fi
4788     if test "$apr_found" = "no" && test -n "1" && test "1" = "1"; then
4789       for apr_temp_apr_config_file in $apr_temp_acceptable_apr_config
4790       do
4791         if $apr_temp_apr_config_file --help > /dev/null 2>&1 ; then
4792           apr_found="yes"
4793           apr_config="$apr_temp_apr_config_file"
4794           break
4795         else
4796                     for lookdir in /usr /usr/local /opt/apr /usr/local/apache2 ; do
4797             if $TEST_X "$lookdir/bin/$apr_temp_apr_config_file"; then
4798               apr_found="yes"
4799               apr_config="$lookdir/bin/$apr_temp_apr_config_file"
4800               break 2
4801             fi
4802           done
4803         fi
4804       done
4805     fi
4806
4807 fi
4808
4809
4810   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_found" >&5
4811 $as_echo "$apr_found" >&6; }
4812
4813
4814   if test $apr_found = "no"; then
4815     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: APR not found" >&5
4816 $as_echo "$as_me: WARNING: APR not found" >&2;}
4817
4818   echo "The Apache Portable Runtime (APR) library cannot be found."
4819   echo "Please install APR on this system and configure Subversion"
4820   echo "with the appropriate --with-apr option."
4821   echo ""
4822   echo "You probably need to do something similar with the Apache"
4823   echo "Portable Runtime Utility (APRUTIL) library and then configure"
4824   echo "Subversion with both the --with-apr and --with-apr-util options."
4825   echo ""
4826   as_fn_error $? "no suitable APR found" "$LINENO" 5
4827
4828   fi
4829
4830   if test $apr_found = "reconfig"; then
4831     as_fn_error $? "Unexpected APR reconfig" "$LINENO" 5
4832   fi
4833
4834
4835   { $as_echo "$as_me:${as_lineno-$LINENO}: checking APR version" >&5
4836 $as_echo_n "checking APR version... " >&6; }
4837   apr_version="`$apr_config --version`"
4838   if test $? -ne 0; then
4839     as_fn_error $? "apr-config --version failed" "$LINENO" 5
4840   fi
4841   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_version" >&5
4842 $as_echo "$apr_version" >&6; }
4843
4844   APR_WANTED_REGEX_MATCH=0
4845   for apr_wanted_regex in $APR_WANTED_REGEXES; do
4846     if test `expr $apr_version : $apr_wanted_regex` -ne 0; then
4847       APR_WANTED_REGEX_MATCH=1
4848       break
4849     fi
4850   done
4851
4852   if test $APR_WANTED_REGEX_MATCH -eq 0; then
4853     echo "wanted regexes are $APR_WANTED_REGEXES"
4854     as_fn_error $? "invalid apr version found" "$LINENO" 5
4855   fi
4856
4857
4858   CPPFLAGS="$CPPFLAGS `$apr_config --cppflags`"
4859   if test $? -ne 0; then
4860     as_fn_error $? "apr-config --cppflags failed" "$LINENO" 5
4861   fi
4862
4863   CFLAGS="$CFLAGS `$apr_config --cflags`"
4864   if test $? -ne 0; then
4865     as_fn_error $? "apr-config --cflags failed" "$LINENO" 5
4866   fi
4867
4868   apr_ldflags="`$apr_config --ldflags`"
4869   if test $? -ne 0; then
4870     as_fn_error $? "apr-config --ldflags failed" "$LINENO" 5
4871   fi
4872   LDFLAGS="$LDFLAGS `
4873   input_flags="$apr_ldflags"
4874   output_flags=""
4875   filtered_dirs="/lib /lib64 /usr/lib /usr/lib64"
4876   for flag in $input_flags; do
4877     filter="no"
4878     for dir in $filtered_dirs; do
4879       if test "$flag" = "-L$dir" || test "$flag" = "-L$dir/"; then
4880         filter="yes"
4881         break
4882       fi
4883     done
4884     if test "$filter" = "no"; then
4885       output_flags="$output_flags $flag"
4886     fi
4887   done
4888   if test -n "$output_flags"; then
4889     printf "%s" "${output_flags# }"
4890   fi
4891 `"
4892
4893   SVN_APR_INCLUDES="`$apr_config --includes`"
4894   if test $? -ne 0; then
4895     as_fn_error $? "apr-config --includes failed" "$LINENO" 5
4896   fi
4897
4898   if test "$enable_all_static" = "yes"; then
4899     SVN_APR_LIBS="`$apr_config --link-ld --libs`"
4900     if test $? -ne 0; then
4901       as_fn_error $? "apr-config --link-ld --libs failed" "$LINENO" 5
4902     fi
4903   else
4904     SVN_APR_LIBS="`$apr_config --link-ld`"
4905     if test $? -ne 0; then
4906       as_fn_error $? "apr-config --link-ld failed" "$LINENO" 5
4907     fi
4908   fi
4909   SVN_APR_LIBS="`
4910   input_flags="$SVN_APR_LIBS"
4911   output_flags=""
4912   filtered_dirs="/lib /lib64 /usr/lib /usr/lib64"
4913   for flag in $input_flags; do
4914     filter="no"
4915     for dir in $filtered_dirs; do
4916       if test "$flag" = "-L$dir" || test "$flag" = "-L$dir/"; then
4917         filter="yes"
4918         break
4919       fi
4920     done
4921     if test "$filter" = "no"; then
4922       output_flags="$output_flags $flag"
4923     fi
4924   done
4925   if test -n "$output_flags"; then
4926     printf "%s" "${output_flags# }"
4927   fi
4928 `"
4929
4930   SVN_APR_SHLIB_PATH_VAR="`$apr_config --shlib-path-var`"
4931   if test $? -ne 0; then
4932     as_fn_error $? "apr-config --shlib-path-var failed" "$LINENO" 5
4933   fi
4934
4935   SVN_APR_CONFIG="$apr_config"
4936
4937
4938
4939
4940
4941
4942 if test `expr $apr_version : 2` -ne 0; then
4943       svn_lib_ver=2
4944     apu_config=$apr_config
4945
4946   SVN_APRUTIL_CONFIG="$apu_config"
4947
4948
4949   SVN_APR_MAJOR_VERSION=2
4950 else
4951   svn_lib_ver=0
4952   APU_VER_REGEXES="1\.[3-9]\."
4953
4954   APRUTIL_WANTED_REGEXES="$APU_VER_REGEXES"
4955
4956   { $as_echo "$as_me:${as_lineno-$LINENO}: Apache Portable Runtime Utility (APRUTIL) library configuration" >&5
4957 $as_echo "$as_me: Apache Portable Runtime Utility (APRUTIL) library configuration" >&6;}
4958
4959
4960   apu_found="no"
4961
4962   if test "$ac_cv_emxos2" = "yes"; then
4963     # Scripts don't pass test -x on OS/2
4964     TEST_X="test -f"
4965   else
4966     TEST_X="test -x"
4967   fi
4968
4969   acceptable_majors="1 0"
4970
4971   apu_temp_acceptable_apu_config=""
4972   for apu_temp_major in $acceptable_majors
4973   do
4974     case $apu_temp_major in
4975       0)
4976       apu_temp_acceptable_apu_config="$apu_temp_acceptable_apu_config apu-config"
4977       ;;
4978       *)
4979       apu_temp_acceptable_apu_config="$apu_temp_acceptable_apu_config apu-$apu_temp_major-config"
4980       ;;
4981     esac
4982   done
4983
4984   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for APR-util" >&5
4985 $as_echo_n "checking for APR-util... " >&6; }
4986
4987 # Check whether --with-apr-util was given.
4988 if test "${with_apr_util+set}" = set; then :
4989   withval=$with_apr_util;
4990     if test "$withval" = "no" || test "$withval" = "yes"; then
4991       as_fn_error $? "--with-apr-util requires a directory or file to be provided" "$LINENO" 5
4992     fi
4993
4994     for apu_temp_apu_config_file in $apu_temp_acceptable_apu_config
4995     do
4996       for lookdir in "$withval/bin" "$withval"
4997       do
4998         if $TEST_X "$lookdir/$apu_temp_apu_config_file"; then
4999           apu_found="yes"
5000           apu_config="$lookdir/$apu_temp_apu_config_file"
5001           break 2
5002         fi
5003       done
5004     done
5005
5006     if test "$apu_found" != "yes" && $TEST_X "$withval" && $withval --help > /dev/null 2>&1 ; then
5007       apu_found="yes"
5008       apu_config="$withval"
5009     fi
5010
5011             if test "$apu_found" != "yes"; then
5012       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
5013     fi
5014
5015 else
5016
5017         if test -d """"; then
5018       apu_temp_abs_srcdir="`cd "" && pwd`"
5019       apu_found="reconfig"
5020       apu_bundled_major="`sed -n '/#define.*APU_MAJOR_VERSION/s/^[^0-9]*\([0-9]*\).*$/\1/p' \"""/include/apu_version.h\"`"
5021       case $apu_bundled_major in
5022         "")
5023           as_fn_error $? "failed to find major version of bundled APU" "$LINENO" 5
5024         ;;
5025         0)
5026           apu_temp_apu_config_file="apu-config"
5027         ;;
5028         *)
5029           apu_temp_apu_config_file="apu-$apu_bundled_major-config"
5030         ;;
5031       esac
5032       if test -n """"; then
5033         apu_config="""/$apu_temp_apu_config_file"
5034       else
5035         apu_config="""/$apu_temp_apu_config_file"
5036       fi
5037     fi
5038     if test "$apu_found" = "no" && test -n "1" && test "1" = "1"; then
5039       for apu_temp_apu_config_file in $apu_temp_acceptable_apu_config
5040       do
5041         if $apu_temp_apu_config_file --help > /dev/null 2>&1 ; then
5042           apu_found="yes"
5043           apu_config="$apu_temp_apu_config_file"
5044           break
5045         else
5046                     for lookdir in /usr /usr/local /opt/apr /usr/local/apache2 ; do
5047             if $TEST_X "$lookdir/bin/$apu_temp_apu_config_file"; then
5048               apu_found="yes"
5049               apu_config="$lookdir/bin/$apu_temp_apu_config_file"
5050               break 2
5051             fi
5052           done
5053         fi
5054       done
5055     fi
5056
5057 fi
5058
5059
5060   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apu_found" >&5
5061 $as_echo "$apu_found" >&6; }
5062
5063
5064   if test $apu_found = "no"; then
5065     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: APRUTIL not found" >&5
5066 $as_echo "$as_me: WARNING: APRUTIL not found" >&2;}
5067
5068   echo "The Apache Portable Runtime Utility (APRUTIL) library cannot be found."
5069   echo "Install APRUTIL on this system and configure Subversion with the"
5070   echo " appropriate --with-apr-util option."
5071   echo ""
5072   as_fn_error $? "no suitable APRUTIL found" "$LINENO" 5
5073
5074   fi
5075
5076   if test $apu_found = "reconfig"; then
5077     as_fn_error $? "Unexpected APRUTIL reconfig" "$LINENO" 5
5078   fi
5079
5080
5081   { $as_echo "$as_me:${as_lineno-$LINENO}: checking APRUTIL version" >&5
5082 $as_echo_n "checking APRUTIL version... " >&6; }
5083   apu_version="`$apu_config --version`"
5084   if test $? -ne 0; then
5085     # This is a hack as suggested by Ben Collins-Sussman.  It can be
5086     # removed after apache 2.0.44 has been released.  (The apu-config
5087     # shipped in 2.0.43 contains a correct version number, but
5088     # stupidly doesn't understand the --version switch.)
5089     apu_version=`grep "APRUTIL_DOTTED_VERSION=" $(which $apu_config) | tr -d "APRUTIL_DOTTED_VERSION="| tr -d '"'`
5090     #AC_MSG_ERROR([
5091     #    apu-config --version failed.
5092     #    Your apu-config doesn't support the --version switch, please upgrade
5093     #    to APR-UTIL more recent than 2002-Nov-05.])
5094   fi
5095   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apu_version" >&5
5096 $as_echo "$apu_version" >&6; }
5097
5098   APU_WANTED_REGEX_MATCH=0
5099   for apu_wanted_regex in $APRUTIL_WANTED_REGEXES; do
5100     if test `expr $apu_version : $apu_wanted_regex` -ne 0; then
5101       APU_WANTED_REGEX_MATCH=1
5102       break
5103     fi
5104   done
5105
5106   if test $APU_WANTED_REGEX_MATCH -eq 0; then
5107     echo "wanted regexes are $APRUTIL_WANTED_REGEXES"
5108     as_fn_error $? "invalid APRUTIL version found" "$LINENO" 5
5109   fi
5110
5111
5112   apu_ldflags="`$apu_config --ldflags`"
5113   if test $? -ne 0; then
5114     as_fn_error $? "apu-config --ldflags failed" "$LINENO" 5
5115   fi
5116   LDFLAGS="$LDFLAGS `
5117   input_flags="$apu_ldflags"
5118   output_flags=""
5119   filtered_dirs="/lib /lib64 /usr/lib /usr/lib64"
5120   for flag in $input_flags; do
5121     filter="no"
5122     for dir in $filtered_dirs; do
5123       if test "$flag" = "-L$dir" || test "$flag" = "-L$dir/"; then
5124         filter="yes"
5125         break
5126       fi
5127     done
5128     if test "$filter" = "no"; then
5129       output_flags="$output_flags $flag"
5130     fi
5131   done
5132   if test -n "$output_flags"; then
5133     printf "%s" "${output_flags# }"
5134   fi
5135 `"
5136
5137   SVN_APRUTIL_INCLUDES="`$apu_config --includes`"
5138   if test $? -ne 0; then
5139     as_fn_error $? "apu-config --includes failed" "$LINENO" 5
5140   fi
5141
5142   if test "$enable_all_static" = "yes"; then
5143     SVN_APRUTIL_LIBS="`$apu_config --link-ld --libs`"
5144     if test $? -ne 0; then
5145       as_fn_error $? "apu-config --link-ld --libs failed" "$LINENO" 5
5146     fi
5147   else
5148     SVN_APRUTIL_LIBS="`$apu_config --link-ld`"
5149     if test $? -ne 0; then
5150       as_fn_error $? "apu-config --link-ld failed" "$LINENO" 5
5151     fi
5152   fi
5153   SVN_APRUTIL_LIBS="`
5154   input_flags="$SVN_APRUTIL_LIBS"
5155   output_flags=""
5156   filtered_dirs="/lib /lib64 /usr/lib /usr/lib64"
5157   for flag in $input_flags; do
5158     filter="no"
5159     for dir in $filtered_dirs; do
5160       if test "$flag" = "-L$dir" || test "$flag" = "-L$dir/"; then
5161         filter="yes"
5162         break
5163       fi
5164     done
5165     if test "$filter" = "no"; then
5166       output_flags="$output_flags $flag"
5167     fi
5168   done
5169   if test -n "$output_flags"; then
5170     printf "%s" "${output_flags# }"
5171   fi
5172 `"
5173
5174
5175   SVN_APRUTIL_CONFIG="$apu_config"
5176
5177
5178
5179     SVN_HAVE_OLD_EXPAT="`$apu_config --old-expat`"
5180   if test "$SVN_HAVE_OLD_EXPAT" = "yes"; then
5181
5182 $as_echo "#define SVN_HAVE_OLD_EXPAT 1" >>confdefs.h
5183
5184   fi
5185
5186   SVN_APR_MAJOR_VERSION=1
5187 fi
5188
5189 SVN_LT_SOVERSION="-version-info $svn_lib_ver"
5190
5191
5192 cat >>confdefs.h <<_ACEOF
5193 #define SVN_SOVERSION $svn_lib_ver
5194 _ACEOF
5195
5196
5197 # Extract the first word of "pkg-config", so it can be a program name with args.
5198 set dummy pkg-config; ac_word=$2
5199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5200 $as_echo_n "checking for $ac_word... " >&6; }
5201 if ${ac_cv_path_PKG_CONFIG+:} false; then :
5202   $as_echo_n "(cached) " >&6
5203 else
5204   case $PKG_CONFIG in
5205   [\\/]* | ?:[\\/]*)
5206   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5207   ;;
5208   *)
5209   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5210 for as_dir in $PATH
5211 do
5212   IFS=$as_save_IFS
5213   test -z "$as_dir" && as_dir=.
5214     for ac_exec_ext in '' $ac_executable_extensions; do
5215   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5216     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5217     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5218     break 2
5219   fi
5220 done
5221   done
5222 IFS=$as_save_IFS
5223
5224   ;;
5225 esac
5226 fi
5227 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5228 if test -n "$PKG_CONFIG"; then
5229   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5230 $as_echo "$PKG_CONFIG" >&6; }
5231 else
5232   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5233 $as_echo "no" >&6; }
5234 fi
5235
5236
5237
5238
5239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5240 $as_echo_n "checking for ANSI C header files... " >&6; }
5241 if ${ac_cv_header_stdc+:} false; then :
5242   $as_echo_n "(cached) " >&6
5243 else
5244   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5245 /* end confdefs.h.  */
5246 #include <stdlib.h>
5247 #include <stdarg.h>
5248 #include <string.h>
5249 #include <float.h>
5250
5251 int
5252 main ()
5253 {
5254
5255   ;
5256   return 0;
5257 }
5258 _ACEOF
5259 if ac_fn_c_try_compile "$LINENO"; then :
5260   ac_cv_header_stdc=yes
5261 else
5262   ac_cv_header_stdc=no
5263 fi
5264 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5265
5266 if test $ac_cv_header_stdc = yes; then
5267   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5268   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5269 /* end confdefs.h.  */
5270 #include <string.h>
5271
5272 _ACEOF
5273 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5274   $EGREP "memchr" >/dev/null 2>&1; then :
5275
5276 else
5277   ac_cv_header_stdc=no
5278 fi
5279 rm -f conftest*
5280
5281 fi
5282
5283 if test $ac_cv_header_stdc = yes; then
5284   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5285   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5286 /* end confdefs.h.  */
5287 #include <stdlib.h>
5288
5289 _ACEOF
5290 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5291   $EGREP "free" >/dev/null 2>&1; then :
5292
5293 else
5294   ac_cv_header_stdc=no
5295 fi
5296 rm -f conftest*
5297
5298 fi
5299
5300 if test $ac_cv_header_stdc = yes; then
5301   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5302   if test "$cross_compiling" = yes; then :
5303   :
5304 else
5305   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5306 /* end confdefs.h.  */
5307 #include <ctype.h>
5308 #include <stdlib.h>
5309 #if ((' ' & 0x0FF) == 0x020)
5310 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5311 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5312 #else
5313 # define ISLOWER(c) \
5314                    (('a' <= (c) && (c) <= 'i') \
5315                      || ('j' <= (c) && (c) <= 'r') \
5316                      || ('s' <= (c) && (c) <= 'z'))
5317 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5318 #endif
5319
5320 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5321 int
5322 main ()
5323 {
5324   int i;
5325   for (i = 0; i < 256; i++)
5326     if (XOR (islower (i), ISLOWER (i))
5327         || toupper (i) != TOUPPER (i))
5328       return 2;
5329   return 0;
5330 }
5331 _ACEOF
5332 if ac_fn_c_try_run "$LINENO"; then :
5333
5334 else
5335   ac_cv_header_stdc=no
5336 fi
5337 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5338   conftest.$ac_objext conftest.beam conftest.$ac_ext
5339 fi
5340
5341 fi
5342 fi
5343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5344 $as_echo "$ac_cv_header_stdc" >&6; }
5345 if test $ac_cv_header_stdc = yes; then
5346
5347 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5348
5349 fi
5350
5351 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5352 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5353                   inttypes.h stdint.h unistd.h
5354 do :
5355   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5356 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5357 "
5358 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5359   cat >>confdefs.h <<_ACEOF
5360 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5361 _ACEOF
5362
5363 fi
5364
5365 done
5366
5367
5368
5369   serf_found=no
5370   serf_required=no
5371   serf_skip=no
5372
5373   serf_check_major="1"
5374   serf_check_minor="3"
5375   serf_check_patch="4"
5376   serf_check_version="1.3.4"
5377
5378
5379 # Check whether --with-serf was given.
5380 if test "${with_serf+set}" = set; then :
5381   withval=$with_serf;
5382     if test "$withval" = "yes" ; then
5383       serf_required=yes
5384     elif test "$withval" = "no" ; then
5385       serf_skip=yes
5386     else
5387       serf_required=yes
5388       serf_prefix="$withval"
5389     fi
5390
5391 fi
5392
5393
5394   if test "$serf_skip" = "no" ; then
5395
5396   { $as_echo "$as_me:${as_lineno-$LINENO}: serf library configuration via pkg-config" >&5
5397 $as_echo "$as_me: serf library configuration via pkg-config" >&6;}
5398   if test -n "$PKG_CONFIG"; then
5399     for serf_major in serf-2 serf-1; do
5400       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $serf_major library" >&5
5401 $as_echo_n "checking for $serf_major library... " >&6; }
5402       if test -n "$serf_prefix" ; then
5403                                                         if test -e "$serf_prefix/$serf_major.pc" ; then
5404           serf_pc_arg="$serf_prefix/$serf_major.pc"
5405         elif test -e "$serf_prefix/lib/pkgconfig/$serf_major.pc" ; then
5406           serf_pc_arg="$serf_prefix/lib/pkgconfig/$serf_major.pc"
5407         else
5408           { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5409 $as_echo "no" >&6; }
5410           continue
5411         fi
5412       else
5413         serf_pc_arg="$serf_major"
5414       fi
5415       if $PKG_CONFIG $serf_pc_arg --exists; then
5416         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5417 $as_echo "yes" >&6; }
5418         { $as_echo "$as_me:${as_lineno-$LINENO}: checking serf library version" >&5
5419 $as_echo_n "checking serf library version... " >&6; }
5420         SERF_VERSION=`$PKG_CONFIG $serf_pc_arg --modversion`
5421         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SERF_VERSION" >&5
5422 $as_echo "$SERF_VERSION" >&6; }
5423         { $as_echo "$as_me:${as_lineno-$LINENO}: checking serf version is suitable" >&5
5424 $as_echo_n "checking serf version is suitable... " >&6; }
5425         if $PKG_CONFIG $serf_pc_arg --atleast-version=$serf_check_version; then
5426           { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5427 $as_echo "yes" >&6; }
5428           serf_found=yes
5429           SVN_SERF_INCLUDES=`$PKG_CONFIG $serf_pc_arg --cflags | $SED -e 's/-D[^ ]*//g'`
5430           SVN_SERF_LIBS=`$PKG_CONFIG $serf_pc_arg --libs-only-l`
5431                     LDFLAGS="$LDFLAGS `$PKG_CONFIG $serf_pc_arg --libs | $SED -e 's/-l[^ ]*//g'`"
5432           break
5433         else
5434           { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5435 $as_echo "no" >&6; }
5436           { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Serf version too old: need $serf_check_version" >&5
5437 $as_echo "$as_me: WARNING: Serf version too old: need $serf_check_version" >&2;}
5438         fi
5439       else
5440         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5441 $as_echo "no" >&6; }
5442       fi
5443     done
5444   fi
5445
5446     if test -n "$serf_prefix" && test "$serf_found" = "no" ; then
5447
5448   { $as_echo "$as_me:${as_lineno-$LINENO}: serf library configuration via prefix" >&5
5449 $as_echo "$as_me: serf library configuration via prefix" >&6;}
5450   serf_required=yes
5451   for serf_major in serf-2 serf-1; do
5452     if ! test -d $serf_prefix/include/$serf_major; then continue; fi
5453     save_cppflags="$CPPFLAGS"
5454     CPPFLAGS="$CPPFLAGS $SVN_APR_INCLUDES $SVN_APRUTIL_INCLUDES -I$serf_prefix/include/$serf_major"
5455     for ac_header in serf.h
5456 do :
5457   ac_fn_c_check_header_mongrel "$LINENO" "serf.h" "ac_cv_header_serf_h" "$ac_includes_default"
5458 if test "x$ac_cv_header_serf_h" = xyes; then :
5459   cat >>confdefs.h <<_ACEOF
5460 #define HAVE_SERF_H 1
5461 _ACEOF
5462
5463       save_ldflags="$LDFLAGS"
5464       LDFLAGS="$LDFLAGS `
5465   input_flags="-L$serf_prefix/lib"
5466   output_flags=""
5467   filtered_dirs="/lib /lib64 /usr/lib /usr/lib64"
5468   for flag in $input_flags; do
5469     filter="no"
5470     for dir in $filtered_dirs; do
5471       if test "$flag" = "-L$dir" || test "$flag" = "-L$dir/"; then
5472         filter="yes"
5473         break
5474       fi
5475     done
5476     if test "$filter" = "no"; then
5477       output_flags="$output_flags $flag"
5478     fi
5479   done
5480   if test -n "$output_flags"; then
5481     printf "%s" "${output_flags# }"
5482   fi
5483 `"
5484       as_ac_Lib=`$as_echo "ac_cv_lib_$serf_major''_serf_context_create" | $as_tr_sh`
5485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for serf_context_create in -l$serf_major" >&5
5486 $as_echo_n "checking for serf_context_create in -l$serf_major... " >&6; }
5487 if eval \${$as_ac_Lib+:} false; then :
5488   $as_echo_n "(cached) " >&6
5489 else
5490   ac_check_lib_save_LIBS=$LIBS
5491 LIBS="-l$serf_major $SVN_APRUTIL_LIBS $SVN_APR_LIBS -lz $LIBS"
5492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5493 /* end confdefs.h.  */
5494
5495 /* Override any GCC internal prototype to avoid an error.
5496    Use char because int might match the return type of a GCC
5497    builtin and then its argument prototype would still apply.  */
5498 #ifdef __cplusplus
5499 extern "C"
5500 #endif
5501 char serf_context_create ();
5502 int
5503 main ()
5504 {
5505 return serf_context_create ();
5506   ;
5507   return 0;
5508 }
5509 _ACEOF
5510 if ac_fn_c_try_link "$LINENO"; then :
5511   eval "$as_ac_Lib=yes"
5512 else
5513   eval "$as_ac_Lib=no"
5514 fi
5515 rm -f core conftest.err conftest.$ac_objext \
5516     conftest$ac_exeext conftest.$ac_ext
5517 LIBS=$ac_check_lib_save_LIBS
5518 fi
5519 eval ac_res=\$$as_ac_Lib
5520                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5521 $as_echo "$ac_res" >&6; }
5522 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
5523
5524         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5525 /* end confdefs.h.  */
5526
5527 #include <stdlib.h>
5528 #include "serf.h"
5529
5530 int
5531 main ()
5532 {
5533
5534 #if ! SERF_VERSION_AT_LEAST($serf_check_major, $serf_check_minor, $serf_check_patch)
5535 #error Serf version too old: need $serf_check_version
5536 #endif
5537
5538   ;
5539   return 0;
5540 }
5541 _ACEOF
5542 if ac_fn_c_try_compile "$LINENO"; then :
5543   serf_found=yes
5544 else
5545   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Serf version too old: need $serf_check_version" >&5
5546 $as_echo "$as_me: WARNING: Serf version too old: need $serf_check_version" >&2;}
5547       serf_found=no
5548 fi
5549 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5550 fi
5551
5552     LDFLAGS="$save_ldflags"
5553 fi
5554
5555 done
5556
5557     CPPFLAGS="$save_cppflags"
5558     test $serf_found = yes && break
5559   done
5560
5561   if test $serf_found = "yes"; then
5562     SVN_SERF_INCLUDES="-I$serf_prefix/include/$serf_major"
5563     if test -e "$serf_prefix/lib/lib$serf_major.la"; then
5564       SVN_SERF_LIBS="$serf_prefix/lib/lib$serf_major.la"
5565     else
5566       SVN_SERF_LIBS="-l$serf_major"
5567       LDFLAGS="$LDFLAGS `
5568   input_flags="-L$serf_prefix/lib"
5569   output_flags=""
5570   filtered_dirs="/lib /lib64 /usr/lib /usr/lib64"
5571   for flag in $input_flags; do
5572     filter="no"
5573     for dir in $filtered_dirs; do
5574       if test "$flag" = "-L$dir" || test "$flag" = "-L$dir/"; then
5575         filter="yes"
5576         break
5577       fi
5578     done
5579     if test "$filter" = "no"; then
5580       output_flags="$output_flags $flag"
5581     fi
5582   done
5583   if test -n "$output_flags"; then
5584     printf "%s" "${output_flags# }"
5585   fi
5586 `"
5587     fi
5588   fi
5589
5590     fi
5591
5592     { $as_echo "$as_me:${as_lineno-$LINENO}: checking was serf enabled" >&5
5593 $as_echo_n "checking was serf enabled... " >&6; }
5594     if test "$serf_found" = "yes"; then
5595       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5596 $as_echo "yes" >&6; }
5597     else
5598       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5599 $as_echo "no" >&6; }
5600
5601   echo ""
5602   echo "An appropriate version of serf could not be found, so libsvn_ra_serf"
5603   echo "will not be built.  If you want to build libsvn_ra_serf, please"
5604   echo "install serf $serf_check_version or newer."
5605   echo ""
5606
5607       if test "$serf_required" = "yes"; then
5608         as_fn_error $? "Serf was explicitly enabled but an appropriate version was not found." "$LINENO" 5
5609       fi
5610     fi
5611   fi
5612
5613   svn_lib_serf=$serf_found
5614
5615
5616
5617
5618
5619 if test "$svn_lib_serf" = "yes"; then
5620
5621 $as_echo "#define SVN_HAVE_SERF 1" >>confdefs.h
5622
5623 fi
5624
5625
5626   apr_memcache_found=no
5627
5628
5629 # Check whether --with-apr_memcache was given.
5630 if test "${with_apr_memcache+set}" = set; then :
5631   withval=$with_apr_memcache;
5632     if test "$withval" = "yes" ; then
5633       as_fn_error $? "--with-apr_memcache requires an argument." "$LINENO" 5
5634     else
5635       { $as_echo "$as_me:${as_lineno-$LINENO}: looking for separate apr_memcache package" >&5
5636 $as_echo "$as_me: looking for separate apr_memcache package" >&6;}
5637       apr_memcache_prefix=$withval
5638       save_cppflags="$CPPFLAGS"
5639       CPPFLAGS="$CPPFLAGS $SVN_APR_INCLUDES $SVN_APRUTIL_INCLUDES -I$apr_memcache_prefix/include/apr_memcache-0"
5640       ac_fn_c_check_header_mongrel "$LINENO" "apr_memcache.h" "ac_cv_header_apr_memcache_h" "$ac_includes_default"
5641 if test "x$ac_cv_header_apr_memcache_h" = xyes; then :
5642
5643         save_ldflags="$LDFLAGS"
5644         LDFLAGS="$LDFLAGS -L$apr_memcache_prefix/lib"
5645         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for apr_memcache_create in -lapr_memcache" >&5
5646 $as_echo_n "checking for apr_memcache_create in -lapr_memcache... " >&6; }
5647 if ${ac_cv_lib_apr_memcache_apr_memcache_create+:} false; then :
5648   $as_echo_n "(cached) " >&6
5649 else
5650   ac_check_lib_save_LIBS=$LIBS
5651 LIBS="-lapr_memcache  $LIBS"
5652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5653 /* end confdefs.h.  */
5654
5655 /* Override any GCC internal prototype to avoid an error.
5656    Use char because int might match the return type of a GCC
5657    builtin and then its argument prototype would still apply.  */
5658 #ifdef __cplusplus
5659 extern "C"
5660 #endif
5661 char apr_memcache_create ();
5662 int
5663 main ()
5664 {
5665 return apr_memcache_create ();
5666   ;
5667   return 0;
5668 }
5669 _ACEOF
5670 if ac_fn_c_try_link "$LINENO"; then :
5671   ac_cv_lib_apr_memcache_apr_memcache_create=yes
5672 else
5673   ac_cv_lib_apr_memcache_apr_memcache_create=no
5674 fi
5675 rm -f core conftest.err conftest.$ac_objext \
5676     conftest$ac_exeext conftest.$ac_ext
5677 LIBS=$ac_check_lib_save_LIBS
5678 fi
5679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_apr_memcache_apr_memcache_create" >&5
5680 $as_echo "$ac_cv_lib_apr_memcache_apr_memcache_create" >&6; }
5681 if test "x$ac_cv_lib_apr_memcache_apr_memcache_create" = xyes; then :
5682   apr_memcache_found="standalone"
5683 fi
5684
5685         LDFLAGS="$save_ldflags"
5686 fi
5687
5688
5689       CPPFLAGS="$save_cppflags"
5690     fi
5691
5692 else
5693
5694     { $as_echo "$as_me:${as_lineno-$LINENO}: looking for apr_memcache as part of apr-util" >&5
5695 $as_echo "$as_me: looking for apr_memcache as part of apr-util" >&6;}
5696     save_cppflags="$CPPFLAGS"
5697     CPPFLAGS="$CPPFLAGS $SVN_APR_INCLUDES $SVN_APRUTIL_INCLUDES"
5698     ac_fn_c_check_header_mongrel "$LINENO" "apr_memcache.h" "ac_cv_header_apr_memcache_h" "$ac_includes_default"
5699 if test "x$ac_cv_header_apr_memcache_h" = xyes; then :
5700
5701       save_ldflags="$LDFLAGS"
5702       LDFLAGS="$LDFLAGS $SVN_APRUTIL_LIBS"
5703       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for apr_memcache_create in -laprutil-1" >&5
5704 $as_echo_n "checking for apr_memcache_create in -laprutil-1... " >&6; }
5705 if ${ac_cv_lib_aprutil_1_apr_memcache_create+:} false; then :
5706   $as_echo_n "(cached) " >&6
5707 else
5708   ac_check_lib_save_LIBS=$LIBS
5709 LIBS="-laprutil-1  $LIBS"
5710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5711 /* end confdefs.h.  */
5712
5713 /* Override any GCC internal prototype to avoid an error.
5714    Use char because int might match the return type of a GCC
5715    builtin and then its argument prototype would still apply.  */
5716 #ifdef __cplusplus
5717 extern "C"
5718 #endif
5719 char apr_memcache_create ();
5720 int
5721 main ()
5722 {
5723 return apr_memcache_create ();
5724   ;
5725   return 0;
5726 }
5727 _ACEOF
5728 if ac_fn_c_try_link "$LINENO"; then :
5729   ac_cv_lib_aprutil_1_apr_memcache_create=yes
5730 else
5731   ac_cv_lib_aprutil_1_apr_memcache_create=no
5732 fi
5733 rm -f core conftest.err conftest.$ac_objext \
5734     conftest$ac_exeext conftest.$ac_ext
5735 LIBS=$ac_check_lib_save_LIBS
5736 fi
5737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_aprutil_1_apr_memcache_create" >&5
5738 $as_echo "$ac_cv_lib_aprutil_1_apr_memcache_create" >&6; }
5739 if test "x$ac_cv_lib_aprutil_1_apr_memcache_create" = xyes; then :
5740   apr_memcache_found="aprutil"
5741 fi
5742
5743       LDFLAGS="$save_ldflags"
5744 fi
5745
5746
5747     CPPFLAGS="$save_cppflags"
5748
5749 fi
5750
5751
5752
5753   if test $apr_memcache_found = "standalone"; then
5754     SVN_APR_MEMCACHE_INCLUDES="-I$apr_memcache_prefix/include/apr_memcache-0"
5755     SVN_APR_MEMCACHE_LIBS="$apr_memcache_prefix/lib/libapr_memcache.la"
5756     svn_lib_apr_memcache=yes
5757   elif test $apr_memcache_found = "aprutil"; then
5758     SVN_APR_MEMCACHE_INCLUDES=""
5759     SVN_APR_MEMCACHE_LIBS=""
5760     svn_lib_apr_memcache=yes
5761   elif test $apr_memcache_found = "reconfig"; then
5762     svn_lib_apr_memcache=yes
5763   else
5764     svn_lib_apr_memcache=no
5765   fi
5766
5767
5768
5769
5770
5771 if test "$svn_lib_apr_memcache" = "yes"; then
5772
5773 $as_echo "#define SVN_HAVE_MEMCACHE 1" >>confdefs.h
5774
5775 fi
5776
5777
5778
5779
5780
5781 HTTPD_WANTED_MMN="20051115"
5782
5783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Apache module support via DSO through APXS" >&5
5784 $as_echo_n "checking for Apache module support via DSO through APXS... " >&6; }
5785
5786 # Check whether --with-apxs was given.
5787 if test "${with_apxs+set}" = set; then :
5788   withval=$with_apxs;
5789     if test "$withval" = "yes"; then
5790       APXS=apxs
5791     else
5792       APXS="$withval"
5793     fi
5794     APXS_EXPLICIT=1
5795
5796 fi
5797
5798
5799 if test -z "$APXS"; then
5800   for i in /usr/sbin /usr/local/apache/bin /usr/local/apache2/bin /usr/bin ; do
5801     if test -f "$i/apxs2"; then
5802       APXS="$i/apxs2"
5803       break
5804     fi
5805     if test -f "$i/apxs"; then
5806       APXS="$i/apxs"
5807       break
5808     fi
5809   done
5810 fi
5811
5812 if test -n "$APXS" && test "$APXS" != "no"; then
5813     APXS_INCLUDE="`$APXS -q INCLUDEDIR`"
5814     if test -r $APXS_INCLUDE/mod_dav.h; then
5815         { $as_echo "$as_me:${as_lineno-$LINENO}: result: found at $APXS" >&5
5816 $as_echo "found at $APXS" >&6; }
5817
5818         { $as_echo "$as_me:${as_lineno-$LINENO}: checking httpd version" >&5
5819 $as_echo_n "checking httpd version... " >&6; }
5820         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5821 /* end confdefs.h.  */
5822
5823 #include "$APXS_INCLUDE/ap_mmn.h"
5824 #if AP_MODULE_MAGIC_AT_LEAST($HTTPD_WANTED_MMN,0)
5825 VERSION_OKAY
5826 #endif
5827 _ACEOF
5828 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5829   $EGREP "VERSION_OKAY" >/dev/null 2>&1; then :
5830   { $as_echo "$as_me:${as_lineno-$LINENO}: result: recent enough" >&5
5831 $as_echo "recent enough" >&6; }
5832 else
5833   { $as_echo "$as_me:${as_lineno-$LINENO}: result: apache too old:  mmn must be at least $HTTPD_WANTED_MMN" >&5
5834 $as_echo "apache too old:  mmn must be at least $HTTPD_WANTED_MMN" >&6; }
5835          if test "$APXS_EXPLICIT" != ""; then
5836              as_fn_error $? "Apache APXS build explicitly requested, but apache version is too old" "$LINENO" 5
5837          fi
5838          APXS=""
5839
5840 fi
5841 rm -f conftest*
5842
5843
5844     elif test "$APXS_EXPLICIT" != ""; then
5845         as_fn_error $? "no - APXS refers to an old version of Apache
5846                       Unable to locate $APXS_INCLUDE/mod_dav.h" "$LINENO" 5
5847     else
5848         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no - Unable to locate $APXS_INCLUDE/mod_dav.h" >&5
5849 $as_echo "no - Unable to locate $APXS_INCLUDE/mod_dav.h" >&6; }
5850         APXS=""
5851     fi
5852 else
5853     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5854 $as_echo "no" >&6; }
5855 fi
5856
5857 # check for some busted versions of mod_dav
5858 # in particular 2.2.25, 2.4.5, and 2.4.6 had the following bugs which are
5859 # troublesome for Subversion:
5860 # PR 55304: https://issues.apache.org/bugzilla/show_bug.cgi?id=55304
5861 # PR 55306: https://issues.apache.org/bugzilla/show_bug.cgi?id=55306
5862 # PR 55397: https://issues.apache.org/bugzilla/show_bug.cgi?id=55397
5863 if test -n "$APXS" && test "$APXS" != "no"; then
5864   { $as_echo "$as_me:${as_lineno-$LINENO}: checking mod_dav version" >&5
5865 $as_echo_n "checking mod_dav version... " >&6; }
5866   HTTPD_MAJOR=`$SED -ne '/^#define AP_SERVER_MAJORVERSION_NUMBER/p' "$APXS_INCLUDE/ap_release.h" | $SED -e 's/^.*NUMBER *//'`
5867   HTTPD_MINOR=`$SED -ne '/^#define AP_SERVER_MINORVERSION_NUMBER/p' "$APXS_INCLUDE/ap_release.h" | $SED -e 's/^.*NUMBER *//'`
5868   HTTPD_PATCH=`$SED -ne '/^#define AP_SERVER_PATCHLEVEL_NUMBER/p' "$APXS_INCLUDE/ap_release.h" | $SED -e 's/^.*NUMBER *//'`
5869   HTTPD_VERSION="${HTTPD_MAJOR}.${HTTPD_MINOR}.${HTTPD_PATCH}"
5870   case "$HTTPD_VERSION" in
5871     2.2.25 | 2.4.[5-6])
5872       { $as_echo "$as_me:${as_lineno-$LINENO}: result: broken" >&5
5873 $as_echo "broken" >&6; }
5874       as_fn_error $? "Apache httpd version $HTTPD_VERSION includes a broken mod_dav; use a newer version of httpd" "$LINENO" 5
5875       ;;
5876     2.[0-9]*.[0-9]*)
5877       { $as_echo "$as_me:${as_lineno-$LINENO}: result: acceptable" >&5
5878 $as_echo "acceptable" >&6; }
5879       ;;
5880     *)
5881       { $as_echo "$as_me:${as_lineno-$LINENO}: result: unrecognised" >&5
5882 $as_echo "unrecognised" >&6; }
5883       as_fn_error $? "Apache httpd version $HTTPD_VERSION not recognised" "$LINENO" 5
5884       ;;
5885   esac
5886 fi
5887
5888 if test -n "$APXS" && test "$APXS" != "no"; then
5889   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Apache version is compatible with APR version" >&5
5890 $as_echo_n "checking whether Apache version is compatible with APR version... " >&6; }
5891   apr_major_version="${apr_version%%.*}"
5892   case "$apr_major_version" in
5893     0)
5894       apache_minor_version_wanted_regex="0"
5895       ;;
5896     1)
5897       apache_minor_version_wanted_regex="[1-5]"
5898       ;;
5899     2)
5900       apache_minor_version_wanted_regex="[3-5]"
5901       ;;
5902     *)
5903       as_fn_error $? "unknown APR version" "$LINENO" 5
5904       ;;
5905   esac
5906   case $HTTPD_MINOR in
5907     $apache_minor_version_wanted_regex)
5908       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5909 $as_echo "yes" >&6; }
5910       ;;
5911     *)
5912       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5913 $as_echo "no" >&6; }
5914       as_fn_error $? "Apache version $HTTPD_VERSION incompatible with APR version $apr_version" "$LINENO" 5
5915       ;;
5916   esac
5917 fi
5918
5919
5920 # Check whether --with-apache-libexecdir was given.
5921 if test "${with_apache_libexecdir+set}" = set; then :
5922   withval=$with_apache_libexecdir; APACHE_LIBEXECDIR="$withval"
5923 else
5924   APACHE_LIBEXECDIR='no'
5925 fi
5926
5927
5928 INSTALL_APACHE_MODS=false
5929 if test -n "$APXS" && test "$APXS" != "no"; then
5930     APXS_CC="`$APXS -q CC`"
5931     APACHE_INCLUDES="$APACHE_INCLUDES -I$APXS_INCLUDE"
5932
5933     if test "$APACHE_LIBEXECDIR" = 'no'; then
5934         APACHE_LIBEXECDIR="$libexecdir"
5935     elif test "$APACHE_LIBEXECDIR" = 'yes'; then
5936         APACHE_LIBEXECDIR="`$APXS -q libexecdir`"
5937     fi
5938
5939     for ac_header in unistd.h
5940 do :
5941   ac_fn_c_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
5942 if test "x$ac_cv_header_unistd_h" = xyes; then :
5943   cat >>confdefs.h <<_ACEOF
5944 #define HAVE_UNISTD_H 1
5945 _ACEOF
5946  for ac_func in getpid
5947 do :
5948   ac_fn_c_check_func "$LINENO" "getpid" "ac_cv_func_getpid"
5949 if test "x$ac_cv_func_getpid" = xyes; then :
5950   cat >>confdefs.h <<_ACEOF
5951 #define HAVE_GETPID 1
5952 _ACEOF
5953
5954 fi
5955 done
5956
5957 fi
5958
5959 done
5960
5961
5962     MMN_MAJOR=`$SED -ne '/^#define MODULE_MAGIC_NUMBER_MAJOR/p' "$APXS_INCLUDE/ap_mmn.h" | $SED -e 's/^.*MAJOR *//'`
5963     MMN_MINOR=`$SED -ne '/^#define MODULE_MAGIC_NUMBER_MINOR/p' "$APXS_INCLUDE/ap_mmn.h" | $SED -e 's/^.*MINOR *//' | $SED -e 's/ .*//'`
5964     if test "$MMN_MAJOR" = "20120211" && test "$MMN_MINOR" -lt "47" ; then
5965       # This is httpd 2.4 and it doesn't appear to have the required
5966       # API but the installation may have been patched.
5967       # Check whether --enable-broken-httpd-auth was given.
5968 if test "${enable_broken_httpd_auth+set}" = set; then :
5969   enableval=$enable_broken_httpd_auth; broken_httpd_auth=$enableval
5970 else
5971   broken_httpd_auth=no
5972 fi
5973
5974       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ap_some_authn_required" >&5
5975 $as_echo_n "checking for ap_some_authn_required... " >&6; }
5976       old_CPPFLAGS="$CPPFLAGS"
5977       CPPFLAGS="$CPPFLAGS $APACHE_INCLUDES $SVN_APR_INCLUDES"
5978       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5979 /* end confdefs.h.  */
5980 #include "http_request.h"
5981 _ACEOF
5982 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5983   $EGREP "int.*\sap_some_authn_required\s*\(" >/dev/null 2>&1; then :
5984   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5985 $as_echo "yes" >&6; }
5986                     working_auth=yes
5987 else
5988   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5989 $as_echo "no" >&6; }
5990 fi
5991 rm -f conftest*
5992
5993       CPPFLAGS="$old_CPPFLAGS"
5994       if test "$working_auth" = "yes" ; then
5995
5996 $as_echo "#define SVN_USE_FORCE_AUTHN 1" >>confdefs.h
5997
5998       elif test "$enable_broken_httpd_auth" = "yes"; then
5999         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ==============================================" >&5
6000 $as_echo "$as_me: WARNING: ==============================================" >&2;}
6001         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Apache httpd $HTTPD_VERSION MMN $MMN_MAJOR.$MMN_MINOR" >&5
6002 $as_echo "$as_me: WARNING: Apache httpd $HTTPD_VERSION MMN $MMN_MAJOR.$MMN_MINOR" >&2;}
6003         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Subversion will be vulnerable to CVE-2015-3184" >&5
6004 $as_echo "$as_me: WARNING: Subversion will be vulnerable to CVE-2015-3184" >&2;}
6005         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ==============================================" >&5
6006 $as_echo "$as_me: WARNING: ==============================================" >&2;}
6007
6008 $as_echo "#define SVN_ALLOW_BROKEN_HTTPD_AUTH 1" >>confdefs.h
6009
6010       else
6011         as_fn_error $? "Apache httpd $HTTPD_VERSION MMN $MMN_MAJOR.$MMN_MINOR has broken auth (CVE-2015-3184)" "$LINENO" 5
6012       fi
6013     fi
6014
6015     BUILD_APACHE_RULE=apache-mod
6016     INSTALL_APACHE_RULE=install-mods-shared
6017     INSTALL_APACHE_MODS=true
6018     case $host in
6019       *-*-cygwin*)
6020         APACHE_LDFLAGS="-shrext .so"
6021         ;;
6022     esac
6023 elif test x"$APXS" != x"no"; then
6024     echo "=================================================================="
6025     echo "WARNING: skipping the build of mod_dav_svn"
6026     echo "         try using --with-apxs"
6027     echo "=================================================================="
6028 fi
6029
6030
6031
6032
6033
6034
6035
6036
6037 # there aren't any flags that interest us ...
6038 #if test -n "$APXS" && test "$APXS" != "no"; then
6039 #  CFLAGS="$CFLAGS `$APXS -q CFLAGS CFLAGS_SHLIB`"
6040 #fi
6041
6042 if test -n "$APXS_CC" && test "$APXS_CC" != "$CC" ; then
6043   echo "=================================================================="
6044   echo "WARNING: You have chosen to compile Subversion with a different"
6045   echo "         compiler than the one used to compile Apache."
6046   echo ""
6047   echo "    Current compiler:      $CC"
6048   echo "   Apache's compiler:      $APXS_CC"
6049   echo ""
6050   echo "This could cause some problems."
6051   echo "=================================================================="
6052 fi
6053
6054
6055
6056 SQLITE_MINIMUM_VER="3.7.12"
6057 SQLITE_RECOMMENDED_VER="3.7.15.1"
6058 SQLITE_URL="http://www.sqlite.org/sqlite-amalgamation-$(printf %d%02d%02d%02d $(echo ${SQLITE_RECOMMENDED_VER} | sed -e 's/\./ /g')).zip"
6059
6060
6061   SQLITE_MINIMUM_VER="${SQLITE_MINIMUM_VER}"
6062   SQLITE_RECOMMENDED_VER="${SQLITE_RECOMMENDED_VER}"
6063   SQLITE_URL="${SQLITE_URL}"
6064   SQLITE_PKGNAME="sqlite3"
6065
6066
6067
6068   version_string="$SQLITE_MINIMUM_VER"
6069
6070   major=`expr $version_string : '\([0-9]*\)'`
6071   minor=`expr $version_string : '[0-9]*\.\([0-9]*\)'`
6072   micro=`expr $version_string : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
6073   if test -z "$micro"; then
6074     micro=0
6075   fi
6076   sqlite_min_ver_num=`expr $major \* 1000000 \
6077         \+ $minor \* 1000 \
6078         \+ $micro`
6079
6080
6081
6082   { $as_echo "$as_me:${as_lineno-$LINENO}: checking sqlite library" >&5
6083 $as_echo "$as_me: checking sqlite library" >&6;}
6084
6085
6086 # Check whether --with-sqlite was given.
6087 if test "${with_sqlite+set}" = set; then :
6088   withval=$with_sqlite;
6089     if test "$withval" = "yes" ; then
6090       as_fn_error $? "--with-sqlite requires an argument." "$LINENO" 5
6091     else
6092       sqlite_dir="$withval"
6093     fi
6094
6095     if test -d $sqlite_dir; then
6096
6097   if test -z "$sqlite_dir"; then
6098     sqlite_dir=""
6099     sqlite_include="sqlite3.h"
6100   else
6101     sqlite_dir="$sqlite_dir"
6102     sqlite_include="$sqlite_dir/include/sqlite3.h"
6103   fi
6104
6105   save_CPPFLAGS="$CPPFLAGS"
6106   save_LDFLAGS="$LDFLAGS"
6107
6108   if test ! -z "$sqlite_dir"; then
6109     CPPFLAGS="$CPPFLAGS -I$sqlite_dir/include"
6110     LDFLAGS="$LDFLAGS -L$sqlite_dir/lib"
6111   fi
6112
6113   ac_fn_c_check_header_mongrel "$LINENO" "sqlite3.h" "ac_cv_header_sqlite3_h" "$ac_includes_default"
6114 if test "x$ac_cv_header_sqlite3_h" = xyes; then :
6115
6116       { $as_echo "$as_me:${as_lineno-$LINENO}: checking sqlite library version (via header)" >&5
6117 $as_echo_n "checking sqlite library version (via header)... " >&6; }
6118       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6119 /* end confdefs.h.  */
6120
6121 #include "$sqlite_include"
6122 #if SQLITE_VERSION_NUMBER >= $sqlite_min_ver_num
6123 SQLITE_VERSION_OKAY
6124 #endif
6125 _ACEOF
6126 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6127   $EGREP "SQLITE_VERSION_OKAY" >/dev/null 2>&1; then :
6128   { $as_echo "$as_me:${as_lineno-$LINENO}: result: okay" >&5
6129 $as_echo "okay" >&6; }
6130                    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite3_close in -lsqlite3" >&5
6131 $as_echo_n "checking for sqlite3_close in -lsqlite3... " >&6; }
6132 if ${ac_cv_lib_sqlite3_sqlite3_close+:} false; then :
6133   $as_echo_n "(cached) " >&6
6134 else
6135   ac_check_lib_save_LIBS=$LIBS
6136 LIBS="-lsqlite3  $LIBS"
6137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6138 /* end confdefs.h.  */
6139
6140 /* Override any GCC internal prototype to avoid an error.
6141    Use char because int might match the return type of a GCC
6142    builtin and then its argument prototype would still apply.  */
6143 #ifdef __cplusplus
6144 extern "C"
6145 #endif
6146 char sqlite3_close ();
6147 int
6148 main ()
6149 {
6150 return sqlite3_close ();
6151   ;
6152   return 0;
6153 }
6154 _ACEOF
6155 if ac_fn_c_try_link "$LINENO"; then :
6156   ac_cv_lib_sqlite3_sqlite3_close=yes
6157 else
6158   ac_cv_lib_sqlite3_sqlite3_close=no
6159 fi
6160 rm -f core conftest.err conftest.$ac_objext \
6161     conftest$ac_exeext conftest.$ac_ext
6162 LIBS=$ac_check_lib_save_LIBS
6163 fi
6164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_close" >&5
6165 $as_echo "$ac_cv_lib_sqlite3_sqlite3_close" >&6; }
6166 if test "x$ac_cv_lib_sqlite3_sqlite3_close" = xyes; then :
6167
6168                       svn_lib_sqlite="yes"
6169                       if test -z "$sqlite_dir" -o ! -d "$sqlite_dir"; then
6170                         SVN_SQLITE_LIBS="-lsqlite3"
6171                       else
6172                         SVN_SQLITE_INCLUDES="-I$sqlite_dir/include"
6173                         SVN_SQLITE_LIBS="`
6174   input_flags="-L$sqlite_dir/lib -lsqlite3"
6175   output_flags=""
6176   filtered_dirs="/lib /lib64 /usr/lib /usr/lib64"
6177   for flag in $input_flags; do
6178     filter="no"
6179     for dir in $filtered_dirs; do
6180       if test "$flag" = "-L$dir" || test "$flag" = "-L$dir/"; then
6181         filter="yes"
6182         break
6183       fi
6184     done
6185     if test "$filter" = "no"; then
6186       output_flags="$output_flags $flag"
6187     fi
6188   done
6189   if test -n "$output_flags"; then
6190     printf "%s" "${output_flags# }"
6191   fi
6192 `"
6193                       fi
6194
6195 fi
6196
6197 else
6198   { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported SQLite version" >&5
6199 $as_echo "unsupported SQLite version" >&6; }
6200 fi
6201 rm -f conftest*
6202
6203
6204 fi
6205
6206
6207
6208   CPPFLAGS="$save_CPPFLAGS"
6209   LDFLAGS="$save_LDFLAGS"
6210
6211     else
6212
6213   sqlite_amalg="$sqlite_dir"
6214   { $as_echo "$as_me:${as_lineno-$LINENO}: checking sqlite amalgamation" >&5
6215 $as_echo_n "checking sqlite amalgamation... " >&6; }
6216   if test ! -e $sqlite_amalg; then
6217     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6218 $as_echo "no" >&6; }
6219   else
6220     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6221 $as_echo "yes" >&6; }
6222     { $as_echo "$as_me:${as_lineno-$LINENO}: checking sqlite amalgamation file version" >&5
6223 $as_echo_n "checking sqlite amalgamation file version... " >&6; }
6224     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6225 /* end confdefs.h.  */
6226
6227 #include "$sqlite_amalg"
6228 #if SQLITE_VERSION_NUMBER >= $sqlite_min_ver_num
6229 SQLITE_VERSION_OKAY
6230 #endif
6231 _ACEOF
6232 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6233   $EGREP "SQLITE_VERSION_OKAY" >/dev/null 2>&1; then :
6234   { $as_echo "$as_me:${as_lineno-$LINENO}: result: amalgamation found and is okay" >&5
6235 $as_echo "amalgamation found and is okay" >&6; }
6236
6237   case $host_os in
6238   beos* | mingw* | pw32* | cegcc* | cygwin*)
6239     svn_sqlite_dso_ldflags=
6240     ;;
6241
6242   darwin*)
6243   # if libdl is installed we need to link against it
6244     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
6245 $as_echo_n "checking for dlopen in -ldl... " >&6; }
6246 if ${ac_cv_lib_dl_dlopen+:} false; then :
6247   $as_echo_n "(cached) " >&6
6248 else
6249   ac_check_lib_save_LIBS=$LIBS
6250 LIBS="-ldl  $LIBS"
6251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6252 /* end confdefs.h.  */
6253
6254 /* Override any GCC internal prototype to avoid an error.
6255    Use char because int might match the return type of a GCC
6256    builtin and then its argument prototype would still apply.  */
6257 #ifdef __cplusplus
6258 extern "C"
6259 #endif
6260 char dlopen ();
6261 int
6262 main ()
6263 {
6264 return dlopen ();
6265   ;
6266   return 0;
6267 }
6268 _ACEOF
6269 if ac_fn_c_try_link "$LINENO"; then :
6270   ac_cv_lib_dl_dlopen=yes
6271 else
6272   ac_cv_lib_dl_dlopen=no
6273 fi
6274 rm -f core conftest.err conftest.$ac_objext \
6275     conftest$ac_exeext conftest.$ac_ext
6276 LIBS=$ac_check_lib_save_LIBS
6277 fi
6278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
6279 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
6280 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
6281   lt_cv_dlopen="dlopen" svn_sqlite_dso_ldflags="-ldl"
6282 else
6283
6284     svn_sqlite_dso_ldflags=
6285
6286 fi
6287
6288     ;;
6289
6290   *)
6291     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
6292 if test "x$ac_cv_func_shl_load" = xyes; then :
6293   svn_sqlite_dso_ldflags=
6294 else
6295   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
6296 $as_echo_n "checking for shl_load in -ldld... " >&6; }
6297 if ${ac_cv_lib_dld_shl_load+:} false; then :
6298   $as_echo_n "(cached) " >&6
6299 else
6300   ac_check_lib_save_LIBS=$LIBS
6301 LIBS="-ldld  $LIBS"
6302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6303 /* end confdefs.h.  */
6304
6305 /* Override any GCC internal prototype to avoid an error.
6306    Use char because int might match the return type of a GCC
6307    builtin and then its argument prototype would still apply.  */
6308 #ifdef __cplusplus
6309 extern "C"
6310 #endif
6311 char shl_load ();
6312 int
6313 main ()
6314 {
6315 return shl_load ();
6316   ;
6317   return 0;
6318 }
6319 _ACEOF
6320 if ac_fn_c_try_link "$LINENO"; then :
6321   ac_cv_lib_dld_shl_load=yes
6322 else
6323   ac_cv_lib_dld_shl_load=no
6324 fi
6325 rm -f core conftest.err conftest.$ac_objext \
6326     conftest$ac_exeext conftest.$ac_ext
6327 LIBS=$ac_check_lib_save_LIBS
6328 fi
6329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
6330 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
6331 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
6332   svn_sqlite_dso_ldflags="-ldld"
6333 else
6334   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
6335 if test "x$ac_cv_func_dlopen" = xyes; then :
6336   svn_sqlite_dso_ldflags=
6337 else
6338   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
6339 $as_echo_n "checking for dlopen in -ldl... " >&6; }
6340 if ${ac_cv_lib_dl_dlopen+:} false; then :
6341   $as_echo_n "(cached) " >&6
6342 else
6343   ac_check_lib_save_LIBS=$LIBS
6344 LIBS="-ldl  $LIBS"
6345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6346 /* end confdefs.h.  */
6347
6348 /* Override any GCC internal prototype to avoid an error.
6349    Use char because int might match the return type of a GCC
6350    builtin and then its argument prototype would still apply.  */
6351 #ifdef __cplusplus
6352 extern "C"
6353 #endif
6354 char dlopen ();
6355 int
6356 main ()
6357 {
6358 return dlopen ();
6359   ;
6360   return 0;
6361 }
6362 _ACEOF
6363 if ac_fn_c_try_link "$LINENO"; then :
6364   ac_cv_lib_dl_dlopen=yes
6365 else
6366   ac_cv_lib_dl_dlopen=no
6367 fi
6368 rm -f core conftest.err conftest.$ac_objext \
6369     conftest$ac_exeext conftest.$ac_ext
6370 LIBS=$ac_check_lib_save_LIBS
6371 fi
6372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
6373 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
6374 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
6375   svn_sqlite_dso_ldflags="-ldl"
6376 else
6377   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
6378 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
6379 if ${ac_cv_lib_svld_dlopen+:} false; then :
6380   $as_echo_n "(cached) " >&6
6381 else
6382   ac_check_lib_save_LIBS=$LIBS
6383 LIBS="-lsvld  $LIBS"
6384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6385 /* end confdefs.h.  */
6386
6387 /* Override any GCC internal prototype to avoid an error.
6388    Use char because int might match the return type of a GCC
6389    builtin and then its argument prototype would still apply.  */
6390 #ifdef __cplusplus
6391 extern "C"
6392 #endif
6393 char dlopen ();
6394 int
6395 main ()
6396 {
6397 return dlopen ();
6398   ;
6399   return 0;
6400 }
6401 _ACEOF
6402 if ac_fn_c_try_link "$LINENO"; then :
6403   ac_cv_lib_svld_dlopen=yes
6404 else
6405   ac_cv_lib_svld_dlopen=no
6406 fi
6407 rm -f core conftest.err conftest.$ac_objext \
6408     conftest$ac_exeext conftest.$ac_ext
6409 LIBS=$ac_check_lib_save_LIBS
6410 fi
6411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
6412 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
6413 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
6414   svn_sqlite_dso_ldflags="-lsvld"
6415 else
6416   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
6417 $as_echo_n "checking for dld_link in -ldld... " >&6; }
6418 if ${ac_cv_lib_dld_dld_link+:} false; then :
6419   $as_echo_n "(cached) " >&6
6420 else
6421   ac_check_lib_save_LIBS=$LIBS
6422 LIBS="-ldld  $LIBS"
6423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6424 /* end confdefs.h.  */
6425
6426 /* Override any GCC internal prototype to avoid an error.
6427    Use char because int might match the return type of a GCC
6428    builtin and then its argument prototype would still apply.  */
6429 #ifdef __cplusplus
6430 extern "C"
6431 #endif
6432 char dld_link ();
6433 int
6434 main ()
6435 {
6436 return dld_link ();
6437   ;
6438   return 0;
6439 }
6440 _ACEOF
6441 if ac_fn_c_try_link "$LINENO"; then :
6442   ac_cv_lib_dld_dld_link=yes
6443 else
6444   ac_cv_lib_dld_dld_link=no
6445 fi
6446 rm -f core conftest.err conftest.$ac_objext \
6447     conftest$ac_exeext conftest.$ac_ext
6448 LIBS=$ac_check_lib_save_LIBS
6449 fi
6450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
6451 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
6452 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
6453   svn_sqlite_dso_ldflags="-ldld"
6454 fi
6455
6456
6457 fi
6458
6459
6460 fi
6461
6462
6463 fi
6464
6465
6466 fi
6467
6468
6469 fi
6470
6471     ;;
6472   esac
6473
6474   { $as_echo "$as_me:${as_lineno-$LINENO}: checking additional libraries for sqlite" >&5
6475 $as_echo_n "checking additional libraries for sqlite... " >&6; }
6476   if test -n "$svn_sqlite_dso_ldflags"; then
6477     { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${svn_sqlite_dso_ldflags}" >&5
6478 $as_echo "${svn_sqlite_dso_ldflags}" >&6; }
6479   else
6480     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6481 $as_echo "none" >&6; }
6482   fi
6483
6484
6485 $as_echo "#define SVN_SQLITE_INLINE 1" >>confdefs.h
6486
6487                   SVN_SQLITE_INCLUDES="-I`dirname $sqlite_amalg`"
6488                   if test -n "$svn_sqlite_dso_ldflags"; then
6489                     SVN_SQLITE_LIBS="$svn_sqlite_dso_ldflags -lpthread"
6490                   else
6491                     SVN_SQLITE_LIBS="-lpthread"
6492                   fi
6493                   svn_lib_sqlite="yes"
6494 else
6495   { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported amalgamation SQLite version" >&5
6496 $as_echo "unsupported amalgamation SQLite version" >&6; }
6497 fi
6498 rm -f conftest*
6499
6500   fi
6501
6502     fi
6503
6504     if test -z "$svn_lib_sqlite"; then
6505       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no suitable sqlite found in $sqlite_dir" >&5
6506 $as_echo "$as_me: WARNING: no suitable sqlite found in $sqlite_dir" >&2;}
6507
6508   echo ""
6509   echo "An appropriate version of sqlite could not be found.  We recommmend"
6510   echo "${SQLITE_RECOMMENDED_VER}, but require at least ${SQLITE_MINIMUM_VER}."
6511   echo "Please either install a newer sqlite on this system"
6512   echo ""
6513   echo "or"
6514   echo ""
6515   echo "get the sqlite ${SQLITE_RECOMMENDED_VER} amalgamation from:"
6516   echo "    ${SQLITE_URL}"
6517   echo "unpack the archive using unzip and rename the resulting"
6518   echo "directory to:"
6519   echo "$abs_srcdir/sqlite-amalgamation"
6520   if test x"$abs_srcdir" != x"$abs_builddir"; then
6521     echo "or to:"
6522     echo "$abs_builddir/sqlite-amalgamation"
6523   fi
6524   echo ""
6525   as_fn_error $? "Subversion requires SQLite" "$LINENO" 5
6526
6527     fi
6528
6529 else
6530
6531
6532   sqlite_amalg="$abs_srcdir/sqlite-amalgamation/sqlite3.c"
6533   { $as_echo "$as_me:${as_lineno-$LINENO}: checking sqlite amalgamation" >&5
6534 $as_echo_n "checking sqlite amalgamation... " >&6; }
6535   if test ! -e $sqlite_amalg; then
6536     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6537 $as_echo "no" >&6; }
6538   else
6539     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6540 $as_echo "yes" >&6; }
6541     { $as_echo "$as_me:${as_lineno-$LINENO}: checking sqlite amalgamation file version" >&5
6542 $as_echo_n "checking sqlite amalgamation file version... " >&6; }
6543     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6544 /* end confdefs.h.  */
6545
6546 #include "$sqlite_amalg"
6547 #if SQLITE_VERSION_NUMBER >= $sqlite_min_ver_num
6548 SQLITE_VERSION_OKAY
6549 #endif
6550 _ACEOF
6551 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6552   $EGREP "SQLITE_VERSION_OKAY" >/dev/null 2>&1; then :
6553   { $as_echo "$as_me:${as_lineno-$LINENO}: result: amalgamation found and is okay" >&5
6554 $as_echo "amalgamation found and is okay" >&6; }
6555
6556   case $host_os in
6557   beos* | mingw* | pw32* | cegcc* | cygwin*)
6558     svn_sqlite_dso_ldflags=
6559     ;;
6560
6561   darwin*)
6562   # if libdl is installed we need to link against it
6563     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
6564 $as_echo_n "checking for dlopen in -ldl... " >&6; }
6565 if ${ac_cv_lib_dl_dlopen+:} false; then :
6566   $as_echo_n "(cached) " >&6
6567 else
6568   ac_check_lib_save_LIBS=$LIBS
6569 LIBS="-ldl  $LIBS"
6570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6571 /* end confdefs.h.  */
6572
6573 /* Override any GCC internal prototype to avoid an error.
6574    Use char because int might match the return type of a GCC
6575    builtin and then its argument prototype would still apply.  */
6576 #ifdef __cplusplus
6577 extern "C"
6578 #endif
6579 char dlopen ();
6580 int
6581 main ()
6582 {
6583 return dlopen ();
6584   ;
6585   return 0;
6586 }
6587 _ACEOF
6588 if ac_fn_c_try_link "$LINENO"; then :
6589   ac_cv_lib_dl_dlopen=yes
6590 else
6591   ac_cv_lib_dl_dlopen=no
6592 fi
6593 rm -f core conftest.err conftest.$ac_objext \
6594     conftest$ac_exeext conftest.$ac_ext
6595 LIBS=$ac_check_lib_save_LIBS
6596 fi
6597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
6598 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
6599 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
6600   lt_cv_dlopen="dlopen" svn_sqlite_dso_ldflags="-ldl"
6601 else
6602
6603     svn_sqlite_dso_ldflags=
6604
6605 fi
6606
6607     ;;
6608
6609   *)
6610     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
6611 if test "x$ac_cv_func_shl_load" = xyes; then :
6612   svn_sqlite_dso_ldflags=
6613 else
6614   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
6615 $as_echo_n "checking for shl_load in -ldld... " >&6; }
6616 if ${ac_cv_lib_dld_shl_load+:} false; then :
6617   $as_echo_n "(cached) " >&6
6618 else
6619   ac_check_lib_save_LIBS=$LIBS
6620 LIBS="-ldld  $LIBS"
6621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6622 /* end confdefs.h.  */
6623
6624 /* Override any GCC internal prototype to avoid an error.
6625    Use char because int might match the return type of a GCC
6626    builtin and then its argument prototype would still apply.  */
6627 #ifdef __cplusplus
6628 extern "C"
6629 #endif
6630 char shl_load ();
6631 int
6632 main ()
6633 {
6634 return shl_load ();
6635   ;
6636   return 0;
6637 }
6638 _ACEOF
6639 if ac_fn_c_try_link "$LINENO"; then :
6640   ac_cv_lib_dld_shl_load=yes
6641 else
6642   ac_cv_lib_dld_shl_load=no
6643 fi
6644 rm -f core conftest.err conftest.$ac_objext \
6645     conftest$ac_exeext conftest.$ac_ext
6646 LIBS=$ac_check_lib_save_LIBS
6647 fi
6648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
6649 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
6650 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
6651   svn_sqlite_dso_ldflags="-ldld"
6652 else
6653   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
6654 if test "x$ac_cv_func_dlopen" = xyes; then :
6655   svn_sqlite_dso_ldflags=
6656 else
6657   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
6658 $as_echo_n "checking for dlopen in -ldl... " >&6; }
6659 if ${ac_cv_lib_dl_dlopen+:} false; then :
6660   $as_echo_n "(cached) " >&6
6661 else
6662   ac_check_lib_save_LIBS=$LIBS
6663 LIBS="-ldl  $LIBS"
6664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6665 /* end confdefs.h.  */
6666
6667 /* Override any GCC internal prototype to avoid an error.
6668    Use char because int might match the return type of a GCC
6669    builtin and then its argument prototype would still apply.  */
6670 #ifdef __cplusplus
6671 extern "C"
6672 #endif
6673 char dlopen ();
6674 int
6675 main ()
6676 {
6677 return dlopen ();
6678   ;
6679   return 0;
6680 }
6681 _ACEOF
6682 if ac_fn_c_try_link "$LINENO"; then :
6683   ac_cv_lib_dl_dlopen=yes
6684 else
6685   ac_cv_lib_dl_dlopen=no
6686 fi
6687 rm -f core conftest.err conftest.$ac_objext \
6688     conftest$ac_exeext conftest.$ac_ext
6689 LIBS=$ac_check_lib_save_LIBS
6690 fi
6691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
6692 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
6693 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
6694   svn_sqlite_dso_ldflags="-ldl"
6695 else
6696   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
6697 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
6698 if ${ac_cv_lib_svld_dlopen+:} false; then :
6699   $as_echo_n "(cached) " >&6
6700 else
6701   ac_check_lib_save_LIBS=$LIBS
6702 LIBS="-lsvld  $LIBS"
6703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6704 /* end confdefs.h.  */
6705
6706 /* Override any GCC internal prototype to avoid an error.
6707    Use char because int might match the return type of a GCC
6708    builtin and then its argument prototype would still apply.  */
6709 #ifdef __cplusplus
6710 extern "C"
6711 #endif
6712 char dlopen ();
6713 int
6714 main ()
6715 {
6716 return dlopen ();
6717   ;
6718   return 0;
6719 }
6720 _ACEOF
6721 if ac_fn_c_try_link "$LINENO"; then :
6722   ac_cv_lib_svld_dlopen=yes
6723 else
6724   ac_cv_lib_svld_dlopen=no
6725 fi
6726 rm -f core conftest.err conftest.$ac_objext \
6727     conftest$ac_exeext conftest.$ac_ext
6728 LIBS=$ac_check_lib_save_LIBS
6729 fi
6730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
6731 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
6732 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
6733   svn_sqlite_dso_ldflags="-lsvld"
6734 else
6735   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
6736 $as_echo_n "checking for dld_link in -ldld... " >&6; }
6737 if ${ac_cv_lib_dld_dld_link+:} false; then :
6738   $as_echo_n "(cached) " >&6
6739 else
6740   ac_check_lib_save_LIBS=$LIBS
6741 LIBS="-ldld  $LIBS"
6742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6743 /* end confdefs.h.  */
6744
6745 /* Override any GCC internal prototype to avoid an error.
6746    Use char because int might match the return type of a GCC
6747    builtin and then its argument prototype would still apply.  */
6748 #ifdef __cplusplus
6749 extern "C"
6750 #endif
6751 char dld_link ();
6752 int
6753 main ()
6754 {
6755 return dld_link ();
6756   ;
6757   return 0;
6758 }
6759 _ACEOF
6760 if ac_fn_c_try_link "$LINENO"; then :
6761   ac_cv_lib_dld_dld_link=yes
6762 else
6763   ac_cv_lib_dld_dld_link=no
6764 fi
6765 rm -f core conftest.err conftest.$ac_objext \
6766     conftest$ac_exeext conftest.$ac_ext
6767 LIBS=$ac_check_lib_save_LIBS
6768 fi
6769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
6770 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
6771 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
6772   svn_sqlite_dso_ldflags="-ldld"
6773 fi
6774
6775
6776 fi
6777
6778
6779 fi
6780
6781
6782 fi
6783
6784
6785 fi
6786
6787
6788 fi
6789
6790     ;;
6791   esac
6792
6793   { $as_echo "$as_me:${as_lineno-$LINENO}: checking additional libraries for sqlite" >&5
6794 $as_echo_n "checking additional libraries for sqlite... " >&6; }
6795   if test -n "$svn_sqlite_dso_ldflags"; then
6796     { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${svn_sqlite_dso_ldflags}" >&5
6797 $as_echo "${svn_sqlite_dso_ldflags}" >&6; }
6798   else
6799     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6800 $as_echo "none" >&6; }
6801   fi
6802
6803
6804 $as_echo "#define SVN_SQLITE_INLINE 1" >>confdefs.h
6805
6806                   SVN_SQLITE_INCLUDES="-I`dirname $sqlite_amalg`"
6807                   if test -n "$svn_sqlite_dso_ldflags"; then
6808                     SVN_SQLITE_LIBS="$svn_sqlite_dso_ldflags -lpthread"
6809                   else
6810                     SVN_SQLITE_LIBS="-lpthread"
6811                   fi
6812                   svn_lib_sqlite="yes"
6813 else
6814   { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported amalgamation SQLite version" >&5
6815 $as_echo "unsupported amalgamation SQLite version" >&6; }
6816 fi
6817 rm -f conftest*
6818
6819   fi
6820
6821
6822     if test -z "$svn_lib_sqlite"; then
6823
6824   sqlite_amalg="$abs_builddir/sqlite-amalgamation/sqlite3.c"
6825   { $as_echo "$as_me:${as_lineno-$LINENO}: checking sqlite amalgamation" >&5
6826 $as_echo_n "checking sqlite amalgamation... " >&6; }
6827   if test ! -e $sqlite_amalg; then
6828     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6829 $as_echo "no" >&6; }
6830   else
6831     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6832 $as_echo "yes" >&6; }
6833     { $as_echo "$as_me:${as_lineno-$LINENO}: checking sqlite amalgamation file version" >&5
6834 $as_echo_n "checking sqlite amalgamation file version... " >&6; }
6835     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6836 /* end confdefs.h.  */
6837
6838 #include "$sqlite_amalg"
6839 #if SQLITE_VERSION_NUMBER >= $sqlite_min_ver_num
6840 SQLITE_VERSION_OKAY
6841 #endif
6842 _ACEOF
6843 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6844   $EGREP "SQLITE_VERSION_OKAY" >/dev/null 2>&1; then :
6845   { $as_echo "$as_me:${as_lineno-$LINENO}: result: amalgamation found and is okay" >&5
6846 $as_echo "amalgamation found and is okay" >&6; }
6847
6848   case $host_os in
6849   beos* | mingw* | pw32* | cegcc* | cygwin*)
6850     svn_sqlite_dso_ldflags=
6851     ;;
6852
6853   darwin*)
6854   # if libdl is installed we need to link against it
6855     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
6856 $as_echo_n "checking for dlopen in -ldl... " >&6; }
6857 if ${ac_cv_lib_dl_dlopen+:} false; then :
6858   $as_echo_n "(cached) " >&6
6859 else
6860   ac_check_lib_save_LIBS=$LIBS
6861 LIBS="-ldl  $LIBS"
6862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6863 /* end confdefs.h.  */
6864
6865 /* Override any GCC internal prototype to avoid an error.
6866    Use char because int might match the return type of a GCC
6867    builtin and then its argument prototype would still apply.  */
6868 #ifdef __cplusplus
6869 extern "C"
6870 #endif
6871 char dlopen ();
6872 int
6873 main ()
6874 {
6875 return dlopen ();
6876   ;
6877   return 0;
6878 }
6879 _ACEOF
6880 if ac_fn_c_try_link "$LINENO"; then :
6881   ac_cv_lib_dl_dlopen=yes
6882 else
6883   ac_cv_lib_dl_dlopen=no
6884 fi
6885 rm -f core conftest.err conftest.$ac_objext \
6886     conftest$ac_exeext conftest.$ac_ext
6887 LIBS=$ac_check_lib_save_LIBS
6888 fi
6889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
6890 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
6891 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
6892   lt_cv_dlopen="dlopen" svn_sqlite_dso_ldflags="-ldl"
6893 else
6894
6895     svn_sqlite_dso_ldflags=
6896
6897 fi
6898
6899     ;;
6900
6901   *)
6902     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
6903 if test "x$ac_cv_func_shl_load" = xyes; then :
6904   svn_sqlite_dso_ldflags=
6905 else
6906   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
6907 $as_echo_n "checking for shl_load in -ldld... " >&6; }
6908 if ${ac_cv_lib_dld_shl_load+:} false; then :
6909   $as_echo_n "(cached) " >&6
6910 else
6911   ac_check_lib_save_LIBS=$LIBS
6912 LIBS="-ldld  $LIBS"
6913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6914 /* end confdefs.h.  */
6915
6916 /* Override any GCC internal prototype to avoid an error.
6917    Use char because int might match the return type of a GCC
6918    builtin and then its argument prototype would still apply.  */
6919 #ifdef __cplusplus
6920 extern "C"
6921 #endif
6922 char shl_load ();
6923 int
6924 main ()
6925 {
6926 return shl_load ();
6927   ;
6928   return 0;
6929 }
6930 _ACEOF
6931 if ac_fn_c_try_link "$LINENO"; then :
6932   ac_cv_lib_dld_shl_load=yes
6933 else
6934   ac_cv_lib_dld_shl_load=no
6935 fi
6936 rm -f core conftest.err conftest.$ac_objext \
6937     conftest$ac_exeext conftest.$ac_ext
6938 LIBS=$ac_check_lib_save_LIBS
6939 fi
6940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
6941 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
6942 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
6943   svn_sqlite_dso_ldflags="-ldld"
6944 else
6945   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
6946 if test "x$ac_cv_func_dlopen" = xyes; then :
6947   svn_sqlite_dso_ldflags=
6948 else
6949   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
6950 $as_echo_n "checking for dlopen in -ldl... " >&6; }
6951 if ${ac_cv_lib_dl_dlopen+:} false; then :
6952   $as_echo_n "(cached) " >&6
6953 else
6954   ac_check_lib_save_LIBS=$LIBS
6955 LIBS="-ldl  $LIBS"
6956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6957 /* end confdefs.h.  */
6958
6959 /* Override any GCC internal prototype to avoid an error.
6960    Use char because int might match the return type of a GCC
6961    builtin and then its argument prototype would still apply.  */
6962 #ifdef __cplusplus
6963 extern "C"
6964 #endif
6965 char dlopen ();
6966 int
6967 main ()
6968 {
6969 return dlopen ();
6970   ;
6971   return 0;
6972 }
6973 _ACEOF
6974 if ac_fn_c_try_link "$LINENO"; then :
6975   ac_cv_lib_dl_dlopen=yes
6976 else
6977   ac_cv_lib_dl_dlopen=no
6978 fi
6979 rm -f core conftest.err conftest.$ac_objext \
6980     conftest$ac_exeext conftest.$ac_ext
6981 LIBS=$ac_check_lib_save_LIBS
6982 fi
6983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
6984 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
6985 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
6986   svn_sqlite_dso_ldflags="-ldl"
6987 else
6988   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
6989 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
6990 if ${ac_cv_lib_svld_dlopen+:} false; then :
6991   $as_echo_n "(cached) " >&6
6992 else
6993   ac_check_lib_save_LIBS=$LIBS
6994 LIBS="-lsvld  $LIBS"
6995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6996 /* end confdefs.h.  */
6997
6998 /* Override any GCC internal prototype to avoid an error.
6999    Use char because int might match the return type of a GCC
7000    builtin and then its argument prototype would still apply.  */
7001 #ifdef __cplusplus
7002 extern "C"
7003 #endif
7004 char dlopen ();
7005 int
7006 main ()
7007 {
7008 return dlopen ();
7009   ;
7010   return 0;
7011 }
7012 _ACEOF
7013 if ac_fn_c_try_link "$LINENO"; then :
7014   ac_cv_lib_svld_dlopen=yes
7015 else
7016   ac_cv_lib_svld_dlopen=no
7017 fi
7018 rm -f core conftest.err conftest.$ac_objext \
7019     conftest$ac_exeext conftest.$ac_ext
7020 LIBS=$ac_check_lib_save_LIBS
7021 fi
7022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
7023 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
7024 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
7025   svn_sqlite_dso_ldflags="-lsvld"
7026 else
7027   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
7028 $as_echo_n "checking for dld_link in -ldld... " >&6; }
7029 if ${ac_cv_lib_dld_dld_link+:} false; then :
7030   $as_echo_n "(cached) " >&6
7031 else
7032   ac_check_lib_save_LIBS=$LIBS
7033 LIBS="-ldld  $LIBS"
7034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7035 /* end confdefs.h.  */
7036
7037 /* Override any GCC internal prototype to avoid an error.
7038    Use char because int might match the return type of a GCC
7039    builtin and then its argument prototype would still apply.  */
7040 #ifdef __cplusplus
7041 extern "C"
7042 #endif
7043 char dld_link ();
7044 int
7045 main ()
7046 {
7047 return dld_link ();
7048   ;
7049   return 0;
7050 }
7051 _ACEOF
7052 if ac_fn_c_try_link "$LINENO"; then :
7053   ac_cv_lib_dld_dld_link=yes
7054 else
7055   ac_cv_lib_dld_dld_link=no
7056 fi
7057 rm -f core conftest.err conftest.$ac_objext \
7058     conftest$ac_exeext conftest.$ac_ext
7059 LIBS=$ac_check_lib_save_LIBS
7060 fi
7061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
7062 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
7063 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
7064   svn_sqlite_dso_ldflags="-ldld"
7065 fi
7066
7067
7068 fi
7069
7070
7071 fi
7072
7073
7074 fi
7075
7076
7077 fi
7078
7079
7080 fi
7081
7082     ;;
7083   esac
7084
7085   { $as_echo "$as_me:${as_lineno-$LINENO}: checking additional libraries for sqlite" >&5
7086 $as_echo_n "checking additional libraries for sqlite... " >&6; }
7087   if test -n "$svn_sqlite_dso_ldflags"; then
7088     { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${svn_sqlite_dso_ldflags}" >&5
7089 $as_echo "${svn_sqlite_dso_ldflags}" >&6; }
7090   else
7091     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
7092 $as_echo "none" >&6; }
7093   fi
7094
7095
7096 $as_echo "#define SVN_SQLITE_INLINE 1" >>confdefs.h
7097
7098                   SVN_SQLITE_INCLUDES="-I`dirname $sqlite_amalg`"
7099                   if test -n "$svn_sqlite_dso_ldflags"; then
7100                     SVN_SQLITE_LIBS="$svn_sqlite_dso_ldflags -lpthread"
7101                   else
7102                     SVN_SQLITE_LIBS="-lpthread"
7103                   fi
7104                   svn_lib_sqlite="yes"
7105 else
7106   { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported amalgamation SQLite version" >&5
7107 $as_echo "unsupported amalgamation SQLite version" >&6; }
7108 fi
7109 rm -f conftest*
7110
7111   fi
7112
7113     fi
7114
7115     if test -z "$svn_lib_sqlite"; then
7116
7117   if test -z ""; then
7118     sqlite_dir=""
7119     sqlite_include="sqlite3.h"
7120   else
7121     sqlite_dir=""
7122     sqlite_include="/include/sqlite3.h"
7123   fi
7124
7125   save_CPPFLAGS="$CPPFLAGS"
7126   save_LDFLAGS="$LDFLAGS"
7127
7128   if test ! -z ""; then
7129     CPPFLAGS="$CPPFLAGS -I$sqlite_dir/include"
7130     LDFLAGS="$LDFLAGS -L$sqlite_dir/lib"
7131   fi
7132
7133   ac_fn_c_check_header_mongrel "$LINENO" "sqlite3.h" "ac_cv_header_sqlite3_h" "$ac_includes_default"
7134 if test "x$ac_cv_header_sqlite3_h" = xyes; then :
7135
7136       { $as_echo "$as_me:${as_lineno-$LINENO}: checking sqlite library version (via header)" >&5
7137 $as_echo_n "checking sqlite library version (via header)... " >&6; }
7138       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7139 /* end confdefs.h.  */
7140
7141 #include "$sqlite_include"
7142 #if SQLITE_VERSION_NUMBER >= $sqlite_min_ver_num
7143 SQLITE_VERSION_OKAY
7144 #endif
7145 _ACEOF
7146 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7147   $EGREP "SQLITE_VERSION_OKAY" >/dev/null 2>&1; then :
7148   { $as_echo "$as_me:${as_lineno-$LINENO}: result: okay" >&5
7149 $as_echo "okay" >&6; }
7150                    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite3_close in -lsqlite3" >&5
7151 $as_echo_n "checking for sqlite3_close in -lsqlite3... " >&6; }
7152 if ${ac_cv_lib_sqlite3_sqlite3_close+:} false; then :
7153   $as_echo_n "(cached) " >&6
7154 else
7155   ac_check_lib_save_LIBS=$LIBS
7156 LIBS="-lsqlite3  $LIBS"
7157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7158 /* end confdefs.h.  */
7159
7160 /* Override any GCC internal prototype to avoid an error.
7161    Use char because int might match the return type of a GCC
7162    builtin and then its argument prototype would still apply.  */
7163 #ifdef __cplusplus
7164 extern "C"
7165 #endif
7166 char sqlite3_close ();
7167 int
7168 main ()
7169 {
7170 return sqlite3_close ();
7171   ;
7172   return 0;
7173 }
7174 _ACEOF
7175 if ac_fn_c_try_link "$LINENO"; then :
7176   ac_cv_lib_sqlite3_sqlite3_close=yes
7177 else
7178   ac_cv_lib_sqlite3_sqlite3_close=no
7179 fi
7180 rm -f core conftest.err conftest.$ac_objext \
7181     conftest$ac_exeext conftest.$ac_ext
7182 LIBS=$ac_check_lib_save_LIBS
7183 fi
7184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_close" >&5
7185 $as_echo "$ac_cv_lib_sqlite3_sqlite3_close" >&6; }
7186 if test "x$ac_cv_lib_sqlite3_sqlite3_close" = xyes; then :
7187
7188                       svn_lib_sqlite="yes"
7189                       if test -z "$sqlite_dir" -o ! -d "$sqlite_dir"; then
7190                         SVN_SQLITE_LIBS="-lsqlite3"
7191                       else
7192                         SVN_SQLITE_INCLUDES="-I$sqlite_dir/include"
7193                         SVN_SQLITE_LIBS="`
7194   input_flags="-L$sqlite_dir/lib -lsqlite3"
7195   output_flags=""
7196   filtered_dirs="/lib /lib64 /usr/lib /usr/lib64"
7197   for flag in $input_flags; do
7198     filter="no"
7199     for dir in $filtered_dirs; do
7200       if test "$flag" = "-L$dir" || test "$flag" = "-L$dir/"; then
7201         filter="yes"
7202         break
7203       fi
7204     done
7205     if test "$filter" = "no"; then
7206       output_flags="$output_flags $flag"
7207     fi
7208   done
7209   if test -n "$output_flags"; then
7210     printf "%s" "${output_flags# }"
7211   fi
7212 `"
7213                       fi
7214
7215 fi
7216
7217 else
7218   { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported SQLite version" >&5
7219 $as_echo "unsupported SQLite version" >&6; }
7220 fi
7221 rm -f conftest*
7222
7223
7224 fi
7225
7226
7227
7228   CPPFLAGS="$save_CPPFLAGS"
7229   LDFLAGS="$save_LDFLAGS"
7230
7231     fi
7232
7233     if test -z "$svn_lib_sqlite"; then
7234
7235     if test -n "$PKG_CONFIG"; then
7236       { $as_echo "$as_me:${as_lineno-$LINENO}: checking sqlite library version (via pkg-config)" >&5
7237 $as_echo_n "checking sqlite library version (via pkg-config)... " >&6; }
7238       sqlite_version=`$PKG_CONFIG $SQLITE_PKGNAME --modversion --silence-errors`
7239
7240       if test -n "$sqlite_version"; then
7241
7242   version_string="$sqlite_version"
7243
7244   major=`expr $version_string : '\([0-9]*\)'`
7245   minor=`expr $version_string : '[0-9]*\.\([0-9]*\)'`
7246   micro=`expr $version_string : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
7247   if test -z "$micro"; then
7248     micro=0
7249   fi
7250   sqlite_ver_num=`expr $major \* 1000000 \
7251         \+ $minor \* 1000 \
7252         \+ $micro`
7253
7254
7255         if test "$sqlite_ver_num" -ge "$sqlite_min_ver_num"; then
7256           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sqlite_version" >&5
7257 $as_echo "$sqlite_version" >&6; }
7258           svn_lib_sqlite="yes"
7259           SVN_SQLITE_INCLUDES="`$PKG_CONFIG $SQLITE_PKGNAME --cflags`"
7260           SVN_SQLITE_LIBS="`$PKG_CONFIG $SQLITE_PKGNAME --libs`"
7261         else
7262           { $as_echo "$as_me:${as_lineno-$LINENO}: result: none or unsupported $sqlite_version" >&5
7263 $as_echo "none or unsupported $sqlite_version" >&6; }
7264         fi
7265       fi
7266     fi
7267
7268     if test -z "$svn_lib_sqlite"; then
7269       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7270 $as_echo "no" >&6; }
7271     fi
7272
7273     fi
7274
7275     if test -z "$svn_lib_sqlite"; then
7276
7277   echo ""
7278   echo "An appropriate version of sqlite could not be found.  We recommmend"
7279   echo "${SQLITE_RECOMMENDED_VER}, but require at least ${SQLITE_MINIMUM_VER}."
7280   echo "Please either install a newer sqlite on this system"
7281   echo ""
7282   echo "or"
7283   echo ""
7284   echo "get the sqlite ${SQLITE_RECOMMENDED_VER} amalgamation from:"
7285   echo "    ${SQLITE_URL}"
7286   echo "unpack the archive using unzip and rename the resulting"
7287   echo "directory to:"
7288   echo "$abs_srcdir/sqlite-amalgamation"
7289   if test x"$abs_srcdir" != x"$abs_builddir"; then
7290     echo "or to:"
7291     echo "$abs_builddir/sqlite-amalgamation"
7292   fi
7293   echo ""
7294   as_fn_error $? "Subversion requires SQLite" "$LINENO" 5
7295
7296     fi
7297
7298 fi
7299
7300
7301
7302
7303
7304
7305 # Check whether --enable-sqlite-compatibility-version was given.
7306 if test "${enable_sqlite_compatibility_version+set}" = set; then :
7307   enableval=$enable_sqlite_compatibility_version; sqlite_compat_ver=$enableval
7308 else
7309   sqlite_compat_ver=no
7310 fi
7311
7312
7313 if test -n "$sqlite_compat_ver" && test "$sqlite_compat_ver" != no; then
7314
7315   version_string="$sqlite_compat_ver"
7316
7317   major=`expr $version_string : '\([0-9]*\)'`
7318   minor=`expr $version_string : '[0-9]*\.\([0-9]*\)'`
7319   micro=`expr $version_string : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
7320   if test -z "$micro"; then
7321     micro=0
7322   fi
7323   sqlite_compat_ver_num=`expr $major \* 1000000 \
7324         \+ $minor \* 1000 \
7325         \+ $micro`
7326
7327   CFLAGS="-DSVN_SQLITE_MIN_VERSION='\"$sqlite_compat_ver\"' $CFLAGS"
7328   CFLAGS="-DSVN_SQLITE_MIN_VERSION_NUMBER=$sqlite_compat_ver_num $CFLAGS"
7329 fi
7330
7331
7332   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler provides atomic builtins" >&5
7333 $as_echo_n "checking whether the compiler provides atomic builtins... " >&6; }
7334 if ${svn_cv_atomic_builtins+:} false; then :
7335   $as_echo_n "(cached) " >&6
7336 else
7337   if test "$cross_compiling" = yes; then :
7338   svn_cv_atomic_builtins=no
7339 else
7340   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7341 /* end confdefs.h.  */
7342
7343   int main()
7344   {
7345       unsigned long long val = 1010, tmp, *mem = &val;
7346
7347       if (__sync_fetch_and_add(&val, 1010) != 1010 || val != 2020)
7348           return 1;
7349
7350       tmp = val;
7351
7352       if (__sync_fetch_and_sub(mem, 1010) != tmp || val != 1010)
7353           return 1;
7354
7355       if (__sync_sub_and_fetch(&val, 1010) != 0 || val != 0)
7356           return 1;
7357
7358       tmp = 3030;
7359
7360       if (__sync_val_compare_and_swap(mem, 0, tmp) != 0 || val != tmp)
7361           return 1;
7362
7363       if (__sync_lock_test_and_set(&val, 4040) != 3030)
7364           return 1;
7365
7366       mem = &tmp;
7367
7368       if (__sync_val_compare_and_swap(&mem, &tmp, &val) != &tmp)
7369           return 1;
7370
7371       __sync_synchronize();
7372
7373       if (mem != &val)
7374           return 1;
7375
7376       return 0;
7377   }
7378 _ACEOF
7379 if ac_fn_c_try_run "$LINENO"; then :
7380   svn_cv_atomic_builtins=yes
7381 else
7382   svn_cv_atomic_builtins=no
7383 fi
7384 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7385   conftest.$ac_objext conftest.beam conftest.$ac_ext
7386 fi
7387
7388 fi
7389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $svn_cv_atomic_builtins" >&5
7390 $as_echo "$svn_cv_atomic_builtins" >&6; }
7391
7392 if test "$svn_cv_atomic_builtins" = "yes"; then
7393
7394 $as_echo "#define SVN_HAS_ATOMIC_BUILTINS 1" >>confdefs.h
7395
7396 fi
7397
7398
7399 if test "${bindir}" = '${exec_prefix}/bin'; then
7400         if test "${exec_prefix}" = "NONE"; then
7401                 if test "${prefix}" = "NONE"; then
7402                         SVN_BINDIR="${ac_default_prefix}/bin"
7403                 else
7404                         SVN_BINDIR="${prefix}/bin"
7405                 fi
7406         else
7407                 SVN_BINDIR="${exec_prefix}/bin"
7408         fi
7409 else
7410         SVN_BINDIR="${bindir}"
7411 fi
7412
7413 SVN_BINDIR="`eval echo ${SVN_BINDIR}`"
7414
7415
7416
7417 cat >>confdefs.h <<_ACEOF
7418 #define SVN_BINDIR "${SVN_BINDIR}"
7419 _ACEOF
7420
7421
7422 localedir='${datadir}/locale'
7423
7424
7425 if test "${datadir}" = '${prefix}/share' && test "${prefix}" = "NONE"; then
7426   exp_localedir='${ac_default_prefix}/share/locale'
7427 else
7428   exp_localedir=$localedir
7429 fi
7430
7431 svn_last=
7432 svn_cur=""${exp_localedir}""
7433 while test "x${svn_cur}" != "x${svn_last}";
7434 do
7435   svn_last="${svn_cur}"
7436   svn_cur=`eval "echo ${svn_cur}"`
7437 done
7438 svn_localedir="${svn_cur}"
7439
7440
7441 cat >>confdefs.h <<_ACEOF
7442 #define SVN_LOCALE_DIR "${svn_localedir}"
7443 _ACEOF
7444
7445
7446 { $as_echo "$as_me:${as_lineno-$LINENO}: configuring libtool now" >&5
7447 $as_echo "$as_me: configuring libtool now" >&6;}
7448 case `pwd` in
7449   *\ * | *\     *)
7450     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
7451 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
7452 esac
7453
7454
7455
7456 macro_version='2.4.6'
7457 macro_revision='2.4.6'
7458
7459
7460
7461
7462
7463
7464
7465
7466
7467
7468
7469
7470
7471 ltmain=$ac_aux_dir/ltmain.sh
7472
7473 # Backslashify metacharacters that are still active within
7474 # double-quoted strings.
7475 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7476
7477 # Same as above, but do not quote variable references.
7478 double_quote_subst='s/\(["`\\]\)/\\\1/g'
7479
7480 # Sed substitution to delay expansion of an escaped shell variable in a
7481 # double_quote_subst'ed string.
7482 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7483
7484 # Sed substitution to delay expansion of an escaped single quote.
7485 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7486
7487 # Sed substitution to avoid accidental globbing in evaled expressions
7488 no_glob_subst='s/\*/\\\*/g'
7489
7490 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7491 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
7492 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
7493
7494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
7495 $as_echo_n "checking how to print strings... " >&6; }
7496 # Test print first, because it will be a builtin if present.
7497 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
7498    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
7499   ECHO='print -r --'
7500 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
7501   ECHO='printf %s\n'
7502 else
7503   # Use this function as a fallback that always works.
7504   func_fallback_echo ()
7505   {
7506     eval 'cat <<_LTECHO_EOF
7507 $1
7508 _LTECHO_EOF'
7509   }
7510   ECHO='func_fallback_echo'
7511 fi
7512
7513 # func_echo_all arg...
7514 # Invoke $ECHO with all args, space-separated.
7515 func_echo_all ()
7516 {
7517     $ECHO ""
7518 }
7519
7520 case $ECHO in
7521   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
7522 $as_echo "printf" >&6; } ;;
7523   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
7524 $as_echo "print -r" >&6; } ;;
7525   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
7526 $as_echo "cat" >&6; } ;;
7527 esac
7528
7529
7530
7531
7532
7533
7534
7535
7536
7537
7538
7539
7540
7541
7542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
7543 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
7544 if ${ac_cv_path_SED+:} false; then :
7545   $as_echo_n "(cached) " >&6
7546 else
7547             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
7548      for ac_i in 1 2 3 4 5 6 7; do
7549        ac_script="$ac_script$as_nl$ac_script"
7550      done
7551      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
7552      { ac_script=; unset ac_script;}
7553      if test -z "$SED"; then
7554   ac_path_SED_found=false
7555   # Loop through the user's path and test for each of PROGNAME-LIST
7556   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7557 for as_dir in $PATH
7558 do
7559   IFS=$as_save_IFS
7560   test -z "$as_dir" && as_dir=.
7561     for ac_prog in sed gsed; do
7562     for ac_exec_ext in '' $ac_executable_extensions; do
7563       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
7564       as_fn_executable_p "$ac_path_SED" || continue
7565 # Check for GNU ac_path_SED and select it if it is found.
7566   # Check for GNU $ac_path_SED
7567 case `"$ac_path_SED" --version 2>&1` in
7568 *GNU*)
7569   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
7570 *)
7571   ac_count=0
7572   $as_echo_n 0123456789 >"conftest.in"
7573   while :
7574   do
7575     cat "conftest.in" "conftest.in" >"conftest.tmp"
7576     mv "conftest.tmp" "conftest.in"
7577     cp "conftest.in" "conftest.nl"
7578     $as_echo '' >> "conftest.nl"
7579     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
7580     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7581     as_fn_arith $ac_count + 1 && ac_count=$as_val
7582     if test $ac_count -gt ${ac_path_SED_max-0}; then
7583       # Best one so far, save it but keep looking for a better one
7584       ac_cv_path_SED="$ac_path_SED"
7585       ac_path_SED_max=$ac_count
7586     fi
7587     # 10*(2^10) chars as input seems more than enough
7588     test $ac_count -gt 10 && break
7589   done
7590   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7591 esac
7592
7593       $ac_path_SED_found && break 3
7594     done
7595   done
7596   done
7597 IFS=$as_save_IFS
7598   if test -z "$ac_cv_path_SED"; then
7599     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
7600   fi
7601 else
7602   ac_cv_path_SED=$SED
7603 fi
7604
7605 fi
7606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
7607 $as_echo "$ac_cv_path_SED" >&6; }
7608  SED="$ac_cv_path_SED"
7609   rm -f conftest.sed
7610
7611 test -z "$SED" && SED=sed
7612 Xsed="$SED -e 1s/^X//"
7613
7614
7615
7616
7617
7618
7619
7620
7621
7622
7623
7624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
7625 $as_echo_n "checking for fgrep... " >&6; }
7626 if ${ac_cv_path_FGREP+:} false; then :
7627   $as_echo_n "(cached) " >&6
7628 else
7629   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
7630    then ac_cv_path_FGREP="$GREP -F"
7631    else
7632      if test -z "$FGREP"; then
7633   ac_path_FGREP_found=false
7634   # Loop through the user's path and test for each of PROGNAME-LIST
7635   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7636 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7637 do
7638   IFS=$as_save_IFS
7639   test -z "$as_dir" && as_dir=.
7640     for ac_prog in fgrep; do
7641     for ac_exec_ext in '' $ac_executable_extensions; do
7642       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
7643       as_fn_executable_p "$ac_path_FGREP" || continue
7644 # Check for GNU ac_path_FGREP and select it if it is found.
7645   # Check for GNU $ac_path_FGREP
7646 case `"$ac_path_FGREP" --version 2>&1` in
7647 *GNU*)
7648   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
7649 *)
7650   ac_count=0
7651   $as_echo_n 0123456789 >"conftest.in"
7652   while :
7653   do
7654     cat "conftest.in" "conftest.in" >"conftest.tmp"
7655     mv "conftest.tmp" "conftest.in"
7656     cp "conftest.in" "conftest.nl"
7657     $as_echo 'FGREP' >> "conftest.nl"
7658     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
7659     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7660     as_fn_arith $ac_count + 1 && ac_count=$as_val
7661     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
7662       # Best one so far, save it but keep looking for a better one
7663       ac_cv_path_FGREP="$ac_path_FGREP"
7664       ac_path_FGREP_max=$ac_count
7665     fi
7666     # 10*(2^10) chars as input seems more than enough
7667     test $ac_count -gt 10 && break
7668   done
7669   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7670 esac
7671
7672       $ac_path_FGREP_found && break 3
7673     done
7674   done
7675   done
7676 IFS=$as_save_IFS
7677   if test -z "$ac_cv_path_FGREP"; then
7678     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7679   fi
7680 else
7681   ac_cv_path_FGREP=$FGREP
7682 fi
7683
7684    fi
7685 fi
7686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
7687 $as_echo "$ac_cv_path_FGREP" >&6; }
7688  FGREP="$ac_cv_path_FGREP"
7689
7690
7691 test -z "$GREP" && GREP=grep
7692
7693
7694
7695
7696
7697
7698
7699
7700
7701
7702
7703
7704
7705
7706
7707
7708
7709
7710
7711 # Check whether --with-gnu-ld was given.
7712 if test "${with_gnu_ld+set}" = set; then :
7713   withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
7714 else
7715   with_gnu_ld=no
7716 fi
7717
7718 ac_prog=ld
7719 if test yes = "$GCC"; then
7720   # Check if gcc -print-prog-name=ld gives a path.
7721   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7722 $as_echo_n "checking for ld used by $CC... " >&6; }
7723   case $host in
7724   *-*-mingw*)
7725     # gcc leaves a trailing carriage return, which upsets mingw
7726     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7727   *)
7728     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7729   esac
7730   case $ac_prog in
7731     # Accept absolute paths.
7732     [\\/]* | ?:[\\/]*)
7733       re_direlt='/[^/][^/]*/\.\./'
7734       # Canonicalize the pathname of ld
7735       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
7736       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
7737         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
7738       done
7739       test -z "$LD" && LD=$ac_prog
7740       ;;
7741   "")
7742     # If it fails, then pretend we aren't using GCC.
7743     ac_prog=ld
7744     ;;
7745   *)
7746     # If it is relative, then search for the first ld in PATH.
7747     with_gnu_ld=unknown
7748     ;;
7749   esac
7750 elif test yes = "$with_gnu_ld"; then
7751   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7752 $as_echo_n "checking for GNU ld... " >&6; }
7753 else
7754   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7755 $as_echo_n "checking for non-GNU ld... " >&6; }
7756 fi
7757 if ${lt_cv_path_LD+:} false; then :
7758   $as_echo_n "(cached) " >&6
7759 else
7760   if test -z "$LD"; then
7761   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
7762   for ac_dir in $PATH; do
7763     IFS=$lt_save_ifs
7764     test -z "$ac_dir" && ac_dir=.
7765     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7766       lt_cv_path_LD=$ac_dir/$ac_prog
7767       # Check to see if the program is GNU ld.  I'd rather use --version,
7768       # but apparently some variants of GNU ld only accept -v.
7769       # Break only if it was the GNU/non-GNU ld that we prefer.
7770       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7771       *GNU* | *'with BFD'*)
7772         test no != "$with_gnu_ld" && break
7773         ;;
7774       *)
7775         test yes != "$with_gnu_ld" && break
7776         ;;
7777       esac
7778     fi
7779   done
7780   IFS=$lt_save_ifs
7781 else
7782   lt_cv_path_LD=$LD # Let the user override the test with a path.
7783 fi
7784 fi
7785
7786 LD=$lt_cv_path_LD
7787 if test -n "$LD"; then
7788   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7789 $as_echo "$LD" >&6; }
7790 else
7791   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7792 $as_echo "no" >&6; }
7793 fi
7794 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
7795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7796 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7797 if ${lt_cv_prog_gnu_ld+:} false; then :
7798   $as_echo_n "(cached) " >&6
7799 else
7800   # I'd rather use --version here, but apparently some GNU lds only accept -v.
7801 case `$LD -v 2>&1 </dev/null` in
7802 *GNU* | *'with BFD'*)
7803   lt_cv_prog_gnu_ld=yes
7804   ;;
7805 *)
7806   lt_cv_prog_gnu_ld=no
7807   ;;
7808 esac
7809 fi
7810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
7811 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
7812 with_gnu_ld=$lt_cv_prog_gnu_ld
7813
7814
7815
7816
7817
7818
7819
7820
7821
7822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
7823 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
7824 if ${lt_cv_path_NM+:} false; then :
7825   $as_echo_n "(cached) " >&6
7826 else
7827   if test -n "$NM"; then
7828   # Let the user override the test.
7829   lt_cv_path_NM=$NM
7830 else
7831   lt_nm_to_check=${ac_tool_prefix}nm
7832   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
7833     lt_nm_to_check="$lt_nm_to_check nm"
7834   fi
7835   for lt_tmp_nm in $lt_nm_to_check; do
7836     lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
7837     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
7838       IFS=$lt_save_ifs
7839       test -z "$ac_dir" && ac_dir=.
7840       tmp_nm=$ac_dir/$lt_tmp_nm
7841       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
7842         # Check to see if the nm accepts a BSD-compat flag.
7843         # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
7844         #   nm: unknown option "B" ignored
7845         # Tru64's nm complains that /dev/null is an invalid object file
7846         # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
7847         case $build_os in
7848         mingw*) lt_bad_file=conftest.nm/nofile ;;
7849         *) lt_bad_file=/dev/null ;;
7850         esac
7851         case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
7852         *$lt_bad_file* | *'Invalid file or object type'*)
7853           lt_cv_path_NM="$tmp_nm -B"
7854           break 2
7855           ;;
7856         *)
7857           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
7858           */dev/null*)
7859             lt_cv_path_NM="$tmp_nm -p"
7860             break 2
7861             ;;
7862           *)
7863             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
7864             continue # so that we can try to find one that supports BSD flags
7865             ;;
7866           esac
7867           ;;
7868         esac
7869       fi
7870     done
7871     IFS=$lt_save_ifs
7872   done
7873   : ${lt_cv_path_NM=no}
7874 fi
7875 fi
7876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
7877 $as_echo "$lt_cv_path_NM" >&6; }
7878 if test no != "$lt_cv_path_NM"; then
7879   NM=$lt_cv_path_NM
7880 else
7881   # Didn't find any BSD compatible name lister, look for dumpbin.
7882   if test -n "$DUMPBIN"; then :
7883     # Let the user override the test.
7884   else
7885     if test -n "$ac_tool_prefix"; then
7886   for ac_prog in dumpbin "link -dump"
7887   do
7888     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7889 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7891 $as_echo_n "checking for $ac_word... " >&6; }
7892 if ${ac_cv_prog_DUMPBIN+:} false; then :
7893   $as_echo_n "(cached) " >&6
7894 else
7895   if test -n "$DUMPBIN"; then
7896   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
7897 else
7898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7899 for as_dir in $PATH
7900 do
7901   IFS=$as_save_IFS
7902   test -z "$as_dir" && as_dir=.
7903     for ac_exec_ext in '' $ac_executable_extensions; do
7904   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7905     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
7906     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7907     break 2
7908   fi
7909 done
7910   done
7911 IFS=$as_save_IFS
7912
7913 fi
7914 fi
7915 DUMPBIN=$ac_cv_prog_DUMPBIN
7916 if test -n "$DUMPBIN"; then
7917   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
7918 $as_echo "$DUMPBIN" >&6; }
7919 else
7920   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7921 $as_echo "no" >&6; }
7922 fi
7923
7924
7925     test -n "$DUMPBIN" && break
7926   done
7927 fi
7928 if test -z "$DUMPBIN"; then
7929   ac_ct_DUMPBIN=$DUMPBIN
7930   for ac_prog in dumpbin "link -dump"
7931 do
7932   # Extract the first word of "$ac_prog", so it can be a program name with args.
7933 set dummy $ac_prog; ac_word=$2
7934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7935 $as_echo_n "checking for $ac_word... " >&6; }
7936 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
7937   $as_echo_n "(cached) " >&6
7938 else
7939   if test -n "$ac_ct_DUMPBIN"; then
7940   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
7941 else
7942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7943 for as_dir in $PATH
7944 do
7945   IFS=$as_save_IFS
7946   test -z "$as_dir" && as_dir=.
7947     for ac_exec_ext in '' $ac_executable_extensions; do
7948   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7949     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
7950     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7951     break 2
7952   fi
7953 done
7954   done
7955 IFS=$as_save_IFS
7956
7957 fi
7958 fi
7959 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
7960 if test -n "$ac_ct_DUMPBIN"; then
7961   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
7962 $as_echo "$ac_ct_DUMPBIN" >&6; }
7963 else
7964   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7965 $as_echo "no" >&6; }
7966 fi
7967
7968
7969   test -n "$ac_ct_DUMPBIN" && break
7970 done
7971
7972   if test "x$ac_ct_DUMPBIN" = x; then
7973     DUMPBIN=":"
7974   else
7975     case $cross_compiling:$ac_tool_warned in
7976 yes:)
7977 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7978 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7979 ac_tool_warned=yes ;;
7980 esac
7981     DUMPBIN=$ac_ct_DUMPBIN
7982   fi
7983 fi
7984
7985     case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
7986     *COFF*)
7987       DUMPBIN="$DUMPBIN -symbols -headers"
7988       ;;
7989     *)
7990       DUMPBIN=:
7991       ;;
7992     esac
7993   fi
7994
7995   if test : != "$DUMPBIN"; then
7996     NM=$DUMPBIN
7997   fi
7998 fi
7999 test -z "$NM" && NM=nm
8000
8001
8002
8003
8004
8005
8006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
8007 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
8008 if ${lt_cv_nm_interface+:} false; then :
8009   $as_echo_n "(cached) " >&6
8010 else
8011   lt_cv_nm_interface="BSD nm"
8012   echo "int some_variable = 0;" > conftest.$ac_ext
8013   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
8014   (eval "$ac_compile" 2>conftest.err)
8015   cat conftest.err >&5
8016   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
8017   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
8018   cat conftest.err >&5
8019   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
8020   cat conftest.out >&5
8021   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
8022     lt_cv_nm_interface="MS dumpbin"
8023   fi
8024   rm -f conftest*
8025 fi
8026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
8027 $as_echo "$lt_cv_nm_interface" >&6; }
8028
8029 # find the maximum length of command line arguments
8030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
8031 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
8032 if ${lt_cv_sys_max_cmd_len+:} false; then :
8033   $as_echo_n "(cached) " >&6
8034 else
8035     i=0
8036   teststring=ABCD
8037
8038   case $build_os in
8039   msdosdjgpp*)
8040     # On DJGPP, this test can blow up pretty badly due to problems in libc
8041     # (any single argument exceeding 2000 bytes causes a buffer overrun
8042     # during glob expansion).  Even if it were fixed, the result of this
8043     # check would be larger than it should be.
8044     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
8045     ;;
8046
8047   gnu*)
8048     # Under GNU Hurd, this test is not required because there is
8049     # no limit to the length of command line arguments.
8050     # Libtool will interpret -1 as no limit whatsoever
8051     lt_cv_sys_max_cmd_len=-1;
8052     ;;
8053
8054   cygwin* | mingw* | cegcc*)
8055     # On Win9x/ME, this test blows up -- it succeeds, but takes
8056     # about 5 minutes as the teststring grows exponentially.
8057     # Worse, since 9x/ME are not pre-emptively multitasking,
8058     # you end up with a "frozen" computer, even though with patience
8059     # the test eventually succeeds (with a max line length of 256k).
8060     # Instead, let's just punt: use the minimum linelength reported by
8061     # all of the supported platforms: 8192 (on NT/2K/XP).
8062     lt_cv_sys_max_cmd_len=8192;
8063     ;;
8064
8065   mint*)
8066     # On MiNT this can take a long time and run out of memory.
8067     lt_cv_sys_max_cmd_len=8192;
8068     ;;
8069
8070   amigaos*)
8071     # On AmigaOS with pdksh, this test takes hours, literally.
8072     # So we just punt and use a minimum line length of 8192.
8073     lt_cv_sys_max_cmd_len=8192;
8074     ;;
8075
8076   bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
8077     # This has been around since 386BSD, at least.  Likely further.
8078     if test -x /sbin/sysctl; then
8079       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
8080     elif test -x /usr/sbin/sysctl; then
8081       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
8082     else
8083       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
8084     fi
8085     # And add a safety zone
8086     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
8087     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
8088     ;;
8089
8090   interix*)
8091     # We know the value 262144 and hardcode it with a safety zone (like BSD)
8092     lt_cv_sys_max_cmd_len=196608
8093     ;;
8094
8095   os2*)
8096     # The test takes a long time on OS/2.
8097     lt_cv_sys_max_cmd_len=8192
8098     ;;
8099
8100   osf*)
8101     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
8102     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
8103     # nice to cause kernel panics so lets avoid the loop below.
8104     # First set a reasonable default.
8105     lt_cv_sys_max_cmd_len=16384
8106     #
8107     if test -x /sbin/sysconfig; then
8108       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
8109         *1*) lt_cv_sys_max_cmd_len=-1 ;;
8110       esac
8111     fi
8112     ;;
8113   sco3.2v5*)
8114     lt_cv_sys_max_cmd_len=102400
8115     ;;
8116   sysv5* | sco5v6* | sysv4.2uw2*)
8117     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
8118     if test -n "$kargmax"; then
8119       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
8120     else
8121       lt_cv_sys_max_cmd_len=32768
8122     fi
8123     ;;
8124   *)
8125     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
8126     if test -n "$lt_cv_sys_max_cmd_len" && \
8127        test undefined != "$lt_cv_sys_max_cmd_len"; then
8128       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
8129       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
8130     else
8131       # Make teststring a little bigger before we do anything with it.
8132       # a 1K string should be a reasonable start.
8133       for i in 1 2 3 4 5 6 7 8; do
8134         teststring=$teststring$teststring
8135       done
8136       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
8137       # If test is not a shell built-in, we'll probably end up computing a
8138       # maximum length that is only half of the actual maximum length, but
8139       # we can't tell.
8140       while { test X`env echo "$teststring$teststring" 2>/dev/null` \
8141                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
8142               test 17 != "$i" # 1/2 MB should be enough
8143       do
8144         i=`expr $i + 1`
8145         teststring=$teststring$teststring
8146       done
8147       # Only check the string length outside the loop.
8148       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
8149       teststring=
8150       # Add a significant safety factor because C++ compilers can tack on
8151       # massive amounts of additional arguments before passing them to the
8152       # linker.  It appears as though 1/2 is a usable value.
8153       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
8154     fi
8155     ;;
8156   esac
8157
8158 fi
8159
8160 if test -n "$lt_cv_sys_max_cmd_len"; then
8161   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
8162 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
8163 else
8164   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
8165 $as_echo "none" >&6; }
8166 fi
8167 max_cmd_len=$lt_cv_sys_max_cmd_len
8168
8169
8170
8171
8172
8173
8174 : ${CP="cp -f"}
8175 : ${MV="mv -f"}
8176 : ${RM="rm -f"}
8177
8178 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
8179   lt_unset=unset
8180 else
8181   lt_unset=false
8182 fi
8183
8184
8185
8186
8187
8188 # test EBCDIC or ASCII
8189 case `echo X|tr X '\101'` in
8190  A) # ASCII based system
8191     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
8192   lt_SP2NL='tr \040 \012'
8193   lt_NL2SP='tr \015\012 \040\040'
8194   ;;
8195  *) # EBCDIC based system
8196   lt_SP2NL='tr \100 \n'
8197   lt_NL2SP='tr \r\n \100\100'
8198   ;;
8199 esac
8200
8201
8202
8203
8204
8205
8206
8207
8208
8209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
8210 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
8211 if ${lt_cv_to_host_file_cmd+:} false; then :
8212   $as_echo_n "(cached) " >&6
8213 else
8214   case $host in
8215   *-*-mingw* )
8216     case $build in
8217       *-*-mingw* ) # actually msys
8218         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
8219         ;;
8220       *-*-cygwin* )
8221         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
8222         ;;
8223       * ) # otherwise, assume *nix
8224         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
8225         ;;
8226     esac
8227     ;;
8228   *-*-cygwin* )
8229     case $build in
8230       *-*-mingw* ) # actually msys
8231         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
8232         ;;
8233       *-*-cygwin* )
8234         lt_cv_to_host_file_cmd=func_convert_file_noop
8235         ;;
8236       * ) # otherwise, assume *nix
8237         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
8238         ;;
8239     esac
8240     ;;
8241   * ) # unhandled hosts (and "normal" native builds)
8242     lt_cv_to_host_file_cmd=func_convert_file_noop
8243     ;;
8244 esac
8245
8246 fi
8247
8248 to_host_file_cmd=$lt_cv_to_host_file_cmd
8249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
8250 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
8251
8252
8253
8254
8255
8256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
8257 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
8258 if ${lt_cv_to_tool_file_cmd+:} false; then :
8259   $as_echo_n "(cached) " >&6
8260 else
8261   #assume ordinary cross tools, or native build.
8262 lt_cv_to_tool_file_cmd=func_convert_file_noop
8263 case $host in
8264   *-*-mingw* )
8265     case $build in
8266       *-*-mingw* ) # actually msys
8267         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
8268         ;;
8269     esac
8270     ;;
8271 esac
8272
8273 fi
8274
8275 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
8276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
8277 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
8278
8279
8280
8281
8282
8283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
8284 $as_echo_n "checking for $LD option to reload object files... " >&6; }
8285 if ${lt_cv_ld_reload_flag+:} false; then :
8286   $as_echo_n "(cached) " >&6
8287 else
8288   lt_cv_ld_reload_flag='-r'
8289 fi
8290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
8291 $as_echo "$lt_cv_ld_reload_flag" >&6; }
8292 reload_flag=$lt_cv_ld_reload_flag
8293 case $reload_flag in
8294 "" | " "*) ;;
8295 *) reload_flag=" $reload_flag" ;;
8296 esac
8297 reload_cmds='$LD$reload_flag -o $output$reload_objs'
8298 case $host_os in
8299   cygwin* | mingw* | pw32* | cegcc*)
8300     if test yes != "$GCC"; then
8301       reload_cmds=false
8302     fi
8303     ;;
8304   darwin*)
8305     if test yes = "$GCC"; then
8306       reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
8307     else
8308       reload_cmds='$LD$reload_flag -o $output$reload_objs'
8309     fi
8310     ;;
8311 esac
8312
8313
8314
8315
8316
8317
8318
8319
8320
8321 if test -n "$ac_tool_prefix"; then
8322   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
8323 set dummy ${ac_tool_prefix}objdump; ac_word=$2
8324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8325 $as_echo_n "checking for $ac_word... " >&6; }
8326 if ${ac_cv_prog_OBJDUMP+:} false; then :
8327   $as_echo_n "(cached) " >&6
8328 else
8329   if test -n "$OBJDUMP"; then
8330   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
8331 else
8332 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8333 for as_dir in $PATH
8334 do
8335   IFS=$as_save_IFS
8336   test -z "$as_dir" && as_dir=.
8337     for ac_exec_ext in '' $ac_executable_extensions; do
8338   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8339     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
8340     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8341     break 2
8342   fi
8343 done
8344   done
8345 IFS=$as_save_IFS
8346
8347 fi
8348 fi
8349 OBJDUMP=$ac_cv_prog_OBJDUMP
8350 if test -n "$OBJDUMP"; then
8351   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
8352 $as_echo "$OBJDUMP" >&6; }
8353 else
8354   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8355 $as_echo "no" >&6; }
8356 fi
8357
8358
8359 fi
8360 if test -z "$ac_cv_prog_OBJDUMP"; then
8361   ac_ct_OBJDUMP=$OBJDUMP
8362   # Extract the first word of "objdump", so it can be a program name with args.
8363 set dummy objdump; ac_word=$2
8364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8365 $as_echo_n "checking for $ac_word... " >&6; }
8366 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
8367   $as_echo_n "(cached) " >&6
8368 else
8369   if test -n "$ac_ct_OBJDUMP"; then
8370   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
8371 else
8372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8373 for as_dir in $PATH
8374 do
8375   IFS=$as_save_IFS
8376   test -z "$as_dir" && as_dir=.
8377     for ac_exec_ext in '' $ac_executable_extensions; do
8378   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8379     ac_cv_prog_ac_ct_OBJDUMP="objdump"
8380     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8381     break 2
8382   fi
8383 done
8384   done
8385 IFS=$as_save_IFS
8386
8387 fi
8388 fi
8389 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
8390 if test -n "$ac_ct_OBJDUMP"; then
8391   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
8392 $as_echo "$ac_ct_OBJDUMP" >&6; }
8393 else
8394   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8395 $as_echo "no" >&6; }
8396 fi
8397
8398   if test "x$ac_ct_OBJDUMP" = x; then
8399     OBJDUMP="false"
8400   else
8401     case $cross_compiling:$ac_tool_warned in
8402 yes:)
8403 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8404 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8405 ac_tool_warned=yes ;;
8406 esac
8407     OBJDUMP=$ac_ct_OBJDUMP
8408   fi
8409 else
8410   OBJDUMP="$ac_cv_prog_OBJDUMP"
8411 fi
8412
8413 test -z "$OBJDUMP" && OBJDUMP=objdump
8414
8415
8416
8417
8418
8419
8420
8421
8422
8423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
8424 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
8425 if ${lt_cv_deplibs_check_method+:} false; then :
8426   $as_echo_n "(cached) " >&6
8427 else
8428   lt_cv_file_magic_cmd='$MAGIC_CMD'
8429 lt_cv_file_magic_test_file=
8430 lt_cv_deplibs_check_method='unknown'
8431 # Need to set the preceding variable on all platforms that support
8432 # interlibrary dependencies.
8433 # 'none' -- dependencies not supported.
8434 # 'unknown' -- same as none, but documents that we really don't know.
8435 # 'pass_all' -- all dependencies passed with no checks.
8436 # 'test_compile' -- check by making test program.
8437 # 'file_magic [[regex]]' -- check by looking for files in library path
8438 # that responds to the $file_magic_cmd with a given extended regex.
8439 # If you have 'file' or equivalent on your system and you're not sure
8440 # whether 'pass_all' will *always* work, you probably want this one.
8441
8442 case $host_os in
8443 aix[4-9]*)
8444   lt_cv_deplibs_check_method=pass_all
8445   ;;
8446
8447 beos*)
8448   lt_cv_deplibs_check_method=pass_all
8449   ;;
8450
8451 bsdi[45]*)
8452   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
8453   lt_cv_file_magic_cmd='/usr/bin/file -L'
8454   lt_cv_file_magic_test_file=/shlib/libc.so
8455   ;;
8456
8457 cygwin*)
8458   # func_win32_libid is a shell function defined in ltmain.sh
8459   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
8460   lt_cv_file_magic_cmd='func_win32_libid'
8461   ;;
8462
8463 mingw* | pw32*)
8464   # Base MSYS/MinGW do not provide the 'file' command needed by
8465   # func_win32_libid shell function, so use a weaker test based on 'objdump',
8466   # unless we find 'file', for example because we are cross-compiling.
8467   if ( file / ) >/dev/null 2>&1; then
8468     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
8469     lt_cv_file_magic_cmd='func_win32_libid'
8470   else
8471     # Keep this pattern in sync with the one in func_win32_libid.
8472     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
8473     lt_cv_file_magic_cmd='$OBJDUMP -f'
8474   fi
8475   ;;
8476
8477 cegcc*)
8478   # use the weaker test based on 'objdump'. See mingw*.
8479   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
8480   lt_cv_file_magic_cmd='$OBJDUMP -f'
8481   ;;
8482
8483 darwin* | rhapsody*)
8484   lt_cv_deplibs_check_method=pass_all
8485   ;;
8486
8487 freebsd* | dragonfly*)
8488   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8489     case $host_cpu in
8490     i*86 )
8491       # Not sure whether the presence of OpenBSD here was a mistake.
8492       # Let's accept both of them until this is cleared up.
8493       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
8494       lt_cv_file_magic_cmd=/usr/bin/file
8495       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
8496       ;;
8497     esac
8498   else
8499     lt_cv_deplibs_check_method=pass_all
8500   fi
8501   ;;
8502
8503 haiku*)
8504   lt_cv_deplibs_check_method=pass_all
8505   ;;
8506
8507 hpux10.20* | hpux11*)
8508   lt_cv_file_magic_cmd=/usr/bin/file
8509   case $host_cpu in
8510   ia64*)
8511     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
8512     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
8513     ;;
8514   hppa*64*)
8515     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]'
8516     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
8517     ;;
8518   *)
8519     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
8520     lt_cv_file_magic_test_file=/usr/lib/libc.sl
8521     ;;
8522   esac
8523   ;;
8524
8525 interix[3-9]*)
8526   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
8527   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
8528   ;;
8529
8530 irix5* | irix6* | nonstopux*)
8531   case $LD in
8532   *-32|*"-32 ") libmagic=32-bit;;
8533   *-n32|*"-n32 ") libmagic=N32;;
8534   *-64|*"-64 ") libmagic=64-bit;;
8535   *) libmagic=never-match;;
8536   esac
8537   lt_cv_deplibs_check_method=pass_all
8538   ;;
8539
8540 # This must be glibc/ELF.
8541 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8542   lt_cv_deplibs_check_method=pass_all
8543   ;;
8544
8545 netbsd*)
8546   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8547     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8548   else
8549     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
8550   fi
8551   ;;
8552
8553 newos6*)
8554   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
8555   lt_cv_file_magic_cmd=/usr/bin/file
8556   lt_cv_file_magic_test_file=/usr/lib/libnls.so
8557   ;;
8558
8559 *nto* | *qnx*)
8560   lt_cv_deplibs_check_method=pass_all
8561   ;;
8562
8563 openbsd* | bitrig*)
8564   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
8565     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
8566   else
8567     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8568   fi
8569   ;;
8570
8571 osf3* | osf4* | osf5*)
8572   lt_cv_deplibs_check_method=pass_all
8573   ;;
8574
8575 rdos*)
8576   lt_cv_deplibs_check_method=pass_all
8577   ;;
8578
8579 solaris*)
8580   lt_cv_deplibs_check_method=pass_all
8581   ;;
8582
8583 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8584   lt_cv_deplibs_check_method=pass_all
8585   ;;
8586
8587 sysv4 | sysv4.3*)
8588   case $host_vendor in
8589   motorola)
8590     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]'
8591     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
8592     ;;
8593   ncr)
8594     lt_cv_deplibs_check_method=pass_all
8595     ;;
8596   sequent)
8597     lt_cv_file_magic_cmd='/bin/file'
8598     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
8599     ;;
8600   sni)
8601     lt_cv_file_magic_cmd='/bin/file'
8602     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
8603     lt_cv_file_magic_test_file=/lib/libc.so
8604     ;;
8605   siemens)
8606     lt_cv_deplibs_check_method=pass_all
8607     ;;
8608   pc)
8609     lt_cv_deplibs_check_method=pass_all
8610     ;;
8611   esac
8612   ;;
8613
8614 tpf*)
8615   lt_cv_deplibs_check_method=pass_all
8616   ;;
8617 os2*)
8618   lt_cv_deplibs_check_method=pass_all
8619   ;;
8620 esac
8621
8622 fi
8623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
8624 $as_echo "$lt_cv_deplibs_check_method" >&6; }
8625
8626 file_magic_glob=
8627 want_nocaseglob=no
8628 if test "$build" = "$host"; then
8629   case $host_os in
8630   mingw* | pw32*)
8631     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
8632       want_nocaseglob=yes
8633     else
8634       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
8635     fi
8636     ;;
8637   esac
8638 fi
8639
8640 file_magic_cmd=$lt_cv_file_magic_cmd
8641 deplibs_check_method=$lt_cv_deplibs_check_method
8642 test -z "$deplibs_check_method" && deplibs_check_method=unknown
8643
8644
8645
8646
8647
8648
8649
8650
8651
8652
8653
8654
8655
8656
8657
8658
8659
8660
8661
8662
8663
8664
8665 if test -n "$ac_tool_prefix"; then
8666   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
8667 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
8668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8669 $as_echo_n "checking for $ac_word... " >&6; }
8670 if ${ac_cv_prog_DLLTOOL+:} false; then :
8671   $as_echo_n "(cached) " >&6
8672 else
8673   if test -n "$DLLTOOL"; then
8674   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8675 else
8676 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8677 for as_dir in $PATH
8678 do
8679   IFS=$as_save_IFS
8680   test -z "$as_dir" && as_dir=.
8681     for ac_exec_ext in '' $ac_executable_extensions; do
8682   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8683     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
8684     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8685     break 2
8686   fi
8687 done
8688   done
8689 IFS=$as_save_IFS
8690
8691 fi
8692 fi
8693 DLLTOOL=$ac_cv_prog_DLLTOOL
8694 if test -n "$DLLTOOL"; then
8695   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8696 $as_echo "$DLLTOOL" >&6; }
8697 else
8698   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8699 $as_echo "no" >&6; }
8700 fi
8701
8702
8703 fi
8704 if test -z "$ac_cv_prog_DLLTOOL"; then
8705   ac_ct_DLLTOOL=$DLLTOOL
8706   # Extract the first word of "dlltool", so it can be a program name with args.
8707 set dummy dlltool; ac_word=$2
8708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8709 $as_echo_n "checking for $ac_word... " >&6; }
8710 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
8711   $as_echo_n "(cached) " >&6
8712 else
8713   if test -n "$ac_ct_DLLTOOL"; then
8714   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
8715 else
8716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8717 for as_dir in $PATH
8718 do
8719   IFS=$as_save_IFS
8720   test -z "$as_dir" && as_dir=.
8721     for ac_exec_ext in '' $ac_executable_extensions; do
8722   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8723     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
8724     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8725     break 2
8726   fi
8727 done
8728   done
8729 IFS=$as_save_IFS
8730
8731 fi
8732 fi
8733 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
8734 if test -n "$ac_ct_DLLTOOL"; then
8735   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
8736 $as_echo "$ac_ct_DLLTOOL" >&6; }
8737 else
8738   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8739 $as_echo "no" >&6; }
8740 fi
8741
8742   if test "x$ac_ct_DLLTOOL" = x; then
8743     DLLTOOL="false"
8744   else
8745     case $cross_compiling:$ac_tool_warned in
8746 yes:)
8747 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8748 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8749 ac_tool_warned=yes ;;
8750 esac
8751     DLLTOOL=$ac_ct_DLLTOOL
8752   fi
8753 else
8754   DLLTOOL="$ac_cv_prog_DLLTOOL"
8755 fi
8756
8757 test -z "$DLLTOOL" && DLLTOOL=dlltool
8758
8759
8760
8761
8762
8763
8764
8765
8766
8767
8768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
8769 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
8770 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
8771   $as_echo_n "(cached) " >&6
8772 else
8773   lt_cv_sharedlib_from_linklib_cmd='unknown'
8774
8775 case $host_os in
8776 cygwin* | mingw* | pw32* | cegcc*)
8777   # two different shell functions defined in ltmain.sh;
8778   # decide which one to use based on capabilities of $DLLTOOL
8779   case `$DLLTOOL --help 2>&1` in
8780   *--identify-strict*)
8781     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
8782     ;;
8783   *)
8784     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
8785     ;;
8786   esac
8787   ;;
8788 *)
8789   # fallback: assume linklib IS sharedlib
8790   lt_cv_sharedlib_from_linklib_cmd=$ECHO
8791   ;;
8792 esac
8793
8794 fi
8795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
8796 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
8797 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
8798 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
8799
8800
8801
8802
8803
8804
8805
8806 if test -n "$ac_tool_prefix"; then
8807   for ac_prog in ar
8808   do
8809     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8810 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8812 $as_echo_n "checking for $ac_word... " >&6; }
8813 if ${ac_cv_prog_AR+:} false; then :
8814   $as_echo_n "(cached) " >&6
8815 else
8816   if test -n "$AR"; then
8817   ac_cv_prog_AR="$AR" # Let the user override the test.
8818 else
8819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8820 for as_dir in $PATH
8821 do
8822   IFS=$as_save_IFS
8823   test -z "$as_dir" && as_dir=.
8824     for ac_exec_ext in '' $ac_executable_extensions; do
8825   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8826     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
8827     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8828     break 2
8829   fi
8830 done
8831   done
8832 IFS=$as_save_IFS
8833
8834 fi
8835 fi
8836 AR=$ac_cv_prog_AR
8837 if test -n "$AR"; then
8838   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8839 $as_echo "$AR" >&6; }
8840 else
8841   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8842 $as_echo "no" >&6; }
8843 fi
8844
8845
8846     test -n "$AR" && break
8847   done
8848 fi
8849 if test -z "$AR"; then
8850   ac_ct_AR=$AR
8851   for ac_prog in ar
8852 do
8853   # Extract the first word of "$ac_prog", so it can be a program name with args.
8854 set dummy $ac_prog; ac_word=$2
8855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8856 $as_echo_n "checking for $ac_word... " >&6; }
8857 if ${ac_cv_prog_ac_ct_AR+:} false; then :
8858   $as_echo_n "(cached) " >&6
8859 else
8860   if test -n "$ac_ct_AR"; then
8861   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8862 else
8863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8864 for as_dir in $PATH
8865 do
8866   IFS=$as_save_IFS
8867   test -z "$as_dir" && as_dir=.
8868     for ac_exec_ext in '' $ac_executable_extensions; do
8869   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8870     ac_cv_prog_ac_ct_AR="$ac_prog"
8871     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8872     break 2
8873   fi
8874 done
8875   done
8876 IFS=$as_save_IFS
8877
8878 fi
8879 fi
8880 ac_ct_AR=$ac_cv_prog_ac_ct_AR
8881 if test -n "$ac_ct_AR"; then
8882   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
8883 $as_echo "$ac_ct_AR" >&6; }
8884 else
8885   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8886 $as_echo "no" >&6; }
8887 fi
8888
8889
8890   test -n "$ac_ct_AR" && break
8891 done
8892
8893   if test "x$ac_ct_AR" = x; then
8894     AR="false"
8895   else
8896     case $cross_compiling:$ac_tool_warned in
8897 yes:)
8898 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8899 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8900 ac_tool_warned=yes ;;
8901 esac
8902     AR=$ac_ct_AR
8903   fi
8904 fi
8905
8906 : ${AR=ar}
8907 : ${AR_FLAGS=cru}
8908
8909
8910
8911
8912
8913
8914
8915
8916
8917
8918
8919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
8920 $as_echo_n "checking for archiver @FILE support... " >&6; }
8921 if ${lt_cv_ar_at_file+:} false; then :
8922   $as_echo_n "(cached) " >&6
8923 else
8924   lt_cv_ar_at_file=no
8925    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8926 /* end confdefs.h.  */
8927
8928 int
8929 main ()
8930 {
8931
8932   ;
8933   return 0;
8934 }
8935 _ACEOF
8936 if ac_fn_c_try_compile "$LINENO"; then :
8937   echo conftest.$ac_objext > conftest.lst
8938       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
8939       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
8940   (eval $lt_ar_try) 2>&5
8941   ac_status=$?
8942   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8943   test $ac_status = 0; }
8944       if test 0 -eq "$ac_status"; then
8945         # Ensure the archiver fails upon bogus file names.
8946         rm -f conftest.$ac_objext libconftest.a
8947         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
8948   (eval $lt_ar_try) 2>&5
8949   ac_status=$?
8950   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8951   test $ac_status = 0; }
8952         if test 0 -ne "$ac_status"; then
8953           lt_cv_ar_at_file=@
8954         fi
8955       fi
8956       rm -f conftest.* libconftest.a
8957
8958 fi
8959 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8960
8961 fi
8962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
8963 $as_echo "$lt_cv_ar_at_file" >&6; }
8964
8965 if test no = "$lt_cv_ar_at_file"; then
8966   archiver_list_spec=
8967 else
8968   archiver_list_spec=$lt_cv_ar_at_file
8969 fi
8970
8971
8972
8973
8974
8975
8976
8977 if test -n "$ac_tool_prefix"; then
8978   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8979 set dummy ${ac_tool_prefix}strip; ac_word=$2
8980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8981 $as_echo_n "checking for $ac_word... " >&6; }
8982 if ${ac_cv_prog_STRIP+:} false; then :
8983   $as_echo_n "(cached) " >&6
8984 else
8985   if test -n "$STRIP"; then
8986   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8987 else
8988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8989 for as_dir in $PATH
8990 do
8991   IFS=$as_save_IFS
8992   test -z "$as_dir" && as_dir=.
8993     for ac_exec_ext in '' $ac_executable_extensions; do
8994   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8995     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8996     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8997     break 2
8998   fi
8999 done
9000   done
9001 IFS=$as_save_IFS
9002
9003 fi
9004 fi
9005 STRIP=$ac_cv_prog_STRIP
9006 if test -n "$STRIP"; then
9007   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9008 $as_echo "$STRIP" >&6; }
9009 else
9010   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9011 $as_echo "no" >&6; }
9012 fi
9013
9014
9015 fi
9016 if test -z "$ac_cv_prog_STRIP"; then
9017   ac_ct_STRIP=$STRIP
9018   # Extract the first word of "strip", so it can be a program name with args.
9019 set dummy strip; ac_word=$2
9020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9021 $as_echo_n "checking for $ac_word... " >&6; }
9022 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
9023   $as_echo_n "(cached) " >&6
9024 else
9025   if test -n "$ac_ct_STRIP"; then
9026   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
9027 else
9028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9029 for as_dir in $PATH
9030 do
9031   IFS=$as_save_IFS
9032   test -z "$as_dir" && as_dir=.
9033     for ac_exec_ext in '' $ac_executable_extensions; do
9034   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9035     ac_cv_prog_ac_ct_STRIP="strip"
9036     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9037     break 2
9038   fi
9039 done
9040   done
9041 IFS=$as_save_IFS
9042
9043 fi
9044 fi
9045 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
9046 if test -n "$ac_ct_STRIP"; then
9047   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
9048 $as_echo "$ac_ct_STRIP" >&6; }
9049 else
9050   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9051 $as_echo "no" >&6; }
9052 fi
9053
9054   if test "x$ac_ct_STRIP" = x; then
9055     STRIP=":"
9056   else
9057     case $cross_compiling:$ac_tool_warned in
9058 yes:)
9059 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9060 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9061 ac_tool_warned=yes ;;
9062 esac
9063     STRIP=$ac_ct_STRIP
9064   fi
9065 else
9066   STRIP="$ac_cv_prog_STRIP"
9067 fi
9068
9069 test -z "$STRIP" && STRIP=:
9070
9071
9072
9073
9074
9075
9076 if test -n "$ac_tool_prefix"; then
9077   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
9078 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
9079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9080 $as_echo_n "checking for $ac_word... " >&6; }
9081 if ${ac_cv_prog_RANLIB+:} false; then :
9082   $as_echo_n "(cached) " >&6
9083 else
9084   if test -n "$RANLIB"; then
9085   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9086 else
9087 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9088 for as_dir in $PATH
9089 do
9090   IFS=$as_save_IFS
9091   test -z "$as_dir" && as_dir=.
9092     for ac_exec_ext in '' $ac_executable_extensions; do
9093   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9094     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
9095     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9096     break 2
9097   fi
9098 done
9099   done
9100 IFS=$as_save_IFS
9101
9102 fi
9103 fi
9104 RANLIB=$ac_cv_prog_RANLIB
9105 if test -n "$RANLIB"; then
9106   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9107 $as_echo "$RANLIB" >&6; }
9108 else
9109   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9110 $as_echo "no" >&6; }
9111 fi
9112
9113
9114 fi
9115 if test -z "$ac_cv_prog_RANLIB"; then
9116   ac_ct_RANLIB=$RANLIB
9117   # Extract the first word of "ranlib", so it can be a program name with args.
9118 set dummy ranlib; ac_word=$2
9119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9120 $as_echo_n "checking for $ac_word... " >&6; }
9121 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
9122   $as_echo_n "(cached) " >&6
9123 else
9124   if test -n "$ac_ct_RANLIB"; then
9125   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
9126 else
9127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9128 for as_dir in $PATH
9129 do
9130   IFS=$as_save_IFS
9131   test -z "$as_dir" && as_dir=.
9132     for ac_exec_ext in '' $ac_executable_extensions; do
9133   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9134     ac_cv_prog_ac_ct_RANLIB="ranlib"
9135     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9136     break 2
9137   fi
9138 done
9139   done
9140 IFS=$as_save_IFS
9141
9142 fi
9143 fi
9144 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
9145 if test -n "$ac_ct_RANLIB"; then
9146   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
9147 $as_echo "$ac_ct_RANLIB" >&6; }
9148 else
9149   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9150 $as_echo "no" >&6; }
9151 fi
9152
9153   if test "x$ac_ct_RANLIB" = x; then
9154     RANLIB=":"
9155   else
9156     case $cross_compiling:$ac_tool_warned in
9157 yes:)
9158 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9159 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9160 ac_tool_warned=yes ;;
9161 esac
9162     RANLIB=$ac_ct_RANLIB
9163   fi
9164 else
9165   RANLIB="$ac_cv_prog_RANLIB"
9166 fi
9167
9168 test -z "$RANLIB" && RANLIB=:
9169
9170
9171
9172
9173
9174
9175 # Determine commands to create old-style static archives.
9176 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
9177 old_postinstall_cmds='chmod 644 $oldlib'
9178 old_postuninstall_cmds=
9179
9180 if test -n "$RANLIB"; then
9181   case $host_os in
9182   bitrig* | openbsd*)
9183     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
9184     ;;
9185   *)
9186     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
9187     ;;
9188   esac
9189   old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
9190 fi
9191
9192 case $host_os in
9193   darwin*)
9194     lock_old_archive_extraction=yes ;;
9195   *)
9196     lock_old_archive_extraction=no ;;
9197 esac
9198
9199
9200
9201
9202
9203
9204
9205
9206
9207
9208
9209
9210
9211
9212
9213
9214
9215
9216
9217
9218
9219 for ac_prog in gawk mawk nawk awk
9220 do
9221   # Extract the first word of "$ac_prog", so it can be a program name with args.
9222 set dummy $ac_prog; ac_word=$2
9223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9224 $as_echo_n "checking for $ac_word... " >&6; }
9225 if ${ac_cv_prog_AWK+:} false; then :
9226   $as_echo_n "(cached) " >&6
9227 else
9228   if test -n "$AWK"; then
9229   ac_cv_prog_AWK="$AWK" # Let the user override the test.
9230 else
9231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9232 for as_dir in $PATH
9233 do
9234   IFS=$as_save_IFS
9235   test -z "$as_dir" && as_dir=.
9236     for ac_exec_ext in '' $ac_executable_extensions; do
9237   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9238     ac_cv_prog_AWK="$ac_prog"
9239     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9240     break 2
9241   fi
9242 done
9243   done
9244 IFS=$as_save_IFS
9245
9246 fi
9247 fi
9248 AWK=$ac_cv_prog_AWK
9249 if test -n "$AWK"; then
9250   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
9251 $as_echo "$AWK" >&6; }
9252 else
9253   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9254 $as_echo "no" >&6; }
9255 fi
9256
9257
9258   test -n "$AWK" && break
9259 done
9260
9261
9262
9263
9264
9265
9266
9267
9268
9269
9270
9271
9272
9273
9274
9275
9276
9277
9278
9279 # If no C compiler was specified, use CC.
9280 LTCC=${LTCC-"$CC"}
9281
9282 # If no C compiler flags were specified, use CFLAGS.
9283 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9284
9285 # Allow CC to be a program name with arguments.
9286 compiler=$CC
9287
9288
9289 # Check for command to grab the raw symbol name followed by C symbol from nm.
9290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
9291 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
9292 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
9293   $as_echo_n "(cached) " >&6
9294 else
9295
9296 # These are sane defaults that work on at least a few old systems.
9297 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
9298
9299 # Character class describing NM global symbol codes.
9300 symcode='[BCDEGRST]'
9301
9302 # Regexp to match symbols that can be accessed directly from C.
9303 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9304
9305 # Define system-specific variables.
9306 case $host_os in
9307 aix*)
9308   symcode='[BCDT]'
9309   ;;
9310 cygwin* | mingw* | pw32* | cegcc*)
9311   symcode='[ABCDGISTW]'
9312   ;;
9313 hpux*)
9314   if test ia64 = "$host_cpu"; then
9315     symcode='[ABCDEGRST]'
9316   fi
9317   ;;
9318 irix* | nonstopux*)
9319   symcode='[BCDEGRST]'
9320   ;;
9321 osf*)
9322   symcode='[BCDEGQRST]'
9323   ;;
9324 solaris*)
9325   symcode='[BDRT]'
9326   ;;
9327 sco3.2v5*)
9328   symcode='[DT]'
9329   ;;
9330 sysv4.2uw2*)
9331   symcode='[DT]'
9332   ;;
9333 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9334   symcode='[ABDT]'
9335   ;;
9336 sysv4)
9337   symcode='[DFNSTU]'
9338   ;;
9339 esac
9340
9341 # If we're using GNU nm, then use its standard symbol codes.
9342 case `$NM -V 2>&1` in
9343 *GNU* | *'with BFD'*)
9344   symcode='[ABCDGIRSTW]' ;;
9345 esac
9346
9347 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9348   # Gets list of data symbols to import.
9349   lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
9350   # Adjust the below global symbol transforms to fixup imported variables.
9351   lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
9352   lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
9353   lt_c_name_lib_hook="\
9354   -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
9355   -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
9356 else
9357   # Disable hooks by default.
9358   lt_cv_sys_global_symbol_to_import=
9359   lt_cdecl_hook=
9360   lt_c_name_hook=
9361   lt_c_name_lib_hook=
9362 fi
9363
9364 # Transform an extracted symbol line into a proper C declaration.
9365 # Some systems (esp. on ia64) link data and code symbols differently,
9366 # so use this general approach.
9367 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
9368 $lt_cdecl_hook\
9369 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
9370 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
9371
9372 # Transform an extracted symbol line into symbol name and symbol address
9373 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
9374 $lt_c_name_hook\
9375 " -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
9376 " -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
9377
9378 # Transform an extracted symbol line into symbol name with lib prefix and
9379 # symbol address.
9380 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
9381 $lt_c_name_lib_hook\
9382 " -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
9383 " -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
9384 " -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
9385
9386 # Handle CRLF in mingw tool chain
9387 opt_cr=
9388 case $build_os in
9389 mingw*)
9390   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9391   ;;
9392 esac
9393
9394 # Try without a prefix underscore, then with it.
9395 for ac_symprfx in "" "_"; do
9396
9397   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9398   symxfrm="\\1 $ac_symprfx\\2 \\2"
9399
9400   # Write the raw and C identifiers.
9401   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9402     # Fake it for dumpbin and say T for any non-static function,
9403     # D for any global variable and I for any imported variable.
9404     # Also find C++ and __fastcall symbols from MSVC++,
9405     # which start with @ or ?.
9406     lt_cv_sys_global_symbol_pipe="$AWK '"\
9407 "     {last_section=section; section=\$ 3};"\
9408 "     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
9409 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
9410 "     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
9411 "     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
9412 "     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
9413 "     \$ 0!~/External *\|/{next};"\
9414 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
9415 "     {if(hide[section]) next};"\
9416 "     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
9417 "     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
9418 "     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
9419 "     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
9420 "     ' prfx=^$ac_symprfx"
9421   else
9422     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9423   fi
9424   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
9425
9426   # Check to see that the pipe works correctly.
9427   pipe_works=no
9428
9429   rm -f conftest*
9430   cat > conftest.$ac_ext <<_LT_EOF
9431 #ifdef __cplusplus
9432 extern "C" {
9433 #endif
9434 char nm_test_var;
9435 void nm_test_func(void);
9436 void nm_test_func(void){}
9437 #ifdef __cplusplus
9438 }
9439 #endif
9440 int main(){nm_test_var='a';nm_test_func();return(0);}
9441 _LT_EOF
9442
9443   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9444   (eval $ac_compile) 2>&5
9445   ac_status=$?
9446   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9447   test $ac_status = 0; }; then
9448     # Now try to grab the symbols.
9449     nlist=conftest.nm
9450     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
9451   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
9452   ac_status=$?
9453   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9454   test $ac_status = 0; } && test -s "$nlist"; then
9455       # Try sorting and uniquifying the output.
9456       if sort "$nlist" | uniq > "$nlist"T; then
9457         mv -f "$nlist"T "$nlist"
9458       else
9459         rm -f "$nlist"T
9460       fi
9461
9462       # Make sure that we snagged all the symbols we need.
9463       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
9464         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
9465           cat <<_LT_EOF > conftest.$ac_ext
9466 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
9467 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
9468 /* DATA imports from DLLs on WIN32 can't be const, because runtime
9469    relocations are performed -- see ld's documentation on pseudo-relocs.  */
9470 # define LT_DLSYM_CONST
9471 #elif defined __osf__
9472 /* This system does not cope well with relocations in const data.  */
9473 # define LT_DLSYM_CONST
9474 #else
9475 # define LT_DLSYM_CONST const
9476 #endif
9477
9478 #ifdef __cplusplus
9479 extern "C" {
9480 #endif
9481
9482 _LT_EOF
9483           # Now generate the symbol file.
9484           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
9485
9486           cat <<_LT_EOF >> conftest.$ac_ext
9487
9488 /* The mapping between symbol names and symbols.  */
9489 LT_DLSYM_CONST struct {
9490   const char *name;
9491   void       *address;
9492 }
9493 lt__PROGRAM__LTX_preloaded_symbols[] =
9494 {
9495   { "@PROGRAM@", (void *) 0 },
9496 _LT_EOF
9497           $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
9498           cat <<\_LT_EOF >> conftest.$ac_ext
9499   {0, (void *) 0}
9500 };
9501
9502 /* This works around a problem in FreeBSD linker */
9503 #ifdef FREEBSD_WORKAROUND
9504 static const void *lt_preloaded_setup() {
9505   return lt__PROGRAM__LTX_preloaded_symbols;
9506 }
9507 #endif
9508
9509 #ifdef __cplusplus
9510 }
9511 #endif
9512 _LT_EOF
9513           # Now try linking the two files.
9514           mv conftest.$ac_objext conftstm.$ac_objext
9515           lt_globsym_save_LIBS=$LIBS
9516           lt_globsym_save_CFLAGS=$CFLAGS
9517           LIBS=conftstm.$ac_objext
9518           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9519           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
9520   (eval $ac_link) 2>&5
9521   ac_status=$?
9522   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9523   test $ac_status = 0; } && test -s conftest$ac_exeext; then
9524             pipe_works=yes
9525           fi
9526           LIBS=$lt_globsym_save_LIBS
9527           CFLAGS=$lt_globsym_save_CFLAGS
9528         else
9529           echo "cannot find nm_test_func in $nlist" >&5
9530         fi
9531       else
9532         echo "cannot find nm_test_var in $nlist" >&5
9533       fi
9534     else
9535       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9536     fi
9537   else
9538     echo "$progname: failed program was:" >&5
9539     cat conftest.$ac_ext >&5
9540   fi
9541   rm -rf conftest* conftst*
9542
9543   # Do not use the global_symbol_pipe unless it works.
9544   if test yes = "$pipe_works"; then
9545     break
9546   else
9547     lt_cv_sys_global_symbol_pipe=
9548   fi
9549 done
9550
9551 fi
9552
9553 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9554   lt_cv_sys_global_symbol_to_cdecl=
9555 fi
9556 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9557   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
9558 $as_echo "failed" >&6; }
9559 else
9560   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
9561 $as_echo "ok" >&6; }
9562 fi
9563
9564 # Response file support.
9565 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9566   nm_file_list_spec='@'
9567 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
9568   nm_file_list_spec='@'
9569 fi
9570
9571
9572
9573
9574
9575
9576
9577
9578
9579
9580
9581
9582
9583
9584
9585
9586
9587
9588
9589
9590
9591
9592
9593
9594
9595
9596
9597
9598
9599
9600
9601
9602
9603
9604
9605
9606
9607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
9608 $as_echo_n "checking for sysroot... " >&6; }
9609
9610 # Check whether --with-sysroot was given.
9611 if test "${with_sysroot+set}" = set; then :
9612   withval=$with_sysroot;
9613 else
9614   with_sysroot=no
9615 fi
9616
9617
9618 lt_sysroot=
9619 case $with_sysroot in #(
9620  yes)
9621    if test yes = "$GCC"; then
9622      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
9623    fi
9624    ;; #(
9625  /*)
9626    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
9627    ;; #(
9628  no|'')
9629    ;; #(
9630  *)
9631    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
9632 $as_echo "$with_sysroot" >&6; }
9633    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
9634    ;;
9635 esac
9636
9637  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
9638 $as_echo "${lt_sysroot:-no}" >&6; }
9639
9640
9641
9642
9643
9644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
9645 $as_echo_n "checking for a working dd... " >&6; }
9646 if ${ac_cv_path_lt_DD+:} false; then :
9647   $as_echo_n "(cached) " >&6
9648 else
9649   printf 0123456789abcdef0123456789abcdef >conftest.i
9650 cat conftest.i conftest.i >conftest2.i
9651 : ${lt_DD:=$DD}
9652 if test -z "$lt_DD"; then
9653   ac_path_lt_DD_found=false
9654   # Loop through the user's path and test for each of PROGNAME-LIST
9655   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9656 for as_dir in $PATH
9657 do
9658   IFS=$as_save_IFS
9659   test -z "$as_dir" && as_dir=.
9660     for ac_prog in dd; do
9661     for ac_exec_ext in '' $ac_executable_extensions; do
9662       ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
9663       as_fn_executable_p "$ac_path_lt_DD" || continue
9664 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
9665   cmp -s conftest.i conftest.out \
9666   && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
9667 fi
9668       $ac_path_lt_DD_found && break 3
9669     done
9670   done
9671   done
9672 IFS=$as_save_IFS
9673   if test -z "$ac_cv_path_lt_DD"; then
9674     :
9675   fi
9676 else
9677   ac_cv_path_lt_DD=$lt_DD
9678 fi
9679
9680 rm -f conftest.i conftest2.i conftest.out
9681 fi
9682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
9683 $as_echo "$ac_cv_path_lt_DD" >&6; }
9684
9685
9686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
9687 $as_echo_n "checking how to truncate binary pipes... " >&6; }
9688 if ${lt_cv_truncate_bin+:} false; then :
9689   $as_echo_n "(cached) " >&6
9690 else
9691   printf 0123456789abcdef0123456789abcdef >conftest.i
9692 cat conftest.i conftest.i >conftest2.i
9693 lt_cv_truncate_bin=
9694 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
9695   cmp -s conftest.i conftest.out \
9696   && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
9697 fi
9698 rm -f conftest.i conftest2.i conftest.out
9699 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
9700 fi
9701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
9702 $as_echo "$lt_cv_truncate_bin" >&6; }
9703
9704
9705
9706
9707
9708
9709
9710 # Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
9711 func_cc_basename ()
9712 {
9713     for cc_temp in $*""; do
9714       case $cc_temp in
9715         compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9716         distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9717         \-*) ;;
9718         *) break;;
9719       esac
9720     done
9721     func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9722 }
9723
9724 # Check whether --enable-libtool-lock was given.
9725 if test "${enable_libtool_lock+set}" = set; then :
9726   enableval=$enable_libtool_lock;
9727 fi
9728
9729 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
9730
9731 # Some flags need to be propagated to the compiler or linker for good
9732 # libtool support.
9733 case $host in
9734 ia64-*-hpux*)
9735   # Find out what ABI is being produced by ac_compile, and set mode
9736   # options accordingly.
9737   echo 'int i;' > conftest.$ac_ext
9738   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9739   (eval $ac_compile) 2>&5
9740   ac_status=$?
9741   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9742   test $ac_status = 0; }; then
9743     case `/usr/bin/file conftest.$ac_objext` in
9744       *ELF-32*)
9745         HPUX_IA64_MODE=32
9746         ;;
9747       *ELF-64*)
9748         HPUX_IA64_MODE=64
9749         ;;
9750     esac
9751   fi
9752   rm -rf conftest*
9753   ;;
9754 *-*-irix6*)
9755   # Find out what ABI is being produced by ac_compile, and set linker
9756   # options accordingly.
9757   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
9758   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9759   (eval $ac_compile) 2>&5
9760   ac_status=$?
9761   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9762   test $ac_status = 0; }; then
9763     if test yes = "$lt_cv_prog_gnu_ld"; then
9764       case `/usr/bin/file conftest.$ac_objext` in
9765         *32-bit*)
9766           LD="${LD-ld} -melf32bsmip"
9767           ;;
9768         *N32*)
9769           LD="${LD-ld} -melf32bmipn32"
9770           ;;
9771         *64-bit*)
9772           LD="${LD-ld} -melf64bmip"
9773         ;;
9774       esac
9775     else
9776       case `/usr/bin/file conftest.$ac_objext` in
9777         *32-bit*)
9778           LD="${LD-ld} -32"
9779           ;;
9780         *N32*)
9781           LD="${LD-ld} -n32"
9782           ;;
9783         *64-bit*)
9784           LD="${LD-ld} -64"
9785           ;;
9786       esac
9787     fi
9788   fi
9789   rm -rf conftest*
9790   ;;
9791
9792 mips64*-*linux*)
9793   # Find out what ABI is being produced by ac_compile, and set linker
9794   # options accordingly.
9795   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
9796   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9797   (eval $ac_compile) 2>&5
9798   ac_status=$?
9799   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9800   test $ac_status = 0; }; then
9801     emul=elf
9802     case `/usr/bin/file conftest.$ac_objext` in
9803       *32-bit*)
9804         emul="${emul}32"
9805         ;;
9806       *64-bit*)
9807         emul="${emul}64"
9808         ;;
9809     esac
9810     case `/usr/bin/file conftest.$ac_objext` in
9811       *MSB*)
9812         emul="${emul}btsmip"
9813         ;;
9814       *LSB*)
9815         emul="${emul}ltsmip"
9816         ;;
9817     esac
9818     case `/usr/bin/file conftest.$ac_objext` in
9819       *N32*)
9820         emul="${emul}n32"
9821         ;;
9822     esac
9823     LD="${LD-ld} -m $emul"
9824   fi
9825   rm -rf conftest*
9826   ;;
9827
9828 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
9829 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
9830   # Find out what ABI is being produced by ac_compile, and set linker
9831   # options accordingly.  Note that the listed cases only cover the
9832   # situations where additional linker options are needed (such as when
9833   # doing 32-bit compilation for a host where ld defaults to 64-bit, or
9834   # vice versa); the common cases where no linker options are needed do
9835   # not appear in the list.
9836   echo 'int i;' > conftest.$ac_ext
9837   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9838   (eval $ac_compile) 2>&5
9839   ac_status=$?
9840   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9841   test $ac_status = 0; }; then
9842     case `/usr/bin/file conftest.o` in
9843       *32-bit*)
9844         case $host in
9845           x86_64-*kfreebsd*-gnu)
9846             LD="${LD-ld} -m elf_i386_fbsd"
9847             ;;
9848           x86_64-*linux*)
9849             case `/usr/bin/file conftest.o` in
9850               *x86-64*)
9851                 LD="${LD-ld} -m elf32_x86_64"
9852                 ;;
9853               *)
9854                 LD="${LD-ld} -m elf_i386"
9855                 ;;
9856             esac
9857             ;;
9858           powerpc64le-*linux*)
9859             LD="${LD-ld} -m elf32lppclinux"
9860             ;;
9861           powerpc64-*linux*)
9862             LD="${LD-ld} -m elf32ppclinux"
9863             ;;
9864           s390x-*linux*)
9865             LD="${LD-ld} -m elf_s390"
9866             ;;
9867           sparc64-*linux*)
9868             LD="${LD-ld} -m elf32_sparc"
9869             ;;
9870         esac
9871         ;;
9872       *64-bit*)
9873         case $host in
9874           x86_64-*kfreebsd*-gnu)
9875             LD="${LD-ld} -m elf_x86_64_fbsd"
9876             ;;
9877           x86_64-*linux*)
9878             LD="${LD-ld} -m elf_x86_64"
9879             ;;
9880           powerpcle-*linux*)
9881             LD="${LD-ld} -m elf64lppc"
9882             ;;
9883           powerpc-*linux*)
9884             LD="${LD-ld} -m elf64ppc"
9885             ;;
9886           s390*-*linux*|s390*-*tpf*)
9887             LD="${LD-ld} -m elf64_s390"
9888             ;;
9889           sparc*-*linux*)
9890             LD="${LD-ld} -m elf64_sparc"
9891             ;;
9892         esac
9893         ;;
9894     esac
9895   fi
9896   rm -rf conftest*
9897   ;;
9898
9899 *-*-sco3.2v5*)
9900   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
9901   SAVE_CFLAGS=$CFLAGS
9902   CFLAGS="$CFLAGS -belf"
9903   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
9904 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
9905 if ${lt_cv_cc_needs_belf+:} false; then :
9906   $as_echo_n "(cached) " >&6
9907 else
9908   ac_ext=c
9909 ac_cpp='$CPP $CPPFLAGS'
9910 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9911 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9912 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9913
9914      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9915 /* end confdefs.h.  */
9916
9917 int
9918 main ()
9919 {
9920
9921   ;
9922   return 0;
9923 }
9924 _ACEOF
9925 if ac_fn_c_try_link "$LINENO"; then :
9926   lt_cv_cc_needs_belf=yes
9927 else
9928   lt_cv_cc_needs_belf=no
9929 fi
9930 rm -f core conftest.err conftest.$ac_objext \
9931     conftest$ac_exeext conftest.$ac_ext
9932      ac_ext=c
9933 ac_cpp='$CPP $CPPFLAGS'
9934 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9935 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9936 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9937
9938 fi
9939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
9940 $as_echo "$lt_cv_cc_needs_belf" >&6; }
9941   if test yes != "$lt_cv_cc_needs_belf"; then
9942     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
9943     CFLAGS=$SAVE_CFLAGS
9944   fi
9945   ;;
9946 *-*solaris*)
9947   # Find out what ABI is being produced by ac_compile, and set linker
9948   # options accordingly.
9949   echo 'int i;' > conftest.$ac_ext
9950   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9951   (eval $ac_compile) 2>&5
9952   ac_status=$?
9953   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9954   test $ac_status = 0; }; then
9955     case `/usr/bin/file conftest.o` in
9956     *64-bit*)
9957       case $lt_cv_prog_gnu_ld in
9958       yes*)
9959         case $host in
9960         i?86-*-solaris*|x86_64-*-solaris*)
9961           LD="${LD-ld} -m elf_x86_64"
9962           ;;
9963         sparc*-*-solaris*)
9964           LD="${LD-ld} -m elf64_sparc"
9965           ;;
9966         esac
9967         # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
9968         if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
9969           LD=${LD-ld}_sol2
9970         fi
9971         ;;
9972       *)
9973         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
9974           LD="${LD-ld} -64"
9975         fi
9976         ;;
9977       esac
9978       ;;
9979     esac
9980   fi
9981   rm -rf conftest*
9982   ;;
9983 esac
9984
9985 need_locks=$enable_libtool_lock
9986
9987 if test -n "$ac_tool_prefix"; then
9988   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
9989 set dummy ${ac_tool_prefix}mt; ac_word=$2
9990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9991 $as_echo_n "checking for $ac_word... " >&6; }
9992 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
9993   $as_echo_n "(cached) " >&6
9994 else
9995   if test -n "$MANIFEST_TOOL"; then
9996   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
9997 else
9998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9999 for as_dir in $PATH
10000 do
10001   IFS=$as_save_IFS
10002   test -z "$as_dir" && as_dir=.
10003     for ac_exec_ext in '' $ac_executable_extensions; do
10004   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10005     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
10006     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10007     break 2
10008   fi
10009 done
10010   done
10011 IFS=$as_save_IFS
10012
10013 fi
10014 fi
10015 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
10016 if test -n "$MANIFEST_TOOL"; then
10017   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
10018 $as_echo "$MANIFEST_TOOL" >&6; }
10019 else
10020   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10021 $as_echo "no" >&6; }
10022 fi
10023
10024
10025 fi
10026 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
10027   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
10028   # Extract the first word of "mt", so it can be a program name with args.
10029 set dummy mt; ac_word=$2
10030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10031 $as_echo_n "checking for $ac_word... " >&6; }
10032 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
10033   $as_echo_n "(cached) " >&6
10034 else
10035   if test -n "$ac_ct_MANIFEST_TOOL"; then
10036   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
10037 else
10038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10039 for as_dir in $PATH
10040 do
10041   IFS=$as_save_IFS
10042   test -z "$as_dir" && as_dir=.
10043     for ac_exec_ext in '' $ac_executable_extensions; do
10044   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10045     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
10046     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10047     break 2
10048   fi
10049 done
10050   done
10051 IFS=$as_save_IFS
10052
10053 fi
10054 fi
10055 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
10056 if test -n "$ac_ct_MANIFEST_TOOL"; then
10057   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
10058 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
10059 else
10060   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10061 $as_echo "no" >&6; }
10062 fi
10063
10064   if test "x$ac_ct_MANIFEST_TOOL" = x; then
10065     MANIFEST_TOOL=":"
10066   else
10067     case $cross_compiling:$ac_tool_warned in
10068 yes:)
10069 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10070 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10071 ac_tool_warned=yes ;;
10072 esac
10073     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
10074   fi
10075 else
10076   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
10077 fi
10078
10079 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
10080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
10081 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
10082 if ${lt_cv_path_mainfest_tool+:} false; then :
10083   $as_echo_n "(cached) " >&6
10084 else
10085   lt_cv_path_mainfest_tool=no
10086   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
10087   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
10088   cat conftest.err >&5
10089   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
10090     lt_cv_path_mainfest_tool=yes
10091   fi
10092   rm -f conftest*
10093 fi
10094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
10095 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
10096 if test yes != "$lt_cv_path_mainfest_tool"; then
10097   MANIFEST_TOOL=:
10098 fi
10099
10100
10101
10102
10103
10104
10105   case $host_os in
10106     rhapsody* | darwin*)
10107     if test -n "$ac_tool_prefix"; then
10108   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
10109 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
10110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10111 $as_echo_n "checking for $ac_word... " >&6; }
10112 if ${ac_cv_prog_DSYMUTIL+:} false; then :
10113   $as_echo_n "(cached) " >&6
10114 else
10115   if test -n "$DSYMUTIL"; then
10116   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
10117 else
10118 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10119 for as_dir in $PATH
10120 do
10121   IFS=$as_save_IFS
10122   test -z "$as_dir" && as_dir=.
10123     for ac_exec_ext in '' $ac_executable_extensions; do
10124   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10125     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
10126     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10127     break 2
10128   fi
10129 done
10130   done
10131 IFS=$as_save_IFS
10132
10133 fi
10134 fi
10135 DSYMUTIL=$ac_cv_prog_DSYMUTIL
10136 if test -n "$DSYMUTIL"; then
10137   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
10138 $as_echo "$DSYMUTIL" >&6; }
10139 else
10140   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10141 $as_echo "no" >&6; }
10142 fi
10143
10144
10145 fi
10146 if test -z "$ac_cv_prog_DSYMUTIL"; then
10147   ac_ct_DSYMUTIL=$DSYMUTIL
10148   # Extract the first word of "dsymutil", so it can be a program name with args.
10149 set dummy dsymutil; ac_word=$2
10150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10151 $as_echo_n "checking for $ac_word... " >&6; }
10152 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
10153   $as_echo_n "(cached) " >&6
10154 else
10155   if test -n "$ac_ct_DSYMUTIL"; then
10156   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
10157 else
10158 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10159 for as_dir in $PATH
10160 do
10161   IFS=$as_save_IFS
10162   test -z "$as_dir" && as_dir=.
10163     for ac_exec_ext in '' $ac_executable_extensions; do
10164   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10165     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
10166     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10167     break 2
10168   fi
10169 done
10170   done
10171 IFS=$as_save_IFS
10172
10173 fi
10174 fi
10175 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
10176 if test -n "$ac_ct_DSYMUTIL"; then
10177   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
10178 $as_echo "$ac_ct_DSYMUTIL" >&6; }
10179 else
10180   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10181 $as_echo "no" >&6; }
10182 fi
10183
10184   if test "x$ac_ct_DSYMUTIL" = x; then
10185     DSYMUTIL=":"
10186   else
10187     case $cross_compiling:$ac_tool_warned in
10188 yes:)
10189 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10190 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10191 ac_tool_warned=yes ;;
10192 esac
10193     DSYMUTIL=$ac_ct_DSYMUTIL
10194   fi
10195 else
10196   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
10197 fi
10198
10199     if test -n "$ac_tool_prefix"; then
10200   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
10201 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
10202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10203 $as_echo_n "checking for $ac_word... " >&6; }
10204 if ${ac_cv_prog_NMEDIT+:} false; then :
10205   $as_echo_n "(cached) " >&6
10206 else
10207   if test -n "$NMEDIT"; then
10208   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
10209 else
10210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10211 for as_dir in $PATH
10212 do
10213   IFS=$as_save_IFS
10214   test -z "$as_dir" && as_dir=.
10215     for ac_exec_ext in '' $ac_executable_extensions; do
10216   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10217     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
10218     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10219     break 2
10220   fi
10221 done
10222   done
10223 IFS=$as_save_IFS
10224
10225 fi
10226 fi
10227 NMEDIT=$ac_cv_prog_NMEDIT
10228 if test -n "$NMEDIT"; then
10229   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
10230 $as_echo "$NMEDIT" >&6; }
10231 else
10232   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10233 $as_echo "no" >&6; }
10234 fi
10235
10236
10237 fi
10238 if test -z "$ac_cv_prog_NMEDIT"; then
10239   ac_ct_NMEDIT=$NMEDIT
10240   # Extract the first word of "nmedit", so it can be a program name with args.
10241 set dummy nmedit; ac_word=$2
10242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10243 $as_echo_n "checking for $ac_word... " >&6; }
10244 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
10245   $as_echo_n "(cached) " >&6
10246 else
10247   if test -n "$ac_ct_NMEDIT"; then
10248   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
10249 else
10250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10251 for as_dir in $PATH
10252 do
10253   IFS=$as_save_IFS
10254   test -z "$as_dir" && as_dir=.
10255     for ac_exec_ext in '' $ac_executable_extensions; do
10256   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10257     ac_cv_prog_ac_ct_NMEDIT="nmedit"
10258     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10259     break 2
10260   fi
10261 done
10262   done
10263 IFS=$as_save_IFS
10264
10265 fi
10266 fi
10267 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
10268 if test -n "$ac_ct_NMEDIT"; then
10269   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
10270 $as_echo "$ac_ct_NMEDIT" >&6; }
10271 else
10272   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10273 $as_echo "no" >&6; }
10274 fi
10275
10276   if test "x$ac_ct_NMEDIT" = x; then
10277     NMEDIT=":"
10278   else
10279     case $cross_compiling:$ac_tool_warned in
10280 yes:)
10281 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10282 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10283 ac_tool_warned=yes ;;
10284 esac
10285     NMEDIT=$ac_ct_NMEDIT
10286   fi
10287 else
10288   NMEDIT="$ac_cv_prog_NMEDIT"
10289 fi
10290
10291     if test -n "$ac_tool_prefix"; then
10292   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
10293 set dummy ${ac_tool_prefix}lipo; ac_word=$2
10294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10295 $as_echo_n "checking for $ac_word... " >&6; }
10296 if ${ac_cv_prog_LIPO+:} false; then :
10297   $as_echo_n "(cached) " >&6
10298 else
10299   if test -n "$LIPO"; then
10300   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
10301 else
10302 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10303 for as_dir in $PATH
10304 do
10305   IFS=$as_save_IFS
10306   test -z "$as_dir" && as_dir=.
10307     for ac_exec_ext in '' $ac_executable_extensions; do
10308   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10309     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
10310     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10311     break 2
10312   fi
10313 done
10314   done
10315 IFS=$as_save_IFS
10316
10317 fi
10318 fi
10319 LIPO=$ac_cv_prog_LIPO
10320 if test -n "$LIPO"; then
10321   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
10322 $as_echo "$LIPO" >&6; }
10323 else
10324   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10325 $as_echo "no" >&6; }
10326 fi
10327
10328
10329 fi
10330 if test -z "$ac_cv_prog_LIPO"; then
10331   ac_ct_LIPO=$LIPO
10332   # Extract the first word of "lipo", so it can be a program name with args.
10333 set dummy lipo; ac_word=$2
10334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10335 $as_echo_n "checking for $ac_word... " >&6; }
10336 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
10337   $as_echo_n "(cached) " >&6
10338 else
10339   if test -n "$ac_ct_LIPO"; then
10340   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
10341 else
10342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10343 for as_dir in $PATH
10344 do
10345   IFS=$as_save_IFS
10346   test -z "$as_dir" && as_dir=.
10347     for ac_exec_ext in '' $ac_executable_extensions; do
10348   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10349     ac_cv_prog_ac_ct_LIPO="lipo"
10350     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10351     break 2
10352   fi
10353 done
10354   done
10355 IFS=$as_save_IFS
10356
10357 fi
10358 fi
10359 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
10360 if test -n "$ac_ct_LIPO"; then
10361   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
10362 $as_echo "$ac_ct_LIPO" >&6; }
10363 else
10364   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10365 $as_echo "no" >&6; }
10366 fi
10367
10368   if test "x$ac_ct_LIPO" = x; then
10369     LIPO=":"
10370   else
10371     case $cross_compiling:$ac_tool_warned in
10372 yes:)
10373 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10374 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10375 ac_tool_warned=yes ;;
10376 esac
10377     LIPO=$ac_ct_LIPO
10378   fi
10379 else
10380   LIPO="$ac_cv_prog_LIPO"
10381 fi
10382
10383     if test -n "$ac_tool_prefix"; then
10384   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
10385 set dummy ${ac_tool_prefix}otool; ac_word=$2
10386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10387 $as_echo_n "checking for $ac_word... " >&6; }
10388 if ${ac_cv_prog_OTOOL+:} false; then :
10389   $as_echo_n "(cached) " >&6
10390 else
10391   if test -n "$OTOOL"; then
10392   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
10393 else
10394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10395 for as_dir in $PATH
10396 do
10397   IFS=$as_save_IFS
10398   test -z "$as_dir" && as_dir=.
10399     for ac_exec_ext in '' $ac_executable_extensions; do
10400   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10401     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
10402     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10403     break 2
10404   fi
10405 done
10406   done
10407 IFS=$as_save_IFS
10408
10409 fi
10410 fi
10411 OTOOL=$ac_cv_prog_OTOOL
10412 if test -n "$OTOOL"; then
10413   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
10414 $as_echo "$OTOOL" >&6; }
10415 else
10416   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10417 $as_echo "no" >&6; }
10418 fi
10419
10420
10421 fi
10422 if test -z "$ac_cv_prog_OTOOL"; then
10423   ac_ct_OTOOL=$OTOOL
10424   # Extract the first word of "otool", so it can be a program name with args.
10425 set dummy otool; ac_word=$2
10426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10427 $as_echo_n "checking for $ac_word... " >&6; }
10428 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
10429   $as_echo_n "(cached) " >&6
10430 else
10431   if test -n "$ac_ct_OTOOL"; then
10432   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
10433 else
10434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10435 for as_dir in $PATH
10436 do
10437   IFS=$as_save_IFS
10438   test -z "$as_dir" && as_dir=.
10439     for ac_exec_ext in '' $ac_executable_extensions; do
10440   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10441     ac_cv_prog_ac_ct_OTOOL="otool"
10442     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10443     break 2
10444   fi
10445 done
10446   done
10447 IFS=$as_save_IFS
10448
10449 fi
10450 fi
10451 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
10452 if test -n "$ac_ct_OTOOL"; then
10453   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
10454 $as_echo "$ac_ct_OTOOL" >&6; }
10455 else
10456   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10457 $as_echo "no" >&6; }
10458 fi
10459
10460   if test "x$ac_ct_OTOOL" = x; then
10461     OTOOL=":"
10462   else
10463     case $cross_compiling:$ac_tool_warned in
10464 yes:)
10465 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10466 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10467 ac_tool_warned=yes ;;
10468 esac
10469     OTOOL=$ac_ct_OTOOL
10470   fi
10471 else
10472   OTOOL="$ac_cv_prog_OTOOL"
10473 fi
10474
10475     if test -n "$ac_tool_prefix"; then
10476   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
10477 set dummy ${ac_tool_prefix}otool64; ac_word=$2
10478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10479 $as_echo_n "checking for $ac_word... " >&6; }
10480 if ${ac_cv_prog_OTOOL64+:} false; then :
10481   $as_echo_n "(cached) " >&6
10482 else
10483   if test -n "$OTOOL64"; then
10484   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
10485 else
10486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10487 for as_dir in $PATH
10488 do
10489   IFS=$as_save_IFS
10490   test -z "$as_dir" && as_dir=.
10491     for ac_exec_ext in '' $ac_executable_extensions; do
10492   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10493     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
10494     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10495     break 2
10496   fi
10497 done
10498   done
10499 IFS=$as_save_IFS
10500
10501 fi
10502 fi
10503 OTOOL64=$ac_cv_prog_OTOOL64
10504 if test -n "$OTOOL64"; then
10505   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
10506 $as_echo "$OTOOL64" >&6; }
10507 else
10508   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10509 $as_echo "no" >&6; }
10510 fi
10511
10512
10513 fi
10514 if test -z "$ac_cv_prog_OTOOL64"; then
10515   ac_ct_OTOOL64=$OTOOL64
10516   # Extract the first word of "otool64", so it can be a program name with args.
10517 set dummy otool64; ac_word=$2
10518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10519 $as_echo_n "checking for $ac_word... " >&6; }
10520 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
10521   $as_echo_n "(cached) " >&6
10522 else
10523   if test -n "$ac_ct_OTOOL64"; then
10524   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
10525 else
10526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10527 for as_dir in $PATH
10528 do
10529   IFS=$as_save_IFS
10530   test -z "$as_dir" && as_dir=.
10531     for ac_exec_ext in '' $ac_executable_extensions; do
10532   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10533     ac_cv_prog_ac_ct_OTOOL64="otool64"
10534     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10535     break 2
10536   fi
10537 done
10538   done
10539 IFS=$as_save_IFS
10540
10541 fi
10542 fi
10543 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
10544 if test -n "$ac_ct_OTOOL64"; then
10545   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
10546 $as_echo "$ac_ct_OTOOL64" >&6; }
10547 else
10548   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10549 $as_echo "no" >&6; }
10550 fi
10551
10552   if test "x$ac_ct_OTOOL64" = x; then
10553     OTOOL64=":"
10554   else
10555     case $cross_compiling:$ac_tool_warned in
10556 yes:)
10557 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10558 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10559 ac_tool_warned=yes ;;
10560 esac
10561     OTOOL64=$ac_ct_OTOOL64
10562   fi
10563 else
10564   OTOOL64="$ac_cv_prog_OTOOL64"
10565 fi
10566
10567
10568
10569
10570
10571
10572
10573
10574
10575
10576
10577
10578
10579
10580
10581
10582
10583
10584
10585
10586
10587
10588
10589
10590
10591
10592
10593     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
10594 $as_echo_n "checking for -single_module linker flag... " >&6; }
10595 if ${lt_cv_apple_cc_single_mod+:} false; then :
10596   $as_echo_n "(cached) " >&6
10597 else
10598   lt_cv_apple_cc_single_mod=no
10599       if test -z "$LT_MULTI_MODULE"; then
10600         # By default we will add the -single_module flag. You can override
10601         # by either setting the environment variable LT_MULTI_MODULE
10602         # non-empty at configure time, or by adding -multi_module to the
10603         # link flags.
10604         rm -rf libconftest.dylib*
10605         echo "int foo(void){return 1;}" > conftest.c
10606         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
10607 -dynamiclib -Wl,-single_module conftest.c" >&5
10608         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
10609           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
10610         _lt_result=$?
10611         # If there is a non-empty error log, and "single_module"
10612         # appears in it, assume the flag caused a linker warning
10613         if test -s conftest.err && $GREP single_module conftest.err; then
10614           cat conftest.err >&5
10615         # Otherwise, if the output was created with a 0 exit code from
10616         # the compiler, it worked.
10617         elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
10618           lt_cv_apple_cc_single_mod=yes
10619         else
10620           cat conftest.err >&5
10621         fi
10622         rm -rf libconftest.dylib*
10623         rm -f conftest.*
10624       fi
10625 fi
10626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
10627 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
10628
10629     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
10630 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
10631 if ${lt_cv_ld_exported_symbols_list+:} false; then :
10632   $as_echo_n "(cached) " >&6
10633 else
10634   lt_cv_ld_exported_symbols_list=no
10635       save_LDFLAGS=$LDFLAGS
10636       echo "_main" > conftest.sym
10637       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
10638       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10639 /* end confdefs.h.  */
10640
10641 int
10642 main ()
10643 {
10644
10645   ;
10646   return 0;
10647 }
10648 _ACEOF
10649 if ac_fn_c_try_link "$LINENO"; then :
10650   lt_cv_ld_exported_symbols_list=yes
10651 else
10652   lt_cv_ld_exported_symbols_list=no
10653 fi
10654 rm -f core conftest.err conftest.$ac_objext \
10655     conftest$ac_exeext conftest.$ac_ext
10656         LDFLAGS=$save_LDFLAGS
10657
10658 fi
10659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
10660 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
10661
10662     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
10663 $as_echo_n "checking for -force_load linker flag... " >&6; }
10664 if ${lt_cv_ld_force_load+:} false; then :
10665   $as_echo_n "(cached) " >&6
10666 else
10667   lt_cv_ld_force_load=no
10668       cat > conftest.c << _LT_EOF
10669 int forced_loaded() { return 2;}
10670 _LT_EOF
10671       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
10672       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
10673       echo "$AR cru libconftest.a conftest.o" >&5
10674       $AR cru libconftest.a conftest.o 2>&5
10675       echo "$RANLIB libconftest.a" >&5
10676       $RANLIB libconftest.a 2>&5
10677       cat > conftest.c << _LT_EOF
10678 int main() { return 0;}
10679 _LT_EOF
10680       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
10681       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
10682       _lt_result=$?
10683       if test -s conftest.err && $GREP force_load conftest.err; then
10684         cat conftest.err >&5
10685       elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
10686         lt_cv_ld_force_load=yes
10687       else
10688         cat conftest.err >&5
10689       fi
10690         rm -f conftest.err libconftest.a conftest conftest.c
10691         rm -rf conftest.dSYM
10692
10693 fi
10694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
10695 $as_echo "$lt_cv_ld_force_load" >&6; }
10696     case $host_os in
10697     rhapsody* | darwin1.[012])
10698       _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
10699     darwin1.*)
10700       _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
10701     darwin*) # darwin 5.x on
10702       # if running on 10.5 or later, the deployment target defaults
10703       # to the OS version, if on x86, and 10.4, the deployment
10704       # target defaults to 10.4. Don't you love it?
10705       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
10706         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
10707           _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
10708         10.[012][,.]*)
10709           _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
10710         10.*)
10711           _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
10712       esac
10713     ;;
10714   esac
10715     if test yes = "$lt_cv_apple_cc_single_mod"; then
10716       _lt_dar_single_mod='$single_module'
10717     fi
10718     if test yes = "$lt_cv_ld_exported_symbols_list"; then
10719       _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
10720     else
10721       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
10722     fi
10723     if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
10724       _lt_dsymutil='~$DSYMUTIL $lib || :'
10725     else
10726       _lt_dsymutil=
10727     fi
10728     ;;
10729   esac
10730
10731 # func_munge_path_list VARIABLE PATH
10732 # -----------------------------------
10733 # VARIABLE is name of variable containing _space_ separated list of
10734 # directories to be munged by the contents of PATH, which is string
10735 # having a format:
10736 # "DIR[:DIR]:"
10737 #       string "DIR[ DIR]" will be prepended to VARIABLE
10738 # ":DIR[:DIR]"
10739 #       string "DIR[ DIR]" will be appended to VARIABLE
10740 # "DIRP[:DIRP]::[DIRA:]DIRA"
10741 #       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
10742 #       "DIRA[ DIRA]" will be appended to VARIABLE
10743 # "DIR[:DIR]"
10744 #       VARIABLE will be replaced by "DIR[ DIR]"
10745 func_munge_path_list ()
10746 {
10747     case x$2 in
10748     x)
10749         ;;
10750     *:)
10751         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
10752         ;;
10753     x:*)
10754         eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
10755         ;;
10756     *::*)
10757         eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
10758         eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
10759         ;;
10760     *)
10761         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
10762         ;;
10763     esac
10764 }
10765
10766 for ac_header in dlfcn.h
10767 do :
10768   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
10769 "
10770 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
10771   cat >>confdefs.h <<_ACEOF
10772 #define HAVE_DLFCN_H 1
10773 _ACEOF
10774
10775 fi
10776
10777 done
10778
10779
10780
10781 func_stripname_cnf ()
10782 {
10783   case $2 in
10784   .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;;
10785   *)  func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;;
10786   esac
10787 } # func_stripname_cnf
10788
10789
10790
10791
10792
10793 # Set options
10794
10795
10796
10797         enable_dlopen=no
10798
10799
10800   enable_win32_dll=no
10801
10802
10803             # Check whether --enable-shared was given.
10804 if test "${enable_shared+set}" = set; then :
10805   enableval=$enable_shared; p=${PACKAGE-default}
10806     case $enableval in
10807     yes) enable_shared=yes ;;
10808     no) enable_shared=no ;;
10809     *)
10810       enable_shared=no
10811       # Look at the argument we got.  We use all the common list separators.
10812       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10813       for pkg in $enableval; do
10814         IFS=$lt_save_ifs
10815         if test "X$pkg" = "X$p"; then
10816           enable_shared=yes
10817         fi
10818       done
10819       IFS=$lt_save_ifs
10820       ;;
10821     esac
10822 else
10823   enable_shared=yes
10824 fi
10825
10826
10827
10828
10829
10830
10831
10832
10833
10834   # Check whether --enable-static was given.
10835 if test "${enable_static+set}" = set; then :
10836   enableval=$enable_static; p=${PACKAGE-default}
10837     case $enableval in
10838     yes) enable_static=yes ;;
10839     no) enable_static=no ;;
10840     *)
10841      enable_static=no
10842       # Look at the argument we got.  We use all the common list separators.
10843       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10844       for pkg in $enableval; do
10845         IFS=$lt_save_ifs
10846         if test "X$pkg" = "X$p"; then
10847           enable_static=yes
10848         fi
10849       done
10850       IFS=$lt_save_ifs
10851       ;;
10852     esac
10853 else
10854   enable_static=yes
10855 fi
10856
10857
10858
10859
10860
10861
10862
10863
10864
10865
10866 # Check whether --with-pic was given.
10867 if test "${with_pic+set}" = set; then :
10868   withval=$with_pic; lt_p=${PACKAGE-default}
10869     case $withval in
10870     yes|no) pic_mode=$withval ;;
10871     *)
10872       pic_mode=default
10873       # Look at the argument we got.  We use all the common list separators.
10874       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10875       for lt_pkg in $withval; do
10876         IFS=$lt_save_ifs
10877         if test "X$lt_pkg" = "X$lt_p"; then
10878           pic_mode=yes
10879         fi
10880       done
10881       IFS=$lt_save_ifs
10882       ;;
10883     esac
10884 else
10885   pic_mode=default
10886 fi
10887
10888
10889
10890
10891
10892
10893
10894
10895   # Check whether --enable-fast-install was given.
10896 if test "${enable_fast_install+set}" = set; then :
10897   enableval=$enable_fast_install; p=${PACKAGE-default}
10898     case $enableval in
10899     yes) enable_fast_install=yes ;;
10900     no) enable_fast_install=no ;;
10901     *)
10902       enable_fast_install=no
10903       # Look at the argument we got.  We use all the common list separators.
10904       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10905       for pkg in $enableval; do
10906         IFS=$lt_save_ifs
10907         if test "X$pkg" = "X$p"; then
10908           enable_fast_install=yes
10909         fi
10910       done
10911       IFS=$lt_save_ifs
10912       ;;
10913     esac
10914 else
10915   enable_fast_install=yes
10916 fi
10917
10918
10919
10920
10921
10922
10923
10924
10925   shared_archive_member_spec=
10926 case $host,$enable_shared in
10927 power*-*-aix[5-9]*,yes)
10928   { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
10929 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
10930
10931 # Check whether --with-aix-soname was given.
10932 if test "${with_aix_soname+set}" = set; then :
10933   withval=$with_aix_soname; case $withval in
10934     aix|svr4|both)
10935       ;;
10936     *)
10937       as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
10938       ;;
10939     esac
10940     lt_cv_with_aix_soname=$with_aix_soname
10941 else
10942   if ${lt_cv_with_aix_soname+:} false; then :
10943   $as_echo_n "(cached) " >&6
10944 else
10945   lt_cv_with_aix_soname=aix
10946 fi
10947
10948     with_aix_soname=$lt_cv_with_aix_soname
10949 fi
10950
10951   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
10952 $as_echo "$with_aix_soname" >&6; }
10953   if test aix != "$with_aix_soname"; then
10954     # For the AIX way of multilib, we name the shared archive member
10955     # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
10956     # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
10957     # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
10958     # the AIX toolchain works better with OBJECT_MODE set (default 32).
10959     if test 64 = "${OBJECT_MODE-32}"; then
10960       shared_archive_member_spec=shr_64
10961     else
10962       shared_archive_member_spec=shr
10963     fi
10964   fi
10965   ;;
10966 *)
10967   with_aix_soname=aix
10968   ;;
10969 esac
10970
10971
10972
10973
10974
10975
10976
10977
10978
10979
10980 # This can be used to rebuild libtool when needed
10981 LIBTOOL_DEPS=$ltmain
10982
10983 # Always use our own libtool.
10984 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
10985
10986
10987
10988
10989
10990
10991
10992
10993
10994
10995
10996
10997
10998
10999
11000
11001
11002
11003
11004
11005
11006
11007
11008
11009
11010
11011
11012
11013
11014
11015 test -z "$LN_S" && LN_S="ln -s"
11016
11017
11018
11019
11020
11021
11022
11023
11024
11025
11026
11027
11028
11029
11030 if test -n "${ZSH_VERSION+set}"; then
11031    setopt NO_GLOB_SUBST
11032 fi
11033
11034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
11035 $as_echo_n "checking for objdir... " >&6; }
11036 if ${lt_cv_objdir+:} false; then :
11037   $as_echo_n "(cached) " >&6
11038 else
11039   rm -f .libs 2>/dev/null
11040 mkdir .libs 2>/dev/null
11041 if test -d .libs; then
11042   lt_cv_objdir=.libs
11043 else
11044   # MS-DOS does not allow filenames that begin with a dot.
11045   lt_cv_objdir=_libs
11046 fi
11047 rmdir .libs 2>/dev/null
11048 fi
11049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
11050 $as_echo "$lt_cv_objdir" >&6; }
11051 objdir=$lt_cv_objdir
11052
11053
11054
11055
11056
11057 cat >>confdefs.h <<_ACEOF
11058 #define LT_OBJDIR "$lt_cv_objdir/"
11059 _ACEOF
11060
11061
11062
11063
11064 case $host_os in
11065 aix3*)
11066   # AIX sometimes has problems with the GCC collect2 program.  For some
11067   # reason, if we set the COLLECT_NAMES environment variable, the problems
11068   # vanish in a puff of smoke.
11069   if test set != "${COLLECT_NAMES+set}"; then
11070     COLLECT_NAMES=
11071     export COLLECT_NAMES
11072   fi
11073   ;;
11074 esac
11075
11076 # Global variables:
11077 ofile=libtool
11078 can_build_shared=yes
11079
11080 # All known linkers require a '.a' archive for static linking (except MSVC,
11081 # which needs '.lib').
11082 libext=a
11083
11084 with_gnu_ld=$lt_cv_prog_gnu_ld
11085
11086 old_CC=$CC
11087 old_CFLAGS=$CFLAGS
11088
11089 # Set sane defaults for various variables
11090 test -z "$CC" && CC=cc
11091 test -z "$LTCC" && LTCC=$CC
11092 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
11093 test -z "$LD" && LD=ld
11094 test -z "$ac_objext" && ac_objext=o
11095
11096 func_cc_basename $compiler
11097 cc_basename=$func_cc_basename_result
11098
11099
11100 # Only perform the check for file, if the check method requires it
11101 test -z "$MAGIC_CMD" && MAGIC_CMD=file
11102 case $deplibs_check_method in
11103 file_magic*)
11104   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
11105     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
11106 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
11107 if ${lt_cv_path_MAGIC_CMD+:} false; then :
11108   $as_echo_n "(cached) " >&6
11109 else
11110   case $MAGIC_CMD in
11111 [\\/*] |  ?:[\\/]*)
11112   lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
11113   ;;
11114 *)
11115   lt_save_MAGIC_CMD=$MAGIC_CMD
11116   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
11117   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11118   for ac_dir in $ac_dummy; do
11119     IFS=$lt_save_ifs
11120     test -z "$ac_dir" && ac_dir=.
11121     if test -f "$ac_dir/${ac_tool_prefix}file"; then
11122       lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
11123       if test -n "$file_magic_test_file"; then
11124         case $deplibs_check_method in
11125         "file_magic "*)
11126           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
11127           MAGIC_CMD=$lt_cv_path_MAGIC_CMD
11128           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11129             $EGREP "$file_magic_regex" > /dev/null; then
11130             :
11131           else
11132             cat <<_LT_EOF 1>&2
11133
11134 *** Warning: the command libtool uses to detect shared libraries,
11135 *** $file_magic_cmd, produces output that libtool cannot recognize.
11136 *** The result is that libtool may fail to recognize shared libraries
11137 *** as such.  This will affect the creation of libtool libraries that
11138 *** depend on shared libraries, but programs linked with such libtool
11139 *** libraries will work regardless of this problem.  Nevertheless, you
11140 *** may want to report the problem to your system manager and/or to
11141 *** bug-libtool@gnu.org
11142
11143 _LT_EOF
11144           fi ;;
11145         esac
11146       fi
11147       break
11148     fi
11149   done
11150   IFS=$lt_save_ifs
11151   MAGIC_CMD=$lt_save_MAGIC_CMD
11152   ;;
11153 esac
11154 fi
11155
11156 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
11157 if test -n "$MAGIC_CMD"; then
11158   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
11159 $as_echo "$MAGIC_CMD" >&6; }
11160 else
11161   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11162 $as_echo "no" >&6; }
11163 fi
11164
11165
11166
11167
11168
11169 if test -z "$lt_cv_path_MAGIC_CMD"; then
11170   if test -n "$ac_tool_prefix"; then
11171     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
11172 $as_echo_n "checking for file... " >&6; }
11173 if ${lt_cv_path_MAGIC_CMD+:} false; then :
11174   $as_echo_n "(cached) " >&6
11175 else
11176   case $MAGIC_CMD in
11177 [\\/*] |  ?:[\\/]*)
11178   lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
11179   ;;
11180 *)
11181   lt_save_MAGIC_CMD=$MAGIC_CMD
11182   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
11183   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11184   for ac_dir in $ac_dummy; do
11185     IFS=$lt_save_ifs
11186     test -z "$ac_dir" && ac_dir=.
11187     if test -f "$ac_dir/file"; then
11188       lt_cv_path_MAGIC_CMD=$ac_dir/"file"
11189       if test -n "$file_magic_test_file"; then
11190         case $deplibs_check_method in
11191         "file_magic "*)
11192           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
11193           MAGIC_CMD=$lt_cv_path_MAGIC_CMD
11194           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11195             $EGREP "$file_magic_regex" > /dev/null; then
11196             :
11197           else
11198             cat <<_LT_EOF 1>&2
11199
11200 *** Warning: the command libtool uses to detect shared libraries,
11201 *** $file_magic_cmd, produces output that libtool cannot recognize.
11202 *** The result is that libtool may fail to recognize shared libraries
11203 *** as such.  This will affect the creation of libtool libraries that
11204 *** depend on shared libraries, but programs linked with such libtool
11205 *** libraries will work regardless of this problem.  Nevertheless, you
11206 *** may want to report the problem to your system manager and/or to
11207 *** bug-libtool@gnu.org
11208
11209 _LT_EOF
11210           fi ;;
11211         esac
11212       fi
11213       break
11214     fi
11215   done
11216   IFS=$lt_save_ifs
11217   MAGIC_CMD=$lt_save_MAGIC_CMD
11218   ;;
11219 esac
11220 fi
11221
11222 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
11223 if test -n "$MAGIC_CMD"; then
11224   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
11225 $as_echo "$MAGIC_CMD" >&6; }
11226 else
11227   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11228 $as_echo "no" >&6; }
11229 fi
11230
11231
11232   else
11233     MAGIC_CMD=:
11234   fi
11235 fi
11236
11237   fi
11238   ;;
11239 esac
11240
11241 # Use C for the default configuration in the libtool script
11242
11243 lt_save_CC=$CC
11244 ac_ext=c
11245 ac_cpp='$CPP $CPPFLAGS'
11246 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11247 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11248 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11249
11250
11251 # Source file extension for C test sources.
11252 ac_ext=c
11253
11254 # Object file extension for compiled C test sources.
11255 objext=o
11256 objext=$objext
11257
11258 # Code to be used in simple compile tests
11259 lt_simple_compile_test_code="int some_variable = 0;"
11260
11261 # Code to be used in simple link tests
11262 lt_simple_link_test_code='int main(){return(0);}'
11263
11264
11265
11266
11267
11268
11269
11270 # If no C compiler was specified, use CC.
11271 LTCC=${LTCC-"$CC"}
11272
11273 # If no C compiler flags were specified, use CFLAGS.
11274 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11275
11276 # Allow CC to be a program name with arguments.
11277 compiler=$CC
11278
11279 # Save the default compiler, since it gets overwritten when the other
11280 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
11281 compiler_DEFAULT=$CC
11282
11283 # save warnings/boilerplate of simple test code
11284 ac_outfile=conftest.$ac_objext
11285 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11286 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11287 _lt_compiler_boilerplate=`cat conftest.err`
11288 $RM conftest*
11289
11290 ac_outfile=conftest.$ac_objext
11291 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11292 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11293 _lt_linker_boilerplate=`cat conftest.err`
11294 $RM -r conftest*
11295
11296
11297 ## CAVEAT EMPTOR:
11298 ## There is no encapsulation within the following macros, do not change
11299 ## the running order or otherwise move them around unless you know exactly
11300 ## what you are doing...
11301 if test -n "$compiler"; then
11302
11303 lt_prog_compiler_no_builtin_flag=
11304
11305 if test yes = "$GCC"; then
11306   case $cc_basename in
11307   nvcc*)
11308     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
11309   *)
11310     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
11311   esac
11312
11313   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
11314 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
11315 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
11316   $as_echo_n "(cached) " >&6
11317 else
11318   lt_cv_prog_compiler_rtti_exceptions=no
11319    ac_outfile=conftest.$ac_objext
11320    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11321    lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
11322    # Insert the option either (1) after the last *FLAGS variable, or
11323    # (2) before a word containing "conftest.", or (3) at the end.
11324    # Note that $ac_compile itself does not contain backslashes and begins
11325    # with a dollar sign (not a hyphen), so the echo should work correctly.
11326    # The option is referenced via a variable to avoid confusing sed.
11327    lt_compile=`echo "$ac_compile" | $SED \
11328    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11329    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11330    -e 's:$: $lt_compiler_flag:'`
11331    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11332    (eval "$lt_compile" 2>conftest.err)
11333    ac_status=$?
11334    cat conftest.err >&5
11335    echo "$as_me:$LINENO: \$? = $ac_status" >&5
11336    if (exit $ac_status) && test -s "$ac_outfile"; then
11337      # The compiler can only warn and ignore the option if not recognized
11338      # So say no if there are warnings other than the usual output.
11339      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11340      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11341      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11342        lt_cv_prog_compiler_rtti_exceptions=yes
11343      fi
11344    fi
11345    $RM conftest*
11346
11347 fi
11348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
11349 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
11350
11351 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
11352     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
11353 else
11354     :
11355 fi
11356
11357 fi
11358
11359
11360
11361
11362
11363
11364   lt_prog_compiler_wl=
11365 lt_prog_compiler_pic=
11366 lt_prog_compiler_static=
11367
11368
11369   if test yes = "$GCC"; then
11370     lt_prog_compiler_wl='-Wl,'
11371     lt_prog_compiler_static='-static'
11372
11373     case $host_os in
11374       aix*)
11375       # All AIX code is PIC.
11376       if test ia64 = "$host_cpu"; then
11377         # AIX 5 now supports IA64 processor
11378         lt_prog_compiler_static='-Bstatic'
11379       fi
11380       lt_prog_compiler_pic='-fPIC'
11381       ;;
11382
11383     amigaos*)
11384       case $host_cpu in
11385       powerpc)
11386             # see comment about AmigaOS4 .so support
11387             lt_prog_compiler_pic='-fPIC'
11388         ;;
11389       m68k)
11390             # FIXME: we need at least 68020 code to build shared libraries, but
11391             # adding the '-m68020' flag to GCC prevents building anything better,
11392             # like '-m68040'.
11393             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
11394         ;;
11395       esac
11396       ;;
11397
11398     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11399       # PIC is the default for these OSes.
11400       ;;
11401
11402     mingw* | cygwin* | pw32* | os2* | cegcc*)
11403       # This hack is so that the source file can tell whether it is being
11404       # built for inclusion in a dll (and should export symbols for example).
11405       # Although the cygwin gcc ignores -fPIC, still need this for old-style
11406       # (--disable-auto-import) libraries
11407       lt_prog_compiler_pic='-DDLL_EXPORT'
11408       case $host_os in
11409       os2*)
11410         lt_prog_compiler_static='$wl-static'
11411         ;;
11412       esac
11413       ;;
11414
11415     darwin* | rhapsody*)
11416       # PIC is the default on this platform
11417       # Common symbols not allowed in MH_DYLIB files
11418       lt_prog_compiler_pic='-fno-common'
11419       ;;
11420
11421     haiku*)
11422       # PIC is the default for Haiku.
11423       # The "-static" flag exists, but is broken.
11424       lt_prog_compiler_static=
11425       ;;
11426
11427     hpux*)
11428       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
11429       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
11430       # sets the default TLS model and affects inlining.
11431       case $host_cpu in
11432       hppa*64*)
11433         # +Z the default
11434         ;;
11435       *)
11436         lt_prog_compiler_pic='-fPIC'
11437         ;;
11438       esac
11439       ;;
11440
11441     interix[3-9]*)
11442       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11443       # Instead, we relocate shared libraries at runtime.
11444       ;;
11445
11446     msdosdjgpp*)
11447       # Just because we use GCC doesn't mean we suddenly get shared libraries
11448       # on systems that don't support them.
11449       lt_prog_compiler_can_build_shared=no
11450       enable_shared=no
11451       ;;
11452
11453     *nto* | *qnx*)
11454       # QNX uses GNU C++, but need to define -shared option too, otherwise
11455       # it will coredump.
11456       lt_prog_compiler_pic='-fPIC -shared'
11457       ;;
11458
11459     sysv4*MP*)
11460       if test -d /usr/nec; then
11461         lt_prog_compiler_pic=-Kconform_pic
11462       fi
11463       ;;
11464
11465     *)
11466       lt_prog_compiler_pic='-fPIC'
11467       ;;
11468     esac
11469
11470     case $cc_basename in
11471     nvcc*) # Cuda Compiler Driver 2.2
11472       lt_prog_compiler_wl='-Xlinker '
11473       if test -n "$lt_prog_compiler_pic"; then
11474         lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
11475       fi
11476       ;;
11477     esac
11478   else
11479     # PORTME Check for flag to pass linker flags through the system compiler.
11480     case $host_os in
11481     aix*)
11482       lt_prog_compiler_wl='-Wl,'
11483       if test ia64 = "$host_cpu"; then
11484         # AIX 5 now supports IA64 processor
11485         lt_prog_compiler_static='-Bstatic'
11486       else
11487         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
11488       fi
11489       ;;
11490
11491     darwin* | rhapsody*)
11492       # PIC is the default on this platform
11493       # Common symbols not allowed in MH_DYLIB files
11494       lt_prog_compiler_pic='-fno-common'
11495       case $cc_basename in
11496       nagfor*)
11497         # NAG Fortran compiler
11498         lt_prog_compiler_wl='-Wl,-Wl,,'
11499         lt_prog_compiler_pic='-PIC'
11500         lt_prog_compiler_static='-Bstatic'
11501         ;;
11502       esac
11503       ;;
11504
11505     mingw* | cygwin* | pw32* | os2* | cegcc*)
11506       # This hack is so that the source file can tell whether it is being
11507       # built for inclusion in a dll (and should export symbols for example).
11508       lt_prog_compiler_pic='-DDLL_EXPORT'
11509       case $host_os in
11510       os2*)
11511         lt_prog_compiler_static='$wl-static'
11512         ;;
11513       esac
11514       ;;
11515
11516     hpux9* | hpux10* | hpux11*)
11517       lt_prog_compiler_wl='-Wl,'
11518       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11519       # not for PA HP-UX.
11520       case $host_cpu in
11521       hppa*64*|ia64*)
11522         # +Z the default
11523         ;;
11524       *)
11525         lt_prog_compiler_pic='+Z'
11526         ;;
11527       esac
11528       # Is there a better lt_prog_compiler_static that works with the bundled CC?
11529       lt_prog_compiler_static='$wl-a ${wl}archive'
11530       ;;
11531
11532     irix5* | irix6* | nonstopux*)
11533       lt_prog_compiler_wl='-Wl,'
11534       # PIC (with -KPIC) is the default.
11535       lt_prog_compiler_static='-non_shared'
11536       ;;
11537
11538     linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11539       case $cc_basename in
11540       # old Intel for x86_64, which still supported -KPIC.
11541       ecc*)
11542         lt_prog_compiler_wl='-Wl,'
11543         lt_prog_compiler_pic='-KPIC'
11544         lt_prog_compiler_static='-static'
11545         ;;
11546       # icc used to be incompatible with GCC.
11547       # ICC 10 doesn't accept -KPIC any more.
11548       icc* | ifort*)
11549         lt_prog_compiler_wl='-Wl,'
11550         lt_prog_compiler_pic='-fPIC'
11551         lt_prog_compiler_static='-static'
11552         ;;
11553       # Lahey Fortran 8.1.
11554       lf95*)
11555         lt_prog_compiler_wl='-Wl,'
11556         lt_prog_compiler_pic='--shared'
11557         lt_prog_compiler_static='--static'
11558         ;;
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       tcc*)
11566         # Fabrice Bellard et al's Tiny C Compiler
11567         lt_prog_compiler_wl='-Wl,'
11568         lt_prog_compiler_pic='-fPIC'
11569         lt_prog_compiler_static='-static'
11570         ;;
11571       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
11572         # Portland Group compilers (*not* the Pentium gcc compiler,
11573         # which looks to be a dead project)
11574         lt_prog_compiler_wl='-Wl,'
11575         lt_prog_compiler_pic='-fpic'
11576         lt_prog_compiler_static='-Bstatic'
11577         ;;
11578       ccc*)
11579         lt_prog_compiler_wl='-Wl,'
11580         # All Alpha code is PIC.
11581         lt_prog_compiler_static='-non_shared'
11582         ;;
11583       xl* | bgxl* | bgf* | mpixl*)
11584         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
11585         lt_prog_compiler_wl='-Wl,'
11586         lt_prog_compiler_pic='-qpic'
11587         lt_prog_compiler_static='-qstaticlink'
11588         ;;
11589       *)
11590         case `$CC -V 2>&1 | sed 5q` in
11591         *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
11592           # Sun Fortran 8.3 passes all unrecognized flags to the linker
11593           lt_prog_compiler_pic='-KPIC'
11594           lt_prog_compiler_static='-Bstatic'
11595           lt_prog_compiler_wl=''
11596           ;;
11597         *Sun\ F* | *Sun*Fortran*)
11598           lt_prog_compiler_pic='-KPIC'
11599           lt_prog_compiler_static='-Bstatic'
11600           lt_prog_compiler_wl='-Qoption ld '
11601           ;;
11602         *Sun\ C*)
11603           # Sun C 5.9
11604           lt_prog_compiler_pic='-KPIC'
11605           lt_prog_compiler_static='-Bstatic'
11606           lt_prog_compiler_wl='-Wl,'
11607           ;;
11608         *Intel*\ [CF]*Compiler*)
11609           lt_prog_compiler_wl='-Wl,'
11610           lt_prog_compiler_pic='-fPIC'
11611           lt_prog_compiler_static='-static'
11612           ;;
11613         *Portland\ Group*)
11614           lt_prog_compiler_wl='-Wl,'
11615           lt_prog_compiler_pic='-fpic'
11616           lt_prog_compiler_static='-Bstatic'
11617           ;;
11618         esac
11619         ;;
11620       esac
11621       ;;
11622
11623     newsos6)
11624       lt_prog_compiler_pic='-KPIC'
11625       lt_prog_compiler_static='-Bstatic'
11626       ;;
11627
11628     *nto* | *qnx*)
11629       # QNX uses GNU C++, but need to define -shared option too, otherwise
11630       # it will coredump.
11631       lt_prog_compiler_pic='-fPIC -shared'
11632       ;;
11633
11634     osf3* | osf4* | osf5*)
11635       lt_prog_compiler_wl='-Wl,'
11636       # All OSF/1 code is PIC.
11637       lt_prog_compiler_static='-non_shared'
11638       ;;
11639
11640     rdos*)
11641       lt_prog_compiler_static='-non_shared'
11642       ;;
11643
11644     solaris*)
11645       lt_prog_compiler_pic='-KPIC'
11646       lt_prog_compiler_static='-Bstatic'
11647       case $cc_basename in
11648       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
11649         lt_prog_compiler_wl='-Qoption ld ';;
11650       *)
11651         lt_prog_compiler_wl='-Wl,';;
11652       esac
11653       ;;
11654
11655     sunos4*)
11656       lt_prog_compiler_wl='-Qoption ld '
11657       lt_prog_compiler_pic='-PIC'
11658       lt_prog_compiler_static='-Bstatic'
11659       ;;
11660
11661     sysv4 | sysv4.2uw2* | sysv4.3*)
11662       lt_prog_compiler_wl='-Wl,'
11663       lt_prog_compiler_pic='-KPIC'
11664       lt_prog_compiler_static='-Bstatic'
11665       ;;
11666
11667     sysv4*MP*)
11668       if test -d /usr/nec; then
11669         lt_prog_compiler_pic='-Kconform_pic'
11670         lt_prog_compiler_static='-Bstatic'
11671       fi
11672       ;;
11673
11674     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11675       lt_prog_compiler_wl='-Wl,'
11676       lt_prog_compiler_pic='-KPIC'
11677       lt_prog_compiler_static='-Bstatic'
11678       ;;
11679
11680     unicos*)
11681       lt_prog_compiler_wl='-Wl,'
11682       lt_prog_compiler_can_build_shared=no
11683       ;;
11684
11685     uts4*)
11686       lt_prog_compiler_pic='-pic'
11687       lt_prog_compiler_static='-Bstatic'
11688       ;;
11689
11690     *)
11691       lt_prog_compiler_can_build_shared=no
11692       ;;
11693     esac
11694   fi
11695
11696 case $host_os in
11697   # For platforms that do not support PIC, -DPIC is meaningless:
11698   *djgpp*)
11699     lt_prog_compiler_pic=
11700     ;;
11701   *)
11702     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
11703     ;;
11704 esac
11705
11706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
11707 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
11708 if ${lt_cv_prog_compiler_pic+:} false; then :
11709   $as_echo_n "(cached) " >&6
11710 else
11711   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
11712 fi
11713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
11714 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
11715 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
11716
11717 #
11718 # Check to make sure the PIC flag actually works.
11719 #
11720 if test -n "$lt_prog_compiler_pic"; then
11721   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
11722 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
11723 if ${lt_cv_prog_compiler_pic_works+:} false; then :
11724   $as_echo_n "(cached) " >&6
11725 else
11726   lt_cv_prog_compiler_pic_works=no
11727    ac_outfile=conftest.$ac_objext
11728    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11729    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
11730    # Insert the option either (1) after the last *FLAGS variable, or
11731    # (2) before a word containing "conftest.", or (3) at the end.
11732    # Note that $ac_compile itself does not contain backslashes and begins
11733    # with a dollar sign (not a hyphen), so the echo should work correctly.
11734    # The option is referenced via a variable to avoid confusing sed.
11735    lt_compile=`echo "$ac_compile" | $SED \
11736    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11737    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11738    -e 's:$: $lt_compiler_flag:'`
11739    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11740    (eval "$lt_compile" 2>conftest.err)
11741    ac_status=$?
11742    cat conftest.err >&5
11743    echo "$as_me:$LINENO: \$? = $ac_status" >&5
11744    if (exit $ac_status) && test -s "$ac_outfile"; then
11745      # The compiler can only warn and ignore the option if not recognized
11746      # So say no if there are warnings other than the usual output.
11747      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11748      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11749      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11750        lt_cv_prog_compiler_pic_works=yes
11751      fi
11752    fi
11753    $RM conftest*
11754
11755 fi
11756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
11757 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
11758
11759 if test yes = "$lt_cv_prog_compiler_pic_works"; then
11760     case $lt_prog_compiler_pic in
11761      "" | " "*) ;;
11762      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
11763      esac
11764 else
11765     lt_prog_compiler_pic=
11766      lt_prog_compiler_can_build_shared=no
11767 fi
11768
11769 fi
11770
11771
11772
11773
11774
11775
11776
11777
11778
11779
11780
11781 #
11782 # Check to make sure the static flag actually works.
11783 #
11784 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
11785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11786 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
11787 if ${lt_cv_prog_compiler_static_works+:} false; then :
11788   $as_echo_n "(cached) " >&6
11789 else
11790   lt_cv_prog_compiler_static_works=no
11791    save_LDFLAGS=$LDFLAGS
11792    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11793    echo "$lt_simple_link_test_code" > conftest.$ac_ext
11794    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11795      # The linker can only warn and ignore the option if not recognized
11796      # So say no if there are warnings
11797      if test -s conftest.err; then
11798        # Append any errors to the config.log.
11799        cat conftest.err 1>&5
11800        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11801        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11802        if diff conftest.exp conftest.er2 >/dev/null; then
11803          lt_cv_prog_compiler_static_works=yes
11804        fi
11805      else
11806        lt_cv_prog_compiler_static_works=yes
11807      fi
11808    fi
11809    $RM -r conftest*
11810    LDFLAGS=$save_LDFLAGS
11811
11812 fi
11813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
11814 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
11815
11816 if test yes = "$lt_cv_prog_compiler_static_works"; then
11817     :
11818 else
11819     lt_prog_compiler_static=
11820 fi
11821
11822
11823
11824
11825
11826
11827
11828   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11829 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11830 if ${lt_cv_prog_compiler_c_o+:} false; then :
11831   $as_echo_n "(cached) " >&6
11832 else
11833   lt_cv_prog_compiler_c_o=no
11834    $RM -r conftest 2>/dev/null
11835    mkdir conftest
11836    cd conftest
11837    mkdir out
11838    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11839
11840    lt_compiler_flag="-o out/conftest2.$ac_objext"
11841    # Insert the option either (1) after the last *FLAGS variable, or
11842    # (2) before a word containing "conftest.", or (3) at the end.
11843    # Note that $ac_compile itself does not contain backslashes and begins
11844    # with a dollar sign (not a hyphen), so the echo should work correctly.
11845    lt_compile=`echo "$ac_compile" | $SED \
11846    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11847    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11848    -e 's:$: $lt_compiler_flag:'`
11849    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11850    (eval "$lt_compile" 2>out/conftest.err)
11851    ac_status=$?
11852    cat out/conftest.err >&5
11853    echo "$as_me:$LINENO: \$? = $ac_status" >&5
11854    if (exit $ac_status) && test -s out/conftest2.$ac_objext
11855    then
11856      # The compiler can only warn and ignore the option if not recognized
11857      # So say no if there are warnings
11858      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
11859      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11860      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11861        lt_cv_prog_compiler_c_o=yes
11862      fi
11863    fi
11864    chmod u+w . 2>&5
11865    $RM conftest*
11866    # SGI C++ compiler will create directory out/ii_files/ for
11867    # template instantiation
11868    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11869    $RM out/* && rmdir out
11870    cd ..
11871    $RM -r conftest
11872    $RM conftest*
11873
11874 fi
11875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
11876 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
11877
11878
11879
11880
11881
11882
11883   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11884 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11885 if ${lt_cv_prog_compiler_c_o+:} false; then :
11886   $as_echo_n "(cached) " >&6
11887 else
11888   lt_cv_prog_compiler_c_o=no
11889    $RM -r conftest 2>/dev/null
11890    mkdir conftest
11891    cd conftest
11892    mkdir out
11893    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11894
11895    lt_compiler_flag="-o out/conftest2.$ac_objext"
11896    # Insert the option either (1) after the last *FLAGS variable, or
11897    # (2) before a word containing "conftest.", or (3) at the end.
11898    # Note that $ac_compile itself does not contain backslashes and begins
11899    # with a dollar sign (not a hyphen), so the echo should work correctly.
11900    lt_compile=`echo "$ac_compile" | $SED \
11901    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11902    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11903    -e 's:$: $lt_compiler_flag:'`
11904    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11905    (eval "$lt_compile" 2>out/conftest.err)
11906    ac_status=$?
11907    cat out/conftest.err >&5
11908    echo "$as_me:$LINENO: \$? = $ac_status" >&5
11909    if (exit $ac_status) && test -s out/conftest2.$ac_objext
11910    then
11911      # The compiler can only warn and ignore the option if not recognized
11912      # So say no if there are warnings
11913      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
11914      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11915      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11916        lt_cv_prog_compiler_c_o=yes
11917      fi
11918    fi
11919    chmod u+w . 2>&5
11920    $RM conftest*
11921    # SGI C++ compiler will create directory out/ii_files/ for
11922    # template instantiation
11923    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11924    $RM out/* && rmdir out
11925    cd ..
11926    $RM -r conftest
11927    $RM conftest*
11928
11929 fi
11930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
11931 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
11932
11933
11934
11935
11936 hard_links=nottested
11937 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
11938   # do not overwrite the value of need_locks provided by the user
11939   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
11940 $as_echo_n "checking if we can lock with hard links... " >&6; }
11941   hard_links=yes
11942   $RM conftest*
11943   ln conftest.a conftest.b 2>/dev/null && hard_links=no
11944   touch conftest.a
11945   ln conftest.a conftest.b 2>&5 || hard_links=no
11946   ln conftest.a conftest.b 2>/dev/null && hard_links=no
11947   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
11948 $as_echo "$hard_links" >&6; }
11949   if test no = "$hard_links"; then
11950     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
11951 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
11952     need_locks=warn
11953   fi
11954 else
11955   need_locks=no
11956 fi
11957
11958
11959
11960
11961
11962
11963   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11964 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11965
11966   runpath_var=
11967   allow_undefined_flag=
11968   always_export_symbols=no
11969   archive_cmds=
11970   archive_expsym_cmds=
11971   compiler_needs_object=no
11972   enable_shared_with_static_runtimes=no
11973   export_dynamic_flag_spec=
11974   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11975   hardcode_automatic=no
11976   hardcode_direct=no
11977   hardcode_direct_absolute=no
11978   hardcode_libdir_flag_spec=
11979   hardcode_libdir_separator=
11980   hardcode_minus_L=no
11981   hardcode_shlibpath_var=unsupported
11982   inherit_rpath=no
11983   link_all_deplibs=unknown
11984   module_cmds=
11985   module_expsym_cmds=
11986   old_archive_from_new_cmds=
11987   old_archive_from_expsyms_cmds=
11988   thread_safe_flag_spec=
11989   whole_archive_flag_spec=
11990   # include_expsyms should be a list of space-separated symbols to be *always*
11991   # included in the symbol list
11992   include_expsyms=
11993   # exclude_expsyms can be an extended regexp of symbols to exclude
11994   # it will be wrapped by ' (' and ')$', so one must not match beginning or
11995   # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
11996   # as well as any symbol that contains 'd'.
11997   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
11998   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
11999   # platforms (ab)use it in PIC code, but their linkers get confused if
12000   # the symbol is explicitly referenced.  Since portable code cannot
12001   # rely on this symbol name, it's probably fine to never include it in
12002   # preloaded symbol tables.
12003   # Exclude shared library initialization/finalization symbols.
12004   extract_expsyms_cmds=
12005
12006   case $host_os in
12007   cygwin* | mingw* | pw32* | cegcc*)
12008     # FIXME: the MSVC++ port hasn't been tested in a loooong time
12009     # When not using gcc, we currently assume that we are using
12010     # Microsoft Visual C++.
12011     if test yes != "$GCC"; then
12012       with_gnu_ld=no
12013     fi
12014     ;;
12015   interix*)
12016     # we just hope/assume this is gcc and not c89 (= MSVC++)
12017     with_gnu_ld=yes
12018     ;;
12019   openbsd* | bitrig*)
12020     with_gnu_ld=no
12021     ;;
12022   esac
12023
12024   ld_shlibs=yes
12025
12026   # On some targets, GNU ld is compatible enough with the native linker
12027   # that we're better off using the native interface for both.
12028   lt_use_gnu_ld_interface=no
12029   if test yes = "$with_gnu_ld"; then
12030     case $host_os in
12031       aix*)
12032         # The AIX port of GNU ld has always aspired to compatibility
12033         # with the native linker.  However, as the warning in the GNU ld
12034         # block says, versions before 2.19.5* couldn't really create working
12035         # shared libraries, regardless of the interface used.
12036         case `$LD -v 2>&1` in
12037           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
12038           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
12039           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
12040           *)
12041             lt_use_gnu_ld_interface=yes
12042             ;;
12043         esac
12044         ;;
12045       *)
12046         lt_use_gnu_ld_interface=yes
12047         ;;
12048     esac
12049   fi
12050
12051   if test yes = "$lt_use_gnu_ld_interface"; then
12052     # If archive_cmds runs LD, not CC, wlarc should be empty
12053     wlarc='$wl'
12054
12055     # Set some defaults for GNU ld with shared library support. These
12056     # are reset later if shared libraries are not supported. Putting them
12057     # here allows them to be overridden if necessary.
12058     runpath_var=LD_RUN_PATH
12059     hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12060     export_dynamic_flag_spec='$wl--export-dynamic'
12061     # ancient GNU ld didn't support --whole-archive et. al.
12062     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
12063       whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
12064     else
12065       whole_archive_flag_spec=
12066     fi
12067     supports_anon_versioning=no
12068     case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
12069       *GNU\ gold*) supports_anon_versioning=yes ;;
12070       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12071       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12072       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12073       *\ 2.11.*) ;; # other 2.11 versions
12074       *) supports_anon_versioning=yes ;;
12075     esac
12076
12077     # See if GNU ld supports shared libraries.
12078     case $host_os in
12079     aix[3-9]*)
12080       # On AIX/PPC, the GNU linker is very broken
12081       if test ia64 != "$host_cpu"; then
12082         ld_shlibs=no
12083         cat <<_LT_EOF 1>&2
12084
12085 *** Warning: the GNU linker, at least up to release 2.19, is reported
12086 *** to be unable to reliably create shared libraries on AIX.
12087 *** Therefore, libtool is disabling shared libraries support.  If you
12088 *** really care for shared libraries, you may want to install binutils
12089 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
12090 *** You will then need to restart the configuration process.
12091
12092 _LT_EOF
12093       fi
12094       ;;
12095
12096     amigaos*)
12097       case $host_cpu in
12098       powerpc)
12099             # see comment about AmigaOS4 .so support
12100             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12101             archive_expsym_cmds=''
12102         ;;
12103       m68k)
12104             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)'
12105             hardcode_libdir_flag_spec='-L$libdir'
12106             hardcode_minus_L=yes
12107         ;;
12108       esac
12109       ;;
12110
12111     beos*)
12112       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12113         allow_undefined_flag=unsupported
12114         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12115         # support --undefined.  This deserves some investigation.  FIXME
12116         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12117       else
12118         ld_shlibs=no
12119       fi
12120       ;;
12121
12122     cygwin* | mingw* | pw32* | cegcc*)
12123       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
12124       # as there is no search path for DLLs.
12125       hardcode_libdir_flag_spec='-L$libdir'
12126       export_dynamic_flag_spec='$wl--export-all-symbols'
12127       allow_undefined_flag=unsupported
12128       always_export_symbols=no
12129       enable_shared_with_static_runtimes=yes
12130       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'
12131       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
12132
12133       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12134         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12135         # If the export-symbols file already is a .def file, use it as
12136         # is; otherwise, prepend EXPORTS...
12137         archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[   ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([     ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
12138           cp $export_symbols $output_objdir/$soname.def;
12139         else
12140           echo EXPORTS > $output_objdir/$soname.def;
12141           cat $export_symbols >> $output_objdir/$soname.def;
12142         fi~
12143         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12144       else
12145         ld_shlibs=no
12146       fi
12147       ;;
12148
12149     haiku*)
12150       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12151       link_all_deplibs=yes
12152       ;;
12153
12154     os2*)
12155       hardcode_libdir_flag_spec='-L$libdir'
12156       hardcode_minus_L=yes
12157       allow_undefined_flag=unsupported
12158       shrext_cmds=.dll
12159       archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12160         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12161         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12162         $ECHO EXPORTS >> $output_objdir/$libname.def~
12163         emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
12164         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12165         emximp -o $lib $output_objdir/$libname.def'
12166       archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12167         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12168         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12169         $ECHO EXPORTS >> $output_objdir/$libname.def~
12170         prefix_cmds="$SED"~
12171         if test EXPORTS = "`$SED 1q $export_symbols`"; then
12172           prefix_cmds="$prefix_cmds -e 1d";
12173         fi~
12174         prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
12175         cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
12176         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12177         emximp -o $lib $output_objdir/$libname.def'
12178       old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
12179       enable_shared_with_static_runtimes=yes
12180       ;;
12181
12182     interix[3-9]*)
12183       hardcode_direct=no
12184       hardcode_shlibpath_var=no
12185       hardcode_libdir_flag_spec='$wl-rpath,$libdir'
12186       export_dynamic_flag_spec='$wl-E'
12187       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12188       # Instead, shared libraries are loaded at an image base (0x10000000 by
12189       # default) and relocated if they conflict, which is a slow very memory
12190       # consuming and fragmenting process.  To avoid this, we pick a random,
12191       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12192       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
12193       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
12194       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'
12195       ;;
12196
12197     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
12198       tmp_diet=no
12199       if test linux-dietlibc = "$host_os"; then
12200         case $cc_basename in
12201           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
12202         esac
12203       fi
12204       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
12205          && test no = "$tmp_diet"
12206       then
12207         tmp_addflag=' $pic_flag'
12208         tmp_sharedflag='-shared'
12209         case $cc_basename,$host_cpu in
12210         pgcc*)                          # Portland Group C compiler
12211           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'
12212           tmp_addflag=' $pic_flag'
12213           ;;
12214         pgf77* | pgf90* | pgf95* | pgfortran*)
12215                                         # Portland Group f77 and f90 compilers
12216           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'
12217           tmp_addflag=' $pic_flag -Mnomain' ;;
12218         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
12219           tmp_addflag=' -i_dynamic' ;;
12220         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
12221           tmp_addflag=' -i_dynamic -nofor_main' ;;
12222         ifc* | ifort*)                  # Intel Fortran compiler
12223           tmp_addflag=' -nofor_main' ;;
12224         lf95*)                          # Lahey Fortran 8.1
12225           whole_archive_flag_spec=
12226           tmp_sharedflag='--shared' ;;
12227         nagfor*)                        # NAGFOR 5.3
12228           tmp_sharedflag='-Wl,-shared' ;;
12229         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
12230           tmp_sharedflag='-qmkshrobj'
12231           tmp_addflag= ;;
12232         nvcc*)  # Cuda Compiler Driver 2.2
12233           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'
12234           compiler_needs_object=yes
12235           ;;
12236         esac
12237         case `$CC -V 2>&1 | sed 5q` in
12238         *Sun\ C*)                       # Sun C 5.9
12239           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'
12240           compiler_needs_object=yes
12241           tmp_sharedflag='-G' ;;
12242         *Sun\ F*)                       # Sun Fortran 8.3
12243           tmp_sharedflag='-G' ;;
12244         esac
12245         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12246
12247         if test yes = "$supports_anon_versioning"; then
12248           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
12249             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12250             echo "local: *; };" >> $output_objdir/$libname.ver~
12251             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
12252         fi
12253
12254         case $cc_basename in
12255         tcc*)
12256           export_dynamic_flag_spec='-rdynamic'
12257           ;;
12258         xlf* | bgf* | bgxlf* | mpixlf*)
12259           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
12260           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
12261           hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12262           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
12263           if test yes = "$supports_anon_versioning"; then
12264             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
12265               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12266               echo "local: *; };" >> $output_objdir/$libname.ver~
12267               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
12268           fi
12269           ;;
12270         esac
12271       else
12272         ld_shlibs=no
12273       fi
12274       ;;
12275
12276     netbsd*)
12277       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12278         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12279         wlarc=
12280       else
12281         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12282         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12283       fi
12284       ;;
12285
12286     solaris*)
12287       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
12288         ld_shlibs=no
12289         cat <<_LT_EOF 1>&2
12290
12291 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
12292 *** create shared libraries on Solaris systems.  Therefore, libtool
12293 *** is disabling shared libraries support.  We urge you to upgrade GNU
12294 *** binutils to release 2.9.1 or newer.  Another option is to modify
12295 *** your PATH or compiler configuration so that the native linker is
12296 *** used, and then restart.
12297
12298 _LT_EOF
12299       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12300         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12301         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12302       else
12303         ld_shlibs=no
12304       fi
12305       ;;
12306
12307     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
12308       case `$LD -v 2>&1` in
12309         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
12310         ld_shlibs=no
12311         cat <<_LT_EOF 1>&2
12312
12313 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
12314 *** reliably create shared libraries on SCO systems.  Therefore, libtool
12315 *** is disabling shared libraries support.  We urge you to upgrade GNU
12316 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
12317 *** your PATH or compiler configuration so that the native linker is
12318 *** used, and then restart.
12319
12320 _LT_EOF
12321         ;;
12322         *)
12323           # For security reasons, it is highly recommended that you always
12324           # use absolute paths for naming shared libraries, and exclude the
12325           # DT_RUNPATH tag from executables and libraries.  But doing so
12326           # requires that you compile everything twice, which is a pain.
12327           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12328             hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12329             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12330             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12331           else
12332             ld_shlibs=no
12333           fi
12334         ;;
12335       esac
12336       ;;
12337
12338     sunos4*)
12339       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12340       wlarc=
12341       hardcode_direct=yes
12342       hardcode_shlibpath_var=no
12343       ;;
12344
12345     *)
12346       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12347         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12348         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12349       else
12350         ld_shlibs=no
12351       fi
12352       ;;
12353     esac
12354
12355     if test no = "$ld_shlibs"; then
12356       runpath_var=
12357       hardcode_libdir_flag_spec=
12358       export_dynamic_flag_spec=
12359       whole_archive_flag_spec=
12360     fi
12361   else
12362     # PORTME fill in a description of your system's linker (not GNU ld)
12363     case $host_os in
12364     aix3*)
12365       allow_undefined_flag=unsupported
12366       always_export_symbols=yes
12367       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'
12368       # Note: this linker hardcodes the directories in LIBPATH if there
12369       # are no directories specified by -L.
12370       hardcode_minus_L=yes
12371       if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
12372         # Neither direct hardcoding nor static linking is supported with a
12373         # broken collect2.
12374         hardcode_direct=unsupported
12375       fi
12376       ;;
12377
12378     aix[4-9]*)
12379       if test ia64 = "$host_cpu"; then
12380         # On IA64, the linker does run time linking by default, so we don't
12381         # have to do anything special.
12382         aix_use_runtimelinking=no
12383         exp_sym_flag='-Bexport'
12384         no_entry_flag=
12385       else
12386         # If we're using GNU nm, then we don't want the "-C" option.
12387         # -C means demangle to GNU nm, but means don't demangle to AIX nm.
12388         # Without the "-l" option, or with the "-B" option, AIX nm treats
12389         # weak defined symbols like other global defined symbols, whereas
12390         # GNU nm marks them as "W".
12391         # While the 'weak' keyword is ignored in the Export File, we need
12392         # it in the Import File for the 'aix-soname' feature, so we have
12393         # to replace the "-B" option with "-P" for AIX nm.
12394         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
12395           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'
12396         else
12397           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'
12398         fi
12399         aix_use_runtimelinking=no
12400
12401         # Test if we are trying to use run time linking or normal
12402         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12403         # have runtime linking enabled, and use it for executables.
12404         # For shared libraries, we enable/disable runtime linking
12405         # depending on the kind of the shared library created -
12406         # when "with_aix_soname,aix_use_runtimelinking" is:
12407         # "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
12408         # "aix,yes"  lib.so          shared, rtl:yes, for executables
12409         #            lib.a           static archive
12410         # "both,no"  lib.so.V(shr.o) shared, rtl:yes
12411         #            lib.a(lib.so.V) shared, rtl:no,  for executables
12412         # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
12413         #            lib.a(lib.so.V) shared, rtl:no
12414         # "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
12415         #            lib.a           static archive
12416         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12417           for ld_flag in $LDFLAGS; do
12418           if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
12419             aix_use_runtimelinking=yes
12420             break
12421           fi
12422           done
12423           if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
12424             # With aix-soname=svr4, we create the lib.so.V shared archives only,
12425             # so we don't have lib.a shared libs to link our executables.
12426             # We have to force runtime linking in this case.
12427             aix_use_runtimelinking=yes
12428             LDFLAGS="$LDFLAGS -Wl,-brtl"
12429           fi
12430           ;;
12431         esac
12432
12433         exp_sym_flag='-bexport'
12434         no_entry_flag='-bnoentry'
12435       fi
12436
12437       # When large executables or shared objects are built, AIX ld can
12438       # have problems creating the table of contents.  If linking a library
12439       # or program results in "error TOC overflow" add -mminimal-toc to
12440       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
12441       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12442
12443       archive_cmds=''
12444       hardcode_direct=yes
12445       hardcode_direct_absolute=yes
12446       hardcode_libdir_separator=':'
12447       link_all_deplibs=yes
12448       file_list_spec='$wl-f,'
12449       case $with_aix_soname,$aix_use_runtimelinking in
12450       aix,*) ;; # traditional, no import file
12451       svr4,* | *,yes) # use import file
12452         # The Import File defines what to hardcode.
12453         hardcode_direct=no
12454         hardcode_direct_absolute=no
12455         ;;
12456       esac
12457
12458       if test yes = "$GCC"; then
12459         case $host_os in aix4.[012]|aix4.[012].*)
12460         # We only want to do this on AIX 4.2 and lower, the check
12461         # below for broken collect2 doesn't work under 4.3+
12462           collect2name=`$CC -print-prog-name=collect2`
12463           if test -f "$collect2name" &&
12464            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12465           then
12466           # We have reworked collect2
12467           :
12468           else
12469           # We have old collect2
12470           hardcode_direct=unsupported
12471           # It fails to find uninstalled libraries when the uninstalled
12472           # path is not listed in the libpath.  Setting hardcode_minus_L
12473           # to unsupported forces relinking
12474           hardcode_minus_L=yes
12475           hardcode_libdir_flag_spec='-L$libdir'
12476           hardcode_libdir_separator=
12477           fi
12478           ;;
12479         esac
12480         shared_flag='-shared'
12481         if test yes = "$aix_use_runtimelinking"; then
12482           shared_flag="$shared_flag "'$wl-G'
12483         fi
12484         # Need to ensure runtime linking is disabled for the traditional
12485         # shared library, or the linker may eventually find shared libraries
12486         # /with/ Import File - we do not want to mix them.
12487         shared_flag_aix='-shared'
12488         shared_flag_svr4='-shared $wl-G'
12489       else
12490         # not using gcc
12491         if test ia64 = "$host_cpu"; then
12492         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12493         # chokes on -Wl,-G. The following line is correct:
12494           shared_flag='-G'
12495         else
12496           if test yes = "$aix_use_runtimelinking"; then
12497             shared_flag='$wl-G'
12498           else
12499             shared_flag='$wl-bM:SRE'
12500           fi
12501           shared_flag_aix='$wl-bM:SRE'
12502           shared_flag_svr4='$wl-G'
12503         fi
12504       fi
12505
12506       export_dynamic_flag_spec='$wl-bexpall'
12507       # It seems that -bexpall does not export symbols beginning with
12508       # underscore (_), so it is better to generate a list of symbols to export.
12509       always_export_symbols=yes
12510       if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
12511         # Warning - without using the other runtime loading flags (-brtl),
12512         # -berok will link without error, but may produce a broken library.
12513         allow_undefined_flag='-berok'
12514         # Determine the default libpath from the value encoded in an
12515         # empty executable.
12516         if test set = "${lt_cv_aix_libpath+set}"; then
12517   aix_libpath=$lt_cv_aix_libpath
12518 else
12519   if ${lt_cv_aix_libpath_+:} false; then :
12520   $as_echo_n "(cached) " >&6
12521 else
12522   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12523 /* end confdefs.h.  */
12524
12525 int
12526 main ()
12527 {
12528
12529   ;
12530   return 0;
12531 }
12532 _ACEOF
12533 if ac_fn_c_try_link "$LINENO"; then :
12534
12535   lt_aix_libpath_sed='
12536       /Import File Strings/,/^$/ {
12537           /^0/ {
12538               s/^0  *\([^ ]*\) *$/\1/
12539               p
12540           }
12541       }'
12542   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12543   # Check for a 64-bit object if we didn't find anything.
12544   if test -z "$lt_cv_aix_libpath_"; then
12545     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12546   fi
12547 fi
12548 rm -f core conftest.err conftest.$ac_objext \
12549     conftest$ac_exeext conftest.$ac_ext
12550   if test -z "$lt_cv_aix_libpath_"; then
12551     lt_cv_aix_libpath_=/usr/lib:/lib
12552   fi
12553
12554 fi
12555
12556   aix_libpath=$lt_cv_aix_libpath_
12557 fi
12558
12559         hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
12560         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
12561       else
12562         if test ia64 = "$host_cpu"; then
12563           hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
12564           allow_undefined_flag="-z nodefs"
12565           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"
12566         else
12567          # Determine the default libpath from the value encoded in an
12568          # empty executable.
12569          if test set = "${lt_cv_aix_libpath+set}"; then
12570   aix_libpath=$lt_cv_aix_libpath
12571 else
12572   if ${lt_cv_aix_libpath_+:} false; then :
12573   $as_echo_n "(cached) " >&6
12574 else
12575   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12576 /* end confdefs.h.  */
12577
12578 int
12579 main ()
12580 {
12581
12582   ;
12583   return 0;
12584 }
12585 _ACEOF
12586 if ac_fn_c_try_link "$LINENO"; then :
12587
12588   lt_aix_libpath_sed='
12589       /Import File Strings/,/^$/ {
12590           /^0/ {
12591               s/^0  *\([^ ]*\) *$/\1/
12592               p
12593           }
12594       }'
12595   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12596   # Check for a 64-bit object if we didn't find anything.
12597   if test -z "$lt_cv_aix_libpath_"; then
12598     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12599   fi
12600 fi
12601 rm -f core conftest.err conftest.$ac_objext \
12602     conftest$ac_exeext conftest.$ac_ext
12603   if test -z "$lt_cv_aix_libpath_"; then
12604     lt_cv_aix_libpath_=/usr/lib:/lib
12605   fi
12606
12607 fi
12608
12609   aix_libpath=$lt_cv_aix_libpath_
12610 fi
12611
12612          hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
12613           # Warning - without using the other run time loading flags,
12614           # -berok will link without error, but may produce a broken library.
12615           no_undefined_flag=' $wl-bernotok'
12616           allow_undefined_flag=' $wl-berok'
12617           if test yes = "$with_gnu_ld"; then
12618             # We only use this code for GNU lds that support --whole-archive.
12619             whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
12620           else
12621             # Exported symbols can be pulled into shared objects from archives
12622             whole_archive_flag_spec='$convenience'
12623           fi
12624           archive_cmds_need_lc=yes
12625           archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
12626           # -brtl affects multiple linker settings, -berok does not and is overridden later
12627           compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
12628           if test svr4 != "$with_aix_soname"; then
12629             # This is similar to how AIX traditionally builds its shared libraries.
12630             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'
12631           fi
12632           if test aix != "$with_aix_soname"; then
12633             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'
12634           else
12635             # used by -dlpreopen to get the symbols
12636             archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
12637           fi
12638           archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
12639         fi
12640       fi
12641       ;;
12642
12643     amigaos*)
12644       case $host_cpu in
12645       powerpc)
12646             # see comment about AmigaOS4 .so support
12647             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12648             archive_expsym_cmds=''
12649         ;;
12650       m68k)
12651             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)'
12652             hardcode_libdir_flag_spec='-L$libdir'
12653             hardcode_minus_L=yes
12654         ;;
12655       esac
12656       ;;
12657
12658     bsdi[45]*)
12659       export_dynamic_flag_spec=-rdynamic
12660       ;;
12661
12662     cygwin* | mingw* | pw32* | cegcc*)
12663       # When not using gcc, we currently assume that we are using
12664       # Microsoft Visual C++.
12665       # hardcode_libdir_flag_spec is actually meaningless, as there is
12666       # no search path for DLLs.
12667       case $cc_basename in
12668       cl*)
12669         # Native MSVC
12670         hardcode_libdir_flag_spec=' '
12671         allow_undefined_flag=unsupported
12672         always_export_symbols=yes
12673         file_list_spec='@'
12674         # Tell ltmain to make .lib files, not .a files.
12675         libext=lib
12676         # Tell ltmain to make .dll files, not .so files.
12677         shrext_cmds=.dll
12678         # FIXME: Setting linknames here is a bad hack.
12679         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
12680         archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[   ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([     ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
12681             cp "$export_symbols" "$output_objdir/$soname.def";
12682             echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
12683           else
12684             $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
12685           fi~
12686           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
12687           linknames='
12688         # The linker will not automatically build a static lib if we build a DLL.
12689         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
12690         enable_shared_with_static_runtimes=yes
12691         exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
12692         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
12693         # Don't use ranlib
12694         old_postinstall_cmds='chmod 644 $oldlib'
12695         postlink_cmds='lt_outputfile="@OUTPUT@"~
12696           lt_tool_outputfile="@TOOL_OUTPUT@"~
12697           case $lt_outputfile in
12698             *.exe|*.EXE) ;;
12699             *)
12700               lt_outputfile=$lt_outputfile.exe
12701               lt_tool_outputfile=$lt_tool_outputfile.exe
12702               ;;
12703           esac~
12704           if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
12705             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
12706             $RM "$lt_outputfile.manifest";
12707           fi'
12708         ;;
12709       *)
12710         # Assume MSVC wrapper
12711         hardcode_libdir_flag_spec=' '
12712         allow_undefined_flag=unsupported
12713         # Tell ltmain to make .lib files, not .a files.
12714         libext=lib
12715         # Tell ltmain to make .dll files, not .so files.
12716         shrext_cmds=.dll
12717         # FIXME: Setting linknames here is a bad hack.
12718         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
12719         # The linker will automatically build a .lib file if we build a DLL.
12720         old_archive_from_new_cmds='true'
12721         # FIXME: Should let the user specify the lib program.
12722         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
12723         enable_shared_with_static_runtimes=yes
12724         ;;
12725       esac
12726       ;;
12727
12728     darwin* | rhapsody*)
12729
12730
12731   archive_cmds_need_lc=no
12732   hardcode_direct=no
12733   hardcode_automatic=yes
12734   hardcode_shlibpath_var=unsupported
12735   if test yes = "$lt_cv_ld_force_load"; then
12736     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\"`'
12737
12738   else
12739     whole_archive_flag_spec=''
12740   fi
12741   link_all_deplibs=yes
12742   allow_undefined_flag=$_lt_dar_allow_undefined
12743   case $cc_basename in
12744      ifort*|nagfor*) _lt_dar_can_shared=yes ;;
12745      *) _lt_dar_can_shared=$GCC ;;
12746   esac
12747   if test yes = "$_lt_dar_can_shared"; then
12748     output_verbose_link_cmd=func_echo_all
12749     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
12750     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
12751     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"
12752     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"
12753
12754   else
12755   ld_shlibs=no
12756   fi
12757
12758       ;;
12759
12760     dgux*)
12761       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12762       hardcode_libdir_flag_spec='-L$libdir'
12763       hardcode_shlibpath_var=no
12764       ;;
12765
12766     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12767     # support.  Future versions do this automatically, but an explicit c++rt0.o
12768     # does not break anything, and helps significantly (at the cost of a little
12769     # extra space).
12770     freebsd2.2*)
12771       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
12772       hardcode_libdir_flag_spec='-R$libdir'
12773       hardcode_direct=yes
12774       hardcode_shlibpath_var=no
12775       ;;
12776
12777     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
12778     freebsd2.*)
12779       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12780       hardcode_direct=yes
12781       hardcode_minus_L=yes
12782       hardcode_shlibpath_var=no
12783       ;;
12784
12785     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
12786     freebsd* | dragonfly*)
12787       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12788       hardcode_libdir_flag_spec='-R$libdir'
12789       hardcode_direct=yes
12790       hardcode_shlibpath_var=no
12791       ;;
12792
12793     hpux9*)
12794       if test yes = "$GCC"; then
12795         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'
12796       else
12797         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'
12798       fi
12799       hardcode_libdir_flag_spec='$wl+b $wl$libdir'
12800       hardcode_libdir_separator=:
12801       hardcode_direct=yes
12802
12803       # hardcode_minus_L: Not really in the search PATH,
12804       # but as the default location of the library.
12805       hardcode_minus_L=yes
12806       export_dynamic_flag_spec='$wl-E'
12807       ;;
12808
12809     hpux10*)
12810       if test yes,no = "$GCC,$with_gnu_ld"; then
12811         archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12812       else
12813         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12814       fi
12815       if test no = "$with_gnu_ld"; then
12816         hardcode_libdir_flag_spec='$wl+b $wl$libdir'
12817         hardcode_libdir_separator=:
12818         hardcode_direct=yes
12819         hardcode_direct_absolute=yes
12820         export_dynamic_flag_spec='$wl-E'
12821         # hardcode_minus_L: Not really in the search PATH,
12822         # but as the default location of the library.
12823         hardcode_minus_L=yes
12824       fi
12825       ;;
12826
12827     hpux11*)
12828       if test yes,no = "$GCC,$with_gnu_ld"; then
12829         case $host_cpu in
12830         hppa*64*)
12831           archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
12832           ;;
12833         ia64*)
12834           archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12835           ;;
12836         *)
12837           archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12838           ;;
12839         esac
12840       else
12841         case $host_cpu in
12842         hppa*64*)
12843           archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
12844           ;;
12845         ia64*)
12846           archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12847           ;;
12848         *)
12849
12850           # Older versions of the 11.00 compiler do not understand -b yet
12851           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
12852           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
12853 $as_echo_n "checking if $CC understands -b... " >&6; }
12854 if ${lt_cv_prog_compiler__b+:} false; then :
12855   $as_echo_n "(cached) " >&6
12856 else
12857   lt_cv_prog_compiler__b=no
12858    save_LDFLAGS=$LDFLAGS
12859    LDFLAGS="$LDFLAGS -b"
12860    echo "$lt_simple_link_test_code" > conftest.$ac_ext
12861    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12862      # The linker can only warn and ignore the option if not recognized
12863      # So say no if there are warnings
12864      if test -s conftest.err; then
12865        # Append any errors to the config.log.
12866        cat conftest.err 1>&5
12867        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
12868        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12869        if diff conftest.exp conftest.er2 >/dev/null; then
12870          lt_cv_prog_compiler__b=yes
12871        fi
12872      else
12873        lt_cv_prog_compiler__b=yes
12874      fi
12875    fi
12876    $RM -r conftest*
12877    LDFLAGS=$save_LDFLAGS
12878
12879 fi
12880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
12881 $as_echo "$lt_cv_prog_compiler__b" >&6; }
12882
12883 if test yes = "$lt_cv_prog_compiler__b"; then
12884     archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12885 else
12886     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12887 fi
12888
12889           ;;
12890         esac
12891       fi
12892       if test no = "$with_gnu_ld"; then
12893         hardcode_libdir_flag_spec='$wl+b $wl$libdir'
12894         hardcode_libdir_separator=:
12895
12896         case $host_cpu in
12897         hppa*64*|ia64*)
12898           hardcode_direct=no
12899           hardcode_shlibpath_var=no
12900           ;;
12901         *)
12902           hardcode_direct=yes
12903           hardcode_direct_absolute=yes
12904           export_dynamic_flag_spec='$wl-E'
12905
12906           # hardcode_minus_L: Not really in the search PATH,
12907           # but as the default location of the library.
12908           hardcode_minus_L=yes
12909           ;;
12910         esac
12911       fi
12912       ;;
12913
12914     irix5* | irix6* | nonstopux*)
12915       if test yes = "$GCC"; then
12916         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'
12917         # Try to use the -exported_symbol ld option, if it does not
12918         # work, assume that -exports_file does not work either and
12919         # implicitly export all symbols.
12920         # This should be the same for all languages, so no per-tag cache variable.
12921         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
12922 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
12923 if ${lt_cv_irix_exported_symbol+:} false; then :
12924   $as_echo_n "(cached) " >&6
12925 else
12926   save_LDFLAGS=$LDFLAGS
12927            LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
12928            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12929 /* end confdefs.h.  */
12930 int foo (void) { return 0; }
12931 _ACEOF
12932 if ac_fn_c_try_link "$LINENO"; then :
12933   lt_cv_irix_exported_symbol=yes
12934 else
12935   lt_cv_irix_exported_symbol=no
12936 fi
12937 rm -f core conftest.err conftest.$ac_objext \
12938     conftest$ac_exeext conftest.$ac_ext
12939            LDFLAGS=$save_LDFLAGS
12940 fi
12941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
12942 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
12943         if test yes = "$lt_cv_irix_exported_symbol"; then
12944           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'
12945         fi
12946       else
12947         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'
12948         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'
12949       fi
12950       archive_cmds_need_lc='no'
12951       hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12952       hardcode_libdir_separator=:
12953       inherit_rpath=yes
12954       link_all_deplibs=yes
12955       ;;
12956
12957     linux*)
12958       case $cc_basename in
12959       tcc*)
12960         # Fabrice Bellard et al's Tiny C Compiler
12961         ld_shlibs=yes
12962         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12963         ;;
12964       esac
12965       ;;
12966
12967     netbsd*)
12968       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12969         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
12970       else
12971         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
12972       fi
12973       hardcode_libdir_flag_spec='-R$libdir'
12974       hardcode_direct=yes
12975       hardcode_shlibpath_var=no
12976       ;;
12977
12978     newsos6)
12979       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12980       hardcode_direct=yes
12981       hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12982       hardcode_libdir_separator=:
12983       hardcode_shlibpath_var=no
12984       ;;
12985
12986     *nto* | *qnx*)
12987       ;;
12988
12989     openbsd* | bitrig*)
12990       if test -f /usr/libexec/ld.so; then
12991         hardcode_direct=yes
12992         hardcode_shlibpath_var=no
12993         hardcode_direct_absolute=yes
12994         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12995           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12996           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
12997           hardcode_libdir_flag_spec='$wl-rpath,$libdir'
12998           export_dynamic_flag_spec='$wl-E'
12999         else
13000           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13001           hardcode_libdir_flag_spec='$wl-rpath,$libdir'
13002         fi
13003       else
13004         ld_shlibs=no
13005       fi
13006       ;;
13007
13008     os2*)
13009       hardcode_libdir_flag_spec='-L$libdir'
13010       hardcode_minus_L=yes
13011       allow_undefined_flag=unsupported
13012       shrext_cmds=.dll
13013       archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
13014         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
13015         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
13016         $ECHO EXPORTS >> $output_objdir/$libname.def~
13017         emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
13018         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
13019         emximp -o $lib $output_objdir/$libname.def'
13020       archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
13021         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
13022         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
13023         $ECHO EXPORTS >> $output_objdir/$libname.def~
13024         prefix_cmds="$SED"~
13025         if test EXPORTS = "`$SED 1q $export_symbols`"; then
13026           prefix_cmds="$prefix_cmds -e 1d";
13027         fi~
13028         prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
13029         cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
13030         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
13031         emximp -o $lib $output_objdir/$libname.def'
13032       old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
13033       enable_shared_with_static_runtimes=yes
13034       ;;
13035
13036     osf3*)
13037       if test yes = "$GCC"; then
13038         allow_undefined_flag=' $wl-expect_unresolved $wl\*'
13039         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'
13040       else
13041         allow_undefined_flag=' -expect_unresolved \*'
13042         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'
13043       fi
13044       archive_cmds_need_lc='no'
13045       hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13046       hardcode_libdir_separator=:
13047       ;;
13048
13049     osf4* | osf5*)      # as osf3* with the addition of -msym flag
13050       if test yes = "$GCC"; then
13051         allow_undefined_flag=' $wl-expect_unresolved $wl\*'
13052         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'
13053         hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13054       else
13055         allow_undefined_flag=' -expect_unresolved \*'
13056         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'
13057         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~
13058           $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'
13059
13060         # Both c and cxx compiler support -rpath directly
13061         hardcode_libdir_flag_spec='-rpath $libdir'
13062       fi
13063       archive_cmds_need_lc='no'
13064       hardcode_libdir_separator=:
13065       ;;
13066
13067     solaris*)
13068       no_undefined_flag=' -z defs'
13069       if test yes = "$GCC"; then
13070         wlarc='$wl'
13071         archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
13072         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13073           $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'
13074       else
13075         case `$CC -V 2>&1` in
13076         *"Compilers 5.0"*)
13077           wlarc=''
13078           archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
13079           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13080             $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
13081           ;;
13082         *)
13083           wlarc='$wl'
13084           archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
13085           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13086             $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13087           ;;
13088         esac
13089       fi
13090       hardcode_libdir_flag_spec='-R$libdir'
13091       hardcode_shlibpath_var=no
13092       case $host_os in
13093       solaris2.[0-5] | solaris2.[0-5].*) ;;
13094       *)
13095         # The compiler driver will combine and reorder linker options,
13096         # but understands '-z linker_flag'.  GCC discards it without '$wl',
13097         # but is careful enough not to reorder.
13098         # Supported since Solaris 2.6 (maybe 2.5.1?)
13099         if test yes = "$GCC"; then
13100           whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
13101         else
13102           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
13103         fi
13104         ;;
13105       esac
13106       link_all_deplibs=yes
13107       ;;
13108
13109     sunos4*)
13110       if test sequent = "$host_vendor"; then
13111         # Use $CC to link under sequent, because it throws in some extra .o
13112         # files that make .init and .fini sections work.
13113         archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13114       else
13115         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13116       fi
13117       hardcode_libdir_flag_spec='-L$libdir'
13118       hardcode_direct=yes
13119       hardcode_minus_L=yes
13120       hardcode_shlibpath_var=no
13121       ;;
13122
13123     sysv4)
13124       case $host_vendor in
13125         sni)
13126           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13127           hardcode_direct=yes # is this really true???
13128         ;;
13129         siemens)
13130           ## LD is ld it makes a PLAMLIB
13131           ## CC just makes a GrossModule.
13132           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13133           reload_cmds='$CC -r -o $output$reload_objs'
13134           hardcode_direct=no
13135         ;;
13136         motorola)
13137           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13138           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
13139         ;;
13140       esac
13141       runpath_var='LD_RUN_PATH'
13142       hardcode_shlibpath_var=no
13143       ;;
13144
13145     sysv4.3*)
13146       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13147       hardcode_shlibpath_var=no
13148       export_dynamic_flag_spec='-Bexport'
13149       ;;
13150
13151     sysv4*MP*)
13152       if test -d /usr/nec; then
13153         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13154         hardcode_shlibpath_var=no
13155         runpath_var=LD_RUN_PATH
13156         hardcode_runpath_var=yes
13157         ld_shlibs=yes
13158       fi
13159       ;;
13160
13161     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13162       no_undefined_flag='$wl-z,text'
13163       archive_cmds_need_lc=no
13164       hardcode_shlibpath_var=no
13165       runpath_var='LD_RUN_PATH'
13166
13167       if test yes = "$GCC"; then
13168         archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13169         archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13170       else
13171         archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13172         archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13173       fi
13174       ;;
13175
13176     sysv5* | sco3.2v5* | sco5v6*)
13177       # Note: We CANNOT use -z defs as we might desire, because we do not
13178       # link with -lc, and that would cause any symbols used from libc to
13179       # always be unresolved, which means just about no library would
13180       # ever link correctly.  If we're not using GNU ld we use -z text
13181       # though, which does catch some bad symbols but isn't as heavy-handed
13182       # as -z defs.
13183       no_undefined_flag='$wl-z,text'
13184       allow_undefined_flag='$wl-z,nodefs'
13185       archive_cmds_need_lc=no
13186       hardcode_shlibpath_var=no
13187       hardcode_libdir_flag_spec='$wl-R,$libdir'
13188       hardcode_libdir_separator=':'
13189       link_all_deplibs=yes
13190       export_dynamic_flag_spec='$wl-Bexport'
13191       runpath_var='LD_RUN_PATH'
13192
13193       if test yes = "$GCC"; then
13194         archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13195         archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13196       else
13197         archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13198         archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13199       fi
13200       ;;
13201
13202     uts4*)
13203       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13204       hardcode_libdir_flag_spec='-L$libdir'
13205       hardcode_shlibpath_var=no
13206       ;;
13207
13208     *)
13209       ld_shlibs=no
13210       ;;
13211     esac
13212
13213     if test sni = "$host_vendor"; then
13214       case $host in
13215       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13216         export_dynamic_flag_spec='$wl-Blargedynsym'
13217         ;;
13218       esac
13219     fi
13220   fi
13221
13222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
13223 $as_echo "$ld_shlibs" >&6; }
13224 test no = "$ld_shlibs" && can_build_shared=no
13225
13226 with_gnu_ld=$with_gnu_ld
13227
13228
13229
13230
13231
13232
13233
13234
13235
13236
13237
13238
13239
13240
13241
13242 #
13243 # Do we need to explicitly link libc?
13244 #
13245 case "x$archive_cmds_need_lc" in
13246 x|xyes)
13247   # Assume -lc should be added
13248   archive_cmds_need_lc=yes
13249
13250   if test yes,yes = "$GCC,$enable_shared"; then
13251     case $archive_cmds in
13252     *'~'*)
13253       # FIXME: we may have to deal with multi-command sequences.
13254       ;;
13255     '$CC '*)
13256       # Test whether the compiler implicitly links with -lc since on some
13257       # systems, -lgcc has to come before -lc. If gcc already passes -lc
13258       # to ld, don't add -lc before -lgcc.
13259       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13260 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13261 if ${lt_cv_archive_cmds_need_lc+:} false; then :
13262   $as_echo_n "(cached) " >&6
13263 else
13264   $RM conftest*
13265         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13266
13267         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13268   (eval $ac_compile) 2>&5
13269   ac_status=$?
13270   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13271   test $ac_status = 0; } 2>conftest.err; then
13272           soname=conftest
13273           lib=conftest
13274           libobjs=conftest.$ac_objext
13275           deplibs=
13276           wl=$lt_prog_compiler_wl
13277           pic_flag=$lt_prog_compiler_pic
13278           compiler_flags=-v
13279           linker_flags=-v
13280           verstring=
13281           output_objdir=.
13282           libname=conftest
13283           lt_save_allow_undefined_flag=$allow_undefined_flag
13284           allow_undefined_flag=
13285           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13286   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13287   ac_status=$?
13288   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13289   test $ac_status = 0; }
13290           then
13291             lt_cv_archive_cmds_need_lc=no
13292           else
13293             lt_cv_archive_cmds_need_lc=yes
13294           fi
13295           allow_undefined_flag=$lt_save_allow_undefined_flag
13296         else
13297           cat conftest.err 1>&5
13298         fi
13299         $RM conftest*
13300
13301 fi
13302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
13303 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
13304       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
13305       ;;
13306     esac
13307   fi
13308   ;;
13309 esac
13310
13311
13312
13313
13314
13315
13316
13317
13318
13319
13320
13321
13322
13323
13324
13325
13326
13327
13328
13329
13330
13331
13332
13333
13334
13335
13336
13337
13338
13339
13340
13341
13342
13343
13344
13345
13346
13347
13348
13349
13350
13351
13352
13353
13354
13355
13356
13357
13358
13359
13360
13361
13362
13363
13364
13365
13366
13367
13368
13369
13370
13371
13372
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   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
13463 $as_echo_n "checking dynamic linker characteristics... " >&6; }
13464
13465 if test yes = "$GCC"; then
13466   case $host_os in
13467     darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
13468     *) lt_awk_arg='/^libraries:/' ;;
13469   esac
13470   case $host_os in
13471     mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
13472     *) lt_sed_strip_eq='s|=/|/|g' ;;
13473   esac
13474   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
13475   case $lt_search_path_spec in
13476   *\;*)
13477     # if the path contains ";" then we assume it to be the separator
13478     # otherwise default to the standard path separator (i.e. ":") - it is
13479     # assumed that no part of a normal pathname contains ";" but that should
13480     # okay in the real world where ";" in dirpaths is itself problematic.
13481     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
13482     ;;
13483   *)
13484     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
13485     ;;
13486   esac
13487   # Ok, now we have the path, separated by spaces, we can step through it
13488   # and add multilib dir if necessary...
13489   lt_tmp_lt_search_path_spec=
13490   lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
13491   # ...but if some path component already ends with the multilib dir we assume
13492   # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
13493   case "$lt_multi_os_dir; $lt_search_path_spec " in
13494   "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
13495     lt_multi_os_dir=
13496     ;;
13497   esac
13498   for lt_sys_path in $lt_search_path_spec; do
13499     if test -d "$lt_sys_path$lt_multi_os_dir"; then
13500       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
13501     elif test -n "$lt_multi_os_dir"; then
13502       test -d "$lt_sys_path" && \
13503         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
13504     fi
13505   done
13506   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
13507 BEGIN {RS = " "; FS = "/|\n";} {
13508   lt_foo = "";
13509   lt_count = 0;
13510   for (lt_i = NF; lt_i > 0; lt_i--) {
13511     if ($lt_i != "" && $lt_i != ".") {
13512       if ($lt_i == "..") {
13513         lt_count++;
13514       } else {
13515         if (lt_count == 0) {
13516           lt_foo = "/" $lt_i lt_foo;
13517         } else {
13518           lt_count--;
13519         }
13520       }
13521     }
13522   }
13523   if (lt_foo != "") { lt_freq[lt_foo]++; }
13524   if (lt_freq[lt_foo] == 1) { print lt_foo; }
13525 }'`
13526   # AWK program above erroneously prepends '/' to C:/dos/paths
13527   # for these hosts.
13528   case $host_os in
13529     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
13530       $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
13531   esac
13532   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
13533 else
13534   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13535 fi
13536 library_names_spec=
13537 libname_spec='lib$name'
13538 soname_spec=
13539 shrext_cmds=.so
13540 postinstall_cmds=
13541 postuninstall_cmds=
13542 finish_cmds=
13543 finish_eval=
13544 shlibpath_var=
13545 shlibpath_overrides_runpath=unknown
13546 version_type=none
13547 dynamic_linker="$host_os ld.so"
13548 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13549 need_lib_prefix=unknown
13550 hardcode_into_libs=no
13551
13552 # when you set need_version to no, make sure it does not cause -set_version
13553 # flags to be left without arguments
13554 need_version=unknown
13555
13556
13557
13558 case $host_os in
13559 aix3*)
13560   version_type=linux # correct to gnu/linux during the next big refactor
13561   library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
13562   shlibpath_var=LIBPATH
13563
13564   # AIX 3 has no versioning support, so we append a major version to the name.
13565   soname_spec='$libname$release$shared_ext$major'
13566   ;;
13567
13568 aix[4-9]*)
13569   version_type=linux # correct to gnu/linux during the next big refactor
13570   need_lib_prefix=no
13571   need_version=no
13572   hardcode_into_libs=yes
13573   if test ia64 = "$host_cpu"; then
13574     # AIX 5 supports IA64
13575     library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
13576     shlibpath_var=LD_LIBRARY_PATH
13577   else
13578     # With GCC up to 2.95.x, collect2 would create an import file
13579     # for dependence libraries.  The import file would start with
13580     # the line '#! .'.  This would cause the generated library to
13581     # depend on '.', always an invalid library.  This was fixed in
13582     # development snapshots of GCC prior to 3.0.
13583     case $host_os in
13584       aix4 | aix4.[01] | aix4.[01].*)
13585       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13586            echo ' yes '
13587            echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
13588         :
13589       else
13590         can_build_shared=no
13591       fi
13592       ;;
13593     esac
13594     # Using Import Files as archive members, it is possible to support
13595     # filename-based versioning of shared library archives on AIX. While
13596     # this would work for both with and without runtime linking, it will
13597     # prevent static linking of such archives. So we do filename-based
13598     # shared library versioning with .so extension only, which is used
13599     # when both runtime linking and shared linking is enabled.
13600     # Unfortunately, runtime linking may impact performance, so we do
13601     # not want this to be the default eventually. Also, we use the
13602     # versioned .so libs for executables only if there is the -brtl
13603     # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
13604     # To allow for filename-based versioning support, we need to create
13605     # libNAME.so.V as an archive file, containing:
13606     # *) an Import File, referring to the versioned filename of the
13607     #    archive as well as the shared archive member, telling the
13608     #    bitwidth (32 or 64) of that shared object, and providing the
13609     #    list of exported symbols of that shared object, eventually
13610     #    decorated with the 'weak' keyword
13611     # *) the shared object with the F_LOADONLY flag set, to really avoid
13612     #    it being seen by the linker.
13613     # At run time we better use the real file rather than another symlink,
13614     # but for link time we create the symlink libNAME.so -> libNAME.so.V
13615
13616     case $with_aix_soname,$aix_use_runtimelinking in
13617     # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
13618     # soname into executable. Probably we can add versioning support to
13619     # collect2, so additional links can be useful in future.
13620     aix,yes) # traditional libtool
13621       dynamic_linker='AIX unversionable lib.so'
13622       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13623       # instead of lib<name>.a to let people know that these are not
13624       # typical AIX shared libraries.
13625       library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13626       ;;
13627     aix,no) # traditional AIX only
13628       dynamic_linker='AIX lib.a(lib.so.V)'
13629       # We preserve .a as extension for shared libraries through AIX4.2
13630       # and later when we are not doing run time linking.
13631       library_names_spec='$libname$release.a $libname.a'
13632       soname_spec='$libname$release$shared_ext$major'
13633       ;;
13634     svr4,*) # full svr4 only
13635       dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
13636       library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
13637       # We do not specify a path in Import Files, so LIBPATH fires.
13638       shlibpath_overrides_runpath=yes
13639       ;;
13640     *,yes) # both, prefer svr4
13641       dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
13642       library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
13643       # unpreferred sharedlib libNAME.a needs extra handling
13644       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"'
13645       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"'
13646       # We do not specify a path in Import Files, so LIBPATH fires.
13647       shlibpath_overrides_runpath=yes
13648       ;;
13649     *,no) # both, prefer aix
13650       dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
13651       library_names_spec='$libname$release.a $libname.a'
13652       soname_spec='$libname$release$shared_ext$major'
13653       # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
13654       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)'
13655       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"'
13656       ;;
13657     esac
13658     shlibpath_var=LIBPATH
13659   fi
13660   ;;
13661
13662 amigaos*)
13663   case $host_cpu in
13664   powerpc)
13665     # Since July 2007 AmigaOS4 officially supports .so libraries.
13666     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
13667     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13668     ;;
13669   m68k)
13670     library_names_spec='$libname.ixlibrary $libname.a'
13671     # Create ${libname}_ixlibrary.a entries in /sys/libs.
13672     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'
13673     ;;
13674   esac
13675   ;;
13676
13677 beos*)
13678   library_names_spec='$libname$shared_ext'
13679   dynamic_linker="$host_os ld.so"
13680   shlibpath_var=LIBRARY_PATH
13681   ;;
13682
13683 bsdi[45]*)
13684   version_type=linux # correct to gnu/linux during the next big refactor
13685   need_version=no
13686   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13687   soname_spec='$libname$release$shared_ext$major'
13688   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13689   shlibpath_var=LD_LIBRARY_PATH
13690   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13691   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13692   # the default ld.so.conf also contains /usr/contrib/lib and
13693   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13694   # libtool to hard-code these into programs
13695   ;;
13696
13697 cygwin* | mingw* | pw32* | cegcc*)
13698   version_type=windows
13699   shrext_cmds=.dll
13700   need_version=no
13701   need_lib_prefix=no
13702
13703   case $GCC,$cc_basename in
13704   yes,*)
13705     # gcc
13706     library_names_spec='$libname.dll.a'
13707     # DLL is installed to $(libdir)/../bin by postinstall_cmds
13708     postinstall_cmds='base_file=`basename \$file`~
13709       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
13710       dldir=$destdir/`dirname \$dlpath`~
13711       test -d \$dldir || mkdir -p \$dldir~
13712       $install_prog $dir/$dlname \$dldir/$dlname~
13713       chmod a+x \$dldir/$dlname~
13714       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13715         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13716       fi'
13717     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13718       dlpath=$dir/\$dldll~
13719        $RM \$dlpath'
13720     shlibpath_overrides_runpath=yes
13721
13722     case $host_os in
13723     cygwin*)
13724       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13725       soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13726
13727       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
13728       ;;
13729     mingw* | cegcc*)
13730       # MinGW DLLs use traditional 'lib' prefix
13731       soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13732       ;;
13733     pw32*)
13734       # pw32 DLLs use 'pw' prefix rather than 'lib'
13735       library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13736       ;;
13737     esac
13738     dynamic_linker='Win32 ld.exe'
13739     ;;
13740
13741   *,cl*)
13742     # Native MSVC
13743     libname_spec='$name'
13744     soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13745     library_names_spec='$libname.dll.lib'
13746
13747     case $build_os in
13748     mingw*)
13749       sys_lib_search_path_spec=
13750       lt_save_ifs=$IFS
13751       IFS=';'
13752       for lt_path in $LIB
13753       do
13754         IFS=$lt_save_ifs
13755         # Let DOS variable expansion print the short 8.3 style file name.
13756         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
13757         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
13758       done
13759       IFS=$lt_save_ifs
13760       # Convert to MSYS style.
13761       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
13762       ;;
13763     cygwin*)
13764       # Convert to unix form, then to dos form, then back to unix form
13765       # but this time dos style (no spaces!) so that the unix form looks
13766       # like /cygdrive/c/PROGRA~1:/cygdr...
13767       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
13768       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
13769       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13770       ;;
13771     *)
13772       sys_lib_search_path_spec=$LIB
13773       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
13774         # It is most probably a Windows format PATH.
13775         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13776       else
13777         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13778       fi
13779       # FIXME: find the short name or the path components, as spaces are
13780       # common. (e.g. "Program Files" -> "PROGRA~1")
13781       ;;
13782     esac
13783
13784     # DLL is installed to $(libdir)/../bin by postinstall_cmds
13785     postinstall_cmds='base_file=`basename \$file`~
13786       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
13787       dldir=$destdir/`dirname \$dlpath`~
13788       test -d \$dldir || mkdir -p \$dldir~
13789       $install_prog $dir/$dlname \$dldir/$dlname'
13790     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13791       dlpath=$dir/\$dldll~
13792        $RM \$dlpath'
13793     shlibpath_overrides_runpath=yes
13794     dynamic_linker='Win32 link.exe'
13795     ;;
13796
13797   *)
13798     # Assume MSVC wrapper
13799     library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
13800     dynamic_linker='Win32 ld.exe'
13801     ;;
13802   esac
13803   # FIXME: first we should search . and the directory the executable is in
13804   shlibpath_var=PATH
13805   ;;
13806
13807 darwin* | rhapsody*)
13808   dynamic_linker="$host_os dyld"
13809   version_type=darwin
13810   need_lib_prefix=no
13811   need_version=no
13812   library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
13813   soname_spec='$libname$release$major$shared_ext'
13814   shlibpath_overrides_runpath=yes
13815   shlibpath_var=DYLD_LIBRARY_PATH
13816   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13817
13818   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
13819   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13820   ;;
13821
13822 dgux*)
13823   version_type=linux # correct to gnu/linux during the next big refactor
13824   need_lib_prefix=no
13825   need_version=no
13826   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13827   soname_spec='$libname$release$shared_ext$major'
13828   shlibpath_var=LD_LIBRARY_PATH
13829   ;;
13830
13831 freebsd* | dragonfly*)
13832   # DragonFly does not have aout.  When/if they implement a new
13833   # versioning mechanism, adjust this.
13834   if test -x /usr/bin/objformat; then
13835     objformat=`/usr/bin/objformat`
13836   else
13837     case $host_os in
13838     freebsd[23].*) objformat=aout ;;
13839     *) objformat=elf ;;
13840     esac
13841   fi
13842   version_type=freebsd-$objformat
13843   case $version_type in
13844     freebsd-elf*)
13845       library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13846       soname_spec='$libname$release$shared_ext$major'
13847       need_version=no
13848       need_lib_prefix=no
13849       ;;
13850     freebsd-*)
13851       library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13852       need_version=yes
13853       ;;
13854   esac
13855   shlibpath_var=LD_LIBRARY_PATH
13856   case $host_os in
13857   freebsd2.*)
13858     shlibpath_overrides_runpath=yes
13859     ;;
13860   freebsd3.[01]* | freebsdelf3.[01]*)
13861     shlibpath_overrides_runpath=yes
13862     hardcode_into_libs=yes
13863     ;;
13864   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13865   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13866     shlibpath_overrides_runpath=no
13867     hardcode_into_libs=yes
13868     ;;
13869   *) # from 4.6 on, and DragonFly
13870     shlibpath_overrides_runpath=yes
13871     hardcode_into_libs=yes
13872     ;;
13873   esac
13874   ;;
13875
13876 haiku*)
13877   version_type=linux # correct to gnu/linux during the next big refactor
13878   need_lib_prefix=no
13879   need_version=no
13880   dynamic_linker="$host_os runtime_loader"
13881   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13882   soname_spec='$libname$release$shared_ext$major'
13883   shlibpath_var=LIBRARY_PATH
13884   shlibpath_overrides_runpath=no
13885   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
13886   hardcode_into_libs=yes
13887   ;;
13888
13889 hpux9* | hpux10* | hpux11*)
13890   # Give a soname corresponding to the major version so that dld.sl refuses to
13891   # link against other versions.
13892   version_type=sunos
13893   need_lib_prefix=no
13894   need_version=no
13895   case $host_cpu in
13896   ia64*)
13897     shrext_cmds='.so'
13898     hardcode_into_libs=yes
13899     dynamic_linker="$host_os dld.so"
13900     shlibpath_var=LD_LIBRARY_PATH
13901     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13902     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13903     soname_spec='$libname$release$shared_ext$major'
13904     if test 32 = "$HPUX_IA64_MODE"; then
13905       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13906       sys_lib_dlsearch_path_spec=/usr/lib/hpux32
13907     else
13908       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13909       sys_lib_dlsearch_path_spec=/usr/lib/hpux64
13910     fi
13911     ;;
13912   hppa*64*)
13913     shrext_cmds='.sl'
13914     hardcode_into_libs=yes
13915     dynamic_linker="$host_os dld.sl"
13916     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13917     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13918     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13919     soname_spec='$libname$release$shared_ext$major'
13920     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13921     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13922     ;;
13923   *)
13924     shrext_cmds='.sl'
13925     dynamic_linker="$host_os dld.sl"
13926     shlibpath_var=SHLIB_PATH
13927     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13928     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13929     soname_spec='$libname$release$shared_ext$major'
13930     ;;
13931   esac
13932   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
13933   postinstall_cmds='chmod 555 $lib'
13934   # or fails outright, so override atomically:
13935   install_override_mode=555
13936   ;;
13937
13938 interix[3-9]*)
13939   version_type=linux # correct to gnu/linux during the next big refactor
13940   need_lib_prefix=no
13941   need_version=no
13942   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13943   soname_spec='$libname$release$shared_ext$major'
13944   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13945   shlibpath_var=LD_LIBRARY_PATH
13946   shlibpath_overrides_runpath=no
13947   hardcode_into_libs=yes
13948   ;;
13949
13950 irix5* | irix6* | nonstopux*)
13951   case $host_os in
13952     nonstopux*) version_type=nonstopux ;;
13953     *)
13954         if test yes = "$lt_cv_prog_gnu_ld"; then
13955                 version_type=linux # correct to gnu/linux during the next big refactor
13956         else
13957                 version_type=irix
13958         fi ;;
13959   esac
13960   need_lib_prefix=no
13961   need_version=no
13962   soname_spec='$libname$release$shared_ext$major'
13963   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
13964   case $host_os in
13965   irix5* | nonstopux*)
13966     libsuff= shlibsuff=
13967     ;;
13968   *)
13969     case $LD in # libtool.m4 will add one of these switches to LD
13970     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13971       libsuff= shlibsuff= libmagic=32-bit;;
13972     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13973       libsuff=32 shlibsuff=N32 libmagic=N32;;
13974     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13975       libsuff=64 shlibsuff=64 libmagic=64-bit;;
13976     *) libsuff= shlibsuff= libmagic=never-match;;
13977     esac
13978     ;;
13979   esac
13980   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13981   shlibpath_overrides_runpath=no
13982   sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
13983   sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
13984   hardcode_into_libs=yes
13985   ;;
13986
13987 # No shared lib support for Linux oldld, aout, or coff.
13988 linux*oldld* | linux*aout* | linux*coff*)
13989   dynamic_linker=no
13990   ;;
13991
13992 linux*android*)
13993   version_type=none # Android doesn't support versioned libraries.
13994   need_lib_prefix=no
13995   need_version=no
13996   library_names_spec='$libname$release$shared_ext'
13997   soname_spec='$libname$release$shared_ext'
13998   finish_cmds=
13999   shlibpath_var=LD_LIBRARY_PATH
14000   shlibpath_overrides_runpath=yes
14001
14002   # This implies no fast_install, which is unacceptable.
14003   # Some rework will be needed to allow for fast_install
14004   # before this can be enabled.
14005   hardcode_into_libs=yes
14006
14007   dynamic_linker='Android linker'
14008   # Don't embed -rpath directories since the linker doesn't support them.
14009   hardcode_libdir_flag_spec='-L$libdir'
14010   ;;
14011
14012 # This must be glibc/ELF.
14013 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14014   version_type=linux # correct to gnu/linux during the next big refactor
14015   need_lib_prefix=no
14016   need_version=no
14017   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14018   soname_spec='$libname$release$shared_ext$major'
14019   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14020   shlibpath_var=LD_LIBRARY_PATH
14021   shlibpath_overrides_runpath=no
14022
14023   # Some binutils ld are patched to set DT_RUNPATH
14024   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
14025   $as_echo_n "(cached) " >&6
14026 else
14027   lt_cv_shlibpath_overrides_runpath=no
14028     save_LDFLAGS=$LDFLAGS
14029     save_libdir=$libdir
14030     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
14031          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
14032     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14033 /* end confdefs.h.  */
14034
14035 int
14036 main ()
14037 {
14038
14039   ;
14040   return 0;
14041 }
14042 _ACEOF
14043 if ac_fn_c_try_link "$LINENO"; then :
14044   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14045   lt_cv_shlibpath_overrides_runpath=yes
14046 fi
14047 fi
14048 rm -f core conftest.err conftest.$ac_objext \
14049     conftest$ac_exeext conftest.$ac_ext
14050     LDFLAGS=$save_LDFLAGS
14051     libdir=$save_libdir
14052
14053 fi
14054
14055   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
14056
14057   # This implies no fast_install, which is unacceptable.
14058   # Some rework will be needed to allow for fast_install
14059   # before this can be enabled.
14060   hardcode_into_libs=yes
14061
14062   # Ideally, we could use ldconfig to report *all* directores which are
14063   # searched for libraries, however this is still not possible.  Aside from not
14064   # being certain /sbin/ldconfig is available, command
14065   # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
14066   # even though it is searched at run-time.  Try to do the best guess by
14067   # appending ld.so.conf contents (and includes) to the search path.
14068   if test -f /etc/ld.so.conf; then
14069     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' ' '`
14070     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14071   fi
14072
14073   # We used to test for /lib/ld.so.1 and disable shared libraries on
14074   # powerpc, because MkLinux only supported shared libraries with the
14075   # GNU dynamic linker.  Since this was broken with cross compilers,
14076   # most powerpc-linux boxes support dynamic linking these days and
14077   # people can always --disable-shared, the test was removed, and we
14078   # assume the GNU/Linux dynamic linker is in use.
14079   dynamic_linker='GNU/Linux ld.so'
14080   ;;
14081
14082 netbsd*)
14083   version_type=sunos
14084   need_lib_prefix=no
14085   need_version=no
14086   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14087     library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
14088     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14089     dynamic_linker='NetBSD (a.out) ld.so'
14090   else
14091     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14092     soname_spec='$libname$release$shared_ext$major'
14093     dynamic_linker='NetBSD ld.elf_so'
14094   fi
14095   shlibpath_var=LD_LIBRARY_PATH
14096   shlibpath_overrides_runpath=yes
14097   hardcode_into_libs=yes
14098   ;;
14099
14100 newsos6)
14101   version_type=linux # correct to gnu/linux during the next big refactor
14102   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14103   shlibpath_var=LD_LIBRARY_PATH
14104   shlibpath_overrides_runpath=yes
14105   ;;
14106
14107 *nto* | *qnx*)
14108   version_type=qnx
14109   need_lib_prefix=no
14110   need_version=no
14111   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14112   soname_spec='$libname$release$shared_ext$major'
14113   shlibpath_var=LD_LIBRARY_PATH
14114   shlibpath_overrides_runpath=no
14115   hardcode_into_libs=yes
14116   dynamic_linker='ldqnx.so'
14117   ;;
14118
14119 openbsd* | bitrig*)
14120   version_type=sunos
14121   sys_lib_dlsearch_path_spec=/usr/lib
14122   need_lib_prefix=no
14123   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
14124     need_version=no
14125   else
14126     need_version=yes
14127   fi
14128   library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
14129   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14130   shlibpath_var=LD_LIBRARY_PATH
14131   shlibpath_overrides_runpath=yes
14132   ;;
14133
14134 os2*)
14135   libname_spec='$name'
14136   version_type=windows
14137   shrext_cmds=.dll
14138   need_version=no
14139   need_lib_prefix=no
14140   # OS/2 can only load a DLL with a base name of 8 characters or less.
14141   soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
14142     v=$($ECHO $release$versuffix | tr -d .-);
14143     n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
14144     $ECHO $n$v`$shared_ext'
14145   library_names_spec='${libname}_dll.$libext'
14146   dynamic_linker='OS/2 ld.exe'
14147   shlibpath_var=BEGINLIBPATH
14148   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14149   sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14150   postinstall_cmds='base_file=`basename \$file`~
14151     dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
14152     dldir=$destdir/`dirname \$dlpath`~
14153     test -d \$dldir || mkdir -p \$dldir~
14154     $install_prog $dir/$dlname \$dldir/$dlname~
14155     chmod a+x \$dldir/$dlname~
14156     if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14157       eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14158     fi'
14159   postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
14160     dlpath=$dir/\$dldll~
14161     $RM \$dlpath'
14162   ;;
14163
14164 osf3* | osf4* | osf5*)
14165   version_type=osf
14166   need_lib_prefix=no
14167   need_version=no
14168   soname_spec='$libname$release$shared_ext$major'
14169   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14170   shlibpath_var=LD_LIBRARY_PATH
14171   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14172   sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14173   ;;
14174
14175 rdos*)
14176   dynamic_linker=no
14177   ;;
14178
14179 solaris*)
14180   version_type=linux # correct to gnu/linux during the next big refactor
14181   need_lib_prefix=no
14182   need_version=no
14183   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14184   soname_spec='$libname$release$shared_ext$major'
14185   shlibpath_var=LD_LIBRARY_PATH
14186   shlibpath_overrides_runpath=yes
14187   hardcode_into_libs=yes
14188   # ldd complains unless libraries are executable
14189   postinstall_cmds='chmod +x $lib'
14190   ;;
14191
14192 sunos4*)
14193   version_type=sunos
14194   library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
14195   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14196   shlibpath_var=LD_LIBRARY_PATH
14197   shlibpath_overrides_runpath=yes
14198   if test yes = "$with_gnu_ld"; then
14199     need_lib_prefix=no
14200   fi
14201   need_version=yes
14202   ;;
14203
14204 sysv4 | sysv4.3*)
14205   version_type=linux # correct to gnu/linux during the next big refactor
14206   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14207   soname_spec='$libname$release$shared_ext$major'
14208   shlibpath_var=LD_LIBRARY_PATH
14209   case $host_vendor in
14210     sni)
14211       shlibpath_overrides_runpath=no
14212       need_lib_prefix=no
14213       runpath_var=LD_RUN_PATH
14214       ;;
14215     siemens)
14216       need_lib_prefix=no
14217       ;;
14218     motorola)
14219       need_lib_prefix=no
14220       need_version=no
14221       shlibpath_overrides_runpath=no
14222       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14223       ;;
14224   esac
14225   ;;
14226
14227 sysv4*MP*)
14228   if test -d /usr/nec; then
14229     version_type=linux # correct to gnu/linux during the next big refactor
14230     library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
14231     soname_spec='$libname$shared_ext.$major'
14232     shlibpath_var=LD_LIBRARY_PATH
14233   fi
14234   ;;
14235
14236 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14237   version_type=sco
14238   need_lib_prefix=no
14239   need_version=no
14240   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
14241   soname_spec='$libname$release$shared_ext$major'
14242   shlibpath_var=LD_LIBRARY_PATH
14243   shlibpath_overrides_runpath=yes
14244   hardcode_into_libs=yes
14245   if test yes = "$with_gnu_ld"; then
14246     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14247   else
14248     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14249     case $host_os in
14250       sco3.2v5*)
14251         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14252         ;;
14253     esac
14254   fi
14255   sys_lib_dlsearch_path_spec='/usr/lib'
14256   ;;
14257
14258 tpf*)
14259   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
14260   version_type=linux # correct to gnu/linux during the next big refactor
14261   need_lib_prefix=no
14262   need_version=no
14263   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14264   shlibpath_var=LD_LIBRARY_PATH
14265   shlibpath_overrides_runpath=no
14266   hardcode_into_libs=yes
14267   ;;
14268
14269 uts4*)
14270   version_type=linux # correct to gnu/linux during the next big refactor
14271   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14272   soname_spec='$libname$release$shared_ext$major'
14273   shlibpath_var=LD_LIBRARY_PATH
14274   ;;
14275
14276 *)
14277   dynamic_linker=no
14278   ;;
14279 esac
14280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14281 $as_echo "$dynamic_linker" >&6; }
14282 test no = "$dynamic_linker" && can_build_shared=no
14283
14284 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14285 if test yes = "$GCC"; then
14286   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14287 fi
14288
14289 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
14290   sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
14291 fi
14292
14293 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
14294   sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
14295 fi
14296
14297 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
14298 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
14299
14300 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
14301 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
14302
14303 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
14304 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
14305
14306
14307
14308
14309
14310
14311
14312
14313
14314
14315
14316
14317
14318
14319
14320
14321
14322
14323
14324
14325
14326
14327
14328
14329
14330
14331
14332
14333
14334
14335
14336
14337
14338
14339
14340
14341
14342
14343
14344
14345
14346
14347
14348
14349
14350
14351
14352
14353
14354
14355
14356
14357
14358
14359
14360
14361
14362
14363
14364
14365
14366
14367
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   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14403 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14404 hardcode_action=
14405 if test -n "$hardcode_libdir_flag_spec" ||
14406    test -n "$runpath_var" ||
14407    test yes = "$hardcode_automatic"; then
14408
14409   # We can hardcode non-existent directories.
14410   if test no != "$hardcode_direct" &&
14411      # If the only mechanism to avoid hardcoding is shlibpath_var, we
14412      # have to relink, otherwise we might link with an installed library
14413      # when we should be linking with a yet-to-be-installed one
14414      ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
14415      test no != "$hardcode_minus_L"; then
14416     # Linking always hardcodes the temporary library directory.
14417     hardcode_action=relink
14418   else
14419     # We can link without hardcoding, and we can hardcode nonexisting dirs.
14420     hardcode_action=immediate
14421   fi
14422 else
14423   # We cannot hardcode anything, or else we can only hardcode existing
14424   # directories.
14425   hardcode_action=unsupported
14426 fi
14427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
14428 $as_echo "$hardcode_action" >&6; }
14429
14430 if test relink = "$hardcode_action" ||
14431    test yes = "$inherit_rpath"; then
14432   # Fast installation is not supported
14433   enable_fast_install=no
14434 elif test yes = "$shlibpath_overrides_runpath" ||
14435      test no = "$enable_shared"; then
14436   # Fast installation is not necessary
14437   enable_fast_install=needless
14438 fi
14439
14440
14441
14442
14443
14444
14445   if test yes != "$enable_dlopen"; then
14446   enable_dlopen=unknown
14447   enable_dlopen_self=unknown
14448   enable_dlopen_self_static=unknown
14449 else
14450   lt_cv_dlopen=no
14451   lt_cv_dlopen_libs=
14452
14453   case $host_os in
14454   beos*)
14455     lt_cv_dlopen=load_add_on
14456     lt_cv_dlopen_libs=
14457     lt_cv_dlopen_self=yes
14458     ;;
14459
14460   mingw* | pw32* | cegcc*)
14461     lt_cv_dlopen=LoadLibrary
14462     lt_cv_dlopen_libs=
14463     ;;
14464
14465   cygwin*)
14466     lt_cv_dlopen=dlopen
14467     lt_cv_dlopen_libs=
14468     ;;
14469
14470   darwin*)
14471     # if libdl is installed we need to link against it
14472     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14473 $as_echo_n "checking for dlopen in -ldl... " >&6; }
14474 if ${ac_cv_lib_dl_dlopen+:} false; then :
14475   $as_echo_n "(cached) " >&6
14476 else
14477   ac_check_lib_save_LIBS=$LIBS
14478 LIBS="-ldl  $LIBS"
14479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14480 /* end confdefs.h.  */
14481
14482 /* Override any GCC internal prototype to avoid an error.
14483    Use char because int might match the return type of a GCC
14484    builtin and then its argument prototype would still apply.  */
14485 #ifdef __cplusplus
14486 extern "C"
14487 #endif
14488 char dlopen ();
14489 int
14490 main ()
14491 {
14492 return dlopen ();
14493   ;
14494   return 0;
14495 }
14496 _ACEOF
14497 if ac_fn_c_try_link "$LINENO"; then :
14498   ac_cv_lib_dl_dlopen=yes
14499 else
14500   ac_cv_lib_dl_dlopen=no
14501 fi
14502 rm -f core conftest.err conftest.$ac_objext \
14503     conftest$ac_exeext conftest.$ac_ext
14504 LIBS=$ac_check_lib_save_LIBS
14505 fi
14506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14507 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
14508 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
14509   lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
14510 else
14511
14512     lt_cv_dlopen=dyld
14513     lt_cv_dlopen_libs=
14514     lt_cv_dlopen_self=yes
14515
14516 fi
14517
14518     ;;
14519
14520   tpf*)
14521     # Don't try to run any link tests for TPF.  We know it's impossible
14522     # because TPF is a cross-compiler, and we know how we open DSOs.
14523     lt_cv_dlopen=dlopen
14524     lt_cv_dlopen_libs=
14525     lt_cv_dlopen_self=no
14526     ;;
14527
14528   *)
14529     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
14530 if test "x$ac_cv_func_shl_load" = xyes; then :
14531   lt_cv_dlopen=shl_load
14532 else
14533   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
14534 $as_echo_n "checking for shl_load in -ldld... " >&6; }
14535 if ${ac_cv_lib_dld_shl_load+:} false; then :
14536   $as_echo_n "(cached) " >&6
14537 else
14538   ac_check_lib_save_LIBS=$LIBS
14539 LIBS="-ldld  $LIBS"
14540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14541 /* end confdefs.h.  */
14542
14543 /* Override any GCC internal prototype to avoid an error.
14544    Use char because int might match the return type of a GCC
14545    builtin and then its argument prototype would still apply.  */
14546 #ifdef __cplusplus
14547 extern "C"
14548 #endif
14549 char shl_load ();
14550 int
14551 main ()
14552 {
14553 return shl_load ();
14554   ;
14555   return 0;
14556 }
14557 _ACEOF
14558 if ac_fn_c_try_link "$LINENO"; then :
14559   ac_cv_lib_dld_shl_load=yes
14560 else
14561   ac_cv_lib_dld_shl_load=no
14562 fi
14563 rm -f core conftest.err conftest.$ac_objext \
14564     conftest$ac_exeext conftest.$ac_ext
14565 LIBS=$ac_check_lib_save_LIBS
14566 fi
14567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
14568 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
14569 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
14570   lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
14571 else
14572   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
14573 if test "x$ac_cv_func_dlopen" = xyes; then :
14574   lt_cv_dlopen=dlopen
14575 else
14576   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14577 $as_echo_n "checking for dlopen in -ldl... " >&6; }
14578 if ${ac_cv_lib_dl_dlopen+:} false; then :
14579   $as_echo_n "(cached) " >&6
14580 else
14581   ac_check_lib_save_LIBS=$LIBS
14582 LIBS="-ldl  $LIBS"
14583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14584 /* end confdefs.h.  */
14585
14586 /* Override any GCC internal prototype to avoid an error.
14587    Use char because int might match the return type of a GCC
14588    builtin and then its argument prototype would still apply.  */
14589 #ifdef __cplusplus
14590 extern "C"
14591 #endif
14592 char dlopen ();
14593 int
14594 main ()
14595 {
14596 return dlopen ();
14597   ;
14598   return 0;
14599 }
14600 _ACEOF
14601 if ac_fn_c_try_link "$LINENO"; then :
14602   ac_cv_lib_dl_dlopen=yes
14603 else
14604   ac_cv_lib_dl_dlopen=no
14605 fi
14606 rm -f core conftest.err conftest.$ac_objext \
14607     conftest$ac_exeext conftest.$ac_ext
14608 LIBS=$ac_check_lib_save_LIBS
14609 fi
14610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14611 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
14612 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
14613   lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
14614 else
14615   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
14616 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
14617 if ${ac_cv_lib_svld_dlopen+:} false; then :
14618   $as_echo_n "(cached) " >&6
14619 else
14620   ac_check_lib_save_LIBS=$LIBS
14621 LIBS="-lsvld  $LIBS"
14622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14623 /* end confdefs.h.  */
14624
14625 /* Override any GCC internal prototype to avoid an error.
14626    Use char because int might match the return type of a GCC
14627    builtin and then its argument prototype would still apply.  */
14628 #ifdef __cplusplus
14629 extern "C"
14630 #endif
14631 char dlopen ();
14632 int
14633 main ()
14634 {
14635 return dlopen ();
14636   ;
14637   return 0;
14638 }
14639 _ACEOF
14640 if ac_fn_c_try_link "$LINENO"; then :
14641   ac_cv_lib_svld_dlopen=yes
14642 else
14643   ac_cv_lib_svld_dlopen=no
14644 fi
14645 rm -f core conftest.err conftest.$ac_objext \
14646     conftest$ac_exeext conftest.$ac_ext
14647 LIBS=$ac_check_lib_save_LIBS
14648 fi
14649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
14650 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
14651 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
14652   lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
14653 else
14654   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
14655 $as_echo_n "checking for dld_link in -ldld... " >&6; }
14656 if ${ac_cv_lib_dld_dld_link+:} false; then :
14657   $as_echo_n "(cached) " >&6
14658 else
14659   ac_check_lib_save_LIBS=$LIBS
14660 LIBS="-ldld  $LIBS"
14661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14662 /* end confdefs.h.  */
14663
14664 /* Override any GCC internal prototype to avoid an error.
14665    Use char because int might match the return type of a GCC
14666    builtin and then its argument prototype would still apply.  */
14667 #ifdef __cplusplus
14668 extern "C"
14669 #endif
14670 char dld_link ();
14671 int
14672 main ()
14673 {
14674 return dld_link ();
14675   ;
14676   return 0;
14677 }
14678 _ACEOF
14679 if ac_fn_c_try_link "$LINENO"; then :
14680   ac_cv_lib_dld_dld_link=yes
14681 else
14682   ac_cv_lib_dld_dld_link=no
14683 fi
14684 rm -f core conftest.err conftest.$ac_objext \
14685     conftest$ac_exeext conftest.$ac_ext
14686 LIBS=$ac_check_lib_save_LIBS
14687 fi
14688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
14689 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
14690 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
14691   lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
14692 fi
14693
14694
14695 fi
14696
14697
14698 fi
14699
14700
14701 fi
14702
14703
14704 fi
14705
14706
14707 fi
14708
14709     ;;
14710   esac
14711
14712   if test no = "$lt_cv_dlopen"; then
14713     enable_dlopen=no
14714   else
14715     enable_dlopen=yes
14716   fi
14717
14718   case $lt_cv_dlopen in
14719   dlopen)
14720     save_CPPFLAGS=$CPPFLAGS
14721     test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
14722
14723     save_LDFLAGS=$LDFLAGS
14724     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
14725
14726     save_LIBS=$LIBS
14727     LIBS="$lt_cv_dlopen_libs $LIBS"
14728
14729     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
14730 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
14731 if ${lt_cv_dlopen_self+:} false; then :
14732   $as_echo_n "(cached) " >&6
14733 else
14734           if test yes = "$cross_compiling"; then :
14735   lt_cv_dlopen_self=cross
14736 else
14737   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14738   lt_status=$lt_dlunknown
14739   cat > conftest.$ac_ext <<_LT_EOF
14740 #line $LINENO "configure"
14741 #include "confdefs.h"
14742
14743 #if HAVE_DLFCN_H
14744 #include <dlfcn.h>
14745 #endif
14746
14747 #include <stdio.h>
14748
14749 #ifdef RTLD_GLOBAL
14750 #  define LT_DLGLOBAL           RTLD_GLOBAL
14751 #else
14752 #  ifdef DL_GLOBAL
14753 #    define LT_DLGLOBAL         DL_GLOBAL
14754 #  else
14755 #    define LT_DLGLOBAL         0
14756 #  endif
14757 #endif
14758
14759 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14760    find out it does not work in some platform. */
14761 #ifndef LT_DLLAZY_OR_NOW
14762 #  ifdef RTLD_LAZY
14763 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
14764 #  else
14765 #    ifdef DL_LAZY
14766 #      define LT_DLLAZY_OR_NOW          DL_LAZY
14767 #    else
14768 #      ifdef RTLD_NOW
14769 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
14770 #      else
14771 #        ifdef DL_NOW
14772 #          define LT_DLLAZY_OR_NOW      DL_NOW
14773 #        else
14774 #          define LT_DLLAZY_OR_NOW      0
14775 #        endif
14776 #      endif
14777 #    endif
14778 #  endif
14779 #endif
14780
14781 /* When -fvisibility=hidden is used, assume the code has been annotated
14782    correspondingly for the symbols needed.  */
14783 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
14784 int fnord () __attribute__((visibility("default")));
14785 #endif
14786
14787 int fnord () { return 42; }
14788 int main ()
14789 {
14790   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14791   int status = $lt_dlunknown;
14792
14793   if (self)
14794     {
14795       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
14796       else
14797         {
14798           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
14799           else puts (dlerror ());
14800         }
14801       /* dlclose (self); */
14802     }
14803   else
14804     puts (dlerror ());
14805
14806   return status;
14807 }
14808 _LT_EOF
14809   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14810   (eval $ac_link) 2>&5
14811   ac_status=$?
14812   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14813   test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
14814     (./conftest; exit; ) >&5 2>/dev/null
14815     lt_status=$?
14816     case x$lt_status in
14817       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
14818       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
14819       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
14820     esac
14821   else :
14822     # compilation failed
14823     lt_cv_dlopen_self=no
14824   fi
14825 fi
14826 rm -fr conftest*
14827
14828
14829 fi
14830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
14831 $as_echo "$lt_cv_dlopen_self" >&6; }
14832
14833     if test yes = "$lt_cv_dlopen_self"; then
14834       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
14835       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
14836 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
14837 if ${lt_cv_dlopen_self_static+:} false; then :
14838   $as_echo_n "(cached) " >&6
14839 else
14840           if test yes = "$cross_compiling"; then :
14841   lt_cv_dlopen_self_static=cross
14842 else
14843   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14844   lt_status=$lt_dlunknown
14845   cat > conftest.$ac_ext <<_LT_EOF
14846 #line $LINENO "configure"
14847 #include "confdefs.h"
14848
14849 #if HAVE_DLFCN_H
14850 #include <dlfcn.h>
14851 #endif
14852
14853 #include <stdio.h>
14854
14855 #ifdef RTLD_GLOBAL
14856 #  define LT_DLGLOBAL           RTLD_GLOBAL
14857 #else
14858 #  ifdef DL_GLOBAL
14859 #    define LT_DLGLOBAL         DL_GLOBAL
14860 #  else
14861 #    define LT_DLGLOBAL         0
14862 #  endif
14863 #endif
14864
14865 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14866    find out it does not work in some platform. */
14867 #ifndef LT_DLLAZY_OR_NOW
14868 #  ifdef RTLD_LAZY
14869 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
14870 #  else
14871 #    ifdef DL_LAZY
14872 #      define LT_DLLAZY_OR_NOW          DL_LAZY
14873 #    else
14874 #      ifdef RTLD_NOW
14875 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
14876 #      else
14877 #        ifdef DL_NOW
14878 #          define LT_DLLAZY_OR_NOW      DL_NOW
14879 #        else
14880 #          define LT_DLLAZY_OR_NOW      0
14881 #        endif
14882 #      endif
14883 #    endif
14884 #  endif
14885 #endif
14886
14887 /* When -fvisibility=hidden is used, assume the code has been annotated
14888    correspondingly for the symbols needed.  */
14889 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
14890 int fnord () __attribute__((visibility("default")));
14891 #endif
14892
14893 int fnord () { return 42; }
14894 int main ()
14895 {
14896   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14897   int status = $lt_dlunknown;
14898
14899   if (self)
14900     {
14901       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
14902       else
14903         {
14904           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
14905           else puts (dlerror ());
14906         }
14907       /* dlclose (self); */
14908     }
14909   else
14910     puts (dlerror ());
14911
14912   return status;
14913 }
14914 _LT_EOF
14915   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14916   (eval $ac_link) 2>&5
14917   ac_status=$?
14918   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14919   test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
14920     (./conftest; exit; ) >&5 2>/dev/null
14921     lt_status=$?
14922     case x$lt_status in
14923       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
14924       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
14925       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
14926     esac
14927   else :
14928     # compilation failed
14929     lt_cv_dlopen_self_static=no
14930   fi
14931 fi
14932 rm -fr conftest*
14933
14934
14935 fi
14936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
14937 $as_echo "$lt_cv_dlopen_self_static" >&6; }
14938     fi
14939
14940     CPPFLAGS=$save_CPPFLAGS
14941     LDFLAGS=$save_LDFLAGS
14942     LIBS=$save_LIBS
14943     ;;
14944   esac
14945
14946   case $lt_cv_dlopen_self in
14947   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
14948   *) enable_dlopen_self=unknown ;;
14949   esac
14950
14951   case $lt_cv_dlopen_self_static in
14952   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
14953   *) enable_dlopen_self_static=unknown ;;
14954   esac
14955 fi
14956
14957
14958
14959
14960
14961
14962
14963
14964
14965
14966
14967
14968
14969
14970
14971
14972
14973 striplib=
14974 old_striplib=
14975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
14976 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
14977 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
14978   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14979   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14980   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14981 $as_echo "yes" >&6; }
14982 else
14983 # FIXME - insert some real tests, host_os isn't really good enough
14984   case $host_os in
14985   darwin*)
14986     if test -n "$STRIP"; then
14987       striplib="$STRIP -x"
14988       old_striplib="$STRIP -S"
14989       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14990 $as_echo "yes" >&6; }
14991     else
14992       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14993 $as_echo "no" >&6; }
14994     fi
14995     ;;
14996   *)
14997     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14998 $as_echo "no" >&6; }
14999     ;;
15000   esac
15001 fi
15002
15003
15004
15005
15006
15007
15008
15009
15010
15011
15012
15013
15014   # Report what library types will actually be built
15015   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
15016 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
15017   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
15018 $as_echo "$can_build_shared" >&6; }
15019
15020   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
15021 $as_echo_n "checking whether to build shared libraries... " >&6; }
15022   test no = "$can_build_shared" && enable_shared=no
15023
15024   # On AIX, shared libraries and static libraries use the same namespace, and
15025   # are all built from PIC.
15026   case $host_os in
15027   aix3*)
15028     test yes = "$enable_shared" && enable_static=no
15029     if test -n "$RANLIB"; then
15030       archive_cmds="$archive_cmds~\$RANLIB \$lib"
15031       postinstall_cmds='$RANLIB $lib'
15032     fi
15033     ;;
15034
15035   aix[4-9]*)
15036     if test ia64 != "$host_cpu"; then
15037       case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
15038       yes,aix,yes) ;;                   # shared object as lib.so file only
15039       yes,svr4,*) ;;                    # shared object as lib.so archive member only
15040       yes,*) enable_static=no ;;        # shared object in lib.a archive as well
15041       esac
15042     fi
15043     ;;
15044   esac
15045   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
15046 $as_echo "$enable_shared" >&6; }
15047
15048   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
15049 $as_echo_n "checking whether to build static libraries... " >&6; }
15050   # Make sure either enable_shared or enable_static is yes.
15051   test yes = "$enable_shared" || enable_static=yes
15052   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
15053 $as_echo "$enable_static" >&6; }
15054
15055
15056
15057
15058 fi
15059 ac_ext=c
15060 ac_cpp='$CPP $CPPFLAGS'
15061 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15062 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15063 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15064
15065 CC=$lt_save_CC
15066
15067       if test -n "$CXX" && ( test no != "$CXX" &&
15068     ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
15069     (test g++ != "$CXX"))); then
15070   ac_ext=cpp
15071 ac_cpp='$CXXCPP $CPPFLAGS'
15072 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15073 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15074 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
15076 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
15077 if test -z "$CXXCPP"; then
15078   if ${ac_cv_prog_CXXCPP+:} false; then :
15079   $as_echo_n "(cached) " >&6
15080 else
15081       # Double quotes because CXXCPP needs to be expanded
15082     for CXXCPP in "$CXX -E" "/lib/cpp"
15083     do
15084       ac_preproc_ok=false
15085 for ac_cxx_preproc_warn_flag in '' yes
15086 do
15087   # Use a header file that comes with gcc, so configuring glibc
15088   # with a fresh cross-compiler works.
15089   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15090   # <limits.h> exists even on freestanding compilers.
15091   # On the NeXT, cc -E runs the code through the compiler's parser,
15092   # not just through cpp. "Syntax error" is here to catch this case.
15093   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15094 /* end confdefs.h.  */
15095 #ifdef __STDC__
15096 # include <limits.h>
15097 #else
15098 # include <assert.h>
15099 #endif
15100                      Syntax error
15101 _ACEOF
15102 if ac_fn_cxx_try_cpp "$LINENO"; then :
15103
15104 else
15105   # Broken: fails on valid input.
15106 continue
15107 fi
15108 rm -f conftest.err conftest.i conftest.$ac_ext
15109
15110   # OK, works on sane cases.  Now check whether nonexistent headers
15111   # can be detected and how.
15112   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15113 /* end confdefs.h.  */
15114 #include <ac_nonexistent.h>
15115 _ACEOF
15116 if ac_fn_cxx_try_cpp "$LINENO"; then :
15117   # Broken: success on invalid input.
15118 continue
15119 else
15120   # Passes both tests.
15121 ac_preproc_ok=:
15122 break
15123 fi
15124 rm -f conftest.err conftest.i conftest.$ac_ext
15125
15126 done
15127 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
15128 rm -f conftest.i conftest.err conftest.$ac_ext
15129 if $ac_preproc_ok; then :
15130   break
15131 fi
15132
15133     done
15134     ac_cv_prog_CXXCPP=$CXXCPP
15135
15136 fi
15137   CXXCPP=$ac_cv_prog_CXXCPP
15138 else
15139   ac_cv_prog_CXXCPP=$CXXCPP
15140 fi
15141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
15142 $as_echo "$CXXCPP" >&6; }
15143 ac_preproc_ok=false
15144 for ac_cxx_preproc_warn_flag in '' yes
15145 do
15146   # Use a header file that comes with gcc, so configuring glibc
15147   # with a fresh cross-compiler works.
15148   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15149   # <limits.h> exists even on freestanding compilers.
15150   # On the NeXT, cc -E runs the code through the compiler's parser,
15151   # not just through cpp. "Syntax error" is here to catch this case.
15152   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15153 /* end confdefs.h.  */
15154 #ifdef __STDC__
15155 # include <limits.h>
15156 #else
15157 # include <assert.h>
15158 #endif
15159                      Syntax error
15160 _ACEOF
15161 if ac_fn_cxx_try_cpp "$LINENO"; then :
15162
15163 else
15164   # Broken: fails on valid input.
15165 continue
15166 fi
15167 rm -f conftest.err conftest.i conftest.$ac_ext
15168
15169   # OK, works on sane cases.  Now check whether nonexistent headers
15170   # can be detected and how.
15171   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15172 /* end confdefs.h.  */
15173 #include <ac_nonexistent.h>
15174 _ACEOF
15175 if ac_fn_cxx_try_cpp "$LINENO"; then :
15176   # Broken: success on invalid input.
15177 continue
15178 else
15179   # Passes both tests.
15180 ac_preproc_ok=:
15181 break
15182 fi
15183 rm -f conftest.err conftest.i conftest.$ac_ext
15184
15185 done
15186 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
15187 rm -f conftest.i conftest.err conftest.$ac_ext
15188 if $ac_preproc_ok; then :
15189
15190 else
15191   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15192 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15193 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
15194 See \`config.log' for more details" "$LINENO" 5; }
15195 fi
15196
15197 ac_ext=c
15198 ac_cpp='$CPP $CPPFLAGS'
15199 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15200 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15201 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15202
15203 else
15204   _lt_caught_CXX_error=yes
15205 fi
15206
15207 ac_ext=cpp
15208 ac_cpp='$CXXCPP $CPPFLAGS'
15209 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15210 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15211 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15212
15213 archive_cmds_need_lc_CXX=no
15214 allow_undefined_flag_CXX=
15215 always_export_symbols_CXX=no
15216 archive_expsym_cmds_CXX=
15217 compiler_needs_object_CXX=no
15218 export_dynamic_flag_spec_CXX=
15219 hardcode_direct_CXX=no
15220 hardcode_direct_absolute_CXX=no
15221 hardcode_libdir_flag_spec_CXX=
15222 hardcode_libdir_separator_CXX=
15223 hardcode_minus_L_CXX=no
15224 hardcode_shlibpath_var_CXX=unsupported
15225 hardcode_automatic_CXX=no
15226 inherit_rpath_CXX=no
15227 module_cmds_CXX=
15228 module_expsym_cmds_CXX=
15229 link_all_deplibs_CXX=unknown
15230 old_archive_cmds_CXX=$old_archive_cmds
15231 reload_flag_CXX=$reload_flag
15232 reload_cmds_CXX=$reload_cmds
15233 no_undefined_flag_CXX=
15234 whole_archive_flag_spec_CXX=
15235 enable_shared_with_static_runtimes_CXX=no
15236
15237 # Source file extension for C++ test sources.
15238 ac_ext=cpp
15239
15240 # Object file extension for compiled C++ test sources.
15241 objext=o
15242 objext_CXX=$objext
15243
15244 # No sense in running all these tests if we already determined that
15245 # the CXX compiler isn't working.  Some variables (like enable_shared)
15246 # are currently assumed to apply to all compilers on this platform,
15247 # and will be corrupted by setting them based on a non-working compiler.
15248 if test yes != "$_lt_caught_CXX_error"; then
15249   # Code to be used in simple compile tests
15250   lt_simple_compile_test_code="int some_variable = 0;"
15251
15252   # Code to be used in simple link tests
15253   lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
15254
15255   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15256
15257
15258
15259
15260
15261
15262 # If no C compiler was specified, use CC.
15263 LTCC=${LTCC-"$CC"}
15264
15265 # If no C compiler flags were specified, use CFLAGS.
15266 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15267
15268 # Allow CC to be a program name with arguments.
15269 compiler=$CC
15270
15271
15272   # save warnings/boilerplate of simple test code
15273   ac_outfile=conftest.$ac_objext
15274 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15275 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15276 _lt_compiler_boilerplate=`cat conftest.err`
15277 $RM conftest*
15278
15279   ac_outfile=conftest.$ac_objext
15280 echo "$lt_simple_link_test_code" >conftest.$ac_ext
15281 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15282 _lt_linker_boilerplate=`cat conftest.err`
15283 $RM -r conftest*
15284
15285
15286   # Allow CC to be a program name with arguments.
15287   lt_save_CC=$CC
15288   lt_save_CFLAGS=$CFLAGS
15289   lt_save_LD=$LD
15290   lt_save_GCC=$GCC
15291   GCC=$GXX
15292   lt_save_with_gnu_ld=$with_gnu_ld
15293   lt_save_path_LD=$lt_cv_path_LD
15294   if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
15295     lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
15296   else
15297     $as_unset lt_cv_prog_gnu_ld
15298   fi
15299   if test -n "${lt_cv_path_LDCXX+set}"; then
15300     lt_cv_path_LD=$lt_cv_path_LDCXX
15301   else
15302     $as_unset lt_cv_path_LD
15303   fi
15304   test -z "${LDCXX+set}" || LD=$LDCXX
15305   CC=${CXX-"c++"}
15306   CFLAGS=$CXXFLAGS
15307   compiler=$CC
15308   compiler_CXX=$CC
15309   func_cc_basename $compiler
15310 cc_basename=$func_cc_basename_result
15311
15312
15313   if test -n "$compiler"; then
15314     # We don't want -fno-exception when compiling C++ code, so set the
15315     # no_builtin_flag separately
15316     if test yes = "$GXX"; then
15317       lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
15318     else
15319       lt_prog_compiler_no_builtin_flag_CXX=
15320     fi
15321
15322     if test yes = "$GXX"; then
15323       # Set up default GNU C++ configuration
15324
15325
15326
15327 # Check whether --with-gnu-ld was given.
15328 if test "${with_gnu_ld+set}" = set; then :
15329   withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
15330 else
15331   with_gnu_ld=no
15332 fi
15333
15334 ac_prog=ld
15335 if test yes = "$GCC"; then
15336   # Check if gcc -print-prog-name=ld gives a path.
15337   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
15338 $as_echo_n "checking for ld used by $CC... " >&6; }
15339   case $host in
15340   *-*-mingw*)
15341     # gcc leaves a trailing carriage return, which upsets mingw
15342     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
15343   *)
15344     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
15345   esac
15346   case $ac_prog in
15347     # Accept absolute paths.
15348     [\\/]* | ?:[\\/]*)
15349       re_direlt='/[^/][^/]*/\.\./'
15350       # Canonicalize the pathname of ld
15351       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
15352       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
15353         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
15354       done
15355       test -z "$LD" && LD=$ac_prog
15356       ;;
15357   "")
15358     # If it fails, then pretend we aren't using GCC.
15359     ac_prog=ld
15360     ;;
15361   *)
15362     # If it is relative, then search for the first ld in PATH.
15363     with_gnu_ld=unknown
15364     ;;
15365   esac
15366 elif test yes = "$with_gnu_ld"; then
15367   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
15368 $as_echo_n "checking for GNU ld... " >&6; }
15369 else
15370   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
15371 $as_echo_n "checking for non-GNU ld... " >&6; }
15372 fi
15373 if ${lt_cv_path_LD+:} false; then :
15374   $as_echo_n "(cached) " >&6
15375 else
15376   if test -z "$LD"; then
15377   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
15378   for ac_dir in $PATH; do
15379     IFS=$lt_save_ifs
15380     test -z "$ac_dir" && ac_dir=.
15381     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
15382       lt_cv_path_LD=$ac_dir/$ac_prog
15383       # Check to see if the program is GNU ld.  I'd rather use --version,
15384       # but apparently some variants of GNU ld only accept -v.
15385       # Break only if it was the GNU/non-GNU ld that we prefer.
15386       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
15387       *GNU* | *'with BFD'*)
15388         test no != "$with_gnu_ld" && break
15389         ;;
15390       *)
15391         test yes != "$with_gnu_ld" && break
15392         ;;
15393       esac
15394     fi
15395   done
15396   IFS=$lt_save_ifs
15397 else
15398   lt_cv_path_LD=$LD # Let the user override the test with a path.
15399 fi
15400 fi
15401
15402 LD=$lt_cv_path_LD
15403 if test -n "$LD"; then
15404   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
15405 $as_echo "$LD" >&6; }
15406 else
15407   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15408 $as_echo "no" >&6; }
15409 fi
15410 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
15411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
15412 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
15413 if ${lt_cv_prog_gnu_ld+:} false; then :
15414   $as_echo_n "(cached) " >&6
15415 else
15416   # I'd rather use --version here, but apparently some GNU lds only accept -v.
15417 case `$LD -v 2>&1 </dev/null` in
15418 *GNU* | *'with BFD'*)
15419   lt_cv_prog_gnu_ld=yes
15420   ;;
15421 *)
15422   lt_cv_prog_gnu_ld=no
15423   ;;
15424 esac
15425 fi
15426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
15427 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
15428 with_gnu_ld=$lt_cv_prog_gnu_ld
15429
15430
15431
15432
15433
15434
15435
15436       # Check if GNU C++ uses GNU ld as the underlying linker, since the
15437       # archiving commands below assume that GNU ld is being used.
15438       if test yes = "$with_gnu_ld"; then
15439         archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
15440         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'
15441
15442         hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
15443         export_dynamic_flag_spec_CXX='$wl--export-dynamic'
15444
15445         # If archive_cmds runs LD, not CC, wlarc should be empty
15446         # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
15447         #     investigate it a little bit more. (MM)
15448         wlarc='$wl'
15449
15450         # ancient GNU ld didn't support --whole-archive et. al.
15451         if eval "`$CC -print-prog-name=ld` --help 2>&1" |
15452           $GREP 'no-whole-archive' > /dev/null; then
15453           whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
15454         else
15455           whole_archive_flag_spec_CXX=
15456         fi
15457       else
15458         with_gnu_ld=no
15459         wlarc=
15460
15461         # A generic and very simple default shared library creation
15462         # command for GNU C++ for the case where it uses the native
15463         # linker, instead of GNU ld.  If possible, this setting should
15464         # overridden to take advantage of the native linker features on
15465         # the platform it is being used on.
15466         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15467       fi
15468
15469       # Commands to make compiler produce verbose output that lists
15470       # what "hidden" libraries, object files and flags are used when
15471       # linking a shared library.
15472       output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
15473
15474     else
15475       GXX=no
15476       with_gnu_ld=no
15477       wlarc=
15478     fi
15479
15480     # PORTME: fill in a description of your system's C++ link characteristics
15481     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15482 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15483     ld_shlibs_CXX=yes
15484     case $host_os in
15485       aix3*)
15486         # FIXME: insert proper C++ library support
15487         ld_shlibs_CXX=no
15488         ;;
15489       aix[4-9]*)
15490         if test ia64 = "$host_cpu"; then
15491           # On IA64, the linker does run time linking by default, so we don't
15492           # have to do anything special.
15493           aix_use_runtimelinking=no
15494           exp_sym_flag='-Bexport'
15495           no_entry_flag=
15496         else
15497           aix_use_runtimelinking=no
15498
15499           # Test if we are trying to use run time linking or normal
15500           # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15501           # have runtime linking enabled, and use it for executables.
15502           # For shared libraries, we enable/disable runtime linking
15503           # depending on the kind of the shared library created -
15504           # when "with_aix_soname,aix_use_runtimelinking" is:
15505           # "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
15506           # "aix,yes"  lib.so          shared, rtl:yes, for executables
15507           #            lib.a           static archive
15508           # "both,no"  lib.so.V(shr.o) shared, rtl:yes
15509           #            lib.a(lib.so.V) shared, rtl:no,  for executables
15510           # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
15511           #            lib.a(lib.so.V) shared, rtl:no
15512           # "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
15513           #            lib.a           static archive
15514           case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15515             for ld_flag in $LDFLAGS; do
15516               case $ld_flag in
15517               *-brtl*)
15518                 aix_use_runtimelinking=yes
15519                 break
15520                 ;;
15521               esac
15522             done
15523             if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
15524               # With aix-soname=svr4, we create the lib.so.V shared archives only,
15525               # so we don't have lib.a shared libs to link our executables.
15526               # We have to force runtime linking in this case.
15527               aix_use_runtimelinking=yes
15528               LDFLAGS="$LDFLAGS -Wl,-brtl"
15529             fi
15530             ;;
15531           esac
15532
15533           exp_sym_flag='-bexport'
15534           no_entry_flag='-bnoentry'
15535         fi
15536
15537         # When large executables or shared objects are built, AIX ld can
15538         # have problems creating the table of contents.  If linking a library
15539         # or program results in "error TOC overflow" add -mminimal-toc to
15540         # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15541         # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15542
15543         archive_cmds_CXX=''
15544         hardcode_direct_CXX=yes
15545         hardcode_direct_absolute_CXX=yes
15546         hardcode_libdir_separator_CXX=':'
15547         link_all_deplibs_CXX=yes
15548         file_list_spec_CXX='$wl-f,'
15549         case $with_aix_soname,$aix_use_runtimelinking in
15550         aix,*) ;;       # no import file
15551         svr4,* | *,yes) # use import file
15552           # The Import File defines what to hardcode.
15553           hardcode_direct_CXX=no
15554           hardcode_direct_absolute_CXX=no
15555           ;;
15556         esac
15557
15558         if test yes = "$GXX"; then
15559           case $host_os in aix4.[012]|aix4.[012].*)
15560           # We only want to do this on AIX 4.2 and lower, the check
15561           # below for broken collect2 doesn't work under 4.3+
15562           collect2name=`$CC -print-prog-name=collect2`
15563           if test -f "$collect2name" &&
15564              strings "$collect2name" | $GREP resolve_lib_name >/dev/null
15565           then
15566             # We have reworked collect2
15567             :
15568           else
15569             # We have old collect2
15570             hardcode_direct_CXX=unsupported
15571             # It fails to find uninstalled libraries when the uninstalled
15572             # path is not listed in the libpath.  Setting hardcode_minus_L
15573             # to unsupported forces relinking
15574             hardcode_minus_L_CXX=yes
15575             hardcode_libdir_flag_spec_CXX='-L$libdir'
15576             hardcode_libdir_separator_CXX=
15577           fi
15578           esac
15579           shared_flag='-shared'
15580           if test yes = "$aix_use_runtimelinking"; then
15581             shared_flag=$shared_flag' $wl-G'
15582           fi
15583           # Need to ensure runtime linking is disabled for the traditional
15584           # shared library, or the linker may eventually find shared libraries
15585           # /with/ Import File - we do not want to mix them.
15586           shared_flag_aix='-shared'
15587           shared_flag_svr4='-shared $wl-G'
15588         else
15589           # not using gcc
15590           if test ia64 = "$host_cpu"; then
15591           # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15592           # chokes on -Wl,-G. The following line is correct:
15593           shared_flag='-G'
15594           else
15595             if test yes = "$aix_use_runtimelinking"; then
15596               shared_flag='$wl-G'
15597             else
15598               shared_flag='$wl-bM:SRE'
15599             fi
15600             shared_flag_aix='$wl-bM:SRE'
15601             shared_flag_svr4='$wl-G'
15602           fi
15603         fi
15604
15605         export_dynamic_flag_spec_CXX='$wl-bexpall'
15606         # It seems that -bexpall does not export symbols beginning with
15607         # underscore (_), so it is better to generate a list of symbols to
15608         # export.
15609         always_export_symbols_CXX=yes
15610         if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
15611           # Warning - without using the other runtime loading flags (-brtl),
15612           # -berok will link without error, but may produce a broken library.
15613           # The "-G" linker flag allows undefined symbols.
15614           no_undefined_flag_CXX='-bernotok'
15615           # Determine the default libpath from the value encoded in an empty
15616           # executable.
15617           if test set = "${lt_cv_aix_libpath+set}"; then
15618   aix_libpath=$lt_cv_aix_libpath
15619 else
15620   if ${lt_cv_aix_libpath__CXX+:} false; then :
15621   $as_echo_n "(cached) " >&6
15622 else
15623   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15624 /* end confdefs.h.  */
15625
15626 int
15627 main ()
15628 {
15629
15630   ;
15631   return 0;
15632 }
15633 _ACEOF
15634 if ac_fn_cxx_try_link "$LINENO"; then :
15635
15636   lt_aix_libpath_sed='
15637       /Import File Strings/,/^$/ {
15638           /^0/ {
15639               s/^0  *\([^ ]*\) *$/\1/
15640               p
15641           }
15642       }'
15643   lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15644   # Check for a 64-bit object if we didn't find anything.
15645   if test -z "$lt_cv_aix_libpath__CXX"; then
15646     lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15647   fi
15648 fi
15649 rm -f core conftest.err conftest.$ac_objext \
15650     conftest$ac_exeext conftest.$ac_ext
15651   if test -z "$lt_cv_aix_libpath__CXX"; then
15652     lt_cv_aix_libpath__CXX=/usr/lib:/lib
15653   fi
15654
15655 fi
15656
15657   aix_libpath=$lt_cv_aix_libpath__CXX
15658 fi
15659
15660           hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
15661
15662           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
15663         else
15664           if test ia64 = "$host_cpu"; then
15665             hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib'
15666             allow_undefined_flag_CXX="-z nodefs"
15667             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"
15668           else
15669             # Determine the default libpath from the value encoded in an
15670             # empty executable.
15671             if test set = "${lt_cv_aix_libpath+set}"; then
15672   aix_libpath=$lt_cv_aix_libpath
15673 else
15674   if ${lt_cv_aix_libpath__CXX+:} false; then :
15675   $as_echo_n "(cached) " >&6
15676 else
15677   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15678 /* end confdefs.h.  */
15679
15680 int
15681 main ()
15682 {
15683
15684   ;
15685   return 0;
15686 }
15687 _ACEOF
15688 if ac_fn_cxx_try_link "$LINENO"; then :
15689
15690   lt_aix_libpath_sed='
15691       /Import File Strings/,/^$/ {
15692           /^0/ {
15693               s/^0  *\([^ ]*\) *$/\1/
15694               p
15695           }
15696       }'
15697   lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15698   # Check for a 64-bit object if we didn't find anything.
15699   if test -z "$lt_cv_aix_libpath__CXX"; then
15700     lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15701   fi
15702 fi
15703 rm -f core conftest.err conftest.$ac_objext \
15704     conftest$ac_exeext conftest.$ac_ext
15705   if test -z "$lt_cv_aix_libpath__CXX"; then
15706     lt_cv_aix_libpath__CXX=/usr/lib:/lib
15707   fi
15708
15709 fi
15710
15711   aix_libpath=$lt_cv_aix_libpath__CXX
15712 fi
15713
15714             hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
15715             # Warning - without using the other run time loading flags,
15716             # -berok will link without error, but may produce a broken library.
15717             no_undefined_flag_CXX=' $wl-bernotok'
15718             allow_undefined_flag_CXX=' $wl-berok'
15719             if test yes = "$with_gnu_ld"; then
15720               # We only use this code for GNU lds that support --whole-archive.
15721               whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
15722             else
15723               # Exported symbols can be pulled into shared objects from archives
15724               whole_archive_flag_spec_CXX='$convenience'
15725             fi
15726             archive_cmds_need_lc_CXX=yes
15727             archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
15728             # -brtl affects multiple linker settings, -berok does not and is overridden later
15729             compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
15730             if test svr4 != "$with_aix_soname"; then
15731               # This is similar to how AIX traditionally builds its shared
15732               # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
15733               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'
15734             fi
15735             if test aix != "$with_aix_soname"; then
15736               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'
15737             else
15738               # used by -dlpreopen to get the symbols
15739               archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
15740             fi
15741             archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d'
15742           fi
15743         fi
15744         ;;
15745
15746       beos*)
15747         if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15748           allow_undefined_flag_CXX=unsupported
15749           # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15750           # support --undefined.  This deserves some investigation.  FIXME
15751           archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15752         else
15753           ld_shlibs_CXX=no
15754         fi
15755         ;;
15756
15757       chorus*)
15758         case $cc_basename in
15759           *)
15760           # FIXME: insert proper C++ library support
15761           ld_shlibs_CXX=no
15762           ;;
15763         esac
15764         ;;
15765
15766       cygwin* | mingw* | pw32* | cegcc*)
15767         case $GXX,$cc_basename in
15768         ,cl* | no,cl*)
15769           # Native MSVC
15770           # hardcode_libdir_flag_spec is actually meaningless, as there is
15771           # no search path for DLLs.
15772           hardcode_libdir_flag_spec_CXX=' '
15773           allow_undefined_flag_CXX=unsupported
15774           always_export_symbols_CXX=yes
15775           file_list_spec_CXX='@'
15776           # Tell ltmain to make .lib files, not .a files.
15777           libext=lib
15778           # Tell ltmain to make .dll files, not .so files.
15779           shrext_cmds=.dll
15780           # FIXME: Setting linknames here is a bad hack.
15781           archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
15782           archive_expsym_cmds_CXX='if   test DEF = "`$SED -n     -e '\''s/^[     ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([     ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
15783               cp "$export_symbols" "$output_objdir/$soname.def";
15784               echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
15785             else
15786               $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
15787             fi~
15788             $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
15789             linknames='
15790           # The linker will not automatically build a static lib if we build a DLL.
15791           # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
15792           enable_shared_with_static_runtimes_CXX=yes
15793           # Don't use ranlib
15794           old_postinstall_cmds_CXX='chmod 644 $oldlib'
15795           postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
15796             lt_tool_outputfile="@TOOL_OUTPUT@"~
15797             case $lt_outputfile in
15798               *.exe|*.EXE) ;;
15799               *)
15800                 lt_outputfile=$lt_outputfile.exe
15801                 lt_tool_outputfile=$lt_tool_outputfile.exe
15802                 ;;
15803             esac~
15804             func_to_tool_file "$lt_outputfile"~
15805             if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
15806               $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
15807               $RM "$lt_outputfile.manifest";
15808             fi'
15809           ;;
15810         *)
15811           # g++
15812           # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
15813           # as there is no search path for DLLs.
15814           hardcode_libdir_flag_spec_CXX='-L$libdir'
15815           export_dynamic_flag_spec_CXX='$wl--export-all-symbols'
15816           allow_undefined_flag_CXX=unsupported
15817           always_export_symbols_CXX=no
15818           enable_shared_with_static_runtimes_CXX=yes
15819
15820           if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
15821             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'
15822             # If the export-symbols file already is a .def file, use it as
15823             # is; otherwise, prepend EXPORTS...
15824             archive_expsym_cmds_CXX='if   test DEF = "`$SED -n     -e '\''s/^[   ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([     ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
15825               cp $export_symbols $output_objdir/$soname.def;
15826             else
15827               echo EXPORTS > $output_objdir/$soname.def;
15828               cat $export_symbols >> $output_objdir/$soname.def;
15829             fi~
15830             $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'
15831           else
15832             ld_shlibs_CXX=no
15833           fi
15834           ;;
15835         esac
15836         ;;
15837       darwin* | rhapsody*)
15838
15839
15840   archive_cmds_need_lc_CXX=no
15841   hardcode_direct_CXX=no
15842   hardcode_automatic_CXX=yes
15843   hardcode_shlibpath_var_CXX=unsupported
15844   if test yes = "$lt_cv_ld_force_load"; then
15845     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\"`'
15846
15847   else
15848     whole_archive_flag_spec_CXX=''
15849   fi
15850   link_all_deplibs_CXX=yes
15851   allow_undefined_flag_CXX=$_lt_dar_allow_undefined
15852   case $cc_basename in
15853      ifort*|nagfor*) _lt_dar_can_shared=yes ;;
15854      *) _lt_dar_can_shared=$GCC ;;
15855   esac
15856   if test yes = "$_lt_dar_can_shared"; then
15857     output_verbose_link_cmd=func_echo_all
15858     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"
15859     module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
15860     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"
15861     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"
15862        if test yes != "$lt_cv_apple_cc_single_mod"; then
15863       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"
15864       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"
15865     fi
15866
15867   else
15868   ld_shlibs_CXX=no
15869   fi
15870
15871         ;;
15872
15873       os2*)
15874         hardcode_libdir_flag_spec_CXX='-L$libdir'
15875         hardcode_minus_L_CXX=yes
15876         allow_undefined_flag_CXX=unsupported
15877         shrext_cmds=.dll
15878         archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
15879           $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
15880           $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
15881           $ECHO EXPORTS >> $output_objdir/$libname.def~
15882           emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
15883           $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
15884           emximp -o $lib $output_objdir/$libname.def'
15885         archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
15886           $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
15887           $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
15888           $ECHO EXPORTS >> $output_objdir/$libname.def~
15889           prefix_cmds="$SED"~
15890           if test EXPORTS = "`$SED 1q $export_symbols`"; then
15891             prefix_cmds="$prefix_cmds -e 1d";
15892           fi~
15893           prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
15894           cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
15895           $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
15896           emximp -o $lib $output_objdir/$libname.def'
15897         old_archive_From_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
15898         enable_shared_with_static_runtimes_CXX=yes
15899         ;;
15900
15901       dgux*)
15902         case $cc_basename in
15903           ec++*)
15904             # FIXME: insert proper C++ library support
15905             ld_shlibs_CXX=no
15906             ;;
15907           ghcx*)
15908             # Green Hills C++ Compiler
15909             # FIXME: insert proper C++ library support
15910             ld_shlibs_CXX=no
15911             ;;
15912           *)
15913             # FIXME: insert proper C++ library support
15914             ld_shlibs_CXX=no
15915             ;;
15916         esac
15917         ;;
15918
15919       freebsd2.*)
15920         # C++ shared libraries reported to be fairly broken before
15921         # switch to ELF
15922         ld_shlibs_CXX=no
15923         ;;
15924
15925       freebsd-elf*)
15926         archive_cmds_need_lc_CXX=no
15927         ;;
15928
15929       freebsd* | dragonfly*)
15930         # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
15931         # conventions
15932         ld_shlibs_CXX=yes
15933         ;;
15934
15935       haiku*)
15936         archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15937         link_all_deplibs_CXX=yes
15938         ;;
15939
15940       hpux9*)
15941         hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
15942         hardcode_libdir_separator_CXX=:
15943         export_dynamic_flag_spec_CXX='$wl-E'
15944         hardcode_direct_CXX=yes
15945         hardcode_minus_L_CXX=yes # Not in the search PATH,
15946                                              # but as the default
15947                                              # location of the library.
15948
15949         case $cc_basename in
15950           CC*)
15951             # FIXME: insert proper C++ library support
15952             ld_shlibs_CXX=no
15953             ;;
15954           aCC*)
15955             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'
15956             # Commands to make compiler produce verbose output that lists
15957             # what "hidden" libraries, object files and flags are used when
15958             # linking a shared library.
15959             #
15960             # There doesn't appear to be a way to prevent this compiler from
15961             # explicitly linking system object files so we need to strip them
15962             # from the output so that they don't get included in the library
15963             # dependencies.
15964             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"'
15965             ;;
15966           *)
15967             if test yes = "$GXX"; then
15968               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'
15969             else
15970               # FIXME: insert proper C++ library support
15971               ld_shlibs_CXX=no
15972             fi
15973             ;;
15974         esac
15975         ;;
15976
15977       hpux10*|hpux11*)
15978         if test no = "$with_gnu_ld"; then
15979           hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
15980           hardcode_libdir_separator_CXX=:
15981
15982           case $host_cpu in
15983             hppa*64*|ia64*)
15984               ;;
15985             *)
15986               export_dynamic_flag_spec_CXX='$wl-E'
15987               ;;
15988           esac
15989         fi
15990         case $host_cpu in
15991           hppa*64*|ia64*)
15992             hardcode_direct_CXX=no
15993             hardcode_shlibpath_var_CXX=no
15994             ;;
15995           *)
15996             hardcode_direct_CXX=yes
15997             hardcode_direct_absolute_CXX=yes
15998             hardcode_minus_L_CXX=yes # Not in the search PATH,
15999                                                  # but as the default
16000                                                  # location of the library.
16001             ;;
16002         esac
16003
16004         case $cc_basename in
16005           CC*)
16006             # FIXME: insert proper C++ library support
16007             ld_shlibs_CXX=no
16008             ;;
16009           aCC*)
16010             case $host_cpu in
16011               hppa*64*)
16012                 archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16013                 ;;
16014               ia64*)
16015                 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16016                 ;;
16017               *)
16018                 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16019                 ;;
16020             esac
16021             # Commands to make compiler produce verbose output that lists
16022             # what "hidden" libraries, object files and flags are used when
16023             # linking a shared library.
16024             #
16025             # There doesn't appear to be a way to prevent this compiler from
16026             # explicitly linking system object files so we need to strip them
16027             # from the output so that they don't get included in the library
16028             # dependencies.
16029             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"'
16030             ;;
16031           *)
16032             if test yes = "$GXX"; then
16033               if test no = "$with_gnu_ld"; then
16034                 case $host_cpu in
16035                   hppa*64*)
16036                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16037                     ;;
16038                   ia64*)
16039                     archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16040                     ;;
16041                   *)
16042                     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'
16043                     ;;
16044                 esac
16045               fi
16046             else
16047               # FIXME: insert proper C++ library support
16048               ld_shlibs_CXX=no
16049             fi
16050             ;;
16051         esac
16052         ;;
16053
16054       interix[3-9]*)
16055         hardcode_direct_CXX=no
16056         hardcode_shlibpath_var_CXX=no
16057         hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
16058         export_dynamic_flag_spec_CXX='$wl-E'
16059         # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16060         # Instead, shared libraries are loaded at an image base (0x10000000 by
16061         # default) and relocated if they conflict, which is a slow very memory
16062         # consuming and fragmenting process.  To avoid this, we pick a random,
16063         # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16064         # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
16065         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'
16066         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'
16067         ;;
16068       irix5* | irix6*)
16069         case $cc_basename in
16070           CC*)
16071             # SGI C++
16072             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'
16073
16074             # Archives containing C++ object files must be created using
16075             # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
16076             # necessary to make sure instantiated templates are included
16077             # in the archive.
16078             old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
16079             ;;
16080           *)
16081             if test yes = "$GXX"; then
16082               if test no = "$with_gnu_ld"; then
16083                 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'
16084               else
16085                 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'
16086               fi
16087             fi
16088             link_all_deplibs_CXX=yes
16089             ;;
16090         esac
16091         hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
16092         hardcode_libdir_separator_CXX=:
16093         inherit_rpath_CXX=yes
16094         ;;
16095
16096       linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
16097         case $cc_basename in
16098           KCC*)
16099             # Kuck and Associates, Inc. (KAI) C++ Compiler
16100
16101             # KCC will only create a shared library if the output file
16102             # ends with ".so" (or ".sl" for HP-UX), so rename the library
16103             # to its proper name (with version) after linking.
16104             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'
16105             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'
16106             # Commands to make compiler produce verbose output that lists
16107             # what "hidden" libraries, object files and flags are used when
16108             # linking a shared library.
16109             #
16110             # There doesn't appear to be a way to prevent this compiler from
16111             # explicitly linking system object files so we need to strip them
16112             # from the output so that they don't get included in the library
16113             # dependencies.
16114             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"'
16115
16116             hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
16117             export_dynamic_flag_spec_CXX='$wl--export-dynamic'
16118
16119             # Archives containing C++ object files must be created using
16120             # "CC -Bstatic", where "CC" is the KAI C++ compiler.
16121             old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
16122             ;;
16123           icpc* | ecpc* )
16124             # Intel C++
16125             with_gnu_ld=yes
16126             # version 8.0 and above of icpc choke on multiply defined symbols
16127             # if we add $predep_objects and $postdep_objects, however 7.1 and
16128             # earlier do not add the objects themselves.
16129             case `$CC -V 2>&1` in
16130               *"Version 7."*)
16131                 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
16132                 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'
16133                 ;;
16134               *)  # Version 8.0 or newer
16135                 tmp_idyn=
16136                 case $host_cpu in
16137                   ia64*) tmp_idyn=' -i_dynamic';;
16138                 esac
16139                 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16140                 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'
16141                 ;;
16142             esac
16143             archive_cmds_need_lc_CXX=no
16144             hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
16145             export_dynamic_flag_spec_CXX='$wl--export-dynamic'
16146             whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
16147             ;;
16148           pgCC* | pgcpp*)
16149             # Portland Group C++ compiler
16150             case `$CC -V` in
16151             *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
16152               prelink_cmds_CXX='tpldir=Template.dir~
16153                rm -rf $tpldir~
16154                $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
16155                compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
16156               old_archive_cmds_CXX='tpldir=Template.dir~
16157                 rm -rf $tpldir~
16158                 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
16159                 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
16160                 $RANLIB $oldlib'
16161               archive_cmds_CXX='tpldir=Template.dir~
16162                 rm -rf $tpldir~
16163                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
16164                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
16165               archive_expsym_cmds_CXX='tpldir=Template.dir~
16166                 rm -rf $tpldir~
16167                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
16168                 $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'
16169               ;;
16170             *) # Version 6 and above use weak symbols
16171               archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
16172               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'
16173               ;;
16174             esac
16175
16176             hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir'
16177             export_dynamic_flag_spec_CXX='$wl--export-dynamic'
16178             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'
16179             ;;
16180           cxx*)
16181             # Compaq C++
16182             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
16183             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'
16184
16185             runpath_var=LD_RUN_PATH
16186             hardcode_libdir_flag_spec_CXX='-rpath $libdir'
16187             hardcode_libdir_separator_CXX=:
16188
16189             # Commands to make compiler produce verbose output that lists
16190             # what "hidden" libraries, object files and flags are used when
16191             # linking a shared library.
16192             #
16193             # There doesn't appear to be a way to prevent this compiler from
16194             # explicitly linking system object files so we need to strip them
16195             # from the output so that they don't get included in the library
16196             # dependencies.
16197             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'
16198             ;;
16199           xl* | mpixl* | bgxl*)
16200             # IBM XL 8.0 on PPC, with GNU ld
16201             hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
16202             export_dynamic_flag_spec_CXX='$wl--export-dynamic'
16203             archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16204             if test yes = "$supports_anon_versioning"; then
16205               archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
16206                 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16207                 echo "local: *; };" >> $output_objdir/$libname.ver~
16208                 $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
16209             fi
16210             ;;
16211           *)
16212             case `$CC -V 2>&1 | sed 5q` in
16213             *Sun\ C*)
16214               # Sun C++ 5.9
16215               no_undefined_flag_CXX=' -zdefs'
16216               archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16217               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'
16218               hardcode_libdir_flag_spec_CXX='-R$libdir'
16219               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'
16220               compiler_needs_object_CXX=yes
16221
16222               # Not sure whether something based on
16223               # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
16224               # would be better.
16225               output_verbose_link_cmd='func_echo_all'
16226
16227               # Archives containing C++ object files must be created using
16228               # "CC -xar", where "CC" is the Sun C++ compiler.  This is
16229               # necessary to make sure instantiated templates are included
16230               # in the archive.
16231               old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
16232               ;;
16233             esac
16234             ;;
16235         esac
16236         ;;
16237
16238       lynxos*)
16239         # FIXME: insert proper C++ library support
16240         ld_shlibs_CXX=no
16241         ;;
16242
16243       m88k*)
16244         # FIXME: insert proper C++ library support
16245         ld_shlibs_CXX=no
16246         ;;
16247
16248       mvs*)
16249         case $cc_basename in
16250           cxx*)
16251             # FIXME: insert proper C++ library support
16252             ld_shlibs_CXX=no
16253             ;;
16254           *)
16255             # FIXME: insert proper C++ library support
16256             ld_shlibs_CXX=no
16257             ;;
16258         esac
16259         ;;
16260
16261       netbsd*)
16262         if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16263           archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
16264           wlarc=
16265           hardcode_libdir_flag_spec_CXX='-R$libdir'
16266           hardcode_direct_CXX=yes
16267           hardcode_shlibpath_var_CXX=no
16268         fi
16269         # Workaround some broken pre-1.5 toolchains
16270         output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
16271         ;;
16272
16273       *nto* | *qnx*)
16274         ld_shlibs_CXX=yes
16275         ;;
16276
16277       openbsd* | bitrig*)
16278         if test -f /usr/libexec/ld.so; then
16279           hardcode_direct_CXX=yes
16280           hardcode_shlibpath_var_CXX=no
16281           hardcode_direct_absolute_CXX=yes
16282           archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
16283           hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
16284           if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
16285             archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib'
16286             export_dynamic_flag_spec_CXX='$wl-E'
16287             whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
16288           fi
16289           output_verbose_link_cmd=func_echo_all
16290         else
16291           ld_shlibs_CXX=no
16292         fi
16293         ;;
16294
16295       osf3* | osf4* | osf5*)
16296         case $cc_basename in
16297           KCC*)
16298             # Kuck and Associates, Inc. (KAI) C++ Compiler
16299
16300             # KCC will only create a shared library if the output file
16301             # ends with ".so" (or ".sl" for HP-UX), so rename the library
16302             # to its proper name (with version) after linking.
16303             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'
16304
16305             hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
16306             hardcode_libdir_separator_CXX=:
16307
16308             # Archives containing C++ object files must be created using
16309             # the KAI C++ compiler.
16310             case $host in
16311               osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
16312               *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
16313             esac
16314             ;;
16315           RCC*)
16316             # Rational C++ 2.4.1
16317             # FIXME: insert proper C++ library support
16318             ld_shlibs_CXX=no
16319             ;;
16320           cxx*)
16321             case $host in
16322               osf3*)
16323                 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
16324                 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'
16325                 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
16326                 ;;
16327               *)
16328                 allow_undefined_flag_CXX=' -expect_unresolved \*'
16329                 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'
16330                 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
16331                   echo "-hidden">> $lib.exp~
16332                   $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~
16333                   $RM $lib.exp'
16334                 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
16335                 ;;
16336             esac
16337
16338             hardcode_libdir_separator_CXX=:
16339
16340             # Commands to make compiler produce verbose output that lists
16341             # what "hidden" libraries, object files and flags are used when
16342             # linking a shared library.
16343             #
16344             # There doesn't appear to be a way to prevent this compiler from
16345             # explicitly linking system object files so we need to strip them
16346             # from the output so that they don't get included in the library
16347             # dependencies.
16348             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"'
16349             ;;
16350           *)
16351             if test yes,no = "$GXX,$with_gnu_ld"; then
16352               allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
16353               case $host in
16354                 osf3*)
16355                   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'
16356                   ;;
16357                 *)
16358                   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'
16359                   ;;
16360               esac
16361
16362               hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
16363               hardcode_libdir_separator_CXX=:
16364
16365               # Commands to make compiler produce verbose output that lists
16366               # what "hidden" libraries, object files and flags are used when
16367               # linking a shared library.
16368               output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
16369
16370             else
16371               # FIXME: insert proper C++ library support
16372               ld_shlibs_CXX=no
16373             fi
16374             ;;
16375         esac
16376         ;;
16377
16378       psos*)
16379         # FIXME: insert proper C++ library support
16380         ld_shlibs_CXX=no
16381         ;;
16382
16383       sunos4*)
16384         case $cc_basename in
16385           CC*)
16386             # Sun C++ 4.x
16387             # FIXME: insert proper C++ library support
16388             ld_shlibs_CXX=no
16389             ;;
16390           lcc*)
16391             # Lucid
16392             # FIXME: insert proper C++ library support
16393             ld_shlibs_CXX=no
16394             ;;
16395           *)
16396             # FIXME: insert proper C++ library support
16397             ld_shlibs_CXX=no
16398             ;;
16399         esac
16400         ;;
16401
16402       solaris*)
16403         case $cc_basename in
16404           CC* | sunCC*)
16405             # Sun C++ 4.2, 5.x and Centerline C++
16406             archive_cmds_need_lc_CXX=yes
16407             no_undefined_flag_CXX=' -zdefs'
16408             archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16409             archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16410               $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'
16411
16412             hardcode_libdir_flag_spec_CXX='-R$libdir'
16413             hardcode_shlibpath_var_CXX=no
16414             case $host_os in
16415               solaris2.[0-5] | solaris2.[0-5].*) ;;
16416               *)
16417                 # The compiler driver will combine and reorder linker options,
16418                 # but understands '-z linker_flag'.
16419                 # Supported since Solaris 2.6 (maybe 2.5.1?)
16420                 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
16421                 ;;
16422             esac
16423             link_all_deplibs_CXX=yes
16424
16425             output_verbose_link_cmd='func_echo_all'
16426
16427             # Archives containing C++ object files must be created using
16428             # "CC -xar", where "CC" is the Sun C++ compiler.  This is
16429             # necessary to make sure instantiated templates are included
16430             # in the archive.
16431             old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
16432             ;;
16433           gcx*)
16434             # Green Hills C++ Compiler
16435             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
16436
16437             # The C++ compiler must be used to create the archive.
16438             old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
16439             ;;
16440           *)
16441             # GNU C++ compiler with Solaris linker
16442             if test yes,no = "$GXX,$with_gnu_ld"; then
16443               no_undefined_flag_CXX=' $wl-z ${wl}defs'
16444               if $CC --version | $GREP -v '^2\.7' > /dev/null; then
16445                 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
16446                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16447                   $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'
16448
16449                 # Commands to make compiler produce verbose output that lists
16450                 # what "hidden" libraries, object files and flags are used when
16451                 # linking a shared library.
16452                 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
16453               else
16454                 # g++ 2.7 appears to require '-G' NOT '-shared' on this
16455                 # platform.
16456                 archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
16457                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16458                   $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'
16459
16460                 # Commands to make compiler produce verbose output that lists
16461                 # what "hidden" libraries, object files and flags are used when
16462                 # linking a shared library.
16463                 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
16464               fi
16465
16466               hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir'
16467               case $host_os in
16468                 solaris2.[0-5] | solaris2.[0-5].*) ;;
16469                 *)
16470                   whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
16471                   ;;
16472               esac
16473             fi
16474             ;;
16475         esac
16476         ;;
16477
16478     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
16479       no_undefined_flag_CXX='$wl-z,text'
16480       archive_cmds_need_lc_CXX=no
16481       hardcode_shlibpath_var_CXX=no
16482       runpath_var='LD_RUN_PATH'
16483
16484       case $cc_basename in
16485         CC*)
16486           archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16487           archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16488           ;;
16489         *)
16490           archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16491           archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16492           ;;
16493       esac
16494       ;;
16495
16496       sysv5* | sco3.2v5* | sco5v6*)
16497         # Note: We CANNOT use -z defs as we might desire, because we do not
16498         # link with -lc, and that would cause any symbols used from libc to
16499         # always be unresolved, which means just about no library would
16500         # ever link correctly.  If we're not using GNU ld we use -z text
16501         # though, which does catch some bad symbols but isn't as heavy-handed
16502         # as -z defs.
16503         no_undefined_flag_CXX='$wl-z,text'
16504         allow_undefined_flag_CXX='$wl-z,nodefs'
16505         archive_cmds_need_lc_CXX=no
16506         hardcode_shlibpath_var_CXX=no
16507         hardcode_libdir_flag_spec_CXX='$wl-R,$libdir'
16508         hardcode_libdir_separator_CXX=':'
16509         link_all_deplibs_CXX=yes
16510         export_dynamic_flag_spec_CXX='$wl-Bexport'
16511         runpath_var='LD_RUN_PATH'
16512
16513         case $cc_basename in
16514           CC*)
16515             archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16516             archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16517             old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
16518               '"$old_archive_cmds_CXX"
16519             reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
16520               '"$reload_cmds_CXX"
16521             ;;
16522           *)
16523             archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16524             archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16525             ;;
16526         esac
16527       ;;
16528
16529       tandem*)
16530         case $cc_basename in
16531           NCC*)
16532             # NonStop-UX NCC 3.20
16533             # FIXME: insert proper C++ library support
16534             ld_shlibs_CXX=no
16535             ;;
16536           *)
16537             # FIXME: insert proper C++ library support
16538             ld_shlibs_CXX=no
16539             ;;
16540         esac
16541         ;;
16542
16543       vxworks*)
16544         # FIXME: insert proper C++ library support
16545         ld_shlibs_CXX=no
16546         ;;
16547
16548       *)
16549         # FIXME: insert proper C++ library support
16550         ld_shlibs_CXX=no
16551         ;;
16552     esac
16553
16554     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
16555 $as_echo "$ld_shlibs_CXX" >&6; }
16556     test no = "$ld_shlibs_CXX" && can_build_shared=no
16557
16558     GCC_CXX=$GXX
16559     LD_CXX=$LD
16560
16561     ## CAVEAT EMPTOR:
16562     ## There is no encapsulation within the following macros, do not change
16563     ## the running order or otherwise move them around unless you know exactly
16564     ## what you are doing...
16565     # Dependencies to place before and after the object being linked:
16566 predep_objects_CXX=
16567 postdep_objects_CXX=
16568 predeps_CXX=
16569 postdeps_CXX=
16570 compiler_lib_search_path_CXX=
16571
16572 cat > conftest.$ac_ext <<_LT_EOF
16573 class Foo
16574 {
16575 public:
16576   Foo (void) { a = 0; }
16577 private:
16578   int a;
16579 };
16580 _LT_EOF
16581
16582
16583 _lt_libdeps_save_CFLAGS=$CFLAGS
16584 case "$CC $CFLAGS " in #(
16585 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
16586 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
16587 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
16588 esac
16589
16590 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16591   (eval $ac_compile) 2>&5
16592   ac_status=$?
16593   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16594   test $ac_status = 0; }; then
16595   # Parse the compiler output and extract the necessary
16596   # objects, libraries and library flags.
16597
16598   # Sentinel used to keep track of whether or not we are before
16599   # the conftest object file.
16600   pre_test_object_deps_done=no
16601
16602   for p in `eval "$output_verbose_link_cmd"`; do
16603     case $prev$p in
16604
16605     -L* | -R* | -l*)
16606        # Some compilers place space between "-{L,R}" and the path.
16607        # Remove the space.
16608        if test x-L = "$p" ||
16609           test x-R = "$p"; then
16610          prev=$p
16611          continue
16612        fi
16613
16614        # Expand the sysroot to ease extracting the directories later.
16615        if test -z "$prev"; then
16616          case $p in
16617          -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
16618          -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
16619          -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
16620          esac
16621        fi
16622        case $p in
16623        =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
16624        esac
16625        if test no = "$pre_test_object_deps_done"; then
16626          case $prev in
16627          -L | -R)
16628            # Internal compiler library paths should come after those
16629            # provided the user.  The postdeps already come after the
16630            # user supplied libs so there is no need to process them.
16631            if test -z "$compiler_lib_search_path_CXX"; then
16632              compiler_lib_search_path_CXX=$prev$p
16633            else
16634              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p"
16635            fi
16636            ;;
16637          # The "-l" case would never come before the object being
16638          # linked, so don't bother handling this case.
16639          esac
16640        else
16641          if test -z "$postdeps_CXX"; then
16642            postdeps_CXX=$prev$p
16643          else
16644            postdeps_CXX="${postdeps_CXX} $prev$p"
16645          fi
16646        fi
16647        prev=
16648        ;;
16649
16650     *.lto.$objext) ;; # Ignore GCC LTO objects
16651     *.$objext)
16652        # This assumes that the test object file only shows up
16653        # once in the compiler output.
16654        if test "$p" = "conftest.$objext"; then
16655          pre_test_object_deps_done=yes
16656          continue
16657        fi
16658
16659        if test no = "$pre_test_object_deps_done"; then
16660          if test -z "$predep_objects_CXX"; then
16661            predep_objects_CXX=$p
16662          else
16663            predep_objects_CXX="$predep_objects_CXX $p"
16664          fi
16665        else
16666          if test -z "$postdep_objects_CXX"; then
16667            postdep_objects_CXX=$p
16668          else
16669            postdep_objects_CXX="$postdep_objects_CXX $p"
16670          fi
16671        fi
16672        ;;
16673
16674     *) ;; # Ignore the rest.
16675
16676     esac
16677   done
16678
16679   # Clean up.
16680   rm -f a.out a.exe
16681 else
16682   echo "libtool.m4: error: problem compiling CXX test program"
16683 fi
16684
16685 $RM -f confest.$objext
16686 CFLAGS=$_lt_libdeps_save_CFLAGS
16687
16688 # PORTME: override above test on systems where it is broken
16689 case $host_os in
16690 interix[3-9]*)
16691   # Interix 3.5 installs completely hosed .la files for C++, so rather than
16692   # hack all around it, let's just trust "g++" to DTRT.
16693   predep_objects_CXX=
16694   postdep_objects_CXX=
16695   postdeps_CXX=
16696   ;;
16697 esac
16698
16699
16700 case " $postdeps_CXX " in
16701 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
16702 esac
16703  compiler_lib_search_dirs_CXX=
16704 if test -n "${compiler_lib_search_path_CXX}"; then
16705  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'`
16706 fi
16707
16708
16709
16710
16711
16712
16713
16714
16715
16716
16717
16718
16719
16720
16721
16722
16723
16724
16725
16726
16727
16728
16729
16730
16731
16732
16733
16734
16735
16736
16737
16738     lt_prog_compiler_wl_CXX=
16739 lt_prog_compiler_pic_CXX=
16740 lt_prog_compiler_static_CXX=
16741
16742
16743   # C++ specific cases for pic, static, wl, etc.
16744   if test yes = "$GXX"; then
16745     lt_prog_compiler_wl_CXX='-Wl,'
16746     lt_prog_compiler_static_CXX='-static'
16747
16748     case $host_os in
16749     aix*)
16750       # All AIX code is PIC.
16751       if test ia64 = "$host_cpu"; then
16752         # AIX 5 now supports IA64 processor
16753         lt_prog_compiler_static_CXX='-Bstatic'
16754       fi
16755       lt_prog_compiler_pic_CXX='-fPIC'
16756       ;;
16757
16758     amigaos*)
16759       case $host_cpu in
16760       powerpc)
16761             # see comment about AmigaOS4 .so support
16762             lt_prog_compiler_pic_CXX='-fPIC'
16763         ;;
16764       m68k)
16765             # FIXME: we need at least 68020 code to build shared libraries, but
16766             # adding the '-m68020' flag to GCC prevents building anything better,
16767             # like '-m68040'.
16768             lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
16769         ;;
16770       esac
16771       ;;
16772
16773     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16774       # PIC is the default for these OSes.
16775       ;;
16776     mingw* | cygwin* | os2* | pw32* | cegcc*)
16777       # This hack is so that the source file can tell whether it is being
16778       # built for inclusion in a dll (and should export symbols for example).
16779       # Although the cygwin gcc ignores -fPIC, still need this for old-style
16780       # (--disable-auto-import) libraries
16781       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
16782       case $host_os in
16783       os2*)
16784         lt_prog_compiler_static_CXX='$wl-static'
16785         ;;
16786       esac
16787       ;;
16788     darwin* | rhapsody*)
16789       # PIC is the default on this platform
16790       # Common symbols not allowed in MH_DYLIB files
16791       lt_prog_compiler_pic_CXX='-fno-common'
16792       ;;
16793     *djgpp*)
16794       # DJGPP does not support shared libraries at all
16795       lt_prog_compiler_pic_CXX=
16796       ;;
16797     haiku*)
16798       # PIC is the default for Haiku.
16799       # The "-static" flag exists, but is broken.
16800       lt_prog_compiler_static_CXX=
16801       ;;
16802     interix[3-9]*)
16803       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16804       # Instead, we relocate shared libraries at runtime.
16805       ;;
16806     sysv4*MP*)
16807       if test -d /usr/nec; then
16808         lt_prog_compiler_pic_CXX=-Kconform_pic
16809       fi
16810       ;;
16811     hpux*)
16812       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
16813       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
16814       # sets the default TLS model and affects inlining.
16815       case $host_cpu in
16816       hppa*64*)
16817         ;;
16818       *)
16819         lt_prog_compiler_pic_CXX='-fPIC'
16820         ;;
16821       esac
16822       ;;
16823     *qnx* | *nto*)
16824       # QNX uses GNU C++, but need to define -shared option too, otherwise
16825       # it will coredump.
16826       lt_prog_compiler_pic_CXX='-fPIC -shared'
16827       ;;
16828     *)
16829       lt_prog_compiler_pic_CXX='-fPIC'
16830       ;;
16831     esac
16832   else
16833     case $host_os in
16834       aix[4-9]*)
16835         # All AIX code is PIC.
16836         if test ia64 = "$host_cpu"; then
16837           # AIX 5 now supports IA64 processor
16838           lt_prog_compiler_static_CXX='-Bstatic'
16839         else
16840           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
16841         fi
16842         ;;
16843       chorus*)
16844         case $cc_basename in
16845         cxch68*)
16846           # Green Hills C++ Compiler
16847           # _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"
16848           ;;
16849         esac
16850         ;;
16851       mingw* | cygwin* | os2* | pw32* | cegcc*)
16852         # This hack is so that the source file can tell whether it is being
16853         # built for inclusion in a dll (and should export symbols for example).
16854         lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
16855         ;;
16856       dgux*)
16857         case $cc_basename in
16858           ec++*)
16859             lt_prog_compiler_pic_CXX='-KPIC'
16860             ;;
16861           ghcx*)
16862             # Green Hills C++ Compiler
16863             lt_prog_compiler_pic_CXX='-pic'
16864             ;;
16865           *)
16866             ;;
16867         esac
16868         ;;
16869       freebsd* | dragonfly*)
16870         # FreeBSD uses GNU C++
16871         ;;
16872       hpux9* | hpux10* | hpux11*)
16873         case $cc_basename in
16874           CC*)
16875             lt_prog_compiler_wl_CXX='-Wl,'
16876             lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
16877             if test ia64 != "$host_cpu"; then
16878               lt_prog_compiler_pic_CXX='+Z'
16879             fi
16880             ;;
16881           aCC*)
16882             lt_prog_compiler_wl_CXX='-Wl,'
16883             lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
16884             case $host_cpu in
16885             hppa*64*|ia64*)
16886               # +Z the default
16887               ;;
16888             *)
16889               lt_prog_compiler_pic_CXX='+Z'
16890               ;;
16891             esac
16892             ;;
16893           *)
16894             ;;
16895         esac
16896         ;;
16897       interix*)
16898         # This is c89, which is MS Visual C++ (no shared libs)
16899         # Anyone wants to do a port?
16900         ;;
16901       irix5* | irix6* | nonstopux*)
16902         case $cc_basename in
16903           CC*)
16904             lt_prog_compiler_wl_CXX='-Wl,'
16905             lt_prog_compiler_static_CXX='-non_shared'
16906             # CC pic flag -KPIC is the default.
16907             ;;
16908           *)
16909             ;;
16910         esac
16911         ;;
16912       linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
16913         case $cc_basename in
16914           KCC*)
16915             # KAI C++ Compiler
16916             lt_prog_compiler_wl_CXX='--backend -Wl,'
16917             lt_prog_compiler_pic_CXX='-fPIC'
16918             ;;
16919           ecpc* )
16920             # old Intel C++ for x86_64, which still supported -KPIC.
16921             lt_prog_compiler_wl_CXX='-Wl,'
16922             lt_prog_compiler_pic_CXX='-KPIC'
16923             lt_prog_compiler_static_CXX='-static'
16924             ;;
16925           icpc* )
16926             # Intel C++, used to be incompatible with GCC.
16927             # ICC 10 doesn't accept -KPIC any more.
16928             lt_prog_compiler_wl_CXX='-Wl,'
16929             lt_prog_compiler_pic_CXX='-fPIC'
16930             lt_prog_compiler_static_CXX='-static'
16931             ;;
16932           pgCC* | pgcpp*)
16933             # Portland Group C++ compiler
16934             lt_prog_compiler_wl_CXX='-Wl,'
16935             lt_prog_compiler_pic_CXX='-fpic'
16936             lt_prog_compiler_static_CXX='-Bstatic'
16937             ;;
16938           cxx*)
16939             # Compaq C++
16940             # Make sure the PIC flag is empty.  It appears that all Alpha
16941             # Linux and Compaq Tru64 Unix objects are PIC.
16942             lt_prog_compiler_pic_CXX=
16943             lt_prog_compiler_static_CXX='-non_shared'
16944             ;;
16945           xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
16946             # IBM XL 8.0, 9.0 on PPC and BlueGene
16947             lt_prog_compiler_wl_CXX='-Wl,'
16948             lt_prog_compiler_pic_CXX='-qpic'
16949             lt_prog_compiler_static_CXX='-qstaticlink'
16950             ;;
16951           *)
16952             case `$CC -V 2>&1 | sed 5q` in
16953             *Sun\ C*)
16954               # Sun C++ 5.9
16955               lt_prog_compiler_pic_CXX='-KPIC'
16956               lt_prog_compiler_static_CXX='-Bstatic'
16957               lt_prog_compiler_wl_CXX='-Qoption ld '
16958               ;;
16959             esac
16960             ;;
16961         esac
16962         ;;
16963       lynxos*)
16964         ;;
16965       m88k*)
16966         ;;
16967       mvs*)
16968         case $cc_basename in
16969           cxx*)
16970             lt_prog_compiler_pic_CXX='-W c,exportall'
16971             ;;
16972           *)
16973             ;;
16974         esac
16975         ;;
16976       netbsd*)
16977         ;;
16978       *qnx* | *nto*)
16979         # QNX uses GNU C++, but need to define -shared option too, otherwise
16980         # it will coredump.
16981         lt_prog_compiler_pic_CXX='-fPIC -shared'
16982         ;;
16983       osf3* | osf4* | osf5*)
16984         case $cc_basename in
16985           KCC*)
16986             lt_prog_compiler_wl_CXX='--backend -Wl,'
16987             ;;
16988           RCC*)
16989             # Rational C++ 2.4.1
16990             lt_prog_compiler_pic_CXX='-pic'
16991             ;;
16992           cxx*)
16993             # Digital/Compaq C++
16994             lt_prog_compiler_wl_CXX='-Wl,'
16995             # Make sure the PIC flag is empty.  It appears that all Alpha
16996             # Linux and Compaq Tru64 Unix objects are PIC.
16997             lt_prog_compiler_pic_CXX=
16998             lt_prog_compiler_static_CXX='-non_shared'
16999             ;;
17000           *)
17001             ;;
17002         esac
17003         ;;
17004       psos*)
17005         ;;
17006       solaris*)
17007         case $cc_basename in
17008           CC* | sunCC*)
17009             # Sun C++ 4.2, 5.x and Centerline C++
17010             lt_prog_compiler_pic_CXX='-KPIC'
17011             lt_prog_compiler_static_CXX='-Bstatic'
17012             lt_prog_compiler_wl_CXX='-Qoption ld '
17013             ;;
17014           gcx*)
17015             # Green Hills C++ Compiler
17016             lt_prog_compiler_pic_CXX='-PIC'
17017             ;;
17018           *)
17019             ;;
17020         esac
17021         ;;
17022       sunos4*)
17023         case $cc_basename in
17024           CC*)
17025             # Sun C++ 4.x
17026             lt_prog_compiler_pic_CXX='-pic'
17027             lt_prog_compiler_static_CXX='-Bstatic'
17028             ;;
17029           lcc*)
17030             # Lucid
17031             lt_prog_compiler_pic_CXX='-pic'
17032             ;;
17033           *)
17034             ;;
17035         esac
17036         ;;
17037       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17038         case $cc_basename in
17039           CC*)
17040             lt_prog_compiler_wl_CXX='-Wl,'
17041             lt_prog_compiler_pic_CXX='-KPIC'
17042             lt_prog_compiler_static_CXX='-Bstatic'
17043             ;;
17044         esac
17045         ;;
17046       tandem*)
17047         case $cc_basename in
17048           NCC*)
17049             # NonStop-UX NCC 3.20
17050             lt_prog_compiler_pic_CXX='-KPIC'
17051             ;;
17052           *)
17053             ;;
17054         esac
17055         ;;
17056       vxworks*)
17057         ;;
17058       *)
17059         lt_prog_compiler_can_build_shared_CXX=no
17060         ;;
17061     esac
17062   fi
17063
17064 case $host_os in
17065   # For platforms that do not support PIC, -DPIC is meaningless:
17066   *djgpp*)
17067     lt_prog_compiler_pic_CXX=
17068     ;;
17069   *)
17070     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
17071     ;;
17072 esac
17073
17074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
17075 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
17076 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
17077   $as_echo_n "(cached) " >&6
17078 else
17079   lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
17080 fi
17081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
17082 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
17083 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
17084
17085 #
17086 # Check to make sure the PIC flag actually works.
17087 #
17088 if test -n "$lt_prog_compiler_pic_CXX"; then
17089   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
17090 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
17091 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
17092   $as_echo_n "(cached) " >&6
17093 else
17094   lt_cv_prog_compiler_pic_works_CXX=no
17095    ac_outfile=conftest.$ac_objext
17096    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17097    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"  ## exclude from sc_useless_quotes_in_assignment
17098    # Insert the option either (1) after the last *FLAGS variable, or
17099    # (2) before a word containing "conftest.", or (3) at the end.
17100    # Note that $ac_compile itself does not contain backslashes and begins
17101    # with a dollar sign (not a hyphen), so the echo should work correctly.
17102    # The option is referenced via a variable to avoid confusing sed.
17103    lt_compile=`echo "$ac_compile" | $SED \
17104    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17105    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17106    -e 's:$: $lt_compiler_flag:'`
17107    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
17108    (eval "$lt_compile" 2>conftest.err)
17109    ac_status=$?
17110    cat conftest.err >&5
17111    echo "$as_me:$LINENO: \$? = $ac_status" >&5
17112    if (exit $ac_status) && test -s "$ac_outfile"; then
17113      # The compiler can only warn and ignore the option if not recognized
17114      # So say no if there are warnings other than the usual output.
17115      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
17116      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17117      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17118        lt_cv_prog_compiler_pic_works_CXX=yes
17119      fi
17120    fi
17121    $RM conftest*
17122
17123 fi
17124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
17125 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
17126
17127 if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
17128     case $lt_prog_compiler_pic_CXX in
17129      "" | " "*) ;;
17130      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
17131      esac
17132 else
17133     lt_prog_compiler_pic_CXX=
17134      lt_prog_compiler_can_build_shared_CXX=no
17135 fi
17136
17137 fi
17138
17139
17140
17141
17142
17143 #
17144 # Check to make sure the static flag actually works.
17145 #
17146 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
17147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17148 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
17149 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
17150   $as_echo_n "(cached) " >&6
17151 else
17152   lt_cv_prog_compiler_static_works_CXX=no
17153    save_LDFLAGS=$LDFLAGS
17154    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17155    echo "$lt_simple_link_test_code" > conftest.$ac_ext
17156    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17157      # The linker can only warn and ignore the option if not recognized
17158      # So say no if there are warnings
17159      if test -s conftest.err; then
17160        # Append any errors to the config.log.
17161        cat conftest.err 1>&5
17162        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
17163        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17164        if diff conftest.exp conftest.er2 >/dev/null; then
17165          lt_cv_prog_compiler_static_works_CXX=yes
17166        fi
17167      else
17168        lt_cv_prog_compiler_static_works_CXX=yes
17169      fi
17170    fi
17171    $RM -r conftest*
17172    LDFLAGS=$save_LDFLAGS
17173
17174 fi
17175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
17176 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
17177
17178 if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
17179     :
17180 else
17181     lt_prog_compiler_static_CXX=
17182 fi
17183
17184
17185
17186
17187     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
17188 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
17189 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
17190   $as_echo_n "(cached) " >&6
17191 else
17192   lt_cv_prog_compiler_c_o_CXX=no
17193    $RM -r conftest 2>/dev/null
17194    mkdir conftest
17195    cd conftest
17196    mkdir out
17197    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17198
17199    lt_compiler_flag="-o out/conftest2.$ac_objext"
17200    # Insert the option either (1) after the last *FLAGS variable, or
17201    # (2) before a word containing "conftest.", or (3) at the end.
17202    # Note that $ac_compile itself does not contain backslashes and begins
17203    # with a dollar sign (not a hyphen), so the echo should work correctly.
17204    lt_compile=`echo "$ac_compile" | $SED \
17205    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17206    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17207    -e 's:$: $lt_compiler_flag:'`
17208    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
17209    (eval "$lt_compile" 2>out/conftest.err)
17210    ac_status=$?
17211    cat out/conftest.err >&5
17212    echo "$as_me:$LINENO: \$? = $ac_status" >&5
17213    if (exit $ac_status) && test -s out/conftest2.$ac_objext
17214    then
17215      # The compiler can only warn and ignore the option if not recognized
17216      # So say no if there are warnings
17217      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
17218      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17219      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17220        lt_cv_prog_compiler_c_o_CXX=yes
17221      fi
17222    fi
17223    chmod u+w . 2>&5
17224    $RM conftest*
17225    # SGI C++ compiler will create directory out/ii_files/ for
17226    # template instantiation
17227    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
17228    $RM out/* && rmdir out
17229    cd ..
17230    $RM -r conftest
17231    $RM conftest*
17232
17233 fi
17234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
17235 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
17236
17237
17238
17239     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
17240 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
17241 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
17242   $as_echo_n "(cached) " >&6
17243 else
17244   lt_cv_prog_compiler_c_o_CXX=no
17245    $RM -r conftest 2>/dev/null
17246    mkdir conftest
17247    cd conftest
17248    mkdir out
17249    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17250
17251    lt_compiler_flag="-o out/conftest2.$ac_objext"
17252    # Insert the option either (1) after the last *FLAGS variable, or
17253    # (2) before a word containing "conftest.", or (3) at the end.
17254    # Note that $ac_compile itself does not contain backslashes and begins
17255    # with a dollar sign (not a hyphen), so the echo should work correctly.
17256    lt_compile=`echo "$ac_compile" | $SED \
17257    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17258    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17259    -e 's:$: $lt_compiler_flag:'`
17260    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
17261    (eval "$lt_compile" 2>out/conftest.err)
17262    ac_status=$?
17263    cat out/conftest.err >&5
17264    echo "$as_me:$LINENO: \$? = $ac_status" >&5
17265    if (exit $ac_status) && test -s out/conftest2.$ac_objext
17266    then
17267      # The compiler can only warn and ignore the option if not recognized
17268      # So say no if there are warnings
17269      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
17270      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17271      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17272        lt_cv_prog_compiler_c_o_CXX=yes
17273      fi
17274    fi
17275    chmod u+w . 2>&5
17276    $RM conftest*
17277    # SGI C++ compiler will create directory out/ii_files/ for
17278    # template instantiation
17279    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
17280    $RM out/* && rmdir out
17281    cd ..
17282    $RM -r conftest
17283    $RM conftest*
17284
17285 fi
17286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
17287 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
17288
17289
17290
17291
17292 hard_links=nottested
17293 if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then
17294   # do not overwrite the value of need_locks provided by the user
17295   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
17296 $as_echo_n "checking if we can lock with hard links... " >&6; }
17297   hard_links=yes
17298   $RM conftest*
17299   ln conftest.a conftest.b 2>/dev/null && hard_links=no
17300   touch conftest.a
17301   ln conftest.a conftest.b 2>&5 || hard_links=no
17302   ln conftest.a conftest.b 2>/dev/null && hard_links=no
17303   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
17304 $as_echo "$hard_links" >&6; }
17305   if test no = "$hard_links"; then
17306     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
17307 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
17308     need_locks=warn
17309   fi
17310 else
17311   need_locks=no
17312 fi
17313
17314
17315
17316     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17317 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
17318
17319   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17320   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17321   case $host_os in
17322   aix[4-9]*)
17323     # If we're using GNU nm, then we don't want the "-C" option.
17324     # -C means demangle to GNU nm, but means don't demangle to AIX nm.
17325     # Without the "-l" option, or with the "-B" option, AIX nm treats
17326     # weak defined symbols like other global defined symbols, whereas
17327     # GNU nm marks them as "W".
17328     # While the 'weak' keyword is ignored in the Export File, we need
17329     # it in the Import File for the 'aix-soname' feature, so we have
17330     # to replace the "-B" option with "-P" for AIX nm.
17331     if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
17332       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'
17333     else
17334       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'
17335     fi
17336     ;;
17337   pw32*)
17338     export_symbols_cmds_CXX=$ltdll_cmds
17339     ;;
17340   cygwin* | mingw* | cegcc*)
17341     case $cc_basename in
17342     cl*)
17343       exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
17344       ;;
17345     *)
17346       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'
17347       exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
17348       ;;
17349     esac
17350     ;;
17351   *)
17352     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17353     ;;
17354   esac
17355
17356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
17357 $as_echo "$ld_shlibs_CXX" >&6; }
17358 test no = "$ld_shlibs_CXX" && can_build_shared=no
17359
17360 with_gnu_ld_CXX=$with_gnu_ld
17361
17362
17363
17364
17365
17366
17367 #
17368 # Do we need to explicitly link libc?
17369 #
17370 case "x$archive_cmds_need_lc_CXX" in
17371 x|xyes)
17372   # Assume -lc should be added
17373   archive_cmds_need_lc_CXX=yes
17374
17375   if test yes,yes = "$GCC,$enable_shared"; then
17376     case $archive_cmds_CXX in
17377     *'~'*)
17378       # FIXME: we may have to deal with multi-command sequences.
17379       ;;
17380     '$CC '*)
17381       # Test whether the compiler implicitly links with -lc since on some
17382       # systems, -lgcc has to come before -lc. If gcc already passes -lc
17383       # to ld, don't add -lc before -lgcc.
17384       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
17385 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
17386 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
17387   $as_echo_n "(cached) " >&6
17388 else
17389   $RM conftest*
17390         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17391
17392         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17393   (eval $ac_compile) 2>&5
17394   ac_status=$?
17395   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17396   test $ac_status = 0; } 2>conftest.err; then
17397           soname=conftest
17398           lib=conftest
17399           libobjs=conftest.$ac_objext
17400           deplibs=
17401           wl=$lt_prog_compiler_wl_CXX
17402           pic_flag=$lt_prog_compiler_pic_CXX
17403           compiler_flags=-v
17404           linker_flags=-v
17405           verstring=
17406           output_objdir=.
17407           libname=conftest
17408           lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
17409           allow_undefined_flag_CXX=
17410           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
17411   (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
17412   ac_status=$?
17413   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17414   test $ac_status = 0; }
17415           then
17416             lt_cv_archive_cmds_need_lc_CXX=no
17417           else
17418             lt_cv_archive_cmds_need_lc_CXX=yes
17419           fi
17420           allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
17421         else
17422           cat conftest.err 1>&5
17423         fi
17424         $RM conftest*
17425
17426 fi
17427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
17428 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
17429       archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
17430       ;;
17431     esac
17432   fi
17433   ;;
17434 esac
17435
17436
17437
17438
17439
17440
17441
17442
17443
17444
17445
17446
17447
17448
17449
17450
17451
17452
17453
17454
17455
17456
17457
17458
17459
17460
17461
17462
17463
17464
17465
17466
17467
17468
17469
17470
17471
17472
17473
17474
17475
17476
17477
17478
17479
17480
17481
17482
17483
17484
17485
17486
17487
17488
17489
17490
17491
17492
17493
17494
17495
17496
17497     { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
17498 $as_echo_n "checking dynamic linker characteristics... " >&6; }
17499
17500 library_names_spec=
17501 libname_spec='lib$name'
17502 soname_spec=
17503 shrext_cmds=.so
17504 postinstall_cmds=
17505 postuninstall_cmds=
17506 finish_cmds=
17507 finish_eval=
17508 shlibpath_var=
17509 shlibpath_overrides_runpath=unknown
17510 version_type=none
17511 dynamic_linker="$host_os ld.so"
17512 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17513 need_lib_prefix=unknown
17514 hardcode_into_libs=no
17515
17516 # when you set need_version to no, make sure it does not cause -set_version
17517 # flags to be left without arguments
17518 need_version=unknown
17519
17520
17521
17522 case $host_os in
17523 aix3*)
17524   version_type=linux # correct to gnu/linux during the next big refactor
17525   library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
17526   shlibpath_var=LIBPATH
17527
17528   # AIX 3 has no versioning support, so we append a major version to the name.
17529   soname_spec='$libname$release$shared_ext$major'
17530   ;;
17531
17532 aix[4-9]*)
17533   version_type=linux # correct to gnu/linux during the next big refactor
17534   need_lib_prefix=no
17535   need_version=no
17536   hardcode_into_libs=yes
17537   if test ia64 = "$host_cpu"; then
17538     # AIX 5 supports IA64
17539     library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
17540     shlibpath_var=LD_LIBRARY_PATH
17541   else
17542     # With GCC up to 2.95.x, collect2 would create an import file
17543     # for dependence libraries.  The import file would start with
17544     # the line '#! .'.  This would cause the generated library to
17545     # depend on '.', always an invalid library.  This was fixed in
17546     # development snapshots of GCC prior to 3.0.
17547     case $host_os in
17548       aix4 | aix4.[01] | aix4.[01].*)
17549       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17550            echo ' yes '
17551            echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
17552         :
17553       else
17554         can_build_shared=no
17555       fi
17556       ;;
17557     esac
17558     # Using Import Files as archive members, it is possible to support
17559     # filename-based versioning of shared library archives on AIX. While
17560     # this would work for both with and without runtime linking, it will
17561     # prevent static linking of such archives. So we do filename-based
17562     # shared library versioning with .so extension only, which is used
17563     # when both runtime linking and shared linking is enabled.
17564     # Unfortunately, runtime linking may impact performance, so we do
17565     # not want this to be the default eventually. Also, we use the
17566     # versioned .so libs for executables only if there is the -brtl
17567     # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
17568     # To allow for filename-based versioning support, we need to create
17569     # libNAME.so.V as an archive file, containing:
17570     # *) an Import File, referring to the versioned filename of the
17571     #    archive as well as the shared archive member, telling the
17572     #    bitwidth (32 or 64) of that shared object, and providing the
17573     #    list of exported symbols of that shared object, eventually
17574     #    decorated with the 'weak' keyword
17575     # *) the shared object with the F_LOADONLY flag set, to really avoid
17576     #    it being seen by the linker.
17577     # At run time we better use the real file rather than another symlink,
17578     # but for link time we create the symlink libNAME.so -> libNAME.so.V
17579
17580     case $with_aix_soname,$aix_use_runtimelinking in
17581     # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
17582     # soname into executable. Probably we can add versioning support to
17583     # collect2, so additional links can be useful in future.
17584     aix,yes) # traditional libtool
17585       dynamic_linker='AIX unversionable lib.so'
17586       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17587       # instead of lib<name>.a to let people know that these are not
17588       # typical AIX shared libraries.
17589       library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17590       ;;
17591     aix,no) # traditional AIX only
17592       dynamic_linker='AIX lib.a(lib.so.V)'
17593       # We preserve .a as extension for shared libraries through AIX4.2
17594       # and later when we are not doing run time linking.
17595       library_names_spec='$libname$release.a $libname.a'
17596       soname_spec='$libname$release$shared_ext$major'
17597       ;;
17598     svr4,*) # full svr4 only
17599       dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
17600       library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
17601       # We do not specify a path in Import Files, so LIBPATH fires.
17602       shlibpath_overrides_runpath=yes
17603       ;;
17604     *,yes) # both, prefer svr4
17605       dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
17606       library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
17607       # unpreferred sharedlib libNAME.a needs extra handling
17608       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"'
17609       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"'
17610       # We do not specify a path in Import Files, so LIBPATH fires.
17611       shlibpath_overrides_runpath=yes
17612       ;;
17613     *,no) # both, prefer aix
17614       dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
17615       library_names_spec='$libname$release.a $libname.a'
17616       soname_spec='$libname$release$shared_ext$major'
17617       # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
17618       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)'
17619       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"'
17620       ;;
17621     esac
17622     shlibpath_var=LIBPATH
17623   fi
17624   ;;
17625
17626 amigaos*)
17627   case $host_cpu in
17628   powerpc)
17629     # Since July 2007 AmigaOS4 officially supports .so libraries.
17630     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
17631     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17632     ;;
17633   m68k)
17634     library_names_spec='$libname.ixlibrary $libname.a'
17635     # Create ${libname}_ixlibrary.a entries in /sys/libs.
17636     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'
17637     ;;
17638   esac
17639   ;;
17640
17641 beos*)
17642   library_names_spec='$libname$shared_ext'
17643   dynamic_linker="$host_os ld.so"
17644   shlibpath_var=LIBRARY_PATH
17645   ;;
17646
17647 bsdi[45]*)
17648   version_type=linux # correct to gnu/linux during the next big refactor
17649   need_version=no
17650   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17651   soname_spec='$libname$release$shared_ext$major'
17652   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17653   shlibpath_var=LD_LIBRARY_PATH
17654   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17655   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17656   # the default ld.so.conf also contains /usr/contrib/lib and
17657   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17658   # libtool to hard-code these into programs
17659   ;;
17660
17661 cygwin* | mingw* | pw32* | cegcc*)
17662   version_type=windows
17663   shrext_cmds=.dll
17664   need_version=no
17665   need_lib_prefix=no
17666
17667   case $GCC,$cc_basename in
17668   yes,*)
17669     # gcc
17670     library_names_spec='$libname.dll.a'
17671     # DLL is installed to $(libdir)/../bin by postinstall_cmds
17672     postinstall_cmds='base_file=`basename \$file`~
17673       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
17674       dldir=$destdir/`dirname \$dlpath`~
17675       test -d \$dldir || mkdir -p \$dldir~
17676       $install_prog $dir/$dlname \$dldir/$dlname~
17677       chmod a+x \$dldir/$dlname~
17678       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17679         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17680       fi'
17681     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17682       dlpath=$dir/\$dldll~
17683        $RM \$dlpath'
17684     shlibpath_overrides_runpath=yes
17685
17686     case $host_os in
17687     cygwin*)
17688       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17689       soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17690
17691       ;;
17692     mingw* | cegcc*)
17693       # MinGW DLLs use traditional 'lib' prefix
17694       soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17695       ;;
17696     pw32*)
17697       # pw32 DLLs use 'pw' prefix rather than 'lib'
17698       library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17699       ;;
17700     esac
17701     dynamic_linker='Win32 ld.exe'
17702     ;;
17703
17704   *,cl*)
17705     # Native MSVC
17706     libname_spec='$name'
17707     soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17708     library_names_spec='$libname.dll.lib'
17709
17710     case $build_os in
17711     mingw*)
17712       sys_lib_search_path_spec=
17713       lt_save_ifs=$IFS
17714       IFS=';'
17715       for lt_path in $LIB
17716       do
17717         IFS=$lt_save_ifs
17718         # Let DOS variable expansion print the short 8.3 style file name.
17719         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
17720         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
17721       done
17722       IFS=$lt_save_ifs
17723       # Convert to MSYS style.
17724       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
17725       ;;
17726     cygwin*)
17727       # Convert to unix form, then to dos form, then back to unix form
17728       # but this time dos style (no spaces!) so that the unix form looks
17729       # like /cygdrive/c/PROGRA~1:/cygdr...
17730       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
17731       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
17732       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17733       ;;
17734     *)
17735       sys_lib_search_path_spec=$LIB
17736       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
17737         # It is most probably a Windows format PATH.
17738         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17739       else
17740         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17741       fi
17742       # FIXME: find the short name or the path components, as spaces are
17743       # common. (e.g. "Program Files" -> "PROGRA~1")
17744       ;;
17745     esac
17746
17747     # DLL is installed to $(libdir)/../bin by postinstall_cmds
17748     postinstall_cmds='base_file=`basename \$file`~
17749       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
17750       dldir=$destdir/`dirname \$dlpath`~
17751       test -d \$dldir || mkdir -p \$dldir~
17752       $install_prog $dir/$dlname \$dldir/$dlname'
17753     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17754       dlpath=$dir/\$dldll~
17755        $RM \$dlpath'
17756     shlibpath_overrides_runpath=yes
17757     dynamic_linker='Win32 link.exe'
17758     ;;
17759
17760   *)
17761     # Assume MSVC wrapper
17762     library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
17763     dynamic_linker='Win32 ld.exe'
17764     ;;
17765   esac
17766   # FIXME: first we should search . and the directory the executable is in
17767   shlibpath_var=PATH
17768   ;;
17769
17770 darwin* | rhapsody*)
17771   dynamic_linker="$host_os dyld"
17772   version_type=darwin
17773   need_lib_prefix=no
17774   need_version=no
17775   library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
17776   soname_spec='$libname$release$major$shared_ext'
17777   shlibpath_overrides_runpath=yes
17778   shlibpath_var=DYLD_LIBRARY_PATH
17779   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17780
17781   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17782   ;;
17783
17784 dgux*)
17785   version_type=linux # correct to gnu/linux during the next big refactor
17786   need_lib_prefix=no
17787   need_version=no
17788   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17789   soname_spec='$libname$release$shared_ext$major'
17790   shlibpath_var=LD_LIBRARY_PATH
17791   ;;
17792
17793 freebsd* | dragonfly*)
17794   # DragonFly does not have aout.  When/if they implement a new
17795   # versioning mechanism, adjust this.
17796   if test -x /usr/bin/objformat; then
17797     objformat=`/usr/bin/objformat`
17798   else
17799     case $host_os in
17800     freebsd[23].*) objformat=aout ;;
17801     *) objformat=elf ;;
17802     esac
17803   fi
17804   version_type=freebsd-$objformat
17805   case $version_type in
17806     freebsd-elf*)
17807       library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17808       soname_spec='$libname$release$shared_ext$major'
17809       need_version=no
17810       need_lib_prefix=no
17811       ;;
17812     freebsd-*)
17813       library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
17814       need_version=yes
17815       ;;
17816   esac
17817   shlibpath_var=LD_LIBRARY_PATH
17818   case $host_os in
17819   freebsd2.*)
17820     shlibpath_overrides_runpath=yes
17821     ;;
17822   freebsd3.[01]* | freebsdelf3.[01]*)
17823     shlibpath_overrides_runpath=yes
17824     hardcode_into_libs=yes
17825     ;;
17826   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17827   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17828     shlibpath_overrides_runpath=no
17829     hardcode_into_libs=yes
17830     ;;
17831   *) # from 4.6 on, and DragonFly
17832     shlibpath_overrides_runpath=yes
17833     hardcode_into_libs=yes
17834     ;;
17835   esac
17836   ;;
17837
17838 haiku*)
17839   version_type=linux # correct to gnu/linux during the next big refactor
17840   need_lib_prefix=no
17841   need_version=no
17842   dynamic_linker="$host_os runtime_loader"
17843   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17844   soname_spec='$libname$release$shared_ext$major'
17845   shlibpath_var=LIBRARY_PATH
17846   shlibpath_overrides_runpath=no
17847   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
17848   hardcode_into_libs=yes
17849   ;;
17850
17851 hpux9* | hpux10* | hpux11*)
17852   # Give a soname corresponding to the major version so that dld.sl refuses to
17853   # link against other versions.
17854   version_type=sunos
17855   need_lib_prefix=no
17856   need_version=no
17857   case $host_cpu in
17858   ia64*)
17859     shrext_cmds='.so'
17860     hardcode_into_libs=yes
17861     dynamic_linker="$host_os dld.so"
17862     shlibpath_var=LD_LIBRARY_PATH
17863     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17864     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17865     soname_spec='$libname$release$shared_ext$major'
17866     if test 32 = "$HPUX_IA64_MODE"; then
17867       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17868       sys_lib_dlsearch_path_spec=/usr/lib/hpux32
17869     else
17870       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17871       sys_lib_dlsearch_path_spec=/usr/lib/hpux64
17872     fi
17873     ;;
17874   hppa*64*)
17875     shrext_cmds='.sl'
17876     hardcode_into_libs=yes
17877     dynamic_linker="$host_os dld.sl"
17878     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17879     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17880     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17881     soname_spec='$libname$release$shared_ext$major'
17882     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17883     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17884     ;;
17885   *)
17886     shrext_cmds='.sl'
17887     dynamic_linker="$host_os dld.sl"
17888     shlibpath_var=SHLIB_PATH
17889     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17890     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17891     soname_spec='$libname$release$shared_ext$major'
17892     ;;
17893   esac
17894   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
17895   postinstall_cmds='chmod 555 $lib'
17896   # or fails outright, so override atomically:
17897   install_override_mode=555
17898   ;;
17899
17900 interix[3-9]*)
17901   version_type=linux # correct to gnu/linux during the next big refactor
17902   need_lib_prefix=no
17903   need_version=no
17904   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17905   soname_spec='$libname$release$shared_ext$major'
17906   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17907   shlibpath_var=LD_LIBRARY_PATH
17908   shlibpath_overrides_runpath=no
17909   hardcode_into_libs=yes
17910   ;;
17911
17912 irix5* | irix6* | nonstopux*)
17913   case $host_os in
17914     nonstopux*) version_type=nonstopux ;;
17915     *)
17916         if test yes = "$lt_cv_prog_gnu_ld"; then
17917                 version_type=linux # correct to gnu/linux during the next big refactor
17918         else
17919                 version_type=irix
17920         fi ;;
17921   esac
17922   need_lib_prefix=no
17923   need_version=no
17924   soname_spec='$libname$release$shared_ext$major'
17925   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
17926   case $host_os in
17927   irix5* | nonstopux*)
17928     libsuff= shlibsuff=
17929     ;;
17930   *)
17931     case $LD in # libtool.m4 will add one of these switches to LD
17932     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17933       libsuff= shlibsuff= libmagic=32-bit;;
17934     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17935       libsuff=32 shlibsuff=N32 libmagic=N32;;
17936     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17937       libsuff=64 shlibsuff=64 libmagic=64-bit;;
17938     *) libsuff= shlibsuff= libmagic=never-match;;
17939     esac
17940     ;;
17941   esac
17942   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17943   shlibpath_overrides_runpath=no
17944   sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
17945   sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
17946   hardcode_into_libs=yes
17947   ;;
17948
17949 # No shared lib support for Linux oldld, aout, or coff.
17950 linux*oldld* | linux*aout* | linux*coff*)
17951   dynamic_linker=no
17952   ;;
17953
17954 linux*android*)
17955   version_type=none # Android doesn't support versioned libraries.
17956   need_lib_prefix=no
17957   need_version=no
17958   library_names_spec='$libname$release$shared_ext'
17959   soname_spec='$libname$release$shared_ext'
17960   finish_cmds=
17961   shlibpath_var=LD_LIBRARY_PATH
17962   shlibpath_overrides_runpath=yes
17963
17964   # This implies no fast_install, which is unacceptable.
17965   # Some rework will be needed to allow for fast_install
17966   # before this can be enabled.
17967   hardcode_into_libs=yes
17968
17969   dynamic_linker='Android linker'
17970   # Don't embed -rpath directories since the linker doesn't support them.
17971   hardcode_libdir_flag_spec_CXX='-L$libdir'
17972   ;;
17973
17974 # This must be glibc/ELF.
17975 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
17976   version_type=linux # correct to gnu/linux during the next big refactor
17977   need_lib_prefix=no
17978   need_version=no
17979   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17980   soname_spec='$libname$release$shared_ext$major'
17981   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17982   shlibpath_var=LD_LIBRARY_PATH
17983   shlibpath_overrides_runpath=no
17984
17985   # Some binutils ld are patched to set DT_RUNPATH
17986   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
17987   $as_echo_n "(cached) " >&6
17988 else
17989   lt_cv_shlibpath_overrides_runpath=no
17990     save_LDFLAGS=$LDFLAGS
17991     save_libdir=$libdir
17992     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
17993          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
17994     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17995 /* end confdefs.h.  */
17996
17997 int
17998 main ()
17999 {
18000
18001   ;
18002   return 0;
18003 }
18004 _ACEOF
18005 if ac_fn_cxx_try_link "$LINENO"; then :
18006   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
18007   lt_cv_shlibpath_overrides_runpath=yes
18008 fi
18009 fi
18010 rm -f core conftest.err conftest.$ac_objext \
18011     conftest$ac_exeext conftest.$ac_ext
18012     LDFLAGS=$save_LDFLAGS
18013     libdir=$save_libdir
18014
18015 fi
18016
18017   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
18018
18019   # This implies no fast_install, which is unacceptable.
18020   # Some rework will be needed to allow for fast_install
18021   # before this can be enabled.
18022   hardcode_into_libs=yes
18023
18024   # Ideally, we could use ldconfig to report *all* directores which are
18025   # searched for libraries, however this is still not possible.  Aside from not
18026   # being certain /sbin/ldconfig is available, command
18027   # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
18028   # even though it is searched at run-time.  Try to do the best guess by
18029   # appending ld.so.conf contents (and includes) to the search path.
18030   if test -f /etc/ld.so.conf; then
18031     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' ' '`
18032     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18033   fi
18034
18035   # We used to test for /lib/ld.so.1 and disable shared libraries on
18036   # powerpc, because MkLinux only supported shared libraries with the
18037   # GNU dynamic linker.  Since this was broken with cross compilers,
18038   # most powerpc-linux boxes support dynamic linking these days and
18039   # people can always --disable-shared, the test was removed, and we
18040   # assume the GNU/Linux dynamic linker is in use.
18041   dynamic_linker='GNU/Linux ld.so'
18042   ;;
18043
18044 netbsd*)
18045   version_type=sunos
18046   need_lib_prefix=no
18047   need_version=no
18048   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
18049     library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
18050     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18051     dynamic_linker='NetBSD (a.out) ld.so'
18052   else
18053     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18054     soname_spec='$libname$release$shared_ext$major'
18055     dynamic_linker='NetBSD ld.elf_so'
18056   fi
18057   shlibpath_var=LD_LIBRARY_PATH
18058   shlibpath_overrides_runpath=yes
18059   hardcode_into_libs=yes
18060   ;;
18061
18062 newsos6)
18063   version_type=linux # correct to gnu/linux during the next big refactor
18064   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18065   shlibpath_var=LD_LIBRARY_PATH
18066   shlibpath_overrides_runpath=yes
18067   ;;
18068
18069 *nto* | *qnx*)
18070   version_type=qnx
18071   need_lib_prefix=no
18072   need_version=no
18073   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18074   soname_spec='$libname$release$shared_ext$major'
18075   shlibpath_var=LD_LIBRARY_PATH
18076   shlibpath_overrides_runpath=no
18077   hardcode_into_libs=yes
18078   dynamic_linker='ldqnx.so'
18079   ;;
18080
18081 openbsd* | bitrig*)
18082   version_type=sunos
18083   sys_lib_dlsearch_path_spec=/usr/lib
18084   need_lib_prefix=no
18085   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
18086     need_version=no
18087   else
18088     need_version=yes
18089   fi
18090   library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
18091   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18092   shlibpath_var=LD_LIBRARY_PATH
18093   shlibpath_overrides_runpath=yes
18094   ;;
18095
18096 os2*)
18097   libname_spec='$name'
18098   version_type=windows
18099   shrext_cmds=.dll
18100   need_version=no
18101   need_lib_prefix=no
18102   # OS/2 can only load a DLL with a base name of 8 characters or less.
18103   soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
18104     v=$($ECHO $release$versuffix | tr -d .-);
18105     n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
18106     $ECHO $n$v`$shared_ext'
18107   library_names_spec='${libname}_dll.$libext'
18108   dynamic_linker='OS/2 ld.exe'
18109   shlibpath_var=BEGINLIBPATH
18110   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
18111   sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18112   postinstall_cmds='base_file=`basename \$file`~
18113     dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
18114     dldir=$destdir/`dirname \$dlpath`~
18115     test -d \$dldir || mkdir -p \$dldir~
18116     $install_prog $dir/$dlname \$dldir/$dlname~
18117     chmod a+x \$dldir/$dlname~
18118     if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
18119       eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
18120     fi'
18121   postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
18122     dlpath=$dir/\$dldll~
18123     $RM \$dlpath'
18124   ;;
18125
18126 osf3* | osf4* | osf5*)
18127   version_type=osf
18128   need_lib_prefix=no
18129   need_version=no
18130   soname_spec='$libname$release$shared_ext$major'
18131   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18132   shlibpath_var=LD_LIBRARY_PATH
18133   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18134   sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18135   ;;
18136
18137 rdos*)
18138   dynamic_linker=no
18139   ;;
18140
18141 solaris*)
18142   version_type=linux # correct to gnu/linux during the next big refactor
18143   need_lib_prefix=no
18144   need_version=no
18145   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18146   soname_spec='$libname$release$shared_ext$major'
18147   shlibpath_var=LD_LIBRARY_PATH
18148   shlibpath_overrides_runpath=yes
18149   hardcode_into_libs=yes
18150   # ldd complains unless libraries are executable
18151   postinstall_cmds='chmod +x $lib'
18152   ;;
18153
18154 sunos4*)
18155   version_type=sunos
18156   library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
18157   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18158   shlibpath_var=LD_LIBRARY_PATH
18159   shlibpath_overrides_runpath=yes
18160   if test yes = "$with_gnu_ld"; then
18161     need_lib_prefix=no
18162   fi
18163   need_version=yes
18164   ;;
18165
18166 sysv4 | sysv4.3*)
18167   version_type=linux # correct to gnu/linux during the next big refactor
18168   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18169   soname_spec='$libname$release$shared_ext$major'
18170   shlibpath_var=LD_LIBRARY_PATH
18171   case $host_vendor in
18172     sni)
18173       shlibpath_overrides_runpath=no
18174       need_lib_prefix=no
18175       runpath_var=LD_RUN_PATH
18176       ;;
18177     siemens)
18178       need_lib_prefix=no
18179       ;;
18180     motorola)
18181       need_lib_prefix=no
18182       need_version=no
18183       shlibpath_overrides_runpath=no
18184       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18185       ;;
18186   esac
18187   ;;
18188
18189 sysv4*MP*)
18190   if test -d /usr/nec; then
18191     version_type=linux # correct to gnu/linux during the next big refactor
18192     library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
18193     soname_spec='$libname$shared_ext.$major'
18194     shlibpath_var=LD_LIBRARY_PATH
18195   fi
18196   ;;
18197
18198 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18199   version_type=sco
18200   need_lib_prefix=no
18201   need_version=no
18202   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
18203   soname_spec='$libname$release$shared_ext$major'
18204   shlibpath_var=LD_LIBRARY_PATH
18205   shlibpath_overrides_runpath=yes
18206   hardcode_into_libs=yes
18207   if test yes = "$with_gnu_ld"; then
18208     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18209   else
18210     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18211     case $host_os in
18212       sco3.2v5*)
18213         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18214         ;;
18215     esac
18216   fi
18217   sys_lib_dlsearch_path_spec='/usr/lib'
18218   ;;
18219
18220 tpf*)
18221   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
18222   version_type=linux # correct to gnu/linux during the next big refactor
18223   need_lib_prefix=no
18224   need_version=no
18225   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18226   shlibpath_var=LD_LIBRARY_PATH
18227   shlibpath_overrides_runpath=no
18228   hardcode_into_libs=yes
18229   ;;
18230
18231 uts4*)
18232   version_type=linux # correct to gnu/linux during the next big refactor
18233   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18234   soname_spec='$libname$release$shared_ext$major'
18235   shlibpath_var=LD_LIBRARY_PATH
18236   ;;
18237
18238 *)
18239   dynamic_linker=no
18240   ;;
18241 esac
18242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
18243 $as_echo "$dynamic_linker" >&6; }
18244 test no = "$dynamic_linker" && can_build_shared=no
18245
18246 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18247 if test yes = "$GCC"; then
18248   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18249 fi
18250
18251 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
18252   sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
18253 fi
18254
18255 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
18256   sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
18257 fi
18258
18259 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
18260 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
18261
18262 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
18263 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
18264
18265 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
18266 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
18267
18268
18269
18270
18271
18272
18273
18274
18275
18276
18277
18278
18279
18280
18281
18282
18283
18284
18285
18286
18287
18288
18289
18290
18291
18292
18293
18294
18295
18296
18297
18298
18299
18300
18301
18302
18303
18304
18305
18306
18307     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
18308 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
18309 hardcode_action_CXX=
18310 if test -n "$hardcode_libdir_flag_spec_CXX" ||
18311    test -n "$runpath_var_CXX" ||
18312    test yes = "$hardcode_automatic_CXX"; then
18313
18314   # We can hardcode non-existent directories.
18315   if test no != "$hardcode_direct_CXX" &&
18316      # If the only mechanism to avoid hardcoding is shlibpath_var, we
18317      # have to relink, otherwise we might link with an installed library
18318      # when we should be linking with a yet-to-be-installed one
18319      ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" &&
18320      test no != "$hardcode_minus_L_CXX"; then
18321     # Linking always hardcodes the temporary library directory.
18322     hardcode_action_CXX=relink
18323   else
18324     # We can link without hardcoding, and we can hardcode nonexisting dirs.
18325     hardcode_action_CXX=immediate
18326   fi
18327 else
18328   # We cannot hardcode anything, or else we can only hardcode existing
18329   # directories.
18330   hardcode_action_CXX=unsupported
18331 fi
18332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
18333 $as_echo "$hardcode_action_CXX" >&6; }
18334
18335 if test relink = "$hardcode_action_CXX" ||
18336    test yes = "$inherit_rpath_CXX"; then
18337   # Fast installation is not supported
18338   enable_fast_install=no
18339 elif test yes = "$shlibpath_overrides_runpath" ||
18340      test no = "$enable_shared"; then
18341   # Fast installation is not necessary
18342   enable_fast_install=needless
18343 fi
18344
18345
18346
18347
18348
18349
18350
18351   fi # test -n "$compiler"
18352
18353   CC=$lt_save_CC
18354   CFLAGS=$lt_save_CFLAGS
18355   LDCXX=$LD
18356   LD=$lt_save_LD
18357   GCC=$lt_save_GCC
18358   with_gnu_ld=$lt_save_with_gnu_ld
18359   lt_cv_path_LDCXX=$lt_cv_path_LD
18360   lt_cv_path_LD=$lt_save_path_LD
18361   lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
18362   lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
18363 fi # test yes != "$_lt_caught_CXX_error"
18364
18365 ac_ext=c
18366 ac_cpp='$CPP $CPPFLAGS'
18367 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18368 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18369 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18370
18371
18372
18373
18374
18375
18376
18377
18378
18379
18380
18381
18382
18383
18384
18385         ac_config_commands="$ac_config_commands libtool"
18386
18387
18388
18389
18390 # Only expand once:
18391
18392
18393 # Check whether --enable-experimental-libtool was given.
18394 if test "${enable_experimental_libtool+set}" = set; then :
18395   enableval=$enable_experimental_libtool; experimental_libtool=$enableval
18396 else
18397   experimental_libtool=no
18398 fi
18399
18400
18401 if test "$experimental_libtool" = "yes"; then
18402   echo "using APR's libtool"
18403   sh_libtool="`$apr_config --apr-libtool`"
18404   LIBTOOL="$sh_libtool"
18405   SVN_LIBTOOL="$sh_libtool"
18406 else
18407   sh_libtool="$abs_builddir/libtool"
18408   SVN_LIBTOOL="\$(SHELL) \"$sh_libtool\""
18409 fi
18410
18411
18412 lt_pversion=`$LIBTOOL --version 2>/dev/null|$SED -e 's/([^)]*)//g;s/^[^0-9]*//;s/[- ].*//g;q'`
18413 lt_version=`echo $lt_pversion|$SED -e 's/\([a-z]*\)$/.\1/'`
18414 lt_major_version=`echo $lt_version | cut -d'.' -f 1`
18415
18416 svn_enable_static=yes
18417 svn_enable_shared=yes
18418
18419 # Check whether --enable-static was given.
18420 if test "${enable_static+set}" = set; then :
18421   enableval=$enable_static; svn_enable_static="$enableval"
18422 else
18423   svn_enable_static="yes"
18424 fi
18425
18426
18427 # Check whether --enable-shared was given.
18428 if test "${enable_shared+set}" = set; then :
18429   enableval=$enable_shared; svn_enable_shared="$enableval"
18430 else
18431   svn_enable_shared="yes"
18432 fi
18433
18434
18435 if test "$svn_enable_static" = "yes" && test "$svn_enable_shared" = "yes" ; then
18436   { $as_echo "$as_me:${as_lineno-$LINENO}: building both shared and static libraries" >&5
18437 $as_echo "$as_me: building both shared and static libraries" >&6;}
18438 elif test "$svn_enable_static" = "yes" ; then
18439   { $as_echo "$as_me:${as_lineno-$LINENO}: building static libraries only" >&5
18440 $as_echo "$as_me: building static libraries only" >&6;}
18441   LT_CFLAGS="-static $LT_CFLAGS"
18442   LT_LDFLAGS="-static $LT_LDFLAGS"
18443 elif test "$svn_enable_shared" = "yes" ; then
18444   { $as_echo "$as_me:${as_lineno-$LINENO}: building shared libraries only" >&5
18445 $as_echo "$as_me: building shared libraries only" >&6;}
18446   if test "$lt_major_version" = "1" ; then
18447     LT_CFLAGS="-prefer-pic $LT_CFLAGS"
18448   elif test "$lt_major_version" = "2" ; then
18449     LT_CFLAGS="-shared $LT_CFLAGS"
18450   fi
18451   LT_LDFLAGS="-shared $LT_LDFLAGS"
18452 else
18453   as_fn_error $? "cannot disable both shared and static libraries" "$LINENO" 5
18454 fi
18455
18456 # Check whether --enable-all-static was given.
18457 if test "${enable_all_static+set}" = set; then :
18458   enableval=$enable_all_static;
18459     if test "$enableval" = "yes" ; then
18460       LT_LDFLAGS="-all-static $LT_LDFLAGS"
18461     elif test "$enableval" != "no" ; then
18462       as_fn_error $? "--enable-all-static doesn't accept argument" "$LINENO" 5
18463     fi
18464
18465 fi
18466
18467
18468
18469
18470
18471 # Check whether --enable-local-library-preloading was given.
18472 if test "${enable_local_library_preloading+set}" = set; then :
18473   enableval=$enable_local_library_preloading;
18474   if test "$enableval" != "no"; then
18475     if test "$svn_enable_shared" = "yes"; then
18476       TRANSFORM_LIBTOOL_SCRIPTS="transform-libtool-scripts"
18477     else
18478       as_fn_error $? "--enable-local-library-preloading conflicts with --disable-shared" "$LINENO" 5
18479     fi
18480   else
18481     TRANSFORM_LIBTOOL_SCRIPTS=""
18482   fi
18483
18484 else
18485
18486   TRANSFORM_LIBTOOL_SCRIPTS=""
18487
18488 fi
18489
18490
18491
18492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libtool needs -no-undefined" >&5
18493 $as_echo_n "checking whether libtool needs -no-undefined... " >&6; }
18494 case $host in
18495   *-*-cygwin*)
18496     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18497 $as_echo "yes" >&6; }
18498     LT_NO_UNDEFINED="-no-undefined"
18499     ;;
18500   *)
18501     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18502 $as_echo "no" >&6; }
18503     LT_NO_UNDEFINED=""
18504     ;;
18505 esac
18506
18507
18508 trang=yes
18509
18510 # Check whether --with-trang was given.
18511 if test "${with_trang+set}" = set; then :
18512   withval=$with_trang;
18513     trang="$withval"
18514
18515 fi
18516
18517 if test "$trang" = "yes"; then
18518     # Extract the first word of "trang", so it can be a program name with args.
18519 set dummy trang; ac_word=$2
18520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18521 $as_echo_n "checking for $ac_word... " >&6; }
18522 if ${ac_cv_path_TRANG+:} false; then :
18523   $as_echo_n "(cached) " >&6
18524 else
18525   case $TRANG in
18526   [\\/]* | ?:[\\/]*)
18527   ac_cv_path_TRANG="$TRANG" # Let the user override the test with a path.
18528   ;;
18529   *)
18530   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18531 for as_dir in $PATH
18532 do
18533   IFS=$as_save_IFS
18534   test -z "$as_dir" && as_dir=.
18535     for ac_exec_ext in '' $ac_executable_extensions; do
18536   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18537     ac_cv_path_TRANG="$as_dir/$ac_word$ac_exec_ext"
18538     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18539     break 2
18540   fi
18541 done
18542   done
18543 IFS=$as_save_IFS
18544
18545   test -z "$ac_cv_path_TRANG" && ac_cv_path_TRANG="none"
18546   ;;
18547 esac
18548 fi
18549 TRANG=$ac_cv_path_TRANG
18550 if test -n "$TRANG"; then
18551   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TRANG" >&5
18552 $as_echo "$TRANG" >&6; }
18553 else
18554   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18555 $as_echo "no" >&6; }
18556 fi
18557
18558
18559 else
18560     TRANG="$trang"
18561
18562 fi
18563
18564 doxygen=yes
18565
18566 # Check whether --with-doxygen was given.
18567 if test "${with_doxygen+set}" = set; then :
18568   withval=$with_doxygen;
18569     doxygen="$withval"
18570
18571 fi
18572
18573 if test "$doxygen" = "yes"; then
18574     # Extract the first word of "doxygen", so it can be a program name with args.
18575 set dummy doxygen; ac_word=$2
18576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18577 $as_echo_n "checking for $ac_word... " >&6; }
18578 if ${ac_cv_path_DOXYGEN+:} false; then :
18579   $as_echo_n "(cached) " >&6
18580 else
18581   case $DOXYGEN in
18582   [\\/]* | ?:[\\/]*)
18583   ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
18584   ;;
18585   *)
18586   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18587 for as_dir in $PATH
18588 do
18589   IFS=$as_save_IFS
18590   test -z "$as_dir" && as_dir=.
18591     for ac_exec_ext in '' $ac_executable_extensions; do
18592   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18593     ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
18594     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18595     break 2
18596   fi
18597 done
18598   done
18599 IFS=$as_save_IFS
18600
18601   test -z "$ac_cv_path_DOXYGEN" && ac_cv_path_DOXYGEN="none"
18602   ;;
18603 esac
18604 fi
18605 DOXYGEN=$ac_cv_path_DOXYGEN
18606 if test -n "$DOXYGEN"; then
18607   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOXYGEN" >&5
18608 $as_echo "$DOXYGEN" >&6; }
18609 else
18610   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18611 $as_echo "no" >&6; }
18612 fi
18613
18614
18615 else
18616     DOXYGEN="$doxygen"
18617
18618 fi
18619
18620
18621
18622
18623
18624 # Check whether --with-expat was given.
18625 if test "${with_expat+set}" = set; then :
18626   withval=$with_expat; svn_lib_expat="$withval"
18627 else
18628   svn_lib_expat="::expat"
18629 fi
18630
18631
18632 # APR-util accepts "builtin" as an argument to this option so if the user
18633 # passed "builtin" pretend the user didn't specify the --with-expat option
18634 # at all. Expat will (hopefully) be found in apr-util.
18635 test "_$svn_lib_expat" = "_builtin" && svn_lib_expat="::expat"
18636
18637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Expat" >&5
18638 $as_echo_n "checking for Expat... " >&6; }
18639 if test -n "`echo "$svn_lib_expat" | $EGREP ":.*:"`"; then
18640   SVN_XML_INCLUDES=""
18641   for i in `echo "$svn_lib_expat" | $SED -e "s/\([^:]*\):.*/\1/"`; do
18642     SVN_XML_INCLUDES="$SVN_XML_INCLUDES -I$i"
18643   done
18644   SVN_XML_INCLUDES="${SVN_XML_INCLUDES## }"
18645   for l in `echo "$svn_lib_expat" | $SED -e "s/.*:\([^:]*\):.*/\1/"`; do
18646     LDFLAGS="$LDFLAGS -L$l"
18647   done
18648   for l in `echo "$svn_lib_expat" | $SED -e "s/.*:\([^:]*\)/\1/"`; do
18649     SVN_XML_LIBS="$SVN_XML_LIBS -l$l"
18650   done
18651   SVN_XML_LIBS="${SVN_XML_LIBS## }"
18652   old_CPPFLAGS="$CPPFLAGS"
18653   old_LIBS="$LIBS"
18654   CPPFLAGS="$CPPFLAGS $SVN_XML_INCLUDES"
18655   LIBS="$LIBS $SVN_XML_LIBS"
18656   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18657 /* end confdefs.h.  */
18658
18659 #include <expat.h>
18660 int main()
18661 {XML_ParserCreate(NULL);}
18662 _ACEOF
18663 if ac_fn_c_try_link "$LINENO"; then :
18664   svn_lib_expat="yes"
18665 else
18666   svn_lib_expat="no"
18667 fi
18668 rm -f core conftest.err conftest.$ac_objext \
18669     conftest$ac_exeext conftest.$ac_ext
18670   LIBS="$old_LIBS"
18671   if test "$svn_lib_expat" = "yes"; then
18672     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18673 $as_echo "yes" >&6; }
18674   else
18675     SVN_XML_INCLUDES=""
18676     SVN_XML_LIBS=""
18677     CPPFLAGS="$CPPFLAGS $SVN_APRUTIL_INCLUDES"
18678     if test "$enable_all_static" != "yes"; then
18679       SVN_APRUTIL_LIBS="$SVN_APRUTIL_LIBS `$apu_config --libs`"
18680     fi
18681     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18682 /* end confdefs.h.  */
18683
18684 #include <expat.h>
18685 int main()
18686 {XML_ParserCreate(NULL);}
18687 _ACEOF
18688 if ac_fn_c_try_compile "$LINENO"; then :
18689   svn_lib_expat="yes"
18690 else
18691   svn_lib_expat="no"
18692 fi
18693 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18694     if test "$svn_lib_expat" = "yes"; then
18695       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18696 $as_echo "yes" >&6; }
18697       { $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
18698 $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;}
18699     else
18700       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18701 $as_echo "no" >&6; }
18702       as_fn_error $? "Expat not found" "$LINENO" 5
18703     fi
18704   fi
18705   CPPFLAGS="$old_CPPFLAGS"
18706 else
18707   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18708 $as_echo "no" >&6; }
18709   if test "$svn_lib_expat" = "yes"; then
18710     as_fn_error $? "--with-expat option requires argument" "$LINENO" 5
18711   elif test "$svn_lib_expat" = "no"; then
18712     as_fn_error $? "Expat is required" "$LINENO" 5
18713   else
18714     as_fn_error $? "Invalid syntax of argument of --with-expat option" "$LINENO" 5
18715   fi
18716 fi
18717
18718
18719
18720
18721 # Berkeley DB on SCO OpenServer needs -lsocket
18722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
18723 $as_echo_n "checking for socket in -lsocket... " >&6; }
18724 if ${ac_cv_lib_socket_socket+:} false; then :
18725   $as_echo_n "(cached) " >&6
18726 else
18727   ac_check_lib_save_LIBS=$LIBS
18728 LIBS="-lsocket  $LIBS"
18729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18730 /* end confdefs.h.  */
18731
18732 /* Override any GCC internal prototype to avoid an error.
18733    Use char because int might match the return type of a GCC
18734    builtin and then its argument prototype would still apply.  */
18735 #ifdef __cplusplus
18736 extern "C"
18737 #endif
18738 char socket ();
18739 int
18740 main ()
18741 {
18742 return socket ();
18743   ;
18744   return 0;
18745 }
18746 _ACEOF
18747 if ac_fn_c_try_link "$LINENO"; then :
18748   ac_cv_lib_socket_socket=yes
18749 else
18750   ac_cv_lib_socket_socket=no
18751 fi
18752 rm -f core conftest.err conftest.$ac_objext \
18753     conftest$ac_exeext conftest.$ac_ext
18754 LIBS=$ac_check_lib_save_LIBS
18755 fi
18756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
18757 $as_echo "$ac_cv_lib_socket_socket" >&6; }
18758 if test "x$ac_cv_lib_socket_socket" = xyes; then :
18759   cat >>confdefs.h <<_ACEOF
18760 #define HAVE_LIBSOCKET 1
18761 _ACEOF
18762
18763   LIBS="-lsocket $LIBS"
18764
18765 fi
18766
18767
18768 # Build the BDB filesystem library only if we have an appropriate
18769 # version of Berkeley DB.
18770 case "$host" in
18771 powerpc-apple-darwin*)
18772     # Berkeley DB 4.0 does not work on OS X.
18773     SVN_FS_WANT_DB_MAJOR=4
18774     SVN_FS_WANT_DB_MINOR=1
18775     SVN_FS_WANT_DB_PATCH=25
18776     ;;
18777 *)
18778     SVN_FS_WANT_DB_MAJOR=4
18779     SVN_FS_WANT_DB_MINOR=0
18780     SVN_FS_WANT_DB_PATCH=14
18781     ;;
18782 esac
18783 db_alt_version="5.x"
18784 # Look for libdb4.so first:
18785
18786   db_version=$SVN_FS_WANT_DB_MAJOR.$SVN_FS_WANT_DB_MINOR.$SVN_FS_WANT_DB_PATCH
18787
18788
18789 # Check whether --with-berkeley-db was given.
18790 if test "${with_berkeley_db+set}" = set; then :
18791   withval=$with_berkeley_db;
18792     if test "$withval" = "no"; then
18793       bdb_status=skip
18794     elif test "$withval" = "yes"; then
18795       apu_db_version="`$apu_config --db-version`"
18796       if test $? -ne 0; then
18797         as_fn_error $? "Can't determine whether apr-util is linked against a
18798                       proper version of Berkeley DB." "$LINENO" 5
18799       fi
18800
18801       if test "$withval" = "yes"; then
18802         if test "$apu_db_version" -lt "4"; then
18803           as_fn_error $? "APR-UTIL was linked against Berkeley DB version $apu_db_version,
18804                         while version 4 or higher is required.  Reinstall
18805                         APR-UTIL with the appropriate options." "$LINENO" 5
18806         fi
18807
18808         bdb_status=required
18809
18810       elif test "$apu_found" != "reconfig"; then
18811         if test "$apu_db_version" -lt 4; then
18812           as_fn_error $? "APR-UTIL was installed independently, it won't be
18813                         possible to use the specified Berkeley DB: $withval" "$LINENO" 5
18814         fi
18815
18816         bdb_status=required
18817       fi
18818     else
18819       if echo "$withval" | $EGREP ":.*:.*:" > /dev/null; then
18820         svn_berkeley_db_header="`echo "$withval" | $SED -e "s/\([^:]*\):.*/\1/"`"
18821         SVN_DB_INCLUDES=""
18822         for i in `echo "$withval" | $SED -e "s/.*:\([^:]*\):[^:]*:.*/\1/"`; do
18823           SVN_DB_INCLUDES="$SVN_DB_INCLUDES -I$i"
18824         done
18825         SVN_DB_INCLUDES="${SVN_DB_INCLUDES## }"
18826         for l in `echo "$withval" | $SED -e "s/.*:[^:]*:\([^:]*\):.*/\1/"`; do
18827           LDFLAGS="$LDFLAGS `
18828   input_flags="-L$l"
18829   output_flags=""
18830   filtered_dirs="/lib /lib64 /usr/lib /usr/lib64"
18831   for flag in $input_flags; do
18832     filter="no"
18833     for dir in $filtered_dirs; do
18834       if test "$flag" = "-L$dir" || test "$flag" = "-L$dir/"; then
18835         filter="yes"
18836         break
18837       fi
18838     done
18839     if test "$filter" = "no"; then
18840       output_flags="$output_flags $flag"
18841     fi
18842   done
18843   if test -n "$output_flags"; then
18844     printf "%s" "${output_flags# }"
18845   fi
18846 `"
18847         done
18848         SVN_DB_LIBS=""
18849         for l in `echo "$withval" | $SED -e "s/.*:\([^:]*\)/\1/"`; do
18850           SVN_DB_LIBS="$SVN_DB_LIBS -l$l"
18851         done
18852         SVN_DB_LIBS="${SVN_DB_LIBS## }"
18853
18854         bdb_status=required
18855       else
18856         as_fn_error $? "Invalid syntax of argument of --with-berkeley-db option" "$LINENO" 5
18857       fi
18858     fi
18859
18860 else
18861
18862     # No --with-berkeley-db option:
18863     #
18864     # Check if APR-UTIL is providing the correct Berkeley DB version
18865     # for us.
18866     #
18867     apu_db_version="`$apu_config --db-version`"
18868     if test $? -ne 0; then
18869       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Detected older version of APR-UTIL, trying to determine
18870                    whether apr-util is linked against Berkeley DB
18871                    $db_version" >&5
18872 $as_echo "$as_me: WARNING: Detected older version of APR-UTIL, trying to determine
18873                    whether apr-util is linked against Berkeley DB
18874                    $db_version" >&2;}
18875       bdb_status=try-link
18876     elif test "$apu_db_version" -lt "4"; then
18877       bdb_status=skip
18878     else
18879       bdb_status=try-link
18880     fi
18881
18882 fi
18883
18884
18885   if test "$bdb_status" = "skip"; then
18886     svn_lib_berkeley_db=no
18887   else
18888     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for availability of Berkeley DB" >&5
18889 $as_echo_n "checking for availability of Berkeley DB... " >&6; }
18890     # Check whether --enable-bdb6 was given.
18891 if test "${enable_bdb6+set}" = set; then :
18892   enableval=$enable_bdb6; enable_bdb6=$enableval
18893 else
18894   enable_bdb6=unspecified
18895 fi
18896
18897
18898
18899     svn_lib_berkeley_db_try_save_cppflags="$CPPFLAGS"
18900     svn_lib_berkeley_db_try_save_libs="$LIBS"
18901
18902     svn_check_berkeley_db_major=$SVN_FS_WANT_DB_MAJOR
18903     svn_check_berkeley_db_minor=$SVN_FS_WANT_DB_MINOR
18904     svn_check_berkeley_db_patch=$SVN_FS_WANT_DB_PATCH
18905     enable_bdb6=$enable_bdb6
18906
18907    if test -z "$SVN_DB_LIBS"; then
18908       # We pass --dbm-libs here since Debian has modified apu-config not
18909       # to return -ldb unless --dbm-libs is passed.  This may also produce
18910       # extra output beyond -ldb but since we're only filtering for -ldb
18911       # it won't matter to us.  However, --dbm-libs was added to apu-config
18912       # in 1.3.8 so it's possible the version we have doesn't support it
18913       # so fallback without it if we get an error.
18914       svn_db_libs_prefiltered="`$apu_config --libs --dbm-libs`"
18915       if test $? -ne 0; then
18916         svn_db_libs_prefiltered="`$apu_config --libs`"
18917       fi
18918
18919       # Extract only the -ldb.* flag from the libs supplied by apu-config
18920       # Otherwise we get bit by the fact that expat might not be built yet
18921       # Or that it resides in a non-standard location which we would have
18922       # to compensate with using something like -R`$apu_config --prefix`/lib.
18923       #
18924       SVN_DB_LIBS="`echo \"$svn_db_libs_prefiltered\" | $SED -e 's/.*\(-ldb[^[:space:]]*\).*/\1/' | $EGREP -- '-ldb[^[:space:]]*'`"
18925     fi
18926
18927     CPPFLAGS="$SVN_DB_INCLUDES $SVN_APRUTIL_INCLUDES $CPPFLAGS"
18928     LIBS="`$apu_config --ldflags` $SVN_DB_LIBS $LIBS"
18929
18930     if test -n "$svn_berkeley_db_header"; then
18931       SVN_DB_HEADER="#include <$svn_berkeley_db_header>"
18932       svn_db_header="#include <$svn_berkeley_db_header>"
18933     else
18934       SVN_DB_HEADER="#include <apu_want.h>"
18935       svn_db_header="#define APU_WANT_DB
18936 #include <apu_want.h>"
18937     fi
18938
18939
18940
18941     if test "$cross_compiling" = yes; then :
18942   svn_have_berkeley_db=yes
18943
18944 else
18945   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18946 /* end confdefs.h.  */
18947
18948 #include <string.h>
18949 #include <stdlib.h>
18950 $svn_db_header
18951
18952 int main ()
18953 {
18954   int major, minor, patch;
18955
18956   db_version (&major, &minor, &patch);
18957
18958   /* Sanity check: ensure that db.h constants actually match the db library */
18959   if (major != DB_VERSION_MAJOR
18960       || minor != DB_VERSION_MINOR
18961       || patch != DB_VERSION_PATCH)
18962     exit (1);
18963
18964   /* Block Berkeley DB 6, because (a) we haven't tested with it, (b) 6.0.20
18965      and newer are under the AGPL, and we want use of AGPL dependencies to be
18966      opt-in. */
18967   if (major >= 6 && strcmp("$enable_bdb6", "yes"))
18968     exit(2);
18969
18970   /* Run-time check:  ensure the library claims to be the correct version. */
18971
18972   if (major < $svn_check_berkeley_db_major)
18973     exit (1);
18974   if (major > $svn_check_berkeley_db_major)
18975     exit (0);
18976
18977   if (minor < $svn_check_berkeley_db_minor)
18978     exit (1);
18979   if (minor > $svn_check_berkeley_db_minor)
18980     exit (0);
18981
18982   if (patch >= $svn_check_berkeley_db_patch)
18983     exit (0);
18984   else
18985     exit (1);
18986 }
18987
18988 _ACEOF
18989 if ac_fn_c_try_run "$LINENO"; then :
18990   svn_have_berkeley_db=yes
18991 else
18992   rc=$?
18993        svn_have_berkeley_db=no
18994        if test $rc = 2; then
18995          svn_have_berkeley_db=no6
18996        fi
18997 fi
18998 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18999   conftest.$ac_objext conftest.beam conftest.$ac_ext
19000 fi
19001
19002
19003   CPPFLAGS="$svn_lib_berkeley_db_try_save_cppflags"
19004   LIBS="$svn_lib_berkeley_db_try_save_libs"
19005
19006
19007     if test "$svn_have_berkeley_db" = "yes"; then
19008       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19009 $as_echo "yes" >&6; }
19010       svn_lib_berkeley_db=yes
19011     else
19012       if test "$svn_have_berkeley_db" = "no6"; then
19013         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (found version 6, but --enable-bdb6 not specified)" >&5
19014 $as_echo "no (found version 6, but --enable-bdb6 not specified)" >&6; }
19015         # A warning will be printed at the end of configure.ac.
19016       else
19017         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19018 $as_echo "no" >&6; }
19019       fi
19020       svn_lib_berkeley_db=no
19021       if test "$bdb_status" = "required"; then
19022         as_fn_error $? "Berkeley DB $db_version or $db_alt_version wasn't found." "$LINENO" 5
19023       fi
19024     fi
19025   fi
19026
19027
19028
19029 cat >>confdefs.h <<_ACEOF
19030 #define SVN_FS_WANT_DB_MAJOR $SVN_FS_WANT_DB_MAJOR
19031 _ACEOF
19032
19033
19034 cat >>confdefs.h <<_ACEOF
19035 #define SVN_FS_WANT_DB_MINOR $SVN_FS_WANT_DB_MINOR
19036 _ACEOF
19037
19038
19039 cat >>confdefs.h <<_ACEOF
19040 #define SVN_FS_WANT_DB_PATCH $SVN_FS_WANT_DB_PATCH
19041 _ACEOF
19042
19043
19044
19045
19046
19047
19048
19049 # Check whether --with-sasl was given.
19050 if test "${with_sasl+set}" = set; then :
19051   withval=$with_sasl;
19052     with_sasl="$withval"
19053     required="yes"
19054
19055 else
19056
19057     with_sasl="yes"
19058     required="no"
19059
19060 fi
19061
19062
19063   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to look for SASL" >&5
19064 $as_echo_n "checking whether to look for SASL... " >&6; }
19065
19066   if test "${with_sasl}" = "no"; then
19067     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19068 $as_echo "no" >&6; }
19069     svn_lib_sasl=no
19070   else
19071     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19072 $as_echo "yes" >&6; }
19073     saved_LDFLAGS="$LDFLAGS"
19074     saved_CPPFLAGS="$CPPFLAGS"
19075
19076     if test "$with_sasl" = "yes"; then
19077       { $as_echo "$as_me:${as_lineno-$LINENO}: Looking in default locations" >&5
19078 $as_echo "$as_me: Looking in default locations" >&6;}
19079       ac_fn_c_check_header_mongrel "$LINENO" "sasl/sasl.h" "ac_cv_header_sasl_sasl_h" "$ac_includes_default"
19080 if test "x$ac_cv_header_sasl_sasl_h" = xyes; then :
19081   ac_fn_c_check_header_mongrel "$LINENO" "sasl/saslutil.h" "ac_cv_header_sasl_saslutil_h" "$ac_includes_default"
19082 if test "x$ac_cv_header_sasl_saslutil_h" = xyes; then :
19083   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prop_get in -lsasl2" >&5
19084 $as_echo_n "checking for prop_get in -lsasl2... " >&6; }
19085 if ${ac_cv_lib_sasl2_prop_get+:} false; then :
19086   $as_echo_n "(cached) " >&6
19087 else
19088   ac_check_lib_save_LIBS=$LIBS
19089 LIBS="-lsasl2  $LIBS"
19090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19091 /* end confdefs.h.  */
19092
19093 /* Override any GCC internal prototype to avoid an error.
19094    Use char because int might match the return type of a GCC
19095    builtin and then its argument prototype would still apply.  */
19096 #ifdef __cplusplus
19097 extern "C"
19098 #endif
19099 char prop_get ();
19100 int
19101 main ()
19102 {
19103 return prop_get ();
19104   ;
19105   return 0;
19106 }
19107 _ACEOF
19108 if ac_fn_c_try_link "$LINENO"; then :
19109   ac_cv_lib_sasl2_prop_get=yes
19110 else
19111   ac_cv_lib_sasl2_prop_get=no
19112 fi
19113 rm -f core conftest.err conftest.$ac_objext \
19114     conftest$ac_exeext conftest.$ac_ext
19115 LIBS=$ac_check_lib_save_LIBS
19116 fi
19117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sasl2_prop_get" >&5
19118 $as_echo "$ac_cv_lib_sasl2_prop_get" >&6; }
19119 if test "x$ac_cv_lib_sasl2_prop_get" = xyes; then :
19120   svn_lib_sasl=yes
19121 else
19122   svn_lib_sasl=no
19123 fi
19124
19125 else
19126   svn_lib_sasl=no
19127 fi
19128
19129
19130 else
19131   svn_lib_sasl=no
19132 fi
19133
19134
19135       if test "$svn_lib_sasl" = "no"; then
19136         with_sasl="/usr/local"
19137       fi
19138     else
19139       svn_lib_sasl=no
19140     fi
19141
19142     if test "$svn_lib_sasl" = "no"; then
19143       SVN_SASL_INCLUDES="-I${with_sasl}/include"
19144       CPPFLAGS="$CPPFLAGS $SVN_SASL_INCLUDES"
19145       LDFLAGS="$LDFLAGS `
19146   input_flags="-L${with_sasl}/lib"
19147   output_flags=""
19148   filtered_dirs="/lib /lib64 /usr/lib /usr/lib64"
19149   for flag in $input_flags; do
19150     filter="no"
19151     for dir in $filtered_dirs; do
19152       if test "$flag" = "-L$dir" || test "$flag" = "-L$dir/"; then
19153         filter="yes"
19154         break
19155       fi
19156     done
19157     if test "$filter" = "no"; then
19158       output_flags="$output_flags $flag"
19159     fi
19160   done
19161   if test -n "$output_flags"; then
19162     printf "%s" "${output_flags# }"
19163   fi
19164 `"
19165
19166       ac_fn_c_check_header_mongrel "$LINENO" "sasl/sasl.h" "ac_cv_header_sasl_sasl_h" "$ac_includes_default"
19167 if test "x$ac_cv_header_sasl_sasl_h" = xyes; then :
19168   ac_fn_c_check_header_mongrel "$LINENO" "sasl/saslutil.h" "ac_cv_header_sasl_saslutil_h" "$ac_includes_default"
19169 if test "x$ac_cv_header_sasl_saslutil_h" = xyes; then :
19170   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prop_get in -lsasl2" >&5
19171 $as_echo_n "checking for prop_get in -lsasl2... " >&6; }
19172 if ${ac_cv_lib_sasl2_prop_get+:} false; then :
19173   $as_echo_n "(cached) " >&6
19174 else
19175   ac_check_lib_save_LIBS=$LIBS
19176 LIBS="-lsasl2  $LIBS"
19177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19178 /* end confdefs.h.  */
19179
19180 /* Override any GCC internal prototype to avoid an error.
19181    Use char because int might match the return type of a GCC
19182    builtin and then its argument prototype would still apply.  */
19183 #ifdef __cplusplus
19184 extern "C"
19185 #endif
19186 char prop_get ();
19187 int
19188 main ()
19189 {
19190 return prop_get ();
19191   ;
19192   return 0;
19193 }
19194 _ACEOF
19195 if ac_fn_c_try_link "$LINENO"; then :
19196   ac_cv_lib_sasl2_prop_get=yes
19197 else
19198   ac_cv_lib_sasl2_prop_get=no
19199 fi
19200 rm -f core conftest.err conftest.$ac_objext \
19201     conftest$ac_exeext conftest.$ac_ext
19202 LIBS=$ac_check_lib_save_LIBS
19203 fi
19204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sasl2_prop_get" >&5
19205 $as_echo "$ac_cv_lib_sasl2_prop_get" >&6; }
19206 if test "x$ac_cv_lib_sasl2_prop_get" = xyes; then :
19207   svn_lib_sasl=yes
19208 else
19209   svn_lib_sasl=no
19210 fi
19211
19212 else
19213   svn_lib_sasl=no
19214 fi
19215
19216
19217 else
19218   svn_lib_sasl=no
19219 fi
19220
19221
19222     fi
19223
19224     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for availability of Cyrus SASL v2" >&5
19225 $as_echo_n "checking for availability of Cyrus SASL v2... " >&6; }
19226     if test "$svn_lib_sasl" = "yes"; then
19227       SVN_SASL_LIBS="-lsasl2"
19228       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19229 $as_echo "yes" >&6; }
19230     else
19231       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19232 $as_echo "no" >&6; }
19233
19234       if test "$required" = "yes"; then
19235                         as_fn_error $? "Could not find Cyrus SASL v2" "$LINENO" 5
19236       fi
19237
19238       SVN_SASL_INCLUDES=""
19239       LDFLAGS="$saved_LDFLAGS"
19240     fi
19241
19242     CPPFLAGS="$saved_CPPFLAGS"
19243   fi
19244
19245
19246
19247
19248
19249 if test "$svn_lib_sasl" = "yes"; then
19250
19251 $as_echo "#define SVN_HAVE_SASL 1" >>confdefs.h
19252
19253 fi
19254
19255
19256
19257   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Mach-O dynamic module iteration functions" >&5
19258 $as_echo_n "checking for Mach-O dynamic module iteration functions... " >&6; }
19259   if test "$cross_compiling" = yes; then :
19260   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19261 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19262 as_fn_error $? "cannot run test program while cross compiling
19263 See \`config.log' for more details" "$LINENO" 5; }
19264 else
19265   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19266 /* end confdefs.h.  */
19267
19268     #include <mach-o/dyld.h>
19269     #include <mach-o/loader.h>
19270
19271 int
19272 main ()
19273 {
19274
19275     const struct mach_header *header = _dyld_get_image_header(0);
19276     const char *name = _dyld_get_image_name(0);
19277     if (name && header) return 0;
19278     return 1;
19279
19280   ;
19281   return 0;
19282 }
19283 _ACEOF
19284 if ac_fn_c_try_run "$LINENO"; then :
19285
19286
19287 $as_echo "#define SVN_HAVE_MACHO_ITERATE 1" >>confdefs.h
19288
19289     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19290 $as_echo "yes" >&6; }
19291
19292 else
19293
19294     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19295 $as_echo "no" >&6; }
19296
19297 fi
19298 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19299   conftest.$ac_objext conftest.beam conftest.$ac_ext
19300 fi
19301
19302
19303
19304   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Mac OS property list utilities" >&5
19305 $as_echo_n "checking for Mac OS property list utilities... " >&6; }
19306
19307   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19308 /* end confdefs.h.  */
19309
19310     #include <AvailabilityMacros.h>
19311     #if !defined(MAC_OS_X_VERSION_MAX_ALLOWED) \
19312      || !defined(MAC_OS_X_VERSION_10_0) \
19313      || (MAC_OS_X_VERSION_MAX_ALLOWED <= MAC_OS_X_VERSION_10_0)
19314     #error ProperyList API unavailable.
19315     #endif
19316
19317 int
19318 main ()
19319 {
19320
19321   ;
19322   return 0;
19323 }
19324 _ACEOF
19325 if ac_fn_c_try_compile "$LINENO"; then :
19326
19327
19328     LIBS="$LIBS -framework CoreFoundation"
19329
19330 $as_echo "#define SVN_HAVE_MACOS_PLIST 1" >>confdefs.h
19331
19332     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19333 $as_echo "yes" >&6; }
19334
19335 else
19336
19337     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19338 $as_echo "no" >&6; }
19339
19340 fi
19341 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19342
19343
19344   # Check whether --enable-keychain was given.
19345 if test "${enable_keychain+set}" = set; then :
19346   enableval=$enable_keychain; enable_keychain=$enableval
19347 else
19348   enable_keychain=yes
19349 fi
19350
19351
19352   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Mac OS KeyChain Services" >&5
19353 $as_echo_n "checking for Mac OS KeyChain Services... " >&6; }
19354
19355   if test "$enable_keychain" = "yes"; then
19356     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19357 /* end confdefs.h.  */
19358
19359       #include <AvailabilityMacros.h>
19360       #if !defined(MAC_OS_X_VERSION_MAX_ALLOWED) \
19361        || !defined(MAC_OS_X_VERSION_10_2) \
19362        || (MAC_OS_X_VERSION_MAX_ALLOWED <= MAC_OS_X_VERSION_10_2)
19363       #error KeyChain API unavailable.
19364       #endif
19365
19366 int
19367 main ()
19368 {
19369
19370   ;
19371   return 0;
19372 }
19373 _ACEOF
19374 if ac_fn_c_try_compile "$LINENO"; then :
19375
19376             LIBS="$LIBS -framework Security"
19377       LIBS="$LIBS -framework CoreServices"
19378
19379 $as_echo "#define SVN_HAVE_KEYCHAIN_SERVICES 1" >>confdefs.h
19380
19381       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19382 $as_echo "yes" >&6; }
19383
19384 else
19385
19386       enable_keychain=no
19387       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19388 $as_echo "no" >&6; }
19389
19390 fi
19391 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19392   fi
19393
19394
19395
19396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether APR has support for DSOs" >&5
19397 $as_echo_n "checking whether APR has support for DSOs... " >&6; }
19398 old_CPPFLAGS="$CPPFLAGS"
19399 CPPFLAGS="$CPPFLAGS $SVN_APR_INCLUDES"
19400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19401 /* end confdefs.h.  */
19402
19403 #include <apr.h>
19404 #if !APR_HAS_DSO
19405 #error
19406 #endif
19407 _ACEOF
19408 if ac_fn_c_try_cpp "$LINENO"; then :
19409   APR_HAS_DSO="yes"
19410   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19411 $as_echo "yes" >&6; }
19412 else
19413   APR_HAS_DSO="no"
19414   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19415 $as_echo "no" >&6; }
19416 fi
19417 rm -f conftest.err conftest.i conftest.$ac_ext
19418 CPPFLAGS="$old_CPPFLAGS"
19419
19420
19421
19422 if test -n "$PKG_CONFIG"; then
19423   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for D-Bus .pc file" >&5
19424 $as_echo_n "checking for D-Bus .pc file... " >&6; }
19425   if $PKG_CONFIG --exists dbus-1; then
19426     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19427 $as_echo "yes" >&6; }
19428     old_CPPFLAGS="$CPPFLAGS"
19429     old_LIBS="$LIBS"
19430     DBUS_CPPFLAGS="`$PKG_CONFIG --cflags dbus-1`"
19431     { $as_echo "$as_me:${as_lineno-$LINENO}: checking D-Bus version" >&5
19432 $as_echo_n "checking D-Bus version... " >&6; }
19433     DBUS_VERSION="`$PKG_CONFIG --modversion dbus-1`"
19434     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBUS_VERSION" >&5
19435 $as_echo "$DBUS_VERSION" >&6; }
19436     # D-Bus 0.* requires DBUS_API_SUBJECT_TO_CHANGE
19437     if test -n "`echo "$DBUS_VERSION" | $EGREP '^0\.[[:digit:]]+'`"; then
19438       DBUS_CPPFLAGS="$DBUS_CPPFLAGS -DDBUS_API_SUBJECT_TO_CHANGE"
19439     fi
19440     DBUS_LIBS="`$PKG_CONFIG --libs dbus-1`"
19441     CPPFLAGS="$CPPFLAGS $DBUS_CPPFLAGS"
19442     LIBS="$LIBS $DBUS_LIBS"
19443     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for D-Bus" >&5
19444 $as_echo_n "checking for D-Bus... " >&6; }
19445     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19446 /* end confdefs.h.  */
19447
19448 #include <dbus/dbus.h>
19449 int main()
19450 {dbus_bus_get(DBUS_BUS_SESSION, NULL);}
19451 _ACEOF
19452 if ac_fn_c_try_link "$LINENO"; then :
19453   HAVE_DBUS="yes"
19454 else
19455   HAVE_DBUS="no"
19456 fi
19457 rm -f core conftest.err conftest.$ac_objext \
19458     conftest$ac_exeext conftest.$ac_ext
19459     if test "$HAVE_DBUS" = "yes"; then
19460       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19461 $as_echo "yes" >&6; }
19462     else
19463       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19464 $as_echo "no" >&6; }
19465     fi
19466     CPPFLAGS="$old_CPPFLAGS"
19467     LIBS="$old_LIBS"
19468   else
19469     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19470 $as_echo "no" >&6; }
19471   fi
19472 fi
19473
19474
19475
19476 # Check whether --with-gpg_agent was given.
19477 if test "${with_gpg_agent+set}" = set; then :
19478   withval=$with_gpg_agent;
19479 else
19480   with_gpg_agent=yes
19481 fi
19482
19483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support GPG-Agent" >&5
19484 $as_echo_n "checking whether to support GPG-Agent... " >&6; }
19485 if test "$with_gpg_agent" = "yes"; then
19486   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19487 $as_echo "yes" >&6; }
19488
19489 $as_echo "#define SVN_HAVE_GPG_AGENT 1" >>confdefs.h
19490
19491 else
19492   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19493 $as_echo "no" >&6; }
19494 fi
19495
19496
19497
19498
19499
19500 # Check whether --with-gnome_keyring was given.
19501 if test "${with_gnome_keyring+set}" = set; then :
19502   withval=$with_gnome_keyring; with_gnome_keyring="$withval"
19503 else
19504   with_gnome_keyring=auto
19505 fi
19506
19507
19508 found_gnome_keyring=no
19509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to look for GNOME Keyring" >&5
19510 $as_echo_n "checking whether to look for GNOME Keyring... " >&6; }
19511 if test "$with_gnome_keyring" != "no"; then
19512   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19513 $as_echo "yes" >&6; }
19514   case "$host" in
19515   *-*-darwin*)
19516     if test "$with_gnome_keyring" = "yes"; then
19517       as_fn_error $? "--with-gnome-keyring is not supported on Mac OS X." "$LINENO" 5
19518     else
19519       with_gnome_keyring=no
19520     fi
19521     ;;
19522   *)
19523     if test "$svn_enable_shared" = "yes"; then
19524       if test "$APR_HAS_DSO" = "yes"; then
19525         if test -n "$PKG_CONFIG"; then
19526           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLib and GNOME Keyring .pc files" >&5
19527 $as_echo_n "checking for GLib and GNOME Keyring .pc files... " >&6; }
19528           if $PKG_CONFIG --exists glib-2.0 gnome-keyring-1; then
19529             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19530 $as_echo "yes" >&6; }
19531             old_CPPFLAGS="$CPPFLAGS"
19532             SVN_GNOME_KEYRING_INCLUDES="`$PKG_CONFIG --cflags glib-2.0 gnome-keyring-1`"
19533             CPPFLAGS="$CPPFLAGS $SVN_GNOME_KEYRING_INCLUDES"
19534             ac_fn_c_check_header_mongrel "$LINENO" "gnome-keyring.h" "ac_cv_header_gnome_keyring_h" "$ac_includes_default"
19535 if test "x$ac_cv_header_gnome_keyring_h" = xyes; then :
19536   found_gnome_keyring=yes
19537 else
19538   found_gnome_keyring=no
19539 fi
19540
19541
19542             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNOME Keyring" >&5
19543 $as_echo_n "checking for GNOME Keyring... " >&6; }
19544             if test "$found_gnome_keyring" = "yes"; then
19545               { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19546 $as_echo "yes" >&6; }
19547
19548 $as_echo "#define SVN_HAVE_GNOME_KEYRING 1" >>confdefs.h
19549
19550               CPPFLAGS="$old_CPPFLAGS"
19551               SVN_GNOME_KEYRING_LIBS="`$PKG_CONFIG --libs glib-2.0 gnome-keyring-1`"
19552             else
19553               { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19554 $as_echo "no" >&6; }
19555               if test "$with_gnome_keyring" = "yes"; then
19556                 as_fn_error $? "cannot find GNOME Keyring" "$LINENO" 5
19557               fi
19558             fi
19559           else
19560             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19561 $as_echo "no" >&6; }
19562             if test "$with_gnome_keyring" = "yes"; then
19563               as_fn_error $? "cannot find GLib and GNOME Keyring .pc files." "$LINENO" 5
19564             else
19565               with_gnome_keyring=no
19566             fi
19567           fi
19568         else
19569           if test "$with_gnome_keyring" = "yes"; then
19570             as_fn_error $? "cannot find pkg-config. GNOME Keyring requires this." "$LINENO" 5
19571           else
19572             with_gnome_keyring=no
19573           fi
19574         fi
19575       else
19576         if test "$with_gnome_keyring" = "yes"; then
19577           as_fn_error $? "APR does not have support for DSOs. GNOME Keyring requires this." "$LINENO" 5
19578         else
19579           with_gnome_keyring=no
19580         fi
19581       fi
19582     else
19583       if test "$with_gnome_keyring" = "yes"; then
19584         as_fn_error $? "--with-gnome-keyring conflicts with --disable-shared" "$LINENO" 5
19585       else
19586         with_gnome_keyring=no
19587       fi
19588     fi
19589     ;;
19590   esac
19591 else
19592   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19593 $as_echo "no" >&6; }
19594 fi
19595
19596
19597
19598 # Check whether --enable-gmock was given.
19599 if test "${enable_gmock+set}" = set; then :
19600   enableval=$enable_gmock;
19601 else
19602   enable_gmock=yes
19603 fi
19604
19605
19606 GMOCK_SRCDIR=$abs_srcdir/gmock-fused
19607
19608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether use Googlemock" >&5
19609 $as_echo_n "checking whether use Googlemock... " >&6; }
19610 if test "$enable_gmock" != "no"; then
19611   if test -d "$GMOCK_SRCDIR"; then
19612     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19613 $as_echo "yes" >&6; }
19614     SVN_USE_GMOCK=true
19615   else
19616     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19617 $as_echo "no" >&6; }
19618     SVN_USE_GMOCK=false
19619   fi
19620 else
19621   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19622 $as_echo "no" >&6; }
19623   SVN_USE_GMOCK_SOURCES=false
19624 fi
19625
19626
19627 # Check whether --enable-ev2-impl was given.
19628 if test "${enable_ev2_impl+set}" = set; then :
19629   enableval=$enable_ev2_impl; enable_ev2_impl=$enableval
19630 else
19631   enable_ev2_impl=no
19632 fi
19633
19634 if test "$enable_ev2_impl" = "yes"; then
19635
19636 $as_echo "#define ENABLE_EV2_IMPL 1" >>confdefs.h
19637
19638 fi
19639
19640
19641
19642 # Check whether --enable-nls was given.
19643 if test "${enable_nls+set}" = set; then :
19644   enableval=$enable_nls; enable_nls=$enableval
19645 else
19646   enable_nls=yes
19647 fi
19648
19649
19650 USE_NLS="no"
19651 SVN_INTL_LIBS=""
19652 if test "$enable_nls" = "yes"; then
19653     # Extract the first word of "msgfmt", so it can be a program name with args.
19654 set dummy msgfmt; ac_word=$2
19655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19656 $as_echo_n "checking for $ac_word... " >&6; }
19657 if ${ac_cv_path_MSGFMT+:} false; then :
19658   $as_echo_n "(cached) " >&6
19659 else
19660   case $MSGFMT in
19661   [\\/]* | ?:[\\/]*)
19662   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
19663   ;;
19664   *)
19665   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19666 for as_dir in $PATH
19667 do
19668   IFS=$as_save_IFS
19669   test -z "$as_dir" && as_dir=.
19670     for ac_exec_ext in '' $ac_executable_extensions; do
19671   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19672     ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
19673     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19674     break 2
19675   fi
19676 done
19677   done
19678 IFS=$as_save_IFS
19679
19680   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="none"
19681   ;;
19682 esac
19683 fi
19684 MSGFMT=$ac_cv_path_MSGFMT
19685 if test -n "$MSGFMT"; then
19686   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
19687 $as_echo "$MSGFMT" >&6; }
19688 else
19689   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19690 $as_echo "no" >&6; }
19691 fi
19692
19693
19694   # Extract the first word of "msgmerge", so it can be a program name with args.
19695 set dummy msgmerge; ac_word=$2
19696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19697 $as_echo_n "checking for $ac_word... " >&6; }
19698 if ${ac_cv_path_MSGMERGE+:} false; then :
19699   $as_echo_n "(cached) " >&6
19700 else
19701   case $MSGMERGE in
19702   [\\/]* | ?:[\\/]*)
19703   ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
19704   ;;
19705   *)
19706   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19707 for as_dir in $PATH
19708 do
19709   IFS=$as_save_IFS
19710   test -z "$as_dir" && as_dir=.
19711     for ac_exec_ext in '' $ac_executable_extensions; do
19712   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19713     ac_cv_path_MSGMERGE="$as_dir/$ac_word$ac_exec_ext"
19714     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19715     break 2
19716   fi
19717 done
19718   done
19719 IFS=$as_save_IFS
19720
19721   test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE="none"
19722   ;;
19723 esac
19724 fi
19725 MSGMERGE=$ac_cv_path_MSGMERGE
19726 if test -n "$MSGMERGE"; then
19727   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
19728 $as_echo "$MSGMERGE" >&6; }
19729 else
19730   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19731 $as_echo "no" >&6; }
19732 fi
19733
19734
19735   # Extract the first word of "xgettext", so it can be a program name with args.
19736 set dummy xgettext; ac_word=$2
19737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19738 $as_echo_n "checking for $ac_word... " >&6; }
19739 if ${ac_cv_path_XGETTEXT+:} false; then :
19740   $as_echo_n "(cached) " >&6
19741 else
19742   case $XGETTEXT in
19743   [\\/]* | ?:[\\/]*)
19744   ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
19745   ;;
19746   *)
19747   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19748 for as_dir in $PATH
19749 do
19750   IFS=$as_save_IFS
19751   test -z "$as_dir" && as_dir=.
19752     for ac_exec_ext in '' $ac_executable_extensions; do
19753   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19754     ac_cv_path_XGETTEXT="$as_dir/$ac_word$ac_exec_ext"
19755     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19756     break 2
19757   fi
19758 done
19759   done
19760 IFS=$as_save_IFS
19761
19762   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT="none"
19763   ;;
19764 esac
19765 fi
19766 XGETTEXT=$ac_cv_path_XGETTEXT
19767 if test -n "$XGETTEXT"; then
19768   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
19769 $as_echo "$XGETTEXT" >&6; }
19770 else
19771   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19772 $as_echo "no" >&6; }
19773 fi
19774
19775
19776   if test "$MSGFMT" != "none"; then
19777     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing bindtextdomain" >&5
19778 $as_echo_n "checking for library containing bindtextdomain... " >&6; }
19779 if ${ac_cv_search_bindtextdomain+:} false; then :
19780   $as_echo_n "(cached) " >&6
19781 else
19782   ac_func_search_save_LIBS=$LIBS
19783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19784 /* end confdefs.h.  */
19785
19786 /* Override any GCC internal prototype to avoid an error.
19787    Use char because int might match the return type of a GCC
19788    builtin and then its argument prototype would still apply.  */
19789 #ifdef __cplusplus
19790 extern "C"
19791 #endif
19792 char bindtextdomain ();
19793 int
19794 main ()
19795 {
19796 return bindtextdomain ();
19797   ;
19798   return 0;
19799 }
19800 _ACEOF
19801 for ac_lib in '' intl; do
19802   if test -z "$ac_lib"; then
19803     ac_res="none required"
19804   else
19805     ac_res=-l$ac_lib
19806     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
19807   fi
19808   if ac_fn_c_try_link "$LINENO"; then :
19809   ac_cv_search_bindtextdomain=$ac_res
19810 fi
19811 rm -f core conftest.err conftest.$ac_objext \
19812     conftest$ac_exeext
19813   if ${ac_cv_search_bindtextdomain+:} false; then :
19814   break
19815 fi
19816 done
19817 if ${ac_cv_search_bindtextdomain+:} false; then :
19818
19819 else
19820   ac_cv_search_bindtextdomain=no
19821 fi
19822 rm conftest.$ac_ext
19823 LIBS=$ac_func_search_save_LIBS
19824 fi
19825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_bindtextdomain" >&5
19826 $as_echo "$ac_cv_search_bindtextdomain" >&6; }
19827 ac_res=$ac_cv_search_bindtextdomain
19828 if test "$ac_res" != no; then :
19829   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19830
19831                       # in case libintl needs to be linked explicitly,
19832                       # $ac_cv_search_bindtextdomain contains -l linker flags
19833                       if echo "$ac_cv_search_bindtextdomain" | grep '^-l' >/dev/null
19834                       then
19835                         SVN_INTL_LIBS="$ac_cv_search_bindtextdomain"
19836                       fi
19837
19838 else
19839
19840                     enable_nls="no"
19841
19842 fi
19843
19844     if test "$enable_nls" = "no"; then
19845       # Destroy the cached result so we can test again
19846       unset ac_cv_search_bindtextdomain
19847       # On some systems, libintl needs libiconv to link properly,
19848       # so try again with -liconv.
19849       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing bindtextdomain" >&5
19850 $as_echo_n "checking for library containing bindtextdomain... " >&6; }
19851 if ${ac_cv_search_bindtextdomain+:} false; then :
19852   $as_echo_n "(cached) " >&6
19853 else
19854   ac_func_search_save_LIBS=$LIBS
19855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19856 /* end confdefs.h.  */
19857
19858 /* Override any GCC internal prototype to avoid an error.
19859    Use char because int might match the return type of a GCC
19860    builtin and then its argument prototype would still apply.  */
19861 #ifdef __cplusplus
19862 extern "C"
19863 #endif
19864 char bindtextdomain ();
19865 int
19866 main ()
19867 {
19868 return bindtextdomain ();
19869   ;
19870   return 0;
19871 }
19872 _ACEOF
19873 for ac_lib in '' intl; do
19874   if test -z "$ac_lib"; then
19875     ac_res="none required"
19876   else
19877     ac_res=-l$ac_lib
19878     LIBS="-l$ac_lib -liconv $ac_func_search_save_LIBS"
19879   fi
19880   if ac_fn_c_try_link "$LINENO"; then :
19881   ac_cv_search_bindtextdomain=$ac_res
19882 fi
19883 rm -f core conftest.err conftest.$ac_objext \
19884     conftest$ac_exeext
19885   if ${ac_cv_search_bindtextdomain+:} false; then :
19886   break
19887 fi
19888 done
19889 if ${ac_cv_search_bindtextdomain+:} false; then :
19890
19891 else
19892   ac_cv_search_bindtextdomain=no
19893 fi
19894 rm conftest.$ac_ext
19895 LIBS=$ac_func_search_save_LIBS
19896 fi
19897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_bindtextdomain" >&5
19898 $as_echo "$ac_cv_search_bindtextdomain" >&6; }
19899 ac_res=$ac_cv_search_bindtextdomain
19900 if test "$ac_res" != no; then :
19901   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19902
19903                       enable_nls="yes"
19904                       if echo "$ac_cv_search_bindtextdomain" | grep '^-l' >/dev/null
19905                       then
19906                         SVN_INTL_LIBS="$ac_cv_search_bindtextdomain"
19907                       fi
19908                       # This is here so that -liconv ends up in LIBS
19909                       # if it worked with -liconv.
19910                       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libiconv_open in -liconv" >&5
19911 $as_echo_n "checking for libiconv_open in -liconv... " >&6; }
19912 if ${ac_cv_lib_iconv_libiconv_open+:} false; then :
19913   $as_echo_n "(cached) " >&6
19914 else
19915   ac_check_lib_save_LIBS=$LIBS
19916 LIBS="-liconv  $LIBS"
19917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19918 /* end confdefs.h.  */
19919
19920 /* Override any GCC internal prototype to avoid an error.
19921    Use char because int might match the return type of a GCC
19922    builtin and then its argument prototype would still apply.  */
19923 #ifdef __cplusplus
19924 extern "C"
19925 #endif
19926 char libiconv_open ();
19927 int
19928 main ()
19929 {
19930 return libiconv_open ();
19931   ;
19932   return 0;
19933 }
19934 _ACEOF
19935 if ac_fn_c_try_link "$LINENO"; then :
19936   ac_cv_lib_iconv_libiconv_open=yes
19937 else
19938   ac_cv_lib_iconv_libiconv_open=no
19939 fi
19940 rm -f core conftest.err conftest.$ac_objext \
19941     conftest$ac_exeext conftest.$ac_ext
19942 LIBS=$ac_check_lib_save_LIBS
19943 fi
19944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_iconv_libiconv_open" >&5
19945 $as_echo "$ac_cv_lib_iconv_libiconv_open" >&6; }
19946 if test "x$ac_cv_lib_iconv_libiconv_open" = xyes; then :
19947   cat >>confdefs.h <<_ACEOF
19948 #define HAVE_LIBICONV 1
19949 _ACEOF
19950
19951   LIBS="-liconv $LIBS"
19952
19953 fi
19954
19955
19956 else
19957
19958                       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: bindtextdomain() not found.  Disabling NLS." >&5
19959 $as_echo "$as_me: WARNING: bindtextdomain() not found.  Disabling NLS." >&2;}
19960                       enable_nls="no"
19961
19962 fi
19963
19964     fi
19965     if test "$enable_nls" = "yes"; then
19966
19967 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
19968
19969       USE_NLS="yes"
19970     fi
19971   fi
19972 fi
19973
19974
19975
19976
19977
19978 GETTEXT_CODESET=\#
19979 NO_GETTEXT_CODESET=\#
19980 if test $USE_NLS = "yes"; then
19981    for ac_func in bind_textdomain_codeset
19982 do :
19983   ac_fn_c_check_func "$LINENO" "bind_textdomain_codeset" "ac_cv_func_bind_textdomain_codeset"
19984 if test "x$ac_cv_func_bind_textdomain_codeset" = xyes; then :
19985   cat >>confdefs.h <<_ACEOF
19986 #define HAVE_BIND_TEXTDOMAIN_CODESET 1
19987 _ACEOF
19988   GETTEXT_CODESET=""
19989 else
19990    NO_GETTEXT_CODESET=""
19991 fi
19992 done
19993
19994 fi
19995
19996
19997
19998 # Check if we are using GNU gettext.
19999 GNU_GETTEXT=no
20000 MSGFMTFLAGS=''
20001 if test $USE_NLS = "yes"; then
20002    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we are using GNU gettext" >&5
20003 $as_echo_n "checking if we are using GNU gettext... " >&6; }
20004    if $MSGFMT --version 2>&1 | $EGREP GNU > /dev/null; then
20005       GNU_GETTEXT=yes
20006       MSGFMTFLAGS='-c'
20007    fi
20008    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNU_GETTEXT" >&5
20009 $as_echo "$GNU_GETTEXT" >&6; }
20010 fi
20011
20012
20013
20014 libmagic_found=no
20015
20016
20017 # Check whether --with-libmagic was given.
20018 if test "${with_libmagic+set}" = set; then :
20019   withval=$with_libmagic;
20020   if test "$withval" = "yes" ; then
20021     ac_fn_c_check_header_mongrel "$LINENO" "magic.h" "ac_cv_header_magic_h" "$ac_includes_default"
20022 if test "x$ac_cv_header_magic_h" = xyes; then :
20023
20024       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for magic_open in -lmagic" >&5
20025 $as_echo_n "checking for magic_open in -lmagic... " >&6; }
20026 if ${ac_cv_lib_magic_magic_open+:} false; then :
20027   $as_echo_n "(cached) " >&6
20028 else
20029   ac_check_lib_save_LIBS=$LIBS
20030 LIBS="-lmagic  $LIBS"
20031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20032 /* end confdefs.h.  */
20033
20034 /* Override any GCC internal prototype to avoid an error.
20035    Use char because int might match the return type of a GCC
20036    builtin and then its argument prototype would still apply.  */
20037 #ifdef __cplusplus
20038 extern "C"
20039 #endif
20040 char magic_open ();
20041 int
20042 main ()
20043 {
20044 return magic_open ();
20045   ;
20046   return 0;
20047 }
20048 _ACEOF
20049 if ac_fn_c_try_link "$LINENO"; then :
20050   ac_cv_lib_magic_magic_open=yes
20051 else
20052   ac_cv_lib_magic_magic_open=no
20053 fi
20054 rm -f core conftest.err conftest.$ac_objext \
20055     conftest$ac_exeext conftest.$ac_ext
20056 LIBS=$ac_check_lib_save_LIBS
20057 fi
20058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_magic_magic_open" >&5
20059 $as_echo "$ac_cv_lib_magic_magic_open" >&6; }
20060 if test "x$ac_cv_lib_magic_magic_open" = xyes; then :
20061   libmagic_found="builtin"
20062 fi
20063
20064
20065 fi
20066
20067
20068     libmagic_prefix="the default locations"
20069   elif test "$withval" != "no"; then
20070     libmagic_prefix=$withval
20071     save_cppflags="$CPPFLAGS"
20072     CPPFLAGS="$CPPFLAGS -I$libmagic_prefix/include"
20073     for ac_header in magic.h
20074 do :
20075   ac_fn_c_check_header_mongrel "$LINENO" "magic.h" "ac_cv_header_magic_h" "$ac_includes_default"
20076 if test "x$ac_cv_header_magic_h" = xyes; then :
20077   cat >>confdefs.h <<_ACEOF
20078 #define HAVE_MAGIC_H 1
20079 _ACEOF
20080
20081       save_ldflags="$LDFLAGS"
20082       LDFLAGS="-L$libmagic_prefix/lib $LDFLAGS"
20083       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for magic_open in -lmagic" >&5
20084 $as_echo_n "checking for magic_open in -lmagic... " >&6; }
20085 if ${ac_cv_lib_magic_magic_open+:} false; then :
20086   $as_echo_n "(cached) " >&6
20087 else
20088   ac_check_lib_save_LIBS=$LIBS
20089 LIBS="-lmagic  $LIBS"
20090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20091 /* end confdefs.h.  */
20092
20093 /* Override any GCC internal prototype to avoid an error.
20094    Use char because int might match the return type of a GCC
20095    builtin and then its argument prototype would still apply.  */
20096 #ifdef __cplusplus
20097 extern "C"
20098 #endif
20099 char magic_open ();
20100 int
20101 main ()
20102 {
20103 return magic_open ();
20104   ;
20105   return 0;
20106 }
20107 _ACEOF
20108 if ac_fn_c_try_link "$LINENO"; then :
20109   ac_cv_lib_magic_magic_open=yes
20110 else
20111   ac_cv_lib_magic_magic_open=no
20112 fi
20113 rm -f core conftest.err conftest.$ac_objext \
20114     conftest$ac_exeext conftest.$ac_ext
20115 LIBS=$ac_check_lib_save_LIBS
20116 fi
20117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_magic_magic_open" >&5
20118 $as_echo "$ac_cv_lib_magic_magic_open" >&6; }
20119 if test "x$ac_cv_lib_magic_magic_open" = xyes; then :
20120   libmagic_found="yes"
20121 fi
20122
20123       LDFLAGS="$save_ldflags"
20124
20125 fi
20126
20127 done
20128
20129     CPPFLAGS="$save_cppflags"
20130   fi
20131   if test "$withval" != "no" && test "$libmagic_found" = "no"; then
20132     as_fn_error $? "--with-libmagic requested, but libmagic not found at $libmagic_prefix" "$LINENO" 5
20133   fi
20134
20135 else
20136
20137   ac_fn_c_check_header_mongrel "$LINENO" "magic.h" "ac_cv_header_magic_h" "$ac_includes_default"
20138 if test "x$ac_cv_header_magic_h" = xyes; then :
20139
20140     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for magic_open in -lmagic" >&5
20141 $as_echo_n "checking for magic_open in -lmagic... " >&6; }
20142 if ${ac_cv_lib_magic_magic_open+:} false; then :
20143   $as_echo_n "(cached) " >&6
20144 else
20145   ac_check_lib_save_LIBS=$LIBS
20146 LIBS="-lmagic  $LIBS"
20147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20148 /* end confdefs.h.  */
20149
20150 /* Override any GCC internal prototype to avoid an error.
20151    Use char because int might match the return type of a GCC
20152    builtin and then its argument prototype would still apply.  */
20153 #ifdef __cplusplus
20154 extern "C"
20155 #endif
20156 char magic_open ();
20157 int
20158 main ()
20159 {
20160 return magic_open ();
20161   ;
20162   return 0;
20163 }
20164 _ACEOF
20165 if ac_fn_c_try_link "$LINENO"; then :
20166   ac_cv_lib_magic_magic_open=yes
20167 else
20168   ac_cv_lib_magic_magic_open=no
20169 fi
20170 rm -f core conftest.err conftest.$ac_objext \
20171     conftest$ac_exeext conftest.$ac_ext
20172 LIBS=$ac_check_lib_save_LIBS
20173 fi
20174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_magic_magic_open" >&5
20175 $as_echo "$ac_cv_lib_magic_magic_open" >&6; }
20176 if test "x$ac_cv_lib_magic_magic_open" = xyes; then :
20177   libmagic_found="builtin"
20178 fi
20179
20180
20181 fi
20182
20183
20184
20185 fi
20186
20187
20188 if test "$libmagic_found" != "no"; then
20189
20190 $as_echo "#define SVN_HAVE_LIBMAGIC 1" >>confdefs.h
20191
20192   SVN_MAGIC_LIBS="-lmagic"
20193 fi
20194
20195 if test "$libmagic_found" = "yes"; then
20196   SVN_MAGIC_INCLUDES="-I$libmagic_prefix/include"
20197   LDFLAGS="$LDFLAGS `
20198   input_flags="-L$libmagic_prefix/lib"
20199   output_flags=""
20200   filtered_dirs="/lib /lib64 /usr/lib /usr/lib64"
20201   for flag in $input_flags; do
20202     filter="no"
20203     for dir in $filtered_dirs; do
20204       if test "$flag" = "-L$dir" || test "$flag" = "-L$dir/"; then
20205         filter="yes"
20206         break
20207       fi
20208     done
20209     if test "$filter" = "no"; then
20210       output_flags="$output_flags $flag"
20211     fi
20212   done
20213   if test -n "$output_flags"; then
20214     printf "%s" "${output_flags# }"
20215   fi
20216 `"
20217 fi
20218
20219
20220
20221
20222
20223
20224 # Check whether --with-kwallet was given.
20225 if test "${with_kwallet+set}" = set; then :
20226   withval=$with_kwallet; svn_lib_kwallet="$withval"
20227 else
20228   svn_lib_kwallet=no
20229 fi
20230
20231
20232   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to look for KWallet" >&5
20233 $as_echo_n "checking whether to look for KWallet... " >&6; }
20234   if test "$svn_lib_kwallet" != "no"; then
20235     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20236 $as_echo "yes" >&6; }
20237     case "$host" in
20238     *-*-darwin*)
20239       as_fn_error $? "--with-kwallet is not supported on Mac OS X." "$LINENO" 5
20240       ;;
20241     *)
20242       if test "$svn_enable_shared" = "yes"; then
20243         if test "$APR_HAS_DSO" = "yes"; then
20244           if test -n "$PKG_CONFIG"; then
20245             if test "$HAVE_DBUS" = "yes"; then
20246               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for QtCore, QtDBus, QtGui" >&5
20247 $as_echo_n "checking for QtCore, QtDBus, QtGui... " >&6; }
20248               if $PKG_CONFIG --exists QtCore QtDBus QtGui; then
20249                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20250 $as_echo "yes" >&6; }
20251                 if test "$svn_lib_kwallet" != "yes"; then
20252                   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kde4-config" >&5
20253 $as_echo_n "checking for kde4-config... " >&6; }
20254                   KDE4_CONFIG="$svn_lib_kwallet/bin/kde4-config"
20255                   if test -f "$KDE4_CONFIG" && test -x "$KDE4_CONFIG"; then
20256                     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20257 $as_echo "yes" >&6; }
20258                   else
20259                     KDE4_CONFIG=""
20260                     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20261 $as_echo "no" >&6; }
20262                   fi
20263                 else
20264                   # Extract the first word of "kde4-config", so it can be a program name with args.
20265 set dummy kde4-config; ac_word=$2
20266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20267 $as_echo_n "checking for $ac_word... " >&6; }
20268 if ${ac_cv_path_KDE4_CONFIG+:} false; then :
20269   $as_echo_n "(cached) " >&6
20270 else
20271   case $KDE4_CONFIG in
20272   [\\/]* | ?:[\\/]*)
20273   ac_cv_path_KDE4_CONFIG="$KDE4_CONFIG" # Let the user override the test with a path.
20274   ;;
20275   *)
20276   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20277 for as_dir in $PATH
20278 do
20279   IFS=$as_save_IFS
20280   test -z "$as_dir" && as_dir=.
20281     for ac_exec_ext in '' $ac_executable_extensions; do
20282   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20283     ac_cv_path_KDE4_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20284     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20285     break 2
20286   fi
20287 done
20288   done
20289 IFS=$as_save_IFS
20290
20291   ;;
20292 esac
20293 fi
20294 KDE4_CONFIG=$ac_cv_path_KDE4_CONFIG
20295 if test -n "$KDE4_CONFIG"; then
20296   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $KDE4_CONFIG" >&5
20297 $as_echo "$KDE4_CONFIG" >&6; }
20298 else
20299   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20300 $as_echo "no" >&6; }
20301 fi
20302
20303
20304                 fi
20305                 if test -n "$KDE4_CONFIG"; then
20306                   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for KWallet" >&5
20307 $as_echo_n "checking for KWallet... " >&6; }
20308                   old_CXXFLAGS="$CXXFLAGS"
20309                   old_LDFLAGS="$LDFLAGS"
20310                   old_LIBS="$LIBS"
20311                   for d in `$PKG_CONFIG --cflags QtCore QtDBus QtGui`; do
20312                     if test -n "`echo "$d" | $EGREP -- '^-D[^[:space:]]*'`"; then
20313                       CPPFLAGS="$CPPFLAGS $d"
20314                     fi
20315                   done
20316                   qt_include_dirs="`$PKG_CONFIG --cflags-only-I QtCore QtDBus QtGui`"
20317                   kde_incdir="`$KDE4_CONFIG --install include`"
20318                   SVN_KWALLET_INCLUDES="$DBUS_CPPFLAGS $qt_include_dirs -I$kde_incdir"
20319                   qt_libs_other_options="`$PKG_CONFIG --libs-only-other QtCore QtDBus QtGui`"
20320                   SVN_KWALLET_LIBS="$DBUS_LIBS -lQtCore -lQtDBus -lQtGui -lkdecore -lkdeui $qt_libs_other_options"
20321                   CXXFLAGS="$CXXFLAGS $SVN_KWALLET_INCLUDES"
20322                   LIBS="$LIBS $SVN_KWALLET_LIBS"
20323                   qt_lib_dirs="`$PKG_CONFIG --libs-only-L QtCore QtDBus QtGui`"
20324                   kde_libdir="`$KDE4_CONFIG --install lib`"
20325                   LDFLAGS="$old_LDFLAGS `
20326   input_flags="$qt_lib_dirs -L$kde_libdir"
20327   output_flags=""
20328   filtered_dirs="/lib /lib64 /usr/lib /usr/lib64"
20329   for flag in $input_flags; do
20330     filter="no"
20331     for dir in $filtered_dirs; do
20332       if test "$flag" = "-L$dir" || test "$flag" = "-L$dir/"; then
20333         filter="yes"
20334         break
20335       fi
20336     done
20337     if test "$filter" = "no"; then
20338       output_flags="$output_flags $flag"
20339     fi
20340   done
20341   if test -n "$output_flags"; then
20342     printf "%s" "${output_flags# }"
20343   fi
20344 `"
20345                   ac_ext=cpp
20346 ac_cpp='$CXXCPP $CPPFLAGS'
20347 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20348 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20349 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20350
20351                   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20352 /* end confdefs.h.  */
20353
20354 #include <kwallet.h>
20355 int main()
20356 {KWallet::Wallet::walletList();}
20357 _ACEOF
20358 if ac_fn_cxx_try_link "$LINENO"; then :
20359   svn_lib_kwallet="yes"
20360 else
20361   svn_lib_kwallet="no"
20362 fi
20363 rm -f core conftest.err conftest.$ac_objext \
20364     conftest$ac_exeext conftest.$ac_ext
20365                   ac_ext=c
20366 ac_cpp='$CPP $CPPFLAGS'
20367 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20368 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20369 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20370
20371                   if test "$svn_lib_kwallet" = "yes"; then
20372                     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20373 $as_echo "yes" >&6; }
20374                     CXXFLAGS="$old_CXXFLAGS"
20375                     LIBS="$old_LIBS"
20376                   else
20377                     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20378 $as_echo "no" >&6; }
20379                     as_fn_error $? "cannot find KWallet" "$LINENO" 5
20380                   fi
20381                 else
20382                   as_fn_error $? "cannot find kde4-config" "$LINENO" 5
20383                 fi
20384               else
20385                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20386 $as_echo "no" >&6; }
20387                 as_fn_error $? "cannot find QtCore, QtDBus, QtGui" "$LINENO" 5
20388               fi
20389             else
20390               as_fn_error $? "cannot find D-Bus" "$LINENO" 5
20391             fi
20392           else
20393             as_fn_error $? "cannot find pkg-config" "$LINENO" 5
20394           fi
20395         else
20396           as_fn_error $? "APR does not have support for DSOs" "$LINENO" 5
20397         fi
20398       else
20399         as_fn_error $? "--with-kwallet conflicts with --disable-shared" "$LINENO" 5
20400       fi
20401     ;;
20402     esac
20403   else
20404     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20405 $as_echo "no" >&6; }
20406   fi
20407
20408
20409
20410
20411 if test "$svn_lib_kwallet" = "yes"; then
20412
20413 $as_echo "#define SVN_HAVE_KWALLET 1" >>confdefs.h
20414
20415 fi
20416
20417 # Check whether --enable-plaintext-password-storage was given.
20418 if test "${enable_plaintext_password_storage+set}" = set; then :
20419   enableval=$enable_plaintext_password_storage;
20420    if test "$enableval" = "no"; then
20421       { $as_echo "$as_me:${as_lineno-$LINENO}: Disabling plaintext password/passphrase storage" >&5
20422 $as_echo "$as_me: Disabling plaintext password/passphrase storage" >&6;}
20423
20424 $as_echo "#define SVN_DISABLE_PLAINTEXT_PASSWORD_STORAGE 1" >>confdefs.h
20425
20426    fi
20427
20428 fi
20429
20430
20431
20432 INSTALL_STATIC_RULES="install-bin install-docs"
20433 INSTALL_RULES="install-fsmod-lib install-ramod-lib install-lib install-include install-static"
20434 INSTALL_RULES="$INSTALL_RULES $INSTALL_APACHE_RULE"
20435 BUILD_RULES="fsmod-lib ramod-lib lib bin test sub-test $BUILD_APACHE_RULE tools"
20436
20437 if test "$svn_lib_berkeley_db" = "yes"; then
20438   BUILD_RULES="$BUILD_RULES bdb-lib bdb-test"
20439   INSTALL_RULES="`echo $INSTALL_RULES | $SED 's/install-fsmod-lib/install-fsmod-lib install-bdb-lib/'`"
20440   INSTALL_STATIC_RULES="$INSTALL_STATIC_RULES install-bdb-lib"
20441   BDB_TEST_DEPS="\$(BDB_TEST_DEPS)"
20442   BDB_TEST_PROGRAMS="\$(BDB_TEST_PROGRAMS)"
20443 fi
20444
20445 if test "$svn_lib_serf" = "yes"; then
20446   BUILD_RULES="$BUILD_RULES serf-lib"
20447   INSTALL_RULES="`echo $INSTALL_RULES | $SED 's/install-ramod-lib/install-ramod-lib install-serf-lib/'`"
20448   INSTALL_STATIC_RULES="$INSTALL_STATIC_RULES install-serf-lib"
20449 fi
20450
20451 if test "$svn_lib_kwallet" = "yes"; then
20452   BUILD_RULES="$BUILD_RULES kwallet-lib"
20453   INSTALL_RULES="`echo $INSTALL_RULES | $SED 's/install-lib/install-lib install-kwallet-lib/'`"
20454   INSTALL_STATIC_RULES="$INSTALL_STATIC_RULES install-kwallet-lib"
20455 fi
20456
20457 if test "$found_gnome_keyring" = "yes"; then
20458   BUILD_RULES="$BUILD_RULES gnome-keyring-lib"
20459   INSTALL_RULES="`echo $INSTALL_RULES | $SED 's/install-lib/install-lib install-gnome-keyring-lib/'`"
20460   INSTALL_STATIC_RULES="$INSTALL_STATIC_RULES install-gnome-keyring-lib"
20461 fi
20462
20463 if test "$USE_NLS" = "yes"; then
20464   BUILD_RULES="$BUILD_RULES locale"
20465   INSTALL_RULES="$INSTALL_RULES install-locale"
20466 fi
20467
20468
20469
20470
20471
20472
20473
20474
20475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
20476 $as_echo_n "checking for ANSI C header files... " >&6; }
20477 if ${ac_cv_header_stdc+:} false; then :
20478   $as_echo_n "(cached) " >&6
20479 else
20480   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20481 /* end confdefs.h.  */
20482 #include <stdlib.h>
20483 #include <stdarg.h>
20484 #include <string.h>
20485 #include <float.h>
20486
20487 int
20488 main ()
20489 {
20490
20491   ;
20492   return 0;
20493 }
20494 _ACEOF
20495 if ac_fn_c_try_compile "$LINENO"; then :
20496   ac_cv_header_stdc=yes
20497 else
20498   ac_cv_header_stdc=no
20499 fi
20500 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20501
20502 if test $ac_cv_header_stdc = yes; then
20503   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
20504   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20505 /* end confdefs.h.  */
20506 #include <string.h>
20507
20508 _ACEOF
20509 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20510   $EGREP "memchr" >/dev/null 2>&1; then :
20511
20512 else
20513   ac_cv_header_stdc=no
20514 fi
20515 rm -f conftest*
20516
20517 fi
20518
20519 if test $ac_cv_header_stdc = yes; then
20520   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
20521   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20522 /* end confdefs.h.  */
20523 #include <stdlib.h>
20524
20525 _ACEOF
20526 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20527   $EGREP "free" >/dev/null 2>&1; then :
20528
20529 else
20530   ac_cv_header_stdc=no
20531 fi
20532 rm -f conftest*
20533
20534 fi
20535
20536 if test $ac_cv_header_stdc = yes; then
20537   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
20538   if test "$cross_compiling" = yes; then :
20539   :
20540 else
20541   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20542 /* end confdefs.h.  */
20543 #include <ctype.h>
20544 #include <stdlib.h>
20545 #if ((' ' & 0x0FF) == 0x020)
20546 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
20547 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
20548 #else
20549 # define ISLOWER(c) \
20550                    (('a' <= (c) && (c) <= 'i') \
20551                      || ('j' <= (c) && (c) <= 'r') \
20552                      || ('s' <= (c) && (c) <= 'z'))
20553 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
20554 #endif
20555
20556 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
20557 int
20558 main ()
20559 {
20560   int i;
20561   for (i = 0; i < 256; i++)
20562     if (XOR (islower (i), ISLOWER (i))
20563         || toupper (i) != TOUPPER (i))
20564       return 2;
20565   return 0;
20566 }
20567 _ACEOF
20568 if ac_fn_c_try_run "$LINENO"; then :
20569
20570 else
20571   ac_cv_header_stdc=no
20572 fi
20573 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20574   conftest.$ac_objext conftest.beam conftest.$ac_ext
20575 fi
20576
20577 fi
20578 fi
20579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
20580 $as_echo "$ac_cv_header_stdc" >&6; }
20581 if test $ac_cv_header_stdc = yes; then
20582
20583 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
20584
20585 fi
20586
20587
20588
20589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
20590 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
20591 if ${ac_cv_c_const+:} false; then :
20592   $as_echo_n "(cached) " >&6
20593 else
20594   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20595 /* end confdefs.h.  */
20596
20597 int
20598 main ()
20599 {
20600
20601 #ifndef __cplusplus
20602   /* Ultrix mips cc rejects this sort of thing.  */
20603   typedef int charset[2];
20604   const charset cs = { 0, 0 };
20605   /* SunOS 4.1.1 cc rejects this.  */
20606   char const *const *pcpcc;
20607   char **ppc;
20608   /* NEC SVR4.0.2 mips cc rejects this.  */
20609   struct point {int x, y;};
20610   static struct point const zero = {0,0};
20611   /* AIX XL C 1.02.0.0 rejects this.
20612      It does not let you subtract one const X* pointer from another in
20613      an arm of an if-expression whose if-part is not a constant
20614      expression */
20615   const char *g = "string";
20616   pcpcc = &g + (g ? g-g : 0);
20617   /* HPUX 7.0 cc rejects these. */
20618   ++pcpcc;
20619   ppc = (char**) pcpcc;
20620   pcpcc = (char const *const *) ppc;
20621   { /* SCO 3.2v4 cc rejects this sort of thing.  */
20622     char tx;
20623     char *t = &tx;
20624     char const *s = 0 ? (char *) 0 : (char const *) 0;
20625
20626     *t++ = 0;
20627     if (s) return 0;
20628   }
20629   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
20630     int x[] = {25, 17};
20631     const int *foo = &x[0];
20632     ++foo;
20633   }
20634   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
20635     typedef const int *iptr;
20636     iptr p = 0;
20637     ++p;
20638   }
20639   { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
20640        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
20641     struct s { int j; const int *ap[3]; } bx;
20642     struct s *b = &bx; b->j = 5;
20643   }
20644   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
20645     const int foo = 10;
20646     if (!foo) return 0;
20647   }
20648   return !cs[0] && !zero.x;
20649 #endif
20650
20651   ;
20652   return 0;
20653 }
20654 _ACEOF
20655 if ac_fn_c_try_compile "$LINENO"; then :
20656   ac_cv_c_const=yes
20657 else
20658   ac_cv_c_const=no
20659 fi
20660 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20661 fi
20662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
20663 $as_echo "$ac_cv_c_const" >&6; }
20664 if test $ac_cv_c_const = no; then
20665
20666 $as_echo "#define const /**/" >>confdefs.h
20667
20668 fi
20669
20670
20671 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
20672 if test "x$ac_cv_type_size_t" = xyes; then :
20673
20674 else
20675
20676 cat >>confdefs.h <<_ACEOF
20677 #define size_t unsigned int
20678 _ACEOF
20679
20680 fi
20681
20682
20683
20684
20685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
20686 $as_echo_n "checking for working memcmp... " >&6; }
20687 if ${ac_cv_func_memcmp_working+:} false; then :
20688   $as_echo_n "(cached) " >&6
20689 else
20690   if test "$cross_compiling" = yes; then :
20691   ac_cv_func_memcmp_working=no
20692 else
20693   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20694 /* end confdefs.h.  */
20695 $ac_includes_default
20696 int
20697 main ()
20698 {
20699
20700   /* Some versions of memcmp are not 8-bit clean.  */
20701   char c0 = '\100', c1 = '\200', c2 = '\201';
20702   if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
20703     return 1;
20704
20705   /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
20706      or more and with at least one buffer not starting on a 4-byte boundary.
20707      William Lewis provided this test program.   */
20708   {
20709     char foo[21];
20710     char bar[21];
20711     int i;
20712     for (i = 0; i < 4; i++)
20713       {
20714         char *a = foo + i;
20715         char *b = bar + i;
20716         strcpy (a, "--------01111111");
20717         strcpy (b, "--------10000000");
20718         if (memcmp (a, b, 16) >= 0)
20719           return 1;
20720       }
20721     return 0;
20722   }
20723
20724   ;
20725   return 0;
20726 }
20727 _ACEOF
20728 if ac_fn_c_try_run "$LINENO"; then :
20729   ac_cv_func_memcmp_working=yes
20730 else
20731   ac_cv_func_memcmp_working=no
20732 fi
20733 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20734   conftest.$ac_objext conftest.beam conftest.$ac_ext
20735 fi
20736
20737 fi
20738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
20739 $as_echo "$ac_cv_func_memcmp_working" >&6; }
20740 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
20741   *" memcmp.$ac_objext "* ) ;;
20742   *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
20743  ;;
20744 esac
20745
20746
20747
20748 for ac_func in vprintf
20749 do :
20750   ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
20751 if test "x$ac_cv_func_vprintf" = xyes; then :
20752   cat >>confdefs.h <<_ACEOF
20753 #define HAVE_VPRINTF 1
20754 _ACEOF
20755
20756 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
20757 if test "x$ac_cv_func__doprnt" = xyes; then :
20758
20759 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
20760
20761 fi
20762
20763 fi
20764 done
20765
20766
20767
20768 for ac_func in symlink readlink
20769 do :
20770   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20771 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20772 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
20773   cat >>confdefs.h <<_ACEOF
20774 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20775 _ACEOF
20776
20777 fi
20778 done
20779
20780
20781 for ac_header in sys/utsname.h
20782 do :
20783   ac_fn_c_check_header_mongrel "$LINENO" "sys/utsname.h" "ac_cv_header_sys_utsname_h" "$ac_includes_default"
20784 if test "x$ac_cv_header_sys_utsname_h" = xyes; then :
20785   cat >>confdefs.h <<_ACEOF
20786 #define HAVE_SYS_UTSNAME_H 1
20787 _ACEOF
20788  for ac_func in uname
20789 do :
20790   ac_fn_c_check_func "$LINENO" "uname" "ac_cv_func_uname"
20791 if test "x$ac_cv_func_uname" = xyes; then :
20792   cat >>confdefs.h <<_ACEOF
20793 #define HAVE_UNAME 1
20794 _ACEOF
20795
20796 fi
20797 done
20798
20799 fi
20800
20801 done
20802
20803
20804 ac_fn_c_check_header_mongrel "$LINENO" "termios.h" "ac_cv_header_termios_h" "$ac_includes_default"
20805 if test "x$ac_cv_header_termios_h" = xyes; then :
20806
20807   for ac_func in tcgetattr tcsetattr
20808 do :
20809   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20810 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20811 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
20812   cat >>confdefs.h <<_ACEOF
20813 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20814 _ACEOF
20815
20816
20817 $as_echo "#define HAVE_TERMIOS_H 1" >>confdefs.h
20818
20819
20820 fi
20821 done
20822
20823
20824 fi
20825
20826
20827
20828
20829 # Check whether --enable-debug was given.
20830 if test "${enable_debug+set}" = set; then :
20831   enableval=$enable_debug;
20832     if test "$enableval" = "yes" ; then
20833       enable_debugging="yes"
20834     else
20835       enable_debugging="no"
20836     fi
20837
20838 else
20839
20840     # Neither --enable-debug nor --disable-debug was passed.
20841     enable_debugging="maybe"
20842
20843 fi
20844
20845
20846 # Check whether --enable-optimize was given.
20847 if test "${enable_optimize+set}" = set; then :
20848   enableval=$enable_optimize;
20849     if test "$enableval" = "yes" ; then
20850       enable_optimization="yes"
20851     else
20852       enable_optimization="no"
20853     fi
20854
20855 else
20856
20857     # Neither --enable-optimize nor --disable-optimize was passed.
20858     enable_optimization="maybe"
20859
20860 fi
20861
20862
20863 # Check whether --enable-disallowing-of-undefined-references was given.
20864 if test "${enable_disallowing_of_undefined_references+set}" = set; then :
20865   enableval=$enable_disallowing_of_undefined_references;
20866 fi
20867
20868 if test "$enable_disallowing_of_undefined_references" != "yes" && test "`uname`" != "Linux"; then
20869   enable_disallowing_of_undefined_references="no"
20870 fi
20871 if test "$enable_disallowing_of_undefined_references" != "no"; then
20872   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -Wl,--no-undefined" >&5
20873 $as_echo_n "checking for -Wl,--no-undefined... " >&6; }
20874   old_LDFLAGS="$LDFLAGS"
20875   LDFLAGS="$LDFLAGS -Wl,--no-undefined"
20876   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20877 /* end confdefs.h.  */
20878 int main(){;}
20879 _ACEOF
20880 if ac_fn_c_try_link "$LINENO"; then :
20881   svn_wl_no_undefined="yes"
20882 else
20883   svn_wl_no_undefined="no"
20884 fi
20885 rm -f core conftest.err conftest.$ac_objext \
20886     conftest$ac_exeext conftest.$ac_ext
20887   LDFLAGS="$old_LDFLAGS"
20888   if test "$svn_wl_no_undefined" = "yes"; then
20889     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20890 $as_echo "yes" >&6; }
20891     for library_dir in "$abs_srcdir/subversion/libsvn_"*; do
20892       eval "`basename $library_dir`_LDFLAGS=-Wl,--no-undefined"
20893     done
20894   else
20895     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20896 $as_echo "no" >&6; }
20897     if test "$enable_disallowing_of_undefined_references" = "yes"; then
20898       as_fn_error $? "--enable-disallowing-of-undefined-references explicitly requested, but -Wl,--no-undefined not supported" "$LINENO" 5
20899     fi
20900   fi
20901 fi
20902
20903
20904
20905
20906
20907
20908
20909
20910
20911
20912
20913
20914
20915
20916
20917
20918
20919
20920 # Check whether --enable-maintainer-mode was given.
20921 if test "${enable_maintainer_mode+set}" = set; then :
20922   enableval=$enable_maintainer_mode;
20923     if test "$enableval" = "yes" ; then
20924       if test "$enable_debugging" = "no" ; then
20925         as_fn_error $? "Can't have --disable-debug and --enable-maintainer-mode" "$LINENO" 5
20926       fi
20927       enable_debugging=yes
20928
20929                   if test "$GCC" = "yes"; then
20930         { $as_echo "$as_me:${as_lineno-$LINENO}: maintainer-mode: adding GCC warning flags" >&5
20931 $as_echo "$as_me: maintainer-mode: adding GCC warning flags" >&6;}
20932
20933
20934                 CFLAGS_KEEP="$CFLAGS"
20935         CFLAGS=""
20936
20937
20938   _svn_xxflags__save="$CFLAGS"
20939   ac_ext=c
20940 ac_cpp='$CPP $CPPFLAGS'
20941 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20942 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20943 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20944
20945   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -Werror=implicit-function-declaration" >&5
20946 $as_echo_n "checking if $CC accepts -Werror=implicit-function-declaration... " >&6; }
20947   CFLAGS="-Werror=implicit-function-declaration $CFLAGS"
20948         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20949 /* end confdefs.h.  */
20950 int main(void){return 0;}
20951 _ACEOF
20952 if ac_fn_c_try_link "$LINENO"; then :
20953
20954     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20955 $as_echo "yes" >&6; }
20956
20957
20958 else
20959
20960     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20961 $as_echo "no" >&6; }
20962     CFLAGS="$_svn_xxflags__save"
20963
20964
20965 fi
20966 rm -f core conftest.err conftest.$ac_objext \
20967     conftest$ac_exeext conftest.$ac_ext
20968   ac_ext=c
20969 ac_cpp='$CPP $CPPFLAGS'
20970 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20971 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20972 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20973
20974
20975
20976   _svn_xxflags__save="$CFLAGS"
20977   ac_ext=c
20978 ac_cpp='$CPP $CPPFLAGS'
20979 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20980 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20981 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20982
20983   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -Werror=declaration-after-statement" >&5
20984 $as_echo_n "checking if $CC accepts -Werror=declaration-after-statement... " >&6; }
20985   CFLAGS="-Werror=declaration-after-statement $CFLAGS"
20986         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20987 /* end confdefs.h.  */
20988 int main(void){return 0;}
20989 _ACEOF
20990 if ac_fn_c_try_link "$LINENO"; then :
20991
20992     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20993 $as_echo "yes" >&6; }
20994
20995
20996 else
20997
20998     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20999 $as_echo "no" >&6; }
21000     CFLAGS="$_svn_xxflags__save"
21001
21002
21003 fi
21004 rm -f core conftest.err conftest.$ac_objext \
21005     conftest$ac_exeext conftest.$ac_ext
21006   ac_ext=c
21007 ac_cpp='$CPP $CPPFLAGS'
21008 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21009 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21010 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21011
21012
21013
21014   _svn_xxflags__save="$CFLAGS"
21015   ac_ext=c
21016 ac_cpp='$CPP $CPPFLAGS'
21017 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21018 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21019 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21020
21021   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -Wextra-tokens" >&5
21022 $as_echo_n "checking if $CC accepts -Wextra-tokens... " >&6; }
21023   CFLAGS="-Wextra-tokens $CFLAGS"
21024         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21025 /* end confdefs.h.  */
21026 int main(void){return 0;}
21027 _ACEOF
21028 if ac_fn_c_try_link "$LINENO"; then :
21029
21030     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21031 $as_echo "yes" >&6; }
21032
21033
21034 else
21035
21036     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21037 $as_echo "no" >&6; }
21038     CFLAGS="$_svn_xxflags__save"
21039
21040
21041 fi
21042 rm -f core conftest.err conftest.$ac_objext \
21043     conftest$ac_exeext conftest.$ac_ext
21044   ac_ext=c
21045 ac_cpp='$CPP $CPPFLAGS'
21046 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21047 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21048 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21049
21050
21051
21052   _svn_xxflags__save="$CFLAGS"
21053   ac_ext=c
21054 ac_cpp='$CPP $CPPFLAGS'
21055 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21056 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21057 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21058
21059   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -Wnewline-eof" >&5
21060 $as_echo_n "checking if $CC accepts -Wnewline-eof... " >&6; }
21061   CFLAGS="-Wnewline-eof $CFLAGS"
21062         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21063 /* end confdefs.h.  */
21064 int main(void){return 0;}
21065 _ACEOF
21066 if ac_fn_c_try_link "$LINENO"; then :
21067
21068     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21069 $as_echo "yes" >&6; }
21070
21071
21072 else
21073
21074     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21075 $as_echo "no" >&6; }
21076     CFLAGS="$_svn_xxflags__save"
21077
21078
21079 fi
21080 rm -f core conftest.err conftest.$ac_objext \
21081     conftest$ac_exeext conftest.$ac_ext
21082   ac_ext=c
21083 ac_cpp='$CPP $CPPFLAGS'
21084 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21085 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21086 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21087
21088
21089
21090   _svn_xxflags__save="$CFLAGS"
21091   ac_ext=c
21092 ac_cpp='$CPP $CPPFLAGS'
21093 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21094 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21095 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21096
21097   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -Wshorten-64-to-32" >&5
21098 $as_echo_n "checking if $CC accepts -Wshorten-64-to-32... " >&6; }
21099   CFLAGS="-Wshorten-64-to-32 $CFLAGS"
21100         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21101 /* end confdefs.h.  */
21102 int main(void){return 0;}
21103 _ACEOF
21104 if ac_fn_c_try_link "$LINENO"; then :
21105
21106     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21107 $as_echo "yes" >&6; }
21108
21109
21110 else
21111
21112     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21113 $as_echo "no" >&6; }
21114     CFLAGS="$_svn_xxflags__save"
21115
21116
21117 fi
21118 rm -f core conftest.err conftest.$ac_objext \
21119     conftest$ac_exeext conftest.$ac_ext
21120   ac_ext=c
21121 ac_cpp='$CPP $CPPFLAGS'
21122 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21123 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21124 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21125
21126
21127
21128   _svn_xxflags__save="$CFLAGS"
21129   ac_ext=c
21130 ac_cpp='$CPP $CPPFLAGS'
21131 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21132 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21133 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21134
21135   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -Wold-style-definition" >&5
21136 $as_echo_n "checking if $CC accepts -Wold-style-definition... " >&6; }
21137   CFLAGS="-Wold-style-definition $CFLAGS"
21138         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21139 /* end confdefs.h.  */
21140 int main(void){return 0;}
21141 _ACEOF
21142 if ac_fn_c_try_link "$LINENO"; then :
21143
21144     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21145 $as_echo "yes" >&6; }
21146
21147
21148 else
21149
21150     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21151 $as_echo "no" >&6; }
21152     CFLAGS="$_svn_xxflags__save"
21153
21154
21155 fi
21156 rm -f core conftest.err conftest.$ac_objext \
21157     conftest$ac_exeext conftest.$ac_ext
21158   ac_ext=c
21159 ac_cpp='$CPP $CPPFLAGS'
21160 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21161 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21162 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21163
21164
21165
21166   _svn_xxflags__save="$CFLAGS"
21167   ac_ext=c
21168 ac_cpp='$CPP $CPPFLAGS'
21169 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21170 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21171 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21172
21173   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -Wno-system-headers" >&5
21174 $as_echo_n "checking if $CC accepts -Wno-system-headers... " >&6; }
21175   CFLAGS="-Wno-system-headers $CFLAGS"
21176         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21177 /* end confdefs.h.  */
21178 int main(void){return 0;}
21179 _ACEOF
21180 if ac_fn_c_try_link "$LINENO"; then :
21181
21182     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21183 $as_echo "yes" >&6; }
21184
21185
21186 else
21187
21188     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21189 $as_echo "no" >&6; }
21190     CFLAGS="$_svn_xxflags__save"
21191
21192
21193 fi
21194 rm -f core conftest.err conftest.$ac_objext \
21195     conftest$ac_exeext conftest.$ac_ext
21196   ac_ext=c
21197 ac_cpp='$CPP $CPPFLAGS'
21198 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21199 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21200 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21201
21202
21203
21204   _svn_xxflags__save="$CFLAGS"
21205   ac_ext=c
21206 ac_cpp='$CPP $CPPFLAGS'
21207 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21208 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21209 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21210
21211   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -Wno-format-nonliteral" >&5
21212 $as_echo_n "checking if $CC accepts -Wno-format-nonliteral... " >&6; }
21213   CFLAGS="-Wno-format-nonliteral $CFLAGS"
21214         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21215 /* end confdefs.h.  */
21216 int main(void){return 0;}
21217 _ACEOF
21218 if ac_fn_c_try_link "$LINENO"; then :
21219
21220     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21221 $as_echo "yes" >&6; }
21222
21223
21224 else
21225
21226     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21227 $as_echo "no" >&6; }
21228     CFLAGS="$_svn_xxflags__save"
21229
21230
21231 fi
21232 rm -f core conftest.err conftest.$ac_objext \
21233     conftest$ac_exeext conftest.$ac_ext
21234   ac_ext=c
21235 ac_cpp='$CPP $CPPFLAGS'
21236 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21237 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21238 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21239
21240
21241
21242   _svn_xxflags__save="$CFLAGS"
21243   ac_ext=c
21244 ac_cpp='$CPP $CPPFLAGS'
21245 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21246 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21247 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21248
21249   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -Wmissing-variable-declarations" >&5
21250 $as_echo_n "checking if $CC accepts -Wmissing-variable-declarations... " >&6; }
21251   CFLAGS="-Wmissing-variable-declarations $CFLAGS"
21252         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21253 /* end confdefs.h.  */
21254 int main(void){return 0;}
21255 _ACEOF
21256 if ac_fn_c_try_link "$LINENO"; then :
21257
21258     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21259 $as_echo "yes" >&6; }
21260
21261
21262 else
21263
21264     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21265 $as_echo "no" >&6; }
21266     CFLAGS="$_svn_xxflags__save"
21267
21268
21269 fi
21270 rm -f core conftest.err conftest.$ac_objext \
21271     conftest$ac_exeext conftest.$ac_ext
21272   ac_ext=c
21273 ac_cpp='$CPP $CPPFLAGS'
21274 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21275 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21276 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21277
21278
21279
21280         CMAINTAINERFLAGS="$CFLAGS"
21281         CFLAGS="$CFLAGS_KEEP"
21282
21283                 CMAINTAINERFLAGS="-Wall -Wpointer-arith -Wwrite-strings -Wshadow -Wformat=2 -Wunused -Waggregate-return -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wno-multichar -Wredundant-decls -Wnested-externs -Winline -Wno-long-long -Wbad-function-cast $CMAINTAINERFLAGS"
21284       fi
21285       if test "$GXX" = "yes"; then
21286         { $as_echo "$as_me:${as_lineno-$LINENO}: maintainer-mode: adding G++ warning flags" >&5
21287 $as_echo "$as_me: maintainer-mode: adding G++ warning flags" >&6;}
21288
21289                 CXXFLAGS_KEEP="$CXXFLAGS"
21290         CXXFLAGS=""
21291
21292
21293   _svn_xxflags__save="$CXXFLAGS"
21294   ac_ext=cpp
21295 ac_cpp='$CXXCPP $CPPFLAGS'
21296 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21297 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21298 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21299
21300   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CXX accepts -Wextra-tokens" >&5
21301 $as_echo_n "checking if $CXX accepts -Wextra-tokens... " >&6; }
21302   CXXFLAGS="-Wextra-tokens $CXXFLAGS"
21303         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21304 /* end confdefs.h.  */
21305 int main(){}
21306 _ACEOF
21307 if ac_fn_cxx_try_link "$LINENO"; then :
21308
21309     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21310 $as_echo "yes" >&6; }
21311
21312
21313 else
21314
21315     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21316 $as_echo "no" >&6; }
21317     CXXFLAGS="$_svn_xxflags__save"
21318
21319
21320 fi
21321 rm -f core conftest.err conftest.$ac_objext \
21322     conftest$ac_exeext conftest.$ac_ext
21323   ac_ext=c
21324 ac_cpp='$CPP $CPPFLAGS'
21325 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21326 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21327 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21328
21329
21330
21331   _svn_xxflags__save="$CXXFLAGS"
21332   ac_ext=cpp
21333 ac_cpp='$CXXCPP $CPPFLAGS'
21334 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21335 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21336 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21337
21338   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CXX accepts -Wnewline-eof" >&5
21339 $as_echo_n "checking if $CXX accepts -Wnewline-eof... " >&6; }
21340   CXXFLAGS="-Wnewline-eof $CXXFLAGS"
21341         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21342 /* end confdefs.h.  */
21343 int main(){}
21344 _ACEOF
21345 if ac_fn_cxx_try_link "$LINENO"; then :
21346
21347     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21348 $as_echo "yes" >&6; }
21349
21350
21351 else
21352
21353     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21354 $as_echo "no" >&6; }
21355     CXXFLAGS="$_svn_xxflags__save"
21356
21357
21358 fi
21359 rm -f core conftest.err conftest.$ac_objext \
21360     conftest$ac_exeext conftest.$ac_ext
21361   ac_ext=c
21362 ac_cpp='$CPP $CPPFLAGS'
21363 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21364 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21365 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21366
21367
21368
21369   _svn_xxflags__save="$CXXFLAGS"
21370   ac_ext=cpp
21371 ac_cpp='$CXXCPP $CPPFLAGS'
21372 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21373 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21374 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21375
21376   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CXX accepts -Wshorten-64-to-32" >&5
21377 $as_echo_n "checking if $CXX accepts -Wshorten-64-to-32... " >&6; }
21378   CXXFLAGS="-Wshorten-64-to-32 $CXXFLAGS"
21379         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21380 /* end confdefs.h.  */
21381 int main(){}
21382 _ACEOF
21383 if ac_fn_cxx_try_link "$LINENO"; then :
21384
21385     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21386 $as_echo "yes" >&6; }
21387
21388
21389 else
21390
21391     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21392 $as_echo "no" >&6; }
21393     CXXFLAGS="$_svn_xxflags__save"
21394
21395
21396 fi
21397 rm -f core conftest.err conftest.$ac_objext \
21398     conftest$ac_exeext conftest.$ac_ext
21399   ac_ext=c
21400 ac_cpp='$CPP $CPPFLAGS'
21401 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21402 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21403 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21404
21405
21406
21407   _svn_xxflags__save="$CXXFLAGS"
21408   ac_ext=cpp
21409 ac_cpp='$CXXCPP $CPPFLAGS'
21410 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21411 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21412 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21413
21414   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CXX accepts -Wno-system-headers" >&5
21415 $as_echo_n "checking if $CXX accepts -Wno-system-headers... " >&6; }
21416   CXXFLAGS="-Wno-system-headers $CXXFLAGS"
21417         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21418 /* end confdefs.h.  */
21419 int main(){}
21420 _ACEOF
21421 if ac_fn_cxx_try_link "$LINENO"; then :
21422
21423     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21424 $as_echo "yes" >&6; }
21425
21426
21427 else
21428
21429     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21430 $as_echo "no" >&6; }
21431     CXXFLAGS="$_svn_xxflags__save"
21432
21433
21434 fi
21435 rm -f core conftest.err conftest.$ac_objext \
21436     conftest$ac_exeext conftest.$ac_ext
21437   ac_ext=c
21438 ac_cpp='$CPP $CPPFLAGS'
21439 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21440 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21441 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21442
21443
21444
21445         CXXMAINTAINERFLAGS="$CXXFLAGS"
21446         CXXFLAGS="$CXXFLAGS_KEEP"
21447
21448                 CXXMAINTAINERFLAGS="-Wall -Wpointer-arith -Wwrite-strings -Wshadow -Wunused -Wunreachable-code $CXXMAINTAINERFLAGS"
21449       fi
21450     fi
21451
21452 fi
21453
21454
21455 if test "$enable_debugging" = "yes" ; then
21456       if test "$enable_optimization" != "yes"; then
21457     { $as_echo "$as_me:${as_lineno-$LINENO}: Disabling optimizations for debugging" >&5
21458 $as_echo "$as_me: Disabling optimizations for debugging" >&6;}
21459     CFLAGS="`echo $CFLAGS' ' | $SED -e 's/-O[^ ]* //g'`"
21460     CXXFLAGS="`echo $CXXFLAGS' ' | $SED -e 's/-O[^ ]* //g'`"
21461   fi
21462     if test -z "`echo $CUSERFLAGS' ' | $EGREP -- '-g[0-9]? '`"; then
21463     { $as_echo "$as_me:${as_lineno-$LINENO}: Enabling debugging for C" >&5
21464 $as_echo "$as_me: Enabling debugging for C" >&6;}
21465     CFLAGS="`echo $CFLAGS' ' | $SED -e 's/-g[0-9] //g' -e 's/-g //g'`"
21466
21467   _svn_xxflags__save="$CFLAGS"
21468   ac_ext=c
21469 ac_cpp='$CPP $CPPFLAGS'
21470 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21471 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21472 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21473
21474   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -fno-inline" >&5
21475 $as_echo_n "checking if $CC accepts -fno-inline... " >&6; }
21476   CFLAGS="-fno-inline $CFLAGS"
21477         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21478 /* end confdefs.h.  */
21479 int main(void){return 0;}
21480 _ACEOF
21481 if ac_fn_c_try_link "$LINENO"; then :
21482
21483     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21484 $as_echo "yes" >&6; }
21485
21486
21487 else
21488
21489     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21490 $as_echo "no" >&6; }
21491     CFLAGS="$_svn_xxflags__save"
21492
21493
21494 fi
21495 rm -f core conftest.err conftest.$ac_objext \
21496     conftest$ac_exeext conftest.$ac_ext
21497   ac_ext=c
21498 ac_cpp='$CPP $CPPFLAGS'
21499 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21500 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21501 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21502
21503
21504
21505   _svn_xxflags__save="$CFLAGS"
21506   ac_ext=c
21507 ac_cpp='$CPP $CPPFLAGS'
21508 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21509 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21510 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21511
21512   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -fno-omit-frame-pointer" >&5
21513 $as_echo_n "checking if $CC accepts -fno-omit-frame-pointer... " >&6; }
21514   CFLAGS="-fno-omit-frame-pointer $CFLAGS"
21515         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21516 /* end confdefs.h.  */
21517 int main(void){return 0;}
21518 _ACEOF
21519 if ac_fn_c_try_link "$LINENO"; then :
21520
21521     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21522 $as_echo "yes" >&6; }
21523
21524
21525 else
21526
21527     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21528 $as_echo "no" >&6; }
21529     CFLAGS="$_svn_xxflags__save"
21530
21531
21532 fi
21533 rm -f core conftest.err conftest.$ac_objext \
21534     conftest$ac_exeext conftest.$ac_ext
21535   ac_ext=c
21536 ac_cpp='$CPP $CPPFLAGS'
21537 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21538 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21539 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21540
21541
21542
21543   _svn_xxflags__save="$CFLAGS"
21544   ac_ext=c
21545 ac_cpp='$CPP $CPPFLAGS'
21546 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21547 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21548 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21549
21550   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -g3" >&5
21551 $as_echo_n "checking if $CC accepts -g3... " >&6; }
21552   CFLAGS="-g3 $CFLAGS"
21553         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21554 /* end confdefs.h.  */
21555 int main(void){return 0;}
21556 _ACEOF
21557 if ac_fn_c_try_link "$LINENO"; then :
21558
21559     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21560 $as_echo "yes" >&6; }
21561
21562
21563 else
21564
21565     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21566 $as_echo "no" >&6; }
21567     CFLAGS="$_svn_xxflags__save"
21568
21569
21570   _svn_xxflags__save="$CFLAGS"
21571   ac_ext=c
21572 ac_cpp='$CPP $CPPFLAGS'
21573 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21574 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21575 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21576
21577   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -g2" >&5
21578 $as_echo_n "checking if $CC accepts -g2... " >&6; }
21579   CFLAGS="-g2 $CFLAGS"
21580         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21581 /* end confdefs.h.  */
21582 int main(void){return 0;}
21583 _ACEOF
21584 if ac_fn_c_try_link "$LINENO"; then :
21585
21586     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21587 $as_echo "yes" >&6; }
21588
21589
21590 else
21591
21592     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21593 $as_echo "no" >&6; }
21594     CFLAGS="$_svn_xxflags__save"
21595
21596
21597   _svn_xxflags__save="$CFLAGS"
21598   ac_ext=c
21599 ac_cpp='$CPP $CPPFLAGS'
21600 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21601 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21602 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21603
21604   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -g" >&5
21605 $as_echo_n "checking if $CC accepts -g... " >&6; }
21606   CFLAGS="-g $CFLAGS"
21607         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21608 /* end confdefs.h.  */
21609 int main(void){return 0;}
21610 _ACEOF
21611 if ac_fn_c_try_link "$LINENO"; then :
21612
21613     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21614 $as_echo "yes" >&6; }
21615
21616
21617 else
21618
21619     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21620 $as_echo "no" >&6; }
21621     CFLAGS="$_svn_xxflags__save"
21622
21623
21624 fi
21625 rm -f core conftest.err conftest.$ac_objext \
21626     conftest$ac_exeext conftest.$ac_ext
21627   ac_ext=c
21628 ac_cpp='$CPP $CPPFLAGS'
21629 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21630 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21631 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21632
21633
21634
21635 fi
21636 rm -f core conftest.err conftest.$ac_objext \
21637     conftest$ac_exeext conftest.$ac_ext
21638   ac_ext=c
21639 ac_cpp='$CPP $CPPFLAGS'
21640 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21641 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21642 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21643
21644
21645
21646 fi
21647 rm -f core conftest.err conftest.$ac_objext \
21648     conftest$ac_exeext conftest.$ac_ext
21649   ac_ext=c
21650 ac_cpp='$CPP $CPPFLAGS'
21651 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21652 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21653 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21654
21655
21656   fi
21657   if test -z "`echo $CXXUSERFLAGS' ' | $EGREP -- '-g[0-9]? '`"; then
21658     { $as_echo "$as_me:${as_lineno-$LINENO}: Enabling debugging for C++" >&5
21659 $as_echo "$as_me: Enabling debugging for C++" >&6;}
21660     CXXFLAGS="`echo $CXXFLAGS' ' | $SED -e 's/-g[0-9] //g' -e 's/-g //g'`"
21661
21662   _svn_xxflags__save="$CXXFLAGS"
21663   ac_ext=cpp
21664 ac_cpp='$CXXCPP $CPPFLAGS'
21665 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21666 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21667 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21668
21669   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CXX accepts -fno-inline" >&5
21670 $as_echo_n "checking if $CXX accepts -fno-inline... " >&6; }
21671   CXXFLAGS="-fno-inline $CXXFLAGS"
21672         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21673 /* end confdefs.h.  */
21674 int main(){}
21675 _ACEOF
21676 if ac_fn_cxx_try_link "$LINENO"; then :
21677
21678     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21679 $as_echo "yes" >&6; }
21680
21681
21682 else
21683
21684     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21685 $as_echo "no" >&6; }
21686     CXXFLAGS="$_svn_xxflags__save"
21687
21688
21689 fi
21690 rm -f core conftest.err conftest.$ac_objext \
21691     conftest$ac_exeext conftest.$ac_ext
21692   ac_ext=c
21693 ac_cpp='$CPP $CPPFLAGS'
21694 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21695 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21696 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21697
21698
21699
21700   _svn_xxflags__save="$CXXFLAGS"
21701   ac_ext=cpp
21702 ac_cpp='$CXXCPP $CPPFLAGS'
21703 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21704 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21705 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21706
21707   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CXX accepts -fno-omit-frame-pointer" >&5
21708 $as_echo_n "checking if $CXX accepts -fno-omit-frame-pointer... " >&6; }
21709   CXXFLAGS="-fno-omit-frame-pointer $CXXFLAGS"
21710         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21711 /* end confdefs.h.  */
21712 int main(){}
21713 _ACEOF
21714 if ac_fn_cxx_try_link "$LINENO"; then :
21715
21716     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21717 $as_echo "yes" >&6; }
21718
21719
21720 else
21721
21722     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21723 $as_echo "no" >&6; }
21724     CXXFLAGS="$_svn_xxflags__save"
21725
21726
21727 fi
21728 rm -f core conftest.err conftest.$ac_objext \
21729     conftest$ac_exeext conftest.$ac_ext
21730   ac_ext=c
21731 ac_cpp='$CPP $CPPFLAGS'
21732 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21733 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21734 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21735
21736
21737
21738   _svn_xxflags__save="$CXXFLAGS"
21739   ac_ext=cpp
21740 ac_cpp='$CXXCPP $CPPFLAGS'
21741 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21742 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21743 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21744
21745   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CXX accepts -g3" >&5
21746 $as_echo_n "checking if $CXX accepts -g3... " >&6; }
21747   CXXFLAGS="-g3 $CXXFLAGS"
21748         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21749 /* end confdefs.h.  */
21750 int main(){}
21751 _ACEOF
21752 if ac_fn_cxx_try_link "$LINENO"; then :
21753
21754     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21755 $as_echo "yes" >&6; }
21756
21757
21758 else
21759
21760     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21761 $as_echo "no" >&6; }
21762     CXXFLAGS="$_svn_xxflags__save"
21763
21764
21765   _svn_xxflags__save="$CXXFLAGS"
21766   ac_ext=cpp
21767 ac_cpp='$CXXCPP $CPPFLAGS'
21768 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21769 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21770 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21771
21772   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CXX accepts -g2" >&5
21773 $as_echo_n "checking if $CXX accepts -g2... " >&6; }
21774   CXXFLAGS="-g2 $CXXFLAGS"
21775         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21776 /* end confdefs.h.  */
21777 int main(){}
21778 _ACEOF
21779 if ac_fn_cxx_try_link "$LINENO"; then :
21780
21781     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21782 $as_echo "yes" >&6; }
21783
21784
21785 else
21786
21787     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21788 $as_echo "no" >&6; }
21789     CXXFLAGS="$_svn_xxflags__save"
21790
21791
21792   _svn_xxflags__save="$CXXFLAGS"
21793   ac_ext=cpp
21794 ac_cpp='$CXXCPP $CPPFLAGS'
21795 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21796 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21797 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21798
21799   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CXX accepts -g" >&5
21800 $as_echo_n "checking if $CXX accepts -g... " >&6; }
21801   CXXFLAGS="-g $CXXFLAGS"
21802         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21803 /* end confdefs.h.  */
21804 int main(){}
21805 _ACEOF
21806 if ac_fn_cxx_try_link "$LINENO"; then :
21807
21808     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21809 $as_echo "yes" >&6; }
21810
21811
21812 else
21813
21814     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21815 $as_echo "no" >&6; }
21816     CXXFLAGS="$_svn_xxflags__save"
21817
21818
21819 fi
21820 rm -f core conftest.err conftest.$ac_objext \
21821     conftest$ac_exeext conftest.$ac_ext
21822   ac_ext=cpp
21823 ac_cpp='$CXXCPP $CPPFLAGS'
21824 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21825 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21826 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21827
21828
21829
21830 fi
21831 rm -f core conftest.err conftest.$ac_objext \
21832     conftest$ac_exeext conftest.$ac_ext
21833   ac_ext=cpp
21834 ac_cpp='$CXXCPP $CPPFLAGS'
21835 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21836 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21837 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21838
21839
21840
21841 fi
21842 rm -f core conftest.err conftest.$ac_objext \
21843     conftest$ac_exeext conftest.$ac_ext
21844   ac_ext=c
21845 ac_cpp='$CPP $CPPFLAGS'
21846 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21847 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21848 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21849
21850
21851   fi
21852       CFLAGS="$CFLAGS -DSVN_DEBUG -DAP_DEBUG"
21853   CXXFLAGS="$CXXFLAGS -DSVN_DEBUG -DAP_DEBUG"
21854 elif test "$enable_debugging" = "no" ; then
21855   { $as_echo "$as_me:${as_lineno-$LINENO}: Disabling debugging" >&5
21856 $as_echo "$as_me: Disabling debugging" >&6;}
21857   CFLAGS="`echo $CFLAGS' ' | $SED -e 's/-g[0-9] //g' -e 's/-g //g'`"
21858   CXXFLAGS="`echo $CXXFLAGS' ' | $SED -e 's/-g[0-9] //g' -e 's/-g //g'`"
21859     CFLAGS="$CFLAGS -DNDEBUG"
21860   CXXFLAGS="$CXXFLAGS -DNDEBUG"
21861 # elif test "$enable_debugging" = "maybe" ; then
21862 #   # do nothing
21863 fi
21864
21865 if test "$enable_optimization" = "yes"; then
21866     if test -z "`echo $CUSERFLAGS' ' | $EGREP -- '-O[^ ]* '`"; then
21867     CFLAGS="`echo $CFLAGS' ' | $SED -e 's/-O[^ ]* //g'`"
21868     if test "$enable_debugging" = "yes"; then
21869       { $as_echo "$as_me:${as_lineno-$LINENO}: Enabling optimizations for C (with debugging enabled)" >&5
21870 $as_echo "$as_me: Enabling optimizations for C (with debugging enabled)" >&6;}
21871
21872   _svn_xxflags__save="$CFLAGS"
21873   ac_ext=c
21874 ac_cpp='$CPP $CPPFLAGS'
21875 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21876 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21877 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21878
21879   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -O1" >&5
21880 $as_echo_n "checking if $CC accepts -O1... " >&6; }
21881   CFLAGS="-O1 $CFLAGS"
21882         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21883 /* end confdefs.h.  */
21884 int main(void){return 0;}
21885 _ACEOF
21886 if ac_fn_c_try_link "$LINENO"; then :
21887
21888     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21889 $as_echo "yes" >&6; }
21890
21891
21892 else
21893
21894     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21895 $as_echo "no" >&6; }
21896     CFLAGS="$_svn_xxflags__save"
21897
21898
21899   _svn_xxflags__save="$CFLAGS"
21900   ac_ext=c
21901 ac_cpp='$CPP $CPPFLAGS'
21902 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21903 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21904 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21905
21906   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -O" >&5
21907 $as_echo_n "checking if $CC accepts -O... " >&6; }
21908   CFLAGS="-O $CFLAGS"
21909         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21910 /* end confdefs.h.  */
21911 int main(void){return 0;}
21912 _ACEOF
21913 if ac_fn_c_try_link "$LINENO"; then :
21914
21915     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21916 $as_echo "yes" >&6; }
21917
21918
21919 else
21920
21921     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21922 $as_echo "no" >&6; }
21923     CFLAGS="$_svn_xxflags__save"
21924
21925
21926 fi
21927 rm -f core conftest.err conftest.$ac_objext \
21928     conftest$ac_exeext conftest.$ac_ext
21929   ac_ext=c
21930 ac_cpp='$CPP $CPPFLAGS'
21931 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21932 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21933 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21934
21935
21936
21937 fi
21938 rm -f core conftest.err conftest.$ac_objext \
21939     conftest$ac_exeext conftest.$ac_ext
21940   ac_ext=c
21941 ac_cpp='$CPP $CPPFLAGS'
21942 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21943 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21944 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21945
21946
21947     else
21948       { $as_echo "$as_me:${as_lineno-$LINENO}: Enabling optimizations for C" >&5
21949 $as_echo "$as_me: Enabling optimizations for C" >&6;}
21950
21951   _svn_xxflags__save="$CFLAGS"
21952   ac_ext=c
21953 ac_cpp='$CPP $CPPFLAGS'
21954 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21955 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21956 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21957
21958   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -O3" >&5
21959 $as_echo_n "checking if $CC accepts -O3... " >&6; }
21960   CFLAGS="-O3 $CFLAGS"
21961         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21962 /* end confdefs.h.  */
21963 int main(void){return 0;}
21964 _ACEOF
21965 if ac_fn_c_try_link "$LINENO"; then :
21966
21967     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21968 $as_echo "yes" >&6; }
21969
21970
21971 else
21972
21973     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21974 $as_echo "no" >&6; }
21975     CFLAGS="$_svn_xxflags__save"
21976
21977
21978   _svn_xxflags__save="$CFLAGS"
21979   ac_ext=c
21980 ac_cpp='$CPP $CPPFLAGS'
21981 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21982 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21983 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21984
21985   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -O2" >&5
21986 $as_echo_n "checking if $CC accepts -O2... " >&6; }
21987   CFLAGS="-O2 $CFLAGS"
21988         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21989 /* end confdefs.h.  */
21990 int main(void){return 0;}
21991 _ACEOF
21992 if ac_fn_c_try_link "$LINENO"; then :
21993
21994     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21995 $as_echo "yes" >&6; }
21996
21997
21998 else
21999
22000     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22001 $as_echo "no" >&6; }
22002     CFLAGS="$_svn_xxflags__save"
22003
22004
22005   _svn_xxflags__save="$CFLAGS"
22006   ac_ext=c
22007 ac_cpp='$CPP $CPPFLAGS'
22008 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22009 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22010 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22011
22012   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -O1" >&5
22013 $as_echo_n "checking if $CC accepts -O1... " >&6; }
22014   CFLAGS="-O1 $CFLAGS"
22015         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22016 /* end confdefs.h.  */
22017 int main(void){return 0;}
22018 _ACEOF
22019 if ac_fn_c_try_link "$LINENO"; then :
22020
22021     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22022 $as_echo "yes" >&6; }
22023
22024
22025 else
22026
22027     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22028 $as_echo "no" >&6; }
22029     CFLAGS="$_svn_xxflags__save"
22030
22031
22032   _svn_xxflags__save="$CFLAGS"
22033   ac_ext=c
22034 ac_cpp='$CPP $CPPFLAGS'
22035 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22036 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22037 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22038
22039   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -O" >&5
22040 $as_echo_n "checking if $CC accepts -O... " >&6; }
22041   CFLAGS="-O $CFLAGS"
22042         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22043 /* end confdefs.h.  */
22044 int main(void){return 0;}
22045 _ACEOF
22046 if ac_fn_c_try_link "$LINENO"; then :
22047
22048     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22049 $as_echo "yes" >&6; }
22050
22051
22052 else
22053
22054     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22055 $as_echo "no" >&6; }
22056     CFLAGS="$_svn_xxflags__save"
22057
22058
22059 fi
22060 rm -f core conftest.err conftest.$ac_objext \
22061     conftest$ac_exeext conftest.$ac_ext
22062   ac_ext=c
22063 ac_cpp='$CPP $CPPFLAGS'
22064 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22065 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22066 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22067
22068
22069
22070 fi
22071 rm -f core conftest.err conftest.$ac_objext \
22072     conftest$ac_exeext conftest.$ac_ext
22073   ac_ext=c
22074 ac_cpp='$CPP $CPPFLAGS'
22075 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22076 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22077 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22078
22079
22080
22081 fi
22082 rm -f core conftest.err conftest.$ac_objext \
22083     conftest$ac_exeext conftest.$ac_ext
22084   ac_ext=c
22085 ac_cpp='$CPP $CPPFLAGS'
22086 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22087 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22088 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22089
22090
22091
22092 fi
22093 rm -f core conftest.err conftest.$ac_objext \
22094     conftest$ac_exeext conftest.$ac_ext
22095   ac_ext=c
22096 ac_cpp='$CPP $CPPFLAGS'
22097 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22098 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22099 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22100
22101
22102
22103   _svn_xxflags__save="$CFLAGS"
22104   ac_ext=c
22105 ac_cpp='$CPP $CPPFLAGS'
22106 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22107 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22108 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22109
22110   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -Wno-clobbered" >&5
22111 $as_echo_n "checking if $CC accepts -Wno-clobbered... " >&6; }
22112   CFLAGS="-Wno-clobbered $CFLAGS"
22113         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22114 /* end confdefs.h.  */
22115 int main(void){return 0;}
22116 _ACEOF
22117 if ac_fn_c_try_link "$LINENO"; then :
22118
22119     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22120 $as_echo "yes" >&6; }
22121
22122
22123 else
22124
22125     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22126 $as_echo "no" >&6; }
22127     CFLAGS="$_svn_xxflags__save"
22128
22129
22130 fi
22131 rm -f core conftest.err conftest.$ac_objext \
22132     conftest$ac_exeext conftest.$ac_ext
22133   ac_ext=c
22134 ac_cpp='$CPP $CPPFLAGS'
22135 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22136 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22137 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22138
22139
22140
22141   _svn_xxflags__save="$CFLAGS"
22142   ac_ext=c
22143 ac_cpp='$CPP $CPPFLAGS'
22144 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22145 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22146 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22147
22148   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -flto" >&5
22149 $as_echo_n "checking if $CC accepts -flto... " >&6; }
22150   CFLAGS="-flto $CFLAGS"
22151         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22152 /* end confdefs.h.  */
22153 int main(void){return 0;}
22154 _ACEOF
22155 if ac_fn_c_try_link "$LINENO"; then :
22156
22157     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22158 $as_echo "yes" >&6; }
22159
22160
22161 else
22162
22163     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22164 $as_echo "no" >&6; }
22165     CFLAGS="$_svn_xxflags__save"
22166
22167
22168 fi
22169 rm -f core conftest.err conftest.$ac_objext \
22170     conftest$ac_exeext conftest.$ac_ext
22171   ac_ext=c
22172 ac_cpp='$CPP $CPPFLAGS'
22173 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22174 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22175 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22176
22177
22178     fi
22179   fi
22180   if test -z "`echo $CXXUSERFLAGS' ' | $EGREP -- '-O[^ ]* '`"; then
22181     CXXFLAGS="`echo $CXXFLAGS' ' | $SED -e 's/-O[^ ]* //g'`"
22182     if test "$enable_debugging" = "yes"; then
22183       { $as_echo "$as_me:${as_lineno-$LINENO}: Enabling optimizations for C++ (with debugging enabled)" >&5
22184 $as_echo "$as_me: Enabling optimizations for C++ (with debugging enabled)" >&6;}
22185
22186   _svn_xxflags__save="$CXXFLAGS"
22187   ac_ext=cpp
22188 ac_cpp='$CXXCPP $CPPFLAGS'
22189 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22190 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22191 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22192
22193   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CXX accepts -O1" >&5
22194 $as_echo_n "checking if $CXX accepts -O1... " >&6; }
22195   CXXFLAGS="-O1 $CXXFLAGS"
22196         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22197 /* end confdefs.h.  */
22198 int main(){}
22199 _ACEOF
22200 if ac_fn_cxx_try_link "$LINENO"; then :
22201
22202     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22203 $as_echo "yes" >&6; }
22204
22205
22206 else
22207
22208     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22209 $as_echo "no" >&6; }
22210     CXXFLAGS="$_svn_xxflags__save"
22211
22212
22213   _svn_xxflags__save="$CXXFLAGS"
22214   ac_ext=cpp
22215 ac_cpp='$CXXCPP $CPPFLAGS'
22216 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22217 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22218 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22219
22220   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CXX accepts -O" >&5
22221 $as_echo_n "checking if $CXX accepts -O... " >&6; }
22222   CXXFLAGS="-O $CXXFLAGS"
22223         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22224 /* end confdefs.h.  */
22225 int main(){}
22226 _ACEOF
22227 if ac_fn_cxx_try_link "$LINENO"; then :
22228
22229     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22230 $as_echo "yes" >&6; }
22231
22232
22233 else
22234
22235     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22236 $as_echo "no" >&6; }
22237     CXXFLAGS="$_svn_xxflags__save"
22238
22239
22240 fi
22241 rm -f core conftest.err conftest.$ac_objext \
22242     conftest$ac_exeext conftest.$ac_ext
22243   ac_ext=cpp
22244 ac_cpp='$CXXCPP $CPPFLAGS'
22245 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22246 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22247 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22248
22249
22250
22251 fi
22252 rm -f core conftest.err conftest.$ac_objext \
22253     conftest$ac_exeext conftest.$ac_ext
22254   ac_ext=c
22255 ac_cpp='$CPP $CPPFLAGS'
22256 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22257 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22258 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22259
22260
22261     else
22262       { $as_echo "$as_me:${as_lineno-$LINENO}: Enabling optimizations for C++" >&5
22263 $as_echo "$as_me: Enabling optimizations for C++" >&6;}
22264
22265   _svn_xxflags__save="$CXXFLAGS"
22266   ac_ext=cpp
22267 ac_cpp='$CXXCPP $CPPFLAGS'
22268 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22269 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22270 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22271
22272   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CXX accepts -O3" >&5
22273 $as_echo_n "checking if $CXX accepts -O3... " >&6; }
22274   CXXFLAGS="-O3 $CXXFLAGS"
22275         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22276 /* end confdefs.h.  */
22277 int main(){}
22278 _ACEOF
22279 if ac_fn_cxx_try_link "$LINENO"; then :
22280
22281     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22282 $as_echo "yes" >&6; }
22283
22284
22285 else
22286
22287     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22288 $as_echo "no" >&6; }
22289     CXXFLAGS="$_svn_xxflags__save"
22290
22291
22292   _svn_xxflags__save="$CXXFLAGS"
22293   ac_ext=cpp
22294 ac_cpp='$CXXCPP $CPPFLAGS'
22295 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22296 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22297 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22298
22299   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CXX accepts -O2" >&5
22300 $as_echo_n "checking if $CXX accepts -O2... " >&6; }
22301   CXXFLAGS="-O2 $CXXFLAGS"
22302         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22303 /* end confdefs.h.  */
22304 int main(){}
22305 _ACEOF
22306 if ac_fn_cxx_try_link "$LINENO"; then :
22307
22308     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22309 $as_echo "yes" >&6; }
22310
22311
22312 else
22313
22314     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22315 $as_echo "no" >&6; }
22316     CXXFLAGS="$_svn_xxflags__save"
22317
22318
22319   _svn_xxflags__save="$CXXFLAGS"
22320   ac_ext=cpp
22321 ac_cpp='$CXXCPP $CPPFLAGS'
22322 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22323 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22324 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22325
22326   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CXX accepts -O1" >&5
22327 $as_echo_n "checking if $CXX accepts -O1... " >&6; }
22328   CXXFLAGS="-O1 $CXXFLAGS"
22329         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22330 /* end confdefs.h.  */
22331 int main(){}
22332 _ACEOF
22333 if ac_fn_cxx_try_link "$LINENO"; then :
22334
22335     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22336 $as_echo "yes" >&6; }
22337
22338
22339 else
22340
22341     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22342 $as_echo "no" >&6; }
22343     CXXFLAGS="$_svn_xxflags__save"
22344
22345
22346   _svn_xxflags__save="$CXXFLAGS"
22347   ac_ext=cpp
22348 ac_cpp='$CXXCPP $CPPFLAGS'
22349 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22350 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22351 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22352
22353   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CXX accepts -O" >&5
22354 $as_echo_n "checking if $CXX accepts -O... " >&6; }
22355   CXXFLAGS="-O $CXXFLAGS"
22356         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22357 /* end confdefs.h.  */
22358 int main(){}
22359 _ACEOF
22360 if ac_fn_cxx_try_link "$LINENO"; then :
22361
22362     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22363 $as_echo "yes" >&6; }
22364
22365
22366 else
22367
22368     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22369 $as_echo "no" >&6; }
22370     CXXFLAGS="$_svn_xxflags__save"
22371
22372
22373 fi
22374 rm -f core conftest.err conftest.$ac_objext \
22375     conftest$ac_exeext conftest.$ac_ext
22376   ac_ext=cpp
22377 ac_cpp='$CXXCPP $CPPFLAGS'
22378 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22379 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22380 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22381
22382
22383
22384 fi
22385 rm -f core conftest.err conftest.$ac_objext \
22386     conftest$ac_exeext conftest.$ac_ext
22387   ac_ext=cpp
22388 ac_cpp='$CXXCPP $CPPFLAGS'
22389 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22390 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22391 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22392
22393
22394
22395 fi
22396 rm -f core conftest.err conftest.$ac_objext \
22397     conftest$ac_exeext conftest.$ac_ext
22398   ac_ext=cpp
22399 ac_cpp='$CXXCPP $CPPFLAGS'
22400 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22401 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22402 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22403
22404
22405
22406 fi
22407 rm -f core conftest.err conftest.$ac_objext \
22408     conftest$ac_exeext conftest.$ac_ext
22409   ac_ext=c
22410 ac_cpp='$CPP $CPPFLAGS'
22411 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22412 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22413 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22414
22415
22416
22417   _svn_xxflags__save="$CXXFLAGS"
22418   ac_ext=cpp
22419 ac_cpp='$CXXCPP $CPPFLAGS'
22420 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22421 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22422 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22423
22424   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CXX accepts -Wno-clobbered" >&5
22425 $as_echo_n "checking if $CXX accepts -Wno-clobbered... " >&6; }
22426   CXXFLAGS="-Wno-clobbered $CXXFLAGS"
22427         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22428 /* end confdefs.h.  */
22429 int main(){}
22430 _ACEOF
22431 if ac_fn_cxx_try_link "$LINENO"; then :
22432
22433     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22434 $as_echo "yes" >&6; }
22435
22436
22437 else
22438
22439     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22440 $as_echo "no" >&6; }
22441     CXXFLAGS="$_svn_xxflags__save"
22442
22443
22444 fi
22445 rm -f core conftest.err conftest.$ac_objext \
22446     conftest$ac_exeext conftest.$ac_ext
22447   ac_ext=c
22448 ac_cpp='$CPP $CPPFLAGS'
22449 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22450 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22451 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22452
22453
22454
22455   _svn_xxflags__save="$CXXFLAGS"
22456   ac_ext=cpp
22457 ac_cpp='$CXXCPP $CPPFLAGS'
22458 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22459 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22460 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22461
22462   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CXX accepts -flto" >&5
22463 $as_echo_n "checking if $CXX accepts -flto... " >&6; }
22464   CXXFLAGS="-flto $CXXFLAGS"
22465         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22466 /* end confdefs.h.  */
22467 int main(){}
22468 _ACEOF
22469 if ac_fn_cxx_try_link "$LINENO"; then :
22470
22471     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22472 $as_echo "yes" >&6; }
22473
22474
22475 else
22476
22477     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22478 $as_echo "no" >&6; }
22479     CXXFLAGS="$_svn_xxflags__save"
22480
22481
22482 fi
22483 rm -f core conftest.err conftest.$ac_objext \
22484     conftest$ac_exeext conftest.$ac_ext
22485   ac_ext=c
22486 ac_cpp='$CPP $CPPFLAGS'
22487 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22488 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22489 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22490
22491
22492     fi
22493   fi
22494 elif test "$enable_optimization" = "no"; then
22495     { $as_echo "$as_me:${as_lineno-$LINENO}: Disabling optimizations" >&5
22496 $as_echo "$as_me: Disabling optimizations" >&6;}
22497   CFLAGS="`echo $CFLAGS' ' | $SED -e 's/-O[^ ]* //g'`"
22498   CXXFLAGS="`echo $CXXFLAGS' ' | $SED -e 's/-O[^ ]* //g'`"
22499 # elif test "$enable_optimization" = "maybe" ; then
22500 #   # do nothing
22501 fi
22502
22503 { $as_echo "$as_me:${as_lineno-$LINENO}: C compiler flags: $CFLAGS" >&5
22504 $as_echo "$as_me: C compiler flags: $CFLAGS" >&6;}
22505 { $as_echo "$as_me:${as_lineno-$LINENO}:     user-defined: $CUSERFLAGS" >&5
22506 $as_echo "$as_me:     user-defined: $CUSERFLAGS" >&6;}
22507 { $as_echo "$as_me:${as_lineno-$LINENO}:  maintainer-mode: $CMAINTAINERFLAGS" >&5
22508 $as_echo "$as_me:  maintainer-mode: $CMAINTAINERFLAGS" >&6;}
22509 { $as_echo "$as_me:${as_lineno-$LINENO}: C++ compiler flags: $CXXFLAGS" >&5
22510 $as_echo "$as_me: C++ compiler flags: $CXXFLAGS" >&6;}
22511 { $as_echo "$as_me:${as_lineno-$LINENO}:       user-defined: $CXXUSERFLAGS" >&5
22512 $as_echo "$as_me:       user-defined: $CXXUSERFLAGS" >&6;}
22513 { $as_echo "$as_me:${as_lineno-$LINENO}:    maintainer-mode: $CXXMAINTAINERFLAGS" >&5
22514 $as_echo "$as_me:    maintainer-mode: $CXXMAINTAINERFLAGS" >&6;}
22515
22516 # Check whether --enable-full-version-match was given.
22517 if test "${enable_full_version_match+set}" = set; then :
22518   enableval=$enable_full_version_match;
22519     if test "$enableval" = "no" ; then
22520       { $as_echo "$as_me:${as_lineno-$LINENO}: Disabling svn full version matching" >&5
22521 $as_echo "$as_me: Disabling svn full version matching" >&6;}
22522
22523 $as_echo "#define SVN_DISABLE_FULL_VERSION_MATCH 1" >>confdefs.h
22524
22525     fi
22526
22527 fi
22528
22529
22530
22531 # Check whether --with-editor was given.
22532 if test "${with_editor+set}" = set; then :
22533   withval=$with_editor;
22534
22535     if test "$withval" = "yes" ; then
22536       as_fn_error $? "--with-editor requires an argument." "$LINENO" 5
22537     else
22538       SVN_CLIENT_EDITOR=$withval
22539
22540 cat >>confdefs.h <<_ACEOF
22541 #define SVN_CLIENT_EDITOR "$SVN_CLIENT_EDITOR"
22542 _ACEOF
22543
22544
22545     fi
22546
22547
22548 fi
22549
22550
22551
22552   zlib_found=no
22553
22554
22555 # Check whether --with-zlib was given.
22556 if test "${with_zlib+set}" = set; then :
22557   withval=$with_zlib;
22558     if test "$withval" = "yes" ; then
22559       ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
22560 if test "x$ac_cv_header_zlib_h" = xyes; then :
22561
22562         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
22563 $as_echo_n "checking for inflate in -lz... " >&6; }
22564 if ${ac_cv_lib_z_inflate+:} false; then :
22565   $as_echo_n "(cached) " >&6
22566 else
22567   ac_check_lib_save_LIBS=$LIBS
22568 LIBS="-lz  $LIBS"
22569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22570 /* end confdefs.h.  */
22571
22572 /* Override any GCC internal prototype to avoid an error.
22573    Use char because int might match the return type of a GCC
22574    builtin and then its argument prototype would still apply.  */
22575 #ifdef __cplusplus
22576 extern "C"
22577 #endif
22578 char inflate ();
22579 int
22580 main ()
22581 {
22582 return inflate ();
22583   ;
22584   return 0;
22585 }
22586 _ACEOF
22587 if ac_fn_c_try_link "$LINENO"; then :
22588   ac_cv_lib_z_inflate=yes
22589 else
22590   ac_cv_lib_z_inflate=no
22591 fi
22592 rm -f core conftest.err conftest.$ac_objext \
22593     conftest$ac_exeext conftest.$ac_ext
22594 LIBS=$ac_check_lib_save_LIBS
22595 fi
22596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
22597 $as_echo "$ac_cv_lib_z_inflate" >&6; }
22598 if test "x$ac_cv_lib_z_inflate" = xyes; then :
22599   zlib_found="builtin"
22600 fi
22601
22602
22603 fi
22604
22605
22606     elif test "$withval" = "no" ; then
22607       as_fn_error $? "cannot compile without zlib." "$LINENO" 5
22608     else
22609       { $as_echo "$as_me:${as_lineno-$LINENO}: zlib library configuration" >&5
22610 $as_echo "$as_me: zlib library configuration" >&6;}
22611       zlib_prefix=$withval
22612       save_cppflags="$CPPFLAGS"
22613       CPPFLAGS="$CPPFLAGS -I$zlib_prefix/include"
22614       for ac_header in zlib.h
22615 do :
22616   ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
22617 if test "x$ac_cv_header_zlib_h" = xyes; then :
22618   cat >>confdefs.h <<_ACEOF
22619 #define HAVE_ZLIB_H 1
22620 _ACEOF
22621
22622         save_ldflags="$LDFLAGS"
22623         LDFLAGS="$LDFLAGS -L$zlib_prefix/lib"
22624         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
22625 $as_echo_n "checking for inflate in -lz... " >&6; }
22626 if ${ac_cv_lib_z_inflate+:} false; then :
22627   $as_echo_n "(cached) " >&6
22628 else
22629   ac_check_lib_save_LIBS=$LIBS
22630 LIBS="-lz  $LIBS"
22631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22632 /* end confdefs.h.  */
22633
22634 /* Override any GCC internal prototype to avoid an error.
22635    Use char because int might match the return type of a GCC
22636    builtin and then its argument prototype would still apply.  */
22637 #ifdef __cplusplus
22638 extern "C"
22639 #endif
22640 char inflate ();
22641 int
22642 main ()
22643 {
22644 return inflate ();
22645   ;
22646   return 0;
22647 }
22648 _ACEOF
22649 if ac_fn_c_try_link "$LINENO"; then :
22650   ac_cv_lib_z_inflate=yes
22651 else
22652   ac_cv_lib_z_inflate=no
22653 fi
22654 rm -f core conftest.err conftest.$ac_objext \
22655     conftest$ac_exeext conftest.$ac_ext
22656 LIBS=$ac_check_lib_save_LIBS
22657 fi
22658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
22659 $as_echo "$ac_cv_lib_z_inflate" >&6; }
22660 if test "x$ac_cv_lib_z_inflate" = xyes; then :
22661   zlib_found="yes"
22662 fi
22663
22664         LDFLAGS="$save_ldflags"
22665
22666 fi
22667
22668 done
22669
22670       CPPFLAGS="$save_cppflags"
22671     fi
22672
22673 else
22674
22675     ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
22676 if test "x$ac_cv_header_zlib_h" = xyes; then :
22677
22678       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
22679 $as_echo_n "checking for inflate in -lz... " >&6; }
22680 if ${ac_cv_lib_z_inflate+:} false; then :
22681   $as_echo_n "(cached) " >&6
22682 else
22683   ac_check_lib_save_LIBS=$LIBS
22684 LIBS="-lz  $LIBS"
22685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22686 /* end confdefs.h.  */
22687
22688 /* Override any GCC internal prototype to avoid an error.
22689    Use char because int might match the return type of a GCC
22690    builtin and then its argument prototype would still apply.  */
22691 #ifdef __cplusplus
22692 extern "C"
22693 #endif
22694 char inflate ();
22695 int
22696 main ()
22697 {
22698 return inflate ();
22699   ;
22700   return 0;
22701 }
22702 _ACEOF
22703 if ac_fn_c_try_link "$LINENO"; then :
22704   ac_cv_lib_z_inflate=yes
22705 else
22706   ac_cv_lib_z_inflate=no
22707 fi
22708 rm -f core conftest.err conftest.$ac_objext \
22709     conftest$ac_exeext conftest.$ac_ext
22710 LIBS=$ac_check_lib_save_LIBS
22711 fi
22712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
22713 $as_echo "$ac_cv_lib_z_inflate" >&6; }
22714 if test "x$ac_cv_lib_z_inflate" = xyes; then :
22715   zlib_found="builtin"
22716 fi
22717
22718
22719 fi
22720
22721
22722
22723 fi
22724
22725
22726   if test "$zlib_found" = "no"; then
22727     as_fn_error $? "subversion requires zlib" "$LINENO" 5
22728   fi
22729
22730   if test "$zlib_found" = "yes"; then
22731     SVN_ZLIB_INCLUDES="-I$zlib_prefix/include"
22732     LDFLAGS="$LDFLAGS `
22733   input_flags="-L$zlib_prefix/lib"
22734   output_flags=""
22735   filtered_dirs="/lib /lib64 /usr/lib /usr/lib64"
22736   for flag in $input_flags; do
22737     filter="no"
22738     for dir in $filtered_dirs; do
22739       if test "$flag" = "-L$dir" || test "$flag" = "-L$dir/"; then
22740         filter="yes"
22741         break
22742       fi
22743     done
22744     if test "$filter" = "no"; then
22745       output_flags="$output_flags $flag"
22746     fi
22747   done
22748   if test -n "$output_flags"; then
22749     printf "%s" "${output_flags# }"
22750   fi
22751 `"
22752   fi
22753
22754   SVN_ZLIB_LIBS="-lz"
22755
22756
22757
22758
22759
22760 MOD_ACTIVATION=""
22761 # Check whether --enable-mod-activation was given.
22762 if test "${enable_mod_activation+set}" = set; then :
22763   enableval=$enable_mod_activation;
22764     if test "$enableval" = "yes" ; then
22765       MOD_ACTIVATION="-a"
22766       { $as_echo "$as_me:${as_lineno-$LINENO}: Enabling apache module activation" >&5
22767 $as_echo "$as_me: Enabling apache module activation" >&6;}
22768     else
22769       { $as_echo "$as_me:${as_lineno-$LINENO}: Disabling apache module activation" >&5
22770 $as_echo "$as_me: Disabling apache module activation" >&6;}
22771     fi
22772
22773 fi
22774
22775
22776
22777
22778
22779 # Check whether --enable-gcov was given.
22780 if test "${enable_gcov+set}" = set; then :
22781   enableval=$enable_gcov;
22782     if test "$enableval" = "yes" ; then
22783                   if test "$GCC" = "yes"; then
22784         if test "$svn_enable_shared" = "yes" ; then
22785           as_fn_error $? "Can't have --enable-gcov without --disable-shared (we
22786                         recommend also using --enable-all-static)." "$LINENO" 5
22787         fi
22788         if test ! "$enable_all_static" = "yes" ; then
22789           { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: We recommend --enable-all-static with --enable-gcov." >&5
22790 $as_echo "$as_me: WARNING: We recommend --enable-all-static with --enable-gcov." >&2;}
22791         fi
22792         { $as_echo "$as_me:${as_lineno-$LINENO}: Enabling gcov coverage testing." >&5
22793 $as_echo "$as_me: Enabling gcov coverage testing." >&6;}
22794         CFLAGS="$CFLAGS -fprofile-arcs -ftest-coverage"
22795         CXXFLAGS="$CXXFLAGS -fprofile-arcs -ftest-coverage"
22796       else
22797         as_fn_error $? "We only support --enable-gcov with GCC right now." "$LINENO" 5
22798       fi
22799     fi
22800
22801 fi
22802
22803
22804 # Check whether --enable-gprof was given.
22805 if test "${enable_gprof+set}" = set; then :
22806   enableval=$enable_gprof;
22807     if test "$enableval" = "yes" ; then
22808                   if test "$GCC" = "yes"; then
22809         if test "$svn_enable_shared" = "yes" ; then
22810           as_fn_error $? "Can't have --enable-gprof without --disable-shared (we
22811                         recommend also using --enable-all-static)." "$LINENO" 5
22812         fi
22813         if test ! "$enable_all_static" = "yes" ; then
22814           { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: We recommend --enable-all-static with --enable-gprof." >&5
22815 $as_echo "$as_me: WARNING: We recommend --enable-all-static with --enable-gprof." >&2;}
22816         fi
22817         { $as_echo "$as_me:${as_lineno-$LINENO}: Enabling gprof profiling data (to gmon.out)." >&5
22818 $as_echo "$as_me: Enabling gprof profiling data (to gmon.out)." >&6;}
22819         CFLAGS="$CFLAGS -pg"
22820         CXXFLAGS="$CXXFLAGS -pg"
22821         LT_LDFLAGS="$LT_LDFLAGS -pg"
22822       else
22823         as_fn_error $? "We only support --enable-gprof with GCC right now." "$LINENO" 5
22824       fi
22825     fi
22826
22827 fi
22828
22829
22830
22831 # Scripting and Bindings languages
22832
22833 # Python: Used for testsuite, and bindings
22834
22835
22836 PYTHON="`$abs_srcdir/build/find_python.sh`"
22837 if test -z "$PYTHON"; then
22838   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Python 2.7 or later is required to run the testsuite" >&5
22839 $as_echo "$as_me: WARNING: Python 2.7 or later is required to run the testsuite" >&2;}
22840   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: or to use the Subversion Python bindings" >&5
22841 $as_echo "$as_me: WARNING: or to use the Subversion Python bindings" >&2;}
22842   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: " >&5
22843 $as_echo "$as_me: WARNING: " >&2;}
22844   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: If you have a suitable Python installed, but not on the" >&5
22845 $as_echo "$as_me: WARNING: If you have a suitable Python installed, but not on the" >&2;}
22846   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PATH, set the environment variable PYTHON to the full path" >&5
22847 $as_echo "$as_me: WARNING: PATH, set the environment variable PYTHON to the full path" >&2;}
22848   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: to the Python executable, and re-run configure" >&5
22849 $as_echo "$as_me: WARNING: to the Python executable, and re-run configure" >&2;}
22850 fi
22851 for ac_prog in "$PYTHON"
22852 do
22853   # Extract the first word of "$ac_prog", so it can be a program name with args.
22854 set dummy $ac_prog; ac_word=$2
22855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22856 $as_echo_n "checking for $ac_word... " >&6; }
22857 if ${ac_cv_path_PYTHON+:} false; then :
22858   $as_echo_n "(cached) " >&6
22859 else
22860   case $PYTHON in
22861   [\\/]* | ?:[\\/]*)
22862   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
22863   ;;
22864   *)
22865   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22866 for as_dir in $PATH
22867 do
22868   IFS=$as_save_IFS
22869   test -z "$as_dir" && as_dir=.
22870     for ac_exec_ext in '' $ac_executable_extensions; do
22871   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22872     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
22873     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22874     break 2
22875   fi
22876 done
22877   done
22878 IFS=$as_save_IFS
22879
22880   ;;
22881 esac
22882 fi
22883 PYTHON=$ac_cv_path_PYTHON
22884 if test -n "$PYTHON"; then
22885   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
22886 $as_echo "$PYTHON" >&6; }
22887 else
22888   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22889 $as_echo "no" >&6; }
22890 fi
22891
22892
22893   test -n "$PYTHON" && break
22894 done
22895 test -n "$PYTHON" || PYTHON="none"
22896
22897
22898 # The minimum version for the JVM runtime for our Java bytecode.
22899 JAVA_OLDEST_WORKING_VER='1.6'
22900 # SVN_CHECK_JDK sets $JAVA_CLASSPATH
22901
22902   JAVA_OLDEST_WORKING_VER="$JAVA_OLDEST_WORKING_VER"
22903
22904 # Check whether --with-jdk was given.
22905 if test "${with_jdk+set}" = set; then :
22906   withval=$with_jdk;
22907     case "$withval" in
22908       "no")
22909         JDK_SUITABLE=no
22910       ;;
22911       "yes")
22912
22913   where=check
22914   JAVA_OLDEST_WORKING_VER="$JAVA_OLDEST_WORKING_VER"
22915
22916   JDK=none
22917   JAVA_BIN=none
22918   JAVADOC=none
22919   JAVAC=none
22920   JAVAH=none
22921   JAR=none
22922   JNI_INCLUDES=none
22923
22924   JDK_SUITABLE=no
22925   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JDK" >&5
22926 $as_echo_n "checking for JDK... " >&6; }
22927   if test $where = check; then
22928                 if test -x "$JAVA_HOME/bin/java"; then
22929       JDK="$JAVA_HOME"
22930     elif test -x "/usr/libexec/java_home"; then
22931       JDK=`/usr/libexec/java_home`
22932     elif test -x "/Library/Java/Home/bin/java"; then
22933       JDK="/Library/Java/Home"
22934     elif test -x "/usr/bin/java"; then
22935       JDK="/usr"
22936     elif test -x "/usr/local/bin/java"; then
22937       JDK="/usr/local"
22938     fi
22939   else
22940     JDK=$where
22941   fi
22942
22943           os_arch="`uname`"
22944   if test "$os_arch" = "Darwin"; then
22945     OSX_VER=`/usr/bin/sw_vers | grep ProductVersion | cut -f2 | cut -d"." -f1,2`
22946
22947     if test "$OSX_VER" = "10.4"; then
22948             OSX_VER="10.4u"
22949     fi
22950
22951     OSX_SYS_JAVA_FRAMEWORK="/System/Library/Frameworks/JavaVM.framework"
22952     OSX_SDK_JAVA_FRAMEWORK="/Developer/SDKs/MacOSX$OSX_VER.sdk/System/Library"
22953     OSX_SDK_JAVA_FRAMEWORK="$OSX_SDK_JAVA_FRAMEWORK/Frameworks/JavaVM.framework"
22954   fi
22955
22956   if test "$os_arch" = "Darwin" && test "$JDK" = "/usr" &&
22957      test -d "/Library/Java/Home"; then
22958     JDK="/Library/Java/Home"
22959   fi
22960
22961   if test "$os_arch" = "Darwin" && test "$JDK" = "/Library/Java/Home"; then
22962     JRE_LIB_DIR="$OSX_SYS_JAVA_FRAMEWORK/Classes"
22963   else
22964     JRE_LIB_DIR="$JDK/jre/lib"
22965   fi
22966
22967   if test -f "$JDK/include/jni.h"; then
22968         JNI_INCLUDEDIR="$JDK/include"
22969     JDK_SUITABLE=yes
22970   elif test "$os_arch" = "Darwin" && test -e "$JDK/Headers/jni.h"; then
22971         JNI_INCLUDEDIR="$JDK/Headers"
22972     JDK_SUITABLE=yes
22973   elif test "$os_arch" = "Darwin" &&
22974        test -e "$OSX_SYS_JAVA_FRAMEWORK/Headers/jni.h"; then
22975         JNI_INCLUDEDIR="$OSX_SYS_JAVA_FRAMEWORK/Headers"
22976     JDK_SUITABLE=yes
22977   elif test "$os_arch" = "Darwin" &&
22978        test -e "$OSX_SDK_JAVA_FRAMEWORK/Headers/jni.h"; then
22979         JNI_INCLUDEDIR="$OSX_SDK_JAVA_FRAMEWORK/Headers"
22980     JDK_SUITABLE=yes
22981   else
22982     JDK_SUITABLE=no
22983   fi
22984   if test "$JDK_SUITABLE" = "yes"; then
22985     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JNI_INCLUDEDIR/jni.h" >&5
22986 $as_echo "$JNI_INCLUDEDIR/jni.h" >&6; }
22987   else
22988     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22989 $as_echo "no" >&6; }
22990     if test "$where" != "check"; then
22991       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no JNI header files found." >&5
22992 $as_echo "$as_me: WARNING: no JNI header files found." >&2;}
22993       if test "$os_arch" = "Darwin"; then
22994         { $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
22995 $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;}
22996       fi
22997     fi
22998   fi
22999
23000   if test "$JDK_SUITABLE" = "yes"; then
23001     JAVA_BIN='$(JDK)/bin'
23002
23003     JAVA="$JAVA_BIN/java"
23004     JAVAC="$JAVA_BIN/javac"
23005     JAVAH="$JAVA_BIN/javah"
23006     JAVADOC="$JAVA_BIN/javadoc"
23007     JAR="$JAVA_BIN/jar"
23008
23009         jikes_options="/usr/local/bin/jikes /usr/bin/jikes"
23010
23011 # Check whether --with-jikes was given.
23012 if test "${with_jikes+set}" = set; then :
23013   withval=$with_jikes;
23014         if test "$withval" != "no" && test "$withval" != "yes"; then
23015                     jikes_options="$withval $jikes_options"
23016         fi
23017         requested_jikes="$withval"  # will be 'yes' if path unspecified
23018
23019 fi
23020
23021     if test "$requested_jikes" != "no"; then
23022             for jikes in $jikes_options; do
23023         if test -z "$jikes_found" && test -x "$jikes"; then
23024           jikes_found="yes"
23025           JAVAC="$jikes"
23026           JAVA_CLASSPATH="$JRE_LIB_DIR"
23027           for jar in $JRE_LIB_DIR/*.jar; do
23028             JAVA_CLASSPATH="$JAVA_CLASSPATH:$jar"
23029           done
23030         fi
23031       done
23032     fi
23033     if test -n "$requested_jikes" && test "$requested_jikes" != "no"; then
23034             if test -z "$jikes_found"; then
23035         as_fn_error $? "Could not find a usable version of Jikes" "$LINENO" 5
23036       elif test -n "$jikes_found" && test "$requested_jikes" != "yes" &&
23037            test "$JAVAC" != "$requested_jikes"; then
23038         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-jikes PATH was invalid, substitute found" >&5
23039 $as_echo "$as_me: WARNING: --with-jikes PATH was invalid, substitute found" >&2;}
23040       fi
23041     fi
23042
23043         # The release for "-source" could actually be greater than that
23044     # of "-target", if we want to cross-compile for lesser JVMs.
23045     if test -z "$JAVAC_FLAGS"; then
23046       JAVAC_FLAGS="-target $JAVA_OLDEST_WORKING_VER -source 1.6"
23047       if test "$enable_debugging" = "yes"; then
23048         JAVAC_FLAGS="-g -Xlint -Xlint:unchecked -Xlint:serial -Xlint:path $JAVAC_FLAGS"
23049         if test -z "$JAVAC_COMPAT_FLAGS"; then
23050           JAVAC_COMPAT_FLAGS="$JAVAC_FLAGS -Xlint:-unchecked -Xlint:-deprecation -Xlint:-dep-ann -Xlint:-rawtypes"
23051         fi
23052       fi
23053     fi
23054
23055     JNI_INCLUDES="-I$JNI_INCLUDEDIR"
23056     list="`find "$JNI_INCLUDEDIR" -type d -print`"
23057     for dir in $list; do
23058       JNI_INCLUDES="$JNI_INCLUDES -I$dir"
23059     done
23060   fi
23061
23062
23063
23064
23065
23066
23067
23068
23069
23070
23071
23072       ;;
23073       *)
23074
23075   where=$withval
23076   JAVA_OLDEST_WORKING_VER="$JAVA_OLDEST_WORKING_VER"
23077
23078   JDK=none
23079   JAVA_BIN=none
23080   JAVADOC=none
23081   JAVAC=none
23082   JAVAH=none
23083   JAR=none
23084   JNI_INCLUDES=none
23085
23086   JDK_SUITABLE=no
23087   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JDK" >&5
23088 $as_echo_n "checking for JDK... " >&6; }
23089   if test $where = check; then
23090                 if test -x "$JAVA_HOME/bin/java"; then
23091       JDK="$JAVA_HOME"
23092     elif test -x "/usr/libexec/java_home"; then
23093       JDK=`/usr/libexec/java_home`
23094     elif test -x "/Library/Java/Home/bin/java"; then
23095       JDK="/Library/Java/Home"
23096     elif test -x "/usr/bin/java"; then
23097       JDK="/usr"
23098     elif test -x "/usr/local/bin/java"; then
23099       JDK="/usr/local"
23100     fi
23101   else
23102     JDK=$where
23103   fi
23104
23105           os_arch="`uname`"
23106   if test "$os_arch" = "Darwin"; then
23107     OSX_VER=`/usr/bin/sw_vers | grep ProductVersion | cut -f2 | cut -d"." -f1,2`
23108
23109     if test "$OSX_VER" = "10.4"; then
23110             OSX_VER="10.4u"
23111     fi
23112
23113     OSX_SYS_JAVA_FRAMEWORK="/System/Library/Frameworks/JavaVM.framework"
23114     OSX_SDK_JAVA_FRAMEWORK="/Developer/SDKs/MacOSX$OSX_VER.sdk/System/Library"
23115     OSX_SDK_JAVA_FRAMEWORK="$OSX_SDK_JAVA_FRAMEWORK/Frameworks/JavaVM.framework"
23116   fi
23117
23118   if test "$os_arch" = "Darwin" && test "$JDK" = "/usr" &&
23119      test -d "/Library/Java/Home"; then
23120     JDK="/Library/Java/Home"
23121   fi
23122
23123   if test "$os_arch" = "Darwin" && test "$JDK" = "/Library/Java/Home"; then
23124     JRE_LIB_DIR="$OSX_SYS_JAVA_FRAMEWORK/Classes"
23125   else
23126     JRE_LIB_DIR="$JDK/jre/lib"
23127   fi
23128
23129   if test -f "$JDK/include/jni.h"; then
23130         JNI_INCLUDEDIR="$JDK/include"
23131     JDK_SUITABLE=yes
23132   elif test "$os_arch" = "Darwin" && test -e "$JDK/Headers/jni.h"; then
23133         JNI_INCLUDEDIR="$JDK/Headers"
23134     JDK_SUITABLE=yes
23135   elif test "$os_arch" = "Darwin" &&
23136        test -e "$OSX_SYS_JAVA_FRAMEWORK/Headers/jni.h"; then
23137         JNI_INCLUDEDIR="$OSX_SYS_JAVA_FRAMEWORK/Headers"
23138     JDK_SUITABLE=yes
23139   elif test "$os_arch" = "Darwin" &&
23140        test -e "$OSX_SDK_JAVA_FRAMEWORK/Headers/jni.h"; then
23141         JNI_INCLUDEDIR="$OSX_SDK_JAVA_FRAMEWORK/Headers"
23142     JDK_SUITABLE=yes
23143   else
23144     JDK_SUITABLE=no
23145   fi
23146   if test "$JDK_SUITABLE" = "yes"; then
23147     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JNI_INCLUDEDIR/jni.h" >&5
23148 $as_echo "$JNI_INCLUDEDIR/jni.h" >&6; }
23149   else
23150     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23151 $as_echo "no" >&6; }
23152     if test "$where" != "check"; then
23153       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no JNI header files found." >&5
23154 $as_echo "$as_me: WARNING: no JNI header files found." >&2;}
23155       if test "$os_arch" = "Darwin"; then
23156         { $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
23157 $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;}
23158       fi
23159     fi
23160   fi
23161
23162   if test "$JDK_SUITABLE" = "yes"; then
23163     JAVA_BIN='$(JDK)/bin'
23164
23165     JAVA="$JAVA_BIN/java"
23166     JAVAC="$JAVA_BIN/javac"
23167     JAVAH="$JAVA_BIN/javah"
23168     JAVADOC="$JAVA_BIN/javadoc"
23169     JAR="$JAVA_BIN/jar"
23170
23171         jikes_options="/usr/local/bin/jikes /usr/bin/jikes"
23172
23173 # Check whether --with-jikes was given.
23174 if test "${with_jikes+set}" = set; then :
23175   withval=$with_jikes;
23176         if test "$withval" != "no" && test "$withval" != "yes"; then
23177                     jikes_options="$withval $jikes_options"
23178         fi
23179         requested_jikes="$withval"  # will be 'yes' if path unspecified
23180
23181 fi
23182
23183     if test "$requested_jikes" != "no"; then
23184             for jikes in $jikes_options; do
23185         if test -z "$jikes_found" && test -x "$jikes"; then
23186           jikes_found="yes"
23187           JAVAC="$jikes"
23188           JAVA_CLASSPATH="$JRE_LIB_DIR"
23189           for jar in $JRE_LIB_DIR/*.jar; do
23190             JAVA_CLASSPATH="$JAVA_CLASSPATH:$jar"
23191           done
23192         fi
23193       done
23194     fi
23195     if test -n "$requested_jikes" && test "$requested_jikes" != "no"; then
23196             if test -z "$jikes_found"; then
23197         as_fn_error $? "Could not find a usable version of Jikes" "$LINENO" 5
23198       elif test -n "$jikes_found" && test "$requested_jikes" != "yes" &&
23199            test "$JAVAC" != "$requested_jikes"; then
23200         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-jikes PATH was invalid, substitute found" >&5
23201 $as_echo "$as_me: WARNING: --with-jikes PATH was invalid, substitute found" >&2;}
23202       fi
23203     fi
23204
23205         # The release for "-source" could actually be greater than that
23206     # of "-target", if we want to cross-compile for lesser JVMs.
23207     if test -z "$JAVAC_FLAGS"; then
23208       JAVAC_FLAGS="-target $JAVA_OLDEST_WORKING_VER -source 1.6"
23209       if test "$enable_debugging" = "yes"; then
23210         JAVAC_FLAGS="-g -Xlint -Xlint:unchecked -Xlint:serial -Xlint:path $JAVAC_FLAGS"
23211         if test -z "$JAVAC_COMPAT_FLAGS"; then
23212           JAVAC_COMPAT_FLAGS="$JAVAC_FLAGS -Xlint:-unchecked -Xlint:-deprecation -Xlint:-dep-ann -Xlint:-rawtypes"
23213         fi
23214       fi
23215     fi
23216
23217     JNI_INCLUDES="-I$JNI_INCLUDEDIR"
23218     list="`find "$JNI_INCLUDEDIR" -type d -print`"
23219     for dir in $list; do
23220       JNI_INCLUDES="$JNI_INCLUDES -I$dir"
23221     done
23222   fi
23223
23224
23225
23226
23227
23228
23229
23230
23231
23232
23233
23234       ;;
23235     esac
23236
23237 else
23238
23239
23240   where=check
23241   JAVA_OLDEST_WORKING_VER="$JAVA_OLDEST_WORKING_VER"
23242
23243   JDK=none
23244   JAVA_BIN=none
23245   JAVADOC=none
23246   JAVAC=none
23247   JAVAH=none
23248   JAR=none
23249   JNI_INCLUDES=none
23250
23251   JDK_SUITABLE=no
23252   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JDK" >&5
23253 $as_echo_n "checking for JDK... " >&6; }
23254   if test $where = check; then
23255                 if test -x "$JAVA_HOME/bin/java"; then
23256       JDK="$JAVA_HOME"
23257     elif test -x "/usr/libexec/java_home"; then
23258       JDK=`/usr/libexec/java_home`
23259     elif test -x "/Library/Java/Home/bin/java"; then
23260       JDK="/Library/Java/Home"
23261     elif test -x "/usr/bin/java"; then
23262       JDK="/usr"
23263     elif test -x "/usr/local/bin/java"; then
23264       JDK="/usr/local"
23265     fi
23266   else
23267     JDK=$where
23268   fi
23269
23270           os_arch="`uname`"
23271   if test "$os_arch" = "Darwin"; then
23272     OSX_VER=`/usr/bin/sw_vers | grep ProductVersion | cut -f2 | cut -d"." -f1,2`
23273
23274     if test "$OSX_VER" = "10.4"; then
23275             OSX_VER="10.4u"
23276     fi
23277
23278     OSX_SYS_JAVA_FRAMEWORK="/System/Library/Frameworks/JavaVM.framework"
23279     OSX_SDK_JAVA_FRAMEWORK="/Developer/SDKs/MacOSX$OSX_VER.sdk/System/Library"
23280     OSX_SDK_JAVA_FRAMEWORK="$OSX_SDK_JAVA_FRAMEWORK/Frameworks/JavaVM.framework"
23281   fi
23282
23283   if test "$os_arch" = "Darwin" && test "$JDK" = "/usr" &&
23284      test -d "/Library/Java/Home"; then
23285     JDK="/Library/Java/Home"
23286   fi
23287
23288   if test "$os_arch" = "Darwin" && test "$JDK" = "/Library/Java/Home"; then
23289     JRE_LIB_DIR="$OSX_SYS_JAVA_FRAMEWORK/Classes"
23290   else
23291     JRE_LIB_DIR="$JDK/jre/lib"
23292   fi
23293
23294   if test -f "$JDK/include/jni.h"; then
23295         JNI_INCLUDEDIR="$JDK/include"
23296     JDK_SUITABLE=yes
23297   elif test "$os_arch" = "Darwin" && test -e "$JDK/Headers/jni.h"; then
23298         JNI_INCLUDEDIR="$JDK/Headers"
23299     JDK_SUITABLE=yes
23300   elif test "$os_arch" = "Darwin" &&
23301        test -e "$OSX_SYS_JAVA_FRAMEWORK/Headers/jni.h"; then
23302         JNI_INCLUDEDIR="$OSX_SYS_JAVA_FRAMEWORK/Headers"
23303     JDK_SUITABLE=yes
23304   elif test "$os_arch" = "Darwin" &&
23305        test -e "$OSX_SDK_JAVA_FRAMEWORK/Headers/jni.h"; then
23306         JNI_INCLUDEDIR="$OSX_SDK_JAVA_FRAMEWORK/Headers"
23307     JDK_SUITABLE=yes
23308   else
23309     JDK_SUITABLE=no
23310   fi
23311   if test "$JDK_SUITABLE" = "yes"; then
23312     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JNI_INCLUDEDIR/jni.h" >&5
23313 $as_echo "$JNI_INCLUDEDIR/jni.h" >&6; }
23314   else
23315     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23316 $as_echo "no" >&6; }
23317     if test "$where" != "check"; then
23318       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no JNI header files found." >&5
23319 $as_echo "$as_me: WARNING: no JNI header files found." >&2;}
23320       if test "$os_arch" = "Darwin"; then
23321         { $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
23322 $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;}
23323       fi
23324     fi
23325   fi
23326
23327   if test "$JDK_SUITABLE" = "yes"; then
23328     JAVA_BIN='$(JDK)/bin'
23329
23330     JAVA="$JAVA_BIN/java"
23331     JAVAC="$JAVA_BIN/javac"
23332     JAVAH="$JAVA_BIN/javah"
23333     JAVADOC="$JAVA_BIN/javadoc"
23334     JAR="$JAVA_BIN/jar"
23335
23336         jikes_options="/usr/local/bin/jikes /usr/bin/jikes"
23337
23338 # Check whether --with-jikes was given.
23339 if test "${with_jikes+set}" = set; then :
23340   withval=$with_jikes;
23341         if test "$withval" != "no" && test "$withval" != "yes"; then
23342                     jikes_options="$withval $jikes_options"
23343         fi
23344         requested_jikes="$withval"  # will be 'yes' if path unspecified
23345
23346 fi
23347
23348     if test "$requested_jikes" != "no"; then
23349             for jikes in $jikes_options; do
23350         if test -z "$jikes_found" && test -x "$jikes"; then
23351           jikes_found="yes"
23352           JAVAC="$jikes"
23353           JAVA_CLASSPATH="$JRE_LIB_DIR"
23354           for jar in $JRE_LIB_DIR/*.jar; do
23355             JAVA_CLASSPATH="$JAVA_CLASSPATH:$jar"
23356           done
23357         fi
23358       done
23359     fi
23360     if test -n "$requested_jikes" && test "$requested_jikes" != "no"; then
23361             if test -z "$jikes_found"; then
23362         as_fn_error $? "Could not find a usable version of Jikes" "$LINENO" 5
23363       elif test -n "$jikes_found" && test "$requested_jikes" != "yes" &&
23364            test "$JAVAC" != "$requested_jikes"; then
23365         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-jikes PATH was invalid, substitute found" >&5
23366 $as_echo "$as_me: WARNING: --with-jikes PATH was invalid, substitute found" >&2;}
23367       fi
23368     fi
23369
23370         # The release for "-source" could actually be greater than that
23371     # of "-target", if we want to cross-compile for lesser JVMs.
23372     if test -z "$JAVAC_FLAGS"; then
23373       JAVAC_FLAGS="-target $JAVA_OLDEST_WORKING_VER -source 1.6"
23374       if test "$enable_debugging" = "yes"; then
23375         JAVAC_FLAGS="-g -Xlint -Xlint:unchecked -Xlint:serial -Xlint:path $JAVAC_FLAGS"
23376         if test -z "$JAVAC_COMPAT_FLAGS"; then
23377           JAVAC_COMPAT_FLAGS="$JAVAC_FLAGS -Xlint:-unchecked -Xlint:-deprecation -Xlint:-dep-ann -Xlint:-rawtypes"
23378         fi
23379       fi
23380     fi
23381
23382     JNI_INCLUDES="-I$JNI_INCLUDEDIR"
23383     list="`find "$JNI_INCLUDEDIR" -type d -print`"
23384     for dir in $list; do
23385       JNI_INCLUDES="$JNI_INCLUDES -I$dir"
23386     done
23387   fi
23388
23389
23390
23391
23392
23393
23394
23395
23396
23397
23398
23399
23400 fi
23401
23402
23403
23404 # Extract the first word of "perl", so it can be a program name with args.
23405 set dummy perl; ac_word=$2
23406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23407 $as_echo_n "checking for $ac_word... " >&6; }
23408 if ${ac_cv_path_PERL+:} false; then :
23409   $as_echo_n "(cached) " >&6
23410 else
23411   case $PERL in
23412   [\\/]* | ?:[\\/]*)
23413   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
23414   ;;
23415   *)
23416   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23417 for as_dir in $PATH
23418 do
23419   IFS=$as_save_IFS
23420   test -z "$as_dir" && as_dir=.
23421     for ac_exec_ext in '' $ac_executable_extensions; do
23422   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23423     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
23424     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23425     break 2
23426   fi
23427 done
23428   done
23429 IFS=$as_save_IFS
23430
23431   test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
23432   ;;
23433 esac
23434 fi
23435 PERL=$ac_cv_path_PERL
23436 if test -n "$PERL"; then
23437   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
23438 $as_echo "$PERL" >&6; }
23439 else
23440   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23441 $as_echo "no" >&6; }
23442 fi
23443
23444
23445
23446 if test -n "$RUBY"; then
23447   # Extract the first word of ""$RUBY"", so it can be a program name with args.
23448 set dummy "$RUBY"; ac_word=$2
23449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23450 $as_echo_n "checking for $ac_word... " >&6; }
23451 if ${ac_cv_path_RUBY+:} false; then :
23452   $as_echo_n "(cached) " >&6
23453 else
23454   case $RUBY in
23455   [\\/]* | ?:[\\/]*)
23456   ac_cv_path_RUBY="$RUBY" # Let the user override the test with a path.
23457   ;;
23458   *)
23459   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23460 for as_dir in $PATH
23461 do
23462   IFS=$as_save_IFS
23463   test -z "$as_dir" && as_dir=.
23464     for ac_exec_ext in '' $ac_executable_extensions; do
23465   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23466     ac_cv_path_RUBY="$as_dir/$ac_word$ac_exec_ext"
23467     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23468     break 2
23469   fi
23470 done
23471   done
23472 IFS=$as_save_IFS
23473
23474   test -z "$ac_cv_path_RUBY" && ac_cv_path_RUBY="none"
23475   ;;
23476 esac
23477 fi
23478 RUBY=$ac_cv_path_RUBY
23479 if test -n "$RUBY"; then
23480   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUBY" >&5
23481 $as_echo "$RUBY" >&6; }
23482 else
23483   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23484 $as_echo "no" >&6; }
23485 fi
23486
23487
23488 else
23489   for ac_prog in ruby ruby1.8 ruby18 ruby1.9 ruby1 ruby1.9.3 ruby193 ruby2.0 ruby2.1
23490 do
23491   # Extract the first word of "$ac_prog", so it can be a program name with args.
23492 set dummy $ac_prog; ac_word=$2
23493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23494 $as_echo_n "checking for $ac_word... " >&6; }
23495 if ${ac_cv_path_RUBY+:} false; then :
23496   $as_echo_n "(cached) " >&6
23497 else
23498   case $RUBY in
23499   [\\/]* | ?:[\\/]*)
23500   ac_cv_path_RUBY="$RUBY" # Let the user override the test with a path.
23501   ;;
23502   *)
23503   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23504 for as_dir in $PATH
23505 do
23506   IFS=$as_save_IFS
23507   test -z "$as_dir" && as_dir=.
23508     for ac_exec_ext in '' $ac_executable_extensions; do
23509   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23510     ac_cv_path_RUBY="$as_dir/$ac_word$ac_exec_ext"
23511     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23512     break 2
23513   fi
23514 done
23515   done
23516 IFS=$as_save_IFS
23517
23518   ;;
23519 esac
23520 fi
23521 RUBY=$ac_cv_path_RUBY
23522 if test -n "$RUBY"; then
23523   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUBY" >&5
23524 $as_echo "$RUBY" >&6; }
23525 else
23526   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23527 $as_echo "no" >&6; }
23528 fi
23529
23530
23531   test -n "$RUBY" && break
23532 done
23533 test -n "$RUBY" || RUBY="none"
23534
23535 fi
23536 if test "$RUBY" != "none"; then
23537   { $as_echo "$as_me:${as_lineno-$LINENO}: checking rb_hash_foreach" >&5
23538 $as_echo_n "checking rb_hash_foreach... " >&6; }
23539   if "$RUBY" -r mkmf -e 'exit(have_func("rb_hash_foreach") ? 0 : 1)' >/dev/null; then
23540     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23541 $as_echo "yes" >&6; }
23542     if test -n "$RDOC"; then
23543       # Extract the first word of ""$RDOC"", so it can be a program name with args.
23544 set dummy "$RDOC"; ac_word=$2
23545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23546 $as_echo_n "checking for $ac_word... " >&6; }
23547 if ${ac_cv_path_RDOC+:} false; then :
23548   $as_echo_n "(cached) " >&6
23549 else
23550   case $RDOC in
23551   [\\/]* | ?:[\\/]*)
23552   ac_cv_path_RDOC="$RDOC" # Let the user override the test with a path.
23553   ;;
23554   *)
23555   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23556 for as_dir in $PATH
23557 do
23558   IFS=$as_save_IFS
23559   test -z "$as_dir" && as_dir=.
23560     for ac_exec_ext in '' $ac_executable_extensions; do
23561   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23562     ac_cv_path_RDOC="$as_dir/$ac_word$ac_exec_ext"
23563     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23564     break 2
23565   fi
23566 done
23567   done
23568 IFS=$as_save_IFS
23569
23570   test -z "$ac_cv_path_RDOC" && ac_cv_path_RDOC="none"
23571   ;;
23572 esac
23573 fi
23574 RDOC=$ac_cv_path_RDOC
23575 if test -n "$RDOC"; then
23576   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RDOC" >&5
23577 $as_echo "$RDOC" >&6; }
23578 else
23579   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23580 $as_echo "no" >&6; }
23581 fi
23582
23583
23584     else
23585       for ac_prog in rdoc rdoc1.8 rdoc18 rdoc1.9 rdoc19 rdoc1.9.3 rdoc193 rdoc2.0 rdoc2.1
23586 do
23587   # Extract the first word of "$ac_prog", so it can be a program name with args.
23588 set dummy $ac_prog; ac_word=$2
23589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23590 $as_echo_n "checking for $ac_word... " >&6; }
23591 if ${ac_cv_path_RDOC+:} false; then :
23592   $as_echo_n "(cached) " >&6
23593 else
23594   case $RDOC in
23595   [\\/]* | ?:[\\/]*)
23596   ac_cv_path_RDOC="$RDOC" # Let the user override the test with a path.
23597   ;;
23598   *)
23599   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23600 for as_dir in $PATH
23601 do
23602   IFS=$as_save_IFS
23603   test -z "$as_dir" && as_dir=.
23604     for ac_exec_ext in '' $ac_executable_extensions; do
23605   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23606     ac_cv_path_RDOC="$as_dir/$ac_word$ac_exec_ext"
23607     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23608     break 2
23609   fi
23610 done
23611   done
23612 IFS=$as_save_IFS
23613
23614   ;;
23615 esac
23616 fi
23617 RDOC=$ac_cv_path_RDOC
23618 if test -n "$RDOC"; then
23619   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RDOC" >&5
23620 $as_echo "$RDOC" >&6; }
23621 else
23622   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23623 $as_echo "no" >&6; }
23624 fi
23625
23626
23627   test -n "$RDOC" && break
23628 done
23629 test -n "$RDOC" || RDOC="none"
23630
23631     fi
23632     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ruby major version" >&5
23633 $as_echo_n "checking for Ruby major version... " >&6; }
23634 if ${svn_cv_ruby_major+:} false; then :
23635   $as_echo_n "(cached) " >&6
23636 else
23637
23638     svn_cv_ruby_major="`$RUBY -rrbconfig -e 'print RbConfig::CONFIG.fetch(%q(MAJOR))'`"
23639
23640 fi
23641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $svn_cv_ruby_major" >&5
23642 $as_echo "$svn_cv_ruby_major" >&6; }
23643     RUBY_MAJOR="$svn_cv_ruby_major"
23644
23645     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ruby minor version" >&5
23646 $as_echo_n "checking for Ruby minor version... " >&6; }
23647 if ${svn_cv_ruby_minor+:} false; then :
23648   $as_echo_n "(cached) " >&6
23649 else
23650
23651     svn_cv_ruby_minor="`$RUBY -rrbconfig -e 'print RbConfig::CONFIG.fetch(%q(MINOR))'`"
23652
23653 fi
23654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $svn_cv_ruby_minor" >&5
23655 $as_echo "$svn_cv_ruby_minor" >&6; }
23656     RUBY_MINOR="$svn_cv_ruby_minor"
23657
23658     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ruby teeny version" >&5
23659 $as_echo_n "checking for Ruby teeny version... " >&6; }
23660 if ${svn_cv_ruby_teeny+:} false; then :
23661   $as_echo_n "(cached) " >&6
23662 else
23663
23664     svn_cv_ruby_teeny="`$RUBY -rrbconfig -e 'major, minor, teeny = RUBY_VERSION.split("."); print teeny;'`"
23665
23666 fi
23667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $svn_cv_ruby_teeny" >&5
23668 $as_echo "$svn_cv_ruby_teeny" >&6; }
23669     RUBY_TEENY="$svn_cv_ruby_teeny"
23670
23671
23672
23673
23674     if test \( "$RUBY_MAJOR" -eq "1" -a "$RUBY_MINOR" -gt "8" -a "$RUBY_TEENY" -lt "3" \); then
23675       # Disallow Ruby between 1.8.7 and 1.9.3
23676       RUBY="none"
23677       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The detected Ruby is between 1.9 and 1.9.3" >&5
23678 $as_echo "$as_me: WARNING: The detected Ruby is between 1.9 and 1.9.3" >&2;}
23679       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Only 1.8.x and 1.9.3 releases are supported at this time" >&5
23680 $as_echo "$as_me: WARNING: Only 1.8.x and 1.9.3 releases are supported at this time" >&2;}
23681     fi
23682   else
23683     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23684 $as_echo "no" >&6; }
23685     RUBY="none"
23686     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The detected Ruby is too old for Subversion to use" >&5
23687 $as_echo "$as_me: WARNING: The detected Ruby is too old for Subversion to use" >&2;}
23688     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: A Ruby which has rb_hash_foreach is required to use the" >&5
23689 $as_echo "$as_me: WARNING: A Ruby which has rb_hash_foreach is required to use the" >&2;}
23690     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Subversion Ruby bindings" >&5
23691 $as_echo "$as_me: WARNING: Subversion Ruby bindings" >&2;}
23692     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Upgrade to the official 1.8.2 release, or later" >&5
23693 $as_echo "$as_me: WARNING: Upgrade to the official 1.8.2 release, or later" >&2;}
23694   fi
23695 fi
23696
23697
23698
23699 # Check whether --with-swig was given.
23700 if test "${with_swig+set}" = set; then :
23701   withval=$with_swig;
23702     case "$withval" in
23703       "no")
23704         SWIG_SUITABLE=no
23705
23706   where=no
23707
23708   if test $where = no; then
23709     SWIG=none
23710   elif test $where = check; then
23711     # Extract the first word of "swig", so it can be a program name with args.
23712 set dummy swig; ac_word=$2
23713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23714 $as_echo_n "checking for $ac_word... " >&6; }
23715 if ${ac_cv_path_SWIG+:} false; then :
23716   $as_echo_n "(cached) " >&6
23717 else
23718   case $SWIG in
23719   [\\/]* | ?:[\\/]*)
23720   ac_cv_path_SWIG="$SWIG" # Let the user override the test with a path.
23721   ;;
23722   *)
23723   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23724 for as_dir in $PATH
23725 do
23726   IFS=$as_save_IFS
23727   test -z "$as_dir" && as_dir=.
23728     for ac_exec_ext in '' $ac_executable_extensions; do
23729   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23730     ac_cv_path_SWIG="$as_dir/$ac_word$ac_exec_ext"
23731     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23732     break 2
23733   fi
23734 done
23735   done
23736 IFS=$as_save_IFS
23737
23738   test -z "$ac_cv_path_SWIG" && ac_cv_path_SWIG="none"
23739   ;;
23740 esac
23741 fi
23742 SWIG=$ac_cv_path_SWIG
23743 if test -n "$SWIG"; then
23744   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG" >&5
23745 $as_echo "$SWIG" >&6; }
23746 else
23747   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23748 $as_echo "no" >&6; }
23749 fi
23750
23751
23752   else
23753     if test -f "$where"; then
23754       SWIG="$where"
23755     else
23756       SWIG="$where/bin/swig"
23757     fi
23758     if test ! -f "$SWIG" || test ! -x "$SWIG"; then
23759       as_fn_error $? "Could not find swig binary at $SWIG" "$LINENO" 5
23760     fi
23761   fi
23762
23763   if test "$SWIG" != "none"; then
23764     { $as_echo "$as_me:${as_lineno-$LINENO}: checking swig version" >&5
23765 $as_echo_n "checking swig version... " >&6; }
23766     SWIG_VERSION_RAW="`$SWIG -version 2>&1 | \
23767                        $SED -ne 's/^.*Version \(.*\)$/\1/p'`"
23768     # We want the version as an integer so we can test against
23769     # which version we're using.  SWIG doesn't provide this
23770     # to us so we have to come up with it on our own.
23771     # The major is passed straight through,
23772     # the minor is zero padded to two places,
23773     # and the patch level is zero padded to three places.
23774     # e.g. 1.3.24 becomes 103024
23775     SWIG_VERSION="`echo \"$SWIG_VERSION_RAW\" | \
23776                   $SED -e 's/[^0-9\.].*$//' \
23777                       -e 's/\.\([0-9]\)$/.0\1/' \
23778                       -e 's/\.\([0-9][0-9]\)$/.0\1/' \
23779                       -e 's/\.\([0-9]\)\./0\1/; s/\.//g;'`"
23780     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG_VERSION_RAW" >&5
23781 $as_echo "$SWIG_VERSION_RAW" >&6; }
23782     # If you change the required swig version number, don't forget to update:
23783     #   subversion/bindings/swig/INSTALL
23784     #   packages/rpm/redhat-8+/subversion.spec
23785     #   packages/rpm/redhat-7.x/subversion.spec
23786     #   packages/rpm/rhel-3/subversion.spec
23787     #   packages/rpm/rhel-4/subversion.spec
23788     if test -n "$SWIG_VERSION" && test "$SWIG_VERSION" -ge "103024" && \
23789        test "$SWIG_VERSION" -lt "300000"; then
23790       SWIG_SUITABLE=yes
23791     else
23792       SWIG_SUITABLE=no
23793       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Detected SWIG version $SWIG_VERSION_RAW" >&5
23794 $as_echo "$as_me: WARNING: Detected SWIG version $SWIG_VERSION_RAW" >&2;}
23795       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Subversion requires SWIG >= 1.3.24 and < 3.0.0 " >&5
23796 $as_echo "$as_me: WARNING: Subversion requires SWIG >= 1.3.24 and < 3.0.0 " >&2;}
23797     fi
23798   fi
23799
23800   SWIG_PY_COMPILE="none"
23801   SWIG_PY_LINK="none"
23802   if test "$PYTHON" != "none"; then
23803     { $as_echo "$as_me:${as_lineno-$LINENO}: Configuring python swig binding" >&5
23804 $as_echo "$as_me: Configuring python swig binding" >&6;}
23805
23806     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python includes" >&5
23807 $as_echo_n "checking for Python includes... " >&6; }
23808 if ${ac_cv_python_includes+:} false; then :
23809   $as_echo_n "(cached) " >&6
23810 else
23811
23812       ac_cv_python_includes="`$PYTHON ${abs_srcdir}/build/get-py-info.py --includes`"
23813
23814 fi
23815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_python_includes" >&5
23816 $as_echo "$ac_cv_python_includes" >&6; }
23817     SWIG_PY_INCLUDES="\$(SWIG_INCLUDES) $ac_cv_python_includes"
23818
23819     if test "$ac_cv_python_includes" = "none"; then
23820       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: python bindings cannot be built without distutils module" >&5
23821 $as_echo "$as_me: WARNING: python bindings cannot be built without distutils module" >&2;}
23822     fi
23823
23824     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiling Python extensions" >&5
23825 $as_echo_n "checking for compiling Python extensions... " >&6; }
23826 if ${ac_cv_python_compile+:} false; then :
23827   $as_echo_n "(cached) " >&6
23828 else
23829
23830       ac_cv_python_compile="`$PYTHON ${abs_srcdir}/build/get-py-info.py --compile`"
23831
23832 fi
23833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_python_compile" >&5
23834 $as_echo "$ac_cv_python_compile" >&6; }
23835     SWIG_PY_COMPILE="$ac_cv_python_compile $CFLAGS"
23836
23837     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linking Python extensions" >&5
23838 $as_echo_n "checking for linking Python extensions... " >&6; }
23839 if ${ac_cv_python_link+:} false; then :
23840   $as_echo_n "(cached) " >&6
23841 else
23842
23843       ac_cv_python_link="`$PYTHON ${abs_srcdir}/build/get-py-info.py --link`"
23844
23845 fi
23846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_python_link" >&5
23847 $as_echo "$ac_cv_python_link" >&6; }
23848     SWIG_PY_LINK="$ac_cv_python_link"
23849
23850     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linking Python libraries" >&5
23851 $as_echo_n "checking for linking Python libraries... " >&6; }
23852 if ${ac_cv_python_libs+:} false; then :
23853   $as_echo_n "(cached) " >&6
23854 else
23855
23856       ac_cv_python_libs="`$PYTHON ${abs_srcdir}/build/get-py-info.py --libs`"
23857
23858 fi
23859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_python_libs" >&5
23860 $as_echo "$ac_cv_python_libs" >&6; }
23861     SWIG_PY_LIBS="`
23862   input_flags="$ac_cv_python_libs"
23863   output_flags=""
23864   filtered_dirs="/lib /lib64 /usr/lib /usr/lib64"
23865   for flag in $input_flags; do
23866     filter="no"
23867     for dir in $filtered_dirs; do
23868       if test "$flag" = "-L$dir" || test "$flag" = "-L$dir/"; then
23869         filter="yes"
23870         break
23871       fi
23872     done
23873     if test "$filter" = "no"; then
23874       output_flags="$output_flags $flag"
23875     fi
23876   done
23877   if test -n "$output_flags"; then
23878     printf "%s" "${output_flags# }"
23879   fi
23880 `"
23881
23882                 SVN_PYCFMT_SAVE_CPPFLAGS="$CPPFLAGS"
23883     CPPFLAGS="$CPPFLAGS $SVN_APR_INCLUDES"
23884     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for apr_int64_t Python/C API format string" >&5
23885 $as_echo_n "checking for apr_int64_t Python/C API format string... " >&6; }
23886 if ${svn_cv_pycfmt_apr_int64_t+:} false; then :
23887   $as_echo_n "(cached) " >&6
23888 else
23889
23890       if test "x$svn_cv_pycfmt_apr_int64_t" = "x"; then
23891         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23892 /* end confdefs.h.  */
23893 #include <apr.h>
23894                       MaTcHtHiS APR_INT64_T_FMT EnDeNd
23895 _ACEOF
23896 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23897   $EGREP "MaTcHtHiS +\"lld\" +EnDeNd" >/dev/null 2>&1; then :
23898   svn_cv_pycfmt_apr_int64_t="L"
23899 fi
23900 rm -f conftest*
23901
23902       fi
23903       if test "x$svn_cv_pycfmt_apr_int64_t" = "x"; then
23904         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23905 /* end confdefs.h.  */
23906 r
23907                      #include <apr.h>
23908                       MaTcHtHiS APR_INT64_T_FMT EnDeNd
23909 _ACEOF
23910 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23911   $EGREP "MaTcHtHiS +\"ld\" +EnDeNd" >/dev/null 2>&1; then :
23912   svn_cv_pycfmt_apr_int64_t="l"
23913 fi
23914 rm -f conftest*
23915
23916       fi
23917       if test "x$svn_cv_pycfmt_apr_int64_t" = "x"; then
23918         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23919 /* end confdefs.h.  */
23920 #include <apr.h>
23921                       MaTcHtHiS APR_INT64_T_FMT EnDeNd
23922 _ACEOF
23923 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23924   $EGREP "MaTcHtHiS +\"d\" +EnDeNd" >/dev/null 2>&1; then :
23925   svn_cv_pycfmt_apr_int64_t="i"
23926 fi
23927 rm -f conftest*
23928
23929       fi
23930
23931 fi
23932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $svn_cv_pycfmt_apr_int64_t" >&5
23933 $as_echo "$svn_cv_pycfmt_apr_int64_t" >&6; }
23934     CPPFLAGS="$SVN_PYCFMT_SAVE_CPPFLAGS"
23935     if test "x$svn_cv_pycfmt_apr_int64_t" = "x"; then
23936       as_fn_error $? "failed to recognize APR_INT64_T_FMT on this platform" "$LINENO" 5
23937     fi
23938
23939 cat >>confdefs.h <<_ACEOF
23940 #define SVN_APR_INT64_T_PYCFMT "$svn_cv_pycfmt_apr_int64_t"
23941 _ACEOF
23942
23943   fi
23944
23945   if test "$PERL" != "none"; then
23946     { $as_echo "$as_me:${as_lineno-$LINENO}: checking perl version" >&5
23947 $as_echo_n "checking perl version... " >&6; }
23948             PERL_VERSION="`$PERL -e 'q([); print $] * 1000000,$/;'`"
23949     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL_VERSION" >&5
23950 $as_echo "$PERL_VERSION" >&6; }
23951     if test "$PERL_VERSION" -ge "5008000"; then
23952       SWIG_PL_INCLUDES="\$(SWIG_INCLUDES) `$PERL -MExtUtils::Embed -e ccopts`"
23953     else
23954       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: perl bindings require perl 5.8.0 or newer." >&5
23955 $as_echo "$as_me: WARNING: perl bindings require perl 5.8.0 or newer." >&2;}
23956     fi
23957   fi
23958
23959   SWIG_RB_COMPILE="none"
23960   SWIG_RB_LINK="none"
23961   if test "$RUBY" != "none"; then
23962     rbconfig="$RUBY -rrbconfig -e "
23963
23964     for var_name in arch archdir CC LDSHARED DLEXT LIBS LIBRUBYARG \
23965                     rubyhdrdir rubyarchhdrdir sitedir sitelibdir sitearchdir libdir
23966     do
23967       rbconfig_tmp=`$rbconfig "print RbConfig::CONFIG['$var_name']"`
23968       eval "rbconfig_$var_name=\"$rbconfig_tmp\""
23969     done
23970
23971     { $as_echo "$as_me:${as_lineno-$LINENO}: Configuring Ruby SWIG binding" >&5
23972 $as_echo "$as_me: Configuring Ruby SWIG binding" >&6;}
23973
23974     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ruby include path" >&5
23975 $as_echo_n "checking for Ruby include path... " >&6; }
23976 if ${svn_cv_ruby_includes+:} false; then :
23977   $as_echo_n "(cached) " >&6
23978 else
23979
23980     if test -d "$rbconfig_rubyhdrdir"; then
23981             svn_cv_ruby_includes="-I. -I$rbconfig_rubyhdrdir -I$rbconfig_rubyhdrdir/ruby -I$rbconfig_rubyhdrdir/ruby/backward"
23982       if test -d "$rbconfig_rubyarchhdrdir"; then
23983                 svn_cv_ruby_includes="$svn_cv_ruby_includes -I$rbconfig_rubyarchhdrdir"
23984       else
23985         svn_cv_ruby_includes="$svn_cv_ruby_includes -I$rbconfig_rubyhdrdir/$rbconfig_arch"
23986       fi
23987     else
23988             svn_cv_ruby_includes="-I. -I$rbconfig_archdir"
23989     fi
23990
23991 fi
23992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $svn_cv_ruby_includes" >&5
23993 $as_echo "$svn_cv_ruby_includes" >&6; }
23994     SWIG_RB_INCLUDES="\$(SWIG_INCLUDES) $svn_cv_ruby_includes"
23995
23996     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compile Ruby extensions" >&5
23997 $as_echo_n "checking how to compile Ruby extensions... " >&6; }
23998 if ${svn_cv_ruby_compile+:} false; then :
23999   $as_echo_n "(cached) " >&6
24000 else
24001
24002       svn_cv_ruby_compile="$rbconfig_CC $CFLAGS"
24003
24004 fi
24005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $svn_cv_ruby_compile" >&5
24006 $as_echo "$svn_cv_ruby_compile" >&6; }
24007     SWIG_RB_COMPILE="$svn_cv_ruby_compile"
24008
24009   SWIG_RB_COMPILE=`echo "$SWIG_RB_COMPILE" | $SED -e 's/-ansi//'`
24010
24011
24012   SWIG_RB_COMPILE=`echo "$SWIG_RB_COMPILE" | $SED -e 's/-std=c89//'`
24013
24014
24015   SWIG_RB_COMPILE=`echo "$SWIG_RB_COMPILE" | $SED -e 's/-std=c90//'`
24016
24017         SWIG_RB_COMPILE="$SWIG_RB_COMPILE -Wno-int-to-pointer-cast"
24018
24019     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link Ruby extensions" >&5
24020 $as_echo_n "checking how to link Ruby extensions... " >&6; }
24021 if ${svn_cv_ruby_link+:} false; then :
24022   $as_echo_n "(cached) " >&6
24023 else
24024
24025       svn_cv_ruby_link="`$RUBY -e 'ARGV.shift; print ARGV.join(%q( ))' \
24026                            $rbconfig_LDSHARED`"
24027       svn_cv_ruby_link="$rbconfig_CC $svn_cv_ruby_link"
24028       svn_cv_ruby_link="$svn_cv_ruby_link -shrext .$rbconfig_DLEXT"
24029
24030 fi
24031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $svn_cv_ruby_link" >&5
24032 $as_echo "$svn_cv_ruby_link" >&6; }
24033     SWIG_RB_LINK="$svn_cv_ruby_link"
24034
24035     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link Ruby libraries" >&5
24036 $as_echo_n "checking how to link Ruby libraries... " >&6; }
24037 if ${ac_cv_ruby_libs+:} false; then :
24038   $as_echo_n "(cached) " >&6
24039 else
24040
24041       ac_cv_ruby_libs="$rbconfig_LIBRUBYARG $rbconfig_LIBS"
24042
24043 fi
24044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_ruby_libs" >&5
24045 $as_echo "$ac_cv_ruby_libs" >&6; }
24046     SWIG_RB_LIBS="`
24047   input_flags="$ac_cv_ruby_libs"
24048   output_flags=""
24049   filtered_dirs="/lib /lib64 /usr/lib /usr/lib64"
24050   for flag in $input_flags; do
24051     filter="no"
24052     for dir in $filtered_dirs; do
24053       if test "$flag" = "-L$dir" || test "$flag" = "-L$dir/"; then
24054         filter="yes"
24055         break
24056       fi
24057     done
24058     if test "$filter" = "no"; then
24059       output_flags="$output_flags $flag"
24060     fi
24061   done
24062   if test -n "$output_flags"; then
24063     printf "%s" "${output_flags# }"
24064   fi
24065 `"
24066
24067     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rb_errinfo" >&5
24068 $as_echo_n "checking for rb_errinfo... " >&6; }
24069     old_CFLAGS="$CFLAGS"
24070     old_LIBS="$LIBS"
24071     CFLAGS="$CFLAGS $svn_cv_ruby_includes"
24072
24073   CFLAGS=`echo "$CFLAGS" | $SED -e 's/-ansi//'`
24074
24075
24076   CFLAGS=`echo "$CFLAGS" | $SED -e 's/-std=c89//'`
24077
24078
24079   CFLAGS=`echo "$CFLAGS" | $SED -e 's/-std=c90//'`
24080
24081     LIBS="$SWIG_RB_LIBS"
24082     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24083 /* end confdefs.h.  */
24084
24085 #include <ruby.h>
24086 int main()
24087 {rb_errinfo();}
24088 _ACEOF
24089 if ac_fn_c_try_link "$LINENO"; then :
24090   have_rb_errinfo="yes"
24091 else
24092   have_rb_errinfo="no"
24093 fi
24094 rm -f core conftest.err conftest.$ac_objext \
24095     conftest$ac_exeext conftest.$ac_ext
24096     if test "$have_rb_errinfo" = "yes"; then
24097       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24098 $as_echo "yes" >&6; }
24099
24100 $as_echo "#define HAVE_RB_ERRINFO 1" >>confdefs.h
24101
24102     else
24103       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24104 $as_echo "no" >&6; }
24105     fi
24106     CFLAGS="$old_CFLAGS"
24107     LIBS="$old_LIBS"
24108
24109     if ${svn_cv_ruby_sitedir+:} false; then :
24110   $as_echo_n "(cached) " >&6
24111 else
24112
24113       svn_cv_ruby_sitedir="$rbconfig_sitedir"
24114
24115 fi
24116
24117
24118 # Check whether --with-ruby-sitedir was given.
24119 if test "${with_ruby_sitedir+set}" = set; then :
24120   withval=$with_ruby_sitedir; svn_ruby_installdir="$withval"
24121 else
24122   svn_ruby_installdir="$svn_cv_ruby_sitedir"
24123 fi
24124
24125
24126     { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to install Ruby scripts" >&5
24127 $as_echo_n "checking where to install Ruby scripts... " >&6; }
24128     if ${svn_cv_ruby_sitedir_libsuffix+:} false; then :
24129   $as_echo_n "(cached) " >&6
24130 else
24131
24132       svn_cv_ruby_sitedir_libsuffix="`echo "$rbconfig_sitelibdir" | \
24133                                         $SED -e "s,^$rbconfig_sitedir,,"`"
24134
24135 fi
24136
24137     SWIG_RB_SITE_LIB_DIR="${svn_ruby_installdir}${svn_cv_ruby_sitedir_libsuffix}"
24138     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG_RB_SITE_LIB_DIR" >&5
24139 $as_echo "$SWIG_RB_SITE_LIB_DIR" >&6; }
24140
24141     { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to install Ruby extensions" >&5
24142 $as_echo_n "checking where to install Ruby extensions... " >&6; }
24143     if ${svn_cv_ruby_sitedir_archsuffix+:} false; then :
24144   $as_echo_n "(cached) " >&6
24145 else
24146
24147       svn_cv_ruby_sitedir_archsuffix="`echo "$rbconfig_sitearchdir" | \
24148                                         $SED -e "s,^$rbconfig_sitedir,,"`"
24149
24150 fi
24151
24152     SWIG_RB_SITE_ARCH_DIR="${svn_ruby_installdir}${svn_cv_ruby_sitedir_archsuffix}"
24153     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG_RB_SITE_ARCH_DIR" >&5
24154 $as_echo "$SWIG_RB_SITE_ARCH_DIR" >&6; }
24155
24156     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to use output level for Ruby bindings tests" >&5
24157 $as_echo_n "checking how to use output level for Ruby bindings tests... " >&6; }
24158     if ${svn_cv_ruby_test_verbose+:} false; then :
24159   $as_echo_n "(cached) " >&6
24160 else
24161
24162       svn_cv_ruby_test_verbose="normal"
24163
24164 fi
24165
24166
24167 # Check whether --with-ruby-test-verbose was given.
24168 if test "${with_ruby_test_verbose+set}" = set; then :
24169   withval=$with_ruby_test_verbose; svn_ruby_test_verbose="$withval"
24170 else
24171   svn_ruby_test_verbose="$svn_cv_ruby_test_verbose"
24172 fi
24173
24174       SWIG_RB_TEST_VERBOSE="$svn_ruby_test_verbose"
24175       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG_RB_TEST_VERBOSE" >&5
24176 $as_echo "$SWIG_RB_TEST_VERBOSE" >&6; }
24177   fi
24178
24179
24180
24181
24182
24183
24184
24185
24186
24187
24188
24189
24190
24191
24192       ;;
24193       "yes")
24194
24195   where=check
24196
24197   if test $where = no; then
24198     SWIG=none
24199   elif test $where = check; then
24200     # Extract the first word of "swig", so it can be a program name with args.
24201 set dummy swig; ac_word=$2
24202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24203 $as_echo_n "checking for $ac_word... " >&6; }
24204 if ${ac_cv_path_SWIG+:} false; then :
24205   $as_echo_n "(cached) " >&6
24206 else
24207   case $SWIG in
24208   [\\/]* | ?:[\\/]*)
24209   ac_cv_path_SWIG="$SWIG" # Let the user override the test with a path.
24210   ;;
24211   *)
24212   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24213 for as_dir in $PATH
24214 do
24215   IFS=$as_save_IFS
24216   test -z "$as_dir" && as_dir=.
24217     for ac_exec_ext in '' $ac_executable_extensions; do
24218   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24219     ac_cv_path_SWIG="$as_dir/$ac_word$ac_exec_ext"
24220     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24221     break 2
24222   fi
24223 done
24224   done
24225 IFS=$as_save_IFS
24226
24227   test -z "$ac_cv_path_SWIG" && ac_cv_path_SWIG="none"
24228   ;;
24229 esac
24230 fi
24231 SWIG=$ac_cv_path_SWIG
24232 if test -n "$SWIG"; then
24233   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG" >&5
24234 $as_echo "$SWIG" >&6; }
24235 else
24236   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24237 $as_echo "no" >&6; }
24238 fi
24239
24240
24241   else
24242     if test -f "$where"; then
24243       SWIG="$where"
24244     else
24245       SWIG="$where/bin/swig"
24246     fi
24247     if test ! -f "$SWIG" || test ! -x "$SWIG"; then
24248       as_fn_error $? "Could not find swig binary at $SWIG" "$LINENO" 5
24249     fi
24250   fi
24251
24252   if test "$SWIG" != "none"; then
24253     { $as_echo "$as_me:${as_lineno-$LINENO}: checking swig version" >&5
24254 $as_echo_n "checking swig version... " >&6; }
24255     SWIG_VERSION_RAW="`$SWIG -version 2>&1 | \
24256                        $SED -ne 's/^.*Version \(.*\)$/\1/p'`"
24257     # We want the version as an integer so we can test against
24258     # which version we're using.  SWIG doesn't provide this
24259     # to us so we have to come up with it on our own.
24260     # The major is passed straight through,
24261     # the minor is zero padded to two places,
24262     # and the patch level is zero padded to three places.
24263     # e.g. 1.3.24 becomes 103024
24264     SWIG_VERSION="`echo \"$SWIG_VERSION_RAW\" | \
24265                   $SED -e 's/[^0-9\.].*$//' \
24266                       -e 's/\.\([0-9]\)$/.0\1/' \
24267                       -e 's/\.\([0-9][0-9]\)$/.0\1/' \
24268                       -e 's/\.\([0-9]\)\./0\1/; s/\.//g;'`"
24269     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG_VERSION_RAW" >&5
24270 $as_echo "$SWIG_VERSION_RAW" >&6; }
24271     # If you change the required swig version number, don't forget to update:
24272     #   subversion/bindings/swig/INSTALL
24273     #   packages/rpm/redhat-8+/subversion.spec
24274     #   packages/rpm/redhat-7.x/subversion.spec
24275     #   packages/rpm/rhel-3/subversion.spec
24276     #   packages/rpm/rhel-4/subversion.spec
24277     if test -n "$SWIG_VERSION" && test "$SWIG_VERSION" -ge "103024" && \
24278        test "$SWIG_VERSION" -lt "300000"; then
24279       SWIG_SUITABLE=yes
24280     else
24281       SWIG_SUITABLE=no
24282       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Detected SWIG version $SWIG_VERSION_RAW" >&5
24283 $as_echo "$as_me: WARNING: Detected SWIG version $SWIG_VERSION_RAW" >&2;}
24284       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Subversion requires SWIG >= 1.3.24 and < 3.0.0 " >&5
24285 $as_echo "$as_me: WARNING: Subversion requires SWIG >= 1.3.24 and < 3.0.0 " >&2;}
24286     fi
24287   fi
24288
24289   SWIG_PY_COMPILE="none"
24290   SWIG_PY_LINK="none"
24291   if test "$PYTHON" != "none"; then
24292     { $as_echo "$as_me:${as_lineno-$LINENO}: Configuring python swig binding" >&5
24293 $as_echo "$as_me: Configuring python swig binding" >&6;}
24294
24295     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python includes" >&5
24296 $as_echo_n "checking for Python includes... " >&6; }
24297 if ${ac_cv_python_includes+:} false; then :
24298   $as_echo_n "(cached) " >&6
24299 else
24300
24301       ac_cv_python_includes="`$PYTHON ${abs_srcdir}/build/get-py-info.py --includes`"
24302
24303 fi
24304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_python_includes" >&5
24305 $as_echo "$ac_cv_python_includes" >&6; }
24306     SWIG_PY_INCLUDES="\$(SWIG_INCLUDES) $ac_cv_python_includes"
24307
24308     if test "$ac_cv_python_includes" = "none"; then
24309       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: python bindings cannot be built without distutils module" >&5
24310 $as_echo "$as_me: WARNING: python bindings cannot be built without distutils module" >&2;}
24311     fi
24312
24313     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiling Python extensions" >&5
24314 $as_echo_n "checking for compiling Python extensions... " >&6; }
24315 if ${ac_cv_python_compile+:} false; then :
24316   $as_echo_n "(cached) " >&6
24317 else
24318
24319       ac_cv_python_compile="`$PYTHON ${abs_srcdir}/build/get-py-info.py --compile`"
24320
24321 fi
24322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_python_compile" >&5
24323 $as_echo "$ac_cv_python_compile" >&6; }
24324     SWIG_PY_COMPILE="$ac_cv_python_compile $CFLAGS"
24325
24326     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linking Python extensions" >&5
24327 $as_echo_n "checking for linking Python extensions... " >&6; }
24328 if ${ac_cv_python_link+:} false; then :
24329   $as_echo_n "(cached) " >&6
24330 else
24331
24332       ac_cv_python_link="`$PYTHON ${abs_srcdir}/build/get-py-info.py --link`"
24333
24334 fi
24335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_python_link" >&5
24336 $as_echo "$ac_cv_python_link" >&6; }
24337     SWIG_PY_LINK="$ac_cv_python_link"
24338
24339     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linking Python libraries" >&5
24340 $as_echo_n "checking for linking Python libraries... " >&6; }
24341 if ${ac_cv_python_libs+:} false; then :
24342   $as_echo_n "(cached) " >&6
24343 else
24344
24345       ac_cv_python_libs="`$PYTHON ${abs_srcdir}/build/get-py-info.py --libs`"
24346
24347 fi
24348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_python_libs" >&5
24349 $as_echo "$ac_cv_python_libs" >&6; }
24350     SWIG_PY_LIBS="`
24351   input_flags="$ac_cv_python_libs"
24352   output_flags=""
24353   filtered_dirs="/lib /lib64 /usr/lib /usr/lib64"
24354   for flag in $input_flags; do
24355     filter="no"
24356     for dir in $filtered_dirs; do
24357       if test "$flag" = "-L$dir" || test "$flag" = "-L$dir/"; then
24358         filter="yes"
24359         break
24360       fi
24361     done
24362     if test "$filter" = "no"; then
24363       output_flags="$output_flags $flag"
24364     fi
24365   done
24366   if test -n "$output_flags"; then
24367     printf "%s" "${output_flags# }"
24368   fi
24369 `"
24370
24371                 SVN_PYCFMT_SAVE_CPPFLAGS="$CPPFLAGS"
24372     CPPFLAGS="$CPPFLAGS $SVN_APR_INCLUDES"
24373     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for apr_int64_t Python/C API format string" >&5
24374 $as_echo_n "checking for apr_int64_t Python/C API format string... " >&6; }
24375 if ${svn_cv_pycfmt_apr_int64_t+:} false; then :
24376   $as_echo_n "(cached) " >&6
24377 else
24378
24379       if test "x$svn_cv_pycfmt_apr_int64_t" = "x"; then
24380         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24381 /* end confdefs.h.  */
24382 #include <apr.h>
24383                       MaTcHtHiS APR_INT64_T_FMT EnDeNd
24384 _ACEOF
24385 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24386   $EGREP "MaTcHtHiS +\"lld\" +EnDeNd" >/dev/null 2>&1; then :
24387   svn_cv_pycfmt_apr_int64_t="L"
24388 fi
24389 rm -f conftest*
24390
24391       fi
24392       if test "x$svn_cv_pycfmt_apr_int64_t" = "x"; then
24393         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24394 /* end confdefs.h.  */
24395 r
24396                      #include <apr.h>
24397                       MaTcHtHiS APR_INT64_T_FMT EnDeNd
24398 _ACEOF
24399 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24400   $EGREP "MaTcHtHiS +\"ld\" +EnDeNd" >/dev/null 2>&1; then :
24401   svn_cv_pycfmt_apr_int64_t="l"
24402 fi
24403 rm -f conftest*
24404
24405       fi
24406       if test "x$svn_cv_pycfmt_apr_int64_t" = "x"; then
24407         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24408 /* end confdefs.h.  */
24409 #include <apr.h>
24410                       MaTcHtHiS APR_INT64_T_FMT EnDeNd
24411 _ACEOF
24412 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24413   $EGREP "MaTcHtHiS +\"d\" +EnDeNd" >/dev/null 2>&1; then :
24414   svn_cv_pycfmt_apr_int64_t="i"
24415 fi
24416 rm -f conftest*
24417
24418       fi
24419
24420 fi
24421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $svn_cv_pycfmt_apr_int64_t" >&5
24422 $as_echo "$svn_cv_pycfmt_apr_int64_t" >&6; }
24423     CPPFLAGS="$SVN_PYCFMT_SAVE_CPPFLAGS"
24424     if test "x$svn_cv_pycfmt_apr_int64_t" = "x"; then
24425       as_fn_error $? "failed to recognize APR_INT64_T_FMT on this platform" "$LINENO" 5
24426     fi
24427
24428 cat >>confdefs.h <<_ACEOF
24429 #define SVN_APR_INT64_T_PYCFMT "$svn_cv_pycfmt_apr_int64_t"
24430 _ACEOF
24431
24432   fi
24433
24434   if test "$PERL" != "none"; then
24435     { $as_echo "$as_me:${as_lineno-$LINENO}: checking perl version" >&5
24436 $as_echo_n "checking perl version... " >&6; }
24437             PERL_VERSION="`$PERL -e 'q([); print $] * 1000000,$/;'`"
24438     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL_VERSION" >&5
24439 $as_echo "$PERL_VERSION" >&6; }
24440     if test "$PERL_VERSION" -ge "5008000"; then
24441       SWIG_PL_INCLUDES="\$(SWIG_INCLUDES) `$PERL -MExtUtils::Embed -e ccopts`"
24442     else
24443       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: perl bindings require perl 5.8.0 or newer." >&5
24444 $as_echo "$as_me: WARNING: perl bindings require perl 5.8.0 or newer." >&2;}
24445     fi
24446   fi
24447
24448   SWIG_RB_COMPILE="none"
24449   SWIG_RB_LINK="none"
24450   if test "$RUBY" != "none"; then
24451     rbconfig="$RUBY -rrbconfig -e "
24452
24453     for var_name in arch archdir CC LDSHARED DLEXT LIBS LIBRUBYARG \
24454                     rubyhdrdir rubyarchhdrdir sitedir sitelibdir sitearchdir libdir
24455     do
24456       rbconfig_tmp=`$rbconfig "print RbConfig::CONFIG['$var_name']"`
24457       eval "rbconfig_$var_name=\"$rbconfig_tmp\""
24458     done
24459
24460     { $as_echo "$as_me:${as_lineno-$LINENO}: Configuring Ruby SWIG binding" >&5
24461 $as_echo "$as_me: Configuring Ruby SWIG binding" >&6;}
24462
24463     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ruby include path" >&5
24464 $as_echo_n "checking for Ruby include path... " >&6; }
24465 if ${svn_cv_ruby_includes+:} false; then :
24466   $as_echo_n "(cached) " >&6
24467 else
24468
24469     if test -d "$rbconfig_rubyhdrdir"; then
24470             svn_cv_ruby_includes="-I. -I$rbconfig_rubyhdrdir -I$rbconfig_rubyhdrdir/ruby -I$rbconfig_rubyhdrdir/ruby/backward"
24471       if test -d "$rbconfig_rubyarchhdrdir"; then
24472                 svn_cv_ruby_includes="$svn_cv_ruby_includes -I$rbconfig_rubyarchhdrdir"
24473       else
24474         svn_cv_ruby_includes="$svn_cv_ruby_includes -I$rbconfig_rubyhdrdir/$rbconfig_arch"
24475       fi
24476     else
24477             svn_cv_ruby_includes="-I. -I$rbconfig_archdir"
24478     fi
24479
24480 fi
24481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $svn_cv_ruby_includes" >&5
24482 $as_echo "$svn_cv_ruby_includes" >&6; }
24483     SWIG_RB_INCLUDES="\$(SWIG_INCLUDES) $svn_cv_ruby_includes"
24484
24485     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compile Ruby extensions" >&5
24486 $as_echo_n "checking how to compile Ruby extensions... " >&6; }
24487 if ${svn_cv_ruby_compile+:} false; then :
24488   $as_echo_n "(cached) " >&6
24489 else
24490
24491       svn_cv_ruby_compile="$rbconfig_CC $CFLAGS"
24492
24493 fi
24494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $svn_cv_ruby_compile" >&5
24495 $as_echo "$svn_cv_ruby_compile" >&6; }
24496     SWIG_RB_COMPILE="$svn_cv_ruby_compile"
24497
24498   SWIG_RB_COMPILE=`echo "$SWIG_RB_COMPILE" | $SED -e 's/-ansi//'`
24499
24500
24501   SWIG_RB_COMPILE=`echo "$SWIG_RB_COMPILE" | $SED -e 's/-std=c89//'`
24502
24503
24504   SWIG_RB_COMPILE=`echo "$SWIG_RB_COMPILE" | $SED -e 's/-std=c90//'`
24505
24506         SWIG_RB_COMPILE="$SWIG_RB_COMPILE -Wno-int-to-pointer-cast"
24507
24508     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link Ruby extensions" >&5
24509 $as_echo_n "checking how to link Ruby extensions... " >&6; }
24510 if ${svn_cv_ruby_link+:} false; then :
24511   $as_echo_n "(cached) " >&6
24512 else
24513
24514       svn_cv_ruby_link="`$RUBY -e 'ARGV.shift; print ARGV.join(%q( ))' \
24515                            $rbconfig_LDSHARED`"
24516       svn_cv_ruby_link="$rbconfig_CC $svn_cv_ruby_link"
24517       svn_cv_ruby_link="$svn_cv_ruby_link -shrext .$rbconfig_DLEXT"
24518
24519 fi
24520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $svn_cv_ruby_link" >&5
24521 $as_echo "$svn_cv_ruby_link" >&6; }
24522     SWIG_RB_LINK="$svn_cv_ruby_link"
24523
24524     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link Ruby libraries" >&5
24525 $as_echo_n "checking how to link Ruby libraries... " >&6; }
24526 if ${ac_cv_ruby_libs+:} false; then :
24527   $as_echo_n "(cached) " >&6
24528 else
24529
24530       ac_cv_ruby_libs="$rbconfig_LIBRUBYARG $rbconfig_LIBS"
24531
24532 fi
24533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_ruby_libs" >&5
24534 $as_echo "$ac_cv_ruby_libs" >&6; }
24535     SWIG_RB_LIBS="`
24536   input_flags="$ac_cv_ruby_libs"
24537   output_flags=""
24538   filtered_dirs="/lib /lib64 /usr/lib /usr/lib64"
24539   for flag in $input_flags; do
24540     filter="no"
24541     for dir in $filtered_dirs; do
24542       if test "$flag" = "-L$dir" || test "$flag" = "-L$dir/"; then
24543         filter="yes"
24544         break
24545       fi
24546     done
24547     if test "$filter" = "no"; then
24548       output_flags="$output_flags $flag"
24549     fi
24550   done
24551   if test -n "$output_flags"; then
24552     printf "%s" "${output_flags# }"
24553   fi
24554 `"
24555
24556     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rb_errinfo" >&5
24557 $as_echo_n "checking for rb_errinfo... " >&6; }
24558     old_CFLAGS="$CFLAGS"
24559     old_LIBS="$LIBS"
24560     CFLAGS="$CFLAGS $svn_cv_ruby_includes"
24561
24562   CFLAGS=`echo "$CFLAGS" | $SED -e 's/-ansi//'`
24563
24564
24565   CFLAGS=`echo "$CFLAGS" | $SED -e 's/-std=c89//'`
24566
24567
24568   CFLAGS=`echo "$CFLAGS" | $SED -e 's/-std=c90//'`
24569
24570     LIBS="$SWIG_RB_LIBS"
24571     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24572 /* end confdefs.h.  */
24573
24574 #include <ruby.h>
24575 int main()
24576 {rb_errinfo();}
24577 _ACEOF
24578 if ac_fn_c_try_link "$LINENO"; then :
24579   have_rb_errinfo="yes"
24580 else
24581   have_rb_errinfo="no"
24582 fi
24583 rm -f core conftest.err conftest.$ac_objext \
24584     conftest$ac_exeext conftest.$ac_ext
24585     if test "$have_rb_errinfo" = "yes"; then
24586       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24587 $as_echo "yes" >&6; }
24588
24589 $as_echo "#define HAVE_RB_ERRINFO 1" >>confdefs.h
24590
24591     else
24592       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24593 $as_echo "no" >&6; }
24594     fi
24595     CFLAGS="$old_CFLAGS"
24596     LIBS="$old_LIBS"
24597
24598     if ${svn_cv_ruby_sitedir+:} false; then :
24599   $as_echo_n "(cached) " >&6
24600 else
24601
24602       svn_cv_ruby_sitedir="$rbconfig_sitedir"
24603
24604 fi
24605
24606
24607 # Check whether --with-ruby-sitedir was given.
24608 if test "${with_ruby_sitedir+set}" = set; then :
24609   withval=$with_ruby_sitedir; svn_ruby_installdir="$withval"
24610 else
24611   svn_ruby_installdir="$svn_cv_ruby_sitedir"
24612 fi
24613
24614
24615     { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to install Ruby scripts" >&5
24616 $as_echo_n "checking where to install Ruby scripts... " >&6; }
24617     if ${svn_cv_ruby_sitedir_libsuffix+:} false; then :
24618   $as_echo_n "(cached) " >&6
24619 else
24620
24621       svn_cv_ruby_sitedir_libsuffix="`echo "$rbconfig_sitelibdir" | \
24622                                         $SED -e "s,^$rbconfig_sitedir,,"`"
24623
24624 fi
24625
24626     SWIG_RB_SITE_LIB_DIR="${svn_ruby_installdir}${svn_cv_ruby_sitedir_libsuffix}"
24627     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG_RB_SITE_LIB_DIR" >&5
24628 $as_echo "$SWIG_RB_SITE_LIB_DIR" >&6; }
24629
24630     { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to install Ruby extensions" >&5
24631 $as_echo_n "checking where to install Ruby extensions... " >&6; }
24632     if ${svn_cv_ruby_sitedir_archsuffix+:} false; then :
24633   $as_echo_n "(cached) " >&6
24634 else
24635
24636       svn_cv_ruby_sitedir_archsuffix="`echo "$rbconfig_sitearchdir" | \
24637                                         $SED -e "s,^$rbconfig_sitedir,,"`"
24638
24639 fi
24640
24641     SWIG_RB_SITE_ARCH_DIR="${svn_ruby_installdir}${svn_cv_ruby_sitedir_archsuffix}"
24642     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG_RB_SITE_ARCH_DIR" >&5
24643 $as_echo "$SWIG_RB_SITE_ARCH_DIR" >&6; }
24644
24645     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to use output level for Ruby bindings tests" >&5
24646 $as_echo_n "checking how to use output level for Ruby bindings tests... " >&6; }
24647     if ${svn_cv_ruby_test_verbose+:} false; then :
24648   $as_echo_n "(cached) " >&6
24649 else
24650
24651       svn_cv_ruby_test_verbose="normal"
24652
24653 fi
24654
24655
24656 # Check whether --with-ruby-test-verbose was given.
24657 if test "${with_ruby_test_verbose+set}" = set; then :
24658   withval=$with_ruby_test_verbose; svn_ruby_test_verbose="$withval"
24659 else
24660   svn_ruby_test_verbose="$svn_cv_ruby_test_verbose"
24661 fi
24662
24663       SWIG_RB_TEST_VERBOSE="$svn_ruby_test_verbose"
24664       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG_RB_TEST_VERBOSE" >&5
24665 $as_echo "$SWIG_RB_TEST_VERBOSE" >&6; }
24666   fi
24667
24668
24669
24670
24671
24672
24673
24674
24675
24676
24677
24678
24679
24680
24681       ;;
24682       *)
24683
24684   where=$withval
24685
24686   if test $where = no; then
24687     SWIG=none
24688   elif test $where = check; then
24689     # Extract the first word of "swig", so it can be a program name with args.
24690 set dummy swig; ac_word=$2
24691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24692 $as_echo_n "checking for $ac_word... " >&6; }
24693 if ${ac_cv_path_SWIG+:} false; then :
24694   $as_echo_n "(cached) " >&6
24695 else
24696   case $SWIG in
24697   [\\/]* | ?:[\\/]*)
24698   ac_cv_path_SWIG="$SWIG" # Let the user override the test with a path.
24699   ;;
24700   *)
24701   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24702 for as_dir in $PATH
24703 do
24704   IFS=$as_save_IFS
24705   test -z "$as_dir" && as_dir=.
24706     for ac_exec_ext in '' $ac_executable_extensions; do
24707   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24708     ac_cv_path_SWIG="$as_dir/$ac_word$ac_exec_ext"
24709     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24710     break 2
24711   fi
24712 done
24713   done
24714 IFS=$as_save_IFS
24715
24716   test -z "$ac_cv_path_SWIG" && ac_cv_path_SWIG="none"
24717   ;;
24718 esac
24719 fi
24720 SWIG=$ac_cv_path_SWIG
24721 if test -n "$SWIG"; then
24722   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG" >&5
24723 $as_echo "$SWIG" >&6; }
24724 else
24725   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24726 $as_echo "no" >&6; }
24727 fi
24728
24729
24730   else
24731     if test -f "$where"; then
24732       SWIG="$where"
24733     else
24734       SWIG="$where/bin/swig"
24735     fi
24736     if test ! -f "$SWIG" || test ! -x "$SWIG"; then
24737       as_fn_error $? "Could not find swig binary at $SWIG" "$LINENO" 5
24738     fi
24739   fi
24740
24741   if test "$SWIG" != "none"; then
24742     { $as_echo "$as_me:${as_lineno-$LINENO}: checking swig version" >&5
24743 $as_echo_n "checking swig version... " >&6; }
24744     SWIG_VERSION_RAW="`$SWIG -version 2>&1 | \
24745                        $SED -ne 's/^.*Version \(.*\)$/\1/p'`"
24746     # We want the version as an integer so we can test against
24747     # which version we're using.  SWIG doesn't provide this
24748     # to us so we have to come up with it on our own.
24749     # The major is passed straight through,
24750     # the minor is zero padded to two places,
24751     # and the patch level is zero padded to three places.
24752     # e.g. 1.3.24 becomes 103024
24753     SWIG_VERSION="`echo \"$SWIG_VERSION_RAW\" | \
24754                   $SED -e 's/[^0-9\.].*$//' \
24755                       -e 's/\.\([0-9]\)$/.0\1/' \
24756                       -e 's/\.\([0-9][0-9]\)$/.0\1/' \
24757                       -e 's/\.\([0-9]\)\./0\1/; s/\.//g;'`"
24758     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG_VERSION_RAW" >&5
24759 $as_echo "$SWIG_VERSION_RAW" >&6; }
24760     # If you change the required swig version number, don't forget to update:
24761     #   subversion/bindings/swig/INSTALL
24762     #   packages/rpm/redhat-8+/subversion.spec
24763     #   packages/rpm/redhat-7.x/subversion.spec
24764     #   packages/rpm/rhel-3/subversion.spec
24765     #   packages/rpm/rhel-4/subversion.spec
24766     if test -n "$SWIG_VERSION" && test "$SWIG_VERSION" -ge "103024" && \
24767        test "$SWIG_VERSION" -lt "300000"; then
24768       SWIG_SUITABLE=yes
24769     else
24770       SWIG_SUITABLE=no
24771       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Detected SWIG version $SWIG_VERSION_RAW" >&5
24772 $as_echo "$as_me: WARNING: Detected SWIG version $SWIG_VERSION_RAW" >&2;}
24773       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Subversion requires SWIG >= 1.3.24 and < 3.0.0 " >&5
24774 $as_echo "$as_me: WARNING: Subversion requires SWIG >= 1.3.24 and < 3.0.0 " >&2;}
24775     fi
24776   fi
24777
24778   SWIG_PY_COMPILE="none"
24779   SWIG_PY_LINK="none"
24780   if test "$PYTHON" != "none"; then
24781     { $as_echo "$as_me:${as_lineno-$LINENO}: Configuring python swig binding" >&5
24782 $as_echo "$as_me: Configuring python swig binding" >&6;}
24783
24784     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python includes" >&5
24785 $as_echo_n "checking for Python includes... " >&6; }
24786 if ${ac_cv_python_includes+:} false; then :
24787   $as_echo_n "(cached) " >&6
24788 else
24789
24790       ac_cv_python_includes="`$PYTHON ${abs_srcdir}/build/get-py-info.py --includes`"
24791
24792 fi
24793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_python_includes" >&5
24794 $as_echo "$ac_cv_python_includes" >&6; }
24795     SWIG_PY_INCLUDES="\$(SWIG_INCLUDES) $ac_cv_python_includes"
24796
24797     if test "$ac_cv_python_includes" = "none"; then
24798       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: python bindings cannot be built without distutils module" >&5
24799 $as_echo "$as_me: WARNING: python bindings cannot be built without distutils module" >&2;}
24800     fi
24801
24802     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiling Python extensions" >&5
24803 $as_echo_n "checking for compiling Python extensions... " >&6; }
24804 if ${ac_cv_python_compile+:} false; then :
24805   $as_echo_n "(cached) " >&6
24806 else
24807
24808       ac_cv_python_compile="`$PYTHON ${abs_srcdir}/build/get-py-info.py --compile`"
24809
24810 fi
24811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_python_compile" >&5
24812 $as_echo "$ac_cv_python_compile" >&6; }
24813     SWIG_PY_COMPILE="$ac_cv_python_compile $CFLAGS"
24814
24815     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linking Python extensions" >&5
24816 $as_echo_n "checking for linking Python extensions... " >&6; }
24817 if ${ac_cv_python_link+:} false; then :
24818   $as_echo_n "(cached) " >&6
24819 else
24820
24821       ac_cv_python_link="`$PYTHON ${abs_srcdir}/build/get-py-info.py --link`"
24822
24823 fi
24824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_python_link" >&5
24825 $as_echo "$ac_cv_python_link" >&6; }
24826     SWIG_PY_LINK="$ac_cv_python_link"
24827
24828     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linking Python libraries" >&5
24829 $as_echo_n "checking for linking Python libraries... " >&6; }
24830 if ${ac_cv_python_libs+:} false; then :
24831   $as_echo_n "(cached) " >&6
24832 else
24833
24834       ac_cv_python_libs="`$PYTHON ${abs_srcdir}/build/get-py-info.py --libs`"
24835
24836 fi
24837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_python_libs" >&5
24838 $as_echo "$ac_cv_python_libs" >&6; }
24839     SWIG_PY_LIBS="`
24840   input_flags="$ac_cv_python_libs"
24841   output_flags=""
24842   filtered_dirs="/lib /lib64 /usr/lib /usr/lib64"
24843   for flag in $input_flags; do
24844     filter="no"
24845     for dir in $filtered_dirs; do
24846       if test "$flag" = "-L$dir" || test "$flag" = "-L$dir/"; then
24847         filter="yes"
24848         break
24849       fi
24850     done
24851     if test "$filter" = "no"; then
24852       output_flags="$output_flags $flag"
24853     fi
24854   done
24855   if test -n "$output_flags"; then
24856     printf "%s" "${output_flags# }"
24857   fi
24858 `"
24859
24860                 SVN_PYCFMT_SAVE_CPPFLAGS="$CPPFLAGS"
24861     CPPFLAGS="$CPPFLAGS $SVN_APR_INCLUDES"
24862     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for apr_int64_t Python/C API format string" >&5
24863 $as_echo_n "checking for apr_int64_t Python/C API format string... " >&6; }
24864 if ${svn_cv_pycfmt_apr_int64_t+:} false; then :
24865   $as_echo_n "(cached) " >&6
24866 else
24867
24868       if test "x$svn_cv_pycfmt_apr_int64_t" = "x"; then
24869         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24870 /* end confdefs.h.  */
24871 #include <apr.h>
24872                       MaTcHtHiS APR_INT64_T_FMT EnDeNd
24873 _ACEOF
24874 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24875   $EGREP "MaTcHtHiS +\"lld\" +EnDeNd" >/dev/null 2>&1; then :
24876   svn_cv_pycfmt_apr_int64_t="L"
24877 fi
24878 rm -f conftest*
24879
24880       fi
24881       if test "x$svn_cv_pycfmt_apr_int64_t" = "x"; then
24882         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24883 /* end confdefs.h.  */
24884 r
24885                      #include <apr.h>
24886                       MaTcHtHiS APR_INT64_T_FMT EnDeNd
24887 _ACEOF
24888 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24889   $EGREP "MaTcHtHiS +\"ld\" +EnDeNd" >/dev/null 2>&1; then :
24890   svn_cv_pycfmt_apr_int64_t="l"
24891 fi
24892 rm -f conftest*
24893
24894       fi
24895       if test "x$svn_cv_pycfmt_apr_int64_t" = "x"; then
24896         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24897 /* end confdefs.h.  */
24898 #include <apr.h>
24899                       MaTcHtHiS APR_INT64_T_FMT EnDeNd
24900 _ACEOF
24901 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24902   $EGREP "MaTcHtHiS +\"d\" +EnDeNd" >/dev/null 2>&1; then :
24903   svn_cv_pycfmt_apr_int64_t="i"
24904 fi
24905 rm -f conftest*
24906
24907       fi
24908
24909 fi
24910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $svn_cv_pycfmt_apr_int64_t" >&5
24911 $as_echo "$svn_cv_pycfmt_apr_int64_t" >&6; }
24912     CPPFLAGS="$SVN_PYCFMT_SAVE_CPPFLAGS"
24913     if test "x$svn_cv_pycfmt_apr_int64_t" = "x"; then
24914       as_fn_error $? "failed to recognize APR_INT64_T_FMT on this platform" "$LINENO" 5
24915     fi
24916
24917 cat >>confdefs.h <<_ACEOF
24918 #define SVN_APR_INT64_T_PYCFMT "$svn_cv_pycfmt_apr_int64_t"
24919 _ACEOF
24920
24921   fi
24922
24923   if test "$PERL" != "none"; then
24924     { $as_echo "$as_me:${as_lineno-$LINENO}: checking perl version" >&5
24925 $as_echo_n "checking perl version... " >&6; }
24926             PERL_VERSION="`$PERL -e 'q([); print $] * 1000000,$/;'`"
24927     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL_VERSION" >&5
24928 $as_echo "$PERL_VERSION" >&6; }
24929     if test "$PERL_VERSION" -ge "5008000"; then
24930       SWIG_PL_INCLUDES="\$(SWIG_INCLUDES) `$PERL -MExtUtils::Embed -e ccopts`"
24931     else
24932       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: perl bindings require perl 5.8.0 or newer." >&5
24933 $as_echo "$as_me: WARNING: perl bindings require perl 5.8.0 or newer." >&2;}
24934     fi
24935   fi
24936
24937   SWIG_RB_COMPILE="none"
24938   SWIG_RB_LINK="none"
24939   if test "$RUBY" != "none"; then
24940     rbconfig="$RUBY -rrbconfig -e "
24941
24942     for var_name in arch archdir CC LDSHARED DLEXT LIBS LIBRUBYARG \
24943                     rubyhdrdir rubyarchhdrdir sitedir sitelibdir sitearchdir libdir
24944     do
24945       rbconfig_tmp=`$rbconfig "print RbConfig::CONFIG['$var_name']"`
24946       eval "rbconfig_$var_name=\"$rbconfig_tmp\""
24947     done
24948
24949     { $as_echo "$as_me:${as_lineno-$LINENO}: Configuring Ruby SWIG binding" >&5
24950 $as_echo "$as_me: Configuring Ruby SWIG binding" >&6;}
24951
24952     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ruby include path" >&5
24953 $as_echo_n "checking for Ruby include path... " >&6; }
24954 if ${svn_cv_ruby_includes+:} false; then :
24955   $as_echo_n "(cached) " >&6
24956 else
24957
24958     if test -d "$rbconfig_rubyhdrdir"; then
24959             svn_cv_ruby_includes="-I. -I$rbconfig_rubyhdrdir -I$rbconfig_rubyhdrdir/ruby -I$rbconfig_rubyhdrdir/ruby/backward"
24960       if test -d "$rbconfig_rubyarchhdrdir"; then
24961                 svn_cv_ruby_includes="$svn_cv_ruby_includes -I$rbconfig_rubyarchhdrdir"
24962       else
24963         svn_cv_ruby_includes="$svn_cv_ruby_includes -I$rbconfig_rubyhdrdir/$rbconfig_arch"
24964       fi
24965     else
24966             svn_cv_ruby_includes="-I. -I$rbconfig_archdir"
24967     fi
24968
24969 fi
24970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $svn_cv_ruby_includes" >&5
24971 $as_echo "$svn_cv_ruby_includes" >&6; }
24972     SWIG_RB_INCLUDES="\$(SWIG_INCLUDES) $svn_cv_ruby_includes"
24973
24974     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compile Ruby extensions" >&5
24975 $as_echo_n "checking how to compile Ruby extensions... " >&6; }
24976 if ${svn_cv_ruby_compile+:} false; then :
24977   $as_echo_n "(cached) " >&6
24978 else
24979
24980       svn_cv_ruby_compile="$rbconfig_CC $CFLAGS"
24981
24982 fi
24983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $svn_cv_ruby_compile" >&5
24984 $as_echo "$svn_cv_ruby_compile" >&6; }
24985     SWIG_RB_COMPILE="$svn_cv_ruby_compile"
24986
24987   SWIG_RB_COMPILE=`echo "$SWIG_RB_COMPILE" | $SED -e 's/-ansi//'`
24988
24989
24990   SWIG_RB_COMPILE=`echo "$SWIG_RB_COMPILE" | $SED -e 's/-std=c89//'`
24991
24992
24993   SWIG_RB_COMPILE=`echo "$SWIG_RB_COMPILE" | $SED -e 's/-std=c90//'`
24994
24995         SWIG_RB_COMPILE="$SWIG_RB_COMPILE -Wno-int-to-pointer-cast"
24996
24997     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link Ruby extensions" >&5
24998 $as_echo_n "checking how to link Ruby extensions... " >&6; }
24999 if ${svn_cv_ruby_link+:} false; then :
25000   $as_echo_n "(cached) " >&6
25001 else
25002
25003       svn_cv_ruby_link="`$RUBY -e 'ARGV.shift; print ARGV.join(%q( ))' \
25004                            $rbconfig_LDSHARED`"
25005       svn_cv_ruby_link="$rbconfig_CC $svn_cv_ruby_link"
25006       svn_cv_ruby_link="$svn_cv_ruby_link -shrext .$rbconfig_DLEXT"
25007
25008 fi
25009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $svn_cv_ruby_link" >&5
25010 $as_echo "$svn_cv_ruby_link" >&6; }
25011     SWIG_RB_LINK="$svn_cv_ruby_link"
25012
25013     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link Ruby libraries" >&5
25014 $as_echo_n "checking how to link Ruby libraries... " >&6; }
25015 if ${ac_cv_ruby_libs+:} false; then :
25016   $as_echo_n "(cached) " >&6
25017 else
25018
25019       ac_cv_ruby_libs="$rbconfig_LIBRUBYARG $rbconfig_LIBS"
25020
25021 fi
25022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_ruby_libs" >&5
25023 $as_echo "$ac_cv_ruby_libs" >&6; }
25024     SWIG_RB_LIBS="`
25025   input_flags="$ac_cv_ruby_libs"
25026   output_flags=""
25027   filtered_dirs="/lib /lib64 /usr/lib /usr/lib64"
25028   for flag in $input_flags; do
25029     filter="no"
25030     for dir in $filtered_dirs; do
25031       if test "$flag" = "-L$dir" || test "$flag" = "-L$dir/"; then
25032         filter="yes"
25033         break
25034       fi
25035     done
25036     if test "$filter" = "no"; then
25037       output_flags="$output_flags $flag"
25038     fi
25039   done
25040   if test -n "$output_flags"; then
25041     printf "%s" "${output_flags# }"
25042   fi
25043 `"
25044
25045     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rb_errinfo" >&5
25046 $as_echo_n "checking for rb_errinfo... " >&6; }
25047     old_CFLAGS="$CFLAGS"
25048     old_LIBS="$LIBS"
25049     CFLAGS="$CFLAGS $svn_cv_ruby_includes"
25050
25051   CFLAGS=`echo "$CFLAGS" | $SED -e 's/-ansi//'`
25052
25053
25054   CFLAGS=`echo "$CFLAGS" | $SED -e 's/-std=c89//'`
25055
25056
25057   CFLAGS=`echo "$CFLAGS" | $SED -e 's/-std=c90//'`
25058
25059     LIBS="$SWIG_RB_LIBS"
25060     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25061 /* end confdefs.h.  */
25062
25063 #include <ruby.h>
25064 int main()
25065 {rb_errinfo();}
25066 _ACEOF
25067 if ac_fn_c_try_link "$LINENO"; then :
25068   have_rb_errinfo="yes"
25069 else
25070   have_rb_errinfo="no"
25071 fi
25072 rm -f core conftest.err conftest.$ac_objext \
25073     conftest$ac_exeext conftest.$ac_ext
25074     if test "$have_rb_errinfo" = "yes"; then
25075       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25076 $as_echo "yes" >&6; }
25077
25078 $as_echo "#define HAVE_RB_ERRINFO 1" >>confdefs.h
25079
25080     else
25081       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25082 $as_echo "no" >&6; }
25083     fi
25084     CFLAGS="$old_CFLAGS"
25085     LIBS="$old_LIBS"
25086
25087     if ${svn_cv_ruby_sitedir+:} false; then :
25088   $as_echo_n "(cached) " >&6
25089 else
25090
25091       svn_cv_ruby_sitedir="$rbconfig_sitedir"
25092
25093 fi
25094
25095
25096 # Check whether --with-ruby-sitedir was given.
25097 if test "${with_ruby_sitedir+set}" = set; then :
25098   withval=$with_ruby_sitedir; svn_ruby_installdir="$withval"
25099 else
25100   svn_ruby_installdir="$svn_cv_ruby_sitedir"
25101 fi
25102
25103
25104     { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to install Ruby scripts" >&5
25105 $as_echo_n "checking where to install Ruby scripts... " >&6; }
25106     if ${svn_cv_ruby_sitedir_libsuffix+:} false; then :
25107   $as_echo_n "(cached) " >&6
25108 else
25109
25110       svn_cv_ruby_sitedir_libsuffix="`echo "$rbconfig_sitelibdir" | \
25111                                         $SED -e "s,^$rbconfig_sitedir,,"`"
25112
25113 fi
25114
25115     SWIG_RB_SITE_LIB_DIR="${svn_ruby_installdir}${svn_cv_ruby_sitedir_libsuffix}"
25116     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG_RB_SITE_LIB_DIR" >&5
25117 $as_echo "$SWIG_RB_SITE_LIB_DIR" >&6; }
25118
25119     { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to install Ruby extensions" >&5
25120 $as_echo_n "checking where to install Ruby extensions... " >&6; }
25121     if ${svn_cv_ruby_sitedir_archsuffix+:} false; then :
25122   $as_echo_n "(cached) " >&6
25123 else
25124
25125       svn_cv_ruby_sitedir_archsuffix="`echo "$rbconfig_sitearchdir" | \
25126                                         $SED -e "s,^$rbconfig_sitedir,,"`"
25127
25128 fi
25129
25130     SWIG_RB_SITE_ARCH_DIR="${svn_ruby_installdir}${svn_cv_ruby_sitedir_archsuffix}"
25131     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG_RB_SITE_ARCH_DIR" >&5
25132 $as_echo "$SWIG_RB_SITE_ARCH_DIR" >&6; }
25133
25134     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to use output level for Ruby bindings tests" >&5
25135 $as_echo_n "checking how to use output level for Ruby bindings tests... " >&6; }
25136     if ${svn_cv_ruby_test_verbose+:} false; then :
25137   $as_echo_n "(cached) " >&6
25138 else
25139
25140       svn_cv_ruby_test_verbose="normal"
25141
25142 fi
25143
25144
25145 # Check whether --with-ruby-test-verbose was given.
25146 if test "${with_ruby_test_verbose+set}" = set; then :
25147   withval=$with_ruby_test_verbose; svn_ruby_test_verbose="$withval"
25148 else
25149   svn_ruby_test_verbose="$svn_cv_ruby_test_verbose"
25150 fi
25151
25152       SWIG_RB_TEST_VERBOSE="$svn_ruby_test_verbose"
25153       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG_RB_TEST_VERBOSE" >&5
25154 $as_echo "$SWIG_RB_TEST_VERBOSE" >&6; }
25155   fi
25156
25157
25158
25159
25160
25161
25162
25163
25164
25165
25166
25167
25168
25169
25170       ;;
25171     esac
25172
25173 else
25174
25175
25176   where=check
25177
25178   if test $where = no; then
25179     SWIG=none
25180   elif test $where = check; then
25181     # Extract the first word of "swig", so it can be a program name with args.
25182 set dummy swig; ac_word=$2
25183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25184 $as_echo_n "checking for $ac_word... " >&6; }
25185 if ${ac_cv_path_SWIG+:} false; then :
25186   $as_echo_n "(cached) " >&6
25187 else
25188   case $SWIG in
25189   [\\/]* | ?:[\\/]*)
25190   ac_cv_path_SWIG="$SWIG" # Let the user override the test with a path.
25191   ;;
25192   *)
25193   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25194 for as_dir in $PATH
25195 do
25196   IFS=$as_save_IFS
25197   test -z "$as_dir" && as_dir=.
25198     for ac_exec_ext in '' $ac_executable_extensions; do
25199   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25200     ac_cv_path_SWIG="$as_dir/$ac_word$ac_exec_ext"
25201     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25202     break 2
25203   fi
25204 done
25205   done
25206 IFS=$as_save_IFS
25207
25208   test -z "$ac_cv_path_SWIG" && ac_cv_path_SWIG="none"
25209   ;;
25210 esac
25211 fi
25212 SWIG=$ac_cv_path_SWIG
25213 if test -n "$SWIG"; then
25214   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG" >&5
25215 $as_echo "$SWIG" >&6; }
25216 else
25217   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25218 $as_echo "no" >&6; }
25219 fi
25220
25221
25222   else
25223     if test -f "$where"; then
25224       SWIG="$where"
25225     else
25226       SWIG="$where/bin/swig"
25227     fi
25228     if test ! -f "$SWIG" || test ! -x "$SWIG"; then
25229       as_fn_error $? "Could not find swig binary at $SWIG" "$LINENO" 5
25230     fi
25231   fi
25232
25233   if test "$SWIG" != "none"; then
25234     { $as_echo "$as_me:${as_lineno-$LINENO}: checking swig version" >&5
25235 $as_echo_n "checking swig version... " >&6; }
25236     SWIG_VERSION_RAW="`$SWIG -version 2>&1 | \
25237                        $SED -ne 's/^.*Version \(.*\)$/\1/p'`"
25238     # We want the version as an integer so we can test against
25239     # which version we're using.  SWIG doesn't provide this
25240     # to us so we have to come up with it on our own.
25241     # The major is passed straight through,
25242     # the minor is zero padded to two places,
25243     # and the patch level is zero padded to three places.
25244     # e.g. 1.3.24 becomes 103024
25245     SWIG_VERSION="`echo \"$SWIG_VERSION_RAW\" | \
25246                   $SED -e 's/[^0-9\.].*$//' \
25247                       -e 's/\.\([0-9]\)$/.0\1/' \
25248                       -e 's/\.\([0-9][0-9]\)$/.0\1/' \
25249                       -e 's/\.\([0-9]\)\./0\1/; s/\.//g;'`"
25250     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG_VERSION_RAW" >&5
25251 $as_echo "$SWIG_VERSION_RAW" >&6; }
25252     # If you change the required swig version number, don't forget to update:
25253     #   subversion/bindings/swig/INSTALL
25254     #   packages/rpm/redhat-8+/subversion.spec
25255     #   packages/rpm/redhat-7.x/subversion.spec
25256     #   packages/rpm/rhel-3/subversion.spec
25257     #   packages/rpm/rhel-4/subversion.spec
25258     if test -n "$SWIG_VERSION" && test "$SWIG_VERSION" -ge "103024" && \
25259        test "$SWIG_VERSION" -lt "300000"; then
25260       SWIG_SUITABLE=yes
25261     else
25262       SWIG_SUITABLE=no
25263       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Detected SWIG version $SWIG_VERSION_RAW" >&5
25264 $as_echo "$as_me: WARNING: Detected SWIG version $SWIG_VERSION_RAW" >&2;}
25265       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Subversion requires SWIG >= 1.3.24 and < 3.0.0 " >&5
25266 $as_echo "$as_me: WARNING: Subversion requires SWIG >= 1.3.24 and < 3.0.0 " >&2;}
25267     fi
25268   fi
25269
25270   SWIG_PY_COMPILE="none"
25271   SWIG_PY_LINK="none"
25272   if test "$PYTHON" != "none"; then
25273     { $as_echo "$as_me:${as_lineno-$LINENO}: Configuring python swig binding" >&5
25274 $as_echo "$as_me: Configuring python swig binding" >&6;}
25275
25276     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python includes" >&5
25277 $as_echo_n "checking for Python includes... " >&6; }
25278 if ${ac_cv_python_includes+:} false; then :
25279   $as_echo_n "(cached) " >&6
25280 else
25281
25282       ac_cv_python_includes="`$PYTHON ${abs_srcdir}/build/get-py-info.py --includes`"
25283
25284 fi
25285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_python_includes" >&5
25286 $as_echo "$ac_cv_python_includes" >&6; }
25287     SWIG_PY_INCLUDES="\$(SWIG_INCLUDES) $ac_cv_python_includes"
25288
25289     if test "$ac_cv_python_includes" = "none"; then
25290       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: python bindings cannot be built without distutils module" >&5
25291 $as_echo "$as_me: WARNING: python bindings cannot be built without distutils module" >&2;}
25292     fi
25293
25294     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiling Python extensions" >&5
25295 $as_echo_n "checking for compiling Python extensions... " >&6; }
25296 if ${ac_cv_python_compile+:} false; then :
25297   $as_echo_n "(cached) " >&6
25298 else
25299
25300       ac_cv_python_compile="`$PYTHON ${abs_srcdir}/build/get-py-info.py --compile`"
25301
25302 fi
25303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_python_compile" >&5
25304 $as_echo "$ac_cv_python_compile" >&6; }
25305     SWIG_PY_COMPILE="$ac_cv_python_compile $CFLAGS"
25306
25307     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linking Python extensions" >&5
25308 $as_echo_n "checking for linking Python extensions... " >&6; }
25309 if ${ac_cv_python_link+:} false; then :
25310   $as_echo_n "(cached) " >&6
25311 else
25312
25313       ac_cv_python_link="`$PYTHON ${abs_srcdir}/build/get-py-info.py --link`"
25314
25315 fi
25316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_python_link" >&5
25317 $as_echo "$ac_cv_python_link" >&6; }
25318     SWIG_PY_LINK="$ac_cv_python_link"
25319
25320     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linking Python libraries" >&5
25321 $as_echo_n "checking for linking Python libraries... " >&6; }
25322 if ${ac_cv_python_libs+:} false; then :
25323   $as_echo_n "(cached) " >&6
25324 else
25325
25326       ac_cv_python_libs="`$PYTHON ${abs_srcdir}/build/get-py-info.py --libs`"
25327
25328 fi
25329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_python_libs" >&5
25330 $as_echo "$ac_cv_python_libs" >&6; }
25331     SWIG_PY_LIBS="`
25332   input_flags="$ac_cv_python_libs"
25333   output_flags=""
25334   filtered_dirs="/lib /lib64 /usr/lib /usr/lib64"
25335   for flag in $input_flags; do
25336     filter="no"
25337     for dir in $filtered_dirs; do
25338       if test "$flag" = "-L$dir" || test "$flag" = "-L$dir/"; then
25339         filter="yes"
25340         break
25341       fi
25342     done
25343     if test "$filter" = "no"; then
25344       output_flags="$output_flags $flag"
25345     fi
25346   done
25347   if test -n "$output_flags"; then
25348     printf "%s" "${output_flags# }"
25349   fi
25350 `"
25351
25352                 SVN_PYCFMT_SAVE_CPPFLAGS="$CPPFLAGS"
25353     CPPFLAGS="$CPPFLAGS $SVN_APR_INCLUDES"
25354     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for apr_int64_t Python/C API format string" >&5
25355 $as_echo_n "checking for apr_int64_t Python/C API format string... " >&6; }
25356 if ${svn_cv_pycfmt_apr_int64_t+:} false; then :
25357   $as_echo_n "(cached) " >&6
25358 else
25359
25360       if test "x$svn_cv_pycfmt_apr_int64_t" = "x"; then
25361         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25362 /* end confdefs.h.  */
25363 #include <apr.h>
25364                       MaTcHtHiS APR_INT64_T_FMT EnDeNd
25365 _ACEOF
25366 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25367   $EGREP "MaTcHtHiS +\"lld\" +EnDeNd" >/dev/null 2>&1; then :
25368   svn_cv_pycfmt_apr_int64_t="L"
25369 fi
25370 rm -f conftest*
25371
25372       fi
25373       if test "x$svn_cv_pycfmt_apr_int64_t" = "x"; then
25374         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25375 /* end confdefs.h.  */
25376 r
25377                      #include <apr.h>
25378                       MaTcHtHiS APR_INT64_T_FMT EnDeNd
25379 _ACEOF
25380 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25381   $EGREP "MaTcHtHiS +\"ld\" +EnDeNd" >/dev/null 2>&1; then :
25382   svn_cv_pycfmt_apr_int64_t="l"
25383 fi
25384 rm -f conftest*
25385
25386       fi
25387       if test "x$svn_cv_pycfmt_apr_int64_t" = "x"; then
25388         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25389 /* end confdefs.h.  */
25390 #include <apr.h>
25391                       MaTcHtHiS APR_INT64_T_FMT EnDeNd
25392 _ACEOF
25393 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25394   $EGREP "MaTcHtHiS +\"d\" +EnDeNd" >/dev/null 2>&1; then :
25395   svn_cv_pycfmt_apr_int64_t="i"
25396 fi
25397 rm -f conftest*
25398
25399       fi
25400
25401 fi
25402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $svn_cv_pycfmt_apr_int64_t" >&5
25403 $as_echo "$svn_cv_pycfmt_apr_int64_t" >&6; }
25404     CPPFLAGS="$SVN_PYCFMT_SAVE_CPPFLAGS"
25405     if test "x$svn_cv_pycfmt_apr_int64_t" = "x"; then
25406       as_fn_error $? "failed to recognize APR_INT64_T_FMT on this platform" "$LINENO" 5
25407     fi
25408
25409 cat >>confdefs.h <<_ACEOF
25410 #define SVN_APR_INT64_T_PYCFMT "$svn_cv_pycfmt_apr_int64_t"
25411 _ACEOF
25412
25413   fi
25414
25415   if test "$PERL" != "none"; then
25416     { $as_echo "$as_me:${as_lineno-$LINENO}: checking perl version" >&5
25417 $as_echo_n "checking perl version... " >&6; }
25418             PERL_VERSION="`$PERL -e 'q([); print $] * 1000000,$/;'`"
25419     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL_VERSION" >&5
25420 $as_echo "$PERL_VERSION" >&6; }
25421     if test "$PERL_VERSION" -ge "5008000"; then
25422       SWIG_PL_INCLUDES="\$(SWIG_INCLUDES) `$PERL -MExtUtils::Embed -e ccopts`"
25423     else
25424       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: perl bindings require perl 5.8.0 or newer." >&5
25425 $as_echo "$as_me: WARNING: perl bindings require perl 5.8.0 or newer." >&2;}
25426     fi
25427   fi
25428
25429   SWIG_RB_COMPILE="none"
25430   SWIG_RB_LINK="none"
25431   if test "$RUBY" != "none"; then
25432     rbconfig="$RUBY -rrbconfig -e "
25433
25434     for var_name in arch archdir CC LDSHARED DLEXT LIBS LIBRUBYARG \
25435                     rubyhdrdir rubyarchhdrdir sitedir sitelibdir sitearchdir libdir
25436     do
25437       rbconfig_tmp=`$rbconfig "print RbConfig::CONFIG['$var_name']"`
25438       eval "rbconfig_$var_name=\"$rbconfig_tmp\""
25439     done
25440
25441     { $as_echo "$as_me:${as_lineno-$LINENO}: Configuring Ruby SWIG binding" >&5
25442 $as_echo "$as_me: Configuring Ruby SWIG binding" >&6;}
25443
25444     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ruby include path" >&5
25445 $as_echo_n "checking for Ruby include path... " >&6; }
25446 if ${svn_cv_ruby_includes+:} false; then :
25447   $as_echo_n "(cached) " >&6
25448 else
25449
25450     if test -d "$rbconfig_rubyhdrdir"; then
25451             svn_cv_ruby_includes="-I. -I$rbconfig_rubyhdrdir -I$rbconfig_rubyhdrdir/ruby -I$rbconfig_rubyhdrdir/ruby/backward"
25452       if test -d "$rbconfig_rubyarchhdrdir"; then
25453                 svn_cv_ruby_includes="$svn_cv_ruby_includes -I$rbconfig_rubyarchhdrdir"
25454       else
25455         svn_cv_ruby_includes="$svn_cv_ruby_includes -I$rbconfig_rubyhdrdir/$rbconfig_arch"
25456       fi
25457     else
25458             svn_cv_ruby_includes="-I. -I$rbconfig_archdir"
25459     fi
25460
25461 fi
25462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $svn_cv_ruby_includes" >&5
25463 $as_echo "$svn_cv_ruby_includes" >&6; }
25464     SWIG_RB_INCLUDES="\$(SWIG_INCLUDES) $svn_cv_ruby_includes"
25465
25466     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compile Ruby extensions" >&5
25467 $as_echo_n "checking how to compile Ruby extensions... " >&6; }
25468 if ${svn_cv_ruby_compile+:} false; then :
25469   $as_echo_n "(cached) " >&6
25470 else
25471
25472       svn_cv_ruby_compile="$rbconfig_CC $CFLAGS"
25473
25474 fi
25475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $svn_cv_ruby_compile" >&5
25476 $as_echo "$svn_cv_ruby_compile" >&6; }
25477     SWIG_RB_COMPILE="$svn_cv_ruby_compile"
25478
25479   SWIG_RB_COMPILE=`echo "$SWIG_RB_COMPILE" | $SED -e 's/-ansi//'`
25480
25481
25482   SWIG_RB_COMPILE=`echo "$SWIG_RB_COMPILE" | $SED -e 's/-std=c89//'`
25483
25484
25485   SWIG_RB_COMPILE=`echo "$SWIG_RB_COMPILE" | $SED -e 's/-std=c90//'`
25486
25487         SWIG_RB_COMPILE="$SWIG_RB_COMPILE -Wno-int-to-pointer-cast"
25488
25489     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link Ruby extensions" >&5
25490 $as_echo_n "checking how to link Ruby extensions... " >&6; }
25491 if ${svn_cv_ruby_link+:} false; then :
25492   $as_echo_n "(cached) " >&6
25493 else
25494
25495       svn_cv_ruby_link="`$RUBY -e 'ARGV.shift; print ARGV.join(%q( ))' \
25496                            $rbconfig_LDSHARED`"
25497       svn_cv_ruby_link="$rbconfig_CC $svn_cv_ruby_link"
25498       svn_cv_ruby_link="$svn_cv_ruby_link -shrext .$rbconfig_DLEXT"
25499
25500 fi
25501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $svn_cv_ruby_link" >&5
25502 $as_echo "$svn_cv_ruby_link" >&6; }
25503     SWIG_RB_LINK="$svn_cv_ruby_link"
25504
25505     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link Ruby libraries" >&5
25506 $as_echo_n "checking how to link Ruby libraries... " >&6; }
25507 if ${ac_cv_ruby_libs+:} false; then :
25508   $as_echo_n "(cached) " >&6
25509 else
25510
25511       ac_cv_ruby_libs="$rbconfig_LIBRUBYARG $rbconfig_LIBS"
25512
25513 fi
25514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_ruby_libs" >&5
25515 $as_echo "$ac_cv_ruby_libs" >&6; }
25516     SWIG_RB_LIBS="`
25517   input_flags="$ac_cv_ruby_libs"
25518   output_flags=""
25519   filtered_dirs="/lib /lib64 /usr/lib /usr/lib64"
25520   for flag in $input_flags; do
25521     filter="no"
25522     for dir in $filtered_dirs; do
25523       if test "$flag" = "-L$dir" || test "$flag" = "-L$dir/"; then
25524         filter="yes"
25525         break
25526       fi
25527     done
25528     if test "$filter" = "no"; then
25529       output_flags="$output_flags $flag"
25530     fi
25531   done
25532   if test -n "$output_flags"; then
25533     printf "%s" "${output_flags# }"
25534   fi
25535 `"
25536
25537     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rb_errinfo" >&5
25538 $as_echo_n "checking for rb_errinfo... " >&6; }
25539     old_CFLAGS="$CFLAGS"
25540     old_LIBS="$LIBS"
25541     CFLAGS="$CFLAGS $svn_cv_ruby_includes"
25542
25543   CFLAGS=`echo "$CFLAGS" | $SED -e 's/-ansi//'`
25544
25545
25546   CFLAGS=`echo "$CFLAGS" | $SED -e 's/-std=c89//'`
25547
25548
25549   CFLAGS=`echo "$CFLAGS" | $SED -e 's/-std=c90//'`
25550
25551     LIBS="$SWIG_RB_LIBS"
25552     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25553 /* end confdefs.h.  */
25554
25555 #include <ruby.h>
25556 int main()
25557 {rb_errinfo();}
25558 _ACEOF
25559 if ac_fn_c_try_link "$LINENO"; then :
25560   have_rb_errinfo="yes"
25561 else
25562   have_rb_errinfo="no"
25563 fi
25564 rm -f core conftest.err conftest.$ac_objext \
25565     conftest$ac_exeext conftest.$ac_ext
25566     if test "$have_rb_errinfo" = "yes"; then
25567       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25568 $as_echo "yes" >&6; }
25569
25570 $as_echo "#define HAVE_RB_ERRINFO 1" >>confdefs.h
25571
25572     else
25573       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25574 $as_echo "no" >&6; }
25575     fi
25576     CFLAGS="$old_CFLAGS"
25577     LIBS="$old_LIBS"
25578
25579     if ${svn_cv_ruby_sitedir+:} false; then :
25580   $as_echo_n "(cached) " >&6
25581 else
25582
25583       svn_cv_ruby_sitedir="$rbconfig_sitedir"
25584
25585 fi
25586
25587
25588 # Check whether --with-ruby-sitedir was given.
25589 if test "${with_ruby_sitedir+set}" = set; then :
25590   withval=$with_ruby_sitedir; svn_ruby_installdir="$withval"
25591 else
25592   svn_ruby_installdir="$svn_cv_ruby_sitedir"
25593 fi
25594
25595
25596     { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to install Ruby scripts" >&5
25597 $as_echo_n "checking where to install Ruby scripts... " >&6; }
25598     if ${svn_cv_ruby_sitedir_libsuffix+:} false; then :
25599   $as_echo_n "(cached) " >&6
25600 else
25601
25602       svn_cv_ruby_sitedir_libsuffix="`echo "$rbconfig_sitelibdir" | \
25603                                         $SED -e "s,^$rbconfig_sitedir,,"`"
25604
25605 fi
25606
25607     SWIG_RB_SITE_LIB_DIR="${svn_ruby_installdir}${svn_cv_ruby_sitedir_libsuffix}"
25608     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG_RB_SITE_LIB_DIR" >&5
25609 $as_echo "$SWIG_RB_SITE_LIB_DIR" >&6; }
25610
25611     { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to install Ruby extensions" >&5
25612 $as_echo_n "checking where to install Ruby extensions... " >&6; }
25613     if ${svn_cv_ruby_sitedir_archsuffix+:} false; then :
25614   $as_echo_n "(cached) " >&6
25615 else
25616
25617       svn_cv_ruby_sitedir_archsuffix="`echo "$rbconfig_sitearchdir" | \
25618                                         $SED -e "s,^$rbconfig_sitedir,,"`"
25619
25620 fi
25621
25622     SWIG_RB_SITE_ARCH_DIR="${svn_ruby_installdir}${svn_cv_ruby_sitedir_archsuffix}"
25623     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG_RB_SITE_ARCH_DIR" >&5
25624 $as_echo "$SWIG_RB_SITE_ARCH_DIR" >&6; }
25625
25626     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to use output level for Ruby bindings tests" >&5
25627 $as_echo_n "checking how to use output level for Ruby bindings tests... " >&6; }
25628     if ${svn_cv_ruby_test_verbose+:} false; then :
25629   $as_echo_n "(cached) " >&6
25630 else
25631
25632       svn_cv_ruby_test_verbose="normal"
25633
25634 fi
25635
25636
25637 # Check whether --with-ruby-test-verbose was given.
25638 if test "${with_ruby_test_verbose+set}" = set; then :
25639   withval=$with_ruby_test_verbose; svn_ruby_test_verbose="$withval"
25640 else
25641   svn_ruby_test_verbose="$svn_cv_ruby_test_verbose"
25642 fi
25643
25644       SWIG_RB_TEST_VERBOSE="$svn_ruby_test_verbose"
25645       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG_RB_TEST_VERBOSE" >&5
25646 $as_echo "$SWIG_RB_TEST_VERBOSE" >&6; }
25647   fi
25648
25649
25650
25651
25652
25653
25654
25655
25656
25657
25658
25659
25660
25661
25662
25663 fi
25664
25665
25666
25667
25668
25669 # Check whether --with-ctypesgen was given.
25670 if test "${with_ctypesgen+set}" = set; then :
25671   withval=$with_ctypesgen;
25672     case "$withval" in
25673       "no")
25674
25675   where=no
25676
25677   CTYPESGEN=none
25678
25679   if test $where = check; then
25680     # Extract the first word of ""ctypesgen.py"", so it can be a program name with args.
25681 set dummy "ctypesgen.py"; ac_word=$2
25682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25683 $as_echo_n "checking for $ac_word... " >&6; }
25684 if ${ac_cv_path_CTYPESGEN+:} false; then :
25685   $as_echo_n "(cached) " >&6
25686 else
25687   case $CTYPESGEN in
25688   [\\/]* | ?:[\\/]*)
25689   ac_cv_path_CTYPESGEN="$CTYPESGEN" # Let the user override the test with a path.
25690   ;;
25691   *)
25692   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25693 for as_dir in $PATH
25694 do
25695   IFS=$as_save_IFS
25696   test -z "$as_dir" && as_dir=.
25697     for ac_exec_ext in '' $ac_executable_extensions; do
25698   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25699     ac_cv_path_CTYPESGEN="$as_dir/$ac_word$ac_exec_ext"
25700     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25701     break 2
25702   fi
25703 done
25704   done
25705 IFS=$as_save_IFS
25706
25707   test -z "$ac_cv_path_CTYPESGEN" && ac_cv_path_CTYPESGEN="none"
25708   ;;
25709 esac
25710 fi
25711 CTYPESGEN=$ac_cv_path_CTYPESGEN
25712 if test -n "$CTYPESGEN"; then
25713   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CTYPESGEN" >&5
25714 $as_echo "$CTYPESGEN" >&6; }
25715 else
25716   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25717 $as_echo "no" >&6; }
25718 fi
25719
25720
25721   elif test $where != no; then
25722     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctypesgen.py" >&5
25723 $as_echo_n "checking for ctypesgen.py... " >&6; }
25724
25725     if test -f "$where"; then
25726       CTYPESGEN="$where"
25727     elif test -f "$where/bin/ctypesgen.py"; then
25728       CTYPESGEN="$where/bin/ctypesgen.py"
25729     else
25730       CTYPESGEN="$where/ctypesgen.py"
25731     fi
25732
25733     if test ! -f "$CTYPESGEN" || test ! -x "$CTYPESGEN"; then
25734       as_fn_error $? "Could not find ctypesgen at $where/ctypesgen.py or at
25735                     $where/bin/ctypesgen.py" "$LINENO" 5
25736     else
25737       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CTYPESGEN" >&5
25738 $as_echo "$CTYPESGEN" >&6; }
25739     fi
25740   fi
25741
25742
25743
25744       ;;
25745       "yes")
25746
25747   where=check
25748
25749   CTYPESGEN=none
25750
25751   if test $where = check; then
25752     # Extract the first word of ""ctypesgen.py"", so it can be a program name with args.
25753 set dummy "ctypesgen.py"; ac_word=$2
25754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25755 $as_echo_n "checking for $ac_word... " >&6; }
25756 if ${ac_cv_path_CTYPESGEN+:} false; then :
25757   $as_echo_n "(cached) " >&6
25758 else
25759   case $CTYPESGEN in
25760   [\\/]* | ?:[\\/]*)
25761   ac_cv_path_CTYPESGEN="$CTYPESGEN" # Let the user override the test with a path.
25762   ;;
25763   *)
25764   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25765 for as_dir in $PATH
25766 do
25767   IFS=$as_save_IFS
25768   test -z "$as_dir" && as_dir=.
25769     for ac_exec_ext in '' $ac_executable_extensions; do
25770   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25771     ac_cv_path_CTYPESGEN="$as_dir/$ac_word$ac_exec_ext"
25772     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25773     break 2
25774   fi
25775 done
25776   done
25777 IFS=$as_save_IFS
25778
25779   test -z "$ac_cv_path_CTYPESGEN" && ac_cv_path_CTYPESGEN="none"
25780   ;;
25781 esac
25782 fi
25783 CTYPESGEN=$ac_cv_path_CTYPESGEN
25784 if test -n "$CTYPESGEN"; then
25785   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CTYPESGEN" >&5
25786 $as_echo "$CTYPESGEN" >&6; }
25787 else
25788   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25789 $as_echo "no" >&6; }
25790 fi
25791
25792
25793   elif test $where != no; then
25794     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctypesgen.py" >&5
25795 $as_echo_n "checking for ctypesgen.py... " >&6; }
25796
25797     if test -f "$where"; then
25798       CTYPESGEN="$where"
25799     elif test -f "$where/bin/ctypesgen.py"; then
25800       CTYPESGEN="$where/bin/ctypesgen.py"
25801     else
25802       CTYPESGEN="$where/ctypesgen.py"
25803     fi
25804
25805     if test ! -f "$CTYPESGEN" || test ! -x "$CTYPESGEN"; then
25806       as_fn_error $? "Could not find ctypesgen at $where/ctypesgen.py or at
25807                     $where/bin/ctypesgen.py" "$LINENO" 5
25808     else
25809       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CTYPESGEN" >&5
25810 $as_echo "$CTYPESGEN" >&6; }
25811     fi
25812   fi
25813
25814
25815
25816       ;;
25817       *)
25818
25819   where=$withval
25820
25821   CTYPESGEN=none
25822
25823   if test $where = check; then
25824     # Extract the first word of ""ctypesgen.py"", so it can be a program name with args.
25825 set dummy "ctypesgen.py"; ac_word=$2
25826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25827 $as_echo_n "checking for $ac_word... " >&6; }
25828 if ${ac_cv_path_CTYPESGEN+:} false; then :
25829   $as_echo_n "(cached) " >&6
25830 else
25831   case $CTYPESGEN in
25832   [\\/]* | ?:[\\/]*)
25833   ac_cv_path_CTYPESGEN="$CTYPESGEN" # Let the user override the test with a path.
25834   ;;
25835   *)
25836   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25837 for as_dir in $PATH
25838 do
25839   IFS=$as_save_IFS
25840   test -z "$as_dir" && as_dir=.
25841     for ac_exec_ext in '' $ac_executable_extensions; do
25842   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25843     ac_cv_path_CTYPESGEN="$as_dir/$ac_word$ac_exec_ext"
25844     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25845     break 2
25846   fi
25847 done
25848   done
25849 IFS=$as_save_IFS
25850
25851   test -z "$ac_cv_path_CTYPESGEN" && ac_cv_path_CTYPESGEN="none"
25852   ;;
25853 esac
25854 fi
25855 CTYPESGEN=$ac_cv_path_CTYPESGEN
25856 if test -n "$CTYPESGEN"; then
25857   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CTYPESGEN" >&5
25858 $as_echo "$CTYPESGEN" >&6; }
25859 else
25860   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25861 $as_echo "no" >&6; }
25862 fi
25863
25864
25865   elif test $where != no; then
25866     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctypesgen.py" >&5
25867 $as_echo_n "checking for ctypesgen.py... " >&6; }
25868
25869     if test -f "$where"; then
25870       CTYPESGEN="$where"
25871     elif test -f "$where/bin/ctypesgen.py"; then
25872       CTYPESGEN="$where/bin/ctypesgen.py"
25873     else
25874       CTYPESGEN="$where/ctypesgen.py"
25875     fi
25876
25877     if test ! -f "$CTYPESGEN" || test ! -x "$CTYPESGEN"; then
25878       as_fn_error $? "Could not find ctypesgen at $where/ctypesgen.py or at
25879                     $where/bin/ctypesgen.py" "$LINENO" 5
25880     else
25881       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CTYPESGEN" >&5
25882 $as_echo "$CTYPESGEN" >&6; }
25883     fi
25884   fi
25885
25886
25887
25888       ;;
25889     esac
25890
25891 else
25892
25893
25894   where=check
25895
25896   CTYPESGEN=none
25897
25898   if test $where = check; then
25899     # Extract the first word of ""ctypesgen.py"", so it can be a program name with args.
25900 set dummy "ctypesgen.py"; ac_word=$2
25901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25902 $as_echo_n "checking for $ac_word... " >&6; }
25903 if ${ac_cv_path_CTYPESGEN+:} false; then :
25904   $as_echo_n "(cached) " >&6
25905 else
25906   case $CTYPESGEN in
25907   [\\/]* | ?:[\\/]*)
25908   ac_cv_path_CTYPESGEN="$CTYPESGEN" # Let the user override the test with a path.
25909   ;;
25910   *)
25911   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25912 for as_dir in $PATH
25913 do
25914   IFS=$as_save_IFS
25915   test -z "$as_dir" && as_dir=.
25916     for ac_exec_ext in '' $ac_executable_extensions; do
25917   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25918     ac_cv_path_CTYPESGEN="$as_dir/$ac_word$ac_exec_ext"
25919     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25920     break 2
25921   fi
25922 done
25923   done
25924 IFS=$as_save_IFS
25925
25926   test -z "$ac_cv_path_CTYPESGEN" && ac_cv_path_CTYPESGEN="none"
25927   ;;
25928 esac
25929 fi
25930 CTYPESGEN=$ac_cv_path_CTYPESGEN
25931 if test -n "$CTYPESGEN"; then
25932   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CTYPESGEN" >&5
25933 $as_echo "$CTYPESGEN" >&6; }
25934 else
25935   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25936 $as_echo "no" >&6; }
25937 fi
25938
25939
25940   elif test $where != no; then
25941     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctypesgen.py" >&5
25942 $as_echo_n "checking for ctypesgen.py... " >&6; }
25943
25944     if test -f "$where"; then
25945       CTYPESGEN="$where"
25946     elif test -f "$where/bin/ctypesgen.py"; then
25947       CTYPESGEN="$where/bin/ctypesgen.py"
25948     else
25949       CTYPESGEN="$where/ctypesgen.py"
25950     fi
25951
25952     if test ! -f "$CTYPESGEN" || test ! -x "$CTYPESGEN"; then
25953       as_fn_error $? "Could not find ctypesgen at $where/ctypesgen.py or at
25954                     $where/bin/ctypesgen.py" "$LINENO" 5
25955     else
25956       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CTYPESGEN" >&5
25957 $as_echo "$CTYPESGEN" >&6; }
25958     fi
25959   fi
25960
25961
25962
25963
25964 fi
25965
25966
25967
25968 # Check whether --enable-runtime-module-search was given.
25969 if test "${enable_runtime_module_search+set}" = set; then :
25970   enableval=$enable_runtime_module_search;
25971     if test "$enableval" = "yes"; then
25972       use_dso=yes
25973       if test "$svn_enable_shared" = "no"; then
25974         as_fn_error $? "--enable-runtime-module-search conflicts with --disable-shared" "$LINENO" 5
25975       fi
25976
25977 $as_echo "#define SVN_USE_DSO 1" >>confdefs.h
25978
25979     fi
25980
25981 fi
25982
25983
25984 if test "$svn_enable_shared" = "no" || test "$use_dso" != "yes"; then
25985
25986 $as_echo "#define SVN_LIBSVN_CLIENT_LINKS_RA_LOCAL 1" >>confdefs.h
25987
25988   svn_ra_lib_deps="\$(RA_LOCAL_DEPS)"
25989   svn_ra_lib_install_deps="install-ramod-lib"
25990   svn_ra_lib_link="\$(RA_LOCAL_LINK)"
25991
25992
25993 $as_echo "#define SVN_LIBSVN_CLIENT_LINKS_RA_SVN 1" >>confdefs.h
25994
25995   svn_ra_lib_deps="$svn_ra_lib_deps \$(RA_SVN_DEPS)"
25996   svn_ra_lib_link="$svn_ra_lib_link \$(RA_SVN_LINK)"
25997
25998   if test "$svn_lib_serf" = "yes"; then
25999
26000 $as_echo "#define SVN_LIBSVN_CLIENT_LINKS_RA_SERF 1" >>confdefs.h
26001
26002     svn_ra_lib_deps="$svn_ra_lib_deps \$(RA_SERF_DEPS)"
26003     svn_ra_lib_install_deps="$svn_ra_lib_install_deps install-serf-lib"
26004     svn_ra_lib_link="$svn_ra_lib_link \$(RA_SERF_LINK)"
26005   fi
26006
26007   SVN_RA_LIB_DEPS=$svn_ra_lib_deps
26008   SVN_RA_LIB_INSTALL_DEPS=$svn_ra_lib_install_deps
26009   SVN_RA_LIB_LINK=$svn_ra_lib_link
26010
26011
26012 $as_echo "#define SVN_LIBSVN_FS_LINKS_FS_FS 1" >>confdefs.h
26013
26014   svn_fs_lib_deps="\$(FS_FS_DEPS)"
26015   svn_fs_lib_install_deps="install-fsmod-lib"
26016   svn_fs_lib_link="\$(FS_FS_LINK)"
26017
26018
26019 $as_echo "#define SVN_LIBSVN_FS_LINKS_FS_X 1" >>confdefs.h
26020
26021   svn_fs_lib_deps="$svn_fs_lib_deps \$(FS_X_DEPS)"
26022   svn_fs_lib_link="$svn_fs_lib_link \$(FS_X_LINK)"
26023
26024   if test "$svn_lib_berkeley_db" = "yes"; then
26025
26026 $as_echo "#define SVN_LIBSVN_FS_LINKS_FS_BASE 1" >>confdefs.h
26027
26028     svn_fs_lib_deps="$svn_fs_lib_deps \$(FS_BASE_DEPS)"
26029     svn_fs_lib_install_deps="$svn_fs_lib_install_deps install-bdb-lib"
26030     svn_fs_lib_link="$svn_fs_lib_link \$(FS_BASE_LINK)"
26031   fi
26032
26033   SVN_FS_LIB_DEPS=$svn_fs_lib_deps
26034   SVN_FS_LIB_INSTALL_DEPS=$svn_fs_lib_install_deps
26035   SVN_FS_LIB_LINK=$svn_fs_lib_link
26036 fi
26037
26038
26039
26040
26041
26042
26043
26044
26045 # ==== JavaHL ================================================================
26046
26047 do_javahl_build=no
26048 # Check whether --enable-javahl was given.
26049 if test "${enable_javahl+set}" = set; then :
26050   enableval=$enable_javahl;  if test "$enableval" = "yes" ; then
26051         do_javahl_build="yes"
26052     fi
26053
26054 fi
26055
26056
26057 JAVAHL_OBJDIR=""
26058 INSTALL_EXTRA_JAVAHL_LIB=""
26059 FIX_JAVAHL_LIB=""
26060 JAVAHL_TESTS_TARGET=""
26061 JAVAHL_COMPAT_TESTS_TARGET=""
26062 LT_CXX_LIBADD=""
26063 if test "$do_javahl_build" = "yes"; then
26064     if test "$JDK_SUITABLE" = "no"; then
26065     as_fn_error $? "Cannot compile JavaHL without a suitable JDK.
26066                   Please specify a suitable JDK using the --with-jdk option." "$LINENO" 5
26067   fi
26068
26069     JAVAHL_OBJDIR='$(libsvnjavahl_PATH)/.libs'
26070
26071   os_arch=`uname`
26072   if test "$os_arch" = "Darwin"; then
26073         INSTALL_EXTRA_JAVAHL_LIB='ln -sf $(libdir)/libsvnjavahl-1.dylib $(libdir)/libsvnjavahl-1.jnilib'
26074     FIX_JAVAHL_LIB="ln -sf libsvnjavahl-1.dylib $JAVAHL_OBJDIR/libsvnjavahl-1.jnilib"
26075   fi
26076   # This segment (and the rest of r10800) is very likely unnecessary
26077   # with libtool 1.5, which automatically adds libstdc++ as a
26078   # dependency to the C++ libraries it builds.  So at some future time
26079   # when autogen.sh requires libtool 1.5 or higher, we can get rid of
26080   # it.
26081   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for additional flags to link C++ libraries" >&5
26082 $as_echo_n "checking for additional flags to link C++ libraries... " >&6; }
26083   if test "x$ac_compiler_gnu" = "xyes"; then
26084     case "$host" in
26085       *freebsd10*)
26086         { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
26087 $as_echo "none needed" >&6; }
26088       ;;
26089       *)
26090         LT_CXX_LIBADD="-lstdc++"
26091         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LT_CXX_LIBADD" >&5
26092 $as_echo "$LT_CXX_LIBADD" >&6; }
26093       ;;
26094     esac
26095   else
26096     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
26097 $as_echo "none needed" >&6; }
26098   fi
26099 fi
26100
26101
26102
26103
26104
26105
26106 # Check whether --with-junit was given.
26107 if test "${with_junit+set}" = set; then :
26108   withval=$with_junit;
26109     if test "$withval" != "no"; then
26110       if test -n "$JAVA_CLASSPATH"; then
26111         JAVA_CLASSPATH="$withval:$JAVA_CLASSPATH"
26112       else
26113         JAVA_CLASSPATH="$withval"
26114       fi
26115       JAVAHL_TESTS_TARGET="javahl-tests"
26116       JAVAHL_COMPAT_TESTS_TARGET="javahl-compat-tests"
26117     fi
26118
26119 fi
26120
26121
26122
26123
26124
26125 # ==== Miscellaneous bits ====================================================
26126
26127 for ac_header in stdbool.h inttypes.h
26128 do :
26129   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
26130 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
26131 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
26132   cat >>confdefs.h <<_ACEOF
26133 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
26134 _ACEOF
26135
26136 fi
26137
26138 done
26139
26140
26141 # Strip '-no-cpp-precomp' from CPPFLAGS for the clang compiler
26142 ### I think we get this flag from APR, so the fix probably belongs there
26143 if test "$CC" = "clang"; then
26144
26145   CPPFLAGS=`echo "$CPPFLAGS" | $SED -e 's/-no-cpp-precomp //'`
26146
26147 fi
26148
26149 # Need to strip '-no-cpp-precomp' from CPPFLAGS for SWIG as well.
26150 SWIG_CPPFLAGS="$CPPFLAGS"
26151
26152   SWIG_CPPFLAGS=`echo "$SWIG_CPPFLAGS" | $SED -e 's/-no-cpp-precomp //'`
26153
26154
26155
26156
26157 cat >>confdefs.h <<_ACEOF
26158 #define SVN_PATH_LOCAL_SEPARATOR '/'
26159 _ACEOF
26160
26161
26162
26163 cat >>confdefs.h <<_ACEOF
26164 #define SVN_NULL_DEVICE_NAME "/dev/null"
26165 _ACEOF
26166
26167
26168 DEFAULT_FS_TYPE="fsfs"
26169
26170 cat >>confdefs.h <<_ACEOF
26171 #define DEFAULT_FS_TYPE "$DEFAULT_FS_TYPE"
26172 _ACEOF
26173
26174
26175 DEFAULT_HTTP_LIBRARY="serf"
26176
26177 cat >>confdefs.h <<_ACEOF
26178 #define DEFAULT_HTTP_LIBRARY "$DEFAULT_HTTP_LIBRARY"
26179 _ACEOF
26180
26181
26182 # BSD/OS (BSDi) needs to use a different include syntax in Makefile
26183 INCLUDE_OUTPUTS="include \$(top_srcdir)/build-outputs.mk"
26184 case "$host" in
26185   *bsdi*)
26186     # Check whether they've installed GNU make
26187     if ! make --version > /dev/null 2>&1; then
26188       # BSDi make
26189       INCLUDE_OUTPUTS=".include \"\$(top_srcdir)/build-outputs.mk\""
26190     fi
26191     ;;
26192 esac
26193
26194
26195 # ==== Detection complete - output and run config.status =====================
26196
26197 ac_config_headers="$ac_config_headers subversion/svn_private_config.h.tmp:subversion/svn_private_config.h.in"
26198
26199 ac_config_commands="$ac_config_commands svn_private_config.h.tmp"
26200
26201 ac_config_files="$ac_config_files Makefile"
26202
26203
26204 # Create pkg-config .pc files from .pc.in files
26205 for pc_in_file in "${abs_srcdir}"/subversion/libsvn_*/*.pc.in; do
26206   pc_file=${pc_in_file#${abs_srcdir}/}
26207   pc_file=${pc_file%.in}
26208   ac_config_files="$ac_config_files ${pc_file}"
26209
26210 done
26211
26212
26213   SVN_CONFIG_SCRIPT_FILES="$SVN_CONFIG_SCRIPT_FILES tools/backup/hot-backup.py"
26214   ac_config_files="$ac_config_files tools/backup/hot-backup.py"
26215
26216
26217   SVN_CONFIG_SCRIPT_FILES="$SVN_CONFIG_SCRIPT_FILES tools/hook-scripts/commit-access-control.pl"
26218   ac_config_files="$ac_config_files tools/hook-scripts/commit-access-control.pl"
26219
26220
26221   SVN_CONFIG_SCRIPT_FILES="$SVN_CONFIG_SCRIPT_FILES subversion/bindings/swig/perl/native/Makefile.PL"
26222   ac_config_files="$ac_config_files subversion/bindings/swig/perl/native/Makefile.PL"
26223
26224 if test -e packages/solaris/pkginfo.in; then
26225
26226   SVN_CONFIG_SCRIPT_FILES="$SVN_CONFIG_SCRIPT_FILES packages/solaris/pkginfo"
26227   ac_config_files="$ac_config_files packages/solaris/pkginfo"
26228
26229 fi
26230
26231
26232 # Ensure that SWIG is checked after reconfiguration.
26233 rm -f .swig_checked
26234
26235
26236 cat >>confdefs.h <<_ACEOF
26237 #define SVN_BUILD_HOST "${host}"
26238 _ACEOF
26239
26240
26241
26242 cat >>confdefs.h <<_ACEOF
26243 #define SVN_BUILD_TARGET "${target}"
26244 _ACEOF
26245
26246
26247 cat >confcache <<\_ACEOF
26248 # This file is a shell script that caches the results of configure
26249 # tests run on this system so they can be shared between configure
26250 # scripts and configure runs, see configure's option --config-cache.
26251 # It is not useful on other systems.  If it contains results you don't
26252 # want to keep, you may remove or edit it.
26253 #
26254 # config.status only pays attention to the cache file if you give it
26255 # the --recheck option to rerun configure.
26256 #
26257 # `ac_cv_env_foo' variables (set or unset) will be overridden when
26258 # loading this file, other *unset* `ac_cv_foo' will be assigned the
26259 # following values.
26260
26261 _ACEOF
26262
26263 # The following way of writing the cache mishandles newlines in values,
26264 # but we know of no workaround that is simple, portable, and efficient.
26265 # So, we kill variables containing newlines.
26266 # Ultrix sh set writes to stderr and can't be redirected directly,
26267 # and sets the high bit in the cache file unless we assign to the vars.
26268 (
26269   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
26270     eval ac_val=\$$ac_var
26271     case $ac_val in #(
26272     *${as_nl}*)
26273       case $ac_var in #(
26274       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
26275 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
26276       esac
26277       case $ac_var in #(
26278       _ | IFS | as_nl) ;; #(
26279       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
26280       *) { eval $ac_var=; unset $ac_var;} ;;
26281       esac ;;
26282     esac
26283   done
26284
26285   (set) 2>&1 |
26286     case $as_nl`(ac_space=' '; set) 2>&1` in #(
26287     *${as_nl}ac_space=\ *)
26288       # `set' does not quote correctly, so add quotes: double-quote
26289       # substitution turns \\\\ into \\, and sed turns \\ into \.
26290       sed -n \
26291         "s/'/'\\\\''/g;
26292           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
26293       ;; #(
26294     *)
26295       # `set' quotes correctly as required by POSIX, so do not add quotes.
26296       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
26297       ;;
26298     esac |
26299     sort
26300 ) |
26301   sed '
26302      /^ac_cv_env_/b end
26303      t clear
26304      :clear
26305      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
26306      t end
26307      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
26308      :end' >>confcache
26309 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
26310   if test -w "$cache_file"; then
26311     if test "x$cache_file" != "x/dev/null"; then
26312       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
26313 $as_echo "$as_me: updating cache $cache_file" >&6;}
26314       if test ! -f "$cache_file" || test -h "$cache_file"; then
26315         cat confcache >"$cache_file"
26316       else
26317         case $cache_file in #(
26318         */* | ?:*)
26319           mv -f confcache "$cache_file"$$ &&
26320           mv -f "$cache_file"$$ "$cache_file" ;; #(
26321         *)
26322           mv -f confcache "$cache_file" ;;
26323         esac
26324       fi
26325     fi
26326   else
26327     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
26328 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
26329   fi
26330 fi
26331 rm -f confcache
26332
26333 test "x$prefix" = xNONE && prefix=$ac_default_prefix
26334 # Let make expand exec_prefix.
26335 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
26336
26337 DEFS=-DHAVE_CONFIG_H
26338
26339 ac_libobjs=
26340 ac_ltlibobjs=
26341 U=
26342 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
26343   # 1. Remove the extension, and $U if already installed.
26344   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
26345   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
26346   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
26347   #    will be set to the directory where LIBOBJS objects are built.
26348   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
26349   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
26350 done
26351 LIBOBJS=$ac_libobjs
26352
26353 LTLIBOBJS=$ac_ltlibobjs
26354
26355
26356
26357 : "${CONFIG_STATUS=./config.status}"
26358 ac_write_fail=0
26359 ac_clean_files_save=$ac_clean_files
26360 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
26361 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
26362 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
26363 as_write_fail=0
26364 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
26365 #! $SHELL
26366 # Generated by $as_me.
26367 # Run this file to recreate the current configuration.
26368 # Compiler output produced by configure, useful for debugging
26369 # configure, is in config.log if it exists.
26370
26371 debug=false
26372 ac_cs_recheck=false
26373 ac_cs_silent=false
26374
26375 SHELL=\${CONFIG_SHELL-$SHELL}
26376 export SHELL
26377 _ASEOF
26378 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
26379 ## -------------------- ##
26380 ## M4sh Initialization. ##
26381 ## -------------------- ##
26382
26383 # Be more Bourne compatible
26384 DUALCASE=1; export DUALCASE # for MKS sh
26385 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
26386   emulate sh
26387   NULLCMD=:
26388   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26389   # is contrary to our usage.  Disable this feature.
26390   alias -g '${1+"$@"}'='"$@"'
26391   setopt NO_GLOB_SUBST
26392 else
26393   case `(set -o) 2>/dev/null` in #(
26394   *posix*) :
26395     set -o posix ;; #(
26396   *) :
26397      ;;
26398 esac
26399 fi
26400
26401
26402 as_nl='
26403 '
26404 export as_nl
26405 # Printing a long string crashes Solaris 7 /usr/bin/printf.
26406 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
26407 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
26408 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
26409 # Prefer a ksh shell builtin over an external printf program on Solaris,
26410 # but without wasting forks for bash or zsh.
26411 if test -z "$BASH_VERSION$ZSH_VERSION" \
26412     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
26413   as_echo='print -r --'
26414   as_echo_n='print -rn --'
26415 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
26416   as_echo='printf %s\n'
26417   as_echo_n='printf %s'
26418 else
26419   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
26420     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
26421     as_echo_n='/usr/ucb/echo -n'
26422   else
26423     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
26424     as_echo_n_body='eval
26425       arg=$1;
26426       case $arg in #(
26427       *"$as_nl"*)
26428         expr "X$arg" : "X\\(.*\\)$as_nl";
26429         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
26430       esac;
26431       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
26432     '
26433     export as_echo_n_body
26434     as_echo_n='sh -c $as_echo_n_body as_echo'
26435   fi
26436   export as_echo_body
26437   as_echo='sh -c $as_echo_body as_echo'
26438 fi
26439
26440 # The user is always right.
26441 if test "${PATH_SEPARATOR+set}" != set; then
26442   PATH_SEPARATOR=:
26443   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
26444     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
26445       PATH_SEPARATOR=';'
26446   }
26447 fi
26448
26449
26450 # IFS
26451 # We need space, tab and new line, in precisely that order.  Quoting is
26452 # there to prevent editors from complaining about space-tab.
26453 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
26454 # splitting by setting IFS to empty value.)
26455 IFS=" ""        $as_nl"
26456
26457 # Find who we are.  Look in the path if we contain no directory separator.
26458 as_myself=
26459 case $0 in #((
26460   *[\\/]* ) as_myself=$0 ;;
26461   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26462 for as_dir in $PATH
26463 do
26464   IFS=$as_save_IFS
26465   test -z "$as_dir" && as_dir=.
26466     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
26467   done
26468 IFS=$as_save_IFS
26469
26470      ;;
26471 esac
26472 # We did not find ourselves, most probably we were run as `sh COMMAND'
26473 # in which case we are not to be found in the path.
26474 if test "x$as_myself" = x; then
26475   as_myself=$0
26476 fi
26477 if test ! -f "$as_myself"; then
26478   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
26479   exit 1
26480 fi
26481
26482 # Unset variables that we do not need and which cause bugs (e.g. in
26483 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
26484 # suppresses any "Segmentation fault" message there.  '((' could
26485 # trigger a bug in pdksh 5.2.14.
26486 for as_var in BASH_ENV ENV MAIL MAILPATH
26487 do eval test x\${$as_var+set} = xset \
26488   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
26489 done
26490 PS1='$ '
26491 PS2='> '
26492 PS4='+ '
26493
26494 # NLS nuisances.
26495 LC_ALL=C
26496 export LC_ALL
26497 LANGUAGE=C
26498 export LANGUAGE
26499
26500 # CDPATH.
26501 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
26502
26503
26504 # as_fn_error STATUS ERROR [LINENO LOG_FD]
26505 # ----------------------------------------
26506 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
26507 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
26508 # script with STATUS, using 1 if that was 0.
26509 as_fn_error ()
26510 {
26511   as_status=$1; test $as_status -eq 0 && as_status=1
26512   if test "$4"; then
26513     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
26514     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
26515   fi
26516   $as_echo "$as_me: error: $2" >&2
26517   as_fn_exit $as_status
26518 } # as_fn_error
26519
26520
26521 # as_fn_set_status STATUS
26522 # -----------------------
26523 # Set $? to STATUS, without forking.
26524 as_fn_set_status ()
26525 {
26526   return $1
26527 } # as_fn_set_status
26528
26529 # as_fn_exit STATUS
26530 # -----------------
26531 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
26532 as_fn_exit ()
26533 {
26534   set +e
26535   as_fn_set_status $1
26536   exit $1
26537 } # as_fn_exit
26538
26539 # as_fn_unset VAR
26540 # ---------------
26541 # Portably unset VAR.
26542 as_fn_unset ()
26543 {
26544   { eval $1=; unset $1;}
26545 }
26546 as_unset=as_fn_unset
26547 # as_fn_append VAR VALUE
26548 # ----------------------
26549 # Append the text in VALUE to the end of the definition contained in VAR. Take
26550 # advantage of any shell optimizations that allow amortized linear growth over
26551 # repeated appends, instead of the typical quadratic growth present in naive
26552 # implementations.
26553 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
26554   eval 'as_fn_append ()
26555   {
26556     eval $1+=\$2
26557   }'
26558 else
26559   as_fn_append ()
26560   {
26561     eval $1=\$$1\$2
26562   }
26563 fi # as_fn_append
26564
26565 # as_fn_arith ARG...
26566 # ------------------
26567 # Perform arithmetic evaluation on the ARGs, and store the result in the
26568 # global $as_val. Take advantage of shells that can avoid forks. The arguments
26569 # must be portable across $(()) and expr.
26570 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
26571   eval 'as_fn_arith ()
26572   {
26573     as_val=$(( $* ))
26574   }'
26575 else
26576   as_fn_arith ()
26577   {
26578     as_val=`expr "$@" || test $? -eq 1`
26579   }
26580 fi # as_fn_arith
26581
26582
26583 if expr a : '\(a\)' >/dev/null 2>&1 &&
26584    test "X`expr 00001 : '.*\(...\)'`" = X001; then
26585   as_expr=expr
26586 else
26587   as_expr=false
26588 fi
26589
26590 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
26591   as_basename=basename
26592 else
26593   as_basename=false
26594 fi
26595
26596 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
26597   as_dirname=dirname
26598 else
26599   as_dirname=false
26600 fi
26601
26602 as_me=`$as_basename -- "$0" ||
26603 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
26604          X"$0" : 'X\(//\)$' \| \
26605          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
26606 $as_echo X/"$0" |
26607     sed '/^.*\/\([^/][^/]*\)\/*$/{
26608             s//\1/
26609             q
26610           }
26611           /^X\/\(\/\/\)$/{
26612             s//\1/
26613             q
26614           }
26615           /^X\/\(\/\).*/{
26616             s//\1/
26617             q
26618           }
26619           s/.*/./; q'`
26620
26621 # Avoid depending upon Character Ranges.
26622 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
26623 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
26624 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
26625 as_cr_digits='0123456789'
26626 as_cr_alnum=$as_cr_Letters$as_cr_digits
26627
26628 ECHO_C= ECHO_N= ECHO_T=
26629 case `echo -n x` in #(((((
26630 -n*)
26631   case `echo 'xy\c'` in
26632   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
26633   xy)  ECHO_C='\c';;
26634   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
26635        ECHO_T=' ';;
26636   esac;;
26637 *)
26638   ECHO_N='-n';;
26639 esac
26640
26641 rm -f conf$$ conf$$.exe conf$$.file
26642 if test -d conf$$.dir; then
26643   rm -f conf$$.dir/conf$$.file
26644 else
26645   rm -f conf$$.dir
26646   mkdir conf$$.dir 2>/dev/null
26647 fi
26648 if (echo >conf$$.file) 2>/dev/null; then
26649   if ln -s conf$$.file conf$$ 2>/dev/null; then
26650     as_ln_s='ln -s'
26651     # ... but there are two gotchas:
26652     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
26653     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
26654     # In both cases, we have to default to `cp -pR'.
26655     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
26656       as_ln_s='cp -pR'
26657   elif ln conf$$.file conf$$ 2>/dev/null; then
26658     as_ln_s=ln
26659   else
26660     as_ln_s='cp -pR'
26661   fi
26662 else
26663   as_ln_s='cp -pR'
26664 fi
26665 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
26666 rmdir conf$$.dir 2>/dev/null
26667
26668
26669 # as_fn_mkdir_p
26670 # -------------
26671 # Create "$as_dir" as a directory, including parents if necessary.
26672 as_fn_mkdir_p ()
26673 {
26674
26675   case $as_dir in #(
26676   -*) as_dir=./$as_dir;;
26677   esac
26678   test -d "$as_dir" || eval $as_mkdir_p || {
26679     as_dirs=
26680     while :; do
26681       case $as_dir in #(
26682       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
26683       *) as_qdir=$as_dir;;
26684       esac
26685       as_dirs="'$as_qdir' $as_dirs"
26686       as_dir=`$as_dirname -- "$as_dir" ||
26687 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26688          X"$as_dir" : 'X\(//\)[^/]' \| \
26689          X"$as_dir" : 'X\(//\)$' \| \
26690          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
26691 $as_echo X"$as_dir" |
26692     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26693             s//\1/
26694             q
26695           }
26696           /^X\(\/\/\)[^/].*/{
26697             s//\1/
26698             q
26699           }
26700           /^X\(\/\/\)$/{
26701             s//\1/
26702             q
26703           }
26704           /^X\(\/\).*/{
26705             s//\1/
26706             q
26707           }
26708           s/.*/./; q'`
26709       test -d "$as_dir" && break
26710     done
26711     test -z "$as_dirs" || eval "mkdir $as_dirs"
26712   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
26713
26714
26715 } # as_fn_mkdir_p
26716 if mkdir -p . 2>/dev/null; then
26717   as_mkdir_p='mkdir -p "$as_dir"'
26718 else
26719   test -d ./-p && rmdir ./-p
26720   as_mkdir_p=false
26721 fi
26722
26723
26724 # as_fn_executable_p FILE
26725 # -----------------------
26726 # Test if FILE is an executable regular file.
26727 as_fn_executable_p ()
26728 {
26729   test -f "$1" && test -x "$1"
26730 } # as_fn_executable_p
26731 as_test_x='test -x'
26732 as_executable_p=as_fn_executable_p
26733
26734 # Sed expression to map a string onto a valid CPP name.
26735 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
26736
26737 # Sed expression to map a string onto a valid variable name.
26738 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
26739
26740
26741 exec 6>&1
26742 ## ----------------------------------- ##
26743 ## Main body of $CONFIG_STATUS script. ##
26744 ## ----------------------------------- ##
26745 _ASEOF
26746 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
26747
26748 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26749 # Save the log message, to keep $0 and so on meaningful, and to
26750 # report actual input values of CONFIG_FILES etc. instead of their
26751 # values after options handling.
26752 ac_log="
26753 This file was extended by subversion $as_me 1.9.4, which was
26754 generated by GNU Autoconf 2.69.  Invocation command line was
26755
26756   CONFIG_FILES    = $CONFIG_FILES
26757   CONFIG_HEADERS  = $CONFIG_HEADERS
26758   CONFIG_LINKS    = $CONFIG_LINKS
26759   CONFIG_COMMANDS = $CONFIG_COMMANDS
26760   $ $0 $@
26761
26762 on `(hostname || uname -n) 2>/dev/null | sed 1q`
26763 "
26764
26765 _ACEOF
26766
26767 case $ac_config_files in *"
26768 "*) set x $ac_config_files; shift; ac_config_files=$*;;
26769 esac
26770
26771 case $ac_config_headers in *"
26772 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
26773 esac
26774
26775
26776 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26777 # Files that config.status was made for.
26778 config_files="$ac_config_files"
26779 config_headers="$ac_config_headers"
26780 config_commands="$ac_config_commands"
26781
26782 _ACEOF
26783
26784 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26785 ac_cs_usage="\
26786 \`$as_me' instantiates files and other configuration actions
26787 from templates according to the current configuration.  Unless the files
26788 and actions are specified as TAGs, all are instantiated by default.
26789
26790 Usage: $0 [OPTION]... [TAG]...
26791
26792   -h, --help       print this help, then exit
26793   -V, --version    print version number and configuration settings, then exit
26794       --config     print configuration, then exit
26795   -q, --quiet, --silent
26796                    do not print progress messages
26797   -d, --debug      don't remove temporary files
26798       --recheck    update $as_me by reconfiguring in the same conditions
26799       --file=FILE[:TEMPLATE]
26800                    instantiate the configuration file FILE
26801       --header=FILE[:TEMPLATE]
26802                    instantiate the configuration header FILE
26803
26804 Configuration files:
26805 $config_files
26806
26807 Configuration headers:
26808 $config_headers
26809
26810 Configuration commands:
26811 $config_commands
26812
26813 Report bugs to <http://subversion.apache.org/>."
26814
26815 _ACEOF
26816 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26817 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
26818 ac_cs_version="\\
26819 subversion config.status 1.9.4
26820 configured by $0, generated by GNU Autoconf 2.69,
26821   with options \\"\$ac_cs_config\\"
26822
26823 Copyright (C) 2012 Free Software Foundation, Inc.
26824 This config.status script is free software; the Free Software Foundation
26825 gives unlimited permission to copy, distribute and modify it."
26826
26827 ac_pwd='$ac_pwd'
26828 srcdir='$srcdir'
26829 INSTALL='$INSTALL'
26830 AWK='$AWK'
26831 test -n "\$AWK" || AWK=awk
26832 _ACEOF
26833
26834 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26835 # The default lists apply if the user does not specify any file.
26836 ac_need_defaults=:
26837 while test $# != 0
26838 do
26839   case $1 in
26840   --*=?*)
26841     ac_option=`expr "X$1" : 'X\([^=]*\)='`
26842     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
26843     ac_shift=:
26844     ;;
26845   --*=)
26846     ac_option=`expr "X$1" : 'X\([^=]*\)='`
26847     ac_optarg=
26848     ac_shift=:
26849     ;;
26850   *)
26851     ac_option=$1
26852     ac_optarg=$2
26853     ac_shift=shift
26854     ;;
26855   esac
26856
26857   case $ac_option in
26858   # Handling of the options.
26859   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
26860     ac_cs_recheck=: ;;
26861   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
26862     $as_echo "$ac_cs_version"; exit ;;
26863   --config | --confi | --conf | --con | --co | --c )
26864     $as_echo "$ac_cs_config"; exit ;;
26865   --debug | --debu | --deb | --de | --d | -d )
26866     debug=: ;;
26867   --file | --fil | --fi | --f )
26868     $ac_shift
26869     case $ac_optarg in
26870     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
26871     '') as_fn_error $? "missing file argument" ;;
26872     esac
26873     as_fn_append CONFIG_FILES " '$ac_optarg'"
26874     ac_need_defaults=false;;
26875   --header | --heade | --head | --hea )
26876     $ac_shift
26877     case $ac_optarg in
26878     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
26879     esac
26880     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
26881     ac_need_defaults=false;;
26882   --he | --h)
26883     # Conflict between --help and --header
26884     as_fn_error $? "ambiguous option: \`$1'
26885 Try \`$0 --help' for more information.";;
26886   --help | --hel | -h )
26887     $as_echo "$ac_cs_usage"; exit ;;
26888   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
26889   | -silent | --silent | --silen | --sile | --sil | --si | --s)
26890     ac_cs_silent=: ;;
26891
26892   # This is an error.
26893   -*) as_fn_error $? "unrecognized option: \`$1'
26894 Try \`$0 --help' for more information." ;;
26895
26896   *) as_fn_append ac_config_targets " $1"
26897      ac_need_defaults=false ;;
26898
26899   esac
26900   shift
26901 done
26902
26903 ac_configure_extra_args=
26904
26905 if $ac_cs_silent; then
26906   exec 6>/dev/null
26907   ac_configure_extra_args="$ac_configure_extra_args --silent"
26908 fi
26909
26910 _ACEOF
26911 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26912 if \$ac_cs_recheck; then
26913   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
26914   shift
26915   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
26916   CONFIG_SHELL='$SHELL'
26917   export CONFIG_SHELL
26918   exec "\$@"
26919 fi
26920
26921 _ACEOF
26922 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26923 exec 5>>config.log
26924 {
26925   echo
26926   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
26927 ## Running $as_me. ##
26928 _ASBOX
26929   $as_echo "$ac_log"
26930 } >&5
26931
26932 _ACEOF
26933 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26934 #
26935 # INIT-COMMANDS
26936 #
26937
26938
26939 # The HP-UX ksh and POSIX shell print the target directory to stdout
26940 # if CDPATH is set.
26941 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
26942
26943 sed_quote_subst='$sed_quote_subst'
26944 double_quote_subst='$double_quote_subst'
26945 delay_variable_subst='$delay_variable_subst'
26946 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
26947 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
26948 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
26949 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
26950 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
26951 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
26952 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
26953 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
26954 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
26955 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
26956 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
26957 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
26958 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
26959 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
26960 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
26961 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
26962 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
26963 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
26964 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
26965 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
26966 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
26967 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
26968 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
26969 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
26970 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
26971 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
26972 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
26973 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
26974 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
26975 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
26976 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
26977 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
26978 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
26979 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
26980 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
26981 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
26982 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
26983 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
26984 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
26985 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
26986 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
26987 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
26988 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
26989 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
26990 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
26991 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
26992 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
26993 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
26994 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
26995 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
26996 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
26997 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
26998 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
26999 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
27000 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
27001 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
27002 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
27003 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
27004 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"`'
27005 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
27006 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
27007 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
27008 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
27009 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
27010 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
27011 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
27012 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
27013 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
27014 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
27015 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
27016 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
27017 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
27018 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
27019 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
27020 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
27021 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
27022 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
27023 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
27024 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
27025 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
27026 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
27027 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
27028 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
27029 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
27030 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
27031 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
27032 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
27033 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
27034 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
27035 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
27036 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
27037 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
27038 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
27039 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
27040 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
27041 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
27042 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
27043 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
27044 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
27045 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
27046 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
27047 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
27048 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
27049 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
27050 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
27051 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
27052 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
27053 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
27054 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
27055 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
27056 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
27057 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
27058 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
27059 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
27060 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
27061 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
27062 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
27063 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
27064 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
27065 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
27066 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
27067 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
27068 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
27069 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
27070 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
27071 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
27072 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
27073 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
27074 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
27075 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
27076 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
27077 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
27078 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
27079 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
27080 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
27081 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
27082 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
27083 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
27084 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
27085 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
27086 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
27087 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
27088 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
27089 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
27090 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
27091 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
27092 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
27093 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
27094 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
27095 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
27096 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
27097 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
27098 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
27099 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
27100 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
27101 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
27102 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
27103 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
27104 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
27105 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
27106 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
27107 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
27108 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
27109 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
27110 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
27111 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
27112 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
27113 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
27114 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
27115 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
27116 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
27117 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
27118 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
27119 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
27120 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
27121 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
27122 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
27123 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
27124 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
27125 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
27126 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
27127 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
27128 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
27129 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
27130 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
27131 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
27132 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
27133 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
27134 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
27135
27136 LTCC='$LTCC'
27137 LTCFLAGS='$LTCFLAGS'
27138 compiler='$compiler_DEFAULT'
27139
27140 # A function that is used when there is no print builtin or printf.
27141 func_fallback_echo ()
27142 {
27143   eval 'cat <<_LTECHO_EOF
27144 \$1
27145 _LTECHO_EOF'
27146 }
27147
27148 # Quote evaled strings.
27149 for var in SHELL \
27150 ECHO \
27151 PATH_SEPARATOR \
27152 SED \
27153 GREP \
27154 EGREP \
27155 FGREP \
27156 LD \
27157 NM \
27158 LN_S \
27159 lt_SP2NL \
27160 lt_NL2SP \
27161 reload_flag \
27162 OBJDUMP \
27163 deplibs_check_method \
27164 file_magic_cmd \
27165 file_magic_glob \
27166 want_nocaseglob \
27167 DLLTOOL \
27168 sharedlib_from_linklib_cmd \
27169 AR \
27170 AR_FLAGS \
27171 archiver_list_spec \
27172 STRIP \
27173 RANLIB \
27174 CC \
27175 CFLAGS \
27176 compiler \
27177 lt_cv_sys_global_symbol_pipe \
27178 lt_cv_sys_global_symbol_to_cdecl \
27179 lt_cv_sys_global_symbol_to_import \
27180 lt_cv_sys_global_symbol_to_c_name_address \
27181 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
27182 lt_cv_nm_interface \
27183 nm_file_list_spec \
27184 lt_cv_truncate_bin \
27185 lt_prog_compiler_no_builtin_flag \
27186 lt_prog_compiler_pic \
27187 lt_prog_compiler_wl \
27188 lt_prog_compiler_static \
27189 lt_cv_prog_compiler_c_o \
27190 need_locks \
27191 MANIFEST_TOOL \
27192 DSYMUTIL \
27193 NMEDIT \
27194 LIPO \
27195 OTOOL \
27196 OTOOL64 \
27197 shrext_cmds \
27198 export_dynamic_flag_spec \
27199 whole_archive_flag_spec \
27200 compiler_needs_object \
27201 with_gnu_ld \
27202 allow_undefined_flag \
27203 no_undefined_flag \
27204 hardcode_libdir_flag_spec \
27205 hardcode_libdir_separator \
27206 exclude_expsyms \
27207 include_expsyms \
27208 file_list_spec \
27209 variables_saved_for_relink \
27210 libname_spec \
27211 library_names_spec \
27212 soname_spec \
27213 install_override_mode \
27214 finish_eval \
27215 old_striplib \
27216 striplib \
27217 compiler_lib_search_dirs \
27218 predep_objects \
27219 postdep_objects \
27220 predeps \
27221 postdeps \
27222 compiler_lib_search_path \
27223 LD_CXX \
27224 reload_flag_CXX \
27225 compiler_CXX \
27226 lt_prog_compiler_no_builtin_flag_CXX \
27227 lt_prog_compiler_pic_CXX \
27228 lt_prog_compiler_wl_CXX \
27229 lt_prog_compiler_static_CXX \
27230 lt_cv_prog_compiler_c_o_CXX \
27231 export_dynamic_flag_spec_CXX \
27232 whole_archive_flag_spec_CXX \
27233 compiler_needs_object_CXX \
27234 with_gnu_ld_CXX \
27235 allow_undefined_flag_CXX \
27236 no_undefined_flag_CXX \
27237 hardcode_libdir_flag_spec_CXX \
27238 hardcode_libdir_separator_CXX \
27239 exclude_expsyms_CXX \
27240 include_expsyms_CXX \
27241 file_list_spec_CXX \
27242 compiler_lib_search_dirs_CXX \
27243 predep_objects_CXX \
27244 postdep_objects_CXX \
27245 predeps_CXX \
27246 postdeps_CXX \
27247 compiler_lib_search_path_CXX; do
27248     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
27249     *[\\\\\\\`\\"\\\$]*)
27250       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
27251       ;;
27252     *)
27253       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
27254       ;;
27255     esac
27256 done
27257
27258 # Double-quote double-evaled strings.
27259 for var in reload_cmds \
27260 old_postinstall_cmds \
27261 old_postuninstall_cmds \
27262 old_archive_cmds \
27263 extract_expsyms_cmds \
27264 old_archive_from_new_cmds \
27265 old_archive_from_expsyms_cmds \
27266 archive_cmds \
27267 archive_expsym_cmds \
27268 module_cmds \
27269 module_expsym_cmds \
27270 export_symbols_cmds \
27271 prelink_cmds \
27272 postlink_cmds \
27273 postinstall_cmds \
27274 postuninstall_cmds \
27275 finish_cmds \
27276 sys_lib_search_path_spec \
27277 configure_time_dlsearch_path \
27278 configure_time_lt_sys_library_path \
27279 reload_cmds_CXX \
27280 old_archive_cmds_CXX \
27281 old_archive_from_new_cmds_CXX \
27282 old_archive_from_expsyms_cmds_CXX \
27283 archive_cmds_CXX \
27284 archive_expsym_cmds_CXX \
27285 module_cmds_CXX \
27286 module_expsym_cmds_CXX \
27287 export_symbols_cmds_CXX \
27288 prelink_cmds_CXX \
27289 postlink_cmds_CXX; do
27290     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
27291     *[\\\\\\\`\\"\\\$]*)
27292       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
27293       ;;
27294     *)
27295       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
27296       ;;
27297     esac
27298 done
27299
27300 ac_aux_dir='$ac_aux_dir'
27301
27302 # See if we are running on zsh, and set the options that allow our
27303 # commands through without removal of \ escapes INIT.
27304 if test -n "\${ZSH_VERSION+set}"; then
27305    setopt NO_GLOB_SUBST
27306 fi
27307
27308
27309     PACKAGE='$PACKAGE'
27310     VERSION='$VERSION'
27311     RM='$RM'
27312     ofile='$ofile'
27313
27314
27315
27316
27317
27318 SED="$SED"
27319                     SVN_DB_HEADER="$SVN_DB_HEADER"
27320
27321 _ACEOF
27322
27323 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27324
27325 # Handling of arguments.
27326 for ac_config_target in $ac_config_targets
27327 do
27328   case $ac_config_target in
27329     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
27330     "subversion/svn_private_config.h.tmp") CONFIG_HEADERS="$CONFIG_HEADERS subversion/svn_private_config.h.tmp:subversion/svn_private_config.h.in" ;;
27331     "svn_private_config.h.tmp") CONFIG_COMMANDS="$CONFIG_COMMANDS svn_private_config.h.tmp" ;;
27332     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
27333     "${pc_file}") CONFIG_FILES="$CONFIG_FILES ${pc_file}" ;;
27334     "tools/backup/hot-backup.py") CONFIG_FILES="$CONFIG_FILES tools/backup/hot-backup.py" ;;
27335     "tools/hook-scripts/commit-access-control.pl") CONFIG_FILES="$CONFIG_FILES tools/hook-scripts/commit-access-control.pl" ;;
27336     "subversion/bindings/swig/perl/native/Makefile.PL") CONFIG_FILES="$CONFIG_FILES subversion/bindings/swig/perl/native/Makefile.PL" ;;
27337     "packages/solaris/pkginfo") CONFIG_FILES="$CONFIG_FILES packages/solaris/pkginfo" ;;
27338
27339   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
27340   esac
27341 done
27342
27343
27344 # If the user did not use the arguments to specify the items to instantiate,
27345 # then the envvar interface is used.  Set only those that are not.
27346 # We use the long form for the default assignment because of an extremely
27347 # bizarre bug on SunOS 4.1.3.
27348 if $ac_need_defaults; then
27349   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
27350   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
27351   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
27352 fi
27353
27354 # Have a temporary directory for convenience.  Make it in the build tree
27355 # simply because there is no reason against having it here, and in addition,
27356 # creating and moving files from /tmp can sometimes cause problems.
27357 # Hook for its removal unless debugging.
27358 # Note that there is a small window in which the directory will not be cleaned:
27359 # after its creation but before its name has been assigned to `$tmp'.
27360 $debug ||
27361 {
27362   tmp= ac_tmp=
27363   trap 'exit_status=$?
27364   : "${ac_tmp:=$tmp}"
27365   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
27366 ' 0
27367   trap 'as_fn_exit 1' 1 2 13 15
27368 }
27369 # Create a (secure) tmp directory for tmp files.
27370
27371 {
27372   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
27373   test -d "$tmp"
27374 }  ||
27375 {
27376   tmp=./conf$$-$RANDOM
27377   (umask 077 && mkdir "$tmp")
27378 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
27379 ac_tmp=$tmp
27380
27381 # Set up the scripts for CONFIG_FILES section.
27382 # No need to generate them if there are no CONFIG_FILES.
27383 # This happens for instance with `./config.status config.h'.
27384 if test -n "$CONFIG_FILES"; then
27385
27386
27387 ac_cr=`echo X | tr X '\015'`
27388 # On cygwin, bash can eat \r inside `` if the user requested igncr.
27389 # But we know of no other shell where ac_cr would be empty at this
27390 # point, so we can use a bashism as a fallback.
27391 if test "x$ac_cr" = x; then
27392   eval ac_cr=\$\'\\r\'
27393 fi
27394 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
27395 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
27396   ac_cs_awk_cr='\\r'
27397 else
27398   ac_cs_awk_cr=$ac_cr
27399 fi
27400
27401 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
27402 _ACEOF
27403
27404
27405 {
27406   echo "cat >conf$$subs.awk <<_ACEOF" &&
27407   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
27408   echo "_ACEOF"
27409 } >conf$$subs.sh ||
27410   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
27411 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
27412 ac_delim='%!_!# '
27413 for ac_last_try in false false false false false :; do
27414   . ./conf$$subs.sh ||
27415     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
27416
27417   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
27418   if test $ac_delim_n = $ac_delim_num; then
27419     break
27420   elif $ac_last_try; then
27421     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
27422   else
27423     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
27424   fi
27425 done
27426 rm -f conf$$subs.sh
27427
27428 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27429 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
27430 _ACEOF
27431 sed -n '
27432 h
27433 s/^/S["/; s/!.*/"]=/
27434 p
27435 g
27436 s/^[^!]*!//
27437 :repl
27438 t repl
27439 s/'"$ac_delim"'$//
27440 t delim
27441 :nl
27442 h
27443 s/\(.\{148\}\)..*/\1/
27444 t more1
27445 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
27446 p
27447 n
27448 b repl
27449 :more1
27450 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
27451 p
27452 g
27453 s/.\{148\}//
27454 t nl
27455 :delim
27456 h
27457 s/\(.\{148\}\)..*/\1/
27458 t more2
27459 s/["\\]/\\&/g; s/^/"/; s/$/"/
27460 p
27461 b
27462 :more2
27463 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
27464 p
27465 g
27466 s/.\{148\}//
27467 t delim
27468 ' <conf$$subs.awk | sed '
27469 /^[^""]/{
27470   N
27471   s/\n//
27472 }
27473 ' >>$CONFIG_STATUS || ac_write_fail=1
27474 rm -f conf$$subs.awk
27475 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27476 _ACAWK
27477 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
27478   for (key in S) S_is_set[key] = 1
27479   FS = "\a"
27480
27481 }
27482 {
27483   line = $ 0
27484   nfields = split(line, field, "@")
27485   substed = 0
27486   len = length(field[1])
27487   for (i = 2; i < nfields; i++) {
27488     key = field[i]
27489     keylen = length(key)
27490     if (S_is_set[key]) {
27491       value = S[key]
27492       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
27493       len += length(value) + length(field[++i])
27494       substed = 1
27495     } else
27496       len += 1 + keylen
27497   }
27498
27499   print line
27500 }
27501
27502 _ACAWK
27503 _ACEOF
27504 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27505 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
27506   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
27507 else
27508   cat
27509 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
27510   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
27511 _ACEOF
27512
27513 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
27514 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
27515 # trailing colons and then remove the whole line if VPATH becomes empty
27516 # (actually we leave an empty line to preserve line numbers).
27517 if test "x$srcdir" = x.; then
27518   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
27519 h
27520 s///
27521 s/^/:/
27522 s/[      ]*$/:/
27523 s/:\$(srcdir):/:/g
27524 s/:\${srcdir}:/:/g
27525 s/:@srcdir@:/:/g
27526 s/^:*//
27527 s/:*$//
27528 x
27529 s/\(=[   ]*\).*/\1/
27530 G
27531 s/\n//
27532 s/^[^=]*=[       ]*$//
27533 }'
27534 fi
27535
27536 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27537 fi # test -n "$CONFIG_FILES"
27538
27539 # Set up the scripts for CONFIG_HEADERS section.
27540 # No need to generate them if there are no CONFIG_HEADERS.
27541 # This happens for instance with `./config.status Makefile'.
27542 if test -n "$CONFIG_HEADERS"; then
27543 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
27544 BEGIN {
27545 _ACEOF
27546
27547 # Transform confdefs.h into an awk script `defines.awk', embedded as
27548 # here-document in config.status, that substitutes the proper values into
27549 # config.h.in to produce config.h.
27550
27551 # Create a delimiter string that does not exist in confdefs.h, to ease
27552 # handling of long lines.
27553 ac_delim='%!_!# '
27554 for ac_last_try in false false :; do
27555   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
27556   if test -z "$ac_tt"; then
27557     break
27558   elif $ac_last_try; then
27559     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
27560   else
27561     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
27562   fi
27563 done
27564
27565 # For the awk script, D is an array of macro values keyed by name,
27566 # likewise P contains macro parameters if any.  Preserve backslash
27567 # newline sequences.
27568
27569 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
27570 sed -n '
27571 s/.\{148\}/&'"$ac_delim"'/g
27572 t rset
27573 :rset
27574 s/^[     ]*#[    ]*define[       ][      ]*/ /
27575 t def
27576 d
27577 :def
27578 s/\\$//
27579 t bsnl
27580 s/["\\]/\\&/g
27581 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
27582 D["\1"]=" \3"/p
27583 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
27584 d
27585 :bsnl
27586 s/["\\]/\\&/g
27587 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
27588 D["\1"]=" \3\\\\\\n"\\/p
27589 t cont
27590 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
27591 t cont
27592 d
27593 :cont
27594 n
27595 s/.\{148\}/&'"$ac_delim"'/g
27596 t clear
27597 :clear
27598 s/\\$//
27599 t bsnlc
27600 s/["\\]/\\&/g; s/^/"/; s/$/"/p
27601 d
27602 :bsnlc
27603 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
27604 b cont
27605 ' <confdefs.h | sed '
27606 s/'"$ac_delim"'/"\\\
27607 "/g' >>$CONFIG_STATUS || ac_write_fail=1
27608
27609 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27610   for (key in D) D_is_set[key] = 1
27611   FS = "\a"
27612 }
27613 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
27614   line = \$ 0
27615   split(line, arg, " ")
27616   if (arg[1] == "#") {
27617     defundef = arg[2]
27618     mac1 = arg[3]
27619   } else {
27620     defundef = substr(arg[1], 2)
27621     mac1 = arg[2]
27622   }
27623   split(mac1, mac2, "(") #)
27624   macro = mac2[1]
27625   prefix = substr(line, 1, index(line, defundef) - 1)
27626   if (D_is_set[macro]) {
27627     # Preserve the white space surrounding the "#".
27628     print prefix "define", macro P[macro] D[macro]
27629     next
27630   } else {
27631     # Replace #undef with comments.  This is necessary, for example,
27632     # in the case of _POSIX_SOURCE, which is predefined and required
27633     # on some systems where configure will not decide to define it.
27634     if (defundef == "undef") {
27635       print "/*", prefix defundef, macro, "*/"
27636       next
27637     }
27638   }
27639 }
27640 { print }
27641 _ACAWK
27642 _ACEOF
27643 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27644   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
27645 fi # test -n "$CONFIG_HEADERS"
27646
27647
27648 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
27649 shift
27650 for ac_tag
27651 do
27652   case $ac_tag in
27653   :[FHLC]) ac_mode=$ac_tag; continue;;
27654   esac
27655   case $ac_mode$ac_tag in
27656   :[FHL]*:*);;
27657   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
27658   :[FH]-) ac_tag=-:-;;
27659   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
27660   esac
27661   ac_save_IFS=$IFS
27662   IFS=:
27663   set x $ac_tag
27664   IFS=$ac_save_IFS
27665   shift
27666   ac_file=$1
27667   shift
27668
27669   case $ac_mode in
27670   :L) ac_source=$1;;
27671   :[FH])
27672     ac_file_inputs=
27673     for ac_f
27674     do
27675       case $ac_f in
27676       -) ac_f="$ac_tmp/stdin";;
27677       *) # Look for the file first in the build tree, then in the source tree
27678          # (if the path is not absolute).  The absolute path cannot be DOS-style,
27679          # because $ac_f cannot contain `:'.
27680          test -f "$ac_f" ||
27681            case $ac_f in
27682            [\\/$]*) false;;
27683            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
27684            esac ||
27685            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
27686       esac
27687       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
27688       as_fn_append ac_file_inputs " '$ac_f'"
27689     done
27690
27691     # Let's still pretend it is `configure' which instantiates (i.e., don't
27692     # use $as_me), people would be surprised to read:
27693     #    /* config.h.  Generated by config.status.  */
27694     configure_input='Generated from '`
27695           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
27696         `' by configure.'
27697     if test x"$ac_file" != x-; then
27698       configure_input="$ac_file.  $configure_input"
27699       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
27700 $as_echo "$as_me: creating $ac_file" >&6;}
27701     fi
27702     # Neutralize special characters interpreted by sed in replacement strings.
27703     case $configure_input in #(
27704     *\&* | *\|* | *\\* )
27705        ac_sed_conf_input=`$as_echo "$configure_input" |
27706        sed 's/[\\\\&|]/\\\\&/g'`;; #(
27707     *) ac_sed_conf_input=$configure_input;;
27708     esac
27709
27710     case $ac_tag in
27711     *:-:* | *:-) cat >"$ac_tmp/stdin" \
27712       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
27713     esac
27714     ;;
27715   esac
27716
27717   ac_dir=`$as_dirname -- "$ac_file" ||
27718 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27719          X"$ac_file" : 'X\(//\)[^/]' \| \
27720          X"$ac_file" : 'X\(//\)$' \| \
27721          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
27722 $as_echo X"$ac_file" |
27723     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27724             s//\1/
27725             q
27726           }
27727           /^X\(\/\/\)[^/].*/{
27728             s//\1/
27729             q
27730           }
27731           /^X\(\/\/\)$/{
27732             s//\1/
27733             q
27734           }
27735           /^X\(\/\).*/{
27736             s//\1/
27737             q
27738           }
27739           s/.*/./; q'`
27740   as_dir="$ac_dir"; as_fn_mkdir_p
27741   ac_builddir=.
27742
27743 case "$ac_dir" in
27744 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
27745 *)
27746   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
27747   # A ".." for each directory in $ac_dir_suffix.
27748   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
27749   case $ac_top_builddir_sub in
27750   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
27751   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
27752   esac ;;
27753 esac
27754 ac_abs_top_builddir=$ac_pwd
27755 ac_abs_builddir=$ac_pwd$ac_dir_suffix
27756 # for backward compatibility:
27757 ac_top_builddir=$ac_top_build_prefix
27758
27759 case $srcdir in
27760   .)  # We are building in place.
27761     ac_srcdir=.
27762     ac_top_srcdir=$ac_top_builddir_sub
27763     ac_abs_top_srcdir=$ac_pwd ;;
27764   [\\/]* | ?:[\\/]* )  # Absolute name.
27765     ac_srcdir=$srcdir$ac_dir_suffix;
27766     ac_top_srcdir=$srcdir
27767     ac_abs_top_srcdir=$srcdir ;;
27768   *) # Relative name.
27769     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
27770     ac_top_srcdir=$ac_top_build_prefix$srcdir
27771     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
27772 esac
27773 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
27774
27775
27776   case $ac_mode in
27777   :F)
27778   #
27779   # CONFIG_FILE
27780   #
27781
27782   case $INSTALL in
27783   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
27784   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
27785   esac
27786 _ACEOF
27787
27788 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27789 # If the template does not know about datarootdir, expand it.
27790 # FIXME: This hack should be removed a few years after 2.60.
27791 ac_datarootdir_hack=; ac_datarootdir_seen=
27792 ac_sed_dataroot='
27793 /datarootdir/ {
27794   p
27795   q
27796 }
27797 /@datadir@/p
27798 /@docdir@/p
27799 /@infodir@/p
27800 /@localedir@/p
27801 /@mandir@/p'
27802 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
27803 *datarootdir*) ac_datarootdir_seen=yes;;
27804 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
27805   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
27806 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
27807 _ACEOF
27808 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27809   ac_datarootdir_hack='
27810   s&@datadir@&$datadir&g
27811   s&@docdir@&$docdir&g
27812   s&@infodir@&$infodir&g
27813   s&@localedir@&$localedir&g
27814   s&@mandir@&$mandir&g
27815   s&\\\${datarootdir}&$datarootdir&g' ;;
27816 esac
27817 _ACEOF
27818
27819 # Neutralize VPATH when `$srcdir' = `.'.
27820 # Shell code in configure.ac might set extrasub.
27821 # FIXME: do we really want to maintain this feature?
27822 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27823 ac_sed_extra="$ac_vpsub
27824 $extrasub
27825 _ACEOF
27826 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27827 :t
27828 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
27829 s|@configure_input@|$ac_sed_conf_input|;t t
27830 s&@top_builddir@&$ac_top_builddir_sub&;t t
27831 s&@top_build_prefix@&$ac_top_build_prefix&;t t
27832 s&@srcdir@&$ac_srcdir&;t t
27833 s&@abs_srcdir@&$ac_abs_srcdir&;t t
27834 s&@top_srcdir@&$ac_top_srcdir&;t t
27835 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
27836 s&@builddir@&$ac_builddir&;t t
27837 s&@abs_builddir@&$ac_abs_builddir&;t t
27838 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
27839 s&@INSTALL@&$ac_INSTALL&;t t
27840 $ac_datarootdir_hack
27841 "
27842 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
27843   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
27844
27845 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
27846   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
27847   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
27848       "$ac_tmp/out"`; test -z "$ac_out"; } &&
27849   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
27850 which seems to be undefined.  Please make sure it is defined" >&5
27851 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
27852 which seems to be undefined.  Please make sure it is defined" >&2;}
27853
27854   rm -f "$ac_tmp/stdin"
27855   case $ac_file in
27856   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
27857   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
27858   esac \
27859   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
27860  ;;
27861   :H)
27862   #
27863   # CONFIG_HEADER
27864   #
27865   if test x"$ac_file" != x-; then
27866     {
27867       $as_echo "/* $configure_input  */" \
27868       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
27869     } >"$ac_tmp/config.h" \
27870       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
27871     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
27872       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
27873 $as_echo "$as_me: $ac_file is unchanged" >&6;}
27874     else
27875       rm -f "$ac_file"
27876       mv "$ac_tmp/config.h" "$ac_file" \
27877         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
27878     fi
27879   else
27880     $as_echo "/* $configure_input  */" \
27881       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
27882       || as_fn_error $? "could not create -" "$LINENO" 5
27883   fi
27884  ;;
27885
27886   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
27887 $as_echo "$as_me: executing $ac_file commands" >&6;}
27888  ;;
27889   esac
27890
27891
27892   case $ac_file$ac_mode in
27893     "libtool":C)
27894
27895     # See if we are running on zsh, and set the options that allow our
27896     # commands through without removal of \ escapes.
27897     if test -n "${ZSH_VERSION+set}"; then
27898       setopt NO_GLOB_SUBST
27899     fi
27900
27901     cfgfile=${ofile}T
27902     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
27903     $RM "$cfgfile"
27904
27905     cat <<_LT_EOF >> "$cfgfile"
27906 #! $SHELL
27907 # Generated automatically by $as_me ($PACKAGE) $VERSION
27908 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
27909 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
27910
27911 # Provide generalized library-building support services.
27912 # Written by Gordon Matzigkeit, 1996
27913
27914 # Copyright (C) 2014 Free Software Foundation, Inc.
27915 # This is free software; see the source for copying conditions.  There is NO
27916 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
27917
27918 # GNU Libtool is free software; you can redistribute it and/or modify
27919 # it under the terms of the GNU General Public License as published by
27920 # the Free Software Foundation; either version 2 of of the License, or
27921 # (at your option) any later version.
27922 #
27923 # As a special exception to the GNU General Public License, if you
27924 # distribute this file as part of a program or library that is built
27925 # using GNU Libtool, you may include this file under the  same
27926 # distribution terms that you use for the rest of that program.
27927 #
27928 # GNU Libtool is distributed in the hope that it will be useful, but
27929 # WITHOUT ANY WARRANTY; without even the implied warranty of
27930 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
27931 # GNU General Public License for more details.
27932 #
27933 # You should have received a copy of the GNU General Public License
27934 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
27935
27936
27937 # The names of the tagged configurations supported by this script.
27938 available_tags='CXX '
27939
27940 # Configured defaults for sys_lib_dlsearch_path munging.
27941 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
27942
27943 # ### BEGIN LIBTOOL CONFIG
27944
27945 # Which release of libtool.m4 was used?
27946 macro_version=$macro_version
27947 macro_revision=$macro_revision
27948
27949 # Whether or not to build shared libraries.
27950 build_libtool_libs=$enable_shared
27951
27952 # Whether or not to build static libraries.
27953 build_old_libs=$enable_static
27954
27955 # What type of objects to build.
27956 pic_mode=$pic_mode
27957
27958 # Whether or not to optimize for fast installation.
27959 fast_install=$enable_fast_install
27960
27961 # Shared archive member basename,for filename based shared library versioning on AIX.
27962 shared_archive_member_spec=$shared_archive_member_spec
27963
27964 # Shell to use when invoking shell scripts.
27965 SHELL=$lt_SHELL
27966
27967 # An echo program that protects backslashes.
27968 ECHO=$lt_ECHO
27969
27970 # The PATH separator for the build system.
27971 PATH_SEPARATOR=$lt_PATH_SEPARATOR
27972
27973 # The host system.
27974 host_alias=$host_alias
27975 host=$host
27976 host_os=$host_os
27977
27978 # The build system.
27979 build_alias=$build_alias
27980 build=$build
27981 build_os=$build_os
27982
27983 # A sed program that does not truncate output.
27984 SED=$lt_SED
27985
27986 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
27987 Xsed="\$SED -e 1s/^X//"
27988
27989 # A grep program that handles long lines.
27990 GREP=$lt_GREP
27991
27992 # An ERE matcher.
27993 EGREP=$lt_EGREP
27994
27995 # A literal string matcher.
27996 FGREP=$lt_FGREP
27997
27998 # A BSD- or MS-compatible name lister.
27999 NM=$lt_NM
28000
28001 # Whether we need soft or hard links.
28002 LN_S=$lt_LN_S
28003
28004 # What is the maximum length of a command?
28005 max_cmd_len=$max_cmd_len
28006
28007 # Object file suffix (normally "o").
28008 objext=$ac_objext
28009
28010 # Executable file suffix (normally "").
28011 exeext=$exeext
28012
28013 # whether the shell understands "unset".
28014 lt_unset=$lt_unset
28015
28016 # turn spaces into newlines.
28017 SP2NL=$lt_lt_SP2NL
28018
28019 # turn newlines into spaces.
28020 NL2SP=$lt_lt_NL2SP
28021
28022 # convert \$build file names to \$host format.
28023 to_host_file_cmd=$lt_cv_to_host_file_cmd
28024
28025 # convert \$build files to toolchain format.
28026 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
28027
28028 # An object symbol dumper.
28029 OBJDUMP=$lt_OBJDUMP
28030
28031 # Method to check whether dependent libraries are shared objects.
28032 deplibs_check_method=$lt_deplibs_check_method
28033
28034 # Command to use when deplibs_check_method = "file_magic".
28035 file_magic_cmd=$lt_file_magic_cmd
28036
28037 # How to find potential files when deplibs_check_method = "file_magic".
28038 file_magic_glob=$lt_file_magic_glob
28039
28040 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
28041 want_nocaseglob=$lt_want_nocaseglob
28042
28043 # DLL creation program.
28044 DLLTOOL=$lt_DLLTOOL
28045
28046 # Command to associate shared and link libraries.
28047 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
28048
28049 # The archiver.
28050 AR=$lt_AR
28051
28052 # Flags to create an archive.
28053 AR_FLAGS=$lt_AR_FLAGS
28054
28055 # How to feed a file listing to the archiver.
28056 archiver_list_spec=$lt_archiver_list_spec
28057
28058 # A symbol stripping program.
28059 STRIP=$lt_STRIP
28060
28061 # Commands used to install an old-style archive.
28062 RANLIB=$lt_RANLIB
28063 old_postinstall_cmds=$lt_old_postinstall_cmds
28064 old_postuninstall_cmds=$lt_old_postuninstall_cmds
28065
28066 # Whether to use a lock for old archive extraction.
28067 lock_old_archive_extraction=$lock_old_archive_extraction
28068
28069 # A C compiler.
28070 LTCC=$lt_CC
28071
28072 # LTCC compiler flags.
28073 LTCFLAGS=$lt_CFLAGS
28074
28075 # Take the output of nm and produce a listing of raw symbols and C names.
28076 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
28077
28078 # Transform the output of nm in a proper C declaration.
28079 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
28080
28081 # Transform the output of nm into a list of symbols to manually relocate.
28082 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
28083
28084 # Transform the output of nm in a C name address pair.
28085 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
28086
28087 # Transform the output of nm in a C name address pair when lib prefix is needed.
28088 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
28089
28090 # The name lister interface.
28091 nm_interface=$lt_lt_cv_nm_interface
28092
28093 # Specify filename containing input files for \$NM.
28094 nm_file_list_spec=$lt_nm_file_list_spec
28095
28096 # The root where to search for dependent libraries,and where our libraries should be installed.
28097 lt_sysroot=$lt_sysroot
28098
28099 # Command to truncate a binary pipe.
28100 lt_truncate_bin=$lt_lt_cv_truncate_bin
28101
28102 # The name of the directory that contains temporary libtool files.
28103 objdir=$objdir
28104
28105 # Used to examine libraries when file_magic_cmd begins with "file".
28106 MAGIC_CMD=$MAGIC_CMD
28107
28108 # Must we lock files when doing compilation?
28109 need_locks=$lt_need_locks
28110
28111 # Manifest tool.
28112 MANIFEST_TOOL=$lt_MANIFEST_TOOL
28113
28114 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
28115 DSYMUTIL=$lt_DSYMUTIL
28116
28117 # Tool to change global to local symbols on Mac OS X.
28118 NMEDIT=$lt_NMEDIT
28119
28120 # Tool to manipulate fat objects and archives on Mac OS X.
28121 LIPO=$lt_LIPO
28122
28123 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
28124 OTOOL=$lt_OTOOL
28125
28126 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
28127 OTOOL64=$lt_OTOOL64
28128
28129 # Old archive suffix (normally "a").
28130 libext=$libext
28131
28132 # Shared library suffix (normally ".so").
28133 shrext_cmds=$lt_shrext_cmds
28134
28135 # The commands to extract the exported symbol list from a shared archive.
28136 extract_expsyms_cmds=$lt_extract_expsyms_cmds
28137
28138 # Variables whose values should be saved in libtool wrapper scripts and
28139 # restored at link time.
28140 variables_saved_for_relink=$lt_variables_saved_for_relink
28141
28142 # Do we need the "lib" prefix for modules?
28143 need_lib_prefix=$need_lib_prefix
28144
28145 # Do we need a version for libraries?
28146 need_version=$need_version
28147
28148 # Library versioning type.
28149 version_type=$version_type
28150
28151 # Shared library runtime path variable.
28152 runpath_var=$runpath_var
28153
28154 # Shared library path variable.
28155 shlibpath_var=$shlibpath_var
28156
28157 # Is shlibpath searched before the hard-coded library search path?
28158 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
28159
28160 # Format of library name prefix.
28161 libname_spec=$lt_libname_spec
28162
28163 # List of archive names.  First name is the real one, the rest are links.
28164 # The last name is the one that the linker finds with -lNAME
28165 library_names_spec=$lt_library_names_spec
28166
28167 # The coded name of the library, if different from the real name.
28168 soname_spec=$lt_soname_spec
28169
28170 # Permission mode override for installation of shared libraries.
28171 install_override_mode=$lt_install_override_mode
28172
28173 # Command to use after installation of a shared archive.
28174 postinstall_cmds=$lt_postinstall_cmds
28175
28176 # Command to use after uninstallation of a shared archive.
28177 postuninstall_cmds=$lt_postuninstall_cmds
28178
28179 # Commands used to finish a libtool library installation in a directory.
28180 finish_cmds=$lt_finish_cmds
28181
28182 # As "finish_cmds", except a single script fragment to be evaled but
28183 # not shown.
28184 finish_eval=$lt_finish_eval
28185
28186 # Whether we should hardcode library paths into libraries.
28187 hardcode_into_libs=$hardcode_into_libs
28188
28189 # Compile-time system search path for libraries.
28190 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
28191
28192 # Detected run-time system search path for libraries.
28193 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
28194
28195 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
28196 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
28197
28198 # Whether dlopen is supported.
28199 dlopen_support=$enable_dlopen
28200
28201 # Whether dlopen of programs is supported.
28202 dlopen_self=$enable_dlopen_self
28203
28204 # Whether dlopen of statically linked programs is supported.
28205 dlopen_self_static=$enable_dlopen_self_static
28206
28207 # Commands to strip libraries.
28208 old_striplib=$lt_old_striplib
28209 striplib=$lt_striplib
28210
28211
28212 # The linker used to build libraries.
28213 LD=$lt_LD
28214
28215 # How to create reloadable object files.
28216 reload_flag=$lt_reload_flag
28217 reload_cmds=$lt_reload_cmds
28218
28219 # Commands used to build an old-style archive.
28220 old_archive_cmds=$lt_old_archive_cmds
28221
28222 # A language specific compiler.
28223 CC=$lt_compiler
28224
28225 # Is the compiler the GNU compiler?
28226 with_gcc=$GCC
28227
28228 # Compiler flag to turn off builtin functions.
28229 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
28230
28231 # Additional compiler flags for building library objects.
28232 pic_flag=$lt_lt_prog_compiler_pic
28233
28234 # How to pass a linker flag through the compiler.
28235 wl=$lt_lt_prog_compiler_wl
28236
28237 # Compiler flag to prevent dynamic linking.
28238 link_static_flag=$lt_lt_prog_compiler_static
28239
28240 # Does compiler simultaneously support -c and -o options?
28241 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
28242
28243 # Whether or not to add -lc for building shared libraries.
28244 build_libtool_need_lc=$archive_cmds_need_lc
28245
28246 # Whether or not to disallow shared libs when runtime libs are static.
28247 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
28248
28249 # Compiler flag to allow reflexive dlopens.
28250 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
28251
28252 # Compiler flag to generate shared objects directly from archives.
28253 whole_archive_flag_spec=$lt_whole_archive_flag_spec
28254
28255 # Whether the compiler copes with passing no objects directly.
28256 compiler_needs_object=$lt_compiler_needs_object
28257
28258 # Create an old-style archive from a shared archive.
28259 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
28260
28261 # Create a temporary old-style archive to link instead of a shared archive.
28262 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
28263
28264 # Commands used to build a shared archive.
28265 archive_cmds=$lt_archive_cmds
28266 archive_expsym_cmds=$lt_archive_expsym_cmds
28267
28268 # Commands used to build a loadable module if different from building
28269 # a shared archive.
28270 module_cmds=$lt_module_cmds
28271 module_expsym_cmds=$lt_module_expsym_cmds
28272
28273 # Whether we are building with GNU ld or not.
28274 with_gnu_ld=$lt_with_gnu_ld
28275
28276 # Flag that allows shared libraries with undefined symbols to be built.
28277 allow_undefined_flag=$lt_allow_undefined_flag
28278
28279 # Flag that enforces no undefined symbols.
28280 no_undefined_flag=$lt_no_undefined_flag
28281
28282 # Flag to hardcode \$libdir into a binary during linking.
28283 # This must work even if \$libdir does not exist
28284 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
28285
28286 # Whether we need a single "-rpath" flag with a separated argument.
28287 hardcode_libdir_separator=$lt_hardcode_libdir_separator
28288
28289 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
28290 # DIR into the resulting binary.
28291 hardcode_direct=$hardcode_direct
28292
28293 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
28294 # DIR into the resulting binary and the resulting library dependency is
28295 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
28296 # library is relocated.
28297 hardcode_direct_absolute=$hardcode_direct_absolute
28298
28299 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
28300 # into the resulting binary.
28301 hardcode_minus_L=$hardcode_minus_L
28302
28303 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
28304 # into the resulting binary.
28305 hardcode_shlibpath_var=$hardcode_shlibpath_var
28306
28307 # Set to "yes" if building a shared library automatically hardcodes DIR
28308 # into the library and all subsequent libraries and executables linked
28309 # against it.
28310 hardcode_automatic=$hardcode_automatic
28311
28312 # Set to yes if linker adds runtime paths of dependent libraries
28313 # to runtime path list.
28314 inherit_rpath=$inherit_rpath
28315
28316 # Whether libtool must link a program against all its dependency libraries.
28317 link_all_deplibs=$link_all_deplibs
28318
28319 # Set to "yes" if exported symbols are required.
28320 always_export_symbols=$always_export_symbols
28321
28322 # The commands to list exported symbols.
28323 export_symbols_cmds=$lt_export_symbols_cmds
28324
28325 # Symbols that should not be listed in the preloaded symbols.
28326 exclude_expsyms=$lt_exclude_expsyms
28327
28328 # Symbols that must always be exported.
28329 include_expsyms=$lt_include_expsyms
28330
28331 # Commands necessary for linking programs (against libraries) with templates.
28332 prelink_cmds=$lt_prelink_cmds
28333
28334 # Commands necessary for finishing linking programs.
28335 postlink_cmds=$lt_postlink_cmds
28336
28337 # Specify filename containing input files.
28338 file_list_spec=$lt_file_list_spec
28339
28340 # How to hardcode a shared library path into an executable.
28341 hardcode_action=$hardcode_action
28342
28343 # The directories searched by this compiler when creating a shared library.
28344 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
28345
28346 # Dependencies to place before and after the objects being linked to
28347 # create a shared library.
28348 predep_objects=$lt_predep_objects
28349 postdep_objects=$lt_postdep_objects
28350 predeps=$lt_predeps
28351 postdeps=$lt_postdeps
28352
28353 # The library search path used internally by the compiler when linking
28354 # a shared library.
28355 compiler_lib_search_path=$lt_compiler_lib_search_path
28356
28357 # ### END LIBTOOL CONFIG
28358
28359 _LT_EOF
28360
28361     cat <<'_LT_EOF' >> "$cfgfile"
28362
28363 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
28364
28365 # func_munge_path_list VARIABLE PATH
28366 # -----------------------------------
28367 # VARIABLE is name of variable containing _space_ separated list of
28368 # directories to be munged by the contents of PATH, which is string
28369 # having a format:
28370 # "DIR[:DIR]:"
28371 #       string "DIR[ DIR]" will be prepended to VARIABLE
28372 # ":DIR[:DIR]"
28373 #       string "DIR[ DIR]" will be appended to VARIABLE
28374 # "DIRP[:DIRP]::[DIRA:]DIRA"
28375 #       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
28376 #       "DIRA[ DIRA]" will be appended to VARIABLE
28377 # "DIR[:DIR]"
28378 #       VARIABLE will be replaced by "DIR[ DIR]"
28379 func_munge_path_list ()
28380 {
28381     case x$2 in
28382     x)
28383         ;;
28384     *:)
28385         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
28386         ;;
28387     x:*)
28388         eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
28389         ;;
28390     *::*)
28391         eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
28392         eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
28393         ;;
28394     *)
28395         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
28396         ;;
28397     esac
28398 }
28399
28400
28401 # Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
28402 func_cc_basename ()
28403 {
28404     for cc_temp in $*""; do
28405       case $cc_temp in
28406         compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
28407         distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
28408         \-*) ;;
28409         *) break;;
28410       esac
28411     done
28412     func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
28413 }
28414
28415
28416 # ### END FUNCTIONS SHARED WITH CONFIGURE
28417
28418 _LT_EOF
28419
28420   case $host_os in
28421   aix3*)
28422     cat <<\_LT_EOF >> "$cfgfile"
28423 # AIX sometimes has problems with the GCC collect2 program.  For some
28424 # reason, if we set the COLLECT_NAMES environment variable, the problems
28425 # vanish in a puff of smoke.
28426 if test set != "${COLLECT_NAMES+set}"; then
28427   COLLECT_NAMES=
28428   export COLLECT_NAMES
28429 fi
28430 _LT_EOF
28431     ;;
28432   esac
28433
28434
28435 ltmain=$ac_aux_dir/ltmain.sh
28436
28437
28438   # We use sed instead of cat because bash on DJGPP gets confused if
28439   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
28440   # text mode, it properly converts lines to CR/LF.  This bash problem
28441   # is reportedly fixed, but why not run on old versions too?
28442   sed '$q' "$ltmain" >> "$cfgfile" \
28443      || (rm -f "$cfgfile"; exit 1)
28444
28445    mv -f "$cfgfile" "$ofile" ||
28446     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
28447   chmod +x "$ofile"
28448
28449
28450     cat <<_LT_EOF >> "$ofile"
28451
28452 # ### BEGIN LIBTOOL TAG CONFIG: CXX
28453
28454 # The linker used to build libraries.
28455 LD=$lt_LD_CXX
28456
28457 # How to create reloadable object files.
28458 reload_flag=$lt_reload_flag_CXX
28459 reload_cmds=$lt_reload_cmds_CXX
28460
28461 # Commands used to build an old-style archive.
28462 old_archive_cmds=$lt_old_archive_cmds_CXX
28463
28464 # A language specific compiler.
28465 CC=$lt_compiler_CXX
28466
28467 # Is the compiler the GNU compiler?
28468 with_gcc=$GCC_CXX
28469
28470 # Compiler flag to turn off builtin functions.
28471 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
28472
28473 # Additional compiler flags for building library objects.
28474 pic_flag=$lt_lt_prog_compiler_pic_CXX
28475
28476 # How to pass a linker flag through the compiler.
28477 wl=$lt_lt_prog_compiler_wl_CXX
28478
28479 # Compiler flag to prevent dynamic linking.
28480 link_static_flag=$lt_lt_prog_compiler_static_CXX
28481
28482 # Does compiler simultaneously support -c and -o options?
28483 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
28484
28485 # Whether or not to add -lc for building shared libraries.
28486 build_libtool_need_lc=$archive_cmds_need_lc_CXX
28487
28488 # Whether or not to disallow shared libs when runtime libs are static.
28489 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
28490
28491 # Compiler flag to allow reflexive dlopens.
28492 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
28493
28494 # Compiler flag to generate shared objects directly from archives.
28495 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
28496
28497 # Whether the compiler copes with passing no objects directly.
28498 compiler_needs_object=$lt_compiler_needs_object_CXX
28499
28500 # Create an old-style archive from a shared archive.
28501 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
28502
28503 # Create a temporary old-style archive to link instead of a shared archive.
28504 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
28505
28506 # Commands used to build a shared archive.
28507 archive_cmds=$lt_archive_cmds_CXX
28508 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
28509
28510 # Commands used to build a loadable module if different from building
28511 # a shared archive.
28512 module_cmds=$lt_module_cmds_CXX
28513 module_expsym_cmds=$lt_module_expsym_cmds_CXX
28514
28515 # Whether we are building with GNU ld or not.
28516 with_gnu_ld=$lt_with_gnu_ld_CXX
28517
28518 # Flag that allows shared libraries with undefined symbols to be built.
28519 allow_undefined_flag=$lt_allow_undefined_flag_CXX
28520
28521 # Flag that enforces no undefined symbols.
28522 no_undefined_flag=$lt_no_undefined_flag_CXX
28523
28524 # Flag to hardcode \$libdir into a binary during linking.
28525 # This must work even if \$libdir does not exist
28526 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
28527
28528 # Whether we need a single "-rpath" flag with a separated argument.
28529 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
28530
28531 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
28532 # DIR into the resulting binary.
28533 hardcode_direct=$hardcode_direct_CXX
28534
28535 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
28536 # DIR into the resulting binary and the resulting library dependency is
28537 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
28538 # library is relocated.
28539 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
28540
28541 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
28542 # into the resulting binary.
28543 hardcode_minus_L=$hardcode_minus_L_CXX
28544
28545 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
28546 # into the resulting binary.
28547 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
28548
28549 # Set to "yes" if building a shared library automatically hardcodes DIR
28550 # into the library and all subsequent libraries and executables linked
28551 # against it.
28552 hardcode_automatic=$hardcode_automatic_CXX
28553
28554 # Set to yes if linker adds runtime paths of dependent libraries
28555 # to runtime path list.
28556 inherit_rpath=$inherit_rpath_CXX
28557
28558 # Whether libtool must link a program against all its dependency libraries.
28559 link_all_deplibs=$link_all_deplibs_CXX
28560
28561 # Set to "yes" if exported symbols are required.
28562 always_export_symbols=$always_export_symbols_CXX
28563
28564 # The commands to list exported symbols.
28565 export_symbols_cmds=$lt_export_symbols_cmds_CXX
28566
28567 # Symbols that should not be listed in the preloaded symbols.
28568 exclude_expsyms=$lt_exclude_expsyms_CXX
28569
28570 # Symbols that must always be exported.
28571 include_expsyms=$lt_include_expsyms_CXX
28572
28573 # Commands necessary for linking programs (against libraries) with templates.
28574 prelink_cmds=$lt_prelink_cmds_CXX
28575
28576 # Commands necessary for finishing linking programs.
28577 postlink_cmds=$lt_postlink_cmds_CXX
28578
28579 # Specify filename containing input files.
28580 file_list_spec=$lt_file_list_spec_CXX
28581
28582 # How to hardcode a shared library path into an executable.
28583 hardcode_action=$hardcode_action_CXX
28584
28585 # The directories searched by this compiler when creating a shared library.
28586 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
28587
28588 # Dependencies to place before and after the objects being linked to
28589 # create a shared library.
28590 predep_objects=$lt_predep_objects_CXX
28591 postdep_objects=$lt_postdep_objects_CXX
28592 predeps=$lt_predeps_CXX
28593 postdeps=$lt_postdeps_CXX
28594
28595 # The library search path used internally by the compiler when linking
28596 # a shared library.
28597 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
28598
28599 # ### END LIBTOOL TAG CONFIG: CXX
28600 _LT_EOF
28601
28602  ;;
28603     "svn_private_config.h.tmp":C) svn_cf=subversion/svn_private_config.h;
28604                     $SED -e "s/@SVN_DB_HEADER@/$SVN_DB_HEADER/" $svn_cf.tmp > $svn_cf.tmp.new
28605                     cmp -s $svn_cf.tmp.new $svn_cf || mv -f $svn_cf.tmp.new $svn_cf
28606                     rm -f $svn_cf.tmp.new $svn_cf.tmp ;;
28607     "tools/backup/hot-backup.py":F) chmod +x tools/backup/hot-backup.py ;;
28608     "tools/hook-scripts/commit-access-control.pl":F) chmod +x tools/hook-scripts/commit-access-control.pl ;;
28609     "subversion/bindings/swig/perl/native/Makefile.PL":F) chmod +x subversion/bindings/swig/perl/native/Makefile.PL ;;
28610     "packages/solaris/pkginfo":F) chmod +x packages/solaris/pkginfo ;;
28611
28612   esac
28613 done # for ac_tag
28614
28615
28616 as_fn_exit 0
28617 _ACEOF
28618 ac_clean_files=$ac_clean_files_save
28619
28620 test $ac_write_fail = 0 ||
28621   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
28622
28623
28624 # configure is writing to config.log, and then calls config.status.
28625 # config.status does its own redirection, appending to config.log.
28626 # Unfortunately, on DOS this fails, as config.log is still kept open
28627 # by configure, so config.status won't be able to write to it; its
28628 # output is simply discarded.  So we exec the FD to /dev/null,
28629 # effectively closing config.log, so it can be properly (re)opened and
28630 # appended to by config.status.  When coming back to configure, we
28631 # need to make the FD available again.
28632 if test "$no_create" != yes; then
28633   ac_cs_success=:
28634   ac_config_status_args=
28635   test "$silent" = yes &&
28636     ac_config_status_args="$ac_config_status_args --quiet"
28637   exec 5>/dev/null
28638   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
28639   exec 5>>config.log
28640   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
28641   # would make configure fail if this is the last instruction.
28642   $ac_cs_success || as_fn_exit 1
28643 fi
28644 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
28645   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
28646 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
28647 fi
28648
28649
28650 # ==== Print final messages to user ==========================================
28651
28652
28653 if test "$svn_have_berkeley_db" = "no6" && test "$enable_bdb6" != "no"; then
28654   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: We have configured without BDB filesystem support
28655
28656
28657 Berkeley DB 6 was found, but not used.  Please re-run configure (see
28658 ./config.nice) with the '--enable-bdb6' flag to use it,
28659 or explicitly specify '--disable-bdb6' or '--without-berkeley-db'
28660 to silence this warning.
28661
28662 Please note that some versions of Berkeley DB 6+ are under the GNU Affero
28663 General Public License, version 3:
28664 https://oss.oracle.com/pipermail/bdb/2013-June/000056.html
28665
28666 The AGPL-3.0 licence may impose special requirements for making available
28667 source code of server-side software.  The text of the licence is:
28668 https://www.gnu.org/licenses/agpl-3.0.html
28669 http://opensource.org/licenses/AGPL-3.0
28670
28671 The Berkeley DB backend to Subversion is deprecated; see
28672 http://subversion.apache.org/docs/release-notes/1.8#bdb-deprecated
28673
28674 The Subversion developers have not tested Subversion with Berkeley DB 6 for
28675 technical problems or bugs.
28676 " >&5
28677 $as_echo "$as_me: WARNING: We have configured without BDB filesystem support
28678
28679
28680 Berkeley DB 6 was found, but not used.  Please re-run configure (see
28681 ./config.nice) with the '--enable-bdb6' flag to use it,
28682 or explicitly specify '--disable-bdb6' or '--without-berkeley-db'
28683 to silence this warning.
28684
28685 Please note that some versions of Berkeley DB 6+ are under the GNU Affero
28686 General Public License, version 3:
28687 https://oss.oracle.com/pipermail/bdb/2013-June/000056.html
28688
28689 The AGPL-3.0 licence may impose special requirements for making available
28690 source code of server-side software.  The text of the licence is:
28691 https://www.gnu.org/licenses/agpl-3.0.html
28692 http://opensource.org/licenses/AGPL-3.0
28693
28694 The Berkeley DB backend to Subversion is deprecated; see
28695 http://subversion.apache.org/docs/release-notes/1.8#bdb-deprecated
28696
28697 The Subversion developers have not tested Subversion with Berkeley DB 6 for
28698 technical problems or bugs.
28699 " >&2;}
28700 fi