configure revision 269847
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for subversion 1.8.10.
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
18DUALCASE=1; export DUALCASE # for MKS sh
19if 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
26else
27  case `(set -o) 2>/dev/null` in #(
28  *posix*) :
29    set -o posix ;; #(
30  *) :
31     ;;
32esac
33fi
34
35
36as_nl='
37'
38export as_nl
39# Printing a long string crashes Solaris 7 /usr/bin/printf.
40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42as_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.
45if 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 --'
49elif (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'
52else
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'
72fi
73
74# The user is always right.
75if 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  }
81fi
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.)
89IFS=" ""	$as_nl"
90
91# Find who we are.  Look in the path if we contain no directory separator.
92as_myself=
93case $0 in #((
94  *[\\/]* ) as_myself=$0 ;;
95  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96for as_dir in $PATH
97do
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
102IFS=$as_save_IFS
103
104     ;;
105esac
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.
108if test "x$as_myself" = x; then
109  as_myself=$0
110fi
111if test ! -f "$as_myself"; then
112  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113  exit 1
114fi
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.
120for as_var in BASH_ENV ENV MAIL MAILPATH
121do eval test x\${$as_var+set} = xset \
122  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123done
124PS1='$ '
125PS2='> '
126PS4='+ '
127
128# NLS nuisances.
129LC_ALL=C
130export LC_ALL
131LANGUAGE=C
132export 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.
145BASH_ENV=/dev/null
146ENV=/dev/null
147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148case $- in # ((((
149  *v*x* | *x*v* ) as_opts=-vx ;;
150  *v* ) as_opts=-v ;;
151  *x* ) as_opts=-x ;;
152  * ) as_opts= ;;
153esac
154exec $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
158as_fn_exit 255
159  fi
160  # We don't want this to propagate to other subprocesses.
161          { _as_can_reexec=; unset _as_can_reexec;}
162if 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
170else
171  case \`(set -o) 2>/dev/null\` in #(
172  *posix*) :
173    set -o posix ;; #(
174  *) :
175     ;;
176esac
177fi
178"
179  as_required="as_fn_return () { (exit \$1); }
180as_fn_success () { as_fn_return 0; }
181as_fn_failure () { as_fn_return 1; }
182as_fn_ret_success () { return 0; }
183as_fn_ret_failure () { return 1; }
184
185exitcode=0
186as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192else
193  exitcode=1; echo positional parameters were not saved.
194fi
195test x\$exitcode = x0 || exit 1
196test -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
201test \$(( 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
212else
213  as_have_required=no
214fi
215  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217else
218  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219as_found=false
220for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221do
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
235fi
236fi
237	   done;;
238       esac
239  as_found=false
240done
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
244fi; }
245IFS=$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.
254BASH_ENV=/dev/null
255ENV=/dev/null
256(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257case $- in # ((((
258  *v*x* | *x*v* ) as_opts=-vx ;;
259  *v* ) as_opts=-v ;;
260  *x* ) as_opts=-x ;;
261  * ) as_opts= ;;
262esac
263exec $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
267exit 255
268fi
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
284fi
285fi
286fi
287SHELL=${CONFIG_SHELL-/bin/sh}
288export SHELL
289# Unset more variables known to interfere with behavior of common tools.
290CLICOLOR_FORCE= GREP_OPTIONS=
291unset CLICOLOR_FORCE GREP_OPTIONS
292
293## --------------------- ##
294## M4sh Shell Functions. ##
295## --------------------- ##
296# as_fn_unset VAR
297# ---------------
298# Portably unset VAR.
299as_fn_unset ()
300{
301  { eval $1=; unset $1;}
302}
303as_unset=as_fn_unset
304
305# as_fn_set_status STATUS
306# -----------------------
307# Set $? to STATUS, without forking.
308as_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.
316as_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.
326as_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.
374as_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.
384if (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  }'
389else
390  as_fn_append ()
391  {
392    eval $1=\$$1\$2
393  }
394fi # 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.
401if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
402  eval 'as_fn_arith ()
403  {
404    as_val=$(( $* ))
405  }'
406else
407  as_fn_arith ()
408  {
409    as_val=`expr "$@" || test $? -eq 1`
410  }
411fi # 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.
419as_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
430if expr a : '\(a\)' >/dev/null 2>&1 &&
431   test "X`expr 00001 : '.*\(...\)'`" = X001; then
432  as_expr=expr
433else
434  as_expr=false
435fi
436
437if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
438  as_basename=basename
439else
440  as_basename=false
441fi
442
443if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
444  as_dirname=dirname
445else
446  as_dirname=false
447fi
448
449as_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.
469as_cr_letters='abcdefghijklmnopqrstuvwxyz'
470as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471as_cr_Letters=$as_cr_letters$as_cr_LETTERS
472as_cr_digits='0123456789'
473as_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
511ECHO_C= ECHO_N= ECHO_T=
512case `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';;
522esac
523
524rm -f conf$$ conf$$.exe conf$$.file
525if test -d conf$$.dir; then
526  rm -f conf$$.dir/conf$$.file
527else
528  rm -f conf$$.dir
529  mkdir conf$$.dir 2>/dev/null
530fi
531if (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
545else
546  as_ln_s='cp -pR'
547fi
548rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549rmdir conf$$.dir 2>/dev/null
550
551if mkdir -p . 2>/dev/null; then
552  as_mkdir_p='mkdir -p "$as_dir"'
553else
554  test -d ./-p && rmdir ./-p
555  as_mkdir_p=false
556fi
557
558as_test_x='test -x'
559as_executable_p=as_fn_executable_p
560
561# Sed expression to map a string onto a valid CPP name.
562as_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.
565as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
566
567SHELL=${CONFIG_SHELL-/bin/sh}
568
569
570test -n "$DJDIR" || exec 7<&0 </dev/null
571exec 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.
576ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
577
578#
579# Initializations.
580#
581ac_default_prefix=/usr/local
582ac_clean_files=
583ac_config_libobj_dir=.
584LIBOBJS=
585cross_compiling=no
586subdirs=
587MFLAGS=
588MAKEFLAGS=
589
590# Identity of this package.
591PACKAGE_NAME='subversion'
592PACKAGE_TARNAME='subversion'
593PACKAGE_VERSION='1.8.10'
594PACKAGE_STRING='subversion 1.8.10'
595PACKAGE_BUGREPORT='http://subversion.apache.org/'
596PACKAGE_URL=''
597
598ac_unique_file="subversion/include/svn_types.h"
599# Factoring default headers for most tests.
600ac_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
635ac_subst_vars='LTLIBOBJS
636SVN_CONFIG_SCRIPT_FILES
637INCLUDE_OUTPUTS
638SWIG_CPPFLAGS
639JAVAHL_COMPAT_TESTS_TARGET
640JAVAHL_TESTS_TARGET
641JAVA_CLASSPATH
642LT_CXX_LIBADD
643FIX_JAVAHL_LIB
644JAVAHL_OBJDIR
645INSTALL_EXTRA_JAVAHL_LIB
646SVN_FS_LIB_LINK
647SVN_FS_LIB_INSTALL_DEPS
648SVN_FS_LIB_DEPS
649SVN_RA_LIB_LINK
650SVN_RA_LIB_INSTALL_DEPS
651SVN_RA_LIB_DEPS
652CTYPESGEN
653SWIG_RB_TEST_VERBOSE
654SWIG_RB_SITE_ARCH_DIR
655SWIG_RB_SITE_LIB_DIR
656SWIG_RB_COMPILE
657SWIG_RB_INCLUDES
658SWIG_RB_LIBS
659SWIG_RB_LINK
660SWIG_PL_INCLUDES
661SWIG_PY_LIBS
662SWIG_PY_LINK
663SWIG_PY_COMPILE
664SWIG_PY_INCLUDES
665SWIG
666RUBY_TEENY
667RUBY_MINOR
668RUBY_MAJOR
669RDOC
670RUBY
671PERL
672JNI_INCLUDES
673JAR
674JAVAH
675JAVADOC
676JAVAC_FLAGS
677JAVAC
678JAVA
679JDK
680PYTHON
681MOD_ACTIVATION
682SVN_ZLIB_LIBS
683SVN_ZLIB_INCLUDES
684libsvn_wc_LDFLAGS
685libsvn_subr_LDFLAGS
686libsvn_repos_LDFLAGS
687libsvn_ra_svn_LDFLAGS
688libsvn_ra_serf_LDFLAGS
689libsvn_ra_local_LDFLAGS
690libsvn_ra_LDFLAGS
691libsvn_fs_util_LDFLAGS
692libsvn_fs_fs_LDFLAGS
693libsvn_fs_base_LDFLAGS
694libsvn_fs_LDFLAGS
695libsvn_diff_LDFLAGS
696libsvn_delta_LDFLAGS
697libsvn_client_LDFLAGS
698libsvn_auth_kwallet_LDFLAGS
699libsvn_auth_gnome_keyring_LDFLAGS
700LIBOBJS
701BDB_TEST_PROGRAMS
702BDB_TEST_DEPS
703INSTALL_RULES
704INSTALL_STATIC_RULES
705BUILD_RULES
706SVN_KWALLET_LIBS
707SVN_KWALLET_INCLUDES
708KDE4_CONFIG
709SVN_MAGIC_LIBS
710SVN_MAGIC_INCLUDES
711MSGFMTFLAGS
712NO_GETTEXT_CODESET
713GETTEXT_CODESET
714XGETTEXT
715MSGMERGE
716MSGFMT
717SVN_GNOME_KEYRING_LIBS
718SVN_GNOME_KEYRING_INCLUDES
719SVN_HAVE_GPG_AGENT
720SVN_SASL_LIBS
721SVN_SASL_INCLUDES
722SVN_DB_LIBS
723SVN_DB_INCLUDES
724SVN_XML_LIBS
725SVN_XML_INCLUDES
726DOXYGEN
727TRANG
728LT_NO_UNDEFINED
729TRANSFORM_LIBTOOL_SCRIPTS
730LT_LDFLAGS
731LT_CFLAGS
732SVN_LIBTOOL
733CXXCPP
734OTOOL64
735OTOOL
736LIPO
737NMEDIT
738DSYMUTIL
739MANIFEST_TOOL
740AWK
741RANLIB
742STRIP
743ac_ct_AR
744AR
745DLLTOOL
746OBJDUMP
747NM
748ac_ct_DUMPBIN
749DUMPBIN
750LD
751FGREP
752LIBTOOL
753SVN_BINDIR
754SVN_SQLITE_LIBS
755SVN_SQLITE_INCLUDES
756INSTALL_APACHE_MODS
757APACHE_LIBEXECDIR
758APACHE_INCLUDES
759APACHE_LDFLAGS
760APXS
761SVN_APR_MEMCACHE_LIBS
762SVN_APR_MEMCACHE_INCLUDES
763SVN_SERF_LIBS
764SVN_SERF_INCLUDES
765PKG_CONFIG
766SVN_LT_SOVERSION
767SVN_APRUTIL_LIBS
768SVN_APRUTIL_CONFIG
769SVN_APRUTIL_INCLUDES
770SVN_APR_SHLIB_PATH_VAR
771SVN_APR_LIBS
772SVN_APR_INCLUDES
773SVN_APR_CONFIG
774MKDIR
775INSTALL_DATA
776INSTALL_SCRIPT
777INSTALL_PROGRAM
778LN_S
779EGREP
780GREP
781target_os
782target_vendor
783target_cpu
784target
785host_os
786host_vendor
787host_cpu
788host
789build_os
790build_vendor
791build_cpu
792build
793SED
794CPP
795CXXMAINTAINERFLAGS
796CXXMODEFLAGS
797ac_ct_CXX
798CXXFLAGS
799CXX
800CMAINTAINERFLAGS
801CMODEFLAGS
802OBJEXT
803EXEEXT
804ac_ct_CC
805CPPFLAGS
806LDFLAGS
807CFLAGS
808CC
809SWIG_LDFLAGS
810canonicalized_srcdir
811abs_builddir
812abs_srcdir
813target_alias
814host_alias
815build_alias
816LIBS
817ECHO_T
818ECHO_N
819ECHO_C
820DEFS
821mandir
822localedir
823libdir
824psdir
825pdfdir
826dvidir
827htmldir
828infodir
829docdir
830oldincludedir
831includedir
832localstatedir
833sharedstatedir
834sysconfdir
835datadir
836datarootdir
837libexecdir
838sbindir
839bindir
840program_transform_name
841prefix
842exec_prefix
843PACKAGE_URL
844PACKAGE_BUGREPORT
845PACKAGE_STRING
846PACKAGE_VERSION
847PACKAGE_TARNAME
848PACKAGE_NAME
849PATH_SEPARATOR
850SHELL'
851ac_subst_files=''
852ac_user_opts='
853enable_option_checking
854with_apr
855with_apr_util
856with_serf
857with_apr_memcache
858with_apxs
859with_apache_libexecdir
860with_sqlite
861enable_sqlite_compatibility_version
862enable_shared
863enable_static
864with_pic
865enable_fast_install
866with_gnu_ld
867with_sysroot
868enable_libtool_lock
869enable_experimental_libtool
870enable_all_static
871enable_local_library_preloading
872with_trang
873with_doxygen
874with_expat
875with_berkeley_db
876enable_bdb6
877with_sasl
878enable_keychain
879with_gpg_agent
880with_gnome_keyring
881enable_ev2_impl
882enable_nls
883with_libmagic
884with_kwallet
885enable_plaintext_password_storage
886with_openssl
887enable_debug
888enable_optimize
889enable_disallowing_of_undefined_references
890enable_maintainer_mode
891enable_full_version_match
892with_editor
893with_zlib
894enable_mod_activation
895enable_gcov
896enable_gprof
897with_jdk
898with_jikes
899with_swig
900with_ruby_sitedir
901with_ruby_test_verbose
902with_ctypesgen
903enable_runtime_module_search
904enable_javahl
905with_junit
906'
907      ac_precious_vars='build_alias
908host_alias
909target_alias
910CC
911CFLAGS
912LDFLAGS
913LIBS
914CPPFLAGS
915CXX
916CXXFLAGS
917CCC
918CPP
919CXXCPP'
920
921
922# Initialize some variables set by options.
923ac_init_help=
924ac_init_version=false
925ac_unrecognized_opts=
926ac_unrecognized_sep=
927# The variables have the same names as the options, with
928# dashes changed to underlines.
929cache_file=/dev/null
930exec_prefix=NONE
931no_create=
932no_recursion=
933prefix=NONE
934program_prefix=NONE
935program_suffix=NONE
936program_transform_name=s,x,x,
937silent=
938site=
939srcdir=
940verbose=
941x_includes=NONE
942x_libraries=NONE
943
944# Installation directory options.
945# These are left unexpanded so users can "make install exec_prefix=/foo"
946# and all the variables that are supposed to be based on exec_prefix
947# by default will actually change.
948# Use braces instead of parens because sh, perl, etc. also accept them.
949# (The list follows the same order as the GNU Coding Standards.)
950bindir='${exec_prefix}/bin'
951sbindir='${exec_prefix}/sbin'
952libexecdir='${exec_prefix}/libexec'
953datarootdir='${prefix}/share'
954datadir='${datarootdir}'
955sysconfdir='${prefix}/etc'
956sharedstatedir='${prefix}/com'
957localstatedir='${prefix}/var'
958includedir='${prefix}/include'
959oldincludedir='/usr/include'
960docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
961infodir='${datarootdir}/info'
962htmldir='${docdir}'
963dvidir='${docdir}'
964pdfdir='${docdir}'
965psdir='${docdir}'
966libdir='${exec_prefix}/lib'
967localedir='${datarootdir}/locale'
968mandir='${datarootdir}/man'
969
970ac_prev=
971ac_dashdash=
972for ac_option
973do
974  # If the previous option needs an argument, assign it.
975  if test -n "$ac_prev"; then
976    eval $ac_prev=\$ac_option
977    ac_prev=
978    continue
979  fi
980
981  case $ac_option in
982  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
983  *=)   ac_optarg= ;;
984  *)    ac_optarg=yes ;;
985  esac
986
987  # Accept the important Cygnus configure options, so we can diagnose typos.
988
989  case $ac_dashdash$ac_option in
990  --)
991    ac_dashdash=yes ;;
992
993  -bindir | --bindir | --bindi | --bind | --bin | --bi)
994    ac_prev=bindir ;;
995  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
996    bindir=$ac_optarg ;;
997
998  -build | --build | --buil | --bui | --bu)
999    ac_prev=build_alias ;;
1000  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1001    build_alias=$ac_optarg ;;
1002
1003  -cache-file | --cache-file | --cache-fil | --cache-fi \
1004  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1005    ac_prev=cache_file ;;
1006  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1007  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1008    cache_file=$ac_optarg ;;
1009
1010  --config-cache | -C)
1011    cache_file=config.cache ;;
1012
1013  -datadir | --datadir | --datadi | --datad)
1014    ac_prev=datadir ;;
1015  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1016    datadir=$ac_optarg ;;
1017
1018  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1019  | --dataroo | --dataro | --datar)
1020    ac_prev=datarootdir ;;
1021  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1022  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1023    datarootdir=$ac_optarg ;;
1024
1025  -disable-* | --disable-*)
1026    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1027    # Reject names that are not valid shell variable names.
1028    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1029      as_fn_error $? "invalid feature name: $ac_useropt"
1030    ac_useropt_orig=$ac_useropt
1031    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1032    case $ac_user_opts in
1033      *"
1034"enable_$ac_useropt"
1035"*) ;;
1036      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1037	 ac_unrecognized_sep=', ';;
1038    esac
1039    eval enable_$ac_useropt=no ;;
1040
1041  -docdir | --docdir | --docdi | --doc | --do)
1042    ac_prev=docdir ;;
1043  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1044    docdir=$ac_optarg ;;
1045
1046  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1047    ac_prev=dvidir ;;
1048  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1049    dvidir=$ac_optarg ;;
1050
1051  -enable-* | --enable-*)
1052    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1053    # Reject names that are not valid shell variable names.
1054    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1055      as_fn_error $? "invalid feature name: $ac_useropt"
1056    ac_useropt_orig=$ac_useropt
1057    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1058    case $ac_user_opts in
1059      *"
1060"enable_$ac_useropt"
1061"*) ;;
1062      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1063	 ac_unrecognized_sep=', ';;
1064    esac
1065    eval enable_$ac_useropt=\$ac_optarg ;;
1066
1067  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1068  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1069  | --exec | --exe | --ex)
1070    ac_prev=exec_prefix ;;
1071  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1072  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1073  | --exec=* | --exe=* | --ex=*)
1074    exec_prefix=$ac_optarg ;;
1075
1076  -gas | --gas | --ga | --g)
1077    # Obsolete; use --with-gas.
1078    with_gas=yes ;;
1079
1080  -help | --help | --hel | --he | -h)
1081    ac_init_help=long ;;
1082  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1083    ac_init_help=recursive ;;
1084  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1085    ac_init_help=short ;;
1086
1087  -host | --host | --hos | --ho)
1088    ac_prev=host_alias ;;
1089  -host=* | --host=* | --hos=* | --ho=*)
1090    host_alias=$ac_optarg ;;
1091
1092  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1093    ac_prev=htmldir ;;
1094  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1095  | --ht=*)
1096    htmldir=$ac_optarg ;;
1097
1098  -includedir | --includedir | --includedi | --included | --include \
1099  | --includ | --inclu | --incl | --inc)
1100    ac_prev=includedir ;;
1101  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1102  | --includ=* | --inclu=* | --incl=* | --inc=*)
1103    includedir=$ac_optarg ;;
1104
1105  -infodir | --infodir | --infodi | --infod | --info | --inf)
1106    ac_prev=infodir ;;
1107  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1108    infodir=$ac_optarg ;;
1109
1110  -libdir | --libdir | --libdi | --libd)
1111    ac_prev=libdir ;;
1112  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1113    libdir=$ac_optarg ;;
1114
1115  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1116  | --libexe | --libex | --libe)
1117    ac_prev=libexecdir ;;
1118  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1119  | --libexe=* | --libex=* | --libe=*)
1120    libexecdir=$ac_optarg ;;
1121
1122  -localedir | --localedir | --localedi | --localed | --locale)
1123    ac_prev=localedir ;;
1124  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1125    localedir=$ac_optarg ;;
1126
1127  -localstatedir | --localstatedir | --localstatedi | --localstated \
1128  | --localstate | --localstat | --localsta | --localst | --locals)
1129    ac_prev=localstatedir ;;
1130  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1131  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1132    localstatedir=$ac_optarg ;;
1133
1134  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1135    ac_prev=mandir ;;
1136  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1137    mandir=$ac_optarg ;;
1138
1139  -nfp | --nfp | --nf)
1140    # Obsolete; use --without-fp.
1141    with_fp=no ;;
1142
1143  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1144  | --no-cr | --no-c | -n)
1145    no_create=yes ;;
1146
1147  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1148  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1149    no_recursion=yes ;;
1150
1151  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1152  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1153  | --oldin | --oldi | --old | --ol | --o)
1154    ac_prev=oldincludedir ;;
1155  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1156  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1157  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1158    oldincludedir=$ac_optarg ;;
1159
1160  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1161    ac_prev=prefix ;;
1162  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1163    prefix=$ac_optarg ;;
1164
1165  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1166  | --program-pre | --program-pr | --program-p)
1167    ac_prev=program_prefix ;;
1168  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1169  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1170    program_prefix=$ac_optarg ;;
1171
1172  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1173  | --program-suf | --program-su | --program-s)
1174    ac_prev=program_suffix ;;
1175  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1176  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1177    program_suffix=$ac_optarg ;;
1178
1179  -program-transform-name | --program-transform-name \
1180  | --program-transform-nam | --program-transform-na \
1181  | --program-transform-n | --program-transform- \
1182  | --program-transform | --program-transfor \
1183  | --program-transfo | --program-transf \
1184  | --program-trans | --program-tran \
1185  | --progr-tra | --program-tr | --program-t)
1186    ac_prev=program_transform_name ;;
1187  -program-transform-name=* | --program-transform-name=* \
1188  | --program-transform-nam=* | --program-transform-na=* \
1189  | --program-transform-n=* | --program-transform-=* \
1190  | --program-transform=* | --program-transfor=* \
1191  | --program-transfo=* | --program-transf=* \
1192  | --program-trans=* | --program-tran=* \
1193  | --progr-tra=* | --program-tr=* | --program-t=*)
1194    program_transform_name=$ac_optarg ;;
1195
1196  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1197    ac_prev=pdfdir ;;
1198  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1199    pdfdir=$ac_optarg ;;
1200
1201  -psdir | --psdir | --psdi | --psd | --ps)
1202    ac_prev=psdir ;;
1203  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1204    psdir=$ac_optarg ;;
1205
1206  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1207  | -silent | --silent | --silen | --sile | --sil)
1208    silent=yes ;;
1209
1210  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1211    ac_prev=sbindir ;;
1212  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1213  | --sbi=* | --sb=*)
1214    sbindir=$ac_optarg ;;
1215
1216  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1217  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1218  | --sharedst | --shareds | --shared | --share | --shar \
1219  | --sha | --sh)
1220    ac_prev=sharedstatedir ;;
1221  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1222  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1223  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1224  | --sha=* | --sh=*)
1225    sharedstatedir=$ac_optarg ;;
1226
1227  -site | --site | --sit)
1228    ac_prev=site ;;
1229  -site=* | --site=* | --sit=*)
1230    site=$ac_optarg ;;
1231
1232  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1233    ac_prev=srcdir ;;
1234  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1235    srcdir=$ac_optarg ;;
1236
1237  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1238  | --syscon | --sysco | --sysc | --sys | --sy)
1239    ac_prev=sysconfdir ;;
1240  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1241  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1242    sysconfdir=$ac_optarg ;;
1243
1244  -target | --target | --targe | --targ | --tar | --ta | --t)
1245    ac_prev=target_alias ;;
1246  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1247    target_alias=$ac_optarg ;;
1248
1249  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1250    verbose=yes ;;
1251
1252  -version | --version | --versio | --versi | --vers | -V)
1253    ac_init_version=: ;;
1254
1255  -with-* | --with-*)
1256    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1257    # Reject names that are not valid shell variable names.
1258    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1259      as_fn_error $? "invalid package name: $ac_useropt"
1260    ac_useropt_orig=$ac_useropt
1261    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1262    case $ac_user_opts in
1263      *"
1264"with_$ac_useropt"
1265"*) ;;
1266      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1267	 ac_unrecognized_sep=', ';;
1268    esac
1269    eval with_$ac_useropt=\$ac_optarg ;;
1270
1271  -without-* | --without-*)
1272    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1273    # Reject names that are not valid shell variable names.
1274    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1275      as_fn_error $? "invalid package name: $ac_useropt"
1276    ac_useropt_orig=$ac_useropt
1277    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1278    case $ac_user_opts in
1279      *"
1280"with_$ac_useropt"
1281"*) ;;
1282      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1283	 ac_unrecognized_sep=', ';;
1284    esac
1285    eval with_$ac_useropt=no ;;
1286
1287  --x)
1288    # Obsolete; use --with-x.
1289    with_x=yes ;;
1290
1291  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1292  | --x-incl | --x-inc | --x-in | --x-i)
1293    ac_prev=x_includes ;;
1294  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1295  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1296    x_includes=$ac_optarg ;;
1297
1298  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1299  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1300    ac_prev=x_libraries ;;
1301  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1302  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1303    x_libraries=$ac_optarg ;;
1304
1305  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1306Try \`$0 --help' for more information"
1307    ;;
1308
1309  *=*)
1310    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1311    # Reject names that are not valid shell variable names.
1312    case $ac_envvar in #(
1313      '' | [0-9]* | *[!_$as_cr_alnum]* )
1314      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1315    esac
1316    eval $ac_envvar=\$ac_optarg
1317    export $ac_envvar ;;
1318
1319  *)
1320    # FIXME: should be removed in autoconf 3.0.
1321    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1322    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1323      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1324    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1325    ;;
1326
1327  esac
1328done
1329
1330if test -n "$ac_prev"; then
1331  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1332  as_fn_error $? "missing argument to $ac_option"
1333fi
1334
1335if test -n "$ac_unrecognized_opts"; then
1336  case $enable_option_checking in
1337    no) ;;
1338    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1339    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1340  esac
1341fi
1342
1343# Check all directory arguments for consistency.
1344for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1345		datadir sysconfdir sharedstatedir localstatedir includedir \
1346		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1347		libdir localedir mandir
1348do
1349  eval ac_val=\$$ac_var
1350  # Remove trailing slashes.
1351  case $ac_val in
1352    */ )
1353      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1354      eval $ac_var=\$ac_val;;
1355  esac
1356  # Be sure to have absolute directory names.
1357  case $ac_val in
1358    [\\/$]* | ?:[\\/]* )  continue;;
1359    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1360  esac
1361  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1362done
1363
1364# There might be people who depend on the old broken behavior: `$host'
1365# used to hold the argument of --host etc.
1366# FIXME: To remove some day.
1367build=$build_alias
1368host=$host_alias
1369target=$target_alias
1370
1371# FIXME: To remove some day.
1372if test "x$host_alias" != x; then
1373  if test "x$build_alias" = x; then
1374    cross_compiling=maybe
1375  elif test "x$build_alias" != "x$host_alias"; then
1376    cross_compiling=yes
1377  fi
1378fi
1379
1380ac_tool_prefix=
1381test -n "$host_alias" && ac_tool_prefix=$host_alias-
1382
1383test "$silent" = yes && exec 6>/dev/null
1384
1385
1386ac_pwd=`pwd` && test -n "$ac_pwd" &&
1387ac_ls_di=`ls -di .` &&
1388ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1389  as_fn_error $? "working directory cannot be determined"
1390test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1391  as_fn_error $? "pwd does not report name of working directory"
1392
1393
1394# Find the source files, if location was not specified.
1395if test -z "$srcdir"; then
1396  ac_srcdir_defaulted=yes
1397  # Try the directory containing this script, then the parent directory.
1398  ac_confdir=`$as_dirname -- "$as_myself" ||
1399$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1400	 X"$as_myself" : 'X\(//\)[^/]' \| \
1401	 X"$as_myself" : 'X\(//\)$' \| \
1402	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1403$as_echo X"$as_myself" |
1404    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1405	    s//\1/
1406	    q
1407	  }
1408	  /^X\(\/\/\)[^/].*/{
1409	    s//\1/
1410	    q
1411	  }
1412	  /^X\(\/\/\)$/{
1413	    s//\1/
1414	    q
1415	  }
1416	  /^X\(\/\).*/{
1417	    s//\1/
1418	    q
1419	  }
1420	  s/.*/./; q'`
1421  srcdir=$ac_confdir
1422  if test ! -r "$srcdir/$ac_unique_file"; then
1423    srcdir=..
1424  fi
1425else
1426  ac_srcdir_defaulted=no
1427fi
1428if test ! -r "$srcdir/$ac_unique_file"; then
1429  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1430  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1431fi
1432ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1433ac_abs_confdir=`(
1434	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1435	pwd)`
1436# When building in place, set srcdir=.
1437if test "$ac_abs_confdir" = "$ac_pwd"; then
1438  srcdir=.
1439fi
1440# Remove unnecessary trailing slashes from srcdir.
1441# Double slashes in file names in object file debugging info
1442# mess up M-x gdb in Emacs.
1443case $srcdir in
1444*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1445esac
1446for ac_var in $ac_precious_vars; do
1447  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1448  eval ac_env_${ac_var}_value=\$${ac_var}
1449  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1450  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1451done
1452
1453#
1454# Report the --help message.
1455#
1456if test "$ac_init_help" = "long"; then
1457  # Omit some internal or obsolete options to make the list less imposing.
1458  # This message is too long to be a string in the A/UX 3.1 sh.
1459  cat <<_ACEOF
1460\`configure' configures subversion 1.8.10 to adapt to many kinds of systems.
1461
1462Usage: $0 [OPTION]... [VAR=VALUE]...
1463
1464To assign environment variables (e.g., CC, CFLAGS...), specify them as
1465VAR=VALUE.  See below for descriptions of some of the useful variables.
1466
1467Defaults for the options are specified in brackets.
1468
1469Configuration:
1470  -h, --help              display this help and exit
1471      --help=short        display options specific to this package
1472      --help=recursive    display the short help of all the included packages
1473  -V, --version           display version information and exit
1474  -q, --quiet, --silent   do not print \`checking ...' messages
1475      --cache-file=FILE   cache test results in FILE [disabled]
1476  -C, --config-cache      alias for \`--cache-file=config.cache'
1477  -n, --no-create         do not create output files
1478      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1479
1480Installation directories:
1481  --prefix=PREFIX         install architecture-independent files in PREFIX
1482                          [$ac_default_prefix]
1483  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1484                          [PREFIX]
1485
1486By default, \`make install' will install all the files in
1487\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1488an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1489for instance \`--prefix=\$HOME'.
1490
1491For better control, use the options below.
1492
1493Fine tuning of the installation directories:
1494  --bindir=DIR            user executables [EPREFIX/bin]
1495  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1496  --libexecdir=DIR        program executables [EPREFIX/libexec]
1497  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1498  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1499  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1500  --libdir=DIR            object code libraries [EPREFIX/lib]
1501  --includedir=DIR        C header files [PREFIX/include]
1502  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1503  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1504  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1505  --infodir=DIR           info documentation [DATAROOTDIR/info]
1506  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1507  --mandir=DIR            man documentation [DATAROOTDIR/man]
1508  --docdir=DIR            documentation root [DATAROOTDIR/doc/subversion]
1509  --htmldir=DIR           html documentation [DOCDIR]
1510  --dvidir=DIR            dvi documentation [DOCDIR]
1511  --pdfdir=DIR            pdf documentation [DOCDIR]
1512  --psdir=DIR             ps documentation [DOCDIR]
1513_ACEOF
1514
1515  cat <<\_ACEOF
1516
1517System types:
1518  --build=BUILD     configure for building on BUILD [guessed]
1519  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1520  --target=TARGET   configure for building compilers for TARGET [HOST]
1521_ACEOF
1522fi
1523
1524if test -n "$ac_init_help"; then
1525  case $ac_init_help in
1526     short | recursive ) echo "Configuration of subversion 1.8.10:";;
1527   esac
1528  cat <<\_ACEOF
1529
1530Optional Features:
1531  --disable-option-checking  ignore unrecognized --enable/--with options
1532  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1533  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1534  --enable-sqlite-compatibility-version=X.Y.Z
1535                          Allow binary to run against SQLite as old as ARG
1536  --enable-shared[=PKGS]  build shared libraries [default=yes]
1537  --enable-static[=PKGS]  build static libraries [default=yes]
1538  --enable-fast-install[=PKGS]
1539                          optimize for fast installation [default=yes]
1540  --disable-libtool-lock  avoid locking (might break parallel builds)
1541  --enable-experimental-libtool
1542                          Use APR's libtool
1543  --enable-static         Build static libraries
1544  --enable-shared         Build shared libraries
1545  --enable-all-static     Build completely static (standalone) binaries.
1546  --enable-local-library-preloading
1547                          Enable preloading of locally built libraries in
1548                          locally built executables. This may be necessary for
1549                          testing prior to installation on some platforms. It
1550                          does not work on some platforms (Darwin, OpenBSD,
1551                          ...).
1552  --enable-bdb6           Allow building against BDB 6+. See
1553                          --with-berkeley-db for specifying the location of
1554                          the Berkeley DB installation. Using BDB 6 will fail
1555                          if this option is not used.
1556  --disable-keychain      Disable use of Mac OS KeyChain for auth credentials
1557  --enable-ev2-impl       Use Ev2 implementations, where available
1558                          [EXPERIMENTAL]
1559  --disable-nls           Disable gettext functionality
1560  --disable-plaintext-password-storage
1561                          Disable on-disk caching of plaintext passwords and
1562                          passphrases. (Leaving this functionality enabled
1563                          will not force Subversion to store passwords in
1564                          plaintext, but does permit users to explicitly allow
1565                          that behavior via runtime configuration.)
1566  --enable-debug          Turn on debugging
1567  --enable-optimize       Turn on optimizations
1568  --enable-disallowing-of-undefined-references
1569                          Use -Wl,--no-undefined flag during linking of some
1570                          libraries to disallow undefined references
1571  --enable-maintainer-mode
1572                          Turn on debugging and very strict compile-time
1573                          warnings
1574  --disable-full-version-match
1575                          Disable the full version match rules when checking
1576                          Subversion library compatibility.
1577  --enable-mod-activation Enable mod_dav_svn in httpd.conf
1578  --enable-gcov           Turn on gcov coverage testing (GCC only).
1579  --enable-gprof          Produce gprof profiling data in 'gmon.out' (GCC
1580                          only).
1581  --enable-runtime-module-search
1582                          Turn on dynamic loading of RA/FS libraries including
1583                          third-party FS libraries
1584  --enable-javahl         Enable compilation of Java high-level bindings
1585                          (requires C++)
1586
1587Optional Packages:
1588  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1589  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1590  --with-apr=PATH         prefix for installed APR, path to APR build tree,
1591                          or the full path to apr-config
1592  --with-apr-util=PATH    prefix for installed APU, path to APU build tree,
1593                          or the full path to apu-config
1594  --with-serf=PREFIX      Serf HTTP client library (enabled by default if
1595                          found)
1596  --with-apr_memcache=PREFIX
1597                          Standalone apr_memcache client library
1598  --with-apxs[=FILE]      Build shared Apache modules. FILE is the optional
1599                          pathname to the Apache apxs tool; defaults to
1600                          "apxs".
1601  --with-apache-libexecdir[=PATH]
1602                          Install Apache modules to Apache's configured
1603                          modules directory instead of LIBEXECDIR; if PATH is
1604                          given, install to PATH.
1605  --with-sqlite=PREFIX    Use installed SQLite library or amalgamation file.
1606  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1607                          both]
1608  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1609  --with-sysroot=DIR Search for dependent libraries within DIR
1610                        (or the compiler's sysroot if not specified).
1611  --with-trang=PATH       Specify the command to run the trang schema
1612                          converter
1613  --with-doxygen=PATH     Specify the command to run doxygen
1614  --with-expat=INCLUDES:LIB_SEARCH_DIRS:LIBS
1615                          Specify location of Expat
1616  --with-berkeley-db[=HEADER:INCLUDES:LIB_SEARCH_DIRS:LIBS]
1617                          The Subversion Berkeley DB based filesystem library
1618                          requires Berkeley DB $db_version or $db_alt_version.
1619                          If you specify `--without-berkeley-db', that library
1620                          will not be built. If you omit the argument of this
1621                          option completely, the configure script will use
1622                          Berkeley DB used by APR-UTIL.
1623  --with-sasl=PATH        Compile with libsasl2 in PATH
1624  --without-gpg-agent     Disable support for GPG-Agent
1625  --with-gnome-keyring    Enable use of GNOME Keyring for auth credentials
1626                          (enabled by default if found)
1627  --with-libmagic=PREFIX  libmagic filetype detection library
1628  --with-kwallet[=PATH]   Enable use of KWallet (KDE 4) for auth credentials
1629  --with-openssl          This option does NOT affect the Subversion build
1630                          process in any way. It tells an integrated Serf HTTP
1631                          client library build process where to locate the
1632                          OpenSSL library when (and only when) building Serf
1633                          as an integrated part of the Subversion build
1634                          process. When linking to a previously installed
1635                          version of Serf instead, you do not need to use this
1636                          option.
1637  --with-editor=PATH      Specify a default editor for the subversion client.
1638  --with-zlib=PREFIX      zlib compression library
1639  --with-jdk=PATH         Try to use 'PATH/include' to find the JNI headers.
1640                          If PATH is not specified, look for a Java
1641                          Development Kit at JAVA_HOME.
1642  --with-jikes=PATH       Specify the path to a jikes binary to use it as your
1643                          Java compiler. The default is to look for jikes
1644                          (PATH optional). This behavior can be switched off
1645                          by supplying 'no'.
1646  --with-swig=PATH        Try to use 'PATH/bin/swig' to build the swig
1647                          bindings. If PATH is not specified, look for a
1648                          'swig' binary in your PATH.
1649  --with-ruby-sitedir=SITEDIR
1650                          install Ruby bindings in SITEDIR (default is same as
1651                          ruby's one)
1652  --with-ruby-test-verbose=LEVEL
1653                          how to use output level for Ruby bindings tests
1654                          (default is normal)
1655  --with-ctypesgen=PATH   Specify the path to ctypesgen. This can either be
1656                          the full path to a ctypesgen installation, the full
1657                          path to a ctypesgen source tree or the full path to
1658                          ctypesgen.py.
1659  --with-junit=PATH       Specify a path to the junit JAR file.
1660
1661Some influential environment variables:
1662  CC          C compiler command
1663  CFLAGS      C compiler flags
1664  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1665              nonstandard directory <lib dir>
1666  LIBS        libraries to pass to the linker, e.g. -l<library>
1667  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1668              you have headers in a nonstandard directory <include dir>
1669  CXX         C++ compiler command
1670  CXXFLAGS    C++ compiler flags
1671  CPP         C preprocessor
1672  CXXCPP      C++ preprocessor
1673
1674Use these variables to override the choices made by `configure' or to help
1675it to find libraries and programs with nonstandard names/locations.
1676
1677Report bugs to <http://subversion.apache.org/>.
1678_ACEOF
1679ac_status=$?
1680fi
1681
1682if test "$ac_init_help" = "recursive"; then
1683  # If there are subdirs, report their specific --help.
1684  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1685    test -d "$ac_dir" ||
1686      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1687      continue
1688    ac_builddir=.
1689
1690case "$ac_dir" in
1691.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1692*)
1693  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1694  # A ".." for each directory in $ac_dir_suffix.
1695  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1696  case $ac_top_builddir_sub in
1697  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1698  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1699  esac ;;
1700esac
1701ac_abs_top_builddir=$ac_pwd
1702ac_abs_builddir=$ac_pwd$ac_dir_suffix
1703# for backward compatibility:
1704ac_top_builddir=$ac_top_build_prefix
1705
1706case $srcdir in
1707  .)  # We are building in place.
1708    ac_srcdir=.
1709    ac_top_srcdir=$ac_top_builddir_sub
1710    ac_abs_top_srcdir=$ac_pwd ;;
1711  [\\/]* | ?:[\\/]* )  # Absolute name.
1712    ac_srcdir=$srcdir$ac_dir_suffix;
1713    ac_top_srcdir=$srcdir
1714    ac_abs_top_srcdir=$srcdir ;;
1715  *) # Relative name.
1716    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1717    ac_top_srcdir=$ac_top_build_prefix$srcdir
1718    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1719esac
1720ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1721
1722    cd "$ac_dir" || { ac_status=$?; continue; }
1723    # Check for guested configure.
1724    if test -f "$ac_srcdir/configure.gnu"; then
1725      echo &&
1726      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1727    elif test -f "$ac_srcdir/configure"; then
1728      echo &&
1729      $SHELL "$ac_srcdir/configure" --help=recursive
1730    else
1731      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1732    fi || ac_status=$?
1733    cd "$ac_pwd" || { ac_status=$?; break; }
1734  done
1735fi
1736
1737test -n "$ac_init_help" && exit $ac_status
1738if $ac_init_version; then
1739  cat <<\_ACEOF
1740subversion configure 1.8.10
1741generated by GNU Autoconf 2.69
1742
1743Copyright (C) 2012 Free Software Foundation, Inc.
1744This configure script is free software; the Free Software Foundation
1745gives unlimited permission to copy, distribute and modify it.
1746_ACEOF
1747  exit
1748fi
1749
1750## ------------------------ ##
1751## Autoconf initialization. ##
1752## ------------------------ ##
1753
1754# ac_fn_c_try_compile LINENO
1755# --------------------------
1756# Try to compile conftest.$ac_ext, and return whether this succeeded.
1757ac_fn_c_try_compile ()
1758{
1759  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1760  rm -f conftest.$ac_objext
1761  if { { ac_try="$ac_compile"
1762case "(($ac_try" in
1763  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1764  *) ac_try_echo=$ac_try;;
1765esac
1766eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1767$as_echo "$ac_try_echo"; } >&5
1768  (eval "$ac_compile") 2>conftest.err
1769  ac_status=$?
1770  if test -s conftest.err; then
1771    grep -v '^ *+' conftest.err >conftest.er1
1772    cat conftest.er1 >&5
1773    mv -f conftest.er1 conftest.err
1774  fi
1775  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1776  test $ac_status = 0; } && {
1777	 test -z "$ac_c_werror_flag" ||
1778	 test ! -s conftest.err
1779       } && test -s conftest.$ac_objext; then :
1780  ac_retval=0
1781else
1782  $as_echo "$as_me: failed program was:" >&5
1783sed 's/^/| /' conftest.$ac_ext >&5
1784
1785	ac_retval=1
1786fi
1787  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1788  as_fn_set_status $ac_retval
1789
1790} # ac_fn_c_try_compile
1791
1792# ac_fn_c_try_link LINENO
1793# -----------------------
1794# Try to link conftest.$ac_ext, and return whether this succeeded.
1795ac_fn_c_try_link ()
1796{
1797  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1798  rm -f conftest.$ac_objext conftest$ac_exeext
1799  if { { ac_try="$ac_link"
1800case "(($ac_try" in
1801  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1802  *) ac_try_echo=$ac_try;;
1803esac
1804eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1805$as_echo "$ac_try_echo"; } >&5
1806  (eval "$ac_link") 2>conftest.err
1807  ac_status=$?
1808  if test -s conftest.err; then
1809    grep -v '^ *+' conftest.err >conftest.er1
1810    cat conftest.er1 >&5
1811    mv -f conftest.er1 conftest.err
1812  fi
1813  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1814  test $ac_status = 0; } && {
1815	 test -z "$ac_c_werror_flag" ||
1816	 test ! -s conftest.err
1817       } && test -s conftest$ac_exeext && {
1818	 test "$cross_compiling" = yes ||
1819	 test -x conftest$ac_exeext
1820       }; then :
1821  ac_retval=0
1822else
1823  $as_echo "$as_me: failed program was:" >&5
1824sed 's/^/| /' conftest.$ac_ext >&5
1825
1826	ac_retval=1
1827fi
1828  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1829  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1830  # interfere with the next link command; also delete a directory that is
1831  # left behind by Apple's compiler.  We do this before executing the actions.
1832  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1833  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1834  as_fn_set_status $ac_retval
1835
1836} # ac_fn_c_try_link
1837
1838# ac_fn_cxx_try_compile LINENO
1839# ----------------------------
1840# Try to compile conftest.$ac_ext, and return whether this succeeded.
1841ac_fn_cxx_try_compile ()
1842{
1843  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1844  rm -f conftest.$ac_objext
1845  if { { ac_try="$ac_compile"
1846case "(($ac_try" in
1847  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1848  *) ac_try_echo=$ac_try;;
1849esac
1850eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1851$as_echo "$ac_try_echo"; } >&5
1852  (eval "$ac_compile") 2>conftest.err
1853  ac_status=$?
1854  if test -s conftest.err; then
1855    grep -v '^ *+' conftest.err >conftest.er1
1856    cat conftest.er1 >&5
1857    mv -f conftest.er1 conftest.err
1858  fi
1859  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1860  test $ac_status = 0; } && {
1861	 test -z "$ac_cxx_werror_flag" ||
1862	 test ! -s conftest.err
1863       } && test -s conftest.$ac_objext; then :
1864  ac_retval=0
1865else
1866  $as_echo "$as_me: failed program was:" >&5
1867sed 's/^/| /' conftest.$ac_ext >&5
1868
1869	ac_retval=1
1870fi
1871  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1872  as_fn_set_status $ac_retval
1873
1874} # ac_fn_cxx_try_compile
1875
1876# ac_fn_cxx_try_link LINENO
1877# -------------------------
1878# Try to link conftest.$ac_ext, and return whether this succeeded.
1879ac_fn_cxx_try_link ()
1880{
1881  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1882  rm -f conftest.$ac_objext conftest$ac_exeext
1883  if { { ac_try="$ac_link"
1884case "(($ac_try" in
1885  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1886  *) ac_try_echo=$ac_try;;
1887esac
1888eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1889$as_echo "$ac_try_echo"; } >&5
1890  (eval "$ac_link") 2>conftest.err
1891  ac_status=$?
1892  if test -s conftest.err; then
1893    grep -v '^ *+' conftest.err >conftest.er1
1894    cat conftest.er1 >&5
1895    mv -f conftest.er1 conftest.err
1896  fi
1897  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1898  test $ac_status = 0; } && {
1899	 test -z "$ac_cxx_werror_flag" ||
1900	 test ! -s conftest.err
1901       } && test -s conftest$ac_exeext && {
1902	 test "$cross_compiling" = yes ||
1903	 test -x conftest$ac_exeext
1904       }; then :
1905  ac_retval=0
1906else
1907  $as_echo "$as_me: failed program was:" >&5
1908sed 's/^/| /' conftest.$ac_ext >&5
1909
1910	ac_retval=1
1911fi
1912  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1913  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1914  # interfere with the next link command; also delete a directory that is
1915  # left behind by Apple's compiler.  We do this before executing the actions.
1916  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1917  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1918  as_fn_set_status $ac_retval
1919
1920} # ac_fn_cxx_try_link
1921
1922# ac_fn_c_try_cpp LINENO
1923# ----------------------
1924# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1925ac_fn_c_try_cpp ()
1926{
1927  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1928  if { { ac_try="$ac_cpp conftest.$ac_ext"
1929case "(($ac_try" in
1930  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1931  *) ac_try_echo=$ac_try;;
1932esac
1933eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1934$as_echo "$ac_try_echo"; } >&5
1935  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1936  ac_status=$?
1937  if test -s conftest.err; then
1938    grep -v '^ *+' conftest.err >conftest.er1
1939    cat conftest.er1 >&5
1940    mv -f conftest.er1 conftest.err
1941  fi
1942  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1943  test $ac_status = 0; } > conftest.i && {
1944	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1945	 test ! -s conftest.err
1946       }; then :
1947  ac_retval=0
1948else
1949  $as_echo "$as_me: failed program was:" >&5
1950sed 's/^/| /' conftest.$ac_ext >&5
1951
1952    ac_retval=1
1953fi
1954  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1955  as_fn_set_status $ac_retval
1956
1957} # ac_fn_c_try_cpp
1958
1959# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1960# -------------------------------------------------------
1961# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1962# the include files in INCLUDES and setting the cache variable VAR
1963# accordingly.
1964ac_fn_c_check_header_mongrel ()
1965{
1966  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1967  if eval \${$3+:} false; then :
1968  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1969$as_echo_n "checking for $2... " >&6; }
1970if eval \${$3+:} false; then :
1971  $as_echo_n "(cached) " >&6
1972fi
1973eval ac_res=\$$3
1974	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1975$as_echo "$ac_res" >&6; }
1976else
1977  # Is the header compilable?
1978{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1979$as_echo_n "checking $2 usability... " >&6; }
1980cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1981/* end confdefs.h.  */
1982$4
1983#include <$2>
1984_ACEOF
1985if ac_fn_c_try_compile "$LINENO"; then :
1986  ac_header_compiler=yes
1987else
1988  ac_header_compiler=no
1989fi
1990rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1991{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1992$as_echo "$ac_header_compiler" >&6; }
1993
1994# Is the header present?
1995{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1996$as_echo_n "checking $2 presence... " >&6; }
1997cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1998/* end confdefs.h.  */
1999#include <$2>
2000_ACEOF
2001if ac_fn_c_try_cpp "$LINENO"; then :
2002  ac_header_preproc=yes
2003else
2004  ac_header_preproc=no
2005fi
2006rm -f conftest.err conftest.i conftest.$ac_ext
2007{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2008$as_echo "$ac_header_preproc" >&6; }
2009
2010# So?  What about this header?
2011case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2012  yes:no: )
2013    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2014$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2015    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2016$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2017    ;;
2018  no:yes:* )
2019    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2020$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2021    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2022$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2023    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2024$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2025    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2026$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2027    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2028$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2029( $as_echo "## -------------------------------------------- ##
2030## Report this to http://subversion.apache.org/ ##
2031## -------------------------------------------- ##"
2032     ) | sed "s/^/$as_me: WARNING:     /" >&2
2033    ;;
2034esac
2035  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2036$as_echo_n "checking for $2... " >&6; }
2037if eval \${$3+:} false; then :
2038  $as_echo_n "(cached) " >&6
2039else
2040  eval "$3=\$ac_header_compiler"
2041fi
2042eval ac_res=\$$3
2043	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2044$as_echo "$ac_res" >&6; }
2045fi
2046  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2047
2048} # ac_fn_c_check_header_mongrel
2049
2050# ac_fn_c_try_run LINENO
2051# ----------------------
2052# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2053# that executables *can* be run.
2054ac_fn_c_try_run ()
2055{
2056  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2057  if { { ac_try="$ac_link"
2058case "(($ac_try" in
2059  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2060  *) ac_try_echo=$ac_try;;
2061esac
2062eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2063$as_echo "$ac_try_echo"; } >&5
2064  (eval "$ac_link") 2>&5
2065  ac_status=$?
2066  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2067  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2068  { { case "(($ac_try" in
2069  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2070  *) ac_try_echo=$ac_try;;
2071esac
2072eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2073$as_echo "$ac_try_echo"; } >&5
2074  (eval "$ac_try") 2>&5
2075  ac_status=$?
2076  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2077  test $ac_status = 0; }; }; then :
2078  ac_retval=0
2079else
2080  $as_echo "$as_me: program exited with status $ac_status" >&5
2081       $as_echo "$as_me: failed program was:" >&5
2082sed 's/^/| /' conftest.$ac_ext >&5
2083
2084       ac_retval=$ac_status
2085fi
2086  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2087  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2088  as_fn_set_status $ac_retval
2089
2090} # ac_fn_c_try_run
2091
2092# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2093# -------------------------------------------------------
2094# Tests whether HEADER exists and can be compiled using the include files in
2095# INCLUDES, setting the cache variable VAR accordingly.
2096ac_fn_c_check_header_compile ()
2097{
2098  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2099  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2100$as_echo_n "checking for $2... " >&6; }
2101if eval \${$3+:} false; then :
2102  $as_echo_n "(cached) " >&6
2103else
2104  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2105/* end confdefs.h.  */
2106$4
2107#include <$2>
2108_ACEOF
2109if ac_fn_c_try_compile "$LINENO"; then :
2110  eval "$3=yes"
2111else
2112  eval "$3=no"
2113fi
2114rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2115fi
2116eval ac_res=\$$3
2117	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2118$as_echo "$ac_res" >&6; }
2119  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2120
2121} # ac_fn_c_check_header_compile
2122
2123# ac_fn_c_check_func LINENO FUNC VAR
2124# ----------------------------------
2125# Tests whether FUNC exists, setting the cache variable VAR accordingly
2126ac_fn_c_check_func ()
2127{
2128  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2129  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2130$as_echo_n "checking for $2... " >&6; }
2131if eval \${$3+:} false; then :
2132  $as_echo_n "(cached) " >&6
2133else
2134  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2135/* end confdefs.h.  */
2136/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2137   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2138#define $2 innocuous_$2
2139
2140/* System header to define __stub macros and hopefully few prototypes,
2141    which can conflict with char $2 (); below.
2142    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2143    <limits.h> exists even on freestanding compilers.  */
2144
2145#ifdef __STDC__
2146# include <limits.h>
2147#else
2148# include <assert.h>
2149#endif
2150
2151#undef $2
2152
2153/* Override any GCC internal prototype to avoid an error.
2154   Use char because int might match the return type of a GCC
2155   builtin and then its argument prototype would still apply.  */
2156#ifdef __cplusplus
2157extern "C"
2158#endif
2159char $2 ();
2160/* The GNU C library defines this for functions which it implements
2161    to always fail with ENOSYS.  Some functions are actually named
2162    something starting with __ and the normal name is an alias.  */
2163#if defined __stub_$2 || defined __stub___$2
2164choke me
2165#endif
2166
2167int
2168main ()
2169{
2170return $2 ();
2171  ;
2172  return 0;
2173}
2174_ACEOF
2175if ac_fn_c_try_link "$LINENO"; then :
2176  eval "$3=yes"
2177else
2178  eval "$3=no"
2179fi
2180rm -f core conftest.err conftest.$ac_objext \
2181    conftest$ac_exeext conftest.$ac_ext
2182fi
2183eval ac_res=\$$3
2184	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2185$as_echo "$ac_res" >&6; }
2186  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2187
2188} # ac_fn_c_check_func
2189
2190# ac_fn_cxx_try_cpp LINENO
2191# ------------------------
2192# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2193ac_fn_cxx_try_cpp ()
2194{
2195  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2196  if { { ac_try="$ac_cpp conftest.$ac_ext"
2197case "(($ac_try" in
2198  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2199  *) ac_try_echo=$ac_try;;
2200esac
2201eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2202$as_echo "$ac_try_echo"; } >&5
2203  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2204  ac_status=$?
2205  if test -s conftest.err; then
2206    grep -v '^ *+' conftest.err >conftest.er1
2207    cat conftest.er1 >&5
2208    mv -f conftest.er1 conftest.err
2209  fi
2210  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2211  test $ac_status = 0; } > conftest.i && {
2212	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2213	 test ! -s conftest.err
2214       }; then :
2215  ac_retval=0
2216else
2217  $as_echo "$as_me: failed program was:" >&5
2218sed 's/^/| /' conftest.$ac_ext >&5
2219
2220    ac_retval=1
2221fi
2222  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2223  as_fn_set_status $ac_retval
2224
2225} # ac_fn_cxx_try_cpp
2226
2227# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2228# -------------------------------------------
2229# Tests whether TYPE exists after having included INCLUDES, setting cache
2230# variable VAR accordingly.
2231ac_fn_c_check_type ()
2232{
2233  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2234  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2235$as_echo_n "checking for $2... " >&6; }
2236if eval \${$3+:} false; then :
2237  $as_echo_n "(cached) " >&6
2238else
2239  eval "$3=no"
2240  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2241/* end confdefs.h.  */
2242$4
2243int
2244main ()
2245{
2246if (sizeof ($2))
2247	 return 0;
2248  ;
2249  return 0;
2250}
2251_ACEOF
2252if ac_fn_c_try_compile "$LINENO"; then :
2253  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2254/* end confdefs.h.  */
2255$4
2256int
2257main ()
2258{
2259if (sizeof (($2)))
2260	    return 0;
2261  ;
2262  return 0;
2263}
2264_ACEOF
2265if ac_fn_c_try_compile "$LINENO"; then :
2266
2267else
2268  eval "$3=yes"
2269fi
2270rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2271fi
2272rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2273fi
2274eval ac_res=\$$3
2275	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2276$as_echo "$ac_res" >&6; }
2277  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2278
2279} # ac_fn_c_check_type
2280cat >config.log <<_ACEOF
2281This file contains any messages produced by compilers while
2282running configure, to aid debugging if configure makes a mistake.
2283
2284It was created by subversion $as_me 1.8.10, which was
2285generated by GNU Autoconf 2.69.  Invocation command line was
2286
2287  $ $0 $@
2288
2289_ACEOF
2290exec 5>>config.log
2291{
2292cat <<_ASUNAME
2293## --------- ##
2294## Platform. ##
2295## --------- ##
2296
2297hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2298uname -m = `(uname -m) 2>/dev/null || echo unknown`
2299uname -r = `(uname -r) 2>/dev/null || echo unknown`
2300uname -s = `(uname -s) 2>/dev/null || echo unknown`
2301uname -v = `(uname -v) 2>/dev/null || echo unknown`
2302
2303/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2304/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2305
2306/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2307/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2308/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2309/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2310/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2311/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2312/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2313
2314_ASUNAME
2315
2316as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2317for as_dir in $PATH
2318do
2319  IFS=$as_save_IFS
2320  test -z "$as_dir" && as_dir=.
2321    $as_echo "PATH: $as_dir"
2322  done
2323IFS=$as_save_IFS
2324
2325} >&5
2326
2327cat >&5 <<_ACEOF
2328
2329
2330## ----------- ##
2331## Core tests. ##
2332## ----------- ##
2333
2334_ACEOF
2335
2336
2337# Keep a trace of the command line.
2338# Strip out --no-create and --no-recursion so they do not pile up.
2339# Strip out --silent because we don't want to record it for future runs.
2340# Also quote any args containing shell meta-characters.
2341# Make two passes to allow for proper duplicate-argument suppression.
2342ac_configure_args=
2343ac_configure_args0=
2344ac_configure_args1=
2345ac_must_keep_next=false
2346for ac_pass in 1 2
2347do
2348  for ac_arg
2349  do
2350    case $ac_arg in
2351    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2352    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2353    | -silent | --silent | --silen | --sile | --sil)
2354      continue ;;
2355    *\'*)
2356      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2357    esac
2358    case $ac_pass in
2359    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2360    2)
2361      as_fn_append ac_configure_args1 " '$ac_arg'"
2362      if test $ac_must_keep_next = true; then
2363	ac_must_keep_next=false # Got value, back to normal.
2364      else
2365	case $ac_arg in
2366	  *=* | --config-cache | -C | -disable-* | --disable-* \
2367	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2368	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2369	  | -with-* | --with-* | -without-* | --without-* | --x)
2370	    case "$ac_configure_args0 " in
2371	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2372	    esac
2373	    ;;
2374	  -* ) ac_must_keep_next=true ;;
2375	esac
2376      fi
2377      as_fn_append ac_configure_args " '$ac_arg'"
2378      ;;
2379    esac
2380  done
2381done
2382{ ac_configure_args0=; unset ac_configure_args0;}
2383{ ac_configure_args1=; unset ac_configure_args1;}
2384
2385# When interrupted or exit'd, cleanup temporary files, and complete
2386# config.log.  We remove comments because anyway the quotes in there
2387# would cause problems or look ugly.
2388# WARNING: Use '\'' to represent an apostrophe within the trap.
2389# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2390trap 'exit_status=$?
2391  # Save into config.log some information that might help in debugging.
2392  {
2393    echo
2394
2395    $as_echo "## ---------------- ##
2396## Cache variables. ##
2397## ---------------- ##"
2398    echo
2399    # The following way of writing the cache mishandles newlines in values,
2400(
2401  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2402    eval ac_val=\$$ac_var
2403    case $ac_val in #(
2404    *${as_nl}*)
2405      case $ac_var in #(
2406      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2407$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2408      esac
2409      case $ac_var in #(
2410      _ | IFS | as_nl) ;; #(
2411      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2412      *) { eval $ac_var=; unset $ac_var;} ;;
2413      esac ;;
2414    esac
2415  done
2416  (set) 2>&1 |
2417    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2418    *${as_nl}ac_space=\ *)
2419      sed -n \
2420	"s/'\''/'\''\\\\'\'''\''/g;
2421	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2422      ;; #(
2423    *)
2424      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2425      ;;
2426    esac |
2427    sort
2428)
2429    echo
2430
2431    $as_echo "## ----------------- ##
2432## Output variables. ##
2433## ----------------- ##"
2434    echo
2435    for ac_var in $ac_subst_vars
2436    do
2437      eval ac_val=\$$ac_var
2438      case $ac_val in
2439      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2440      esac
2441      $as_echo "$ac_var='\''$ac_val'\''"
2442    done | sort
2443    echo
2444
2445    if test -n "$ac_subst_files"; then
2446      $as_echo "## ------------------- ##
2447## File substitutions. ##
2448## ------------------- ##"
2449      echo
2450      for ac_var in $ac_subst_files
2451      do
2452	eval ac_val=\$$ac_var
2453	case $ac_val in
2454	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2455	esac
2456	$as_echo "$ac_var='\''$ac_val'\''"
2457      done | sort
2458      echo
2459    fi
2460
2461    if test -s confdefs.h; then
2462      $as_echo "## ----------- ##
2463## confdefs.h. ##
2464## ----------- ##"
2465      echo
2466      cat confdefs.h
2467      echo
2468    fi
2469    test "$ac_signal" != 0 &&
2470      $as_echo "$as_me: caught signal $ac_signal"
2471    $as_echo "$as_me: exit $exit_status"
2472  } >&5
2473  rm -f core *.core core.conftest.* &&
2474    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2475    exit $exit_status
2476' 0
2477for ac_signal in 1 2 13 15; do
2478  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2479done
2480ac_signal=0
2481
2482# confdefs.h avoids OS command line length limits that DEFS can exceed.
2483rm -f -r conftest* confdefs.h
2484
2485$as_echo "/* confdefs.h */" > confdefs.h
2486
2487# Predefined preprocessor variables.
2488
2489cat >>confdefs.h <<_ACEOF
2490#define PACKAGE_NAME "$PACKAGE_NAME"
2491_ACEOF
2492
2493cat >>confdefs.h <<_ACEOF
2494#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2495_ACEOF
2496
2497cat >>confdefs.h <<_ACEOF
2498#define PACKAGE_VERSION "$PACKAGE_VERSION"
2499_ACEOF
2500
2501cat >>confdefs.h <<_ACEOF
2502#define PACKAGE_STRING "$PACKAGE_STRING"
2503_ACEOF
2504
2505cat >>confdefs.h <<_ACEOF
2506#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2507_ACEOF
2508
2509cat >>confdefs.h <<_ACEOF
2510#define PACKAGE_URL "$PACKAGE_URL"
2511_ACEOF
2512
2513
2514# Let the site file select an alternate cache file if it wants to.
2515# Prefer an explicitly selected file to automatically selected ones.
2516ac_site_file1=NONE
2517ac_site_file2=NONE
2518if test -n "$CONFIG_SITE"; then
2519  # We do not want a PATH search for config.site.
2520  case $CONFIG_SITE in #((
2521    -*)  ac_site_file1=./$CONFIG_SITE;;
2522    */*) ac_site_file1=$CONFIG_SITE;;
2523    *)   ac_site_file1=./$CONFIG_SITE;;
2524  esac
2525elif test "x$prefix" != xNONE; then
2526  ac_site_file1=$prefix/share/config.site
2527  ac_site_file2=$prefix/etc/config.site
2528else
2529  ac_site_file1=$ac_default_prefix/share/config.site
2530  ac_site_file2=$ac_default_prefix/etc/config.site
2531fi
2532for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2533do
2534  test "x$ac_site_file" = xNONE && continue
2535  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2536    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2537$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2538    sed 's/^/| /' "$ac_site_file" >&5
2539    . "$ac_site_file" \
2540      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2541$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2542as_fn_error $? "failed to load site script $ac_site_file
2543See \`config.log' for more details" "$LINENO" 5; }
2544  fi
2545done
2546
2547if test -r "$cache_file"; then
2548  # Some versions of bash will fail to source /dev/null (special files
2549  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2550  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2551    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2552$as_echo "$as_me: loading cache $cache_file" >&6;}
2553    case $cache_file in
2554      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2555      *)                      . "./$cache_file";;
2556    esac
2557  fi
2558else
2559  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2560$as_echo "$as_me: creating cache $cache_file" >&6;}
2561  >$cache_file
2562fi
2563
2564# Check that the precious variables saved in the cache have kept the same
2565# value.
2566ac_cache_corrupted=false
2567for ac_var in $ac_precious_vars; do
2568  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2569  eval ac_new_set=\$ac_env_${ac_var}_set
2570  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2571  eval ac_new_val=\$ac_env_${ac_var}_value
2572  case $ac_old_set,$ac_new_set in
2573    set,)
2574      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2575$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2576      ac_cache_corrupted=: ;;
2577    ,set)
2578      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2579$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2580      ac_cache_corrupted=: ;;
2581    ,);;
2582    *)
2583      if test "x$ac_old_val" != "x$ac_new_val"; then
2584	# differences in whitespace do not lead to failure.
2585	ac_old_val_w=`echo x $ac_old_val`
2586	ac_new_val_w=`echo x $ac_new_val`
2587	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2588	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2589$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2590	  ac_cache_corrupted=:
2591	else
2592	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2593$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2594	  eval $ac_var=\$ac_old_val
2595	fi
2596	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2597$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2598	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2599$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2600      fi;;
2601  esac
2602  # Pass precious variables to config.status.
2603  if test "$ac_new_set" = set; then
2604    case $ac_new_val in
2605    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2606    *) ac_arg=$ac_var=$ac_new_val ;;
2607    esac
2608    case " $ac_configure_args " in
2609      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2610      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2611    esac
2612  fi
2613done
2614if $ac_cache_corrupted; then
2615  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2616$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2617  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2618$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2619  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2620fi
2621## -------------------- ##
2622## Main body of script. ##
2623## -------------------- ##
2624
2625ac_ext=c
2626ac_cpp='$CPP $CPPFLAGS'
2627ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2628ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2629ac_compiler_gnu=$ac_cv_c_compiler_gnu
2630
2631
2632
2633
2634ac_aux_dir=
2635for ac_dir in build "$srcdir"/build; do
2636  if test -f "$ac_dir/install-sh"; then
2637    ac_aux_dir=$ac_dir
2638    ac_install_sh="$ac_aux_dir/install-sh -c"
2639    break
2640  elif test -f "$ac_dir/install.sh"; then
2641    ac_aux_dir=$ac_dir
2642    ac_install_sh="$ac_aux_dir/install.sh -c"
2643    break
2644  elif test -f "$ac_dir/shtool"; then
2645    ac_aux_dir=$ac_dir
2646    ac_install_sh="$ac_aux_dir/shtool install -c"
2647    break
2648  fi
2649done
2650if test -z "$ac_aux_dir"; then
2651  as_fn_error $? "cannot find install-sh, install.sh, or shtool in build \"$srcdir\"/build" "$LINENO" 5
2652fi
2653
2654# These three variables are undocumented and unsupported,
2655# and are intended to be withdrawn in a future Autoconf release.
2656# They can cause serious problems if a builder's source tree is in a directory
2657# whose full name contains unusual characters.
2658ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2659ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2660ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2661
2662
2663
2664{ $as_echo "$as_me:${as_lineno-$LINENO}: Configuring Subversion 1.8.10" >&5
2665$as_echo "$as_me: Configuring Subversion 1.8.10" >&6;}
2666
2667abs_srcdir="`cd $srcdir && pwd`"
2668
2669abs_builddir="`pwd`"
2670
2671if test "$abs_srcdir" = "$abs_builddir"; then
2672  canonicalized_srcdir=""
2673else
2674  canonicalized_srcdir="$srcdir/"
2675fi
2676
2677
2678SWIG_LDFLAGS="$LDFLAGS"
2679
2680
2681# Generate config.nice early (before the arguments are munged)
2682
2683  { $as_echo "$as_me:${as_lineno-$LINENO}: creating config.nice" >&5
2684$as_echo "$as_me: creating config.nice" >&6;}
2685  # This little dance satisfies Cygwin, which cannot overwrite in-use files.
2686  if test -f "config.nice"; then
2687    mv "config.nice" "config.nice.old"
2688  fi
2689
2690  cat >"config.nice" <<EOF
2691#! /bin/sh
2692#
2693# Created by configure
2694
2695'$0' $ac_configure_args "\$@"
2696EOF
2697
2698  chmod +x "config.nice"
2699  rm -f "config.nice.old"
2700
2701
2702# ==== Check for programs ====================================================
2703
2704# Look for a C compiler (before anything can set CFLAGS)
2705CMAINTAINERFLAGS="$CUSERFLAGS"
2706CUSERFLAGS="$CFLAGS"
2707ac_ext=c
2708ac_cpp='$CPP $CPPFLAGS'
2709ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2710ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2711ac_compiler_gnu=$ac_cv_c_compiler_gnu
2712if test -n "$ac_tool_prefix"; then
2713  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2714set dummy ${ac_tool_prefix}gcc; ac_word=$2
2715{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2716$as_echo_n "checking for $ac_word... " >&6; }
2717if ${ac_cv_prog_CC+:} false; then :
2718  $as_echo_n "(cached) " >&6
2719else
2720  if test -n "$CC"; then
2721  ac_cv_prog_CC="$CC" # Let the user override the test.
2722else
2723as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2724for as_dir in $PATH
2725do
2726  IFS=$as_save_IFS
2727  test -z "$as_dir" && as_dir=.
2728    for ac_exec_ext in '' $ac_executable_extensions; do
2729  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2730    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2731    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2732    break 2
2733  fi
2734done
2735  done
2736IFS=$as_save_IFS
2737
2738fi
2739fi
2740CC=$ac_cv_prog_CC
2741if test -n "$CC"; then
2742  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2743$as_echo "$CC" >&6; }
2744else
2745  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2746$as_echo "no" >&6; }
2747fi
2748
2749
2750fi
2751if test -z "$ac_cv_prog_CC"; then
2752  ac_ct_CC=$CC
2753  # Extract the first word of "gcc", so it can be a program name with args.
2754set dummy gcc; ac_word=$2
2755{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2756$as_echo_n "checking for $ac_word... " >&6; }
2757if ${ac_cv_prog_ac_ct_CC+:} false; then :
2758  $as_echo_n "(cached) " >&6
2759else
2760  if test -n "$ac_ct_CC"; then
2761  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2762else
2763as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2764for as_dir in $PATH
2765do
2766  IFS=$as_save_IFS
2767  test -z "$as_dir" && as_dir=.
2768    for ac_exec_ext in '' $ac_executable_extensions; do
2769  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2770    ac_cv_prog_ac_ct_CC="gcc"
2771    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2772    break 2
2773  fi
2774done
2775  done
2776IFS=$as_save_IFS
2777
2778fi
2779fi
2780ac_ct_CC=$ac_cv_prog_ac_ct_CC
2781if test -n "$ac_ct_CC"; then
2782  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2783$as_echo "$ac_ct_CC" >&6; }
2784else
2785  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2786$as_echo "no" >&6; }
2787fi
2788
2789  if test "x$ac_ct_CC" = x; then
2790    CC=""
2791  else
2792    case $cross_compiling:$ac_tool_warned in
2793yes:)
2794{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2795$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2796ac_tool_warned=yes ;;
2797esac
2798    CC=$ac_ct_CC
2799  fi
2800else
2801  CC="$ac_cv_prog_CC"
2802fi
2803
2804if test -z "$CC"; then
2805          if test -n "$ac_tool_prefix"; then
2806    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2807set dummy ${ac_tool_prefix}cc; ac_word=$2
2808{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2809$as_echo_n "checking for $ac_word... " >&6; }
2810if ${ac_cv_prog_CC+:} false; then :
2811  $as_echo_n "(cached) " >&6
2812else
2813  if test -n "$CC"; then
2814  ac_cv_prog_CC="$CC" # Let the user override the test.
2815else
2816as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2817for as_dir in $PATH
2818do
2819  IFS=$as_save_IFS
2820  test -z "$as_dir" && as_dir=.
2821    for ac_exec_ext in '' $ac_executable_extensions; do
2822  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2823    ac_cv_prog_CC="${ac_tool_prefix}cc"
2824    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2825    break 2
2826  fi
2827done
2828  done
2829IFS=$as_save_IFS
2830
2831fi
2832fi
2833CC=$ac_cv_prog_CC
2834if test -n "$CC"; then
2835  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2836$as_echo "$CC" >&6; }
2837else
2838  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2839$as_echo "no" >&6; }
2840fi
2841
2842
2843  fi
2844fi
2845if test -z "$CC"; then
2846  # Extract the first word of "cc", so it can be a program name with args.
2847set dummy cc; ac_word=$2
2848{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2849$as_echo_n "checking for $ac_word... " >&6; }
2850if ${ac_cv_prog_CC+:} false; then :
2851  $as_echo_n "(cached) " >&6
2852else
2853  if test -n "$CC"; then
2854  ac_cv_prog_CC="$CC" # Let the user override the test.
2855else
2856  ac_prog_rejected=no
2857as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2858for as_dir in $PATH
2859do
2860  IFS=$as_save_IFS
2861  test -z "$as_dir" && as_dir=.
2862    for ac_exec_ext in '' $ac_executable_extensions; do
2863  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2864    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2865       ac_prog_rejected=yes
2866       continue
2867     fi
2868    ac_cv_prog_CC="cc"
2869    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2870    break 2
2871  fi
2872done
2873  done
2874IFS=$as_save_IFS
2875
2876if test $ac_prog_rejected = yes; then
2877  # We found a bogon in the path, so make sure we never use it.
2878  set dummy $ac_cv_prog_CC
2879  shift
2880  if test $# != 0; then
2881    # We chose a different compiler from the bogus one.
2882    # However, it has the same basename, so the bogon will be chosen
2883    # first if we set CC to just the basename; use the full file name.
2884    shift
2885    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2886  fi
2887fi
2888fi
2889fi
2890CC=$ac_cv_prog_CC
2891if test -n "$CC"; then
2892  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2893$as_echo "$CC" >&6; }
2894else
2895  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2896$as_echo "no" >&6; }
2897fi
2898
2899
2900fi
2901if test -z "$CC"; then
2902  if test -n "$ac_tool_prefix"; then
2903  for ac_prog in cl.exe
2904  do
2905    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2906set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2907{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2908$as_echo_n "checking for $ac_word... " >&6; }
2909if ${ac_cv_prog_CC+:} false; then :
2910  $as_echo_n "(cached) " >&6
2911else
2912  if test -n "$CC"; then
2913  ac_cv_prog_CC="$CC" # Let the user override the test.
2914else
2915as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2916for as_dir in $PATH
2917do
2918  IFS=$as_save_IFS
2919  test -z "$as_dir" && as_dir=.
2920    for ac_exec_ext in '' $ac_executable_extensions; do
2921  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2922    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2923    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2924    break 2
2925  fi
2926done
2927  done
2928IFS=$as_save_IFS
2929
2930fi
2931fi
2932CC=$ac_cv_prog_CC
2933if test -n "$CC"; then
2934  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2935$as_echo "$CC" >&6; }
2936else
2937  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2938$as_echo "no" >&6; }
2939fi
2940
2941
2942    test -n "$CC" && break
2943  done
2944fi
2945if test -z "$CC"; then
2946  ac_ct_CC=$CC
2947  for ac_prog in cl.exe
2948do
2949  # Extract the first word of "$ac_prog", so it can be a program name with args.
2950set dummy $ac_prog; ac_word=$2
2951{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2952$as_echo_n "checking for $ac_word... " >&6; }
2953if ${ac_cv_prog_ac_ct_CC+:} false; then :
2954  $as_echo_n "(cached) " >&6
2955else
2956  if test -n "$ac_ct_CC"; then
2957  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2958else
2959as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2960for as_dir in $PATH
2961do
2962  IFS=$as_save_IFS
2963  test -z "$as_dir" && as_dir=.
2964    for ac_exec_ext in '' $ac_executable_extensions; do
2965  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2966    ac_cv_prog_ac_ct_CC="$ac_prog"
2967    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2968    break 2
2969  fi
2970done
2971  done
2972IFS=$as_save_IFS
2973
2974fi
2975fi
2976ac_ct_CC=$ac_cv_prog_ac_ct_CC
2977if test -n "$ac_ct_CC"; then
2978  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2979$as_echo "$ac_ct_CC" >&6; }
2980else
2981  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2982$as_echo "no" >&6; }
2983fi
2984
2985
2986  test -n "$ac_ct_CC" && break
2987done
2988
2989  if test "x$ac_ct_CC" = x; then
2990    CC=""
2991  else
2992    case $cross_compiling:$ac_tool_warned in
2993yes:)
2994{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2995$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2996ac_tool_warned=yes ;;
2997esac
2998    CC=$ac_ct_CC
2999  fi
3000fi
3001
3002fi
3003
3004
3005test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3006$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3007as_fn_error $? "no acceptable C compiler found in \$PATH
3008See \`config.log' for more details" "$LINENO" 5; }
3009
3010# Provide some information about the compiler.
3011$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3012set X $ac_compile
3013ac_compiler=$2
3014for ac_option in --version -v -V -qversion; do
3015  { { ac_try="$ac_compiler $ac_option >&5"
3016case "(($ac_try" in
3017  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3018  *) ac_try_echo=$ac_try;;
3019esac
3020eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3021$as_echo "$ac_try_echo"; } >&5
3022  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3023  ac_status=$?
3024  if test -s conftest.err; then
3025    sed '10a\
3026... rest of stderr output deleted ...
3027         10q' conftest.err >conftest.er1
3028    cat conftest.er1 >&5
3029  fi
3030  rm -f conftest.er1 conftest.err
3031  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3032  test $ac_status = 0; }
3033done
3034
3035cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3036/* end confdefs.h.  */
3037
3038int
3039main ()
3040{
3041
3042  ;
3043  return 0;
3044}
3045_ACEOF
3046ac_clean_files_save=$ac_clean_files
3047ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3048# Try to create an executable without -o first, disregard a.out.
3049# It will help us diagnose broken compilers, and finding out an intuition
3050# of exeext.
3051{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3052$as_echo_n "checking whether the C compiler works... " >&6; }
3053ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3054
3055# The possible output files:
3056ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3057
3058ac_rmfiles=
3059for ac_file in $ac_files
3060do
3061  case $ac_file in
3062    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3063    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3064  esac
3065done
3066rm -f $ac_rmfiles
3067
3068if { { ac_try="$ac_link_default"
3069case "(($ac_try" in
3070  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3071  *) ac_try_echo=$ac_try;;
3072esac
3073eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3074$as_echo "$ac_try_echo"; } >&5
3075  (eval "$ac_link_default") 2>&5
3076  ac_status=$?
3077  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3078  test $ac_status = 0; }; then :
3079  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3080# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3081# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3082# so that the user can short-circuit this test for compilers unknown to
3083# Autoconf.
3084for ac_file in $ac_files ''
3085do
3086  test -f "$ac_file" || continue
3087  case $ac_file in
3088    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3089	;;
3090    [ab].out )
3091	# We found the default executable, but exeext='' is most
3092	# certainly right.
3093	break;;
3094    *.* )
3095	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3096	then :; else
3097	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3098	fi
3099	# We set ac_cv_exeext here because the later test for it is not
3100	# safe: cross compilers may not add the suffix if given an `-o'
3101	# argument, so we may need to know it at that point already.
3102	# Even if this section looks crufty: it has the advantage of
3103	# actually working.
3104	break;;
3105    * )
3106	break;;
3107  esac
3108done
3109test "$ac_cv_exeext" = no && ac_cv_exeext=
3110
3111else
3112  ac_file=''
3113fi
3114if test -z "$ac_file"; then :
3115  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3116$as_echo "no" >&6; }
3117$as_echo "$as_me: failed program was:" >&5
3118sed 's/^/| /' conftest.$ac_ext >&5
3119
3120{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3121$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3122as_fn_error 77 "C compiler cannot create executables
3123See \`config.log' for more details" "$LINENO" 5; }
3124else
3125  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3126$as_echo "yes" >&6; }
3127fi
3128{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3129$as_echo_n "checking for C compiler default output file name... " >&6; }
3130{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3131$as_echo "$ac_file" >&6; }
3132ac_exeext=$ac_cv_exeext
3133
3134rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3135ac_clean_files=$ac_clean_files_save
3136{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3137$as_echo_n "checking for suffix of executables... " >&6; }
3138if { { ac_try="$ac_link"
3139case "(($ac_try" in
3140  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3141  *) ac_try_echo=$ac_try;;
3142esac
3143eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3144$as_echo "$ac_try_echo"; } >&5
3145  (eval "$ac_link") 2>&5
3146  ac_status=$?
3147  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3148  test $ac_status = 0; }; then :
3149  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3150# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3151# work properly (i.e., refer to `conftest.exe'), while it won't with
3152# `rm'.
3153for ac_file in conftest.exe conftest conftest.*; do
3154  test -f "$ac_file" || continue
3155  case $ac_file in
3156    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3157    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3158	  break;;
3159    * ) break;;
3160  esac
3161done
3162else
3163  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3164$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3165as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3166See \`config.log' for more details" "$LINENO" 5; }
3167fi
3168rm -f conftest conftest$ac_cv_exeext
3169{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3170$as_echo "$ac_cv_exeext" >&6; }
3171
3172rm -f conftest.$ac_ext
3173EXEEXT=$ac_cv_exeext
3174ac_exeext=$EXEEXT
3175cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3176/* end confdefs.h.  */
3177#include <stdio.h>
3178int
3179main ()
3180{
3181FILE *f = fopen ("conftest.out", "w");
3182 return ferror (f) || fclose (f) != 0;
3183
3184  ;
3185  return 0;
3186}
3187_ACEOF
3188ac_clean_files="$ac_clean_files conftest.out"
3189# Check that the compiler produces executables we can run.  If not, either
3190# the compiler is broken, or we cross compile.
3191{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3192$as_echo_n "checking whether we are cross compiling... " >&6; }
3193if test "$cross_compiling" != yes; then
3194  { { ac_try="$ac_link"
3195case "(($ac_try" in
3196  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3197  *) ac_try_echo=$ac_try;;
3198esac
3199eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3200$as_echo "$ac_try_echo"; } >&5
3201  (eval "$ac_link") 2>&5
3202  ac_status=$?
3203  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3204  test $ac_status = 0; }
3205  if { ac_try='./conftest$ac_cv_exeext'
3206  { { case "(($ac_try" in
3207  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3208  *) ac_try_echo=$ac_try;;
3209esac
3210eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3211$as_echo "$ac_try_echo"; } >&5
3212  (eval "$ac_try") 2>&5
3213  ac_status=$?
3214  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3215  test $ac_status = 0; }; }; then
3216    cross_compiling=no
3217  else
3218    if test "$cross_compiling" = maybe; then
3219	cross_compiling=yes
3220    else
3221	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3222$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3223as_fn_error $? "cannot run C compiled programs.
3224If you meant to cross compile, use \`--host'.
3225See \`config.log' for more details" "$LINENO" 5; }
3226    fi
3227  fi
3228fi
3229{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3230$as_echo "$cross_compiling" >&6; }
3231
3232rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3233ac_clean_files=$ac_clean_files_save
3234{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3235$as_echo_n "checking for suffix of object files... " >&6; }
3236if ${ac_cv_objext+:} false; then :
3237  $as_echo_n "(cached) " >&6
3238else
3239  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3240/* end confdefs.h.  */
3241
3242int
3243main ()
3244{
3245
3246  ;
3247  return 0;
3248}
3249_ACEOF
3250rm -f conftest.o conftest.obj
3251if { { ac_try="$ac_compile"
3252case "(($ac_try" in
3253  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3254  *) ac_try_echo=$ac_try;;
3255esac
3256eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3257$as_echo "$ac_try_echo"; } >&5
3258  (eval "$ac_compile") 2>&5
3259  ac_status=$?
3260  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3261  test $ac_status = 0; }; then :
3262  for ac_file in conftest.o conftest.obj conftest.*; do
3263  test -f "$ac_file" || continue;
3264  case $ac_file in
3265    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3266    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3267       break;;
3268  esac
3269done
3270else
3271  $as_echo "$as_me: failed program was:" >&5
3272sed 's/^/| /' conftest.$ac_ext >&5
3273
3274{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3275$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3276as_fn_error $? "cannot compute suffix of object files: cannot compile
3277See \`config.log' for more details" "$LINENO" 5; }
3278fi
3279rm -f conftest.$ac_cv_objext conftest.$ac_ext
3280fi
3281{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3282$as_echo "$ac_cv_objext" >&6; }
3283OBJEXT=$ac_cv_objext
3284ac_objext=$OBJEXT
3285{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3286$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3287if ${ac_cv_c_compiler_gnu+:} false; then :
3288  $as_echo_n "(cached) " >&6
3289else
3290  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3291/* end confdefs.h.  */
3292
3293int
3294main ()
3295{
3296#ifndef __GNUC__
3297       choke me
3298#endif
3299
3300  ;
3301  return 0;
3302}
3303_ACEOF
3304if ac_fn_c_try_compile "$LINENO"; then :
3305  ac_compiler_gnu=yes
3306else
3307  ac_compiler_gnu=no
3308fi
3309rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3310ac_cv_c_compiler_gnu=$ac_compiler_gnu
3311
3312fi
3313{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3314$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3315if test $ac_compiler_gnu = yes; then
3316  GCC=yes
3317else
3318  GCC=
3319fi
3320ac_test_CFLAGS=${CFLAGS+set}
3321ac_save_CFLAGS=$CFLAGS
3322{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3323$as_echo_n "checking whether $CC accepts -g... " >&6; }
3324if ${ac_cv_prog_cc_g+:} false; then :
3325  $as_echo_n "(cached) " >&6
3326else
3327  ac_save_c_werror_flag=$ac_c_werror_flag
3328   ac_c_werror_flag=yes
3329   ac_cv_prog_cc_g=no
3330   CFLAGS="-g"
3331   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3332/* end confdefs.h.  */
3333
3334int
3335main ()
3336{
3337
3338  ;
3339  return 0;
3340}
3341_ACEOF
3342if ac_fn_c_try_compile "$LINENO"; then :
3343  ac_cv_prog_cc_g=yes
3344else
3345  CFLAGS=""
3346      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3347/* end confdefs.h.  */
3348
3349int
3350main ()
3351{
3352
3353  ;
3354  return 0;
3355}
3356_ACEOF
3357if ac_fn_c_try_compile "$LINENO"; then :
3358
3359else
3360  ac_c_werror_flag=$ac_save_c_werror_flag
3361	 CFLAGS="-g"
3362	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3363/* end confdefs.h.  */
3364
3365int
3366main ()
3367{
3368
3369  ;
3370  return 0;
3371}
3372_ACEOF
3373if ac_fn_c_try_compile "$LINENO"; then :
3374  ac_cv_prog_cc_g=yes
3375fi
3376rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3377fi
3378rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3379fi
3380rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3381   ac_c_werror_flag=$ac_save_c_werror_flag
3382fi
3383{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3384$as_echo "$ac_cv_prog_cc_g" >&6; }
3385if test "$ac_test_CFLAGS" = set; then
3386  CFLAGS=$ac_save_CFLAGS
3387elif test $ac_cv_prog_cc_g = yes; then
3388  if test "$GCC" = yes; then
3389    CFLAGS="-g -O2"
3390  else
3391    CFLAGS="-g"
3392  fi
3393else
3394  if test "$GCC" = yes; then
3395    CFLAGS="-O2"
3396  else
3397    CFLAGS=
3398  fi
3399fi
3400{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3401$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3402if ${ac_cv_prog_cc_c89+:} false; then :
3403  $as_echo_n "(cached) " >&6
3404else
3405  ac_cv_prog_cc_c89=no
3406ac_save_CC=$CC
3407cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3408/* end confdefs.h.  */
3409#include <stdarg.h>
3410#include <stdio.h>
3411struct stat;
3412/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3413struct buf { int x; };
3414FILE * (*rcsopen) (struct buf *, struct stat *, int);
3415static char *e (p, i)
3416     char **p;
3417     int i;
3418{
3419  return p[i];
3420}
3421static char *f (char * (*g) (char **, int), char **p, ...)
3422{
3423  char *s;
3424  va_list v;
3425  va_start (v,p);
3426  s = g (p, va_arg (v,int));
3427  va_end (v);
3428  return s;
3429}
3430
3431/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3432   function prototypes and stuff, but not '\xHH' hex character constants.
3433   These don't provoke an error unfortunately, instead are silently treated
3434   as 'x'.  The following induces an error, until -std is added to get
3435   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3436   array size at least.  It's necessary to write '\x00'==0 to get something
3437   that's true only with -std.  */
3438int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3439
3440/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3441   inside strings and character constants.  */
3442#define FOO(x) 'x'
3443int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3444
3445int test (int i, double x);
3446struct s1 {int (*f) (int a);};
3447struct s2 {int (*f) (double a);};
3448int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3449int argc;
3450char **argv;
3451int
3452main ()
3453{
3454return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3455  ;
3456  return 0;
3457}
3458_ACEOF
3459for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3460	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3461do
3462  CC="$ac_save_CC $ac_arg"
3463  if ac_fn_c_try_compile "$LINENO"; then :
3464  ac_cv_prog_cc_c89=$ac_arg
3465fi
3466rm -f core conftest.err conftest.$ac_objext
3467  test "x$ac_cv_prog_cc_c89" != "xno" && break
3468done
3469rm -f conftest.$ac_ext
3470CC=$ac_save_CC
3471
3472fi
3473# AC_CACHE_VAL
3474case "x$ac_cv_prog_cc_c89" in
3475  x)
3476    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3477$as_echo "none needed" >&6; } ;;
3478  xno)
3479    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3480$as_echo "unsupported" >&6; } ;;
3481  *)
3482    CC="$CC $ac_cv_prog_cc_c89"
3483    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3484$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3485esac
3486if test "x$ac_cv_prog_cc_c89" != xno; then :
3487
3488fi
3489
3490ac_ext=c
3491ac_cpp='$CPP $CPPFLAGS'
3492ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3493ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3494ac_compiler_gnu=$ac_cv_c_compiler_gnu
3495
3496
3497
3498  CFLAGS_KEEP="$CFLAGS"
3499  CFLAGS=""
3500
3501
3502  _svn_xxflags__save="$CFLAGS"
3503  ac_ext=c
3504ac_cpp='$CPP $CPPFLAGS'
3505ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3506ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3507ac_compiler_gnu=$ac_cv_c_compiler_gnu
3508
3509  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -std=c90" >&5
3510$as_echo_n "checking if $CC accepts -std=c90... " >&6; }
3511  CFLAGS="-std=c90 $CFLAGS"
3512        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3513/* end confdefs.h.  */
3514int main(void){return 0;}
3515_ACEOF
3516if ac_fn_c_try_link "$LINENO"; then :
3517
3518    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3519$as_echo "yes" >&6; }
3520
3521
3522else
3523
3524    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3525$as_echo "no" >&6; }
3526    CFLAGS="$_svn_xxflags__save"
3527
3528
3529  _svn_xxflags__save="$CFLAGS"
3530  ac_ext=c
3531ac_cpp='$CPP $CPPFLAGS'
3532ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3533ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3534ac_compiler_gnu=$ac_cv_c_compiler_gnu
3535
3536  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -std=c89" >&5
3537$as_echo_n "checking if $CC accepts -std=c89... " >&6; }
3538  CFLAGS="-std=c89 $CFLAGS"
3539        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3540/* end confdefs.h.  */
3541int main(void){return 0;}
3542_ACEOF
3543if ac_fn_c_try_link "$LINENO"; then :
3544
3545    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3546$as_echo "yes" >&6; }
3547
3548
3549else
3550
3551    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3552$as_echo "no" >&6; }
3553    CFLAGS="$_svn_xxflags__save"
3554
3555
3556  _svn_xxflags__save="$CFLAGS"
3557  ac_ext=c
3558ac_cpp='$CPP $CPPFLAGS'
3559ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3560ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3561ac_compiler_gnu=$ac_cv_c_compiler_gnu
3562
3563  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -ansi" >&5
3564$as_echo_n "checking if $CC accepts -ansi... " >&6; }
3565  CFLAGS="-ansi $CFLAGS"
3566        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3567/* end confdefs.h.  */
3568int main(void){return 0;}
3569_ACEOF
3570if ac_fn_c_try_link "$LINENO"; then :
3571
3572    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3573$as_echo "yes" >&6; }
3574
3575
3576else
3577
3578    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3579$as_echo "no" >&6; }
3580    CFLAGS="$_svn_xxflags__save"
3581
3582
3583fi
3584rm -f core conftest.err conftest.$ac_objext \
3585    conftest$ac_exeext conftest.$ac_ext
3586  ac_ext=c
3587ac_cpp='$CPP $CPPFLAGS'
3588ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3589ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3590ac_compiler_gnu=$ac_cv_c_compiler_gnu
3591
3592
3593
3594
3595fi
3596rm -f core conftest.err conftest.$ac_objext \
3597    conftest$ac_exeext conftest.$ac_ext
3598  ac_ext=c
3599ac_cpp='$CPP $CPPFLAGS'
3600ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3601ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3602ac_compiler_gnu=$ac_cv_c_compiler_gnu
3603
3604
3605
3606
3607fi
3608rm -f core conftest.err conftest.$ac_objext \
3609    conftest$ac_exeext conftest.$ac_ext
3610  ac_ext=c
3611ac_cpp='$CPP $CPPFLAGS'
3612ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3613ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3614ac_compiler_gnu=$ac_cv_c_compiler_gnu
3615
3616
3617
3618  CMODEFLAGS="$CFLAGS"
3619  CFLAGS="$CFLAGS_KEEP"
3620
3621
3622
3623
3624  _svn_xxflags__save="$CFLAGS"
3625  ac_ext=c
3626ac_cpp='$CPP $CPPFLAGS'
3627ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3628ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3629ac_compiler_gnu=$ac_cv_c_compiler_gnu
3630
3631  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -Werror=unknown-warning-option" >&5
3632$as_echo_n "checking if $CC accepts -Werror=unknown-warning-option... " >&6; }
3633  CFLAGS="-Werror=unknown-warning-option $CFLAGS"
3634        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3635/* end confdefs.h.  */
3636int main(void){return 0;}
3637_ACEOF
3638if ac_fn_c_try_link "$LINENO"; then :
3639
3640    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3641$as_echo "yes" >&6; }
3642
3643
3644else
3645
3646    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3647$as_echo "no" >&6; }
3648    CFLAGS="$_svn_xxflags__save"
3649
3650
3651fi
3652rm -f core conftest.err conftest.$ac_objext \
3653    conftest$ac_exeext conftest.$ac_ext
3654  ac_ext=c
3655ac_cpp='$CPP $CPPFLAGS'
3656ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3657ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3658ac_compiler_gnu=$ac_cv_c_compiler_gnu
3659
3660
3661
3662
3663# Look for a C++ compiler (before anything can set CXXFLAGS)
3664CXXMAINTAINERFLAGS="$CXXUSERFLAGS"
3665CXXUSERFLAGS="$CXXFLAGS"
3666ac_ext=cpp
3667ac_cpp='$CXXCPP $CPPFLAGS'
3668ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3669ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3670ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3671if test -z "$CXX"; then
3672  if test -n "$CCC"; then
3673    CXX=$CCC
3674  else
3675    if test -n "$ac_tool_prefix"; then
3676  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3677  do
3678    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3679set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3680{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3681$as_echo_n "checking for $ac_word... " >&6; }
3682if ${ac_cv_prog_CXX+:} false; then :
3683  $as_echo_n "(cached) " >&6
3684else
3685  if test -n "$CXX"; then
3686  ac_cv_prog_CXX="$CXX" # Let the user override the test.
3687else
3688as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3689for as_dir in $PATH
3690do
3691  IFS=$as_save_IFS
3692  test -z "$as_dir" && as_dir=.
3693    for ac_exec_ext in '' $ac_executable_extensions; do
3694  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3695    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3696    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3697    break 2
3698  fi
3699done
3700  done
3701IFS=$as_save_IFS
3702
3703fi
3704fi
3705CXX=$ac_cv_prog_CXX
3706if test -n "$CXX"; then
3707  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3708$as_echo "$CXX" >&6; }
3709else
3710  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3711$as_echo "no" >&6; }
3712fi
3713
3714
3715    test -n "$CXX" && break
3716  done
3717fi
3718if test -z "$CXX"; then
3719  ac_ct_CXX=$CXX
3720  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3721do
3722  # Extract the first word of "$ac_prog", so it can be a program name with args.
3723set dummy $ac_prog; ac_word=$2
3724{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3725$as_echo_n "checking for $ac_word... " >&6; }
3726if ${ac_cv_prog_ac_ct_CXX+:} false; then :
3727  $as_echo_n "(cached) " >&6
3728else
3729  if test -n "$ac_ct_CXX"; then
3730  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3731else
3732as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3733for as_dir in $PATH
3734do
3735  IFS=$as_save_IFS
3736  test -z "$as_dir" && as_dir=.
3737    for ac_exec_ext in '' $ac_executable_extensions; do
3738  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3739    ac_cv_prog_ac_ct_CXX="$ac_prog"
3740    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3741    break 2
3742  fi
3743done
3744  done
3745IFS=$as_save_IFS
3746
3747fi
3748fi
3749ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3750if test -n "$ac_ct_CXX"; then
3751  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3752$as_echo "$ac_ct_CXX" >&6; }
3753else
3754  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3755$as_echo "no" >&6; }
3756fi
3757
3758
3759  test -n "$ac_ct_CXX" && break
3760done
3761
3762  if test "x$ac_ct_CXX" = x; then
3763    CXX="g++"
3764  else
3765    case $cross_compiling:$ac_tool_warned in
3766yes:)
3767{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3768$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3769ac_tool_warned=yes ;;
3770esac
3771    CXX=$ac_ct_CXX
3772  fi
3773fi
3774
3775  fi
3776fi
3777# Provide some information about the compiler.
3778$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3779set X $ac_compile
3780ac_compiler=$2
3781for ac_option in --version -v -V -qversion; do
3782  { { ac_try="$ac_compiler $ac_option >&5"
3783case "(($ac_try" in
3784  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3785  *) ac_try_echo=$ac_try;;
3786esac
3787eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3788$as_echo "$ac_try_echo"; } >&5
3789  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3790  ac_status=$?
3791  if test -s conftest.err; then
3792    sed '10a\
3793... rest of stderr output deleted ...
3794         10q' conftest.err >conftest.er1
3795    cat conftest.er1 >&5
3796  fi
3797  rm -f conftest.er1 conftest.err
3798  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3799  test $ac_status = 0; }
3800done
3801
3802{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3803$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3804if ${ac_cv_cxx_compiler_gnu+:} false; then :
3805  $as_echo_n "(cached) " >&6
3806else
3807  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3808/* end confdefs.h.  */
3809
3810int
3811main ()
3812{
3813#ifndef __GNUC__
3814       choke me
3815#endif
3816
3817  ;
3818  return 0;
3819}
3820_ACEOF
3821if ac_fn_cxx_try_compile "$LINENO"; then :
3822  ac_compiler_gnu=yes
3823else
3824  ac_compiler_gnu=no
3825fi
3826rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3827ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3828
3829fi
3830{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3831$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3832if test $ac_compiler_gnu = yes; then
3833  GXX=yes
3834else
3835  GXX=
3836fi
3837ac_test_CXXFLAGS=${CXXFLAGS+set}
3838ac_save_CXXFLAGS=$CXXFLAGS
3839{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3840$as_echo_n "checking whether $CXX accepts -g... " >&6; }
3841if ${ac_cv_prog_cxx_g+:} false; then :
3842  $as_echo_n "(cached) " >&6
3843else
3844  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3845   ac_cxx_werror_flag=yes
3846   ac_cv_prog_cxx_g=no
3847   CXXFLAGS="-g"
3848   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3849/* end confdefs.h.  */
3850
3851int
3852main ()
3853{
3854
3855  ;
3856  return 0;
3857}
3858_ACEOF
3859if ac_fn_cxx_try_compile "$LINENO"; then :
3860  ac_cv_prog_cxx_g=yes
3861else
3862  CXXFLAGS=""
3863      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3864/* end confdefs.h.  */
3865
3866int
3867main ()
3868{
3869
3870  ;
3871  return 0;
3872}
3873_ACEOF
3874if ac_fn_cxx_try_compile "$LINENO"; then :
3875
3876else
3877  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3878	 CXXFLAGS="-g"
3879	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3880/* end confdefs.h.  */
3881
3882int
3883main ()
3884{
3885
3886  ;
3887  return 0;
3888}
3889_ACEOF
3890if ac_fn_cxx_try_compile "$LINENO"; then :
3891  ac_cv_prog_cxx_g=yes
3892fi
3893rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3894fi
3895rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3896fi
3897rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3898   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3899fi
3900{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3901$as_echo "$ac_cv_prog_cxx_g" >&6; }
3902if test "$ac_test_CXXFLAGS" = set; then
3903  CXXFLAGS=$ac_save_CXXFLAGS
3904elif test $ac_cv_prog_cxx_g = yes; then
3905  if test "$GXX" = yes; then
3906    CXXFLAGS="-g -O2"
3907  else
3908    CXXFLAGS="-g"
3909  fi
3910else
3911  if test "$GXX" = yes; then
3912    CXXFLAGS="-O2"
3913  else
3914    CXXFLAGS=
3915  fi
3916fi
3917ac_ext=c
3918ac_cpp='$CPP $CPPFLAGS'
3919ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3920ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3921ac_compiler_gnu=$ac_cv_c_compiler_gnu
3922
3923
3924
3925  CXXFLAGS_KEEP="$CXXFLAGS"
3926  CXXFLAGS=""
3927
3928
3929  _svn_xxflags__save="$CXXFLAGS"
3930  ac_ext=cpp
3931ac_cpp='$CXXCPP $CPPFLAGS'
3932ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3933ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3934ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3935
3936  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CXX accepts -std=c++98" >&5
3937$as_echo_n "checking if $CXX accepts -std=c++98... " >&6; }
3938  CXXFLAGS="-std=c++98 $CXXFLAGS"
3939        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3940/* end confdefs.h.  */
3941int main(){}
3942_ACEOF
3943if ac_fn_cxx_try_link "$LINENO"; then :
3944
3945    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3946$as_echo "yes" >&6; }
3947
3948
3949else
3950
3951    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3952$as_echo "no" >&6; }
3953    CXXFLAGS="$_svn_xxflags__save"
3954
3955
3956fi
3957rm -f core conftest.err conftest.$ac_objext \
3958    conftest$ac_exeext conftest.$ac_ext
3959  ac_ext=c
3960ac_cpp='$CPP $CPPFLAGS'
3961ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3962ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3963ac_compiler_gnu=$ac_cv_c_compiler_gnu
3964
3965
3966
3967  CXXMODEFLAGS="$CXXFLAGS"
3968  CXXFLAGS="$CXXFLAGS_KEEP"
3969
3970
3971
3972
3973  _svn_xxflags__save="$CXXFLAGS"
3974  ac_ext=cpp
3975ac_cpp='$CXXCPP $CPPFLAGS'
3976ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3977ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3978ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3979
3980  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CXX accepts -Werror=unknown-warning-option" >&5
3981$as_echo_n "checking if $CXX accepts -Werror=unknown-warning-option... " >&6; }
3982  CXXFLAGS="-Werror=unknown-warning-option $CXXFLAGS"
3983        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3984/* end confdefs.h.  */
3985int main(){}
3986_ACEOF
3987if ac_fn_cxx_try_link "$LINENO"; then :
3988
3989    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3990$as_echo "yes" >&6; }
3991
3992
3993else
3994
3995    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3996$as_echo "no" >&6; }
3997    CXXFLAGS="$_svn_xxflags__save"
3998
3999
4000fi
4001rm -f core conftest.err conftest.$ac_objext \
4002    conftest$ac_exeext conftest.$ac_ext
4003  ac_ext=c
4004ac_cpp='$CPP $CPPFLAGS'
4005ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4006ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4007ac_compiler_gnu=$ac_cv_c_compiler_gnu
4008
4009
4010
4011
4012# Look for a C pre-processor
4013ac_ext=c
4014ac_cpp='$CPP $CPPFLAGS'
4015ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4016ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4017ac_compiler_gnu=$ac_cv_c_compiler_gnu
4018{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4019$as_echo_n "checking how to run the C preprocessor... " >&6; }
4020# On Suns, sometimes $CPP names a directory.
4021if test -n "$CPP" && test -d "$CPP"; then
4022  CPP=
4023fi
4024if test -z "$CPP"; then
4025  if ${ac_cv_prog_CPP+:} false; then :
4026  $as_echo_n "(cached) " >&6
4027else
4028      # Double quotes because CPP needs to be expanded
4029    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4030    do
4031      ac_preproc_ok=false
4032for ac_c_preproc_warn_flag in '' yes
4033do
4034  # Use a header file that comes with gcc, so configuring glibc
4035  # with a fresh cross-compiler works.
4036  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4037  # <limits.h> exists even on freestanding compilers.
4038  # On the NeXT, cc -E runs the code through the compiler's parser,
4039  # not just through cpp. "Syntax error" is here to catch this case.
4040  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4041/* end confdefs.h.  */
4042#ifdef __STDC__
4043# include <limits.h>
4044#else
4045# include <assert.h>
4046#endif
4047		     Syntax error
4048_ACEOF
4049if ac_fn_c_try_cpp "$LINENO"; then :
4050
4051else
4052  # Broken: fails on valid input.
4053continue
4054fi
4055rm -f conftest.err conftest.i conftest.$ac_ext
4056
4057  # OK, works on sane cases.  Now check whether nonexistent headers
4058  # can be detected and how.
4059  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4060/* end confdefs.h.  */
4061#include <ac_nonexistent.h>
4062_ACEOF
4063if ac_fn_c_try_cpp "$LINENO"; then :
4064  # Broken: success on invalid input.
4065continue
4066else
4067  # Passes both tests.
4068ac_preproc_ok=:
4069break
4070fi
4071rm -f conftest.err conftest.i conftest.$ac_ext
4072
4073done
4074# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4075rm -f conftest.i conftest.err conftest.$ac_ext
4076if $ac_preproc_ok; then :
4077  break
4078fi
4079
4080    done
4081    ac_cv_prog_CPP=$CPP
4082
4083fi
4084  CPP=$ac_cv_prog_CPP
4085else
4086  ac_cv_prog_CPP=$CPP
4087fi
4088{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4089$as_echo "$CPP" >&6; }
4090ac_preproc_ok=false
4091for ac_c_preproc_warn_flag in '' yes
4092do
4093  # Use a header file that comes with gcc, so configuring glibc
4094  # with a fresh cross-compiler works.
4095  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4096  # <limits.h> exists even on freestanding compilers.
4097  # On the NeXT, cc -E runs the code through the compiler's parser,
4098  # not just through cpp. "Syntax error" is here to catch this case.
4099  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4100/* end confdefs.h.  */
4101#ifdef __STDC__
4102# include <limits.h>
4103#else
4104# include <assert.h>
4105#endif
4106		     Syntax error
4107_ACEOF
4108if ac_fn_c_try_cpp "$LINENO"; then :
4109
4110else
4111  # Broken: fails on valid input.
4112continue
4113fi
4114rm -f conftest.err conftest.i conftest.$ac_ext
4115
4116  # OK, works on sane cases.  Now check whether nonexistent headers
4117  # can be detected and how.
4118  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4119/* end confdefs.h.  */
4120#include <ac_nonexistent.h>
4121_ACEOF
4122if ac_fn_c_try_cpp "$LINENO"; then :
4123  # Broken: success on invalid input.
4124continue
4125else
4126  # Passes both tests.
4127ac_preproc_ok=:
4128break
4129fi
4130rm -f conftest.err conftest.i conftest.$ac_ext
4131
4132done
4133# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4134rm -f conftest.i conftest.err conftest.$ac_ext
4135if $ac_preproc_ok; then :
4136
4137else
4138  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4139$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4140as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4141See \`config.log' for more details" "$LINENO" 5; }
4142fi
4143
4144ac_ext=c
4145ac_cpp='$CPP $CPPFLAGS'
4146ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4147ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4148ac_compiler_gnu=$ac_cv_c_compiler_gnu
4149
4150
4151# Look for a good sed
4152# AC_PROG_SED was introduced in Autoconf 2.59b
4153{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4154$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4155if ${ac_cv_path_SED+:} false; then :
4156  $as_echo_n "(cached) " >&6
4157else
4158            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4159     for ac_i in 1 2 3 4 5 6 7; do
4160       ac_script="$ac_script$as_nl$ac_script"
4161     done
4162     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4163     { ac_script=; unset ac_script;}
4164     if test -z "$SED"; then
4165  ac_path_SED_found=false
4166  # Loop through the user's path and test for each of PROGNAME-LIST
4167  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4168for as_dir in $PATH
4169do
4170  IFS=$as_save_IFS
4171  test -z "$as_dir" && as_dir=.
4172    for ac_prog in sed gsed; do
4173    for ac_exec_ext in '' $ac_executable_extensions; do
4174      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4175      as_fn_executable_p "$ac_path_SED" || continue
4176# Check for GNU ac_path_SED and select it if it is found.
4177  # Check for GNU $ac_path_SED
4178case `"$ac_path_SED" --version 2>&1` in
4179*GNU*)
4180  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4181*)
4182  ac_count=0
4183  $as_echo_n 0123456789 >"conftest.in"
4184  while :
4185  do
4186    cat "conftest.in" "conftest.in" >"conftest.tmp"
4187    mv "conftest.tmp" "conftest.in"
4188    cp "conftest.in" "conftest.nl"
4189    $as_echo '' >> "conftest.nl"
4190    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4191    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4192    as_fn_arith $ac_count + 1 && ac_count=$as_val
4193    if test $ac_count -gt ${ac_path_SED_max-0}; then
4194      # Best one so far, save it but keep looking for a better one
4195      ac_cv_path_SED="$ac_path_SED"
4196      ac_path_SED_max=$ac_count
4197    fi
4198    # 10*(2^10) chars as input seems more than enough
4199    test $ac_count -gt 10 && break
4200  done
4201  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4202esac
4203
4204      $ac_path_SED_found && break 3
4205    done
4206  done
4207  done
4208IFS=$as_save_IFS
4209  if test -z "$ac_cv_path_SED"; then
4210    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4211  fi
4212else
4213  ac_cv_path_SED=$SED
4214fi
4215
4216fi
4217{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4218$as_echo "$ac_cv_path_SED" >&6; }
4219 SED="$ac_cv_path_SED"
4220  rm -f conftest.sed
4221
4222
4223# Grab target_cpu, so we can use it in the Solaris pkginfo file
4224# Make sure we can run config.sub.
4225$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4226  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4227
4228{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4229$as_echo_n "checking build system type... " >&6; }
4230if ${ac_cv_build+:} false; then :
4231  $as_echo_n "(cached) " >&6
4232else
4233  ac_build_alias=$build_alias
4234test "x$ac_build_alias" = x &&
4235  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4236test "x$ac_build_alias" = x &&
4237  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4238ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4239  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4240
4241fi
4242{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4243$as_echo "$ac_cv_build" >&6; }
4244case $ac_cv_build in
4245*-*-*) ;;
4246*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4247esac
4248build=$ac_cv_build
4249ac_save_IFS=$IFS; IFS='-'
4250set x $ac_cv_build
4251shift
4252build_cpu=$1
4253build_vendor=$2
4254shift; shift
4255# Remember, the first character of IFS is used to create $*,
4256# except with old shells:
4257build_os=$*
4258IFS=$ac_save_IFS
4259case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4260
4261
4262{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4263$as_echo_n "checking host system type... " >&6; }
4264if ${ac_cv_host+:} false; then :
4265  $as_echo_n "(cached) " >&6
4266else
4267  if test "x$host_alias" = x; then
4268  ac_cv_host=$ac_cv_build
4269else
4270  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4271    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4272fi
4273
4274fi
4275{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4276$as_echo "$ac_cv_host" >&6; }
4277case $ac_cv_host in
4278*-*-*) ;;
4279*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4280esac
4281host=$ac_cv_host
4282ac_save_IFS=$IFS; IFS='-'
4283set x $ac_cv_host
4284shift
4285host_cpu=$1
4286host_vendor=$2
4287shift; shift
4288# Remember, the first character of IFS is used to create $*,
4289# except with old shells:
4290host_os=$*
4291IFS=$ac_save_IFS
4292case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4293
4294
4295{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
4296$as_echo_n "checking target system type... " >&6; }
4297if ${ac_cv_target+:} false; then :
4298  $as_echo_n "(cached) " >&6
4299else
4300  if test "x$target_alias" = x; then
4301  ac_cv_target=$ac_cv_host
4302else
4303  ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
4304    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
4305fi
4306
4307fi
4308{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
4309$as_echo "$ac_cv_target" >&6; }
4310case $ac_cv_target in
4311*-*-*) ;;
4312*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
4313esac
4314target=$ac_cv_target
4315ac_save_IFS=$IFS; IFS='-'
4316set x $ac_cv_target
4317shift
4318target_cpu=$1
4319target_vendor=$2
4320shift; shift
4321# Remember, the first character of IFS is used to create $*,
4322# except with old shells:
4323target_os=$*
4324IFS=$ac_save_IFS
4325case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
4326
4327
4328# The aliases save the names the user supplied, while $host etc.
4329# will get canonicalized.
4330test -n "$target_alias" &&
4331  test "$program_prefix$program_suffix$program_transform_name" = \
4332    NONENONEs,x,x, &&
4333  program_prefix=${target_alias}-
4334
4335# Look for an extended grep
4336{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4337$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4338if ${ac_cv_path_GREP+:} false; then :
4339  $as_echo_n "(cached) " >&6
4340else
4341  if test -z "$GREP"; then
4342  ac_path_GREP_found=false
4343  # Loop through the user's path and test for each of PROGNAME-LIST
4344  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4345for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4346do
4347  IFS=$as_save_IFS
4348  test -z "$as_dir" && as_dir=.
4349    for ac_prog in grep ggrep; do
4350    for ac_exec_ext in '' $ac_executable_extensions; do
4351      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4352      as_fn_executable_p "$ac_path_GREP" || continue
4353# Check for GNU ac_path_GREP and select it if it is found.
4354  # Check for GNU $ac_path_GREP
4355case `"$ac_path_GREP" --version 2>&1` in
4356*GNU*)
4357  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4358*)
4359  ac_count=0
4360  $as_echo_n 0123456789 >"conftest.in"
4361  while :
4362  do
4363    cat "conftest.in" "conftest.in" >"conftest.tmp"
4364    mv "conftest.tmp" "conftest.in"
4365    cp "conftest.in" "conftest.nl"
4366    $as_echo 'GREP' >> "conftest.nl"
4367    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4368    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4369    as_fn_arith $ac_count + 1 && ac_count=$as_val
4370    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4371      # Best one so far, save it but keep looking for a better one
4372      ac_cv_path_GREP="$ac_path_GREP"
4373      ac_path_GREP_max=$ac_count
4374    fi
4375    # 10*(2^10) chars as input seems more than enough
4376    test $ac_count -gt 10 && break
4377  done
4378  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4379esac
4380
4381      $ac_path_GREP_found && break 3
4382    done
4383  done
4384  done
4385IFS=$as_save_IFS
4386  if test -z "$ac_cv_path_GREP"; then
4387    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4388  fi
4389else
4390  ac_cv_path_GREP=$GREP
4391fi
4392
4393fi
4394{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4395$as_echo "$ac_cv_path_GREP" >&6; }
4396 GREP="$ac_cv_path_GREP"
4397
4398
4399{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4400$as_echo_n "checking for egrep... " >&6; }
4401if ${ac_cv_path_EGREP+:} false; then :
4402  $as_echo_n "(cached) " >&6
4403else
4404  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4405   then ac_cv_path_EGREP="$GREP -E"
4406   else
4407     if test -z "$EGREP"; then
4408  ac_path_EGREP_found=false
4409  # Loop through the user's path and test for each of PROGNAME-LIST
4410  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4411for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4412do
4413  IFS=$as_save_IFS
4414  test -z "$as_dir" && as_dir=.
4415    for ac_prog in egrep; do
4416    for ac_exec_ext in '' $ac_executable_extensions; do
4417      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4418      as_fn_executable_p "$ac_path_EGREP" || continue
4419# Check for GNU ac_path_EGREP and select it if it is found.
4420  # Check for GNU $ac_path_EGREP
4421case `"$ac_path_EGREP" --version 2>&1` in
4422*GNU*)
4423  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4424*)
4425  ac_count=0
4426  $as_echo_n 0123456789 >"conftest.in"
4427  while :
4428  do
4429    cat "conftest.in" "conftest.in" >"conftest.tmp"
4430    mv "conftest.tmp" "conftest.in"
4431    cp "conftest.in" "conftest.nl"
4432    $as_echo 'EGREP' >> "conftest.nl"
4433    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4434    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4435    as_fn_arith $ac_count + 1 && ac_count=$as_val
4436    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4437      # Best one so far, save it but keep looking for a better one
4438      ac_cv_path_EGREP="$ac_path_EGREP"
4439      ac_path_EGREP_max=$ac_count
4440    fi
4441    # 10*(2^10) chars as input seems more than enough
4442    test $ac_count -gt 10 && break
4443  done
4444  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4445esac
4446
4447      $ac_path_EGREP_found && break 3
4448    done
4449  done
4450  done
4451IFS=$as_save_IFS
4452  if test -z "$ac_cv_path_EGREP"; then
4453    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4454  fi
4455else
4456  ac_cv_path_EGREP=$EGREP
4457fi
4458
4459   fi
4460fi
4461{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4462$as_echo "$ac_cv_path_EGREP" >&6; }
4463 EGREP="$ac_cv_path_EGREP"
4464
4465
4466
4467{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4468$as_echo_n "checking whether ln -s works... " >&6; }
4469LN_S=$as_ln_s
4470if test "$LN_S" = "ln -s"; then
4471  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4472$as_echo "yes" >&6; }
4473else
4474  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4475$as_echo "no, using $LN_S" >&6; }
4476fi
4477
4478
4479# Find a good install program.  We prefer a C program (faster),
4480# so one script is as good as another.  But avoid the broken or
4481# incompatible versions:
4482# SysV /etc/install, /usr/sbin/install
4483# SunOS /usr/etc/install
4484# IRIX /sbin/install
4485# AIX /bin/install
4486# AmigaOS /C/install, which installs bootblocks on floppy discs
4487# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4488# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4489# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4490# OS/2's system install, which has a completely different semantic
4491# ./install, which can be erroneously created by make from ./install.sh.
4492# Reject install programs that cannot install multiple files.
4493{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4494$as_echo_n "checking for a BSD-compatible install... " >&6; }
4495if test -z "$INSTALL"; then
4496if ${ac_cv_path_install+:} false; then :
4497  $as_echo_n "(cached) " >&6
4498else
4499  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4500for as_dir in $PATH
4501do
4502  IFS=$as_save_IFS
4503  test -z "$as_dir" && as_dir=.
4504    # Account for people who put trailing slashes in PATH elements.
4505case $as_dir/ in #((
4506  ./ | .// | /[cC]/* | \
4507  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4508  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4509  /usr/ucb/* ) ;;
4510  *)
4511    # OSF1 and SCO ODT 3.0 have their own names for install.
4512    # Don't use installbsd from OSF since it installs stuff as root
4513    # by default.
4514    for ac_prog in ginstall scoinst install; do
4515      for ac_exec_ext in '' $ac_executable_extensions; do
4516	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4517	  if test $ac_prog = install &&
4518	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4519	    # AIX install.  It has an incompatible calling convention.
4520	    :
4521	  elif test $ac_prog = install &&
4522	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4523	    # program-specific install script used by HP pwplus--don't use.
4524	    :
4525	  else
4526	    rm -rf conftest.one conftest.two conftest.dir
4527	    echo one > conftest.one
4528	    echo two > conftest.two
4529	    mkdir conftest.dir
4530	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4531	      test -s conftest.one && test -s conftest.two &&
4532	      test -s conftest.dir/conftest.one &&
4533	      test -s conftest.dir/conftest.two
4534	    then
4535	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4536	      break 3
4537	    fi
4538	  fi
4539	fi
4540      done
4541    done
4542    ;;
4543esac
4544
4545  done
4546IFS=$as_save_IFS
4547
4548rm -rf conftest.one conftest.two conftest.dir
4549
4550fi
4551  if test "${ac_cv_path_install+set}" = set; then
4552    INSTALL=$ac_cv_path_install
4553  else
4554    # As a last resort, use the slow shell script.  Don't cache a
4555    # value for INSTALL within a source directory, because that will
4556    # break other packages using the cache if that directory is
4557    # removed, or if the value is a relative name.
4558    INSTALL=$ac_install_sh
4559  fi
4560fi
4561{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4562$as_echo "$INSTALL" >&6; }
4563
4564# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4565# It thinks the first close brace ends the variable substitution.
4566test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4567
4568test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4569
4570test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4571
4572# If $INSTALL is relative path to our fallback install-sh, then convert
4573# to an absolute path, as in some cases (e.g. Solaris VPATH build), libtool
4574# may try to use it from a changed working directory.
4575if test "$INSTALL" = "build/install-sh -c"; then
4576  INSTALL="$abs_srcdir/$INSTALL"
4577fi
4578
4579if test -z "$MKDIR"; then
4580  MKDIR="$INSTALL -d"
4581fi
4582
4583
4584# ==== Libraries, for which we may have source to build ======================
4585
4586
4587APR_VER_REGEXES="0\.9\.[7-9] 0\.9\.[12][0-9] 1\. 2\."
4588
4589
4590  APR_WANTED_REGEXES="$APR_VER_REGEXES"
4591
4592  { $as_echo "$as_me:${as_lineno-$LINENO}: Apache Portable Runtime (APR) library configuration" >&5
4593$as_echo "$as_me: Apache Portable Runtime (APR) library configuration" >&6;}
4594
4595
4596  apr_found="no"
4597
4598  if test "$ac_cv_emxos2" = "yes"; then
4599    # Scripts don't pass test -x on OS/2
4600    TEST_X="test -f"
4601  else
4602    TEST_X="test -x"
4603  fi
4604
4605  acceptable_majors="1 0"
4606
4607  apr_temp_acceptable_apr_config=""
4608  for apr_temp_major in $acceptable_majors
4609  do
4610    case $apr_temp_major in
4611      0)
4612      apr_temp_acceptable_apr_config="$apr_temp_acceptable_apr_config apr-config"
4613      ;;
4614      *)
4615      apr_temp_acceptable_apr_config="$apr_temp_acceptable_apr_config apr-$apr_temp_major-config"
4616      ;;
4617    esac
4618  done
4619
4620  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for APR" >&5
4621$as_echo_n "checking for APR... " >&6; }
4622
4623# Check whether --with-apr was given.
4624if test "${with_apr+set}" = set; then :
4625  withval=$with_apr;
4626    if test "$withval" = "no" || test "$withval" = "yes"; then
4627      as_fn_error $? "--with-apr requires a directory or file to be provided" "$LINENO" 5
4628    fi
4629
4630    for apr_temp_apr_config_file in $apr_temp_acceptable_apr_config
4631    do
4632      for lookdir in "$withval/bin" "$withval"
4633      do
4634        if $TEST_X "$lookdir/$apr_temp_apr_config_file"; then
4635          apr_found="yes"
4636          apr_config="$lookdir/$apr_temp_apr_config_file"
4637          break 2
4638        fi
4639      done
4640    done
4641
4642    if test "$apr_found" != "yes" && $TEST_X "$withval" && $withval --help > /dev/null 2>&1 ; then
4643      apr_found="yes"
4644      apr_config="$withval"
4645    fi
4646
4647            if test "$apr_found" != "yes"; then
4648      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
4649    fi
4650
4651else
4652
4653        if test -d """"; then
4654      apr_temp_abs_srcdir="`cd "" && pwd`"
4655      apr_found="reconfig"
4656      apr_bundled_major="`sed -n '/#define.*APR_MAJOR_VERSION/s/^[^0-9]*\([0-9]*\).*$/\1/p' \"""/include/apr_version.h\"`"
4657      case $apr_bundled_major in
4658        "")
4659          as_fn_error $? "failed to find major version of bundled APR" "$LINENO" 5
4660        ;;
4661        0)
4662          apr_temp_apr_config_file="apr-config"
4663        ;;
4664        *)
4665          apr_temp_apr_config_file="apr-$apr_bundled_major-config"
4666        ;;
4667      esac
4668      if test -n """"; then
4669        apr_config="""/$apr_temp_apr_config_file"
4670      else
4671        apr_config="""/$apr_temp_apr_config_file"
4672      fi
4673    fi
4674    if test "$apr_found" = "no" && test -n "1" && test "1" = "1"; then
4675      for apr_temp_apr_config_file in $apr_temp_acceptable_apr_config
4676      do
4677        if $apr_temp_apr_config_file --help > /dev/null 2>&1 ; then
4678          apr_found="yes"
4679          apr_config="$apr_temp_apr_config_file"
4680          break
4681        else
4682                    for lookdir in /usr /usr/local /opt/apr /usr/local/apache2 ; do
4683            if $TEST_X "$lookdir/bin/$apr_temp_apr_config_file"; then
4684              apr_found="yes"
4685              apr_config="$lookdir/bin/$apr_temp_apr_config_file"
4686              break 2
4687            fi
4688          done
4689        fi
4690      done
4691    fi
4692
4693fi
4694
4695
4696  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_found" >&5
4697$as_echo "$apr_found" >&6; }
4698
4699
4700  if test $apr_found = "no"; then
4701    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: APR not found" >&5
4702$as_echo "$as_me: WARNING: APR not found" >&2;}
4703
4704  echo "The Apache Portable Runtime (APR) library cannot be found."
4705  echo "Please install APR on this system and configure Subversion"
4706  echo "with the appropriate --with-apr option."
4707  echo ""
4708  echo "You probably need to do something similar with the Apache"
4709  echo "Portable Runtime Utility (APRUTIL) library and then configure"
4710  echo "Subversion with both the --with-apr and --with-apr-util options."
4711  echo ""
4712  as_fn_error $? "no suitable APR found" "$LINENO" 5
4713
4714  fi
4715
4716  if test $apr_found = "reconfig"; then
4717    as_fn_error $? "Unexpected APR reconfig" "$LINENO" 5
4718  fi
4719
4720
4721  { $as_echo "$as_me:${as_lineno-$LINENO}: checking APR version" >&5
4722$as_echo_n "checking APR version... " >&6; }
4723  apr_version="`$apr_config --version`"
4724  if test $? -ne 0; then
4725    as_fn_error $? "apr-config --version failed" "$LINENO" 5
4726  fi
4727  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_version" >&5
4728$as_echo "$apr_version" >&6; }
4729
4730  APR_WANTED_REGEX_MATCH=0
4731  for apr_wanted_regex in $APR_WANTED_REGEXES; do
4732    if test `expr $apr_version : $apr_wanted_regex` -ne 0; then
4733      APR_WANTED_REGEX_MATCH=1
4734      break
4735    fi
4736  done
4737
4738  if test $APR_WANTED_REGEX_MATCH -eq 0; then
4739    echo "wanted regexes are $APR_WANTED_REGEXES"
4740    as_fn_error $? "invalid apr version found" "$LINENO" 5
4741  fi
4742
4743
4744  CPPFLAGS="$CPPFLAGS `$apr_config --cppflags`"
4745  if test $? -ne 0; then
4746    as_fn_error $? "apr-config --cppflags failed" "$LINENO" 5
4747  fi
4748
4749  CFLAGS="$CFLAGS `$apr_config --cflags`"
4750  if test $? -ne 0; then
4751    as_fn_error $? "apr-config --cflags failed" "$LINENO" 5
4752  fi
4753
4754  apr_ldflags="`$apr_config --ldflags`"
4755  if test $? -ne 0; then
4756    as_fn_error $? "apr-config --ldflags failed" "$LINENO" 5
4757  fi
4758  LDFLAGS="$LDFLAGS `
4759  input_flags="$apr_ldflags"
4760  output_flags=""
4761  filtered_dirs="/lib /lib64 /usr/lib /usr/lib64"
4762  for flag in $input_flags; do
4763    filter="no"
4764    for dir in $filtered_dirs; do
4765      if test "$flag" = "-L$dir" || test "$flag" = "-L$dir/"; then
4766        filter="yes"
4767        break
4768      fi
4769    done
4770    if test "$filter" = "no"; then
4771      output_flags="$output_flags $flag"
4772    fi
4773  done
4774  if test -n "$output_flags"; then
4775    printf "%s" "${output_flags# }"
4776  fi
4777`"
4778
4779  SVN_APR_INCLUDES="`$apr_config --includes`"
4780  if test $? -ne 0; then
4781    as_fn_error $? "apr-config --includes failed" "$LINENO" 5
4782  fi
4783
4784  if test "$enable_all_static" = "yes"; then
4785    SVN_APR_LIBS="`$apr_config --link-ld --libs`"
4786    if test $? -ne 0; then
4787      as_fn_error $? "apr-config --link-ld --libs failed" "$LINENO" 5
4788    fi
4789  else
4790    SVN_APR_LIBS="`$apr_config --link-ld`"
4791    if test $? -ne 0; then
4792      as_fn_error $? "apr-config --link-ld failed" "$LINENO" 5
4793    fi
4794  fi
4795  SVN_APR_LIBS="`
4796  input_flags="$SVN_APR_LIBS"
4797  output_flags=""
4798  filtered_dirs="/lib /lib64 /usr/lib /usr/lib64"
4799  for flag in $input_flags; do
4800    filter="no"
4801    for dir in $filtered_dirs; do
4802      if test "$flag" = "-L$dir" || test "$flag" = "-L$dir/"; then
4803        filter="yes"
4804        break
4805      fi
4806    done
4807    if test "$filter" = "no"; then
4808      output_flags="$output_flags $flag"
4809    fi
4810  done
4811  if test -n "$output_flags"; then
4812    printf "%s" "${output_flags# }"
4813  fi
4814`"
4815
4816  SVN_APR_SHLIB_PATH_VAR="`$apr_config --shlib-path-var`"
4817  if test $? -ne 0; then
4818    as_fn_error $? "apr-config --shlib-path-var failed" "$LINENO" 5
4819  fi
4820
4821  SVN_APR_CONFIG="$apr_config"
4822
4823
4824
4825
4826
4827
4828if test `expr $apr_version : 2` -ne 0; then
4829      svn_lib_ver=2
4830    apu_config=$apr_config
4831
4832  SVN_APRUTIL_CONFIG="$apu_config"
4833
4834
4835else
4836  svn_lib_ver=0
4837  APU_VER_REGEXES="0\.9\.[7-9] 0\.9\.1[0-9] 1\."
4838
4839  APRUTIL_WANTED_REGEXES="$APU_VER_REGEXES"
4840
4841  { $as_echo "$as_me:${as_lineno-$LINENO}: Apache Portable Runtime Utility (APRUTIL) library configuration" >&5
4842$as_echo "$as_me: Apache Portable Runtime Utility (APRUTIL) library configuration" >&6;}
4843
4844
4845  apu_found="no"
4846
4847  if test "$ac_cv_emxos2" = "yes"; then
4848    # Scripts don't pass test -x on OS/2
4849    TEST_X="test -f"
4850  else
4851    TEST_X="test -x"
4852  fi
4853
4854  acceptable_majors="1 0"
4855
4856  apu_temp_acceptable_apu_config=""
4857  for apu_temp_major in $acceptable_majors
4858  do
4859    case $apu_temp_major in
4860      0)
4861      apu_temp_acceptable_apu_config="$apu_temp_acceptable_apu_config apu-config"
4862      ;;
4863      *)
4864      apu_temp_acceptable_apu_config="$apu_temp_acceptable_apu_config apu-$apu_temp_major-config"
4865      ;;
4866    esac
4867  done
4868
4869  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for APR-util" >&5
4870$as_echo_n "checking for APR-util... " >&6; }
4871
4872# Check whether --with-apr-util was given.
4873if test "${with_apr_util+set}" = set; then :
4874  withval=$with_apr_util;
4875    if test "$withval" = "no" || test "$withval" = "yes"; then
4876      as_fn_error $? "--with-apr-util requires a directory or file to be provided" "$LINENO" 5
4877    fi
4878
4879    for apu_temp_apu_config_file in $apu_temp_acceptable_apu_config
4880    do
4881      for lookdir in "$withval/bin" "$withval"
4882      do
4883        if $TEST_X "$lookdir/$apu_temp_apu_config_file"; then
4884          apu_found="yes"
4885          apu_config="$lookdir/$apu_temp_apu_config_file"
4886          break 2
4887        fi
4888      done
4889    done
4890
4891    if test "$apu_found" != "yes" && $TEST_X "$withval" && $withval --help > /dev/null 2>&1 ; then
4892      apu_found="yes"
4893      apu_config="$withval"
4894    fi
4895
4896            if test "$apu_found" != "yes"; then
4897      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
4898    fi
4899
4900else
4901
4902        if test -d """"; then
4903      apu_temp_abs_srcdir="`cd "" && pwd`"
4904      apu_found="reconfig"
4905      apu_bundled_major="`sed -n '/#define.*APU_MAJOR_VERSION/s/^[^0-9]*\([0-9]*\).*$/\1/p' \"""/include/apu_version.h\"`"
4906      case $apu_bundled_major in
4907        "")
4908          as_fn_error $? "failed to find major version of bundled APU" "$LINENO" 5
4909        ;;
4910        0)
4911          apu_temp_apu_config_file="apu-config"
4912        ;;
4913        *)
4914          apu_temp_apu_config_file="apu-$apu_bundled_major-config"
4915        ;;
4916      esac
4917      if test -n """"; then
4918        apu_config="""/$apu_temp_apu_config_file"
4919      else
4920        apu_config="""/$apu_temp_apu_config_file"
4921      fi
4922    fi
4923    if test "$apu_found" = "no" && test -n "1" && test "1" = "1"; then
4924      for apu_temp_apu_config_file in $apu_temp_acceptable_apu_config
4925      do
4926        if $apu_temp_apu_config_file --help > /dev/null 2>&1 ; then
4927          apu_found="yes"
4928          apu_config="$apu_temp_apu_config_file"
4929          break
4930        else
4931                    for lookdir in /usr /usr/local /opt/apr /usr/local/apache2 ; do
4932            if $TEST_X "$lookdir/bin/$apu_temp_apu_config_file"; then
4933              apu_found="yes"
4934              apu_config="$lookdir/bin/$apu_temp_apu_config_file"
4935              break 2
4936            fi
4937          done
4938        fi
4939      done
4940    fi
4941
4942fi
4943
4944
4945  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apu_found" >&5
4946$as_echo "$apu_found" >&6; }
4947
4948
4949  if test $apu_found = "no"; then
4950    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: APRUTIL not found" >&5
4951$as_echo "$as_me: WARNING: APRUTIL not found" >&2;}
4952
4953  echo "The Apache Portable Runtime Utility (APRUTIL) library cannot be found."
4954  echo "Install APRUTIL on this system and configure Subversion with the"
4955  echo " appropriate --with-apr-util option."
4956  echo ""
4957  as_fn_error $? "no suitable APRUTIL found" "$LINENO" 5
4958
4959  fi
4960
4961  if test $apu_found = "reconfig"; then
4962    as_fn_error $? "Unexpected APRUTIL reconfig" "$LINENO" 5
4963  fi
4964
4965
4966  { $as_echo "$as_me:${as_lineno-$LINENO}: checking APRUTIL version" >&5
4967$as_echo_n "checking APRUTIL version... " >&6; }
4968  apu_version="`$apu_config --version`"
4969  if test $? -ne 0; then
4970    # This is a hack as suggested by Ben Collins-Sussman.  It can be
4971    # removed after apache 2.0.44 has been released.  (The apu-config
4972    # shipped in 2.0.43 contains a correct version number, but
4973    # stupidly doesn't understand the --version switch.)
4974    apu_version=`grep "APRUTIL_DOTTED_VERSION=" $(which $apu_config) | tr -d "APRUTIL_DOTTED_VERSION="| tr -d '"'`
4975    #AC_MSG_ERROR([
4976    #    apu-config --version failed.
4977    #    Your apu-config doesn't support the --version switch, please upgrade
4978    #    to APR-UTIL more recent than 2002-Nov-05.])
4979  fi
4980  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apu_version" >&5
4981$as_echo "$apu_version" >&6; }
4982
4983  APU_WANTED_REGEX_MATCH=0
4984  for apu_wanted_regex in $APRUTIL_WANTED_REGEXES; do
4985    if test `expr $apu_version : $apu_wanted_regex` -ne 0; then
4986      APU_WANTED_REGEX_MATCH=1
4987      break
4988    fi
4989  done
4990
4991  if test $APU_WANTED_REGEX_MATCH -eq 0; then
4992    echo "wanted regexes are $APRUTIL_WANTED_REGEXES"
4993    as_fn_error $? "invalid APRUTIL version found" "$LINENO" 5
4994  fi
4995
4996
4997  apu_ldflags="`$apu_config --ldflags`"
4998  if test $? -ne 0; then
4999    as_fn_error $? "apu-config --ldflags failed" "$LINENO" 5
5000  fi
5001  LDFLAGS="$LDFLAGS `
5002  input_flags="$apu_ldflags"
5003  output_flags=""
5004  filtered_dirs="/lib /lib64 /usr/lib /usr/lib64"
5005  for flag in $input_flags; do
5006    filter="no"
5007    for dir in $filtered_dirs; do
5008      if test "$flag" = "-L$dir" || test "$flag" = "-L$dir/"; then
5009        filter="yes"
5010        break
5011      fi
5012    done
5013    if test "$filter" = "no"; then
5014      output_flags="$output_flags $flag"
5015    fi
5016  done
5017  if test -n "$output_flags"; then
5018    printf "%s" "${output_flags# }"
5019  fi
5020`"
5021
5022  SVN_APRUTIL_INCLUDES="`$apu_config --includes`"
5023  if test $? -ne 0; then
5024    as_fn_error $? "apu-config --includes failed" "$LINENO" 5
5025  fi
5026
5027  if test "$enable_all_static" = "yes"; then
5028    SVN_APRUTIL_LIBS="`$apu_config --link-ld --libs`"
5029    if test $? -ne 0; then
5030      as_fn_error $? "apu-config --link-ld --libs failed" "$LINENO" 5
5031    fi
5032  else
5033    SVN_APRUTIL_LIBS="`$apu_config --link-ld`"
5034    if test $? -ne 0; then
5035      as_fn_error $? "apu-config --link-ld failed" "$LINENO" 5
5036    fi
5037  fi
5038  SVN_APRUTIL_LIBS="`
5039  input_flags="$SVN_APRUTIL_LIBS"
5040  output_flags=""
5041  filtered_dirs="/lib /lib64 /usr/lib /usr/lib64"
5042  for flag in $input_flags; do
5043    filter="no"
5044    for dir in $filtered_dirs; do
5045      if test "$flag" = "-L$dir" || test "$flag" = "-L$dir/"; then
5046        filter="yes"
5047        break
5048      fi
5049    done
5050    if test "$filter" = "no"; then
5051      output_flags="$output_flags $flag"
5052    fi
5053  done
5054  if test -n "$output_flags"; then
5055    printf "%s" "${output_flags# }"
5056  fi
5057`"
5058
5059
5060  SVN_APRUTIL_CONFIG="$apu_config"
5061
5062
5063
5064    SVN_HAVE_OLD_EXPAT="`$apu_config --old-expat`"
5065  if test "$SVN_HAVE_OLD_EXPAT" = "yes"; then
5066
5067$as_echo "#define SVN_HAVE_OLD_EXPAT 1" >>confdefs.h
5068
5069  fi
5070
5071fi
5072SVN_LT_SOVERSION="-version-info $svn_lib_ver"
5073
5074
5075cat >>confdefs.h <<_ACEOF
5076#define SVN_SOVERSION $svn_lib_ver
5077_ACEOF
5078
5079
5080# Extract the first word of "pkg-config", so it can be a program name with args.
5081set dummy pkg-config; ac_word=$2
5082{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5083$as_echo_n "checking for $ac_word... " >&6; }
5084if ${ac_cv_path_PKG_CONFIG+:} false; then :
5085  $as_echo_n "(cached) " >&6
5086else
5087  case $PKG_CONFIG in
5088  [\\/]* | ?:[\\/]*)
5089  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5090  ;;
5091  *)
5092  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5093for as_dir in $PATH
5094do
5095  IFS=$as_save_IFS
5096  test -z "$as_dir" && as_dir=.
5097    for ac_exec_ext in '' $ac_executable_extensions; do
5098  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5099    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5100    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5101    break 2
5102  fi
5103done
5104  done
5105IFS=$as_save_IFS
5106
5107  ;;
5108esac
5109fi
5110PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5111if test -n "$PKG_CONFIG"; then
5112  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5113$as_echo "$PKG_CONFIG" >&6; }
5114else
5115  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5116$as_echo "no" >&6; }
5117fi
5118
5119
5120
5121
5122{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5123$as_echo_n "checking for ANSI C header files... " >&6; }
5124if ${ac_cv_header_stdc+:} false; then :
5125  $as_echo_n "(cached) " >&6
5126else
5127  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5128/* end confdefs.h.  */
5129#include <stdlib.h>
5130#include <stdarg.h>
5131#include <string.h>
5132#include <float.h>
5133
5134int
5135main ()
5136{
5137
5138  ;
5139  return 0;
5140}
5141_ACEOF
5142if ac_fn_c_try_compile "$LINENO"; then :
5143  ac_cv_header_stdc=yes
5144else
5145  ac_cv_header_stdc=no
5146fi
5147rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5148
5149if test $ac_cv_header_stdc = yes; then
5150  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5151  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5152/* end confdefs.h.  */
5153#include <string.h>
5154
5155_ACEOF
5156if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5157  $EGREP "memchr" >/dev/null 2>&1; then :
5158
5159else
5160  ac_cv_header_stdc=no
5161fi
5162rm -f conftest*
5163
5164fi
5165
5166if test $ac_cv_header_stdc = yes; then
5167  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5168  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5169/* end confdefs.h.  */
5170#include <stdlib.h>
5171
5172_ACEOF
5173if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5174  $EGREP "free" >/dev/null 2>&1; then :
5175
5176else
5177  ac_cv_header_stdc=no
5178fi
5179rm -f conftest*
5180
5181fi
5182
5183if test $ac_cv_header_stdc = yes; then
5184  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5185  if test "$cross_compiling" = yes; then :
5186  :
5187else
5188  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5189/* end confdefs.h.  */
5190#include <ctype.h>
5191#include <stdlib.h>
5192#if ((' ' & 0x0FF) == 0x020)
5193# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5194# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5195#else
5196# define ISLOWER(c) \
5197		   (('a' <= (c) && (c) <= 'i') \
5198		     || ('j' <= (c) && (c) <= 'r') \
5199		     || ('s' <= (c) && (c) <= 'z'))
5200# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5201#endif
5202
5203#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5204int
5205main ()
5206{
5207  int i;
5208  for (i = 0; i < 256; i++)
5209    if (XOR (islower (i), ISLOWER (i))
5210	|| toupper (i) != TOUPPER (i))
5211      return 2;
5212  return 0;
5213}
5214_ACEOF
5215if ac_fn_c_try_run "$LINENO"; then :
5216
5217else
5218  ac_cv_header_stdc=no
5219fi
5220rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5221  conftest.$ac_objext conftest.beam conftest.$ac_ext
5222fi
5223
5224fi
5225fi
5226{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5227$as_echo "$ac_cv_header_stdc" >&6; }
5228if test $ac_cv_header_stdc = yes; then
5229
5230$as_echo "#define STDC_HEADERS 1" >>confdefs.h
5231
5232fi
5233
5234# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5235for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5236		  inttypes.h stdint.h unistd.h
5237do :
5238  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5239ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5240"
5241if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5242  cat >>confdefs.h <<_ACEOF
5243#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5244_ACEOF
5245
5246fi
5247
5248done
5249
5250
5251
5252  serf_found=no
5253  serf_required=no
5254  serf_skip=no
5255
5256  serf_check_major="1"
5257  serf_check_minor="2"
5258  serf_check_patch="1"
5259  serf_check_version="1.2.1"
5260
5261
5262# Check whether --with-serf was given.
5263if test "${with_serf+set}" = set; then :
5264  withval=$with_serf;
5265    if test "$withval" = "yes" ; then
5266      serf_required=yes
5267    elif test "$withval" = "no" ; then
5268      serf_skip=yes
5269    else
5270
5271  { $as_echo "$as_me:${as_lineno-$LINENO}: serf library configuration via prefix" >&5
5272$as_echo "$as_me: serf library configuration via prefix" >&6;}
5273  serf_required=yes
5274  serf_prefix=$withval
5275  for serf_major in serf-2 serf-1; do
5276    if ! test -d $serf_prefix/include/$serf_major; then continue; fi
5277    save_cppflags="$CPPFLAGS"
5278    CPPFLAGS="$CPPFLAGS $SVN_APR_INCLUDES $SVN_APRUTIL_INCLUDES -I$serf_prefix/include/$serf_major"
5279    for ac_header in serf.h
5280do :
5281  ac_fn_c_check_header_mongrel "$LINENO" "serf.h" "ac_cv_header_serf_h" "$ac_includes_default"
5282if test "x$ac_cv_header_serf_h" = xyes; then :
5283  cat >>confdefs.h <<_ACEOF
5284#define HAVE_SERF_H 1
5285_ACEOF
5286
5287      save_ldflags="$LDFLAGS"
5288      LDFLAGS="$LDFLAGS `
5289  input_flags="-L$serf_prefix/lib"
5290  output_flags=""
5291  filtered_dirs="/lib /lib64 /usr/lib /usr/lib64"
5292  for flag in $input_flags; do
5293    filter="no"
5294    for dir in $filtered_dirs; do
5295      if test "$flag" = "-L$dir" || test "$flag" = "-L$dir/"; then
5296        filter="yes"
5297        break
5298      fi
5299    done
5300    if test "$filter" = "no"; then
5301      output_flags="$output_flags $flag"
5302    fi
5303  done
5304  if test -n "$output_flags"; then
5305    printf "%s" "${output_flags# }"
5306  fi
5307`"
5308      as_ac_Lib=`$as_echo "ac_cv_lib_$serf_major''_serf_context_create" | $as_tr_sh`
5309{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for serf_context_create in -l$serf_major" >&5
5310$as_echo_n "checking for serf_context_create in -l$serf_major... " >&6; }
5311if eval \${$as_ac_Lib+:} false; then :
5312  $as_echo_n "(cached) " >&6
5313else
5314  ac_check_lib_save_LIBS=$LIBS
5315LIBS="-l$serf_major $SVN_APRUTIL_LIBS $SVN_APR_LIBS -lz $LIBS"
5316cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5317/* end confdefs.h.  */
5318
5319/* Override any GCC internal prototype to avoid an error.
5320   Use char because int might match the return type of a GCC
5321   builtin and then its argument prototype would still apply.  */
5322#ifdef __cplusplus
5323extern "C"
5324#endif
5325char serf_context_create ();
5326int
5327main ()
5328{
5329return serf_context_create ();
5330  ;
5331  return 0;
5332}
5333_ACEOF
5334if ac_fn_c_try_link "$LINENO"; then :
5335  eval "$as_ac_Lib=yes"
5336else
5337  eval "$as_ac_Lib=no"
5338fi
5339rm -f core conftest.err conftest.$ac_objext \
5340    conftest$ac_exeext conftest.$ac_ext
5341LIBS=$ac_check_lib_save_LIBS
5342fi
5343eval ac_res=\$$as_ac_Lib
5344	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5345$as_echo "$ac_res" >&6; }
5346if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
5347
5348        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5349/* end confdefs.h.  */
5350
5351#include <stdlib.h>
5352#include "serf.h"
5353
5354int
5355main ()
5356{
5357
5358#if ! SERF_VERSION_AT_LEAST($serf_check_major, $serf_check_minor, $serf_check_patch)
5359#error Serf version too old: need $serf_check_version
5360#endif
5361
5362  ;
5363  return 0;
5364}
5365_ACEOF
5366if ac_fn_c_try_compile "$LINENO"; then :
5367  serf_found=yes
5368else
5369  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Serf version too old: need $serf_check_version" >&5
5370$as_echo "$as_me: WARNING: Serf version too old: need $serf_check_version" >&2;}
5371      serf_found=no
5372fi
5373rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5374fi
5375
5376    LDFLAGS="$save_ldflags"
5377fi
5378
5379done
5380
5381    CPPFLAGS="$save_cppflags"
5382    test $serf_found = yes && break
5383  done
5384
5385  if test $serf_found = "yes"; then
5386    SVN_SERF_INCLUDES="-I$serf_prefix/include/$serf_major"
5387    if test -e "$serf_prefix/lib/lib$serf_major.la"; then
5388      SVN_SERF_LIBS="$serf_prefix/lib/lib$serf_major.la"
5389    else
5390      SVN_SERF_LIBS="-l$serf_major"
5391      LDFLAGS="$LDFLAGS `
5392  input_flags="-L$serf_prefix/lib"
5393  output_flags=""
5394  filtered_dirs="/lib /lib64 /usr/lib /usr/lib64"
5395  for flag in $input_flags; do
5396    filter="no"
5397    for dir in $filtered_dirs; do
5398      if test "$flag" = "-L$dir" || test "$flag" = "-L$dir/"; then
5399        filter="yes"
5400        break
5401      fi
5402    done
5403    if test "$filter" = "no"; then
5404      output_flags="$output_flags $flag"
5405    fi
5406  done
5407  if test -n "$output_flags"; then
5408    printf "%s" "${output_flags# }"
5409  fi
5410`"
5411    fi
5412  fi
5413
5414    fi
5415
5416fi
5417
5418
5419  if test "$serf_skip" = "no" ; then
5420    if test "$serf_found" = "no" ; then
5421
5422  { $as_echo "$as_me:${as_lineno-$LINENO}: serf library configuration via pkg-config" >&5
5423$as_echo "$as_me: serf library configuration via pkg-config" >&6;}
5424  if test -n "$PKG_CONFIG"; then
5425    for serf_major in serf-2 serf-1; do
5426      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $serf_major library" >&5
5427$as_echo_n "checking for $serf_major library... " >&6; }
5428      if $PKG_CONFIG $serf_major --exists; then
5429        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5430$as_echo "yes" >&6; }
5431        { $as_echo "$as_me:${as_lineno-$LINENO}: checking serf library version" >&5
5432$as_echo_n "checking serf library version... " >&6; }
5433        SERF_VERSION=`$PKG_CONFIG $serf_major --modversion`
5434        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SERF_VERSION" >&5
5435$as_echo "$SERF_VERSION" >&6; }
5436        { $as_echo "$as_me:${as_lineno-$LINENO}: checking serf version is suitable" >&5
5437$as_echo_n "checking serf version is suitable... " >&6; }
5438        if $PKG_CONFIG $serf_major --atleast-version=$serf_check_version; then
5439          { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5440$as_echo "yes" >&6; }
5441          serf_found=yes
5442          SVN_SERF_INCLUDES=`$PKG_CONFIG $serf_major --cflags | $SED -e 's/-D[^ ]*//g'`
5443          SVN_SERF_LIBS=`$PKG_CONFIG $serf_major --libs`
5444          break
5445        else
5446          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5447$as_echo "no" >&6; }
5448          { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Serf version too old: need $serf_check_version" >&5
5449$as_echo "$as_me: WARNING: Serf version too old: need $serf_check_version" >&2;}
5450        fi
5451      else
5452        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5453$as_echo "no" >&6; }
5454      fi
5455    done
5456  fi
5457
5458    fi
5459
5460    { $as_echo "$as_me:${as_lineno-$LINENO}: checking was serf enabled" >&5
5461$as_echo_n "checking was serf enabled... " >&6; }
5462    if test "$serf_found" = "yes"; then
5463      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5464$as_echo "yes" >&6; }
5465    else
5466      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5467$as_echo "no" >&6; }
5468
5469  echo ""
5470  echo "An appropriate version of serf could not be found, so libsvn_ra_serf"
5471  echo "will not be built.  If you want to build libsvn_ra_serf, please"
5472  echo "install serf $serf_check_version or newer."
5473  echo ""
5474
5475      if test "$serf_required" = "yes"; then
5476        as_fn_error $? "Serf was explicitly enabled but an appropriate version was not found." "$LINENO" 5
5477      fi
5478    fi
5479  fi
5480
5481  svn_lib_serf=$serf_found
5482
5483
5484
5485
5486
5487if test "$svn_lib_serf" = "yes"; then
5488
5489$as_echo "#define SVN_HAVE_SERF 1" >>confdefs.h
5490
5491fi
5492
5493
5494  apr_memcache_found=no
5495
5496
5497# Check whether --with-apr_memcache was given.
5498if test "${with_apr_memcache+set}" = set; then :
5499  withval=$with_apr_memcache;
5500    if test "$withval" = "yes" ; then
5501      as_fn_error $? "--with-apr_memcache requires an argument." "$LINENO" 5
5502    else
5503      { $as_echo "$as_me:${as_lineno-$LINENO}: looking for separate apr_memcache package" >&5
5504$as_echo "$as_me: looking for separate apr_memcache package" >&6;}
5505      apr_memcache_prefix=$withval
5506      save_cppflags="$CPPFLAGS"
5507      CPPFLAGS="$CPPFLAGS $SVN_APR_INCLUDES $SVN_APRUTIL_INCLUDES -I$apr_memcache_prefix/include/apr_memcache-0"
5508      ac_fn_c_check_header_mongrel "$LINENO" "apr_memcache.h" "ac_cv_header_apr_memcache_h" "$ac_includes_default"
5509if test "x$ac_cv_header_apr_memcache_h" = xyes; then :
5510
5511        save_ldflags="$LDFLAGS"
5512        LDFLAGS="$LDFLAGS -L$apr_memcache_prefix/lib"
5513        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for apr_memcache_create in -lapr_memcache" >&5
5514$as_echo_n "checking for apr_memcache_create in -lapr_memcache... " >&6; }
5515if ${ac_cv_lib_apr_memcache_apr_memcache_create+:} false; then :
5516  $as_echo_n "(cached) " >&6
5517else
5518  ac_check_lib_save_LIBS=$LIBS
5519LIBS="-lapr_memcache  $LIBS"
5520cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5521/* end confdefs.h.  */
5522
5523/* Override any GCC internal prototype to avoid an error.
5524   Use char because int might match the return type of a GCC
5525   builtin and then its argument prototype would still apply.  */
5526#ifdef __cplusplus
5527extern "C"
5528#endif
5529char apr_memcache_create ();
5530int
5531main ()
5532{
5533return apr_memcache_create ();
5534  ;
5535  return 0;
5536}
5537_ACEOF
5538if ac_fn_c_try_link "$LINENO"; then :
5539  ac_cv_lib_apr_memcache_apr_memcache_create=yes
5540else
5541  ac_cv_lib_apr_memcache_apr_memcache_create=no
5542fi
5543rm -f core conftest.err conftest.$ac_objext \
5544    conftest$ac_exeext conftest.$ac_ext
5545LIBS=$ac_check_lib_save_LIBS
5546fi
5547{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_apr_memcache_apr_memcache_create" >&5
5548$as_echo "$ac_cv_lib_apr_memcache_apr_memcache_create" >&6; }
5549if test "x$ac_cv_lib_apr_memcache_apr_memcache_create" = xyes; then :
5550  apr_memcache_found="standalone"
5551fi
5552
5553        LDFLAGS="$save_ldflags"
5554fi
5555
5556
5557      CPPFLAGS="$save_cppflags"
5558    fi
5559
5560else
5561
5562    { $as_echo "$as_me:${as_lineno-$LINENO}: looking for apr_memcache as part of apr-util" >&5
5563$as_echo "$as_me: looking for apr_memcache as part of apr-util" >&6;}
5564    save_cppflags="$CPPFLAGS"
5565    CPPFLAGS="$CPPFLAGS $SVN_APR_INCLUDES $SVN_APRUTIL_INCLUDES"
5566    ac_fn_c_check_header_mongrel "$LINENO" "apr_memcache.h" "ac_cv_header_apr_memcache_h" "$ac_includes_default"
5567if test "x$ac_cv_header_apr_memcache_h" = xyes; then :
5568
5569      save_ldflags="$LDFLAGS"
5570      LDFLAGS="$LDFLAGS $SVN_APRUTIL_LIBS"
5571      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for apr_memcache_create in -laprutil-1" >&5
5572$as_echo_n "checking for apr_memcache_create in -laprutil-1... " >&6; }
5573if ${ac_cv_lib_aprutil_1_apr_memcache_create+:} false; then :
5574  $as_echo_n "(cached) " >&6
5575else
5576  ac_check_lib_save_LIBS=$LIBS
5577LIBS="-laprutil-1  $LIBS"
5578cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5579/* end confdefs.h.  */
5580
5581/* Override any GCC internal prototype to avoid an error.
5582   Use char because int might match the return type of a GCC
5583   builtin and then its argument prototype would still apply.  */
5584#ifdef __cplusplus
5585extern "C"
5586#endif
5587char apr_memcache_create ();
5588int
5589main ()
5590{
5591return apr_memcache_create ();
5592  ;
5593  return 0;
5594}
5595_ACEOF
5596if ac_fn_c_try_link "$LINENO"; then :
5597  ac_cv_lib_aprutil_1_apr_memcache_create=yes
5598else
5599  ac_cv_lib_aprutil_1_apr_memcache_create=no
5600fi
5601rm -f core conftest.err conftest.$ac_objext \
5602    conftest$ac_exeext conftest.$ac_ext
5603LIBS=$ac_check_lib_save_LIBS
5604fi
5605{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_aprutil_1_apr_memcache_create" >&5
5606$as_echo "$ac_cv_lib_aprutil_1_apr_memcache_create" >&6; }
5607if test "x$ac_cv_lib_aprutil_1_apr_memcache_create" = xyes; then :
5608  apr_memcache_found="aprutil"
5609fi
5610
5611      LDFLAGS="$save_ldflags"
5612fi
5613
5614
5615    CPPFLAGS="$save_cppflags"
5616
5617fi
5618
5619
5620
5621  if test $apr_memcache_found = "standalone"; then
5622    SVN_APR_MEMCACHE_INCLUDES="-I$apr_memcache_prefix/include/apr_memcache-0"
5623    SVN_APR_MEMCACHE_LIBS="$apr_memcache_prefix/lib/libapr_memcache.la"
5624    svn_lib_apr_memcache=yes
5625  elif test $apr_memcache_found = "aprutil"; then
5626    SVN_APR_MEMCACHE_INCLUDES=""
5627    SVN_APR_MEMCACHE_LIBS=""
5628    svn_lib_apr_memcache=yes
5629  elif test $apr_memcache_found = "reconfig"; then
5630    svn_lib_apr_memcache=yes
5631  else
5632    svn_lib_apr_memcache=no
5633  fi
5634
5635
5636
5637
5638
5639if test "$svn_lib_apr_memcache" = "yes"; then
5640
5641$as_echo "#define SVN_HAVE_MEMCACHE 1" >>confdefs.h
5642
5643fi
5644
5645
5646
5647
5648
5649HTTPD_WANTED_MMN="20020903"
5650
5651{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Apache module support via DSO through APXS" >&5
5652$as_echo_n "checking for Apache module support via DSO through APXS... " >&6; }
5653
5654# Check whether --with-apxs was given.
5655if test "${with_apxs+set}" = set; then :
5656  withval=$with_apxs;
5657    if test "$withval" = "yes"; then
5658      APXS=apxs
5659    else
5660      APXS="$withval"
5661    fi
5662    APXS_EXPLICIT=1
5663
5664fi
5665
5666
5667if test -z "$APXS"; then
5668  for i in /usr/sbin /usr/local/apache/bin /usr/local/apache2/bin /usr/bin ; do
5669    if test -f "$i/apxs2"; then
5670      APXS="$i/apxs2"
5671      break
5672    fi
5673    if test -f "$i/apxs"; then
5674      APXS="$i/apxs"
5675      break
5676    fi
5677  done
5678fi
5679
5680if test -n "$APXS" && test "$APXS" != "no"; then
5681    APXS_INCLUDE="`$APXS -q INCLUDEDIR`"
5682    if test -r $APXS_INCLUDE/mod_dav.h; then
5683        { $as_echo "$as_me:${as_lineno-$LINENO}: result: found at $APXS" >&5
5684$as_echo "found at $APXS" >&6; }
5685
5686        { $as_echo "$as_me:${as_lineno-$LINENO}: checking httpd version" >&5
5687$as_echo_n "checking httpd version... " >&6; }
5688        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5689/* end confdefs.h.  */
5690
5691#include "$APXS_INCLUDE/ap_mmn.h"
5692#if AP_MODULE_MAGIC_AT_LEAST($HTTPD_WANTED_MMN,0)
5693VERSION_OKAY
5694#endif
5695_ACEOF
5696if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5697  $EGREP "VERSION_OKAY" >/dev/null 2>&1; then :
5698  { $as_echo "$as_me:${as_lineno-$LINENO}: result: recent enough" >&5
5699$as_echo "recent enough" >&6; }
5700else
5701  { $as_echo "$as_me:${as_lineno-$LINENO}: result: apache too old:  mmn must be at least $HTTPD_WANTED_MMN" >&5
5702$as_echo "apache too old:  mmn must be at least $HTTPD_WANTED_MMN" >&6; }
5703         if test "$APXS_EXPLICIT" != ""; then
5704             as_fn_error $? "Apache APXS build explicitly requested, but apache version is too old" "$LINENO" 5
5705         fi
5706         APXS=""
5707
5708fi
5709rm -f conftest*
5710
5711
5712    elif test "$APXS_EXPLICIT" != ""; then
5713        as_fn_error $? "no - APXS refers to an old version of Apache
5714                      Unable to locate $APXS_INCLUDE/mod_dav.h" "$LINENO" 5
5715    else
5716        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no - Unable to locate $APXS_INCLUDE/mod_dav.h" >&5
5717$as_echo "no - Unable to locate $APXS_INCLUDE/mod_dav.h" >&6; }
5718        APXS=""
5719    fi
5720else
5721    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5722$as_echo "no" >&6; }
5723fi
5724
5725if test -n "$APXS" && test "$APXS" != "no"; then
5726  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Apache version is compatible with APR version" >&5
5727$as_echo_n "checking whether Apache version is compatible with APR version... " >&6; }
5728  apr_major_version="${apr_version%%.*}"
5729  case "$apr_major_version" in
5730    0)
5731      apache_minor_version_wanted_regex="0"
5732      ;;
5733    1)
5734      apache_minor_version_wanted_regex="[1-5]"
5735      ;;
5736    2)
5737      apache_minor_version_wanted_regex="[3-5]"
5738      ;;
5739    *)
5740      as_fn_error $? "unknown APR version" "$LINENO" 5
5741      ;;
5742  esac
5743  old_CPPFLAGS="$CPPFLAGS"
5744  CPPFLAGS="$CPPFLAGS $SVN_APR_INCLUDES"
5745  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5746/* end confdefs.h.  */
5747
5748#include "$APXS_INCLUDE/ap_release.h"
5749apache_minor_version=AP_SERVER_MINORVERSION
5750_ACEOF
5751if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5752  $EGREP "apache_minor_version= *\"$apache_minor_version_wanted_regex\"" >/dev/null 2>&1; then :
5753  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5754$as_echo "yes" >&6; }
5755else
5756  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5757$as_echo "no" >&6; }
5758                as_fn_error $? "Apache version incompatible with APR version" "$LINENO" 5
5759fi
5760rm -f conftest*
5761
5762  CPPFLAGS="$old_CPPFLAGS"
5763fi
5764
5765# check for some busted versions of mod_dav
5766# in particular 2.2.25, 2.4.5, and 2.4.6 had the following bugs which are
5767# troublesome for Subversion:
5768# PR 55304: https://issues.apache.org/bugzilla/show_bug.cgi?id=55304
5769# PR 55306: https://issues.apache.org/bugzilla/show_bug.cgi?id=55306
5770# PR 55397: https://issues.apache.org/bugzilla/show_bug.cgi?id=55397
5771if test -n "$APXS" && test "$APXS" != "no"; then
5772  { $as_echo "$as_me:${as_lineno-$LINENO}: checking mod_dav version" >&5
5773$as_echo_n "checking mod_dav version... " >&6; }
5774  old_CPPFLAGS="$CPPFLAGS"
5775  CPPFLAGS="$CPPFLAGS $SVN_APR_INCLUDES"
5776  blacklisted_versions_regex="\"2\" \"\.\" (\"2\" \"\.\" \"25\"|\"4\" \"\.\" \"[56]\")"
5777  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5778/* end confdefs.h.  */
5779
5780#include "$APXS_INCLUDE/ap_release.h"
5781apache_version=AP_SERVER_BASEREVISION
5782_ACEOF
5783if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5784  $EGREP "apache_version= *$blacklisted_versions_regex" >/dev/null 2>&1; then :
5785  { $as_echo "$as_me:${as_lineno-$LINENO}: result: broken" >&5
5786$as_echo "broken" >&6; }
5787                as_fn_error $? "Apache httpd version includes a broken mod_dav; use a newer version of httpd" "$LINENO" 5
5788else
5789  { $as_echo "$as_me:${as_lineno-$LINENO}: result: acceptable" >&5
5790$as_echo "acceptable" >&6; }
5791fi
5792rm -f conftest*
5793
5794  CPPFLAGS="$old_CPPFLAGS"
5795fi
5796
5797
5798# Check whether --with-apache-libexecdir was given.
5799if test "${with_apache_libexecdir+set}" = set; then :
5800  withval=$with_apache_libexecdir; APACHE_LIBEXECDIR="$withval"
5801else
5802  APACHE_LIBEXECDIR='no'
5803fi
5804
5805
5806INSTALL_APACHE_MODS=false
5807if test -n "$APXS" && test "$APXS" != "no"; then
5808    APXS_CC="`$APXS -q CC`"
5809    APACHE_INCLUDES="$APACHE_INCLUDES -I$APXS_INCLUDE"
5810
5811    if test "$APACHE_LIBEXECDIR" = 'no'; then
5812        APACHE_LIBEXECDIR="$libexecdir"
5813    elif test "$APACHE_LIBEXECDIR" = 'yes'; then
5814        APACHE_LIBEXECDIR="`$APXS -q libexecdir`"
5815    fi
5816
5817    BUILD_APACHE_RULE=apache-mod
5818    INSTALL_APACHE_RULE=install-mods-shared
5819    INSTALL_APACHE_MODS=true
5820
5821    case $host in
5822      *-*-cygwin*)
5823        APACHE_LDFLAGS="-shrext .so"
5824        ;;
5825    esac
5826elif test x"$APXS" != x"no"; then
5827    echo "=================================================================="
5828    echo "WARNING: skipping the build of mod_dav_svn"
5829    echo "         try using --with-apxs"
5830    echo "=================================================================="
5831fi
5832
5833
5834
5835
5836
5837
5838
5839# there aren't any flags that interest us ...
5840#if test -n "$APXS" && test "$APXS" != "no"; then
5841#  CFLAGS="$CFLAGS `$APXS -q CFLAGS CFLAGS_SHLIB`"
5842#fi
5843
5844if test -n "$APXS_CC" && test "$APXS_CC" != "$CC" ; then
5845  echo "=================================================================="
5846  echo "WARNING: You have chosen to compile Subversion with a different"
5847  echo "         compiler than the one used to compile Apache."
5848  echo ""
5849  echo "    Current compiler:      $CC"
5850  echo "   Apache's compiler:      $APXS_CC"
5851  echo ""
5852  echo "This could cause some problems."
5853  echo "=================================================================="
5854fi
5855
5856
5857
5858SQLITE_MINIMUM_VER="3.7.12"
5859SQLITE_RECOMMENDED_VER="3.7.15.1"
5860SQLITE_URL="http://www.sqlite.org/sqlite-amalgamation-$(printf %d%02d%02d%02d $(echo ${SQLITE_RECOMMENDED_VER} | sed -e 's/\./ /g')).zip"
5861
5862
5863  SQLITE_MINIMUM_VER="${SQLITE_MINIMUM_VER}"
5864  SQLITE_RECOMMENDED_VER="${SQLITE_RECOMMENDED_VER}"
5865  SQLITE_URL="${SQLITE_URL}"
5866  SQLITE_PKGNAME="sqlite3"
5867
5868
5869
5870  version_string="$SQLITE_MINIMUM_VER"
5871
5872  major=`expr $version_string : '\([0-9]*\)'`
5873  minor=`expr $version_string : '[0-9]*\.\([0-9]*\)'`
5874  micro=`expr $version_string : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
5875  if test -z "$micro"; then
5876    micro=0
5877  fi
5878  sqlite_min_ver_num=`expr $major \* 1000000 \
5879        \+ $minor \* 1000 \
5880        \+ $micro`
5881
5882
5883
5884  { $as_echo "$as_me:${as_lineno-$LINENO}: checking sqlite library" >&5
5885$as_echo "$as_me: checking sqlite library" >&6;}
5886
5887
5888# Check whether --with-sqlite was given.
5889if test "${with_sqlite+set}" = set; then :
5890  withval=$with_sqlite;
5891    if test "$withval" = "yes" ; then
5892      as_fn_error $? "--with-sqlite requires an argument." "$LINENO" 5
5893    else
5894      sqlite_dir="$withval"
5895    fi
5896
5897    if test -d $sqlite_dir; then
5898
5899  if test -z "$sqlite_dir"; then
5900    sqlite_dir=""
5901    sqlite_include="sqlite3.h"
5902  else
5903    sqlite_dir="$sqlite_dir"
5904    sqlite_include="$sqlite_dir/include/sqlite3.h"
5905  fi
5906
5907  save_CPPFLAGS="$CPPFLAGS"
5908  save_LDFLAGS="$LDFLAGS"
5909
5910  if test ! -z "$sqlite_dir"; then
5911    CPPFLAGS="$CPPFLAGS -I$sqlite_dir/include"
5912    LDFLAGS="$LDFLAGS -L$sqlite_dir/lib"
5913  fi
5914
5915  ac_fn_c_check_header_mongrel "$LINENO" "sqlite3.h" "ac_cv_header_sqlite3_h" "$ac_includes_default"
5916if test "x$ac_cv_header_sqlite3_h" = xyes; then :
5917
5918      { $as_echo "$as_me:${as_lineno-$LINENO}: checking sqlite library version (via header)" >&5
5919$as_echo_n "checking sqlite library version (via header)... " >&6; }
5920      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5921/* end confdefs.h.  */
5922
5923#include "$sqlite_include"
5924#if SQLITE_VERSION_NUMBER >= $sqlite_min_ver_num
5925SQLITE_VERSION_OKAY
5926#endif
5927_ACEOF
5928if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5929  $EGREP "SQLITE_VERSION_OKAY" >/dev/null 2>&1; then :
5930  { $as_echo "$as_me:${as_lineno-$LINENO}: result: okay" >&5
5931$as_echo "okay" >&6; }
5932                   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite3_close in -lsqlite3" >&5
5933$as_echo_n "checking for sqlite3_close in -lsqlite3... " >&6; }
5934if ${ac_cv_lib_sqlite3_sqlite3_close+:} false; then :
5935  $as_echo_n "(cached) " >&6
5936else
5937  ac_check_lib_save_LIBS=$LIBS
5938LIBS="-lsqlite3  $LIBS"
5939cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5940/* end confdefs.h.  */
5941
5942/* Override any GCC internal prototype to avoid an error.
5943   Use char because int might match the return type of a GCC
5944   builtin and then its argument prototype would still apply.  */
5945#ifdef __cplusplus
5946extern "C"
5947#endif
5948char sqlite3_close ();
5949int
5950main ()
5951{
5952return sqlite3_close ();
5953  ;
5954  return 0;
5955}
5956_ACEOF
5957if ac_fn_c_try_link "$LINENO"; then :
5958  ac_cv_lib_sqlite3_sqlite3_close=yes
5959else
5960  ac_cv_lib_sqlite3_sqlite3_close=no
5961fi
5962rm -f core conftest.err conftest.$ac_objext \
5963    conftest$ac_exeext conftest.$ac_ext
5964LIBS=$ac_check_lib_save_LIBS
5965fi
5966{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_close" >&5
5967$as_echo "$ac_cv_lib_sqlite3_sqlite3_close" >&6; }
5968if test "x$ac_cv_lib_sqlite3_sqlite3_close" = xyes; then :
5969
5970                      svn_lib_sqlite="yes"
5971                      if test -z "$sqlite_dir" -o ! -d "$sqlite_dir"; then
5972                        SVN_SQLITE_LIBS="-lsqlite3"
5973                      else
5974                        SVN_SQLITE_INCLUDES="-I$sqlite_dir/include"
5975                        SVN_SQLITE_LIBS="`
5976  input_flags="-L$sqlite_dir/lib -lsqlite3"
5977  output_flags=""
5978  filtered_dirs="/lib /lib64 /usr/lib /usr/lib64"
5979  for flag in $input_flags; do
5980    filter="no"
5981    for dir in $filtered_dirs; do
5982      if test "$flag" = "-L$dir" || test "$flag" = "-L$dir/"; then
5983        filter="yes"
5984        break
5985      fi
5986    done
5987    if test "$filter" = "no"; then
5988      output_flags="$output_flags $flag"
5989    fi
5990  done
5991  if test -n "$output_flags"; then
5992    printf "%s" "${output_flags# }"
5993  fi
5994`"
5995                      fi
5996
5997fi
5998
5999else
6000  { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported SQLite version" >&5
6001$as_echo "unsupported SQLite version" >&6; }
6002fi
6003rm -f conftest*
6004
6005
6006fi
6007
6008
6009
6010  CPPFLAGS="$save_CPPFLAGS"
6011  LDFLAGS="$save_LDFLAGS"
6012
6013    else
6014
6015  sqlite_amalg="$sqlite_dir"
6016  { $as_echo "$as_me:${as_lineno-$LINENO}: checking sqlite amalgamation" >&5
6017$as_echo_n "checking sqlite amalgamation... " >&6; }
6018  if test ! -e $sqlite_amalg; then
6019    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6020$as_echo "no" >&6; }
6021  else
6022    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6023$as_echo "yes" >&6; }
6024    { $as_echo "$as_me:${as_lineno-$LINENO}: checking sqlite amalgamation file version" >&5
6025$as_echo_n "checking sqlite amalgamation file version... " >&6; }
6026    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6027/* end confdefs.h.  */
6028
6029#include "$sqlite_amalg"
6030#if SQLITE_VERSION_NUMBER >= $sqlite_min_ver_num
6031SQLITE_VERSION_OKAY
6032#endif
6033_ACEOF
6034if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6035  $EGREP "SQLITE_VERSION_OKAY" >/dev/null 2>&1; then :
6036  { $as_echo "$as_me:${as_lineno-$LINENO}: result: amalgamation found and is okay" >&5
6037$as_echo "amalgamation found and is okay" >&6; }
6038
6039  case $host_os in
6040  beos* | mingw* | pw32* | cegcc* | cygwin*)
6041    svn_sqlite_dso_ldflags=
6042    ;;
6043
6044  darwin*)
6045  # if libdl is installed we need to link against it
6046    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
6047$as_echo_n "checking for dlopen in -ldl... " >&6; }
6048if ${ac_cv_lib_dl_dlopen+:} false; then :
6049  $as_echo_n "(cached) " >&6
6050else
6051  ac_check_lib_save_LIBS=$LIBS
6052LIBS="-ldl  $LIBS"
6053cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6054/* end confdefs.h.  */
6055
6056/* Override any GCC internal prototype to avoid an error.
6057   Use char because int might match the return type of a GCC
6058   builtin and then its argument prototype would still apply.  */
6059#ifdef __cplusplus
6060extern "C"
6061#endif
6062char dlopen ();
6063int
6064main ()
6065{
6066return dlopen ();
6067  ;
6068  return 0;
6069}
6070_ACEOF
6071if ac_fn_c_try_link "$LINENO"; then :
6072  ac_cv_lib_dl_dlopen=yes
6073else
6074  ac_cv_lib_dl_dlopen=no
6075fi
6076rm -f core conftest.err conftest.$ac_objext \
6077    conftest$ac_exeext conftest.$ac_ext
6078LIBS=$ac_check_lib_save_LIBS
6079fi
6080{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
6081$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
6082if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
6083  lt_cv_dlopen="dlopen" svn_sqlite_dso_ldflags="-ldl"
6084else
6085
6086    svn_sqlite_dso_ldflags=
6087
6088fi
6089
6090    ;;
6091
6092  *)
6093    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
6094if test "x$ac_cv_func_shl_load" = xyes; then :
6095  svn_sqlite_dso_ldflags=
6096else
6097  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
6098$as_echo_n "checking for shl_load in -ldld... " >&6; }
6099if ${ac_cv_lib_dld_shl_load+:} false; then :
6100  $as_echo_n "(cached) " >&6
6101else
6102  ac_check_lib_save_LIBS=$LIBS
6103LIBS="-ldld  $LIBS"
6104cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6105/* end confdefs.h.  */
6106
6107/* Override any GCC internal prototype to avoid an error.
6108   Use char because int might match the return type of a GCC
6109   builtin and then its argument prototype would still apply.  */
6110#ifdef __cplusplus
6111extern "C"
6112#endif
6113char shl_load ();
6114int
6115main ()
6116{
6117return shl_load ();
6118  ;
6119  return 0;
6120}
6121_ACEOF
6122if ac_fn_c_try_link "$LINENO"; then :
6123  ac_cv_lib_dld_shl_load=yes
6124else
6125  ac_cv_lib_dld_shl_load=no
6126fi
6127rm -f core conftest.err conftest.$ac_objext \
6128    conftest$ac_exeext conftest.$ac_ext
6129LIBS=$ac_check_lib_save_LIBS
6130fi
6131{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
6132$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
6133if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
6134  svn_sqlite_dso_ldflags="-ldld"
6135else
6136  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
6137if test "x$ac_cv_func_dlopen" = xyes; then :
6138  svn_sqlite_dso_ldflags=
6139else
6140  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
6141$as_echo_n "checking for dlopen in -ldl... " >&6; }
6142if ${ac_cv_lib_dl_dlopen+:} false; then :
6143  $as_echo_n "(cached) " >&6
6144else
6145  ac_check_lib_save_LIBS=$LIBS
6146LIBS="-ldl  $LIBS"
6147cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6148/* end confdefs.h.  */
6149
6150/* Override any GCC internal prototype to avoid an error.
6151   Use char because int might match the return type of a GCC
6152   builtin and then its argument prototype would still apply.  */
6153#ifdef __cplusplus
6154extern "C"
6155#endif
6156char dlopen ();
6157int
6158main ()
6159{
6160return dlopen ();
6161  ;
6162  return 0;
6163}
6164_ACEOF
6165if ac_fn_c_try_link "$LINENO"; then :
6166  ac_cv_lib_dl_dlopen=yes
6167else
6168  ac_cv_lib_dl_dlopen=no
6169fi
6170rm -f core conftest.err conftest.$ac_objext \
6171    conftest$ac_exeext conftest.$ac_ext
6172LIBS=$ac_check_lib_save_LIBS
6173fi
6174{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
6175$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
6176if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
6177  svn_sqlite_dso_ldflags="-ldl"
6178else
6179  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
6180$as_echo_n "checking for dlopen in -lsvld... " >&6; }
6181if ${ac_cv_lib_svld_dlopen+:} false; then :
6182  $as_echo_n "(cached) " >&6
6183else
6184  ac_check_lib_save_LIBS=$LIBS
6185LIBS="-lsvld  $LIBS"
6186cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6187/* end confdefs.h.  */
6188
6189/* Override any GCC internal prototype to avoid an error.
6190   Use char because int might match the return type of a GCC
6191   builtin and then its argument prototype would still apply.  */
6192#ifdef __cplusplus
6193extern "C"
6194#endif
6195char dlopen ();
6196int
6197main ()
6198{
6199return dlopen ();
6200  ;
6201  return 0;
6202}
6203_ACEOF
6204if ac_fn_c_try_link "$LINENO"; then :
6205  ac_cv_lib_svld_dlopen=yes
6206else
6207  ac_cv_lib_svld_dlopen=no
6208fi
6209rm -f core conftest.err conftest.$ac_objext \
6210    conftest$ac_exeext conftest.$ac_ext
6211LIBS=$ac_check_lib_save_LIBS
6212fi
6213{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
6214$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
6215if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
6216  svn_sqlite_dso_ldflags="-lsvld"
6217else
6218  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
6219$as_echo_n "checking for dld_link in -ldld... " >&6; }
6220if ${ac_cv_lib_dld_dld_link+:} false; then :
6221  $as_echo_n "(cached) " >&6
6222else
6223  ac_check_lib_save_LIBS=$LIBS
6224LIBS="-ldld  $LIBS"
6225cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6226/* end confdefs.h.  */
6227
6228/* Override any GCC internal prototype to avoid an error.
6229   Use char because int might match the return type of a GCC
6230   builtin and then its argument prototype would still apply.  */
6231#ifdef __cplusplus
6232extern "C"
6233#endif
6234char dld_link ();
6235int
6236main ()
6237{
6238return dld_link ();
6239  ;
6240  return 0;
6241}
6242_ACEOF
6243if ac_fn_c_try_link "$LINENO"; then :
6244  ac_cv_lib_dld_dld_link=yes
6245else
6246  ac_cv_lib_dld_dld_link=no
6247fi
6248rm -f core conftest.err conftest.$ac_objext \
6249    conftest$ac_exeext conftest.$ac_ext
6250LIBS=$ac_check_lib_save_LIBS
6251fi
6252{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
6253$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
6254if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
6255  svn_sqlite_dso_ldflags="-ldld"
6256fi
6257
6258
6259fi
6260
6261
6262fi
6263
6264
6265fi
6266
6267
6268fi
6269
6270
6271fi
6272
6273    ;;
6274  esac
6275
6276  { $as_echo "$as_me:${as_lineno-$LINENO}: checking additional libraries for sqlite" >&5
6277$as_echo_n "checking additional libraries for sqlite... " >&6; }
6278  if test -n "$svn_sqlite_dso_ldflags"; then
6279    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${svn_sqlite_dso_ldflags}" >&5
6280$as_echo "${svn_sqlite_dso_ldflags}" >&6; }
6281  else
6282    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6283$as_echo "none" >&6; }
6284  fi
6285
6286
6287$as_echo "#define SVN_SQLITE_INLINE 1" >>confdefs.h
6288
6289                  SVN_SQLITE_INCLUDES="-I`dirname $sqlite_amalg`"
6290                  if test -n "$svn_sqlite_dso_ldflags"; then
6291                    SVN_SQLITE_LIBS="$svn_sqlite_dso_ldflags -lpthread"
6292                  else
6293                    SVN_SQLITE_LIBS="-lpthread"
6294                  fi
6295                  svn_lib_sqlite="yes"
6296else
6297  { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported amalgamation SQLite version" >&5
6298$as_echo "unsupported amalgamation SQLite version" >&6; }
6299fi
6300rm -f conftest*
6301
6302  fi
6303
6304    fi
6305
6306    if test -z "$svn_lib_sqlite"; then
6307      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no suitable sqlite found in $sqlite_dir" >&5
6308$as_echo "$as_me: WARNING: no suitable sqlite found in $sqlite_dir" >&2;}
6309
6310  echo ""
6311  echo "An appropriate version of sqlite could not be found.  We recommmend"
6312  echo "${SQLITE_RECOMMENDED_VER}, but require at least ${SQLITE_MINIMUM_VER}."
6313  echo "Please either install a newer sqlite on this system"
6314  echo ""
6315  echo "or"
6316  echo ""
6317  echo "get the sqlite ${SQLITE_RECOMMENDED_VER} amalgamation from:"
6318  echo "    ${SQLITE_URL}"
6319  echo "unpack the archive using unzip and rename the resulting"
6320  echo "directory to:"
6321  echo "$abs_srcdir/sqlite-amalgamation"
6322  if test x"$abs_srcdir" != x"$abs_builddir"; then
6323    echo "or to:"
6324    echo "$abs_builddir/sqlite-amalgamation"
6325  fi
6326  echo ""
6327  as_fn_error $? "Subversion requires SQLite" "$LINENO" 5
6328
6329    fi
6330
6331else
6332
6333
6334  sqlite_amalg="$abs_srcdir/sqlite-amalgamation/sqlite3.c"
6335  { $as_echo "$as_me:${as_lineno-$LINENO}: checking sqlite amalgamation" >&5
6336$as_echo_n "checking sqlite amalgamation... " >&6; }
6337  if test ! -e $sqlite_amalg; then
6338    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6339$as_echo "no" >&6; }
6340  else
6341    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6342$as_echo "yes" >&6; }
6343    { $as_echo "$as_me:${as_lineno-$LINENO}: checking sqlite amalgamation file version" >&5
6344$as_echo_n "checking sqlite amalgamation file version... " >&6; }
6345    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6346/* end confdefs.h.  */
6347
6348#include "$sqlite_amalg"
6349#if SQLITE_VERSION_NUMBER >= $sqlite_min_ver_num
6350SQLITE_VERSION_OKAY
6351#endif
6352_ACEOF
6353if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6354  $EGREP "SQLITE_VERSION_OKAY" >/dev/null 2>&1; then :
6355  { $as_echo "$as_me:${as_lineno-$LINENO}: result: amalgamation found and is okay" >&5
6356$as_echo "amalgamation found and is okay" >&6; }
6357
6358  case $host_os in
6359  beos* | mingw* | pw32* | cegcc* | cygwin*)
6360    svn_sqlite_dso_ldflags=
6361    ;;
6362
6363  darwin*)
6364  # if libdl is installed we need to link against it
6365    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
6366$as_echo_n "checking for dlopen in -ldl... " >&6; }
6367if ${ac_cv_lib_dl_dlopen+:} false; then :
6368  $as_echo_n "(cached) " >&6
6369else
6370  ac_check_lib_save_LIBS=$LIBS
6371LIBS="-ldl  $LIBS"
6372cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6373/* end confdefs.h.  */
6374
6375/* Override any GCC internal prototype to avoid an error.
6376   Use char because int might match the return type of a GCC
6377   builtin and then its argument prototype would still apply.  */
6378#ifdef __cplusplus
6379extern "C"
6380#endif
6381char dlopen ();
6382int
6383main ()
6384{
6385return dlopen ();
6386  ;
6387  return 0;
6388}
6389_ACEOF
6390if ac_fn_c_try_link "$LINENO"; then :
6391  ac_cv_lib_dl_dlopen=yes
6392else
6393  ac_cv_lib_dl_dlopen=no
6394fi
6395rm -f core conftest.err conftest.$ac_objext \
6396    conftest$ac_exeext conftest.$ac_ext
6397LIBS=$ac_check_lib_save_LIBS
6398fi
6399{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
6400$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
6401if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
6402  lt_cv_dlopen="dlopen" svn_sqlite_dso_ldflags="-ldl"
6403else
6404
6405    svn_sqlite_dso_ldflags=
6406
6407fi
6408
6409    ;;
6410
6411  *)
6412    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
6413if test "x$ac_cv_func_shl_load" = xyes; then :
6414  svn_sqlite_dso_ldflags=
6415else
6416  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
6417$as_echo_n "checking for shl_load in -ldld... " >&6; }
6418if ${ac_cv_lib_dld_shl_load+:} false; then :
6419  $as_echo_n "(cached) " >&6
6420else
6421  ac_check_lib_save_LIBS=$LIBS
6422LIBS="-ldld  $LIBS"
6423cat 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
6430extern "C"
6431#endif
6432char shl_load ();
6433int
6434main ()
6435{
6436return shl_load ();
6437  ;
6438  return 0;
6439}
6440_ACEOF
6441if ac_fn_c_try_link "$LINENO"; then :
6442  ac_cv_lib_dld_shl_load=yes
6443else
6444  ac_cv_lib_dld_shl_load=no
6445fi
6446rm -f core conftest.err conftest.$ac_objext \
6447    conftest$ac_exeext conftest.$ac_ext
6448LIBS=$ac_check_lib_save_LIBS
6449fi
6450{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
6451$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
6452if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
6453  svn_sqlite_dso_ldflags="-ldld"
6454else
6455  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
6456if test "x$ac_cv_func_dlopen" = xyes; then :
6457  svn_sqlite_dso_ldflags=
6458else
6459  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
6460$as_echo_n "checking for dlopen in -ldl... " >&6; }
6461if ${ac_cv_lib_dl_dlopen+:} false; then :
6462  $as_echo_n "(cached) " >&6
6463else
6464  ac_check_lib_save_LIBS=$LIBS
6465LIBS="-ldl  $LIBS"
6466cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6467/* end confdefs.h.  */
6468
6469/* Override any GCC internal prototype to avoid an error.
6470   Use char because int might match the return type of a GCC
6471   builtin and then its argument prototype would still apply.  */
6472#ifdef __cplusplus
6473extern "C"
6474#endif
6475char dlopen ();
6476int
6477main ()
6478{
6479return dlopen ();
6480  ;
6481  return 0;
6482}
6483_ACEOF
6484if ac_fn_c_try_link "$LINENO"; then :
6485  ac_cv_lib_dl_dlopen=yes
6486else
6487  ac_cv_lib_dl_dlopen=no
6488fi
6489rm -f core conftest.err conftest.$ac_objext \
6490    conftest$ac_exeext conftest.$ac_ext
6491LIBS=$ac_check_lib_save_LIBS
6492fi
6493{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
6494$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
6495if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
6496  svn_sqlite_dso_ldflags="-ldl"
6497else
6498  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
6499$as_echo_n "checking for dlopen in -lsvld... " >&6; }
6500if ${ac_cv_lib_svld_dlopen+:} false; then :
6501  $as_echo_n "(cached) " >&6
6502else
6503  ac_check_lib_save_LIBS=$LIBS
6504LIBS="-lsvld  $LIBS"
6505cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6506/* end confdefs.h.  */
6507
6508/* Override any GCC internal prototype to avoid an error.
6509   Use char because int might match the return type of a GCC
6510   builtin and then its argument prototype would still apply.  */
6511#ifdef __cplusplus
6512extern "C"
6513#endif
6514char dlopen ();
6515int
6516main ()
6517{
6518return dlopen ();
6519  ;
6520  return 0;
6521}
6522_ACEOF
6523if ac_fn_c_try_link "$LINENO"; then :
6524  ac_cv_lib_svld_dlopen=yes
6525else
6526  ac_cv_lib_svld_dlopen=no
6527fi
6528rm -f core conftest.err conftest.$ac_objext \
6529    conftest$ac_exeext conftest.$ac_ext
6530LIBS=$ac_check_lib_save_LIBS
6531fi
6532{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
6533$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
6534if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
6535  svn_sqlite_dso_ldflags="-lsvld"
6536else
6537  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
6538$as_echo_n "checking for dld_link in -ldld... " >&6; }
6539if ${ac_cv_lib_dld_dld_link+:} false; then :
6540  $as_echo_n "(cached) " >&6
6541else
6542  ac_check_lib_save_LIBS=$LIBS
6543LIBS="-ldld  $LIBS"
6544cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6545/* end confdefs.h.  */
6546
6547/* Override any GCC internal prototype to avoid an error.
6548   Use char because int might match the return type of a GCC
6549   builtin and then its argument prototype would still apply.  */
6550#ifdef __cplusplus
6551extern "C"
6552#endif
6553char dld_link ();
6554int
6555main ()
6556{
6557return dld_link ();
6558  ;
6559  return 0;
6560}
6561_ACEOF
6562if ac_fn_c_try_link "$LINENO"; then :
6563  ac_cv_lib_dld_dld_link=yes
6564else
6565  ac_cv_lib_dld_dld_link=no
6566fi
6567rm -f core conftest.err conftest.$ac_objext \
6568    conftest$ac_exeext conftest.$ac_ext
6569LIBS=$ac_check_lib_save_LIBS
6570fi
6571{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
6572$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
6573if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
6574  svn_sqlite_dso_ldflags="-ldld"
6575fi
6576
6577
6578fi
6579
6580
6581fi
6582
6583
6584fi
6585
6586
6587fi
6588
6589
6590fi
6591
6592    ;;
6593  esac
6594
6595  { $as_echo "$as_me:${as_lineno-$LINENO}: checking additional libraries for sqlite" >&5
6596$as_echo_n "checking additional libraries for sqlite... " >&6; }
6597  if test -n "$svn_sqlite_dso_ldflags"; then
6598    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${svn_sqlite_dso_ldflags}" >&5
6599$as_echo "${svn_sqlite_dso_ldflags}" >&6; }
6600  else
6601    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6602$as_echo "none" >&6; }
6603  fi
6604
6605
6606$as_echo "#define SVN_SQLITE_INLINE 1" >>confdefs.h
6607
6608                  SVN_SQLITE_INCLUDES="-I`dirname $sqlite_amalg`"
6609                  if test -n "$svn_sqlite_dso_ldflags"; then
6610                    SVN_SQLITE_LIBS="$svn_sqlite_dso_ldflags -lpthread"
6611                  else
6612                    SVN_SQLITE_LIBS="-lpthread"
6613                  fi
6614                  svn_lib_sqlite="yes"
6615else
6616  { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported amalgamation SQLite version" >&5
6617$as_echo "unsupported amalgamation SQLite version" >&6; }
6618fi
6619rm -f conftest*
6620
6621  fi
6622
6623
6624    if test -z "$svn_lib_sqlite"; then
6625
6626  sqlite_amalg="$abs_builddir/sqlite-amalgamation/sqlite3.c"
6627  { $as_echo "$as_me:${as_lineno-$LINENO}: checking sqlite amalgamation" >&5
6628$as_echo_n "checking sqlite amalgamation... " >&6; }
6629  if test ! -e $sqlite_amalg; then
6630    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6631$as_echo "no" >&6; }
6632  else
6633    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6634$as_echo "yes" >&6; }
6635    { $as_echo "$as_me:${as_lineno-$LINENO}: checking sqlite amalgamation file version" >&5
6636$as_echo_n "checking sqlite amalgamation file version... " >&6; }
6637    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6638/* end confdefs.h.  */
6639
6640#include "$sqlite_amalg"
6641#if SQLITE_VERSION_NUMBER >= $sqlite_min_ver_num
6642SQLITE_VERSION_OKAY
6643#endif
6644_ACEOF
6645if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6646  $EGREP "SQLITE_VERSION_OKAY" >/dev/null 2>&1; then :
6647  { $as_echo "$as_me:${as_lineno-$LINENO}: result: amalgamation found and is okay" >&5
6648$as_echo "amalgamation found and is okay" >&6; }
6649
6650  case $host_os in
6651  beos* | mingw* | pw32* | cegcc* | cygwin*)
6652    svn_sqlite_dso_ldflags=
6653    ;;
6654
6655  darwin*)
6656  # if libdl is installed we need to link against it
6657    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
6658$as_echo_n "checking for dlopen in -ldl... " >&6; }
6659if ${ac_cv_lib_dl_dlopen+:} false; then :
6660  $as_echo_n "(cached) " >&6
6661else
6662  ac_check_lib_save_LIBS=$LIBS
6663LIBS="-ldl  $LIBS"
6664cat 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
6671extern "C"
6672#endif
6673char dlopen ();
6674int
6675main ()
6676{
6677return dlopen ();
6678  ;
6679  return 0;
6680}
6681_ACEOF
6682if ac_fn_c_try_link "$LINENO"; then :
6683  ac_cv_lib_dl_dlopen=yes
6684else
6685  ac_cv_lib_dl_dlopen=no
6686fi
6687rm -f core conftest.err conftest.$ac_objext \
6688    conftest$ac_exeext conftest.$ac_ext
6689LIBS=$ac_check_lib_save_LIBS
6690fi
6691{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
6692$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
6693if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
6694  lt_cv_dlopen="dlopen" svn_sqlite_dso_ldflags="-ldl"
6695else
6696
6697    svn_sqlite_dso_ldflags=
6698
6699fi
6700
6701    ;;
6702
6703  *)
6704    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
6705if test "x$ac_cv_func_shl_load" = xyes; then :
6706  svn_sqlite_dso_ldflags=
6707else
6708  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
6709$as_echo_n "checking for shl_load in -ldld... " >&6; }
6710if ${ac_cv_lib_dld_shl_load+:} false; then :
6711  $as_echo_n "(cached) " >&6
6712else
6713  ac_check_lib_save_LIBS=$LIBS
6714LIBS="-ldld  $LIBS"
6715cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6716/* end confdefs.h.  */
6717
6718/* Override any GCC internal prototype to avoid an error.
6719   Use char because int might match the return type of a GCC
6720   builtin and then its argument prototype would still apply.  */
6721#ifdef __cplusplus
6722extern "C"
6723#endif
6724char shl_load ();
6725int
6726main ()
6727{
6728return shl_load ();
6729  ;
6730  return 0;
6731}
6732_ACEOF
6733if ac_fn_c_try_link "$LINENO"; then :
6734  ac_cv_lib_dld_shl_load=yes
6735else
6736  ac_cv_lib_dld_shl_load=no
6737fi
6738rm -f core conftest.err conftest.$ac_objext \
6739    conftest$ac_exeext conftest.$ac_ext
6740LIBS=$ac_check_lib_save_LIBS
6741fi
6742{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
6743$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
6744if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
6745  svn_sqlite_dso_ldflags="-ldld"
6746else
6747  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
6748if test "x$ac_cv_func_dlopen" = xyes; then :
6749  svn_sqlite_dso_ldflags=
6750else
6751  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
6752$as_echo_n "checking for dlopen in -ldl... " >&6; }
6753if ${ac_cv_lib_dl_dlopen+:} false; then :
6754  $as_echo_n "(cached) " >&6
6755else
6756  ac_check_lib_save_LIBS=$LIBS
6757LIBS="-ldl  $LIBS"
6758cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6759/* end confdefs.h.  */
6760
6761/* Override any GCC internal prototype to avoid an error.
6762   Use char because int might match the return type of a GCC
6763   builtin and then its argument prototype would still apply.  */
6764#ifdef __cplusplus
6765extern "C"
6766#endif
6767char dlopen ();
6768int
6769main ()
6770{
6771return dlopen ();
6772  ;
6773  return 0;
6774}
6775_ACEOF
6776if ac_fn_c_try_link "$LINENO"; then :
6777  ac_cv_lib_dl_dlopen=yes
6778else
6779  ac_cv_lib_dl_dlopen=no
6780fi
6781rm -f core conftest.err conftest.$ac_objext \
6782    conftest$ac_exeext conftest.$ac_ext
6783LIBS=$ac_check_lib_save_LIBS
6784fi
6785{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
6786$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
6787if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
6788  svn_sqlite_dso_ldflags="-ldl"
6789else
6790  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
6791$as_echo_n "checking for dlopen in -lsvld... " >&6; }
6792if ${ac_cv_lib_svld_dlopen+:} false; then :
6793  $as_echo_n "(cached) " >&6
6794else
6795  ac_check_lib_save_LIBS=$LIBS
6796LIBS="-lsvld  $LIBS"
6797cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6798/* end confdefs.h.  */
6799
6800/* Override any GCC internal prototype to avoid an error.
6801   Use char because int might match the return type of a GCC
6802   builtin and then its argument prototype would still apply.  */
6803#ifdef __cplusplus
6804extern "C"
6805#endif
6806char dlopen ();
6807int
6808main ()
6809{
6810return dlopen ();
6811  ;
6812  return 0;
6813}
6814_ACEOF
6815if ac_fn_c_try_link "$LINENO"; then :
6816  ac_cv_lib_svld_dlopen=yes
6817else
6818  ac_cv_lib_svld_dlopen=no
6819fi
6820rm -f core conftest.err conftest.$ac_objext \
6821    conftest$ac_exeext conftest.$ac_ext
6822LIBS=$ac_check_lib_save_LIBS
6823fi
6824{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
6825$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
6826if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
6827  svn_sqlite_dso_ldflags="-lsvld"
6828else
6829  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
6830$as_echo_n "checking for dld_link in -ldld... " >&6; }
6831if ${ac_cv_lib_dld_dld_link+:} false; then :
6832  $as_echo_n "(cached) " >&6
6833else
6834  ac_check_lib_save_LIBS=$LIBS
6835LIBS="-ldld  $LIBS"
6836cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6837/* end confdefs.h.  */
6838
6839/* Override any GCC internal prototype to avoid an error.
6840   Use char because int might match the return type of a GCC
6841   builtin and then its argument prototype would still apply.  */
6842#ifdef __cplusplus
6843extern "C"
6844#endif
6845char dld_link ();
6846int
6847main ()
6848{
6849return dld_link ();
6850  ;
6851  return 0;
6852}
6853_ACEOF
6854if ac_fn_c_try_link "$LINENO"; then :
6855  ac_cv_lib_dld_dld_link=yes
6856else
6857  ac_cv_lib_dld_dld_link=no
6858fi
6859rm -f core conftest.err conftest.$ac_objext \
6860    conftest$ac_exeext conftest.$ac_ext
6861LIBS=$ac_check_lib_save_LIBS
6862fi
6863{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
6864$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
6865if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
6866  svn_sqlite_dso_ldflags="-ldld"
6867fi
6868
6869
6870fi
6871
6872
6873fi
6874
6875
6876fi
6877
6878
6879fi
6880
6881
6882fi
6883
6884    ;;
6885  esac
6886
6887  { $as_echo "$as_me:${as_lineno-$LINENO}: checking additional libraries for sqlite" >&5
6888$as_echo_n "checking additional libraries for sqlite... " >&6; }
6889  if test -n "$svn_sqlite_dso_ldflags"; then
6890    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${svn_sqlite_dso_ldflags}" >&5
6891$as_echo "${svn_sqlite_dso_ldflags}" >&6; }
6892  else
6893    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6894$as_echo "none" >&6; }
6895  fi
6896
6897
6898$as_echo "#define SVN_SQLITE_INLINE 1" >>confdefs.h
6899
6900                  SVN_SQLITE_INCLUDES="-I`dirname $sqlite_amalg`"
6901                  if test -n "$svn_sqlite_dso_ldflags"; then
6902                    SVN_SQLITE_LIBS="$svn_sqlite_dso_ldflags -lpthread"
6903                  else
6904                    SVN_SQLITE_LIBS="-lpthread"
6905                  fi
6906                  svn_lib_sqlite="yes"
6907else
6908  { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported amalgamation SQLite version" >&5
6909$as_echo "unsupported amalgamation SQLite version" >&6; }
6910fi
6911rm -f conftest*
6912
6913  fi
6914
6915    fi
6916
6917    if test -z "$svn_lib_sqlite"; then
6918
6919  if test -z ""; then
6920    sqlite_dir=""
6921    sqlite_include="sqlite3.h"
6922  else
6923    sqlite_dir=""
6924    sqlite_include="/include/sqlite3.h"
6925  fi
6926
6927  save_CPPFLAGS="$CPPFLAGS"
6928  save_LDFLAGS="$LDFLAGS"
6929
6930  if test ! -z ""; then
6931    CPPFLAGS="$CPPFLAGS -I$sqlite_dir/include"
6932    LDFLAGS="$LDFLAGS -L$sqlite_dir/lib"
6933  fi
6934
6935  ac_fn_c_check_header_mongrel "$LINENO" "sqlite3.h" "ac_cv_header_sqlite3_h" "$ac_includes_default"
6936if test "x$ac_cv_header_sqlite3_h" = xyes; then :
6937
6938      { $as_echo "$as_me:${as_lineno-$LINENO}: checking sqlite library version (via header)" >&5
6939$as_echo_n "checking sqlite library version (via header)... " >&6; }
6940      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6941/* end confdefs.h.  */
6942
6943#include "$sqlite_include"
6944#if SQLITE_VERSION_NUMBER >= $sqlite_min_ver_num
6945SQLITE_VERSION_OKAY
6946#endif
6947_ACEOF
6948if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6949  $EGREP "SQLITE_VERSION_OKAY" >/dev/null 2>&1; then :
6950  { $as_echo "$as_me:${as_lineno-$LINENO}: result: okay" >&5
6951$as_echo "okay" >&6; }
6952                   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite3_close in -lsqlite3" >&5
6953$as_echo_n "checking for sqlite3_close in -lsqlite3... " >&6; }
6954if ${ac_cv_lib_sqlite3_sqlite3_close+:} false; then :
6955  $as_echo_n "(cached) " >&6
6956else
6957  ac_check_lib_save_LIBS=$LIBS
6958LIBS="-lsqlite3  $LIBS"
6959cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6960/* end confdefs.h.  */
6961
6962/* Override any GCC internal prototype to avoid an error.
6963   Use char because int might match the return type of a GCC
6964   builtin and then its argument prototype would still apply.  */
6965#ifdef __cplusplus
6966extern "C"
6967#endif
6968char sqlite3_close ();
6969int
6970main ()
6971{
6972return sqlite3_close ();
6973  ;
6974  return 0;
6975}
6976_ACEOF
6977if ac_fn_c_try_link "$LINENO"; then :
6978  ac_cv_lib_sqlite3_sqlite3_close=yes
6979else
6980  ac_cv_lib_sqlite3_sqlite3_close=no
6981fi
6982rm -f core conftest.err conftest.$ac_objext \
6983    conftest$ac_exeext conftest.$ac_ext
6984LIBS=$ac_check_lib_save_LIBS
6985fi
6986{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_close" >&5
6987$as_echo "$ac_cv_lib_sqlite3_sqlite3_close" >&6; }
6988if test "x$ac_cv_lib_sqlite3_sqlite3_close" = xyes; then :
6989
6990                      svn_lib_sqlite="yes"
6991                      if test -z "$sqlite_dir" -o ! -d "$sqlite_dir"; then
6992                        SVN_SQLITE_LIBS="-lsqlite3"
6993                      else
6994                        SVN_SQLITE_INCLUDES="-I$sqlite_dir/include"
6995                        SVN_SQLITE_LIBS="`
6996  input_flags="-L$sqlite_dir/lib -lsqlite3"
6997  output_flags=""
6998  filtered_dirs="/lib /lib64 /usr/lib /usr/lib64"
6999  for flag in $input_flags; do
7000    filter="no"
7001    for dir in $filtered_dirs; do
7002      if test "$flag" = "-L$dir" || test "$flag" = "-L$dir/"; then
7003        filter="yes"
7004        break
7005      fi
7006    done
7007    if test "$filter" = "no"; then
7008      output_flags="$output_flags $flag"
7009    fi
7010  done
7011  if test -n "$output_flags"; then
7012    printf "%s" "${output_flags# }"
7013  fi
7014`"
7015                      fi
7016
7017fi
7018
7019else
7020  { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported SQLite version" >&5
7021$as_echo "unsupported SQLite version" >&6; }
7022fi
7023rm -f conftest*
7024
7025
7026fi
7027
7028
7029
7030  CPPFLAGS="$save_CPPFLAGS"
7031  LDFLAGS="$save_LDFLAGS"
7032
7033    fi
7034
7035    if test -z "$svn_lib_sqlite"; then
7036
7037    if test -n "$PKG_CONFIG"; then
7038      { $as_echo "$as_me:${as_lineno-$LINENO}: checking sqlite library version (via pkg-config)" >&5
7039$as_echo_n "checking sqlite library version (via pkg-config)... " >&6; }
7040      sqlite_version=`$PKG_CONFIG $SQLITE_PKGNAME --modversion --silence-errors`
7041
7042      if test -n "$sqlite_version"; then
7043
7044  version_string="$sqlite_version"
7045
7046  major=`expr $version_string : '\([0-9]*\)'`
7047  minor=`expr $version_string : '[0-9]*\.\([0-9]*\)'`
7048  micro=`expr $version_string : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
7049  if test -z "$micro"; then
7050    micro=0
7051  fi
7052  sqlite_ver_num=`expr $major \* 1000000 \
7053        \+ $minor \* 1000 \
7054        \+ $micro`
7055
7056
7057        if test "$sqlite_ver_num" -ge "$sqlite_min_ver_num"; then
7058          { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sqlite_version" >&5
7059$as_echo "$sqlite_version" >&6; }
7060          svn_lib_sqlite="yes"
7061          SVN_SQLITE_INCLUDES="`$PKG_CONFIG $SQLITE_PKGNAME --cflags`"
7062          SVN_SQLITE_LIBS="`$PKG_CONFIG $SQLITE_PKGNAME --libs`"
7063        else
7064          { $as_echo "$as_me:${as_lineno-$LINENO}: result: none or unsupported $sqlite_version" >&5
7065$as_echo "none or unsupported $sqlite_version" >&6; }
7066        fi
7067      fi
7068    fi
7069
7070    if test -z "$svn_lib_sqlite"; then
7071      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7072$as_echo "no" >&6; }
7073    fi
7074
7075    fi
7076
7077    if test -z "$svn_lib_sqlite"; then
7078
7079  echo ""
7080  echo "An appropriate version of sqlite could not be found.  We recommmend"
7081  echo "${SQLITE_RECOMMENDED_VER}, but require at least ${SQLITE_MINIMUM_VER}."
7082  echo "Please either install a newer sqlite on this system"
7083  echo ""
7084  echo "or"
7085  echo ""
7086  echo "get the sqlite ${SQLITE_RECOMMENDED_VER} amalgamation from:"
7087  echo "    ${SQLITE_URL}"
7088  echo "unpack the archive using unzip and rename the resulting"
7089  echo "directory to:"
7090  echo "$abs_srcdir/sqlite-amalgamation"
7091  if test x"$abs_srcdir" != x"$abs_builddir"; then
7092    echo "or to:"
7093    echo "$abs_builddir/sqlite-amalgamation"
7094  fi
7095  echo ""
7096  as_fn_error $? "Subversion requires SQLite" "$LINENO" 5
7097
7098    fi
7099
7100fi
7101
7102
7103
7104
7105
7106
7107# Check whether --enable-sqlite-compatibility-version was given.
7108if test "${enable_sqlite_compatibility_version+set}" = set; then :
7109  enableval=$enable_sqlite_compatibility_version; sqlite_compat_ver=$enableval
7110else
7111  sqlite_compat_ver=no
7112fi
7113
7114
7115if test -n "$sqlite_compat_ver" && test "$sqlite_compat_ver" != no; then
7116
7117  version_string="$sqlite_compat_ver"
7118
7119  major=`expr $version_string : '\([0-9]*\)'`
7120  minor=`expr $version_string : '[0-9]*\.\([0-9]*\)'`
7121  micro=`expr $version_string : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
7122  if test -z "$micro"; then
7123    micro=0
7124  fi
7125  sqlite_compat_ver_num=`expr $major \* 1000000 \
7126        \+ $minor \* 1000 \
7127        \+ $micro`
7128
7129  CFLAGS="-DSVN_SQLITE_MIN_VERSION='\"$sqlite_compat_ver\"' $CFLAGS"
7130  CFLAGS="-DSVN_SQLITE_MIN_VERSION_NUMBER=$sqlite_compat_ver_num $CFLAGS"
7131fi
7132
7133
7134  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler provides atomic builtins" >&5
7135$as_echo_n "checking whether the compiler provides atomic builtins... " >&6; }
7136if ${svn_cv_atomic_builtins+:} false; then :
7137  $as_echo_n "(cached) " >&6
7138else
7139  if test "$cross_compiling" = yes; then :
7140  svn_cv_atomic_builtins=no
7141else
7142  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7143/* end confdefs.h.  */
7144
7145  int main()
7146  {
7147      unsigned long long val = 1010, tmp, *mem = &val;
7148
7149      if (__sync_fetch_and_add(&val, 1010) != 1010 || val != 2020)
7150          return 1;
7151
7152      tmp = val;
7153
7154      if (__sync_fetch_and_sub(mem, 1010) != tmp || val != 1010)
7155          return 1;
7156
7157      if (__sync_sub_and_fetch(&val, 1010) != 0 || val != 0)
7158          return 1;
7159
7160      tmp = 3030;
7161
7162      if (__sync_val_compare_and_swap(mem, 0, tmp) != 0 || val != tmp)
7163          return 1;
7164
7165      if (__sync_lock_test_and_set(&val, 4040) != 3030)
7166          return 1;
7167
7168      mem = &tmp;
7169
7170      if (__sync_val_compare_and_swap(&mem, &tmp, &val) != &tmp)
7171          return 1;
7172
7173      __sync_synchronize();
7174
7175      if (mem != &val)
7176          return 1;
7177
7178      return 0;
7179  }
7180_ACEOF
7181if ac_fn_c_try_run "$LINENO"; then :
7182  svn_cv_atomic_builtins=yes
7183else
7184  svn_cv_atomic_builtins=no
7185fi
7186rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7187  conftest.$ac_objext conftest.beam conftest.$ac_ext
7188fi
7189
7190fi
7191{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $svn_cv_atomic_builtins" >&5
7192$as_echo "$svn_cv_atomic_builtins" >&6; }
7193
7194
7195if test "$svn_cv_atomic_builtins" = "yes"; then
7196
7197$as_echo "#define SVN_HAS_ATOMIC_BUILTINS 1" >>confdefs.h
7198
7199fi
7200
7201
7202if test "${bindir}" = '${exec_prefix}/bin'; then
7203        if test "${exec_prefix}" = "NONE"; then
7204                if test "${prefix}" = "NONE"; then
7205                        SVN_BINDIR="${ac_default_prefix}/bin"
7206                else
7207                        SVN_BINDIR="${prefix}/bin"
7208                fi
7209        else
7210                SVN_BINDIR="${exec_prefix}/bin"
7211        fi
7212else
7213        SVN_BINDIR="${bindir}"
7214fi
7215
7216SVN_BINDIR="`eval echo ${SVN_BINDIR}`"
7217
7218
7219
7220cat >>confdefs.h <<_ACEOF
7221#define SVN_BINDIR "${SVN_BINDIR}"
7222_ACEOF
7223
7224
7225localedir='${datadir}/locale'
7226
7227
7228if test "${datadir}" = '${prefix}/share' && test "${prefix}" = "NONE"; then
7229  exp_localedir='${ac_default_prefix}/share/locale'
7230else
7231  exp_localedir=$localedir
7232fi
7233
7234svn_last=
7235svn_cur=""${exp_localedir}""
7236while test "x${svn_cur}" != "x${svn_last}";
7237do
7238  svn_last="${svn_cur}"
7239  svn_cur=`eval "echo ${svn_cur}"`
7240done
7241svn_localedir="${svn_cur}"
7242
7243
7244cat >>confdefs.h <<_ACEOF
7245#define SVN_LOCALE_DIR "${svn_localedir}"
7246_ACEOF
7247
7248
7249{ $as_echo "$as_me:${as_lineno-$LINENO}: configuring libtool now" >&5
7250$as_echo "$as_me: configuring libtool now" >&6;}
7251case `pwd` in
7252  *\ * | *\	*)
7253    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
7254$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
7255esac
7256
7257
7258
7259macro_version='2.4.2'
7260macro_revision='1.3337'
7261
7262
7263
7264
7265
7266
7267
7268
7269
7270
7271
7272
7273
7274ltmain="$ac_aux_dir/ltmain.sh"
7275
7276# Backslashify metacharacters that are still active within
7277# double-quoted strings.
7278sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7279
7280# Same as above, but do not quote variable references.
7281double_quote_subst='s/\(["`\\]\)/\\\1/g'
7282
7283# Sed substitution to delay expansion of an escaped shell variable in a
7284# double_quote_subst'ed string.
7285delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7286
7287# Sed substitution to delay expansion of an escaped single quote.
7288delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7289
7290# Sed substitution to avoid accidental globbing in evaled expressions
7291no_glob_subst='s/\*/\\\*/g'
7292
7293ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7294ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
7295ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
7296
7297{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
7298$as_echo_n "checking how to print strings... " >&6; }
7299# Test print first, because it will be a builtin if present.
7300if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
7301   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
7302  ECHO='print -r --'
7303elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
7304  ECHO='printf %s\n'
7305else
7306  # Use this function as a fallback that always works.
7307  func_fallback_echo ()
7308  {
7309    eval 'cat <<_LTECHO_EOF
7310$1
7311_LTECHO_EOF'
7312  }
7313  ECHO='func_fallback_echo'
7314fi
7315
7316# func_echo_all arg...
7317# Invoke $ECHO with all args, space-separated.
7318func_echo_all ()
7319{
7320    $ECHO ""
7321}
7322
7323case "$ECHO" in
7324  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
7325$as_echo "printf" >&6; } ;;
7326  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
7327$as_echo "print -r" >&6; } ;;
7328  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
7329$as_echo "cat" >&6; } ;;
7330esac
7331
7332
7333
7334
7335
7336
7337
7338
7339
7340
7341
7342
7343
7344
7345{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
7346$as_echo_n "checking for a sed that does not truncate output... " >&6; }
7347if ${ac_cv_path_SED+:} false; then :
7348  $as_echo_n "(cached) " >&6
7349else
7350            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
7351     for ac_i in 1 2 3 4 5 6 7; do
7352       ac_script="$ac_script$as_nl$ac_script"
7353     done
7354     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
7355     { ac_script=; unset ac_script;}
7356     if test -z "$SED"; then
7357  ac_path_SED_found=false
7358  # Loop through the user's path and test for each of PROGNAME-LIST
7359  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7360for as_dir in $PATH
7361do
7362  IFS=$as_save_IFS
7363  test -z "$as_dir" && as_dir=.
7364    for ac_prog in sed gsed; do
7365    for ac_exec_ext in '' $ac_executable_extensions; do
7366      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
7367      as_fn_executable_p "$ac_path_SED" || continue
7368# Check for GNU ac_path_SED and select it if it is found.
7369  # Check for GNU $ac_path_SED
7370case `"$ac_path_SED" --version 2>&1` in
7371*GNU*)
7372  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
7373*)
7374  ac_count=0
7375  $as_echo_n 0123456789 >"conftest.in"
7376  while :
7377  do
7378    cat "conftest.in" "conftest.in" >"conftest.tmp"
7379    mv "conftest.tmp" "conftest.in"
7380    cp "conftest.in" "conftest.nl"
7381    $as_echo '' >> "conftest.nl"
7382    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
7383    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7384    as_fn_arith $ac_count + 1 && ac_count=$as_val
7385    if test $ac_count -gt ${ac_path_SED_max-0}; then
7386      # Best one so far, save it but keep looking for a better one
7387      ac_cv_path_SED="$ac_path_SED"
7388      ac_path_SED_max=$ac_count
7389    fi
7390    # 10*(2^10) chars as input seems more than enough
7391    test $ac_count -gt 10 && break
7392  done
7393  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7394esac
7395
7396      $ac_path_SED_found && break 3
7397    done
7398  done
7399  done
7400IFS=$as_save_IFS
7401  if test -z "$ac_cv_path_SED"; then
7402    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
7403  fi
7404else
7405  ac_cv_path_SED=$SED
7406fi
7407
7408fi
7409{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
7410$as_echo "$ac_cv_path_SED" >&6; }
7411 SED="$ac_cv_path_SED"
7412  rm -f conftest.sed
7413
7414test -z "$SED" && SED=sed
7415Xsed="$SED -e 1s/^X//"
7416
7417
7418
7419
7420
7421
7422
7423
7424
7425
7426
7427{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
7428$as_echo_n "checking for fgrep... " >&6; }
7429if ${ac_cv_path_FGREP+:} false; then :
7430  $as_echo_n "(cached) " >&6
7431else
7432  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
7433   then ac_cv_path_FGREP="$GREP -F"
7434   else
7435     if test -z "$FGREP"; then
7436  ac_path_FGREP_found=false
7437  # Loop through the user's path and test for each of PROGNAME-LIST
7438  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7439for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7440do
7441  IFS=$as_save_IFS
7442  test -z "$as_dir" && as_dir=.
7443    for ac_prog in fgrep; do
7444    for ac_exec_ext in '' $ac_executable_extensions; do
7445      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
7446      as_fn_executable_p "$ac_path_FGREP" || continue
7447# Check for GNU ac_path_FGREP and select it if it is found.
7448  # Check for GNU $ac_path_FGREP
7449case `"$ac_path_FGREP" --version 2>&1` in
7450*GNU*)
7451  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
7452*)
7453  ac_count=0
7454  $as_echo_n 0123456789 >"conftest.in"
7455  while :
7456  do
7457    cat "conftest.in" "conftest.in" >"conftest.tmp"
7458    mv "conftest.tmp" "conftest.in"
7459    cp "conftest.in" "conftest.nl"
7460    $as_echo 'FGREP' >> "conftest.nl"
7461    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
7462    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7463    as_fn_arith $ac_count + 1 && ac_count=$as_val
7464    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
7465      # Best one so far, save it but keep looking for a better one
7466      ac_cv_path_FGREP="$ac_path_FGREP"
7467      ac_path_FGREP_max=$ac_count
7468    fi
7469    # 10*(2^10) chars as input seems more than enough
7470    test $ac_count -gt 10 && break
7471  done
7472  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7473esac
7474
7475      $ac_path_FGREP_found && break 3
7476    done
7477  done
7478  done
7479IFS=$as_save_IFS
7480  if test -z "$ac_cv_path_FGREP"; then
7481    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7482  fi
7483else
7484  ac_cv_path_FGREP=$FGREP
7485fi
7486
7487   fi
7488fi
7489{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
7490$as_echo "$ac_cv_path_FGREP" >&6; }
7491 FGREP="$ac_cv_path_FGREP"
7492
7493
7494test -z "$GREP" && GREP=grep
7495
7496
7497
7498
7499
7500
7501
7502
7503
7504
7505
7506
7507
7508
7509
7510
7511
7512
7513
7514# Check whether --with-gnu-ld was given.
7515if test "${with_gnu_ld+set}" = set; then :
7516  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7517else
7518  with_gnu_ld=no
7519fi
7520
7521ac_prog=ld
7522if test "$GCC" = yes; then
7523  # Check if gcc -print-prog-name=ld gives a path.
7524  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7525$as_echo_n "checking for ld used by $CC... " >&6; }
7526  case $host in
7527  *-*-mingw*)
7528    # gcc leaves a trailing carriage return which upsets mingw
7529    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7530  *)
7531    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7532  esac
7533  case $ac_prog in
7534    # Accept absolute paths.
7535    [\\/]* | ?:[\\/]*)
7536      re_direlt='/[^/][^/]*/\.\./'
7537      # Canonicalize the pathname of ld
7538      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
7539      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
7540	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
7541      done
7542      test -z "$LD" && LD="$ac_prog"
7543      ;;
7544  "")
7545    # If it fails, then pretend we aren't using GCC.
7546    ac_prog=ld
7547    ;;
7548  *)
7549    # If it is relative, then search for the first ld in PATH.
7550    with_gnu_ld=unknown
7551    ;;
7552  esac
7553elif test "$with_gnu_ld" = yes; then
7554  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7555$as_echo_n "checking for GNU ld... " >&6; }
7556else
7557  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7558$as_echo_n "checking for non-GNU ld... " >&6; }
7559fi
7560if ${lt_cv_path_LD+:} false; then :
7561  $as_echo_n "(cached) " >&6
7562else
7563  if test -z "$LD"; then
7564  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7565  for ac_dir in $PATH; do
7566    IFS="$lt_save_ifs"
7567    test -z "$ac_dir" && ac_dir=.
7568    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7569      lt_cv_path_LD="$ac_dir/$ac_prog"
7570      # Check to see if the program is GNU ld.  I'd rather use --version,
7571      # but apparently some variants of GNU ld only accept -v.
7572      # Break only if it was the GNU/non-GNU ld that we prefer.
7573      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7574      *GNU* | *'with BFD'*)
7575	test "$with_gnu_ld" != no && break
7576	;;
7577      *)
7578	test "$with_gnu_ld" != yes && break
7579	;;
7580      esac
7581    fi
7582  done
7583  IFS="$lt_save_ifs"
7584else
7585  lt_cv_path_LD="$LD" # Let the user override the test with a path.
7586fi
7587fi
7588
7589LD="$lt_cv_path_LD"
7590if test -n "$LD"; then
7591  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7592$as_echo "$LD" >&6; }
7593else
7594  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7595$as_echo "no" >&6; }
7596fi
7597test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
7598{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7599$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7600if ${lt_cv_prog_gnu_ld+:} false; then :
7601  $as_echo_n "(cached) " >&6
7602else
7603  # I'd rather use --version here, but apparently some GNU lds only accept -v.
7604case `$LD -v 2>&1 </dev/null` in
7605*GNU* | *'with BFD'*)
7606  lt_cv_prog_gnu_ld=yes
7607  ;;
7608*)
7609  lt_cv_prog_gnu_ld=no
7610  ;;
7611esac
7612fi
7613{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
7614$as_echo "$lt_cv_prog_gnu_ld" >&6; }
7615with_gnu_ld=$lt_cv_prog_gnu_ld
7616
7617
7618
7619
7620
7621
7622
7623
7624
7625{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
7626$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
7627if ${lt_cv_path_NM+:} false; then :
7628  $as_echo_n "(cached) " >&6
7629else
7630  if test -n "$NM"; then
7631  # Let the user override the test.
7632  lt_cv_path_NM="$NM"
7633else
7634  lt_nm_to_check="${ac_tool_prefix}nm"
7635  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
7636    lt_nm_to_check="$lt_nm_to_check nm"
7637  fi
7638  for lt_tmp_nm in $lt_nm_to_check; do
7639    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7640    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
7641      IFS="$lt_save_ifs"
7642      test -z "$ac_dir" && ac_dir=.
7643      tmp_nm="$ac_dir/$lt_tmp_nm"
7644      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
7645	# Check to see if the nm accepts a BSD-compat flag.
7646	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
7647	#   nm: unknown option "B" ignored
7648	# Tru64's nm complains that /dev/null is an invalid object file
7649	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
7650	*/dev/null* | *'Invalid file or object type'*)
7651	  lt_cv_path_NM="$tmp_nm -B"
7652	  break
7653	  ;;
7654	*)
7655	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
7656	  */dev/null*)
7657	    lt_cv_path_NM="$tmp_nm -p"
7658	    break
7659	    ;;
7660	  *)
7661	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
7662	    continue # so that we can try to find one that supports BSD flags
7663	    ;;
7664	  esac
7665	  ;;
7666	esac
7667      fi
7668    done
7669    IFS="$lt_save_ifs"
7670  done
7671  : ${lt_cv_path_NM=no}
7672fi
7673fi
7674{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
7675$as_echo "$lt_cv_path_NM" >&6; }
7676if test "$lt_cv_path_NM" != "no"; then
7677  NM="$lt_cv_path_NM"
7678else
7679  # Didn't find any BSD compatible name lister, look for dumpbin.
7680  if test -n "$DUMPBIN"; then :
7681    # Let the user override the test.
7682  else
7683    if test -n "$ac_tool_prefix"; then
7684  for ac_prog in dumpbin "link -dump"
7685  do
7686    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7687set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7688{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7689$as_echo_n "checking for $ac_word... " >&6; }
7690if ${ac_cv_prog_DUMPBIN+:} false; then :
7691  $as_echo_n "(cached) " >&6
7692else
7693  if test -n "$DUMPBIN"; then
7694  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
7695else
7696as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7697for as_dir in $PATH
7698do
7699  IFS=$as_save_IFS
7700  test -z "$as_dir" && as_dir=.
7701    for ac_exec_ext in '' $ac_executable_extensions; do
7702  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7703    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
7704    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7705    break 2
7706  fi
7707done
7708  done
7709IFS=$as_save_IFS
7710
7711fi
7712fi
7713DUMPBIN=$ac_cv_prog_DUMPBIN
7714if test -n "$DUMPBIN"; then
7715  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
7716$as_echo "$DUMPBIN" >&6; }
7717else
7718  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7719$as_echo "no" >&6; }
7720fi
7721
7722
7723    test -n "$DUMPBIN" && break
7724  done
7725fi
7726if test -z "$DUMPBIN"; then
7727  ac_ct_DUMPBIN=$DUMPBIN
7728  for ac_prog in dumpbin "link -dump"
7729do
7730  # Extract the first word of "$ac_prog", so it can be a program name with args.
7731set dummy $ac_prog; ac_word=$2
7732{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7733$as_echo_n "checking for $ac_word... " >&6; }
7734if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
7735  $as_echo_n "(cached) " >&6
7736else
7737  if test -n "$ac_ct_DUMPBIN"; then
7738  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
7739else
7740as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7741for as_dir in $PATH
7742do
7743  IFS=$as_save_IFS
7744  test -z "$as_dir" && as_dir=.
7745    for ac_exec_ext in '' $ac_executable_extensions; do
7746  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7747    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
7748    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7749    break 2
7750  fi
7751done
7752  done
7753IFS=$as_save_IFS
7754
7755fi
7756fi
7757ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
7758if test -n "$ac_ct_DUMPBIN"; then
7759  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
7760$as_echo "$ac_ct_DUMPBIN" >&6; }
7761else
7762  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7763$as_echo "no" >&6; }
7764fi
7765
7766
7767  test -n "$ac_ct_DUMPBIN" && break
7768done
7769
7770  if test "x$ac_ct_DUMPBIN" = x; then
7771    DUMPBIN=":"
7772  else
7773    case $cross_compiling:$ac_tool_warned in
7774yes:)
7775{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7776$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7777ac_tool_warned=yes ;;
7778esac
7779    DUMPBIN=$ac_ct_DUMPBIN
7780  fi
7781fi
7782
7783    case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
7784    *COFF*)
7785      DUMPBIN="$DUMPBIN -symbols"
7786      ;;
7787    *)
7788      DUMPBIN=:
7789      ;;
7790    esac
7791  fi
7792
7793  if test "$DUMPBIN" != ":"; then
7794    NM="$DUMPBIN"
7795  fi
7796fi
7797test -z "$NM" && NM=nm
7798
7799
7800
7801
7802
7803
7804{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
7805$as_echo_n "checking the name lister ($NM) interface... " >&6; }
7806if ${lt_cv_nm_interface+:} false; then :
7807  $as_echo_n "(cached) " >&6
7808else
7809  lt_cv_nm_interface="BSD nm"
7810  echo "int some_variable = 0;" > conftest.$ac_ext
7811  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
7812  (eval "$ac_compile" 2>conftest.err)
7813  cat conftest.err >&5
7814  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
7815  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
7816  cat conftest.err >&5
7817  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
7818  cat conftest.out >&5
7819  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
7820    lt_cv_nm_interface="MS dumpbin"
7821  fi
7822  rm -f conftest*
7823fi
7824{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
7825$as_echo "$lt_cv_nm_interface" >&6; }
7826
7827# find the maximum length of command line arguments
7828{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
7829$as_echo_n "checking the maximum length of command line arguments... " >&6; }
7830if ${lt_cv_sys_max_cmd_len+:} false; then :
7831  $as_echo_n "(cached) " >&6
7832else
7833    i=0
7834  teststring="ABCD"
7835
7836  case $build_os in
7837  msdosdjgpp*)
7838    # On DJGPP, this test can blow up pretty badly due to problems in libc
7839    # (any single argument exceeding 2000 bytes causes a buffer overrun
7840    # during glob expansion).  Even if it were fixed, the result of this
7841    # check would be larger than it should be.
7842    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
7843    ;;
7844
7845  gnu*)
7846    # Under GNU Hurd, this test is not required because there is
7847    # no limit to the length of command line arguments.
7848    # Libtool will interpret -1 as no limit whatsoever
7849    lt_cv_sys_max_cmd_len=-1;
7850    ;;
7851
7852  cygwin* | mingw* | cegcc*)
7853    # On Win9x/ME, this test blows up -- it succeeds, but takes
7854    # about 5 minutes as the teststring grows exponentially.
7855    # Worse, since 9x/ME are not pre-emptively multitasking,
7856    # you end up with a "frozen" computer, even though with patience
7857    # the test eventually succeeds (with a max line length of 256k).
7858    # Instead, let's just punt: use the minimum linelength reported by
7859    # all of the supported platforms: 8192 (on NT/2K/XP).
7860    lt_cv_sys_max_cmd_len=8192;
7861    ;;
7862
7863  mint*)
7864    # On MiNT this can take a long time and run out of memory.
7865    lt_cv_sys_max_cmd_len=8192;
7866    ;;
7867
7868  amigaos*)
7869    # On AmigaOS with pdksh, this test takes hours, literally.
7870    # So we just punt and use a minimum line length of 8192.
7871    lt_cv_sys_max_cmd_len=8192;
7872    ;;
7873
7874  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7875    # This has been around since 386BSD, at least.  Likely further.
7876    if test -x /sbin/sysctl; then
7877      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7878    elif test -x /usr/sbin/sysctl; then
7879      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7880    else
7881      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
7882    fi
7883    # And add a safety zone
7884    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7885    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7886    ;;
7887
7888  interix*)
7889    # We know the value 262144 and hardcode it with a safety zone (like BSD)
7890    lt_cv_sys_max_cmd_len=196608
7891    ;;
7892
7893  os2*)
7894    # The test takes a long time on OS/2.
7895    lt_cv_sys_max_cmd_len=8192
7896    ;;
7897
7898  osf*)
7899    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7900    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7901    # nice to cause kernel panics so lets avoid the loop below.
7902    # First set a reasonable default.
7903    lt_cv_sys_max_cmd_len=16384
7904    #
7905    if test -x /sbin/sysconfig; then
7906      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7907        *1*) lt_cv_sys_max_cmd_len=-1 ;;
7908      esac
7909    fi
7910    ;;
7911  sco3.2v5*)
7912    lt_cv_sys_max_cmd_len=102400
7913    ;;
7914  sysv5* | sco5v6* | sysv4.2uw2*)
7915    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7916    if test -n "$kargmax"; then
7917      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
7918    else
7919      lt_cv_sys_max_cmd_len=32768
7920    fi
7921    ;;
7922  *)
7923    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
7924    if test -n "$lt_cv_sys_max_cmd_len"; then
7925      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7926      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7927    else
7928      # Make teststring a little bigger before we do anything with it.
7929      # a 1K string should be a reasonable start.
7930      for i in 1 2 3 4 5 6 7 8 ; do
7931        teststring=$teststring$teststring
7932      done
7933      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7934      # If test is not a shell built-in, we'll probably end up computing a
7935      # maximum length that is only half of the actual maximum length, but
7936      # we can't tell.
7937      while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
7938	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
7939	      test $i != 17 # 1/2 MB should be enough
7940      do
7941        i=`expr $i + 1`
7942        teststring=$teststring$teststring
7943      done
7944      # Only check the string length outside the loop.
7945      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
7946      teststring=
7947      # Add a significant safety factor because C++ compilers can tack on
7948      # massive amounts of additional arguments before passing them to the
7949      # linker.  It appears as though 1/2 is a usable value.
7950      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7951    fi
7952    ;;
7953  esac
7954
7955fi
7956
7957if test -n $lt_cv_sys_max_cmd_len ; then
7958  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
7959$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
7960else
7961  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
7962$as_echo "none" >&6; }
7963fi
7964max_cmd_len=$lt_cv_sys_max_cmd_len
7965
7966
7967
7968
7969
7970
7971: ${CP="cp -f"}
7972: ${MV="mv -f"}
7973: ${RM="rm -f"}
7974
7975{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
7976$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
7977# Try some XSI features
7978xsi_shell=no
7979( _lt_dummy="a/b/c"
7980  test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
7981      = c,a/b,b/c, \
7982    && eval 'test $(( 1 + 1 )) -eq 2 \
7983    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
7984  && xsi_shell=yes
7985{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
7986$as_echo "$xsi_shell" >&6; }
7987
7988
7989{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
7990$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
7991lt_shell_append=no
7992( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
7993    >/dev/null 2>&1 \
7994  && lt_shell_append=yes
7995{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
7996$as_echo "$lt_shell_append" >&6; }
7997
7998
7999if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
8000  lt_unset=unset
8001else
8002  lt_unset=false
8003fi
8004
8005
8006
8007
8008
8009# test EBCDIC or ASCII
8010case `echo X|tr X '\101'` in
8011 A) # ASCII based system
8012    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
8013  lt_SP2NL='tr \040 \012'
8014  lt_NL2SP='tr \015\012 \040\040'
8015  ;;
8016 *) # EBCDIC based system
8017  lt_SP2NL='tr \100 \n'
8018  lt_NL2SP='tr \r\n \100\100'
8019  ;;
8020esac
8021
8022
8023
8024
8025
8026
8027
8028
8029
8030{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
8031$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
8032if ${lt_cv_to_host_file_cmd+:} false; then :
8033  $as_echo_n "(cached) " >&6
8034else
8035  case $host in
8036  *-*-mingw* )
8037    case $build in
8038      *-*-mingw* ) # actually msys
8039        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
8040        ;;
8041      *-*-cygwin* )
8042        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
8043        ;;
8044      * ) # otherwise, assume *nix
8045        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
8046        ;;
8047    esac
8048    ;;
8049  *-*-cygwin* )
8050    case $build in
8051      *-*-mingw* ) # actually msys
8052        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
8053        ;;
8054      *-*-cygwin* )
8055        lt_cv_to_host_file_cmd=func_convert_file_noop
8056        ;;
8057      * ) # otherwise, assume *nix
8058        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
8059        ;;
8060    esac
8061    ;;
8062  * ) # unhandled hosts (and "normal" native builds)
8063    lt_cv_to_host_file_cmd=func_convert_file_noop
8064    ;;
8065esac
8066
8067fi
8068
8069to_host_file_cmd=$lt_cv_to_host_file_cmd
8070{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
8071$as_echo "$lt_cv_to_host_file_cmd" >&6; }
8072
8073
8074
8075
8076
8077{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
8078$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
8079if ${lt_cv_to_tool_file_cmd+:} false; then :
8080  $as_echo_n "(cached) " >&6
8081else
8082  #assume ordinary cross tools, or native build.
8083lt_cv_to_tool_file_cmd=func_convert_file_noop
8084case $host in
8085  *-*-mingw* )
8086    case $build in
8087      *-*-mingw* ) # actually msys
8088        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
8089        ;;
8090    esac
8091    ;;
8092esac
8093
8094fi
8095
8096to_tool_file_cmd=$lt_cv_to_tool_file_cmd
8097{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
8098$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
8099
8100
8101
8102
8103
8104{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
8105$as_echo_n "checking for $LD option to reload object files... " >&6; }
8106if ${lt_cv_ld_reload_flag+:} false; then :
8107  $as_echo_n "(cached) " >&6
8108else
8109  lt_cv_ld_reload_flag='-r'
8110fi
8111{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
8112$as_echo "$lt_cv_ld_reload_flag" >&6; }
8113reload_flag=$lt_cv_ld_reload_flag
8114case $reload_flag in
8115"" | " "*) ;;
8116*) reload_flag=" $reload_flag" ;;
8117esac
8118reload_cmds='$LD$reload_flag -o $output$reload_objs'
8119case $host_os in
8120  cygwin* | mingw* | pw32* | cegcc*)
8121    if test "$GCC" != yes; then
8122      reload_cmds=false
8123    fi
8124    ;;
8125  darwin*)
8126    if test "$GCC" = yes; then
8127      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
8128    else
8129      reload_cmds='$LD$reload_flag -o $output$reload_objs'
8130    fi
8131    ;;
8132esac
8133
8134
8135
8136
8137
8138
8139
8140
8141
8142if test -n "$ac_tool_prefix"; then
8143  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
8144set dummy ${ac_tool_prefix}objdump; ac_word=$2
8145{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8146$as_echo_n "checking for $ac_word... " >&6; }
8147if ${ac_cv_prog_OBJDUMP+:} false; then :
8148  $as_echo_n "(cached) " >&6
8149else
8150  if test -n "$OBJDUMP"; then
8151  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
8152else
8153as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8154for as_dir in $PATH
8155do
8156  IFS=$as_save_IFS
8157  test -z "$as_dir" && as_dir=.
8158    for ac_exec_ext in '' $ac_executable_extensions; do
8159  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8160    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
8161    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8162    break 2
8163  fi
8164done
8165  done
8166IFS=$as_save_IFS
8167
8168fi
8169fi
8170OBJDUMP=$ac_cv_prog_OBJDUMP
8171if test -n "$OBJDUMP"; then
8172  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
8173$as_echo "$OBJDUMP" >&6; }
8174else
8175  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8176$as_echo "no" >&6; }
8177fi
8178
8179
8180fi
8181if test -z "$ac_cv_prog_OBJDUMP"; then
8182  ac_ct_OBJDUMP=$OBJDUMP
8183  # Extract the first word of "objdump", so it can be a program name with args.
8184set dummy objdump; ac_word=$2
8185{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8186$as_echo_n "checking for $ac_word... " >&6; }
8187if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
8188  $as_echo_n "(cached) " >&6
8189else
8190  if test -n "$ac_ct_OBJDUMP"; then
8191  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
8192else
8193as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8194for as_dir in $PATH
8195do
8196  IFS=$as_save_IFS
8197  test -z "$as_dir" && as_dir=.
8198    for ac_exec_ext in '' $ac_executable_extensions; do
8199  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8200    ac_cv_prog_ac_ct_OBJDUMP="objdump"
8201    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8202    break 2
8203  fi
8204done
8205  done
8206IFS=$as_save_IFS
8207
8208fi
8209fi
8210ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
8211if test -n "$ac_ct_OBJDUMP"; then
8212  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
8213$as_echo "$ac_ct_OBJDUMP" >&6; }
8214else
8215  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8216$as_echo "no" >&6; }
8217fi
8218
8219  if test "x$ac_ct_OBJDUMP" = x; then
8220    OBJDUMP="false"
8221  else
8222    case $cross_compiling:$ac_tool_warned in
8223yes:)
8224{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8225$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8226ac_tool_warned=yes ;;
8227esac
8228    OBJDUMP=$ac_ct_OBJDUMP
8229  fi
8230else
8231  OBJDUMP="$ac_cv_prog_OBJDUMP"
8232fi
8233
8234test -z "$OBJDUMP" && OBJDUMP=objdump
8235
8236
8237
8238
8239
8240
8241
8242
8243
8244{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
8245$as_echo_n "checking how to recognize dependent libraries... " >&6; }
8246if ${lt_cv_deplibs_check_method+:} false; then :
8247  $as_echo_n "(cached) " >&6
8248else
8249  lt_cv_file_magic_cmd='$MAGIC_CMD'
8250lt_cv_file_magic_test_file=
8251lt_cv_deplibs_check_method='unknown'
8252# Need to set the preceding variable on all platforms that support
8253# interlibrary dependencies.
8254# 'none' -- dependencies not supported.
8255# `unknown' -- same as none, but documents that we really don't know.
8256# 'pass_all' -- all dependencies passed with no checks.
8257# 'test_compile' -- check by making test program.
8258# 'file_magic [[regex]]' -- check by looking for files in library path
8259# which responds to the $file_magic_cmd with a given extended regex.
8260# If you have `file' or equivalent on your system and you're not sure
8261# whether `pass_all' will *always* work, you probably want this one.
8262
8263case $host_os in
8264aix[4-9]*)
8265  lt_cv_deplibs_check_method=pass_all
8266  ;;
8267
8268beos*)
8269  lt_cv_deplibs_check_method=pass_all
8270  ;;
8271
8272bsdi[45]*)
8273  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
8274  lt_cv_file_magic_cmd='/usr/bin/file -L'
8275  lt_cv_file_magic_test_file=/shlib/libc.so
8276  ;;
8277
8278cygwin*)
8279  # func_win32_libid is a shell function defined in ltmain.sh
8280  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
8281  lt_cv_file_magic_cmd='func_win32_libid'
8282  ;;
8283
8284mingw* | pw32*)
8285  # Base MSYS/MinGW do not provide the 'file' command needed by
8286  # func_win32_libid shell function, so use a weaker test based on 'objdump',
8287  # unless we find 'file', for example because we are cross-compiling.
8288  # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
8289  if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
8290    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
8291    lt_cv_file_magic_cmd='func_win32_libid'
8292  else
8293    # Keep this pattern in sync with the one in func_win32_libid.
8294    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
8295    lt_cv_file_magic_cmd='$OBJDUMP -f'
8296  fi
8297  ;;
8298
8299cegcc*)
8300  # use the weaker test based on 'objdump'. See mingw*.
8301  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
8302  lt_cv_file_magic_cmd='$OBJDUMP -f'
8303  ;;
8304
8305darwin* | rhapsody*)
8306  lt_cv_deplibs_check_method=pass_all
8307  ;;
8308
8309freebsd* | dragonfly*)
8310  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8311    case $host_cpu in
8312    i*86 )
8313      # Not sure whether the presence of OpenBSD here was a mistake.
8314      # Let's accept both of them until this is cleared up.
8315      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
8316      lt_cv_file_magic_cmd=/usr/bin/file
8317      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
8318      ;;
8319    esac
8320  else
8321    lt_cv_deplibs_check_method=pass_all
8322  fi
8323  ;;
8324
8325gnu*)
8326  lt_cv_deplibs_check_method=pass_all
8327  ;;
8328
8329haiku*)
8330  lt_cv_deplibs_check_method=pass_all
8331  ;;
8332
8333hpux10.20* | hpux11*)
8334  lt_cv_file_magic_cmd=/usr/bin/file
8335  case $host_cpu in
8336  ia64*)
8337    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
8338    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
8339    ;;
8340  hppa*64*)
8341    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]'
8342    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
8343    ;;
8344  *)
8345    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
8346    lt_cv_file_magic_test_file=/usr/lib/libc.sl
8347    ;;
8348  esac
8349  ;;
8350
8351interix[3-9]*)
8352  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
8353  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
8354  ;;
8355
8356irix5* | irix6* | nonstopux*)
8357  case $LD in
8358  *-32|*"-32 ") libmagic=32-bit;;
8359  *-n32|*"-n32 ") libmagic=N32;;
8360  *-64|*"-64 ") libmagic=64-bit;;
8361  *) libmagic=never-match;;
8362  esac
8363  lt_cv_deplibs_check_method=pass_all
8364  ;;
8365
8366# This must be glibc/ELF.
8367linux* | k*bsd*-gnu | kopensolaris*-gnu)
8368  lt_cv_deplibs_check_method=pass_all
8369  ;;
8370
8371netbsd*)
8372  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8373    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8374  else
8375    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
8376  fi
8377  ;;
8378
8379newos6*)
8380  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
8381  lt_cv_file_magic_cmd=/usr/bin/file
8382  lt_cv_file_magic_test_file=/usr/lib/libnls.so
8383  ;;
8384
8385*nto* | *qnx*)
8386  lt_cv_deplibs_check_method=pass_all
8387  ;;
8388
8389openbsd*)
8390  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8391    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
8392  else
8393    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8394  fi
8395  ;;
8396
8397osf3* | osf4* | osf5*)
8398  lt_cv_deplibs_check_method=pass_all
8399  ;;
8400
8401rdos*)
8402  lt_cv_deplibs_check_method=pass_all
8403  ;;
8404
8405solaris*)
8406  lt_cv_deplibs_check_method=pass_all
8407  ;;
8408
8409sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8410  lt_cv_deplibs_check_method=pass_all
8411  ;;
8412
8413sysv4 | sysv4.3*)
8414  case $host_vendor in
8415  motorola)
8416    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]'
8417    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
8418    ;;
8419  ncr)
8420    lt_cv_deplibs_check_method=pass_all
8421    ;;
8422  sequent)
8423    lt_cv_file_magic_cmd='/bin/file'
8424    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
8425    ;;
8426  sni)
8427    lt_cv_file_magic_cmd='/bin/file'
8428    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
8429    lt_cv_file_magic_test_file=/lib/libc.so
8430    ;;
8431  siemens)
8432    lt_cv_deplibs_check_method=pass_all
8433    ;;
8434  pc)
8435    lt_cv_deplibs_check_method=pass_all
8436    ;;
8437  esac
8438  ;;
8439
8440tpf*)
8441  lt_cv_deplibs_check_method=pass_all
8442  ;;
8443esac
8444
8445fi
8446{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
8447$as_echo "$lt_cv_deplibs_check_method" >&6; }
8448
8449file_magic_glob=
8450want_nocaseglob=no
8451if test "$build" = "$host"; then
8452  case $host_os in
8453  mingw* | pw32*)
8454    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
8455      want_nocaseglob=yes
8456    else
8457      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
8458    fi
8459    ;;
8460  esac
8461fi
8462
8463file_magic_cmd=$lt_cv_file_magic_cmd
8464deplibs_check_method=$lt_cv_deplibs_check_method
8465test -z "$deplibs_check_method" && deplibs_check_method=unknown
8466
8467
8468
8469
8470
8471
8472
8473
8474
8475
8476
8477
8478
8479
8480
8481
8482
8483
8484
8485
8486
8487
8488if test -n "$ac_tool_prefix"; then
8489  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
8490set dummy ${ac_tool_prefix}dlltool; ac_word=$2
8491{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8492$as_echo_n "checking for $ac_word... " >&6; }
8493if ${ac_cv_prog_DLLTOOL+:} false; then :
8494  $as_echo_n "(cached) " >&6
8495else
8496  if test -n "$DLLTOOL"; then
8497  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8498else
8499as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8500for as_dir in $PATH
8501do
8502  IFS=$as_save_IFS
8503  test -z "$as_dir" && as_dir=.
8504    for ac_exec_ext in '' $ac_executable_extensions; do
8505  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8506    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
8507    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8508    break 2
8509  fi
8510done
8511  done
8512IFS=$as_save_IFS
8513
8514fi
8515fi
8516DLLTOOL=$ac_cv_prog_DLLTOOL
8517if test -n "$DLLTOOL"; then
8518  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8519$as_echo "$DLLTOOL" >&6; }
8520else
8521  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8522$as_echo "no" >&6; }
8523fi
8524
8525
8526fi
8527if test -z "$ac_cv_prog_DLLTOOL"; then
8528  ac_ct_DLLTOOL=$DLLTOOL
8529  # Extract the first word of "dlltool", so it can be a program name with args.
8530set dummy dlltool; ac_word=$2
8531{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8532$as_echo_n "checking for $ac_word... " >&6; }
8533if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
8534  $as_echo_n "(cached) " >&6
8535else
8536  if test -n "$ac_ct_DLLTOOL"; then
8537  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
8538else
8539as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8540for as_dir in $PATH
8541do
8542  IFS=$as_save_IFS
8543  test -z "$as_dir" && as_dir=.
8544    for ac_exec_ext in '' $ac_executable_extensions; do
8545  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8546    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
8547    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8548    break 2
8549  fi
8550done
8551  done
8552IFS=$as_save_IFS
8553
8554fi
8555fi
8556ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
8557if test -n "$ac_ct_DLLTOOL"; then
8558  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
8559$as_echo "$ac_ct_DLLTOOL" >&6; }
8560else
8561  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8562$as_echo "no" >&6; }
8563fi
8564
8565  if test "x$ac_ct_DLLTOOL" = x; then
8566    DLLTOOL="false"
8567  else
8568    case $cross_compiling:$ac_tool_warned in
8569yes:)
8570{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8571$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8572ac_tool_warned=yes ;;
8573esac
8574    DLLTOOL=$ac_ct_DLLTOOL
8575  fi
8576else
8577  DLLTOOL="$ac_cv_prog_DLLTOOL"
8578fi
8579
8580test -z "$DLLTOOL" && DLLTOOL=dlltool
8581
8582
8583
8584
8585
8586
8587
8588
8589
8590
8591{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
8592$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
8593if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
8594  $as_echo_n "(cached) " >&6
8595else
8596  lt_cv_sharedlib_from_linklib_cmd='unknown'
8597
8598case $host_os in
8599cygwin* | mingw* | pw32* | cegcc*)
8600  # two different shell functions defined in ltmain.sh
8601  # decide which to use based on capabilities of $DLLTOOL
8602  case `$DLLTOOL --help 2>&1` in
8603  *--identify-strict*)
8604    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
8605    ;;
8606  *)
8607    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
8608    ;;
8609  esac
8610  ;;
8611*)
8612  # fallback: assume linklib IS sharedlib
8613  lt_cv_sharedlib_from_linklib_cmd="$ECHO"
8614  ;;
8615esac
8616
8617fi
8618{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
8619$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
8620sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
8621test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
8622
8623
8624
8625
8626
8627
8628
8629if test -n "$ac_tool_prefix"; then
8630  for ac_prog in ar
8631  do
8632    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8633set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8634{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8635$as_echo_n "checking for $ac_word... " >&6; }
8636if ${ac_cv_prog_AR+:} false; then :
8637  $as_echo_n "(cached) " >&6
8638else
8639  if test -n "$AR"; then
8640  ac_cv_prog_AR="$AR" # Let the user override the test.
8641else
8642as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8643for as_dir in $PATH
8644do
8645  IFS=$as_save_IFS
8646  test -z "$as_dir" && as_dir=.
8647    for ac_exec_ext in '' $ac_executable_extensions; do
8648  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8649    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
8650    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8651    break 2
8652  fi
8653done
8654  done
8655IFS=$as_save_IFS
8656
8657fi
8658fi
8659AR=$ac_cv_prog_AR
8660if test -n "$AR"; then
8661  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8662$as_echo "$AR" >&6; }
8663else
8664  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8665$as_echo "no" >&6; }
8666fi
8667
8668
8669    test -n "$AR" && break
8670  done
8671fi
8672if test -z "$AR"; then
8673  ac_ct_AR=$AR
8674  for ac_prog in ar
8675do
8676  # Extract the first word of "$ac_prog", so it can be a program name with args.
8677set dummy $ac_prog; ac_word=$2
8678{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8679$as_echo_n "checking for $ac_word... " >&6; }
8680if ${ac_cv_prog_ac_ct_AR+:} false; then :
8681  $as_echo_n "(cached) " >&6
8682else
8683  if test -n "$ac_ct_AR"; then
8684  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8685else
8686as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8687for as_dir in $PATH
8688do
8689  IFS=$as_save_IFS
8690  test -z "$as_dir" && as_dir=.
8691    for ac_exec_ext in '' $ac_executable_extensions; do
8692  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8693    ac_cv_prog_ac_ct_AR="$ac_prog"
8694    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8695    break 2
8696  fi
8697done
8698  done
8699IFS=$as_save_IFS
8700
8701fi
8702fi
8703ac_ct_AR=$ac_cv_prog_ac_ct_AR
8704if test -n "$ac_ct_AR"; then
8705  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
8706$as_echo "$ac_ct_AR" >&6; }
8707else
8708  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8709$as_echo "no" >&6; }
8710fi
8711
8712
8713  test -n "$ac_ct_AR" && break
8714done
8715
8716  if test "x$ac_ct_AR" = x; then
8717    AR="false"
8718  else
8719    case $cross_compiling:$ac_tool_warned in
8720yes:)
8721{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8722$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8723ac_tool_warned=yes ;;
8724esac
8725    AR=$ac_ct_AR
8726  fi
8727fi
8728
8729: ${AR=ar}
8730: ${AR_FLAGS=cru}
8731
8732
8733
8734
8735
8736
8737
8738
8739
8740
8741
8742{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
8743$as_echo_n "checking for archiver @FILE support... " >&6; }
8744if ${lt_cv_ar_at_file+:} false; then :
8745  $as_echo_n "(cached) " >&6
8746else
8747  lt_cv_ar_at_file=no
8748   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8749/* end confdefs.h.  */
8750
8751int
8752main ()
8753{
8754
8755  ;
8756  return 0;
8757}
8758_ACEOF
8759if ac_fn_c_try_compile "$LINENO"; then :
8760  echo conftest.$ac_objext > conftest.lst
8761      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
8762      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
8763  (eval $lt_ar_try) 2>&5
8764  ac_status=$?
8765  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8766  test $ac_status = 0; }
8767      if test "$ac_status" -eq 0; then
8768	# Ensure the archiver fails upon bogus file names.
8769	rm -f conftest.$ac_objext libconftest.a
8770	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
8771  (eval $lt_ar_try) 2>&5
8772  ac_status=$?
8773  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8774  test $ac_status = 0; }
8775	if test "$ac_status" -ne 0; then
8776          lt_cv_ar_at_file=@
8777        fi
8778      fi
8779      rm -f conftest.* libconftest.a
8780
8781fi
8782rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8783
8784fi
8785{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
8786$as_echo "$lt_cv_ar_at_file" >&6; }
8787
8788if test "x$lt_cv_ar_at_file" = xno; then
8789  archiver_list_spec=
8790else
8791  archiver_list_spec=$lt_cv_ar_at_file
8792fi
8793
8794
8795
8796
8797
8798
8799
8800if test -n "$ac_tool_prefix"; then
8801  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8802set dummy ${ac_tool_prefix}strip; ac_word=$2
8803{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8804$as_echo_n "checking for $ac_word... " >&6; }
8805if ${ac_cv_prog_STRIP+:} false; then :
8806  $as_echo_n "(cached) " >&6
8807else
8808  if test -n "$STRIP"; then
8809  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8810else
8811as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8812for as_dir in $PATH
8813do
8814  IFS=$as_save_IFS
8815  test -z "$as_dir" && as_dir=.
8816    for ac_exec_ext in '' $ac_executable_extensions; do
8817  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8818    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8819    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8820    break 2
8821  fi
8822done
8823  done
8824IFS=$as_save_IFS
8825
8826fi
8827fi
8828STRIP=$ac_cv_prog_STRIP
8829if test -n "$STRIP"; then
8830  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8831$as_echo "$STRIP" >&6; }
8832else
8833  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8834$as_echo "no" >&6; }
8835fi
8836
8837
8838fi
8839if test -z "$ac_cv_prog_STRIP"; then
8840  ac_ct_STRIP=$STRIP
8841  # Extract the first word of "strip", so it can be a program name with args.
8842set dummy strip; ac_word=$2
8843{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8844$as_echo_n "checking for $ac_word... " >&6; }
8845if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
8846  $as_echo_n "(cached) " >&6
8847else
8848  if test -n "$ac_ct_STRIP"; then
8849  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8850else
8851as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8852for as_dir in $PATH
8853do
8854  IFS=$as_save_IFS
8855  test -z "$as_dir" && as_dir=.
8856    for ac_exec_ext in '' $ac_executable_extensions; do
8857  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8858    ac_cv_prog_ac_ct_STRIP="strip"
8859    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8860    break 2
8861  fi
8862done
8863  done
8864IFS=$as_save_IFS
8865
8866fi
8867fi
8868ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8869if test -n "$ac_ct_STRIP"; then
8870  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
8871$as_echo "$ac_ct_STRIP" >&6; }
8872else
8873  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8874$as_echo "no" >&6; }
8875fi
8876
8877  if test "x$ac_ct_STRIP" = x; then
8878    STRIP=":"
8879  else
8880    case $cross_compiling:$ac_tool_warned in
8881yes:)
8882{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8883$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8884ac_tool_warned=yes ;;
8885esac
8886    STRIP=$ac_ct_STRIP
8887  fi
8888else
8889  STRIP="$ac_cv_prog_STRIP"
8890fi
8891
8892test -z "$STRIP" && STRIP=:
8893
8894
8895
8896
8897
8898
8899if test -n "$ac_tool_prefix"; then
8900  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8901set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8902{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8903$as_echo_n "checking for $ac_word... " >&6; }
8904if ${ac_cv_prog_RANLIB+:} false; then :
8905  $as_echo_n "(cached) " >&6
8906else
8907  if test -n "$RANLIB"; then
8908  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8909else
8910as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8911for as_dir in $PATH
8912do
8913  IFS=$as_save_IFS
8914  test -z "$as_dir" && as_dir=.
8915    for ac_exec_ext in '' $ac_executable_extensions; do
8916  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8917    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8918    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8919    break 2
8920  fi
8921done
8922  done
8923IFS=$as_save_IFS
8924
8925fi
8926fi
8927RANLIB=$ac_cv_prog_RANLIB
8928if test -n "$RANLIB"; then
8929  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8930$as_echo "$RANLIB" >&6; }
8931else
8932  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8933$as_echo "no" >&6; }
8934fi
8935
8936
8937fi
8938if test -z "$ac_cv_prog_RANLIB"; then
8939  ac_ct_RANLIB=$RANLIB
8940  # Extract the first word of "ranlib", so it can be a program name with args.
8941set dummy ranlib; ac_word=$2
8942{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8943$as_echo_n "checking for $ac_word... " >&6; }
8944if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
8945  $as_echo_n "(cached) " >&6
8946else
8947  if test -n "$ac_ct_RANLIB"; then
8948  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8949else
8950as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8951for as_dir in $PATH
8952do
8953  IFS=$as_save_IFS
8954  test -z "$as_dir" && as_dir=.
8955    for ac_exec_ext in '' $ac_executable_extensions; do
8956  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8957    ac_cv_prog_ac_ct_RANLIB="ranlib"
8958    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8959    break 2
8960  fi
8961done
8962  done
8963IFS=$as_save_IFS
8964
8965fi
8966fi
8967ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8968if test -n "$ac_ct_RANLIB"; then
8969  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8970$as_echo "$ac_ct_RANLIB" >&6; }
8971else
8972  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8973$as_echo "no" >&6; }
8974fi
8975
8976  if test "x$ac_ct_RANLIB" = x; then
8977    RANLIB=":"
8978  else
8979    case $cross_compiling:$ac_tool_warned in
8980yes:)
8981{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8982$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8983ac_tool_warned=yes ;;
8984esac
8985    RANLIB=$ac_ct_RANLIB
8986  fi
8987else
8988  RANLIB="$ac_cv_prog_RANLIB"
8989fi
8990
8991test -z "$RANLIB" && RANLIB=:
8992
8993
8994
8995
8996
8997
8998# Determine commands to create old-style static archives.
8999old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
9000old_postinstall_cmds='chmod 644 $oldlib'
9001old_postuninstall_cmds=
9002
9003if test -n "$RANLIB"; then
9004  case $host_os in
9005  openbsd*)
9006    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
9007    ;;
9008  *)
9009    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
9010    ;;
9011  esac
9012  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
9013fi
9014
9015case $host_os in
9016  darwin*)
9017    lock_old_archive_extraction=yes ;;
9018  *)
9019    lock_old_archive_extraction=no ;;
9020esac
9021
9022
9023
9024
9025
9026
9027
9028
9029
9030
9031
9032
9033
9034
9035
9036
9037
9038
9039
9040
9041
9042for ac_prog in gawk mawk nawk awk
9043do
9044  # Extract the first word of "$ac_prog", so it can be a program name with args.
9045set dummy $ac_prog; ac_word=$2
9046{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9047$as_echo_n "checking for $ac_word... " >&6; }
9048if ${ac_cv_prog_AWK+:} false; then :
9049  $as_echo_n "(cached) " >&6
9050else
9051  if test -n "$AWK"; then
9052  ac_cv_prog_AWK="$AWK" # Let the user override the test.
9053else
9054as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9055for as_dir in $PATH
9056do
9057  IFS=$as_save_IFS
9058  test -z "$as_dir" && as_dir=.
9059    for ac_exec_ext in '' $ac_executable_extensions; do
9060  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9061    ac_cv_prog_AWK="$ac_prog"
9062    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9063    break 2
9064  fi
9065done
9066  done
9067IFS=$as_save_IFS
9068
9069fi
9070fi
9071AWK=$ac_cv_prog_AWK
9072if test -n "$AWK"; then
9073  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
9074$as_echo "$AWK" >&6; }
9075else
9076  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9077$as_echo "no" >&6; }
9078fi
9079
9080
9081  test -n "$AWK" && break
9082done
9083
9084
9085
9086
9087
9088
9089
9090
9091
9092
9093
9094
9095
9096
9097
9098
9099
9100
9101
9102# If no C compiler was specified, use CC.
9103LTCC=${LTCC-"$CC"}
9104
9105# If no C compiler flags were specified, use CFLAGS.
9106LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9107
9108# Allow CC to be a program name with arguments.
9109compiler=$CC
9110
9111
9112# Check for command to grab the raw symbol name followed by C symbol from nm.
9113{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
9114$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
9115if ${lt_cv_sys_global_symbol_pipe+:} false; then :
9116  $as_echo_n "(cached) " >&6
9117else
9118
9119# These are sane defaults that work on at least a few old systems.
9120# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
9121
9122# Character class describing NM global symbol codes.
9123symcode='[BCDEGRST]'
9124
9125# Regexp to match symbols that can be accessed directly from C.
9126sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9127
9128# Define system-specific variables.
9129case $host_os in
9130aix*)
9131  symcode='[BCDT]'
9132  ;;
9133cygwin* | mingw* | pw32* | cegcc*)
9134  symcode='[ABCDGISTW]'
9135  ;;
9136hpux*)
9137  if test "$host_cpu" = ia64; then
9138    symcode='[ABCDEGRST]'
9139  fi
9140  ;;
9141irix* | nonstopux*)
9142  symcode='[BCDEGRST]'
9143  ;;
9144osf*)
9145  symcode='[BCDEGQRST]'
9146  ;;
9147solaris*)
9148  symcode='[BDRT]'
9149  ;;
9150sco3.2v5*)
9151  symcode='[DT]'
9152  ;;
9153sysv4.2uw2*)
9154  symcode='[DT]'
9155  ;;
9156sysv5* | sco5v6* | unixware* | OpenUNIX*)
9157  symcode='[ABDT]'
9158  ;;
9159sysv4)
9160  symcode='[DFNSTU]'
9161  ;;
9162esac
9163
9164# If we're using GNU nm, then use its standard symbol codes.
9165case `$NM -V 2>&1` in
9166*GNU* | *'with BFD'*)
9167  symcode='[ABCDGIRSTW]' ;;
9168esac
9169
9170# Transform an extracted symbol line into a proper C declaration.
9171# Some systems (esp. on ia64) link data and code symbols differently,
9172# so use this general approach.
9173lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9174
9175# Transform an extracted symbol line into symbol name and symbol address
9176lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
9177lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/  {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"lib\2\", (void *) \&\2},/p'"
9178
9179# Handle CRLF in mingw tool chain
9180opt_cr=
9181case $build_os in
9182mingw*)
9183  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9184  ;;
9185esac
9186
9187# Try without a prefix underscore, then with it.
9188for ac_symprfx in "" "_"; do
9189
9190  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9191  symxfrm="\\1 $ac_symprfx\\2 \\2"
9192
9193  # Write the raw and C identifiers.
9194  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9195    # Fake it for dumpbin and say T for any non-static function
9196    # and D for any global variable.
9197    # Also find C++ and __fastcall symbols from MSVC++,
9198    # which start with @ or ?.
9199    lt_cv_sys_global_symbol_pipe="$AWK '"\
9200"     {last_section=section; section=\$ 3};"\
9201"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
9202"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
9203"     \$ 0!~/External *\|/{next};"\
9204"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
9205"     {if(hide[section]) next};"\
9206"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
9207"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
9208"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
9209"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
9210"     ' prfx=^$ac_symprfx"
9211  else
9212    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9213  fi
9214  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
9215
9216  # Check to see that the pipe works correctly.
9217  pipe_works=no
9218
9219  rm -f conftest*
9220  cat > conftest.$ac_ext <<_LT_EOF
9221#ifdef __cplusplus
9222extern "C" {
9223#endif
9224char nm_test_var;
9225void nm_test_func(void);
9226void nm_test_func(void){}
9227#ifdef __cplusplus
9228}
9229#endif
9230int main(){nm_test_var='a';nm_test_func();return(0);}
9231_LT_EOF
9232
9233  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9234  (eval $ac_compile) 2>&5
9235  ac_status=$?
9236  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9237  test $ac_status = 0; }; then
9238    # Now try to grab the symbols.
9239    nlist=conftest.nm
9240    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
9241  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
9242  ac_status=$?
9243  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9244  test $ac_status = 0; } && test -s "$nlist"; then
9245      # Try sorting and uniquifying the output.
9246      if sort "$nlist" | uniq > "$nlist"T; then
9247	mv -f "$nlist"T "$nlist"
9248      else
9249	rm -f "$nlist"T
9250      fi
9251
9252      # Make sure that we snagged all the symbols we need.
9253      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
9254	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
9255	  cat <<_LT_EOF > conftest.$ac_ext
9256/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
9257#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
9258/* DATA imports from DLLs on WIN32 con't be const, because runtime
9259   relocations are performed -- see ld's documentation on pseudo-relocs.  */
9260# define LT_DLSYM_CONST
9261#elif defined(__osf__)
9262/* This system does not cope well with relocations in const data.  */
9263# define LT_DLSYM_CONST
9264#else
9265# define LT_DLSYM_CONST const
9266#endif
9267
9268#ifdef __cplusplus
9269extern "C" {
9270#endif
9271
9272_LT_EOF
9273	  # Now generate the symbol file.
9274	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
9275
9276	  cat <<_LT_EOF >> conftest.$ac_ext
9277
9278/* The mapping between symbol names and symbols.  */
9279LT_DLSYM_CONST struct {
9280  const char *name;
9281  void       *address;
9282}
9283lt__PROGRAM__LTX_preloaded_symbols[] =
9284{
9285  { "@PROGRAM@", (void *) 0 },
9286_LT_EOF
9287	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
9288	  cat <<\_LT_EOF >> conftest.$ac_ext
9289  {0, (void *) 0}
9290};
9291
9292/* This works around a problem in FreeBSD linker */
9293#ifdef FREEBSD_WORKAROUND
9294static const void *lt_preloaded_setup() {
9295  return lt__PROGRAM__LTX_preloaded_symbols;
9296}
9297#endif
9298
9299#ifdef __cplusplus
9300}
9301#endif
9302_LT_EOF
9303	  # Now try linking the two files.
9304	  mv conftest.$ac_objext conftstm.$ac_objext
9305	  lt_globsym_save_LIBS=$LIBS
9306	  lt_globsym_save_CFLAGS=$CFLAGS
9307	  LIBS="conftstm.$ac_objext"
9308	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9309	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
9310  (eval $ac_link) 2>&5
9311  ac_status=$?
9312  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9313  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
9314	    pipe_works=yes
9315	  fi
9316	  LIBS=$lt_globsym_save_LIBS
9317	  CFLAGS=$lt_globsym_save_CFLAGS
9318	else
9319	  echo "cannot find nm_test_func in $nlist" >&5
9320	fi
9321      else
9322	echo "cannot find nm_test_var in $nlist" >&5
9323      fi
9324    else
9325      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9326    fi
9327  else
9328    echo "$progname: failed program was:" >&5
9329    cat conftest.$ac_ext >&5
9330  fi
9331  rm -rf conftest* conftst*
9332
9333  # Do not use the global_symbol_pipe unless it works.
9334  if test "$pipe_works" = yes; then
9335    break
9336  else
9337    lt_cv_sys_global_symbol_pipe=
9338  fi
9339done
9340
9341fi
9342
9343if test -z "$lt_cv_sys_global_symbol_pipe"; then
9344  lt_cv_sys_global_symbol_to_cdecl=
9345fi
9346if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9347  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
9348$as_echo "failed" >&6; }
9349else
9350  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
9351$as_echo "ok" >&6; }
9352fi
9353
9354# Response file support.
9355if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9356  nm_file_list_spec='@'
9357elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
9358  nm_file_list_spec='@'
9359fi
9360
9361
9362
9363
9364
9365
9366
9367
9368
9369
9370
9371
9372
9373
9374
9375
9376
9377
9378
9379
9380
9381
9382
9383
9384
9385
9386
9387{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
9388$as_echo_n "checking for sysroot... " >&6; }
9389
9390# Check whether --with-sysroot was given.
9391if test "${with_sysroot+set}" = set; then :
9392  withval=$with_sysroot;
9393else
9394  with_sysroot=no
9395fi
9396
9397
9398lt_sysroot=
9399case ${with_sysroot} in #(
9400 yes)
9401   if test "$GCC" = yes; then
9402     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
9403   fi
9404   ;; #(
9405 /*)
9406   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
9407   ;; #(
9408 no|'')
9409   ;; #(
9410 *)
9411   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
9412$as_echo "${with_sysroot}" >&6; }
9413   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
9414   ;;
9415esac
9416
9417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
9418$as_echo "${lt_sysroot:-no}" >&6; }
9419
9420
9421
9422
9423
9424# Check whether --enable-libtool-lock was given.
9425if test "${enable_libtool_lock+set}" = set; then :
9426  enableval=$enable_libtool_lock;
9427fi
9428
9429test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
9430
9431# Some flags need to be propagated to the compiler or linker for good
9432# libtool support.
9433case $host in
9434ia64-*-hpux*)
9435  # Find out which ABI we are using.
9436  echo 'int i;' > conftest.$ac_ext
9437  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9438  (eval $ac_compile) 2>&5
9439  ac_status=$?
9440  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9441  test $ac_status = 0; }; then
9442    case `/usr/bin/file conftest.$ac_objext` in
9443      *ELF-32*)
9444	HPUX_IA64_MODE="32"
9445	;;
9446      *ELF-64*)
9447	HPUX_IA64_MODE="64"
9448	;;
9449    esac
9450  fi
9451  rm -rf conftest*
9452  ;;
9453*-*-irix6*)
9454  # Find out which ABI we are using.
9455  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
9456  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9457  (eval $ac_compile) 2>&5
9458  ac_status=$?
9459  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9460  test $ac_status = 0; }; then
9461    if test "$lt_cv_prog_gnu_ld" = yes; then
9462      case `/usr/bin/file conftest.$ac_objext` in
9463	*32-bit*)
9464	  LD="${LD-ld} -melf32bsmip"
9465	  ;;
9466	*N32*)
9467	  LD="${LD-ld} -melf32bmipn32"
9468	  ;;
9469	*64-bit*)
9470	  LD="${LD-ld} -melf64bmip"
9471	;;
9472      esac
9473    else
9474      case `/usr/bin/file conftest.$ac_objext` in
9475	*32-bit*)
9476	  LD="${LD-ld} -32"
9477	  ;;
9478	*N32*)
9479	  LD="${LD-ld} -n32"
9480	  ;;
9481	*64-bit*)
9482	  LD="${LD-ld} -64"
9483	  ;;
9484      esac
9485    fi
9486  fi
9487  rm -rf conftest*
9488  ;;
9489
9490x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
9491s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
9492  # Find out which ABI we are using.
9493  echo 'int i;' > conftest.$ac_ext
9494  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9495  (eval $ac_compile) 2>&5
9496  ac_status=$?
9497  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9498  test $ac_status = 0; }; then
9499    case `/usr/bin/file conftest.o` in
9500      *32-bit*)
9501	case $host in
9502	  x86_64-*kfreebsd*-gnu)
9503	    LD="${LD-ld} -m elf_i386_fbsd"
9504	    ;;
9505	  x86_64-*linux*)
9506	    LD="${LD-ld} -m elf_i386"
9507	    ;;
9508	  ppc64-*linux*|powerpc64-*linux*)
9509	    LD="${LD-ld} -m elf32ppclinux"
9510	    ;;
9511	  s390x-*linux*)
9512	    LD="${LD-ld} -m elf_s390"
9513	    ;;
9514	  sparc64-*linux*)
9515	    LD="${LD-ld} -m elf32_sparc"
9516	    ;;
9517	esac
9518	;;
9519      *64-bit*)
9520	case $host in
9521	  x86_64-*kfreebsd*-gnu)
9522	    LD="${LD-ld} -m elf_x86_64_fbsd"
9523	    ;;
9524	  x86_64-*linux*)
9525	    LD="${LD-ld} -m elf_x86_64"
9526	    ;;
9527	  ppc*-*linux*|powerpc*-*linux*)
9528	    LD="${LD-ld} -m elf64ppc"
9529	    ;;
9530	  s390*-*linux*|s390*-*tpf*)
9531	    LD="${LD-ld} -m elf64_s390"
9532	    ;;
9533	  sparc*-*linux*)
9534	    LD="${LD-ld} -m elf64_sparc"
9535	    ;;
9536	esac
9537	;;
9538    esac
9539  fi
9540  rm -rf conftest*
9541  ;;
9542
9543*-*-sco3.2v5*)
9544  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
9545  SAVE_CFLAGS="$CFLAGS"
9546  CFLAGS="$CFLAGS -belf"
9547  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
9548$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
9549if ${lt_cv_cc_needs_belf+:} false; then :
9550  $as_echo_n "(cached) " >&6
9551else
9552  ac_ext=c
9553ac_cpp='$CPP $CPPFLAGS'
9554ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9555ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9556ac_compiler_gnu=$ac_cv_c_compiler_gnu
9557
9558     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9559/* end confdefs.h.  */
9560
9561int
9562main ()
9563{
9564
9565  ;
9566  return 0;
9567}
9568_ACEOF
9569if ac_fn_c_try_link "$LINENO"; then :
9570  lt_cv_cc_needs_belf=yes
9571else
9572  lt_cv_cc_needs_belf=no
9573fi
9574rm -f core conftest.err conftest.$ac_objext \
9575    conftest$ac_exeext conftest.$ac_ext
9576     ac_ext=c
9577ac_cpp='$CPP $CPPFLAGS'
9578ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9579ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9580ac_compiler_gnu=$ac_cv_c_compiler_gnu
9581
9582fi
9583{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
9584$as_echo "$lt_cv_cc_needs_belf" >&6; }
9585  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
9586    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
9587    CFLAGS="$SAVE_CFLAGS"
9588  fi
9589  ;;
9590*-*solaris*)
9591  # Find out which ABI we are using.
9592  echo 'int i;' > conftest.$ac_ext
9593  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9594  (eval $ac_compile) 2>&5
9595  ac_status=$?
9596  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9597  test $ac_status = 0; }; then
9598    case `/usr/bin/file conftest.o` in
9599    *64-bit*)
9600      case $lt_cv_prog_gnu_ld in
9601      yes*)
9602        case $host in
9603        i?86-*-solaris*)
9604          LD="${LD-ld} -m elf_x86_64"
9605          ;;
9606        sparc*-*-solaris*)
9607          LD="${LD-ld} -m elf64_sparc"
9608          ;;
9609        esac
9610        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
9611        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
9612          LD="${LD-ld}_sol2"
9613        fi
9614        ;;
9615      *)
9616	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
9617	  LD="${LD-ld} -64"
9618	fi
9619	;;
9620      esac
9621      ;;
9622    esac
9623  fi
9624  rm -rf conftest*
9625  ;;
9626esac
9627
9628need_locks="$enable_libtool_lock"
9629
9630if test -n "$ac_tool_prefix"; then
9631  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
9632set dummy ${ac_tool_prefix}mt; ac_word=$2
9633{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9634$as_echo_n "checking for $ac_word... " >&6; }
9635if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
9636  $as_echo_n "(cached) " >&6
9637else
9638  if test -n "$MANIFEST_TOOL"; then
9639  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
9640else
9641as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9642for as_dir in $PATH
9643do
9644  IFS=$as_save_IFS
9645  test -z "$as_dir" && as_dir=.
9646    for ac_exec_ext in '' $ac_executable_extensions; do
9647  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9648    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
9649    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9650    break 2
9651  fi
9652done
9653  done
9654IFS=$as_save_IFS
9655
9656fi
9657fi
9658MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
9659if test -n "$MANIFEST_TOOL"; then
9660  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
9661$as_echo "$MANIFEST_TOOL" >&6; }
9662else
9663  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9664$as_echo "no" >&6; }
9665fi
9666
9667
9668fi
9669if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
9670  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
9671  # Extract the first word of "mt", so it can be a program name with args.
9672set dummy mt; ac_word=$2
9673{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9674$as_echo_n "checking for $ac_word... " >&6; }
9675if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
9676  $as_echo_n "(cached) " >&6
9677else
9678  if test -n "$ac_ct_MANIFEST_TOOL"; then
9679  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
9680else
9681as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9682for as_dir in $PATH
9683do
9684  IFS=$as_save_IFS
9685  test -z "$as_dir" && as_dir=.
9686    for ac_exec_ext in '' $ac_executable_extensions; do
9687  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9688    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
9689    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9690    break 2
9691  fi
9692done
9693  done
9694IFS=$as_save_IFS
9695
9696fi
9697fi
9698ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
9699if test -n "$ac_ct_MANIFEST_TOOL"; then
9700  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
9701$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
9702else
9703  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9704$as_echo "no" >&6; }
9705fi
9706
9707  if test "x$ac_ct_MANIFEST_TOOL" = x; then
9708    MANIFEST_TOOL=":"
9709  else
9710    case $cross_compiling:$ac_tool_warned in
9711yes:)
9712{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9713$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9714ac_tool_warned=yes ;;
9715esac
9716    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
9717  fi
9718else
9719  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
9720fi
9721
9722test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
9723{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
9724$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
9725if ${lt_cv_path_mainfest_tool+:} false; then :
9726  $as_echo_n "(cached) " >&6
9727else
9728  lt_cv_path_mainfest_tool=no
9729  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
9730  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
9731  cat conftest.err >&5
9732  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
9733    lt_cv_path_mainfest_tool=yes
9734  fi
9735  rm -f conftest*
9736fi
9737{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
9738$as_echo "$lt_cv_path_mainfest_tool" >&6; }
9739if test "x$lt_cv_path_mainfest_tool" != xyes; then
9740  MANIFEST_TOOL=:
9741fi
9742
9743
9744
9745
9746
9747
9748  case $host_os in
9749    rhapsody* | darwin*)
9750    if test -n "$ac_tool_prefix"; then
9751  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
9752set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
9753{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9754$as_echo_n "checking for $ac_word... " >&6; }
9755if ${ac_cv_prog_DSYMUTIL+:} false; then :
9756  $as_echo_n "(cached) " >&6
9757else
9758  if test -n "$DSYMUTIL"; then
9759  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
9760else
9761as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9762for as_dir in $PATH
9763do
9764  IFS=$as_save_IFS
9765  test -z "$as_dir" && as_dir=.
9766    for ac_exec_ext in '' $ac_executable_extensions; do
9767  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9768    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
9769    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9770    break 2
9771  fi
9772done
9773  done
9774IFS=$as_save_IFS
9775
9776fi
9777fi
9778DSYMUTIL=$ac_cv_prog_DSYMUTIL
9779if test -n "$DSYMUTIL"; then
9780  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
9781$as_echo "$DSYMUTIL" >&6; }
9782else
9783  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9784$as_echo "no" >&6; }
9785fi
9786
9787
9788fi
9789if test -z "$ac_cv_prog_DSYMUTIL"; then
9790  ac_ct_DSYMUTIL=$DSYMUTIL
9791  # Extract the first word of "dsymutil", so it can be a program name with args.
9792set dummy dsymutil; ac_word=$2
9793{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9794$as_echo_n "checking for $ac_word... " >&6; }
9795if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
9796  $as_echo_n "(cached) " >&6
9797else
9798  if test -n "$ac_ct_DSYMUTIL"; then
9799  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
9800else
9801as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9802for as_dir in $PATH
9803do
9804  IFS=$as_save_IFS
9805  test -z "$as_dir" && as_dir=.
9806    for ac_exec_ext in '' $ac_executable_extensions; do
9807  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9808    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
9809    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9810    break 2
9811  fi
9812done
9813  done
9814IFS=$as_save_IFS
9815
9816fi
9817fi
9818ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
9819if test -n "$ac_ct_DSYMUTIL"; then
9820  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
9821$as_echo "$ac_ct_DSYMUTIL" >&6; }
9822else
9823  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9824$as_echo "no" >&6; }
9825fi
9826
9827  if test "x$ac_ct_DSYMUTIL" = x; then
9828    DSYMUTIL=":"
9829  else
9830    case $cross_compiling:$ac_tool_warned in
9831yes:)
9832{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9833$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9834ac_tool_warned=yes ;;
9835esac
9836    DSYMUTIL=$ac_ct_DSYMUTIL
9837  fi
9838else
9839  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
9840fi
9841
9842    if test -n "$ac_tool_prefix"; then
9843  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
9844set dummy ${ac_tool_prefix}nmedit; ac_word=$2
9845{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9846$as_echo_n "checking for $ac_word... " >&6; }
9847if ${ac_cv_prog_NMEDIT+:} false; then :
9848  $as_echo_n "(cached) " >&6
9849else
9850  if test -n "$NMEDIT"; then
9851  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
9852else
9853as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9854for as_dir in $PATH
9855do
9856  IFS=$as_save_IFS
9857  test -z "$as_dir" && as_dir=.
9858    for ac_exec_ext in '' $ac_executable_extensions; do
9859  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9860    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
9861    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9862    break 2
9863  fi
9864done
9865  done
9866IFS=$as_save_IFS
9867
9868fi
9869fi
9870NMEDIT=$ac_cv_prog_NMEDIT
9871if test -n "$NMEDIT"; then
9872  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
9873$as_echo "$NMEDIT" >&6; }
9874else
9875  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9876$as_echo "no" >&6; }
9877fi
9878
9879
9880fi
9881if test -z "$ac_cv_prog_NMEDIT"; then
9882  ac_ct_NMEDIT=$NMEDIT
9883  # Extract the first word of "nmedit", so it can be a program name with args.
9884set dummy nmedit; ac_word=$2
9885{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9886$as_echo_n "checking for $ac_word... " >&6; }
9887if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
9888  $as_echo_n "(cached) " >&6
9889else
9890  if test -n "$ac_ct_NMEDIT"; then
9891  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
9892else
9893as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9894for as_dir in $PATH
9895do
9896  IFS=$as_save_IFS
9897  test -z "$as_dir" && as_dir=.
9898    for ac_exec_ext in '' $ac_executable_extensions; do
9899  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9900    ac_cv_prog_ac_ct_NMEDIT="nmedit"
9901    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9902    break 2
9903  fi
9904done
9905  done
9906IFS=$as_save_IFS
9907
9908fi
9909fi
9910ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
9911if test -n "$ac_ct_NMEDIT"; then
9912  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
9913$as_echo "$ac_ct_NMEDIT" >&6; }
9914else
9915  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9916$as_echo "no" >&6; }
9917fi
9918
9919  if test "x$ac_ct_NMEDIT" = x; then
9920    NMEDIT=":"
9921  else
9922    case $cross_compiling:$ac_tool_warned in
9923yes:)
9924{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9925$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9926ac_tool_warned=yes ;;
9927esac
9928    NMEDIT=$ac_ct_NMEDIT
9929  fi
9930else
9931  NMEDIT="$ac_cv_prog_NMEDIT"
9932fi
9933
9934    if test -n "$ac_tool_prefix"; then
9935  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
9936set dummy ${ac_tool_prefix}lipo; ac_word=$2
9937{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9938$as_echo_n "checking for $ac_word... " >&6; }
9939if ${ac_cv_prog_LIPO+:} false; then :
9940  $as_echo_n "(cached) " >&6
9941else
9942  if test -n "$LIPO"; then
9943  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
9944else
9945as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9946for as_dir in $PATH
9947do
9948  IFS=$as_save_IFS
9949  test -z "$as_dir" && as_dir=.
9950    for ac_exec_ext in '' $ac_executable_extensions; do
9951  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9952    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
9953    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9954    break 2
9955  fi
9956done
9957  done
9958IFS=$as_save_IFS
9959
9960fi
9961fi
9962LIPO=$ac_cv_prog_LIPO
9963if test -n "$LIPO"; then
9964  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
9965$as_echo "$LIPO" >&6; }
9966else
9967  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9968$as_echo "no" >&6; }
9969fi
9970
9971
9972fi
9973if test -z "$ac_cv_prog_LIPO"; then
9974  ac_ct_LIPO=$LIPO
9975  # Extract the first word of "lipo", so it can be a program name with args.
9976set dummy lipo; ac_word=$2
9977{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9978$as_echo_n "checking for $ac_word... " >&6; }
9979if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
9980  $as_echo_n "(cached) " >&6
9981else
9982  if test -n "$ac_ct_LIPO"; then
9983  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
9984else
9985as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9986for as_dir in $PATH
9987do
9988  IFS=$as_save_IFS
9989  test -z "$as_dir" && as_dir=.
9990    for ac_exec_ext in '' $ac_executable_extensions; do
9991  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9992    ac_cv_prog_ac_ct_LIPO="lipo"
9993    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9994    break 2
9995  fi
9996done
9997  done
9998IFS=$as_save_IFS
9999
10000fi
10001fi
10002ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
10003if test -n "$ac_ct_LIPO"; then
10004  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
10005$as_echo "$ac_ct_LIPO" >&6; }
10006else
10007  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10008$as_echo "no" >&6; }
10009fi
10010
10011  if test "x$ac_ct_LIPO" = x; then
10012    LIPO=":"
10013  else
10014    case $cross_compiling:$ac_tool_warned in
10015yes:)
10016{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10017$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10018ac_tool_warned=yes ;;
10019esac
10020    LIPO=$ac_ct_LIPO
10021  fi
10022else
10023  LIPO="$ac_cv_prog_LIPO"
10024fi
10025
10026    if test -n "$ac_tool_prefix"; then
10027  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
10028set dummy ${ac_tool_prefix}otool; ac_word=$2
10029{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10030$as_echo_n "checking for $ac_word... " >&6; }
10031if ${ac_cv_prog_OTOOL+:} false; then :
10032  $as_echo_n "(cached) " >&6
10033else
10034  if test -n "$OTOOL"; then
10035  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
10036else
10037as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10038for as_dir in $PATH
10039do
10040  IFS=$as_save_IFS
10041  test -z "$as_dir" && as_dir=.
10042    for ac_exec_ext in '' $ac_executable_extensions; do
10043  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10044    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
10045    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10046    break 2
10047  fi
10048done
10049  done
10050IFS=$as_save_IFS
10051
10052fi
10053fi
10054OTOOL=$ac_cv_prog_OTOOL
10055if test -n "$OTOOL"; then
10056  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
10057$as_echo "$OTOOL" >&6; }
10058else
10059  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10060$as_echo "no" >&6; }
10061fi
10062
10063
10064fi
10065if test -z "$ac_cv_prog_OTOOL"; then
10066  ac_ct_OTOOL=$OTOOL
10067  # Extract the first word of "otool", so it can be a program name with args.
10068set dummy otool; ac_word=$2
10069{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10070$as_echo_n "checking for $ac_word... " >&6; }
10071if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
10072  $as_echo_n "(cached) " >&6
10073else
10074  if test -n "$ac_ct_OTOOL"; then
10075  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
10076else
10077as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10078for as_dir in $PATH
10079do
10080  IFS=$as_save_IFS
10081  test -z "$as_dir" && as_dir=.
10082    for ac_exec_ext in '' $ac_executable_extensions; do
10083  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10084    ac_cv_prog_ac_ct_OTOOL="otool"
10085    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10086    break 2
10087  fi
10088done
10089  done
10090IFS=$as_save_IFS
10091
10092fi
10093fi
10094ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
10095if test -n "$ac_ct_OTOOL"; then
10096  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
10097$as_echo "$ac_ct_OTOOL" >&6; }
10098else
10099  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10100$as_echo "no" >&6; }
10101fi
10102
10103  if test "x$ac_ct_OTOOL" = x; then
10104    OTOOL=":"
10105  else
10106    case $cross_compiling:$ac_tool_warned in
10107yes:)
10108{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10109$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10110ac_tool_warned=yes ;;
10111esac
10112    OTOOL=$ac_ct_OTOOL
10113  fi
10114else
10115  OTOOL="$ac_cv_prog_OTOOL"
10116fi
10117
10118    if test -n "$ac_tool_prefix"; then
10119  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
10120set dummy ${ac_tool_prefix}otool64; ac_word=$2
10121{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10122$as_echo_n "checking for $ac_word... " >&6; }
10123if ${ac_cv_prog_OTOOL64+:} false; then :
10124  $as_echo_n "(cached) " >&6
10125else
10126  if test -n "$OTOOL64"; then
10127  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
10128else
10129as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10130for as_dir in $PATH
10131do
10132  IFS=$as_save_IFS
10133  test -z "$as_dir" && as_dir=.
10134    for ac_exec_ext in '' $ac_executable_extensions; do
10135  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10136    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
10137    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10138    break 2
10139  fi
10140done
10141  done
10142IFS=$as_save_IFS
10143
10144fi
10145fi
10146OTOOL64=$ac_cv_prog_OTOOL64
10147if test -n "$OTOOL64"; then
10148  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
10149$as_echo "$OTOOL64" >&6; }
10150else
10151  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10152$as_echo "no" >&6; }
10153fi
10154
10155
10156fi
10157if test -z "$ac_cv_prog_OTOOL64"; then
10158  ac_ct_OTOOL64=$OTOOL64
10159  # Extract the first word of "otool64", so it can be a program name with args.
10160set dummy otool64; ac_word=$2
10161{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10162$as_echo_n "checking for $ac_word... " >&6; }
10163if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
10164  $as_echo_n "(cached) " >&6
10165else
10166  if test -n "$ac_ct_OTOOL64"; then
10167  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
10168else
10169as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10170for as_dir in $PATH
10171do
10172  IFS=$as_save_IFS
10173  test -z "$as_dir" && as_dir=.
10174    for ac_exec_ext in '' $ac_executable_extensions; do
10175  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10176    ac_cv_prog_ac_ct_OTOOL64="otool64"
10177    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10178    break 2
10179  fi
10180done
10181  done
10182IFS=$as_save_IFS
10183
10184fi
10185fi
10186ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
10187if test -n "$ac_ct_OTOOL64"; then
10188  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
10189$as_echo "$ac_ct_OTOOL64" >&6; }
10190else
10191  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10192$as_echo "no" >&6; }
10193fi
10194
10195  if test "x$ac_ct_OTOOL64" = x; then
10196    OTOOL64=":"
10197  else
10198    case $cross_compiling:$ac_tool_warned in
10199yes:)
10200{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10201$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10202ac_tool_warned=yes ;;
10203esac
10204    OTOOL64=$ac_ct_OTOOL64
10205  fi
10206else
10207  OTOOL64="$ac_cv_prog_OTOOL64"
10208fi
10209
10210
10211
10212
10213
10214
10215
10216
10217
10218
10219
10220
10221
10222
10223
10224
10225
10226
10227
10228
10229
10230
10231
10232
10233
10234
10235
10236    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
10237$as_echo_n "checking for -single_module linker flag... " >&6; }
10238if ${lt_cv_apple_cc_single_mod+:} false; then :
10239  $as_echo_n "(cached) " >&6
10240else
10241  lt_cv_apple_cc_single_mod=no
10242      if test -z "${LT_MULTI_MODULE}"; then
10243	# By default we will add the -single_module flag. You can override
10244	# by either setting the environment variable LT_MULTI_MODULE
10245	# non-empty at configure time, or by adding -multi_module to the
10246	# link flags.
10247	rm -rf libconftest.dylib*
10248	echo "int foo(void){return 1;}" > conftest.c
10249	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
10250-dynamiclib -Wl,-single_module conftest.c" >&5
10251	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
10252	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
10253        _lt_result=$?
10254	# If there is a non-empty error log, and "single_module"
10255	# appears in it, assume the flag caused a linker warning
10256        if test -s conftest.err && $GREP single_module conftest.err; then
10257	  cat conftest.err >&5
10258	# Otherwise, if the output was created with a 0 exit code from
10259	# the compiler, it worked.
10260	elif test -f libconftest.dylib && test $_lt_result -eq 0; then
10261	  lt_cv_apple_cc_single_mod=yes
10262	else
10263	  cat conftest.err >&5
10264	fi
10265	rm -rf libconftest.dylib*
10266	rm -f conftest.*
10267      fi
10268fi
10269{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
10270$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
10271
10272    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
10273$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
10274if ${lt_cv_ld_exported_symbols_list+:} false; then :
10275  $as_echo_n "(cached) " >&6
10276else
10277  lt_cv_ld_exported_symbols_list=no
10278      save_LDFLAGS=$LDFLAGS
10279      echo "_main" > conftest.sym
10280      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
10281      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10282/* end confdefs.h.  */
10283
10284int
10285main ()
10286{
10287
10288  ;
10289  return 0;
10290}
10291_ACEOF
10292if ac_fn_c_try_link "$LINENO"; then :
10293  lt_cv_ld_exported_symbols_list=yes
10294else
10295  lt_cv_ld_exported_symbols_list=no
10296fi
10297rm -f core conftest.err conftest.$ac_objext \
10298    conftest$ac_exeext conftest.$ac_ext
10299	LDFLAGS="$save_LDFLAGS"
10300
10301fi
10302{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
10303$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
10304
10305    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
10306$as_echo_n "checking for -force_load linker flag... " >&6; }
10307if ${lt_cv_ld_force_load+:} false; then :
10308  $as_echo_n "(cached) " >&6
10309else
10310  lt_cv_ld_force_load=no
10311      cat > conftest.c << _LT_EOF
10312int forced_loaded() { return 2;}
10313_LT_EOF
10314      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
10315      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
10316      echo "$AR cru libconftest.a conftest.o" >&5
10317      $AR cru libconftest.a conftest.o 2>&5
10318      echo "$RANLIB libconftest.a" >&5
10319      $RANLIB libconftest.a 2>&5
10320      cat > conftest.c << _LT_EOF
10321int main() { return 0;}
10322_LT_EOF
10323      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
10324      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
10325      _lt_result=$?
10326      if test -s conftest.err && $GREP force_load conftest.err; then
10327	cat conftest.err >&5
10328      elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
10329	lt_cv_ld_force_load=yes
10330      else
10331	cat conftest.err >&5
10332      fi
10333        rm -f conftest.err libconftest.a conftest conftest.c
10334        rm -rf conftest.dSYM
10335
10336fi
10337{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
10338$as_echo "$lt_cv_ld_force_load" >&6; }
10339    case $host_os in
10340    rhapsody* | darwin1.[012])
10341      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
10342    darwin1.*)
10343      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
10344    darwin*) # darwin 5.x on
10345      # if running on 10.5 or later, the deployment target defaults
10346      # to the OS version, if on x86, and 10.4, the deployment
10347      # target defaults to 10.4. Don't you love it?
10348      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
10349	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
10350	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
10351	10.[012]*)
10352	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
10353	10.*)
10354	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
10355      esac
10356    ;;
10357  esac
10358    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
10359      _lt_dar_single_mod='$single_module'
10360    fi
10361    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
10362      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
10363    else
10364      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
10365    fi
10366    if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
10367      _lt_dsymutil='~$DSYMUTIL $lib || :'
10368    else
10369      _lt_dsymutil=
10370    fi
10371    ;;
10372  esac
10373
10374for ac_header in dlfcn.h
10375do :
10376  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
10377"
10378if test "x$ac_cv_header_dlfcn_h" = xyes; then :
10379  cat >>confdefs.h <<_ACEOF
10380#define HAVE_DLFCN_H 1
10381_ACEOF
10382
10383fi
10384
10385done
10386
10387
10388
10389func_stripname_cnf ()
10390{
10391  case ${2} in
10392  .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
10393  *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
10394  esac
10395} # func_stripname_cnf
10396
10397
10398
10399
10400
10401# Set options
10402
10403
10404
10405        enable_dlopen=no
10406
10407
10408  enable_win32_dll=no
10409
10410
10411            # Check whether --enable-shared was given.
10412if test "${enable_shared+set}" = set; then :
10413  enableval=$enable_shared; p=${PACKAGE-default}
10414    case $enableval in
10415    yes) enable_shared=yes ;;
10416    no) enable_shared=no ;;
10417    *)
10418      enable_shared=no
10419      # Look at the argument we got.  We use all the common list separators.
10420      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10421      for pkg in $enableval; do
10422	IFS="$lt_save_ifs"
10423	if test "X$pkg" = "X$p"; then
10424	  enable_shared=yes
10425	fi
10426      done
10427      IFS="$lt_save_ifs"
10428      ;;
10429    esac
10430else
10431  enable_shared=yes
10432fi
10433
10434
10435
10436
10437
10438
10439
10440
10441
10442  # Check whether --enable-static was given.
10443if test "${enable_static+set}" = set; then :
10444  enableval=$enable_static; p=${PACKAGE-default}
10445    case $enableval in
10446    yes) enable_static=yes ;;
10447    no) enable_static=no ;;
10448    *)
10449     enable_static=no
10450      # Look at the argument we got.  We use all the common list separators.
10451      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10452      for pkg in $enableval; do
10453	IFS="$lt_save_ifs"
10454	if test "X$pkg" = "X$p"; then
10455	  enable_static=yes
10456	fi
10457      done
10458      IFS="$lt_save_ifs"
10459      ;;
10460    esac
10461else
10462  enable_static=yes
10463fi
10464
10465
10466
10467
10468
10469
10470
10471
10472
10473
10474# Check whether --with-pic was given.
10475if test "${with_pic+set}" = set; then :
10476  withval=$with_pic; lt_p=${PACKAGE-default}
10477    case $withval in
10478    yes|no) pic_mode=$withval ;;
10479    *)
10480      pic_mode=default
10481      # Look at the argument we got.  We use all the common list separators.
10482      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10483      for lt_pkg in $withval; do
10484	IFS="$lt_save_ifs"
10485	if test "X$lt_pkg" = "X$lt_p"; then
10486	  pic_mode=yes
10487	fi
10488      done
10489      IFS="$lt_save_ifs"
10490      ;;
10491    esac
10492else
10493  pic_mode=default
10494fi
10495
10496
10497test -z "$pic_mode" && pic_mode=default
10498
10499
10500
10501
10502
10503
10504
10505  # Check whether --enable-fast-install was given.
10506if test "${enable_fast_install+set}" = set; then :
10507  enableval=$enable_fast_install; p=${PACKAGE-default}
10508    case $enableval in
10509    yes) enable_fast_install=yes ;;
10510    no) enable_fast_install=no ;;
10511    *)
10512      enable_fast_install=no
10513      # Look at the argument we got.  We use all the common list separators.
10514      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10515      for pkg in $enableval; do
10516	IFS="$lt_save_ifs"
10517	if test "X$pkg" = "X$p"; then
10518	  enable_fast_install=yes
10519	fi
10520      done
10521      IFS="$lt_save_ifs"
10522      ;;
10523    esac
10524else
10525  enable_fast_install=yes
10526fi
10527
10528
10529
10530
10531
10532
10533
10534
10535
10536
10537
10538# This can be used to rebuild libtool when needed
10539LIBTOOL_DEPS="$ltmain"
10540
10541# Always use our own libtool.
10542LIBTOOL='$(SHELL) $(top_builddir)/libtool'
10543
10544
10545
10546
10547
10548
10549
10550
10551
10552
10553
10554
10555
10556
10557
10558
10559
10560
10561
10562
10563
10564
10565
10566
10567
10568
10569
10570
10571
10572
10573test -z "$LN_S" && LN_S="ln -s"
10574
10575
10576
10577
10578
10579
10580
10581
10582
10583
10584
10585
10586
10587
10588if test -n "${ZSH_VERSION+set}" ; then
10589   setopt NO_GLOB_SUBST
10590fi
10591
10592{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
10593$as_echo_n "checking for objdir... " >&6; }
10594if ${lt_cv_objdir+:} false; then :
10595  $as_echo_n "(cached) " >&6
10596else
10597  rm -f .libs 2>/dev/null
10598mkdir .libs 2>/dev/null
10599if test -d .libs; then
10600  lt_cv_objdir=.libs
10601else
10602  # MS-DOS does not allow filenames that begin with a dot.
10603  lt_cv_objdir=_libs
10604fi
10605rmdir .libs 2>/dev/null
10606fi
10607{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
10608$as_echo "$lt_cv_objdir" >&6; }
10609objdir=$lt_cv_objdir
10610
10611
10612
10613
10614
10615cat >>confdefs.h <<_ACEOF
10616#define LT_OBJDIR "$lt_cv_objdir/"
10617_ACEOF
10618
10619
10620
10621
10622case $host_os in
10623aix3*)
10624  # AIX sometimes has problems with the GCC collect2 program.  For some
10625  # reason, if we set the COLLECT_NAMES environment variable, the problems
10626  # vanish in a puff of smoke.
10627  if test "X${COLLECT_NAMES+set}" != Xset; then
10628    COLLECT_NAMES=
10629    export COLLECT_NAMES
10630  fi
10631  ;;
10632esac
10633
10634# Global variables:
10635ofile=libtool
10636can_build_shared=yes
10637
10638# All known linkers require a `.a' archive for static linking (except MSVC,
10639# which needs '.lib').
10640libext=a
10641
10642with_gnu_ld="$lt_cv_prog_gnu_ld"
10643
10644old_CC="$CC"
10645old_CFLAGS="$CFLAGS"
10646
10647# Set sane defaults for various variables
10648test -z "$CC" && CC=cc
10649test -z "$LTCC" && LTCC=$CC
10650test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
10651test -z "$LD" && LD=ld
10652test -z "$ac_objext" && ac_objext=o
10653
10654for cc_temp in $compiler""; do
10655  case $cc_temp in
10656    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10657    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10658    \-*) ;;
10659    *) break;;
10660  esac
10661done
10662cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
10663
10664
10665# Only perform the check for file, if the check method requires it
10666test -z "$MAGIC_CMD" && MAGIC_CMD=file
10667case $deplibs_check_method in
10668file_magic*)
10669  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
10670    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
10671$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
10672if ${lt_cv_path_MAGIC_CMD+:} false; then :
10673  $as_echo_n "(cached) " >&6
10674else
10675  case $MAGIC_CMD in
10676[\\/*] |  ?:[\\/]*)
10677  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
10678  ;;
10679*)
10680  lt_save_MAGIC_CMD="$MAGIC_CMD"
10681  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10682  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10683  for ac_dir in $ac_dummy; do
10684    IFS="$lt_save_ifs"
10685    test -z "$ac_dir" && ac_dir=.
10686    if test -f $ac_dir/${ac_tool_prefix}file; then
10687      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
10688      if test -n "$file_magic_test_file"; then
10689	case $deplibs_check_method in
10690	"file_magic "*)
10691	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10692	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10693	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10694	    $EGREP "$file_magic_regex" > /dev/null; then
10695	    :
10696	  else
10697	    cat <<_LT_EOF 1>&2
10698
10699*** Warning: the command libtool uses to detect shared libraries,
10700*** $file_magic_cmd, produces output that libtool cannot recognize.
10701*** The result is that libtool may fail to recognize shared libraries
10702*** as such.  This will affect the creation of libtool libraries that
10703*** depend on shared libraries, but programs linked with such libtool
10704*** libraries will work regardless of this problem.  Nevertheless, you
10705*** may want to report the problem to your system manager and/or to
10706*** bug-libtool@gnu.org
10707
10708_LT_EOF
10709	  fi ;;
10710	esac
10711      fi
10712      break
10713    fi
10714  done
10715  IFS="$lt_save_ifs"
10716  MAGIC_CMD="$lt_save_MAGIC_CMD"
10717  ;;
10718esac
10719fi
10720
10721MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10722if test -n "$MAGIC_CMD"; then
10723  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10724$as_echo "$MAGIC_CMD" >&6; }
10725else
10726  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10727$as_echo "no" >&6; }
10728fi
10729
10730
10731
10732
10733
10734if test -z "$lt_cv_path_MAGIC_CMD"; then
10735  if test -n "$ac_tool_prefix"; then
10736    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
10737$as_echo_n "checking for file... " >&6; }
10738if ${lt_cv_path_MAGIC_CMD+:} false; then :
10739  $as_echo_n "(cached) " >&6
10740else
10741  case $MAGIC_CMD in
10742[\\/*] |  ?:[\\/]*)
10743  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
10744  ;;
10745*)
10746  lt_save_MAGIC_CMD="$MAGIC_CMD"
10747  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10748  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10749  for ac_dir in $ac_dummy; do
10750    IFS="$lt_save_ifs"
10751    test -z "$ac_dir" && ac_dir=.
10752    if test -f $ac_dir/file; then
10753      lt_cv_path_MAGIC_CMD="$ac_dir/file"
10754      if test -n "$file_magic_test_file"; then
10755	case $deplibs_check_method in
10756	"file_magic "*)
10757	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10758	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10759	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10760	    $EGREP "$file_magic_regex" > /dev/null; then
10761	    :
10762	  else
10763	    cat <<_LT_EOF 1>&2
10764
10765*** Warning: the command libtool uses to detect shared libraries,
10766*** $file_magic_cmd, produces output that libtool cannot recognize.
10767*** The result is that libtool may fail to recognize shared libraries
10768*** as such.  This will affect the creation of libtool libraries that
10769*** depend on shared libraries, but programs linked with such libtool
10770*** libraries will work regardless of this problem.  Nevertheless, you
10771*** may want to report the problem to your system manager and/or to
10772*** bug-libtool@gnu.org
10773
10774_LT_EOF
10775	  fi ;;
10776	esac
10777      fi
10778      break
10779    fi
10780  done
10781  IFS="$lt_save_ifs"
10782  MAGIC_CMD="$lt_save_MAGIC_CMD"
10783  ;;
10784esac
10785fi
10786
10787MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10788if test -n "$MAGIC_CMD"; then
10789  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10790$as_echo "$MAGIC_CMD" >&6; }
10791else
10792  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10793$as_echo "no" >&6; }
10794fi
10795
10796
10797  else
10798    MAGIC_CMD=:
10799  fi
10800fi
10801
10802  fi
10803  ;;
10804esac
10805
10806# Use C for the default configuration in the libtool script
10807
10808lt_save_CC="$CC"
10809ac_ext=c
10810ac_cpp='$CPP $CPPFLAGS'
10811ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10812ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10813ac_compiler_gnu=$ac_cv_c_compiler_gnu
10814
10815
10816# Source file extension for C test sources.
10817ac_ext=c
10818
10819# Object file extension for compiled C test sources.
10820objext=o
10821objext=$objext
10822
10823# Code to be used in simple compile tests
10824lt_simple_compile_test_code="int some_variable = 0;"
10825
10826# Code to be used in simple link tests
10827lt_simple_link_test_code='int main(){return(0);}'
10828
10829
10830
10831
10832
10833
10834
10835# If no C compiler was specified, use CC.
10836LTCC=${LTCC-"$CC"}
10837
10838# If no C compiler flags were specified, use CFLAGS.
10839LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10840
10841# Allow CC to be a program name with arguments.
10842compiler=$CC
10843
10844# Save the default compiler, since it gets overwritten when the other
10845# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
10846compiler_DEFAULT=$CC
10847
10848# save warnings/boilerplate of simple test code
10849ac_outfile=conftest.$ac_objext
10850echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10851eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10852_lt_compiler_boilerplate=`cat conftest.err`
10853$RM conftest*
10854
10855ac_outfile=conftest.$ac_objext
10856echo "$lt_simple_link_test_code" >conftest.$ac_ext
10857eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10858_lt_linker_boilerplate=`cat conftest.err`
10859$RM -r conftest*
10860
10861
10862## CAVEAT EMPTOR:
10863## There is no encapsulation within the following macros, do not change
10864## the running order or otherwise move them around unless you know exactly
10865## what you are doing...
10866if test -n "$compiler"; then
10867
10868lt_prog_compiler_no_builtin_flag=
10869
10870if test "$GCC" = yes; then
10871  case $cc_basename in
10872  nvcc*)
10873    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
10874  *)
10875    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
10876  esac
10877
10878  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
10879$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
10880if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
10881  $as_echo_n "(cached) " >&6
10882else
10883  lt_cv_prog_compiler_rtti_exceptions=no
10884   ac_outfile=conftest.$ac_objext
10885   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10886   lt_compiler_flag="-fno-rtti -fno-exceptions"
10887   # Insert the option either (1) after the last *FLAGS variable, or
10888   # (2) before a word containing "conftest.", or (3) at the end.
10889   # Note that $ac_compile itself does not contain backslashes and begins
10890   # with a dollar sign (not a hyphen), so the echo should work correctly.
10891   # The option is referenced via a variable to avoid confusing sed.
10892   lt_compile=`echo "$ac_compile" | $SED \
10893   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10894   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10895   -e 's:$: $lt_compiler_flag:'`
10896   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10897   (eval "$lt_compile" 2>conftest.err)
10898   ac_status=$?
10899   cat conftest.err >&5
10900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10901   if (exit $ac_status) && test -s "$ac_outfile"; then
10902     # The compiler can only warn and ignore the option if not recognized
10903     # So say no if there are warnings other than the usual output.
10904     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10905     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10906     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10907       lt_cv_prog_compiler_rtti_exceptions=yes
10908     fi
10909   fi
10910   $RM conftest*
10911
10912fi
10913{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
10914$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
10915
10916if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
10917    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
10918else
10919    :
10920fi
10921
10922fi
10923
10924
10925
10926
10927
10928
10929  lt_prog_compiler_wl=
10930lt_prog_compiler_pic=
10931lt_prog_compiler_static=
10932
10933
10934  if test "$GCC" = yes; then
10935    lt_prog_compiler_wl='-Wl,'
10936    lt_prog_compiler_static='-static'
10937
10938    case $host_os in
10939      aix*)
10940      # All AIX code is PIC.
10941      if test "$host_cpu" = ia64; then
10942	# AIX 5 now supports IA64 processor
10943	lt_prog_compiler_static='-Bstatic'
10944      fi
10945      ;;
10946
10947    amigaos*)
10948      case $host_cpu in
10949      powerpc)
10950            # see comment about AmigaOS4 .so support
10951            lt_prog_compiler_pic='-fPIC'
10952        ;;
10953      m68k)
10954            # FIXME: we need at least 68020 code to build shared libraries, but
10955            # adding the `-m68020' flag to GCC prevents building anything better,
10956            # like `-m68040'.
10957            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
10958        ;;
10959      esac
10960      ;;
10961
10962    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10963      # PIC is the default for these OSes.
10964      ;;
10965
10966    mingw* | cygwin* | pw32* | os2* | cegcc*)
10967      # This hack is so that the source file can tell whether it is being
10968      # built for inclusion in a dll (and should export symbols for example).
10969      # Although the cygwin gcc ignores -fPIC, still need this for old-style
10970      # (--disable-auto-import) libraries
10971      lt_prog_compiler_pic='-DDLL_EXPORT'
10972      ;;
10973
10974    darwin* | rhapsody*)
10975      # PIC is the default on this platform
10976      # Common symbols not allowed in MH_DYLIB files
10977      lt_prog_compiler_pic='-fno-common'
10978      ;;
10979
10980    haiku*)
10981      # PIC is the default for Haiku.
10982      # The "-static" flag exists, but is broken.
10983      lt_prog_compiler_static=
10984      ;;
10985
10986    hpux*)
10987      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
10988      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
10989      # sets the default TLS model and affects inlining.
10990      case $host_cpu in
10991      hppa*64*)
10992	# +Z the default
10993	;;
10994      *)
10995	lt_prog_compiler_pic='-fPIC'
10996	;;
10997      esac
10998      ;;
10999
11000    interix[3-9]*)
11001      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11002      # Instead, we relocate shared libraries at runtime.
11003      ;;
11004
11005    msdosdjgpp*)
11006      # Just because we use GCC doesn't mean we suddenly get shared libraries
11007      # on systems that don't support them.
11008      lt_prog_compiler_can_build_shared=no
11009      enable_shared=no
11010      ;;
11011
11012    *nto* | *qnx*)
11013      # QNX uses GNU C++, but need to define -shared option too, otherwise
11014      # it will coredump.
11015      lt_prog_compiler_pic='-fPIC -shared'
11016      ;;
11017
11018    sysv4*MP*)
11019      if test -d /usr/nec; then
11020	lt_prog_compiler_pic=-Kconform_pic
11021      fi
11022      ;;
11023
11024    *)
11025      lt_prog_compiler_pic='-fPIC'
11026      ;;
11027    esac
11028
11029    case $cc_basename in
11030    nvcc*) # Cuda Compiler Driver 2.2
11031      lt_prog_compiler_wl='-Xlinker '
11032      if test -n "$lt_prog_compiler_pic"; then
11033        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
11034      fi
11035      ;;
11036    esac
11037  else
11038    # PORTME Check for flag to pass linker flags through the system compiler.
11039    case $host_os in
11040    aix*)
11041      lt_prog_compiler_wl='-Wl,'
11042      if test "$host_cpu" = ia64; then
11043	# AIX 5 now supports IA64 processor
11044	lt_prog_compiler_static='-Bstatic'
11045      else
11046	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
11047      fi
11048      ;;
11049
11050    mingw* | cygwin* | pw32* | os2* | cegcc*)
11051      # This hack is so that the source file can tell whether it is being
11052      # built for inclusion in a dll (and should export symbols for example).
11053      lt_prog_compiler_pic='-DDLL_EXPORT'
11054      ;;
11055
11056    hpux9* | hpux10* | hpux11*)
11057      lt_prog_compiler_wl='-Wl,'
11058      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11059      # not for PA HP-UX.
11060      case $host_cpu in
11061      hppa*64*|ia64*)
11062	# +Z the default
11063	;;
11064      *)
11065	lt_prog_compiler_pic='+Z'
11066	;;
11067      esac
11068      # Is there a better lt_prog_compiler_static that works with the bundled CC?
11069      lt_prog_compiler_static='${wl}-a ${wl}archive'
11070      ;;
11071
11072    irix5* | irix6* | nonstopux*)
11073      lt_prog_compiler_wl='-Wl,'
11074      # PIC (with -KPIC) is the default.
11075      lt_prog_compiler_static='-non_shared'
11076      ;;
11077
11078    linux* | k*bsd*-gnu | kopensolaris*-gnu)
11079      case $cc_basename in
11080      # old Intel for x86_64 which still supported -KPIC.
11081      ecc*)
11082	lt_prog_compiler_wl='-Wl,'
11083	lt_prog_compiler_pic='-KPIC'
11084	lt_prog_compiler_static='-static'
11085        ;;
11086      # icc used to be incompatible with GCC.
11087      # ICC 10 doesn't accept -KPIC any more.
11088      icc* | ifort*)
11089	lt_prog_compiler_wl='-Wl,'
11090	lt_prog_compiler_pic='-fPIC'
11091	lt_prog_compiler_static='-static'
11092        ;;
11093      # Lahey Fortran 8.1.
11094      lf95*)
11095	lt_prog_compiler_wl='-Wl,'
11096	lt_prog_compiler_pic='--shared'
11097	lt_prog_compiler_static='--static'
11098	;;
11099      nagfor*)
11100	# NAG Fortran compiler
11101	lt_prog_compiler_wl='-Wl,-Wl,,'
11102	lt_prog_compiler_pic='-PIC'
11103	lt_prog_compiler_static='-Bstatic'
11104	;;
11105      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
11106        # Portland Group compilers (*not* the Pentium gcc compiler,
11107	# which looks to be a dead project)
11108	lt_prog_compiler_wl='-Wl,'
11109	lt_prog_compiler_pic='-fpic'
11110	lt_prog_compiler_static='-Bstatic'
11111        ;;
11112      ccc*)
11113        lt_prog_compiler_wl='-Wl,'
11114        # All Alpha code is PIC.
11115        lt_prog_compiler_static='-non_shared'
11116        ;;
11117      xl* | bgxl* | bgf* | mpixl*)
11118	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
11119	lt_prog_compiler_wl='-Wl,'
11120	lt_prog_compiler_pic='-qpic'
11121	lt_prog_compiler_static='-qstaticlink'
11122	;;
11123      *)
11124	case `$CC -V 2>&1 | sed 5q` in
11125	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
11126	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
11127	  lt_prog_compiler_pic='-KPIC'
11128	  lt_prog_compiler_static='-Bstatic'
11129	  lt_prog_compiler_wl=''
11130	  ;;
11131	*Sun\ F* | *Sun*Fortran*)
11132	  lt_prog_compiler_pic='-KPIC'
11133	  lt_prog_compiler_static='-Bstatic'
11134	  lt_prog_compiler_wl='-Qoption ld '
11135	  ;;
11136	*Sun\ C*)
11137	  # Sun C 5.9
11138	  lt_prog_compiler_pic='-KPIC'
11139	  lt_prog_compiler_static='-Bstatic'
11140	  lt_prog_compiler_wl='-Wl,'
11141	  ;;
11142        *Intel*\ [CF]*Compiler*)
11143	  lt_prog_compiler_wl='-Wl,'
11144	  lt_prog_compiler_pic='-fPIC'
11145	  lt_prog_compiler_static='-static'
11146	  ;;
11147	*Portland\ Group*)
11148	  lt_prog_compiler_wl='-Wl,'
11149	  lt_prog_compiler_pic='-fpic'
11150	  lt_prog_compiler_static='-Bstatic'
11151	  ;;
11152	esac
11153	;;
11154      esac
11155      ;;
11156
11157    newsos6)
11158      lt_prog_compiler_pic='-KPIC'
11159      lt_prog_compiler_static='-Bstatic'
11160      ;;
11161
11162    *nto* | *qnx*)
11163      # QNX uses GNU C++, but need to define -shared option too, otherwise
11164      # it will coredump.
11165      lt_prog_compiler_pic='-fPIC -shared'
11166      ;;
11167
11168    osf3* | osf4* | osf5*)
11169      lt_prog_compiler_wl='-Wl,'
11170      # All OSF/1 code is PIC.
11171      lt_prog_compiler_static='-non_shared'
11172      ;;
11173
11174    rdos*)
11175      lt_prog_compiler_static='-non_shared'
11176      ;;
11177
11178    solaris*)
11179      lt_prog_compiler_pic='-KPIC'
11180      lt_prog_compiler_static='-Bstatic'
11181      case $cc_basename in
11182      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
11183	lt_prog_compiler_wl='-Qoption ld ';;
11184      *)
11185	lt_prog_compiler_wl='-Wl,';;
11186      esac
11187      ;;
11188
11189    sunos4*)
11190      lt_prog_compiler_wl='-Qoption ld '
11191      lt_prog_compiler_pic='-PIC'
11192      lt_prog_compiler_static='-Bstatic'
11193      ;;
11194
11195    sysv4 | sysv4.2uw2* | sysv4.3*)
11196      lt_prog_compiler_wl='-Wl,'
11197      lt_prog_compiler_pic='-KPIC'
11198      lt_prog_compiler_static='-Bstatic'
11199      ;;
11200
11201    sysv4*MP*)
11202      if test -d /usr/nec ;then
11203	lt_prog_compiler_pic='-Kconform_pic'
11204	lt_prog_compiler_static='-Bstatic'
11205      fi
11206      ;;
11207
11208    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11209      lt_prog_compiler_wl='-Wl,'
11210      lt_prog_compiler_pic='-KPIC'
11211      lt_prog_compiler_static='-Bstatic'
11212      ;;
11213
11214    unicos*)
11215      lt_prog_compiler_wl='-Wl,'
11216      lt_prog_compiler_can_build_shared=no
11217      ;;
11218
11219    uts4*)
11220      lt_prog_compiler_pic='-pic'
11221      lt_prog_compiler_static='-Bstatic'
11222      ;;
11223
11224    *)
11225      lt_prog_compiler_can_build_shared=no
11226      ;;
11227    esac
11228  fi
11229
11230case $host_os in
11231  # For platforms which do not support PIC, -DPIC is meaningless:
11232  *djgpp*)
11233    lt_prog_compiler_pic=
11234    ;;
11235  *)
11236    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
11237    ;;
11238esac
11239
11240{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
11241$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
11242if ${lt_cv_prog_compiler_pic+:} false; then :
11243  $as_echo_n "(cached) " >&6
11244else
11245  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
11246fi
11247{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
11248$as_echo "$lt_cv_prog_compiler_pic" >&6; }
11249lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
11250
11251#
11252# Check to make sure the PIC flag actually works.
11253#
11254if test -n "$lt_prog_compiler_pic"; then
11255  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
11256$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
11257if ${lt_cv_prog_compiler_pic_works+:} false; then :
11258  $as_echo_n "(cached) " >&6
11259else
11260  lt_cv_prog_compiler_pic_works=no
11261   ac_outfile=conftest.$ac_objext
11262   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11263   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
11264   # Insert the option either (1) after the last *FLAGS variable, or
11265   # (2) before a word containing "conftest.", or (3) at the end.
11266   # Note that $ac_compile itself does not contain backslashes and begins
11267   # with a dollar sign (not a hyphen), so the echo should work correctly.
11268   # The option is referenced via a variable to avoid confusing sed.
11269   lt_compile=`echo "$ac_compile" | $SED \
11270   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11271   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11272   -e 's:$: $lt_compiler_flag:'`
11273   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11274   (eval "$lt_compile" 2>conftest.err)
11275   ac_status=$?
11276   cat conftest.err >&5
11277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11278   if (exit $ac_status) && test -s "$ac_outfile"; then
11279     # The compiler can only warn and ignore the option if not recognized
11280     # So say no if there are warnings other than the usual output.
11281     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11282     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11283     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11284       lt_cv_prog_compiler_pic_works=yes
11285     fi
11286   fi
11287   $RM conftest*
11288
11289fi
11290{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
11291$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
11292
11293if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
11294    case $lt_prog_compiler_pic in
11295     "" | " "*) ;;
11296     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
11297     esac
11298else
11299    lt_prog_compiler_pic=
11300     lt_prog_compiler_can_build_shared=no
11301fi
11302
11303fi
11304
11305
11306
11307
11308
11309
11310
11311
11312
11313
11314
11315#
11316# Check to make sure the static flag actually works.
11317#
11318wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
11319{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11320$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
11321if ${lt_cv_prog_compiler_static_works+:} false; then :
11322  $as_echo_n "(cached) " >&6
11323else
11324  lt_cv_prog_compiler_static_works=no
11325   save_LDFLAGS="$LDFLAGS"
11326   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11327   echo "$lt_simple_link_test_code" > conftest.$ac_ext
11328   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11329     # The linker can only warn and ignore the option if not recognized
11330     # So say no if there are warnings
11331     if test -s conftest.err; then
11332       # Append any errors to the config.log.
11333       cat conftest.err 1>&5
11334       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11335       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11336       if diff conftest.exp conftest.er2 >/dev/null; then
11337         lt_cv_prog_compiler_static_works=yes
11338       fi
11339     else
11340       lt_cv_prog_compiler_static_works=yes
11341     fi
11342   fi
11343   $RM -r conftest*
11344   LDFLAGS="$save_LDFLAGS"
11345
11346fi
11347{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
11348$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
11349
11350if test x"$lt_cv_prog_compiler_static_works" = xyes; then
11351    :
11352else
11353    lt_prog_compiler_static=
11354fi
11355
11356
11357
11358
11359
11360
11361
11362  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11363$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11364if ${lt_cv_prog_compiler_c_o+:} false; then :
11365  $as_echo_n "(cached) " >&6
11366else
11367  lt_cv_prog_compiler_c_o=no
11368   $RM -r conftest 2>/dev/null
11369   mkdir conftest
11370   cd conftest
11371   mkdir out
11372   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11373
11374   lt_compiler_flag="-o out/conftest2.$ac_objext"
11375   # Insert the option either (1) after the last *FLAGS variable, or
11376   # (2) before a word containing "conftest.", or (3) at the end.
11377   # Note that $ac_compile itself does not contain backslashes and begins
11378   # with a dollar sign (not a hyphen), so the echo should work correctly.
11379   lt_compile=`echo "$ac_compile" | $SED \
11380   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11381   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11382   -e 's:$: $lt_compiler_flag:'`
11383   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11384   (eval "$lt_compile" 2>out/conftest.err)
11385   ac_status=$?
11386   cat out/conftest.err >&5
11387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11388   if (exit $ac_status) && test -s out/conftest2.$ac_objext
11389   then
11390     # The compiler can only warn and ignore the option if not recognized
11391     # So say no if there are warnings
11392     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
11393     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11394     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11395       lt_cv_prog_compiler_c_o=yes
11396     fi
11397   fi
11398   chmod u+w . 2>&5
11399   $RM conftest*
11400   # SGI C++ compiler will create directory out/ii_files/ for
11401   # template instantiation
11402   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11403   $RM out/* && rmdir out
11404   cd ..
11405   $RM -r conftest
11406   $RM conftest*
11407
11408fi
11409{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
11410$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
11411
11412
11413
11414
11415
11416
11417  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11418$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11419if ${lt_cv_prog_compiler_c_o+:} false; then :
11420  $as_echo_n "(cached) " >&6
11421else
11422  lt_cv_prog_compiler_c_o=no
11423   $RM -r conftest 2>/dev/null
11424   mkdir conftest
11425   cd conftest
11426   mkdir out
11427   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11428
11429   lt_compiler_flag="-o out/conftest2.$ac_objext"
11430   # Insert the option either (1) after the last *FLAGS variable, or
11431   # (2) before a word containing "conftest.", or (3) at the end.
11432   # Note that $ac_compile itself does not contain backslashes and begins
11433   # with a dollar sign (not a hyphen), so the echo should work correctly.
11434   lt_compile=`echo "$ac_compile" | $SED \
11435   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11436   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11437   -e 's:$: $lt_compiler_flag:'`
11438   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11439   (eval "$lt_compile" 2>out/conftest.err)
11440   ac_status=$?
11441   cat out/conftest.err >&5
11442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11443   if (exit $ac_status) && test -s out/conftest2.$ac_objext
11444   then
11445     # The compiler can only warn and ignore the option if not recognized
11446     # So say no if there are warnings
11447     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
11448     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11449     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11450       lt_cv_prog_compiler_c_o=yes
11451     fi
11452   fi
11453   chmod u+w . 2>&5
11454   $RM conftest*
11455   # SGI C++ compiler will create directory out/ii_files/ for
11456   # template instantiation
11457   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11458   $RM out/* && rmdir out
11459   cd ..
11460   $RM -r conftest
11461   $RM conftest*
11462
11463fi
11464{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
11465$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
11466
11467
11468
11469
11470hard_links="nottested"
11471if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
11472  # do not overwrite the value of need_locks provided by the user
11473  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
11474$as_echo_n "checking if we can lock with hard links... " >&6; }
11475  hard_links=yes
11476  $RM conftest*
11477  ln conftest.a conftest.b 2>/dev/null && hard_links=no
11478  touch conftest.a
11479  ln conftest.a conftest.b 2>&5 || hard_links=no
11480  ln conftest.a conftest.b 2>/dev/null && hard_links=no
11481  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
11482$as_echo "$hard_links" >&6; }
11483  if test "$hard_links" = no; then
11484    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11485$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11486    need_locks=warn
11487  fi
11488else
11489  need_locks=no
11490fi
11491
11492
11493
11494
11495
11496
11497  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11498$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11499
11500  runpath_var=
11501  allow_undefined_flag=
11502  always_export_symbols=no
11503  archive_cmds=
11504  archive_expsym_cmds=
11505  compiler_needs_object=no
11506  enable_shared_with_static_runtimes=no
11507  export_dynamic_flag_spec=
11508  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11509  hardcode_automatic=no
11510  hardcode_direct=no
11511  hardcode_direct_absolute=no
11512  hardcode_libdir_flag_spec=
11513  hardcode_libdir_separator=
11514  hardcode_minus_L=no
11515  hardcode_shlibpath_var=unsupported
11516  inherit_rpath=no
11517  link_all_deplibs=unknown
11518  module_cmds=
11519  module_expsym_cmds=
11520  old_archive_from_new_cmds=
11521  old_archive_from_expsyms_cmds=
11522  thread_safe_flag_spec=
11523  whole_archive_flag_spec=
11524  # include_expsyms should be a list of space-separated symbols to be *always*
11525  # included in the symbol list
11526  include_expsyms=
11527  # exclude_expsyms can be an extended regexp of symbols to exclude
11528  # it will be wrapped by ` (' and `)$', so one must not match beginning or
11529  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
11530  # as well as any symbol that contains `d'.
11531  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
11532  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
11533  # platforms (ab)use it in PIC code, but their linkers get confused if
11534  # the symbol is explicitly referenced.  Since portable code cannot
11535  # rely on this symbol name, it's probably fine to never include it in
11536  # preloaded symbol tables.
11537  # Exclude shared library initialization/finalization symbols.
11538  extract_expsyms_cmds=
11539
11540  case $host_os in
11541  cygwin* | mingw* | pw32* | cegcc*)
11542    # FIXME: the MSVC++ port hasn't been tested in a loooong time
11543    # When not using gcc, we currently assume that we are using
11544    # Microsoft Visual C++.
11545    if test "$GCC" != yes; then
11546      with_gnu_ld=no
11547    fi
11548    ;;
11549  interix*)
11550    # we just hope/assume this is gcc and not c89 (= MSVC++)
11551    with_gnu_ld=yes
11552    ;;
11553  openbsd*)
11554    with_gnu_ld=no
11555    ;;
11556  esac
11557
11558  ld_shlibs=yes
11559
11560  # On some targets, GNU ld is compatible enough with the native linker
11561  # that we're better off using the native interface for both.
11562  lt_use_gnu_ld_interface=no
11563  if test "$with_gnu_ld" = yes; then
11564    case $host_os in
11565      aix*)
11566	# The AIX port of GNU ld has always aspired to compatibility
11567	# with the native linker.  However, as the warning in the GNU ld
11568	# block says, versions before 2.19.5* couldn't really create working
11569	# shared libraries, regardless of the interface used.
11570	case `$LD -v 2>&1` in
11571	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
11572	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
11573	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
11574	  *)
11575	    lt_use_gnu_ld_interface=yes
11576	    ;;
11577	esac
11578	;;
11579      *)
11580	lt_use_gnu_ld_interface=yes
11581	;;
11582    esac
11583  fi
11584
11585  if test "$lt_use_gnu_ld_interface" = yes; then
11586    # If archive_cmds runs LD, not CC, wlarc should be empty
11587    wlarc='${wl}'
11588
11589    # Set some defaults for GNU ld with shared library support. These
11590    # are reset later if shared libraries are not supported. Putting them
11591    # here allows them to be overridden if necessary.
11592    runpath_var=LD_RUN_PATH
11593    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11594    export_dynamic_flag_spec='${wl}--export-dynamic'
11595    # ancient GNU ld didn't support --whole-archive et. al.
11596    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
11597      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11598    else
11599      whole_archive_flag_spec=
11600    fi
11601    supports_anon_versioning=no
11602    case `$LD -v 2>&1` in
11603      *GNU\ gold*) supports_anon_versioning=yes ;;
11604      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
11605      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
11606      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
11607      *\ 2.11.*) ;; # other 2.11 versions
11608      *) supports_anon_versioning=yes ;;
11609    esac
11610
11611    # See if GNU ld supports shared libraries.
11612    case $host_os in
11613    aix[3-9]*)
11614      # On AIX/PPC, the GNU linker is very broken
11615      if test "$host_cpu" != ia64; then
11616	ld_shlibs=no
11617	cat <<_LT_EOF 1>&2
11618
11619*** Warning: the GNU linker, at least up to release 2.19, is reported
11620*** to be unable to reliably create shared libraries on AIX.
11621*** Therefore, libtool is disabling shared libraries support.  If you
11622*** really care for shared libraries, you may want to install binutils
11623*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
11624*** You will then need to restart the configuration process.
11625
11626_LT_EOF
11627      fi
11628      ;;
11629
11630    amigaos*)
11631      case $host_cpu in
11632      powerpc)
11633            # see comment about AmigaOS4 .so support
11634            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11635            archive_expsym_cmds=''
11636        ;;
11637      m68k)
11638            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)'
11639            hardcode_libdir_flag_spec='-L$libdir'
11640            hardcode_minus_L=yes
11641        ;;
11642      esac
11643      ;;
11644
11645    beos*)
11646      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11647	allow_undefined_flag=unsupported
11648	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11649	# support --undefined.  This deserves some investigation.  FIXME
11650	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11651      else
11652	ld_shlibs=no
11653      fi
11654      ;;
11655
11656    cygwin* | mingw* | pw32* | cegcc*)
11657      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
11658      # as there is no search path for DLLs.
11659      hardcode_libdir_flag_spec='-L$libdir'
11660      export_dynamic_flag_spec='${wl}--export-all-symbols'
11661      allow_undefined_flag=unsupported
11662      always_export_symbols=no
11663      enable_shared_with_static_runtimes=yes
11664      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'
11665      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
11666
11667      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
11668        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11669	# If the export-symbols file already is a .def file (1st line
11670	# is EXPORTS), use it as is; otherwise, prepend...
11671	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11672	  cp $export_symbols $output_objdir/$soname.def;
11673	else
11674	  echo EXPORTS > $output_objdir/$soname.def;
11675	  cat $export_symbols >> $output_objdir/$soname.def;
11676	fi~
11677	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11678      else
11679	ld_shlibs=no
11680      fi
11681      ;;
11682
11683    haiku*)
11684      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11685      link_all_deplibs=yes
11686      ;;
11687
11688    interix[3-9]*)
11689      hardcode_direct=no
11690      hardcode_shlibpath_var=no
11691      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11692      export_dynamic_flag_spec='${wl}-E'
11693      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11694      # Instead, shared libraries are loaded at an image base (0x10000000 by
11695      # default) and relocated if they conflict, which is a slow very memory
11696      # consuming and fragmenting process.  To avoid this, we pick a random,
11697      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11698      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
11699      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11700      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'
11701      ;;
11702
11703    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
11704      tmp_diet=no
11705      if test "$host_os" = linux-dietlibc; then
11706	case $cc_basename in
11707	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
11708	esac
11709      fi
11710      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
11711	 && test "$tmp_diet" = no
11712      then
11713	tmp_addflag=' $pic_flag'
11714	tmp_sharedflag='-shared'
11715	case $cc_basename,$host_cpu in
11716        pgcc*)				# Portland Group C compiler
11717	  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'
11718	  tmp_addflag=' $pic_flag'
11719	  ;;
11720	pgf77* | pgf90* | pgf95* | pgfortran*)
11721					# Portland Group f77 and f90 compilers
11722	  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'
11723	  tmp_addflag=' $pic_flag -Mnomain' ;;
11724	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
11725	  tmp_addflag=' -i_dynamic' ;;
11726	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
11727	  tmp_addflag=' -i_dynamic -nofor_main' ;;
11728	ifc* | ifort*)			# Intel Fortran compiler
11729	  tmp_addflag=' -nofor_main' ;;
11730	lf95*)				# Lahey Fortran 8.1
11731	  whole_archive_flag_spec=
11732	  tmp_sharedflag='--shared' ;;
11733	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
11734	  tmp_sharedflag='-qmkshrobj'
11735	  tmp_addflag= ;;
11736	nvcc*)	# Cuda Compiler Driver 2.2
11737	  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'
11738	  compiler_needs_object=yes
11739	  ;;
11740	esac
11741	case `$CC -V 2>&1 | sed 5q` in
11742	*Sun\ C*)			# Sun C 5.9
11743	  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'
11744	  compiler_needs_object=yes
11745	  tmp_sharedflag='-G' ;;
11746	*Sun\ F*)			# Sun Fortran 8.3
11747	  tmp_sharedflag='-G' ;;
11748	esac
11749	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11750
11751        if test "x$supports_anon_versioning" = xyes; then
11752          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11753	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11754	    echo "local: *; };" >> $output_objdir/$libname.ver~
11755	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
11756        fi
11757
11758	case $cc_basename in
11759	xlf* | bgf* | bgxlf* | mpixlf*)
11760	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
11761	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
11762	  hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11763	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
11764	  if test "x$supports_anon_versioning" = xyes; then
11765	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11766	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11767	      echo "local: *; };" >> $output_objdir/$libname.ver~
11768	      $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
11769	  fi
11770	  ;;
11771	esac
11772      else
11773        ld_shlibs=no
11774      fi
11775      ;;
11776
11777    netbsd*)
11778      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11779	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
11780	wlarc=
11781      else
11782	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11783	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11784      fi
11785      ;;
11786
11787    solaris*)
11788      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
11789	ld_shlibs=no
11790	cat <<_LT_EOF 1>&2
11791
11792*** Warning: The releases 2.8.* of the GNU linker cannot reliably
11793*** create shared libraries on Solaris systems.  Therefore, libtool
11794*** is disabling shared libraries support.  We urge you to upgrade GNU
11795*** binutils to release 2.9.1 or newer.  Another option is to modify
11796*** your PATH or compiler configuration so that the native linker is
11797*** used, and then restart.
11798
11799_LT_EOF
11800      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11801	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11802	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11803      else
11804	ld_shlibs=no
11805      fi
11806      ;;
11807
11808    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
11809      case `$LD -v 2>&1` in
11810        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
11811	ld_shlibs=no
11812	cat <<_LT_EOF 1>&2
11813
11814*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
11815*** reliably create shared libraries on SCO systems.  Therefore, libtool
11816*** is disabling shared libraries support.  We urge you to upgrade GNU
11817*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
11818*** your PATH or compiler configuration so that the native linker is
11819*** used, and then restart.
11820
11821_LT_EOF
11822	;;
11823	*)
11824	  # For security reasons, it is highly recommended that you always
11825	  # use absolute paths for naming shared libraries, and exclude the
11826	  # DT_RUNPATH tag from executables and libraries.  But doing so
11827	  # requires that you compile everything twice, which is a pain.
11828	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11829	    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11830	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11831	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11832	  else
11833	    ld_shlibs=no
11834	  fi
11835	;;
11836      esac
11837      ;;
11838
11839    sunos4*)
11840      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11841      wlarc=
11842      hardcode_direct=yes
11843      hardcode_shlibpath_var=no
11844      ;;
11845
11846    *)
11847      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11848	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11849	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11850      else
11851	ld_shlibs=no
11852      fi
11853      ;;
11854    esac
11855
11856    if test "$ld_shlibs" = no; then
11857      runpath_var=
11858      hardcode_libdir_flag_spec=
11859      export_dynamic_flag_spec=
11860      whole_archive_flag_spec=
11861    fi
11862  else
11863    # PORTME fill in a description of your system's linker (not GNU ld)
11864    case $host_os in
11865    aix3*)
11866      allow_undefined_flag=unsupported
11867      always_export_symbols=yes
11868      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'
11869      # Note: this linker hardcodes the directories in LIBPATH if there
11870      # are no directories specified by -L.
11871      hardcode_minus_L=yes
11872      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
11873	# Neither direct hardcoding nor static linking is supported with a
11874	# broken collect2.
11875	hardcode_direct=unsupported
11876      fi
11877      ;;
11878
11879    aix[4-9]*)
11880      if test "$host_cpu" = ia64; then
11881	# On IA64, the linker does run time linking by default, so we don't
11882	# have to do anything special.
11883	aix_use_runtimelinking=no
11884	exp_sym_flag='-Bexport'
11885	no_entry_flag=""
11886      else
11887	# If we're using GNU nm, then we don't want the "-C" option.
11888	# -C means demangle to AIX nm, but means don't demangle with GNU nm
11889	# Also, AIX nm treats weak defined symbols like other global
11890	# defined symbols, whereas GNU nm marks them as "W".
11891	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
11892	  export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
11893	else
11894	  export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
11895	fi
11896	aix_use_runtimelinking=no
11897
11898	# Test if we are trying to use run time linking or normal
11899	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
11900	# need to do runtime linking.
11901	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11902	  for ld_flag in $LDFLAGS; do
11903	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
11904	    aix_use_runtimelinking=yes
11905	    break
11906	  fi
11907	  done
11908	  ;;
11909	esac
11910
11911	exp_sym_flag='-bexport'
11912	no_entry_flag='-bnoentry'
11913      fi
11914
11915      # When large executables or shared objects are built, AIX ld can
11916      # have problems creating the table of contents.  If linking a library
11917      # or program results in "error TOC overflow" add -mminimal-toc to
11918      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
11919      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11920
11921      archive_cmds=''
11922      hardcode_direct=yes
11923      hardcode_direct_absolute=yes
11924      hardcode_libdir_separator=':'
11925      link_all_deplibs=yes
11926      file_list_spec='${wl}-f,'
11927
11928      if test "$GCC" = yes; then
11929	case $host_os in aix4.[012]|aix4.[012].*)
11930	# We only want to do this on AIX 4.2 and lower, the check
11931	# below for broken collect2 doesn't work under 4.3+
11932	  collect2name=`${CC} -print-prog-name=collect2`
11933	  if test -f "$collect2name" &&
11934	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11935	  then
11936	  # We have reworked collect2
11937	  :
11938	  else
11939	  # We have old collect2
11940	  hardcode_direct=unsupported
11941	  # It fails to find uninstalled libraries when the uninstalled
11942	  # path is not listed in the libpath.  Setting hardcode_minus_L
11943	  # to unsupported forces relinking
11944	  hardcode_minus_L=yes
11945	  hardcode_libdir_flag_spec='-L$libdir'
11946	  hardcode_libdir_separator=
11947	  fi
11948	  ;;
11949	esac
11950	shared_flag='-shared'
11951	if test "$aix_use_runtimelinking" = yes; then
11952	  shared_flag="$shared_flag "'${wl}-G'
11953	fi
11954      else
11955	# not using gcc
11956	if test "$host_cpu" = ia64; then
11957	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11958	# chokes on -Wl,-G. The following line is correct:
11959	  shared_flag='-G'
11960	else
11961	  if test "$aix_use_runtimelinking" = yes; then
11962	    shared_flag='${wl}-G'
11963	  else
11964	    shared_flag='${wl}-bM:SRE'
11965	  fi
11966	fi
11967      fi
11968
11969      export_dynamic_flag_spec='${wl}-bexpall'
11970      # It seems that -bexpall does not export symbols beginning with
11971      # underscore (_), so it is better to generate a list of symbols to export.
11972      always_export_symbols=yes
11973      if test "$aix_use_runtimelinking" = yes; then
11974	# Warning - without using the other runtime loading flags (-brtl),
11975	# -berok will link without error, but may produce a broken library.
11976	allow_undefined_flag='-berok'
11977        # Determine the default libpath from the value encoded in an
11978        # empty executable.
11979        if test "${lt_cv_aix_libpath+set}" = set; then
11980  aix_libpath=$lt_cv_aix_libpath
11981else
11982  if ${lt_cv_aix_libpath_+:} false; then :
11983  $as_echo_n "(cached) " >&6
11984else
11985  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11986/* end confdefs.h.  */
11987
11988int
11989main ()
11990{
11991
11992  ;
11993  return 0;
11994}
11995_ACEOF
11996if ac_fn_c_try_link "$LINENO"; then :
11997
11998  lt_aix_libpath_sed='
11999      /Import File Strings/,/^$/ {
12000	  /^0/ {
12001	      s/^0  *\([^ ]*\) *$/\1/
12002	      p
12003	  }
12004      }'
12005  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12006  # Check for a 64-bit object if we didn't find anything.
12007  if test -z "$lt_cv_aix_libpath_"; then
12008    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12009  fi
12010fi
12011rm -f core conftest.err conftest.$ac_objext \
12012    conftest$ac_exeext conftest.$ac_ext
12013  if test -z "$lt_cv_aix_libpath_"; then
12014    lt_cv_aix_libpath_="/usr/lib:/lib"
12015  fi
12016
12017fi
12018
12019  aix_libpath=$lt_cv_aix_libpath_
12020fi
12021
12022        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
12023        archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
12024      else
12025	if test "$host_cpu" = ia64; then
12026	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
12027	  allow_undefined_flag="-z nodefs"
12028	  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"
12029	else
12030	 # Determine the default libpath from the value encoded in an
12031	 # empty executable.
12032	 if test "${lt_cv_aix_libpath+set}" = set; then
12033  aix_libpath=$lt_cv_aix_libpath
12034else
12035  if ${lt_cv_aix_libpath_+:} false; then :
12036  $as_echo_n "(cached) " >&6
12037else
12038  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12039/* end confdefs.h.  */
12040
12041int
12042main ()
12043{
12044
12045  ;
12046  return 0;
12047}
12048_ACEOF
12049if ac_fn_c_try_link "$LINENO"; then :
12050
12051  lt_aix_libpath_sed='
12052      /Import File Strings/,/^$/ {
12053	  /^0/ {
12054	      s/^0  *\([^ ]*\) *$/\1/
12055	      p
12056	  }
12057      }'
12058  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12059  # Check for a 64-bit object if we didn't find anything.
12060  if test -z "$lt_cv_aix_libpath_"; then
12061    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12062  fi
12063fi
12064rm -f core conftest.err conftest.$ac_objext \
12065    conftest$ac_exeext conftest.$ac_ext
12066  if test -z "$lt_cv_aix_libpath_"; then
12067    lt_cv_aix_libpath_="/usr/lib:/lib"
12068  fi
12069
12070fi
12071
12072  aix_libpath=$lt_cv_aix_libpath_
12073fi
12074
12075	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
12076	  # Warning - without using the other run time loading flags,
12077	  # -berok will link without error, but may produce a broken library.
12078	  no_undefined_flag=' ${wl}-bernotok'
12079	  allow_undefined_flag=' ${wl}-berok'
12080	  if test "$with_gnu_ld" = yes; then
12081	    # We only use this code for GNU lds that support --whole-archive.
12082	    whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12083	  else
12084	    # Exported symbols can be pulled into shared objects from archives
12085	    whole_archive_flag_spec='$convenience'
12086	  fi
12087	  archive_cmds_need_lc=yes
12088	  # This is similar to how AIX traditionally builds its shared libraries.
12089	  archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
12090	fi
12091      fi
12092      ;;
12093
12094    amigaos*)
12095      case $host_cpu in
12096      powerpc)
12097            # see comment about AmigaOS4 .so support
12098            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12099            archive_expsym_cmds=''
12100        ;;
12101      m68k)
12102            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)'
12103            hardcode_libdir_flag_spec='-L$libdir'
12104            hardcode_minus_L=yes
12105        ;;
12106      esac
12107      ;;
12108
12109    bsdi[45]*)
12110      export_dynamic_flag_spec=-rdynamic
12111      ;;
12112
12113    cygwin* | mingw* | pw32* | cegcc*)
12114      # When not using gcc, we currently assume that we are using
12115      # Microsoft Visual C++.
12116      # hardcode_libdir_flag_spec is actually meaningless, as there is
12117      # no search path for DLLs.
12118      case $cc_basename in
12119      cl*)
12120	# Native MSVC
12121	hardcode_libdir_flag_spec=' '
12122	allow_undefined_flag=unsupported
12123	always_export_symbols=yes
12124	file_list_spec='@'
12125	# Tell ltmain to make .lib files, not .a files.
12126	libext=lib
12127	# Tell ltmain to make .dll files, not .so files.
12128	shrext_cmds=".dll"
12129	# FIXME: Setting linknames here is a bad hack.
12130	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
12131	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12132	    sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
12133	  else
12134	    sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
12135	  fi~
12136	  $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
12137	  linknames='
12138	# The linker will not automatically build a static lib if we build a DLL.
12139	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
12140	enable_shared_with_static_runtimes=yes
12141	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
12142	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
12143	# Don't use ranlib
12144	old_postinstall_cmds='chmod 644 $oldlib'
12145	postlink_cmds='lt_outputfile="@OUTPUT@"~
12146	  lt_tool_outputfile="@TOOL_OUTPUT@"~
12147	  case $lt_outputfile in
12148	    *.exe|*.EXE) ;;
12149	    *)
12150	      lt_outputfile="$lt_outputfile.exe"
12151	      lt_tool_outputfile="$lt_tool_outputfile.exe"
12152	      ;;
12153	  esac~
12154	  if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
12155	    $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
12156	    $RM "$lt_outputfile.manifest";
12157	  fi'
12158	;;
12159      *)
12160	# Assume MSVC wrapper
12161	hardcode_libdir_flag_spec=' '
12162	allow_undefined_flag=unsupported
12163	# Tell ltmain to make .lib files, not .a files.
12164	libext=lib
12165	# Tell ltmain to make .dll files, not .so files.
12166	shrext_cmds=".dll"
12167	# FIXME: Setting linknames here is a bad hack.
12168	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
12169	# The linker will automatically build a .lib file if we build a DLL.
12170	old_archive_from_new_cmds='true'
12171	# FIXME: Should let the user specify the lib program.
12172	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
12173	enable_shared_with_static_runtimes=yes
12174	;;
12175      esac
12176      ;;
12177
12178    darwin* | rhapsody*)
12179
12180
12181  archive_cmds_need_lc=no
12182  hardcode_direct=no
12183  hardcode_automatic=yes
12184  hardcode_shlibpath_var=unsupported
12185  if test "$lt_cv_ld_force_load" = "yes"; then
12186    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\"`'
12187
12188  else
12189    whole_archive_flag_spec=''
12190  fi
12191  link_all_deplibs=yes
12192  allow_undefined_flag="$_lt_dar_allow_undefined"
12193  case $cc_basename in
12194     ifort*) _lt_dar_can_shared=yes ;;
12195     *) _lt_dar_can_shared=$GCC ;;
12196  esac
12197  if test "$_lt_dar_can_shared" = "yes"; then
12198    output_verbose_link_cmd=func_echo_all
12199    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
12200    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12201    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}"
12202    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}"
12203
12204  else
12205  ld_shlibs=no
12206  fi
12207
12208      ;;
12209
12210    dgux*)
12211      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12212      hardcode_libdir_flag_spec='-L$libdir'
12213      hardcode_shlibpath_var=no
12214      ;;
12215
12216    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12217    # support.  Future versions do this automatically, but an explicit c++rt0.o
12218    # does not break anything, and helps significantly (at the cost of a little
12219    # extra space).
12220    freebsd2.2*)
12221      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
12222      hardcode_libdir_flag_spec='-R$libdir'
12223      hardcode_direct=yes
12224      hardcode_shlibpath_var=no
12225      ;;
12226
12227    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
12228    freebsd2.*)
12229      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12230      hardcode_direct=yes
12231      hardcode_minus_L=yes
12232      hardcode_shlibpath_var=no
12233      ;;
12234
12235    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
12236    freebsd* | dragonfly*)
12237      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12238      hardcode_libdir_flag_spec='-R$libdir'
12239      hardcode_direct=yes
12240      hardcode_shlibpath_var=no
12241      ;;
12242
12243    hpux9*)
12244      if test "$GCC" = yes; then
12245	archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
12246      else
12247	archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
12248      fi
12249      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12250      hardcode_libdir_separator=:
12251      hardcode_direct=yes
12252
12253      # hardcode_minus_L: Not really in the search PATH,
12254      # but as the default location of the library.
12255      hardcode_minus_L=yes
12256      export_dynamic_flag_spec='${wl}-E'
12257      ;;
12258
12259    hpux10*)
12260      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
12261	archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12262      else
12263	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12264      fi
12265      if test "$with_gnu_ld" = no; then
12266	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12267	hardcode_libdir_separator=:
12268	hardcode_direct=yes
12269	hardcode_direct_absolute=yes
12270	export_dynamic_flag_spec='${wl}-E'
12271	# hardcode_minus_L: Not really in the search PATH,
12272	# but as the default location of the library.
12273	hardcode_minus_L=yes
12274      fi
12275      ;;
12276
12277    hpux11*)
12278      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
12279	case $host_cpu in
12280	hppa*64*)
12281	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12282	  ;;
12283	ia64*)
12284	  archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12285	  ;;
12286	*)
12287	  archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12288	  ;;
12289	esac
12290      else
12291	case $host_cpu in
12292	hppa*64*)
12293	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12294	  ;;
12295	ia64*)
12296	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12297	  ;;
12298	*)
12299
12300	  # Older versions of the 11.00 compiler do not understand -b yet
12301	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
12302	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
12303$as_echo_n "checking if $CC understands -b... " >&6; }
12304if ${lt_cv_prog_compiler__b+:} false; then :
12305  $as_echo_n "(cached) " >&6
12306else
12307  lt_cv_prog_compiler__b=no
12308   save_LDFLAGS="$LDFLAGS"
12309   LDFLAGS="$LDFLAGS -b"
12310   echo "$lt_simple_link_test_code" > conftest.$ac_ext
12311   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12312     # The linker can only warn and ignore the option if not recognized
12313     # So say no if there are warnings
12314     if test -s conftest.err; then
12315       # Append any errors to the config.log.
12316       cat conftest.err 1>&5
12317       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
12318       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12319       if diff conftest.exp conftest.er2 >/dev/null; then
12320         lt_cv_prog_compiler__b=yes
12321       fi
12322     else
12323       lt_cv_prog_compiler__b=yes
12324     fi
12325   fi
12326   $RM -r conftest*
12327   LDFLAGS="$save_LDFLAGS"
12328
12329fi
12330{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
12331$as_echo "$lt_cv_prog_compiler__b" >&6; }
12332
12333if test x"$lt_cv_prog_compiler__b" = xyes; then
12334    archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12335else
12336    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12337fi
12338
12339	  ;;
12340	esac
12341      fi
12342      if test "$with_gnu_ld" = no; then
12343	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12344	hardcode_libdir_separator=:
12345
12346	case $host_cpu in
12347	hppa*64*|ia64*)
12348	  hardcode_direct=no
12349	  hardcode_shlibpath_var=no
12350	  ;;
12351	*)
12352	  hardcode_direct=yes
12353	  hardcode_direct_absolute=yes
12354	  export_dynamic_flag_spec='${wl}-E'
12355
12356	  # hardcode_minus_L: Not really in the search PATH,
12357	  # but as the default location of the library.
12358	  hardcode_minus_L=yes
12359	  ;;
12360	esac
12361      fi
12362      ;;
12363
12364    irix5* | irix6* | nonstopux*)
12365      if test "$GCC" = yes; then
12366	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'
12367	# Try to use the -exported_symbol ld option, if it does not
12368	# work, assume that -exports_file does not work either and
12369	# implicitly export all symbols.
12370	# This should be the same for all languages, so no per-tag cache variable.
12371	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
12372$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
12373if ${lt_cv_irix_exported_symbol+:} false; then :
12374  $as_echo_n "(cached) " >&6
12375else
12376  save_LDFLAGS="$LDFLAGS"
12377	   LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
12378	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12379/* end confdefs.h.  */
12380int foo (void) { return 0; }
12381_ACEOF
12382if ac_fn_c_try_link "$LINENO"; then :
12383  lt_cv_irix_exported_symbol=yes
12384else
12385  lt_cv_irix_exported_symbol=no
12386fi
12387rm -f core conftest.err conftest.$ac_objext \
12388    conftest$ac_exeext conftest.$ac_ext
12389           LDFLAGS="$save_LDFLAGS"
12390fi
12391{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
12392$as_echo "$lt_cv_irix_exported_symbol" >&6; }
12393	if test "$lt_cv_irix_exported_symbol" = yes; then
12394          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'
12395	fi
12396      else
12397	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'
12398	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'
12399      fi
12400      archive_cmds_need_lc='no'
12401      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12402      hardcode_libdir_separator=:
12403      inherit_rpath=yes
12404      link_all_deplibs=yes
12405      ;;
12406
12407    netbsd*)
12408      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12409	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
12410      else
12411	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
12412      fi
12413      hardcode_libdir_flag_spec='-R$libdir'
12414      hardcode_direct=yes
12415      hardcode_shlibpath_var=no
12416      ;;
12417
12418    newsos6)
12419      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12420      hardcode_direct=yes
12421      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12422      hardcode_libdir_separator=:
12423      hardcode_shlibpath_var=no
12424      ;;
12425
12426    *nto* | *qnx*)
12427      ;;
12428
12429    openbsd*)
12430      if test -f /usr/libexec/ld.so; then
12431	hardcode_direct=yes
12432	hardcode_shlibpath_var=no
12433	hardcode_direct_absolute=yes
12434	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12435	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12436	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
12437	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
12438	  export_dynamic_flag_spec='${wl}-E'
12439	else
12440	  case $host_os in
12441	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
12442	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12443	     hardcode_libdir_flag_spec='-R$libdir'
12444	     ;;
12445	   *)
12446	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12447	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
12448	     ;;
12449	  esac
12450	fi
12451      else
12452	ld_shlibs=no
12453      fi
12454      ;;
12455
12456    os2*)
12457      hardcode_libdir_flag_spec='-L$libdir'
12458      hardcode_minus_L=yes
12459      allow_undefined_flag=unsupported
12460      archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
12461      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
12462      ;;
12463
12464    osf3*)
12465      if test "$GCC" = yes; then
12466	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
12467	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'
12468      else
12469	allow_undefined_flag=' -expect_unresolved \*'
12470	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'
12471      fi
12472      archive_cmds_need_lc='no'
12473      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12474      hardcode_libdir_separator=:
12475      ;;
12476
12477    osf4* | osf5*)	# as osf3* with the addition of -msym flag
12478      if test "$GCC" = yes; then
12479	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
12480	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'
12481	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12482      else
12483	allow_undefined_flag=' -expect_unresolved \*'
12484	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'
12485	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~
12486	$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'
12487
12488	# Both c and cxx compiler support -rpath directly
12489	hardcode_libdir_flag_spec='-rpath $libdir'
12490      fi
12491      archive_cmds_need_lc='no'
12492      hardcode_libdir_separator=:
12493      ;;
12494
12495    solaris*)
12496      no_undefined_flag=' -z defs'
12497      if test "$GCC" = yes; then
12498	wlarc='${wl}'
12499	archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12500	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12501	  $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'
12502      else
12503	case `$CC -V 2>&1` in
12504	*"Compilers 5.0"*)
12505	  wlarc=''
12506	  archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
12507	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12508	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
12509	  ;;
12510	*)
12511	  wlarc='${wl}'
12512	  archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
12513	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12514	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12515	  ;;
12516	esac
12517      fi
12518      hardcode_libdir_flag_spec='-R$libdir'
12519      hardcode_shlibpath_var=no
12520      case $host_os in
12521      solaris2.[0-5] | solaris2.[0-5].*) ;;
12522      *)
12523	# The compiler driver will combine and reorder linker options,
12524	# but understands `-z linker_flag'.  GCC discards it without `$wl',
12525	# but is careful enough not to reorder.
12526	# Supported since Solaris 2.6 (maybe 2.5.1?)
12527	if test "$GCC" = yes; then
12528	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12529	else
12530	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
12531	fi
12532	;;
12533      esac
12534      link_all_deplibs=yes
12535      ;;
12536
12537    sunos4*)
12538      if test "x$host_vendor" = xsequent; then
12539	# Use $CC to link under sequent, because it throws in some extra .o
12540	# files that make .init and .fini sections work.
12541	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
12542      else
12543	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
12544      fi
12545      hardcode_libdir_flag_spec='-L$libdir'
12546      hardcode_direct=yes
12547      hardcode_minus_L=yes
12548      hardcode_shlibpath_var=no
12549      ;;
12550
12551    sysv4)
12552      case $host_vendor in
12553	sni)
12554	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12555	  hardcode_direct=yes # is this really true???
12556	;;
12557	siemens)
12558	  ## LD is ld it makes a PLAMLIB
12559	  ## CC just makes a GrossModule.
12560	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12561	  reload_cmds='$CC -r -o $output$reload_objs'
12562	  hardcode_direct=no
12563        ;;
12564	motorola)
12565	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12566	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
12567	;;
12568      esac
12569      runpath_var='LD_RUN_PATH'
12570      hardcode_shlibpath_var=no
12571      ;;
12572
12573    sysv4.3*)
12574      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12575      hardcode_shlibpath_var=no
12576      export_dynamic_flag_spec='-Bexport'
12577      ;;
12578
12579    sysv4*MP*)
12580      if test -d /usr/nec; then
12581	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12582	hardcode_shlibpath_var=no
12583	runpath_var=LD_RUN_PATH
12584	hardcode_runpath_var=yes
12585	ld_shlibs=yes
12586      fi
12587      ;;
12588
12589    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12590      no_undefined_flag='${wl}-z,text'
12591      archive_cmds_need_lc=no
12592      hardcode_shlibpath_var=no
12593      runpath_var='LD_RUN_PATH'
12594
12595      if test "$GCC" = yes; then
12596	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12597	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12598      else
12599	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12600	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12601      fi
12602      ;;
12603
12604    sysv5* | sco3.2v5* | sco5v6*)
12605      # Note: We can NOT use -z defs as we might desire, because we do not
12606      # link with -lc, and that would cause any symbols used from libc to
12607      # always be unresolved, which means just about no library would
12608      # ever link correctly.  If we're not using GNU ld we use -z text
12609      # though, which does catch some bad symbols but isn't as heavy-handed
12610      # as -z defs.
12611      no_undefined_flag='${wl}-z,text'
12612      allow_undefined_flag='${wl}-z,nodefs'
12613      archive_cmds_need_lc=no
12614      hardcode_shlibpath_var=no
12615      hardcode_libdir_flag_spec='${wl}-R,$libdir'
12616      hardcode_libdir_separator=':'
12617      link_all_deplibs=yes
12618      export_dynamic_flag_spec='${wl}-Bexport'
12619      runpath_var='LD_RUN_PATH'
12620
12621      if test "$GCC" = yes; then
12622	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12623	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12624      else
12625	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12626	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12627      fi
12628      ;;
12629
12630    uts4*)
12631      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12632      hardcode_libdir_flag_spec='-L$libdir'
12633      hardcode_shlibpath_var=no
12634      ;;
12635
12636    *)
12637      ld_shlibs=no
12638      ;;
12639    esac
12640
12641    if test x$host_vendor = xsni; then
12642      case $host in
12643      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12644	export_dynamic_flag_spec='${wl}-Blargedynsym'
12645	;;
12646      esac
12647    fi
12648  fi
12649
12650{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
12651$as_echo "$ld_shlibs" >&6; }
12652test "$ld_shlibs" = no && can_build_shared=no
12653
12654with_gnu_ld=$with_gnu_ld
12655
12656
12657
12658
12659
12660
12661
12662
12663
12664
12665
12666
12667
12668
12669
12670#
12671# Do we need to explicitly link libc?
12672#
12673case "x$archive_cmds_need_lc" in
12674x|xyes)
12675  # Assume -lc should be added
12676  archive_cmds_need_lc=yes
12677
12678  if test "$enable_shared" = yes && test "$GCC" = yes; then
12679    case $archive_cmds in
12680    *'~'*)
12681      # FIXME: we may have to deal with multi-command sequences.
12682      ;;
12683    '$CC '*)
12684      # Test whether the compiler implicitly links with -lc since on some
12685      # systems, -lgcc has to come before -lc. If gcc already passes -lc
12686      # to ld, don't add -lc before -lgcc.
12687      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
12688$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
12689if ${lt_cv_archive_cmds_need_lc+:} false; then :
12690  $as_echo_n "(cached) " >&6
12691else
12692  $RM conftest*
12693	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12694
12695	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12696  (eval $ac_compile) 2>&5
12697  ac_status=$?
12698  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12699  test $ac_status = 0; } 2>conftest.err; then
12700	  soname=conftest
12701	  lib=conftest
12702	  libobjs=conftest.$ac_objext
12703	  deplibs=
12704	  wl=$lt_prog_compiler_wl
12705	  pic_flag=$lt_prog_compiler_pic
12706	  compiler_flags=-v
12707	  linker_flags=-v
12708	  verstring=
12709	  output_objdir=.
12710	  libname=conftest
12711	  lt_save_allow_undefined_flag=$allow_undefined_flag
12712	  allow_undefined_flag=
12713	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
12714  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
12715  ac_status=$?
12716  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12717  test $ac_status = 0; }
12718	  then
12719	    lt_cv_archive_cmds_need_lc=no
12720	  else
12721	    lt_cv_archive_cmds_need_lc=yes
12722	  fi
12723	  allow_undefined_flag=$lt_save_allow_undefined_flag
12724	else
12725	  cat conftest.err 1>&5
12726	fi
12727	$RM conftest*
12728
12729fi
12730{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
12731$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
12732      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
12733      ;;
12734    esac
12735  fi
12736  ;;
12737esac
12738
12739
12740
12741
12742
12743
12744
12745
12746
12747
12748
12749
12750
12751
12752
12753
12754
12755
12756
12757
12758
12759
12760
12761
12762
12763
12764
12765
12766
12767
12768
12769
12770
12771
12772
12773
12774
12775
12776
12777
12778
12779
12780
12781
12782
12783
12784
12785
12786
12787
12788
12789
12790
12791
12792
12793
12794
12795
12796
12797
12798
12799
12800
12801
12802
12803
12804
12805
12806
12807
12808
12809
12810
12811
12812
12813
12814
12815
12816
12817
12818
12819
12820
12821
12822
12823
12824
12825
12826
12827
12828
12829
12830
12831
12832
12833
12834
12835
12836
12837
12838
12839
12840
12841
12842
12843
12844
12845
12846
12847
12848
12849
12850
12851
12852
12853
12854
12855
12856
12857
12858
12859
12860
12861
12862
12863
12864
12865
12866
12867
12868
12869
12870
12871
12872
12873
12874
12875
12876
12877
12878
12879
12880
12881
12882
12883
12884
12885
12886
12887
12888
12889
12890  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
12891$as_echo_n "checking dynamic linker characteristics... " >&6; }
12892
12893if test "$GCC" = yes; then
12894  case $host_os in
12895    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
12896    *) lt_awk_arg="/^libraries:/" ;;
12897  esac
12898  case $host_os in
12899    mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
12900    *) lt_sed_strip_eq="s,=/,/,g" ;;
12901  esac
12902  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
12903  case $lt_search_path_spec in
12904  *\;*)
12905    # if the path contains ";" then we assume it to be the separator
12906    # otherwise default to the standard path separator (i.e. ":") - it is
12907    # assumed that no part of a normal pathname contains ";" but that should
12908    # okay in the real world where ";" in dirpaths is itself problematic.
12909    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
12910    ;;
12911  *)
12912    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
12913    ;;
12914  esac
12915  # Ok, now we have the path, separated by spaces, we can step through it
12916  # and add multilib dir if necessary.
12917  lt_tmp_lt_search_path_spec=
12918  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
12919  for lt_sys_path in $lt_search_path_spec; do
12920    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
12921      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
12922    else
12923      test -d "$lt_sys_path" && \
12924	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
12925    fi
12926  done
12927  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
12928BEGIN {RS=" "; FS="/|\n";} {
12929  lt_foo="";
12930  lt_count=0;
12931  for (lt_i = NF; lt_i > 0; lt_i--) {
12932    if ($lt_i != "" && $lt_i != ".") {
12933      if ($lt_i == "..") {
12934        lt_count++;
12935      } else {
12936        if (lt_count == 0) {
12937          lt_foo="/" $lt_i lt_foo;
12938        } else {
12939          lt_count--;
12940        }
12941      }
12942    }
12943  }
12944  if (lt_foo != "") { lt_freq[lt_foo]++; }
12945  if (lt_freq[lt_foo] == 1) { print lt_foo; }
12946}'`
12947  # AWK program above erroneously prepends '/' to C:/dos/paths
12948  # for these hosts.
12949  case $host_os in
12950    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
12951      $SED 's,/\([A-Za-z]:\),\1,g'` ;;
12952  esac
12953  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
12954else
12955  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12956fi
12957library_names_spec=
12958libname_spec='lib$name'
12959soname_spec=
12960shrext_cmds=".so"
12961postinstall_cmds=
12962postuninstall_cmds=
12963finish_cmds=
12964finish_eval=
12965shlibpath_var=
12966shlibpath_overrides_runpath=unknown
12967version_type=none
12968dynamic_linker="$host_os ld.so"
12969sys_lib_dlsearch_path_spec="/lib /usr/lib"
12970need_lib_prefix=unknown
12971hardcode_into_libs=no
12972
12973# when you set need_version to no, make sure it does not cause -set_version
12974# flags to be left without arguments
12975need_version=unknown
12976
12977case $host_os in
12978aix3*)
12979  version_type=linux # correct to gnu/linux during the next big refactor
12980  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12981  shlibpath_var=LIBPATH
12982
12983  # AIX 3 has no versioning support, so we append a major version to the name.
12984  soname_spec='${libname}${release}${shared_ext}$major'
12985  ;;
12986
12987aix[4-9]*)
12988  version_type=linux # correct to gnu/linux during the next big refactor
12989  need_lib_prefix=no
12990  need_version=no
12991  hardcode_into_libs=yes
12992  if test "$host_cpu" = ia64; then
12993    # AIX 5 supports IA64
12994    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12995    shlibpath_var=LD_LIBRARY_PATH
12996  else
12997    # With GCC up to 2.95.x, collect2 would create an import file
12998    # for dependence libraries.  The import file would start with
12999    # the line `#! .'.  This would cause the generated library to
13000    # depend on `.', always an invalid library.  This was fixed in
13001    # development snapshots of GCC prior to 3.0.
13002    case $host_os in
13003      aix4 | aix4.[01] | aix4.[01].*)
13004      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13005	   echo ' yes '
13006	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
13007	:
13008      else
13009	can_build_shared=no
13010      fi
13011      ;;
13012    esac
13013    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13014    # soname into executable. Probably we can add versioning support to
13015    # collect2, so additional links can be useful in future.
13016    if test "$aix_use_runtimelinking" = yes; then
13017      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13018      # instead of lib<name>.a to let people know that these are not
13019      # typical AIX shared libraries.
13020      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13021    else
13022      # We preserve .a as extension for shared libraries through AIX4.2
13023      # and later when we are not doing run time linking.
13024      library_names_spec='${libname}${release}.a $libname.a'
13025      soname_spec='${libname}${release}${shared_ext}$major'
13026    fi
13027    shlibpath_var=LIBPATH
13028  fi
13029  ;;
13030
13031amigaos*)
13032  case $host_cpu in
13033  powerpc)
13034    # Since July 2007 AmigaOS4 officially supports .so libraries.
13035    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
13036    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13037    ;;
13038  m68k)
13039    library_names_spec='$libname.ixlibrary $libname.a'
13040    # Create ${libname}_ixlibrary.a entries in /sys/libs.
13041    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
13042    ;;
13043  esac
13044  ;;
13045
13046beos*)
13047  library_names_spec='${libname}${shared_ext}'
13048  dynamic_linker="$host_os ld.so"
13049  shlibpath_var=LIBRARY_PATH
13050  ;;
13051
13052bsdi[45]*)
13053  version_type=linux # correct to gnu/linux during the next big refactor
13054  need_version=no
13055  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13056  soname_spec='${libname}${release}${shared_ext}$major'
13057  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13058  shlibpath_var=LD_LIBRARY_PATH
13059  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13060  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13061  # the default ld.so.conf also contains /usr/contrib/lib and
13062  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13063  # libtool to hard-code these into programs
13064  ;;
13065
13066cygwin* | mingw* | pw32* | cegcc*)
13067  version_type=windows
13068  shrext_cmds=".dll"
13069  need_version=no
13070  need_lib_prefix=no
13071
13072  case $GCC,$cc_basename in
13073  yes,*)
13074    # gcc
13075    library_names_spec='$libname.dll.a'
13076    # DLL is installed to $(libdir)/../bin by postinstall_cmds
13077    postinstall_cmds='base_file=`basename \${file}`~
13078      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
13079      dldir=$destdir/`dirname \$dlpath`~
13080      test -d \$dldir || mkdir -p \$dldir~
13081      $install_prog $dir/$dlname \$dldir/$dlname~
13082      chmod a+x \$dldir/$dlname~
13083      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13084        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13085      fi'
13086    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13087      dlpath=$dir/\$dldll~
13088       $RM \$dlpath'
13089    shlibpath_overrides_runpath=yes
13090
13091    case $host_os in
13092    cygwin*)
13093      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13094      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13095
13096      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
13097      ;;
13098    mingw* | cegcc*)
13099      # MinGW DLLs use traditional 'lib' prefix
13100      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13101      ;;
13102    pw32*)
13103      # pw32 DLLs use 'pw' prefix rather than 'lib'
13104      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13105      ;;
13106    esac
13107    dynamic_linker='Win32 ld.exe'
13108    ;;
13109
13110  *,cl*)
13111    # Native MSVC
13112    libname_spec='$name'
13113    soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13114    library_names_spec='${libname}.dll.lib'
13115
13116    case $build_os in
13117    mingw*)
13118      sys_lib_search_path_spec=
13119      lt_save_ifs=$IFS
13120      IFS=';'
13121      for lt_path in $LIB
13122      do
13123        IFS=$lt_save_ifs
13124        # Let DOS variable expansion print the short 8.3 style file name.
13125        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
13126        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
13127      done
13128      IFS=$lt_save_ifs
13129      # Convert to MSYS style.
13130      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
13131      ;;
13132    cygwin*)
13133      # Convert to unix form, then to dos form, then back to unix form
13134      # but this time dos style (no spaces!) so that the unix form looks
13135      # like /cygdrive/c/PROGRA~1:/cygdr...
13136      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
13137      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
13138      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13139      ;;
13140    *)
13141      sys_lib_search_path_spec="$LIB"
13142      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
13143        # It is most probably a Windows format PATH.
13144        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13145      else
13146        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13147      fi
13148      # FIXME: find the short name or the path components, as spaces are
13149      # common. (e.g. "Program Files" -> "PROGRA~1")
13150      ;;
13151    esac
13152
13153    # DLL is installed to $(libdir)/../bin by postinstall_cmds
13154    postinstall_cmds='base_file=`basename \${file}`~
13155      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
13156      dldir=$destdir/`dirname \$dlpath`~
13157      test -d \$dldir || mkdir -p \$dldir~
13158      $install_prog $dir/$dlname \$dldir/$dlname'
13159    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13160      dlpath=$dir/\$dldll~
13161       $RM \$dlpath'
13162    shlibpath_overrides_runpath=yes
13163    dynamic_linker='Win32 link.exe'
13164    ;;
13165
13166  *)
13167    # Assume MSVC wrapper
13168    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13169    dynamic_linker='Win32 ld.exe'
13170    ;;
13171  esac
13172  # FIXME: first we should search . and the directory the executable is in
13173  shlibpath_var=PATH
13174  ;;
13175
13176darwin* | rhapsody*)
13177  dynamic_linker="$host_os dyld"
13178  version_type=darwin
13179  need_lib_prefix=no
13180  need_version=no
13181  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13182  soname_spec='${libname}${release}${major}$shared_ext'
13183  shlibpath_overrides_runpath=yes
13184  shlibpath_var=DYLD_LIBRARY_PATH
13185  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13186
13187  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
13188  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13189  ;;
13190
13191dgux*)
13192  version_type=linux # correct to gnu/linux during the next big refactor
13193  need_lib_prefix=no
13194  need_version=no
13195  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13196  soname_spec='${libname}${release}${shared_ext}$major'
13197  shlibpath_var=LD_LIBRARY_PATH
13198  ;;
13199
13200freebsd* | dragonfly*)
13201  # DragonFly does not have aout.  When/if they implement a new
13202  # versioning mechanism, adjust this.
13203  if test -x /usr/bin/objformat; then
13204    objformat=`/usr/bin/objformat`
13205  else
13206    case $host_os in
13207    freebsd[23].*) objformat=aout ;;
13208    *) objformat=elf ;;
13209    esac
13210  fi
13211  version_type=freebsd-$objformat
13212  case $version_type in
13213    freebsd-elf*)
13214      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13215      need_version=no
13216      need_lib_prefix=no
13217      ;;
13218    freebsd-*)
13219      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13220      need_version=yes
13221      ;;
13222  esac
13223  shlibpath_var=LD_LIBRARY_PATH
13224  case $host_os in
13225  freebsd2.*)
13226    shlibpath_overrides_runpath=yes
13227    ;;
13228  freebsd3.[01]* | freebsdelf3.[01]*)
13229    shlibpath_overrides_runpath=yes
13230    hardcode_into_libs=yes
13231    ;;
13232  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13233  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13234    shlibpath_overrides_runpath=no
13235    hardcode_into_libs=yes
13236    ;;
13237  *) # from 4.6 on, and DragonFly
13238    shlibpath_overrides_runpath=yes
13239    hardcode_into_libs=yes
13240    ;;
13241  esac
13242  ;;
13243
13244gnu*)
13245  version_type=linux # correct to gnu/linux during the next big refactor
13246  need_lib_prefix=no
13247  need_version=no
13248  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13249  soname_spec='${libname}${release}${shared_ext}$major'
13250  shlibpath_var=LD_LIBRARY_PATH
13251  shlibpath_overrides_runpath=no
13252  hardcode_into_libs=yes
13253  ;;
13254
13255haiku*)
13256  version_type=linux # correct to gnu/linux during the next big refactor
13257  need_lib_prefix=no
13258  need_version=no
13259  dynamic_linker="$host_os runtime_loader"
13260  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13261  soname_spec='${libname}${release}${shared_ext}$major'
13262  shlibpath_var=LIBRARY_PATH
13263  shlibpath_overrides_runpath=yes
13264  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
13265  hardcode_into_libs=yes
13266  ;;
13267
13268hpux9* | hpux10* | hpux11*)
13269  # Give a soname corresponding to the major version so that dld.sl refuses to
13270  # link against other versions.
13271  version_type=sunos
13272  need_lib_prefix=no
13273  need_version=no
13274  case $host_cpu in
13275  ia64*)
13276    shrext_cmds='.so'
13277    hardcode_into_libs=yes
13278    dynamic_linker="$host_os dld.so"
13279    shlibpath_var=LD_LIBRARY_PATH
13280    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13281    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13282    soname_spec='${libname}${release}${shared_ext}$major'
13283    if test "X$HPUX_IA64_MODE" = X32; then
13284      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13285    else
13286      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13287    fi
13288    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13289    ;;
13290  hppa*64*)
13291    shrext_cmds='.sl'
13292    hardcode_into_libs=yes
13293    dynamic_linker="$host_os dld.sl"
13294    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13295    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13296    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13297    soname_spec='${libname}${release}${shared_ext}$major'
13298    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13299    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13300    ;;
13301  *)
13302    shrext_cmds='.sl'
13303    dynamic_linker="$host_os dld.sl"
13304    shlibpath_var=SHLIB_PATH
13305    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13306    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13307    soname_spec='${libname}${release}${shared_ext}$major'
13308    ;;
13309  esac
13310  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
13311  postinstall_cmds='chmod 555 $lib'
13312  # or fails outright, so override atomically:
13313  install_override_mode=555
13314  ;;
13315
13316interix[3-9]*)
13317  version_type=linux # correct to gnu/linux during the next big refactor
13318  need_lib_prefix=no
13319  need_version=no
13320  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13321  soname_spec='${libname}${release}${shared_ext}$major'
13322  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13323  shlibpath_var=LD_LIBRARY_PATH
13324  shlibpath_overrides_runpath=no
13325  hardcode_into_libs=yes
13326  ;;
13327
13328irix5* | irix6* | nonstopux*)
13329  case $host_os in
13330    nonstopux*) version_type=nonstopux ;;
13331    *)
13332	if test "$lt_cv_prog_gnu_ld" = yes; then
13333		version_type=linux # correct to gnu/linux during the next big refactor
13334	else
13335		version_type=irix
13336	fi ;;
13337  esac
13338  need_lib_prefix=no
13339  need_version=no
13340  soname_spec='${libname}${release}${shared_ext}$major'
13341  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13342  case $host_os in
13343  irix5* | nonstopux*)
13344    libsuff= shlibsuff=
13345    ;;
13346  *)
13347    case $LD in # libtool.m4 will add one of these switches to LD
13348    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13349      libsuff= shlibsuff= libmagic=32-bit;;
13350    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13351      libsuff=32 shlibsuff=N32 libmagic=N32;;
13352    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13353      libsuff=64 shlibsuff=64 libmagic=64-bit;;
13354    *) libsuff= shlibsuff= libmagic=never-match;;
13355    esac
13356    ;;
13357  esac
13358  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13359  shlibpath_overrides_runpath=no
13360  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13361  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13362  hardcode_into_libs=yes
13363  ;;
13364
13365# No shared lib support for Linux oldld, aout, or coff.
13366linux*oldld* | linux*aout* | linux*coff*)
13367  dynamic_linker=no
13368  ;;
13369
13370# This must be glibc/ELF.
13371linux* | k*bsd*-gnu | kopensolaris*-gnu)
13372  version_type=linux # correct to gnu/linux during the next big refactor
13373  need_lib_prefix=no
13374  need_version=no
13375  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13376  soname_spec='${libname}${release}${shared_ext}$major'
13377  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13378  shlibpath_var=LD_LIBRARY_PATH
13379  shlibpath_overrides_runpath=no
13380
13381  # Some binutils ld are patched to set DT_RUNPATH
13382  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
13383  $as_echo_n "(cached) " >&6
13384else
13385  lt_cv_shlibpath_overrides_runpath=no
13386    save_LDFLAGS=$LDFLAGS
13387    save_libdir=$libdir
13388    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
13389	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
13390    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13391/* end confdefs.h.  */
13392
13393int
13394main ()
13395{
13396
13397  ;
13398  return 0;
13399}
13400_ACEOF
13401if ac_fn_c_try_link "$LINENO"; then :
13402  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
13403  lt_cv_shlibpath_overrides_runpath=yes
13404fi
13405fi
13406rm -f core conftest.err conftest.$ac_objext \
13407    conftest$ac_exeext conftest.$ac_ext
13408    LDFLAGS=$save_LDFLAGS
13409    libdir=$save_libdir
13410
13411fi
13412
13413  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
13414
13415  # This implies no fast_install, which is unacceptable.
13416  # Some rework will be needed to allow for fast_install
13417  # before this can be enabled.
13418  hardcode_into_libs=yes
13419
13420  # Append ld.so.conf contents to the search path
13421  if test -f /etc/ld.so.conf; then
13422    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' ' '`
13423    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13424  fi
13425
13426  # We used to test for /lib/ld.so.1 and disable shared libraries on
13427  # powerpc, because MkLinux only supported shared libraries with the
13428  # GNU dynamic linker.  Since this was broken with cross compilers,
13429  # most powerpc-linux boxes support dynamic linking these days and
13430  # people can always --disable-shared, the test was removed, and we
13431  # assume the GNU/Linux dynamic linker is in use.
13432  dynamic_linker='GNU/Linux ld.so'
13433  ;;
13434
13435netbsd*)
13436  version_type=sunos
13437  need_lib_prefix=no
13438  need_version=no
13439  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13440    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13441    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13442    dynamic_linker='NetBSD (a.out) ld.so'
13443  else
13444    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13445    soname_spec='${libname}${release}${shared_ext}$major'
13446    dynamic_linker='NetBSD ld.elf_so'
13447  fi
13448  shlibpath_var=LD_LIBRARY_PATH
13449  shlibpath_overrides_runpath=yes
13450  hardcode_into_libs=yes
13451  ;;
13452
13453newsos6)
13454  version_type=linux # correct to gnu/linux during the next big refactor
13455  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13456  shlibpath_var=LD_LIBRARY_PATH
13457  shlibpath_overrides_runpath=yes
13458  ;;
13459
13460*nto* | *qnx*)
13461  version_type=qnx
13462  need_lib_prefix=no
13463  need_version=no
13464  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13465  soname_spec='${libname}${release}${shared_ext}$major'
13466  shlibpath_var=LD_LIBRARY_PATH
13467  shlibpath_overrides_runpath=no
13468  hardcode_into_libs=yes
13469  dynamic_linker='ldqnx.so'
13470  ;;
13471
13472openbsd*)
13473  version_type=sunos
13474  sys_lib_dlsearch_path_spec="/usr/lib"
13475  need_lib_prefix=no
13476  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13477  case $host_os in
13478    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
13479    *)				need_version=no  ;;
13480  esac
13481  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13482  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13483  shlibpath_var=LD_LIBRARY_PATH
13484  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13485    case $host_os in
13486      openbsd2.[89] | openbsd2.[89].*)
13487	shlibpath_overrides_runpath=no
13488	;;
13489      *)
13490	shlibpath_overrides_runpath=yes
13491	;;
13492      esac
13493  else
13494    shlibpath_overrides_runpath=yes
13495  fi
13496  ;;
13497
13498os2*)
13499  libname_spec='$name'
13500  shrext_cmds=".dll"
13501  need_lib_prefix=no
13502  library_names_spec='$libname${shared_ext} $libname.a'
13503  dynamic_linker='OS/2 ld.exe'
13504  shlibpath_var=LIBPATH
13505  ;;
13506
13507osf3* | osf4* | osf5*)
13508  version_type=osf
13509  need_lib_prefix=no
13510  need_version=no
13511  soname_spec='${libname}${release}${shared_ext}$major'
13512  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13513  shlibpath_var=LD_LIBRARY_PATH
13514  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13515  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13516  ;;
13517
13518rdos*)
13519  dynamic_linker=no
13520  ;;
13521
13522solaris*)
13523  version_type=linux # correct to gnu/linux during the next big refactor
13524  need_lib_prefix=no
13525  need_version=no
13526  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13527  soname_spec='${libname}${release}${shared_ext}$major'
13528  shlibpath_var=LD_LIBRARY_PATH
13529  shlibpath_overrides_runpath=yes
13530  hardcode_into_libs=yes
13531  # ldd complains unless libraries are executable
13532  postinstall_cmds='chmod +x $lib'
13533  ;;
13534
13535sunos4*)
13536  version_type=sunos
13537  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13538  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13539  shlibpath_var=LD_LIBRARY_PATH
13540  shlibpath_overrides_runpath=yes
13541  if test "$with_gnu_ld" = yes; then
13542    need_lib_prefix=no
13543  fi
13544  need_version=yes
13545  ;;
13546
13547sysv4 | sysv4.3*)
13548  version_type=linux # correct to gnu/linux during the next big refactor
13549  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13550  soname_spec='${libname}${release}${shared_ext}$major'
13551  shlibpath_var=LD_LIBRARY_PATH
13552  case $host_vendor in
13553    sni)
13554      shlibpath_overrides_runpath=no
13555      need_lib_prefix=no
13556      runpath_var=LD_RUN_PATH
13557      ;;
13558    siemens)
13559      need_lib_prefix=no
13560      ;;
13561    motorola)
13562      need_lib_prefix=no
13563      need_version=no
13564      shlibpath_overrides_runpath=no
13565      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13566      ;;
13567  esac
13568  ;;
13569
13570sysv4*MP*)
13571  if test -d /usr/nec ;then
13572    version_type=linux # correct to gnu/linux during the next big refactor
13573    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13574    soname_spec='$libname${shared_ext}.$major'
13575    shlibpath_var=LD_LIBRARY_PATH
13576  fi
13577  ;;
13578
13579sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13580  version_type=freebsd-elf
13581  need_lib_prefix=no
13582  need_version=no
13583  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13584  soname_spec='${libname}${release}${shared_ext}$major'
13585  shlibpath_var=LD_LIBRARY_PATH
13586  shlibpath_overrides_runpath=yes
13587  hardcode_into_libs=yes
13588  if test "$with_gnu_ld" = yes; then
13589    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13590  else
13591    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13592    case $host_os in
13593      sco3.2v5*)
13594        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13595	;;
13596    esac
13597  fi
13598  sys_lib_dlsearch_path_spec='/usr/lib'
13599  ;;
13600
13601tpf*)
13602  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
13603  version_type=linux # correct to gnu/linux during the next big refactor
13604  need_lib_prefix=no
13605  need_version=no
13606  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13607  shlibpath_var=LD_LIBRARY_PATH
13608  shlibpath_overrides_runpath=no
13609  hardcode_into_libs=yes
13610  ;;
13611
13612uts4*)
13613  version_type=linux # correct to gnu/linux during the next big refactor
13614  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13615  soname_spec='${libname}${release}${shared_ext}$major'
13616  shlibpath_var=LD_LIBRARY_PATH
13617  ;;
13618
13619*)
13620  dynamic_linker=no
13621  ;;
13622esac
13623{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
13624$as_echo "$dynamic_linker" >&6; }
13625test "$dynamic_linker" = no && can_build_shared=no
13626
13627variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13628if test "$GCC" = yes; then
13629  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13630fi
13631
13632if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
13633  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
13634fi
13635if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
13636  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
13637fi
13638
13639
13640
13641
13642
13643
13644
13645
13646
13647
13648
13649
13650
13651
13652
13653
13654
13655
13656
13657
13658
13659
13660
13661
13662
13663
13664
13665
13666
13667
13668
13669
13670
13671
13672
13673
13674
13675
13676
13677
13678
13679
13680
13681
13682
13683
13684
13685
13686
13687
13688
13689
13690
13691
13692
13693
13694
13695
13696
13697
13698
13699
13700
13701
13702
13703
13704
13705
13706
13707
13708
13709
13710
13711
13712
13713
13714
13715
13716
13717
13718
13719
13720
13721
13722
13723
13724
13725
13726
13727
13728
13729
13730  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13731$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13732hardcode_action=
13733if test -n "$hardcode_libdir_flag_spec" ||
13734   test -n "$runpath_var" ||
13735   test "X$hardcode_automatic" = "Xyes" ; then
13736
13737  # We can hardcode non-existent directories.
13738  if test "$hardcode_direct" != no &&
13739     # If the only mechanism to avoid hardcoding is shlibpath_var, we
13740     # have to relink, otherwise we might link with an installed library
13741     # when we should be linking with a yet-to-be-installed one
13742     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
13743     test "$hardcode_minus_L" != no; then
13744    # Linking always hardcodes the temporary library directory.
13745    hardcode_action=relink
13746  else
13747    # We can link without hardcoding, and we can hardcode nonexisting dirs.
13748    hardcode_action=immediate
13749  fi
13750else
13751  # We cannot hardcode anything, or else we can only hardcode existing
13752  # directories.
13753  hardcode_action=unsupported
13754fi
13755{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
13756$as_echo "$hardcode_action" >&6; }
13757
13758if test "$hardcode_action" = relink ||
13759   test "$inherit_rpath" = yes; then
13760  # Fast installation is not supported
13761  enable_fast_install=no
13762elif test "$shlibpath_overrides_runpath" = yes ||
13763     test "$enable_shared" = no; then
13764  # Fast installation is not necessary
13765  enable_fast_install=needless
13766fi
13767
13768
13769
13770
13771
13772
13773  if test "x$enable_dlopen" != xyes; then
13774  enable_dlopen=unknown
13775  enable_dlopen_self=unknown
13776  enable_dlopen_self_static=unknown
13777else
13778  lt_cv_dlopen=no
13779  lt_cv_dlopen_libs=
13780
13781  case $host_os in
13782  beos*)
13783    lt_cv_dlopen="load_add_on"
13784    lt_cv_dlopen_libs=
13785    lt_cv_dlopen_self=yes
13786    ;;
13787
13788  mingw* | pw32* | cegcc*)
13789    lt_cv_dlopen="LoadLibrary"
13790    lt_cv_dlopen_libs=
13791    ;;
13792
13793  cygwin*)
13794    lt_cv_dlopen="dlopen"
13795    lt_cv_dlopen_libs=
13796    ;;
13797
13798  darwin*)
13799  # if libdl is installed we need to link against it
13800    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13801$as_echo_n "checking for dlopen in -ldl... " >&6; }
13802if ${ac_cv_lib_dl_dlopen+:} false; then :
13803  $as_echo_n "(cached) " >&6
13804else
13805  ac_check_lib_save_LIBS=$LIBS
13806LIBS="-ldl  $LIBS"
13807cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13808/* end confdefs.h.  */
13809
13810/* Override any GCC internal prototype to avoid an error.
13811   Use char because int might match the return type of a GCC
13812   builtin and then its argument prototype would still apply.  */
13813#ifdef __cplusplus
13814extern "C"
13815#endif
13816char dlopen ();
13817int
13818main ()
13819{
13820return dlopen ();
13821  ;
13822  return 0;
13823}
13824_ACEOF
13825if ac_fn_c_try_link "$LINENO"; then :
13826  ac_cv_lib_dl_dlopen=yes
13827else
13828  ac_cv_lib_dl_dlopen=no
13829fi
13830rm -f core conftest.err conftest.$ac_objext \
13831    conftest$ac_exeext conftest.$ac_ext
13832LIBS=$ac_check_lib_save_LIBS
13833fi
13834{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13835$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13836if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
13837  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13838else
13839
13840    lt_cv_dlopen="dyld"
13841    lt_cv_dlopen_libs=
13842    lt_cv_dlopen_self=yes
13843
13844fi
13845
13846    ;;
13847
13848  *)
13849    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
13850if test "x$ac_cv_func_shl_load" = xyes; then :
13851  lt_cv_dlopen="shl_load"
13852else
13853  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
13854$as_echo_n "checking for shl_load in -ldld... " >&6; }
13855if ${ac_cv_lib_dld_shl_load+:} false; then :
13856  $as_echo_n "(cached) " >&6
13857else
13858  ac_check_lib_save_LIBS=$LIBS
13859LIBS="-ldld  $LIBS"
13860cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13861/* end confdefs.h.  */
13862
13863/* Override any GCC internal prototype to avoid an error.
13864   Use char because int might match the return type of a GCC
13865   builtin and then its argument prototype would still apply.  */
13866#ifdef __cplusplus
13867extern "C"
13868#endif
13869char shl_load ();
13870int
13871main ()
13872{
13873return shl_load ();
13874  ;
13875  return 0;
13876}
13877_ACEOF
13878if ac_fn_c_try_link "$LINENO"; then :
13879  ac_cv_lib_dld_shl_load=yes
13880else
13881  ac_cv_lib_dld_shl_load=no
13882fi
13883rm -f core conftest.err conftest.$ac_objext \
13884    conftest$ac_exeext conftest.$ac_ext
13885LIBS=$ac_check_lib_save_LIBS
13886fi
13887{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
13888$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
13889if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
13890  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
13891else
13892  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
13893if test "x$ac_cv_func_dlopen" = xyes; then :
13894  lt_cv_dlopen="dlopen"
13895else
13896  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13897$as_echo_n "checking for dlopen in -ldl... " >&6; }
13898if ${ac_cv_lib_dl_dlopen+:} false; then :
13899  $as_echo_n "(cached) " >&6
13900else
13901  ac_check_lib_save_LIBS=$LIBS
13902LIBS="-ldl  $LIBS"
13903cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13904/* end confdefs.h.  */
13905
13906/* Override any GCC internal prototype to avoid an error.
13907   Use char because int might match the return type of a GCC
13908   builtin and then its argument prototype would still apply.  */
13909#ifdef __cplusplus
13910extern "C"
13911#endif
13912char dlopen ();
13913int
13914main ()
13915{
13916return dlopen ();
13917  ;
13918  return 0;
13919}
13920_ACEOF
13921if ac_fn_c_try_link "$LINENO"; then :
13922  ac_cv_lib_dl_dlopen=yes
13923else
13924  ac_cv_lib_dl_dlopen=no
13925fi
13926rm -f core conftest.err conftest.$ac_objext \
13927    conftest$ac_exeext conftest.$ac_ext
13928LIBS=$ac_check_lib_save_LIBS
13929fi
13930{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13931$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13932if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
13933  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13934else
13935  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
13936$as_echo_n "checking for dlopen in -lsvld... " >&6; }
13937if ${ac_cv_lib_svld_dlopen+:} false; then :
13938  $as_echo_n "(cached) " >&6
13939else
13940  ac_check_lib_save_LIBS=$LIBS
13941LIBS="-lsvld  $LIBS"
13942cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13943/* end confdefs.h.  */
13944
13945/* Override any GCC internal prototype to avoid an error.
13946   Use char because int might match the return type of a GCC
13947   builtin and then its argument prototype would still apply.  */
13948#ifdef __cplusplus
13949extern "C"
13950#endif
13951char dlopen ();
13952int
13953main ()
13954{
13955return dlopen ();
13956  ;
13957  return 0;
13958}
13959_ACEOF
13960if ac_fn_c_try_link "$LINENO"; then :
13961  ac_cv_lib_svld_dlopen=yes
13962else
13963  ac_cv_lib_svld_dlopen=no
13964fi
13965rm -f core conftest.err conftest.$ac_objext \
13966    conftest$ac_exeext conftest.$ac_ext
13967LIBS=$ac_check_lib_save_LIBS
13968fi
13969{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
13970$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
13971if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
13972  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
13973else
13974  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
13975$as_echo_n "checking for dld_link in -ldld... " >&6; }
13976if ${ac_cv_lib_dld_dld_link+:} false; then :
13977  $as_echo_n "(cached) " >&6
13978else
13979  ac_check_lib_save_LIBS=$LIBS
13980LIBS="-ldld  $LIBS"
13981cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13982/* end confdefs.h.  */
13983
13984/* Override any GCC internal prototype to avoid an error.
13985   Use char because int might match the return type of a GCC
13986   builtin and then its argument prototype would still apply.  */
13987#ifdef __cplusplus
13988extern "C"
13989#endif
13990char dld_link ();
13991int
13992main ()
13993{
13994return dld_link ();
13995  ;
13996  return 0;
13997}
13998_ACEOF
13999if ac_fn_c_try_link "$LINENO"; then :
14000  ac_cv_lib_dld_dld_link=yes
14001else
14002  ac_cv_lib_dld_dld_link=no
14003fi
14004rm -f core conftest.err conftest.$ac_objext \
14005    conftest$ac_exeext conftest.$ac_ext
14006LIBS=$ac_check_lib_save_LIBS
14007fi
14008{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
14009$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
14010if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
14011  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
14012fi
14013
14014
14015fi
14016
14017
14018fi
14019
14020
14021fi
14022
14023
14024fi
14025
14026
14027fi
14028
14029    ;;
14030  esac
14031
14032  if test "x$lt_cv_dlopen" != xno; then
14033    enable_dlopen=yes
14034  else
14035    enable_dlopen=no
14036  fi
14037
14038  case $lt_cv_dlopen in
14039  dlopen)
14040    save_CPPFLAGS="$CPPFLAGS"
14041    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
14042
14043    save_LDFLAGS="$LDFLAGS"
14044    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
14045
14046    save_LIBS="$LIBS"
14047    LIBS="$lt_cv_dlopen_libs $LIBS"
14048
14049    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
14050$as_echo_n "checking whether a program can dlopen itself... " >&6; }
14051if ${lt_cv_dlopen_self+:} false; then :
14052  $as_echo_n "(cached) " >&6
14053else
14054  	  if test "$cross_compiling" = yes; then :
14055  lt_cv_dlopen_self=cross
14056else
14057  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14058  lt_status=$lt_dlunknown
14059  cat > conftest.$ac_ext <<_LT_EOF
14060#line $LINENO "configure"
14061#include "confdefs.h"
14062
14063#if HAVE_DLFCN_H
14064#include <dlfcn.h>
14065#endif
14066
14067#include <stdio.h>
14068
14069#ifdef RTLD_GLOBAL
14070#  define LT_DLGLOBAL		RTLD_GLOBAL
14071#else
14072#  ifdef DL_GLOBAL
14073#    define LT_DLGLOBAL		DL_GLOBAL
14074#  else
14075#    define LT_DLGLOBAL		0
14076#  endif
14077#endif
14078
14079/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14080   find out it does not work in some platform. */
14081#ifndef LT_DLLAZY_OR_NOW
14082#  ifdef RTLD_LAZY
14083#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
14084#  else
14085#    ifdef DL_LAZY
14086#      define LT_DLLAZY_OR_NOW		DL_LAZY
14087#    else
14088#      ifdef RTLD_NOW
14089#        define LT_DLLAZY_OR_NOW	RTLD_NOW
14090#      else
14091#        ifdef DL_NOW
14092#          define LT_DLLAZY_OR_NOW	DL_NOW
14093#        else
14094#          define LT_DLLAZY_OR_NOW	0
14095#        endif
14096#      endif
14097#    endif
14098#  endif
14099#endif
14100
14101/* When -fvisbility=hidden is used, assume the code has been annotated
14102   correspondingly for the symbols needed.  */
14103#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
14104int fnord () __attribute__((visibility("default")));
14105#endif
14106
14107int fnord () { return 42; }
14108int main ()
14109{
14110  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14111  int status = $lt_dlunknown;
14112
14113  if (self)
14114    {
14115      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
14116      else
14117        {
14118	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
14119          else puts (dlerror ());
14120	}
14121      /* dlclose (self); */
14122    }
14123  else
14124    puts (dlerror ());
14125
14126  return status;
14127}
14128_LT_EOF
14129  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14130  (eval $ac_link) 2>&5
14131  ac_status=$?
14132  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14133  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
14134    (./conftest; exit; ) >&5 2>/dev/null
14135    lt_status=$?
14136    case x$lt_status in
14137      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
14138      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
14139      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
14140    esac
14141  else :
14142    # compilation failed
14143    lt_cv_dlopen_self=no
14144  fi
14145fi
14146rm -fr conftest*
14147
14148
14149fi
14150{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
14151$as_echo "$lt_cv_dlopen_self" >&6; }
14152
14153    if test "x$lt_cv_dlopen_self" = xyes; then
14154      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
14155      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
14156$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
14157if ${lt_cv_dlopen_self_static+:} false; then :
14158  $as_echo_n "(cached) " >&6
14159else
14160  	  if test "$cross_compiling" = yes; then :
14161  lt_cv_dlopen_self_static=cross
14162else
14163  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14164  lt_status=$lt_dlunknown
14165  cat > conftest.$ac_ext <<_LT_EOF
14166#line $LINENO "configure"
14167#include "confdefs.h"
14168
14169#if HAVE_DLFCN_H
14170#include <dlfcn.h>
14171#endif
14172
14173#include <stdio.h>
14174
14175#ifdef RTLD_GLOBAL
14176#  define LT_DLGLOBAL		RTLD_GLOBAL
14177#else
14178#  ifdef DL_GLOBAL
14179#    define LT_DLGLOBAL		DL_GLOBAL
14180#  else
14181#    define LT_DLGLOBAL		0
14182#  endif
14183#endif
14184
14185/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14186   find out it does not work in some platform. */
14187#ifndef LT_DLLAZY_OR_NOW
14188#  ifdef RTLD_LAZY
14189#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
14190#  else
14191#    ifdef DL_LAZY
14192#      define LT_DLLAZY_OR_NOW		DL_LAZY
14193#    else
14194#      ifdef RTLD_NOW
14195#        define LT_DLLAZY_OR_NOW	RTLD_NOW
14196#      else
14197#        ifdef DL_NOW
14198#          define LT_DLLAZY_OR_NOW	DL_NOW
14199#        else
14200#          define LT_DLLAZY_OR_NOW	0
14201#        endif
14202#      endif
14203#    endif
14204#  endif
14205#endif
14206
14207/* When -fvisbility=hidden is used, assume the code has been annotated
14208   correspondingly for the symbols needed.  */
14209#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
14210int fnord () __attribute__((visibility("default")));
14211#endif
14212
14213int fnord () { return 42; }
14214int main ()
14215{
14216  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14217  int status = $lt_dlunknown;
14218
14219  if (self)
14220    {
14221      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
14222      else
14223        {
14224	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
14225          else puts (dlerror ());
14226	}
14227      /* dlclose (self); */
14228    }
14229  else
14230    puts (dlerror ());
14231
14232  return status;
14233}
14234_LT_EOF
14235  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14236  (eval $ac_link) 2>&5
14237  ac_status=$?
14238  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14239  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
14240    (./conftest; exit; ) >&5 2>/dev/null
14241    lt_status=$?
14242    case x$lt_status in
14243      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
14244      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
14245      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
14246    esac
14247  else :
14248    # compilation failed
14249    lt_cv_dlopen_self_static=no
14250  fi
14251fi
14252rm -fr conftest*
14253
14254
14255fi
14256{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
14257$as_echo "$lt_cv_dlopen_self_static" >&6; }
14258    fi
14259
14260    CPPFLAGS="$save_CPPFLAGS"
14261    LDFLAGS="$save_LDFLAGS"
14262    LIBS="$save_LIBS"
14263    ;;
14264  esac
14265
14266  case $lt_cv_dlopen_self in
14267  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
14268  *) enable_dlopen_self=unknown ;;
14269  esac
14270
14271  case $lt_cv_dlopen_self_static in
14272  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
14273  *) enable_dlopen_self_static=unknown ;;
14274  esac
14275fi
14276
14277
14278
14279
14280
14281
14282
14283
14284
14285
14286
14287
14288
14289
14290
14291
14292
14293striplib=
14294old_striplib=
14295{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
14296$as_echo_n "checking whether stripping libraries is possible... " >&6; }
14297if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
14298  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14299  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14300  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14301$as_echo "yes" >&6; }
14302else
14303# FIXME - insert some real tests, host_os isn't really good enough
14304  case $host_os in
14305  darwin*)
14306    if test -n "$STRIP" ; then
14307      striplib="$STRIP -x"
14308      old_striplib="$STRIP -S"
14309      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14310$as_echo "yes" >&6; }
14311    else
14312      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14313$as_echo "no" >&6; }
14314    fi
14315    ;;
14316  *)
14317    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14318$as_echo "no" >&6; }
14319    ;;
14320  esac
14321fi
14322
14323
14324
14325
14326
14327
14328
14329
14330
14331
14332
14333
14334  # Report which library types will actually be built
14335  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
14336$as_echo_n "checking if libtool supports shared libraries... " >&6; }
14337  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
14338$as_echo "$can_build_shared" >&6; }
14339
14340  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
14341$as_echo_n "checking whether to build shared libraries... " >&6; }
14342  test "$can_build_shared" = "no" && enable_shared=no
14343
14344  # On AIX, shared libraries and static libraries use the same namespace, and
14345  # are all built from PIC.
14346  case $host_os in
14347  aix3*)
14348    test "$enable_shared" = yes && enable_static=no
14349    if test -n "$RANLIB"; then
14350      archive_cmds="$archive_cmds~\$RANLIB \$lib"
14351      postinstall_cmds='$RANLIB $lib'
14352    fi
14353    ;;
14354
14355  aix[4-9]*)
14356    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14357      test "$enable_shared" = yes && enable_static=no
14358    fi
14359    ;;
14360  esac
14361  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
14362$as_echo "$enable_shared" >&6; }
14363
14364  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
14365$as_echo_n "checking whether to build static libraries... " >&6; }
14366  # Make sure either enable_shared or enable_static is yes.
14367  test "$enable_shared" = yes || enable_static=yes
14368  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
14369$as_echo "$enable_static" >&6; }
14370
14371
14372
14373
14374fi
14375ac_ext=c
14376ac_cpp='$CPP $CPPFLAGS'
14377ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14378ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14379ac_compiler_gnu=$ac_cv_c_compiler_gnu
14380
14381CC="$lt_save_CC"
14382
14383      if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
14384    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
14385    (test "X$CXX" != "Xg++"))) ; then
14386  ac_ext=cpp
14387ac_cpp='$CXXCPP $CPPFLAGS'
14388ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14389ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14390ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14391{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
14392$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
14393if test -z "$CXXCPP"; then
14394  if ${ac_cv_prog_CXXCPP+:} false; then :
14395  $as_echo_n "(cached) " >&6
14396else
14397      # Double quotes because CXXCPP needs to be expanded
14398    for CXXCPP in "$CXX -E" "/lib/cpp"
14399    do
14400      ac_preproc_ok=false
14401for ac_cxx_preproc_warn_flag in '' yes
14402do
14403  # Use a header file that comes with gcc, so configuring glibc
14404  # with a fresh cross-compiler works.
14405  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14406  # <limits.h> exists even on freestanding compilers.
14407  # On the NeXT, cc -E runs the code through the compiler's parser,
14408  # not just through cpp. "Syntax error" is here to catch this case.
14409  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14410/* end confdefs.h.  */
14411#ifdef __STDC__
14412# include <limits.h>
14413#else
14414# include <assert.h>
14415#endif
14416		     Syntax error
14417_ACEOF
14418if ac_fn_cxx_try_cpp "$LINENO"; then :
14419
14420else
14421  # Broken: fails on valid input.
14422continue
14423fi
14424rm -f conftest.err conftest.i conftest.$ac_ext
14425
14426  # OK, works on sane cases.  Now check whether nonexistent headers
14427  # can be detected and how.
14428  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14429/* end confdefs.h.  */
14430#include <ac_nonexistent.h>
14431_ACEOF
14432if ac_fn_cxx_try_cpp "$LINENO"; then :
14433  # Broken: success on invalid input.
14434continue
14435else
14436  # Passes both tests.
14437ac_preproc_ok=:
14438break
14439fi
14440rm -f conftest.err conftest.i conftest.$ac_ext
14441
14442done
14443# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
14444rm -f conftest.i conftest.err conftest.$ac_ext
14445if $ac_preproc_ok; then :
14446  break
14447fi
14448
14449    done
14450    ac_cv_prog_CXXCPP=$CXXCPP
14451
14452fi
14453  CXXCPP=$ac_cv_prog_CXXCPP
14454else
14455  ac_cv_prog_CXXCPP=$CXXCPP
14456fi
14457{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
14458$as_echo "$CXXCPP" >&6; }
14459ac_preproc_ok=false
14460for ac_cxx_preproc_warn_flag in '' yes
14461do
14462  # Use a header file that comes with gcc, so configuring glibc
14463  # with a fresh cross-compiler works.
14464  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14465  # <limits.h> exists even on freestanding compilers.
14466  # On the NeXT, cc -E runs the code through the compiler's parser,
14467  # not just through cpp. "Syntax error" is here to catch this case.
14468  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14469/* end confdefs.h.  */
14470#ifdef __STDC__
14471# include <limits.h>
14472#else
14473# include <assert.h>
14474#endif
14475		     Syntax error
14476_ACEOF
14477if ac_fn_cxx_try_cpp "$LINENO"; then :
14478
14479else
14480  # Broken: fails on valid input.
14481continue
14482fi
14483rm -f conftest.err conftest.i conftest.$ac_ext
14484
14485  # OK, works on sane cases.  Now check whether nonexistent headers
14486  # can be detected and how.
14487  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14488/* end confdefs.h.  */
14489#include <ac_nonexistent.h>
14490_ACEOF
14491if ac_fn_cxx_try_cpp "$LINENO"; then :
14492  # Broken: success on invalid input.
14493continue
14494else
14495  # Passes both tests.
14496ac_preproc_ok=:
14497break
14498fi
14499rm -f conftest.err conftest.i conftest.$ac_ext
14500
14501done
14502# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
14503rm -f conftest.i conftest.err conftest.$ac_ext
14504if $ac_preproc_ok; then :
14505
14506else
14507  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14508$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14509as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
14510See \`config.log' for more details" "$LINENO" 5; }
14511fi
14512
14513ac_ext=c
14514ac_cpp='$CPP $CPPFLAGS'
14515ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14516ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14517ac_compiler_gnu=$ac_cv_c_compiler_gnu
14518
14519else
14520  _lt_caught_CXX_error=yes
14521fi
14522
14523ac_ext=cpp
14524ac_cpp='$CXXCPP $CPPFLAGS'
14525ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14526ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14527ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14528
14529archive_cmds_need_lc_CXX=no
14530allow_undefined_flag_CXX=
14531always_export_symbols_CXX=no
14532archive_expsym_cmds_CXX=
14533compiler_needs_object_CXX=no
14534export_dynamic_flag_spec_CXX=
14535hardcode_direct_CXX=no
14536hardcode_direct_absolute_CXX=no
14537hardcode_libdir_flag_spec_CXX=
14538hardcode_libdir_separator_CXX=
14539hardcode_minus_L_CXX=no
14540hardcode_shlibpath_var_CXX=unsupported
14541hardcode_automatic_CXX=no
14542inherit_rpath_CXX=no
14543module_cmds_CXX=
14544module_expsym_cmds_CXX=
14545link_all_deplibs_CXX=unknown
14546old_archive_cmds_CXX=$old_archive_cmds
14547reload_flag_CXX=$reload_flag
14548reload_cmds_CXX=$reload_cmds
14549no_undefined_flag_CXX=
14550whole_archive_flag_spec_CXX=
14551enable_shared_with_static_runtimes_CXX=no
14552
14553# Source file extension for C++ test sources.
14554ac_ext=cpp
14555
14556# Object file extension for compiled C++ test sources.
14557objext=o
14558objext_CXX=$objext
14559
14560# No sense in running all these tests if we already determined that
14561# the CXX compiler isn't working.  Some variables (like enable_shared)
14562# are currently assumed to apply to all compilers on this platform,
14563# and will be corrupted by setting them based on a non-working compiler.
14564if test "$_lt_caught_CXX_error" != yes; then
14565  # Code to be used in simple compile tests
14566  lt_simple_compile_test_code="int some_variable = 0;"
14567
14568  # Code to be used in simple link tests
14569  lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
14570
14571  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14572
14573
14574
14575
14576
14577
14578# If no C compiler was specified, use CC.
14579LTCC=${LTCC-"$CC"}
14580
14581# If no C compiler flags were specified, use CFLAGS.
14582LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14583
14584# Allow CC to be a program name with arguments.
14585compiler=$CC
14586
14587
14588  # save warnings/boilerplate of simple test code
14589  ac_outfile=conftest.$ac_objext
14590echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14591eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14592_lt_compiler_boilerplate=`cat conftest.err`
14593$RM conftest*
14594
14595  ac_outfile=conftest.$ac_objext
14596echo "$lt_simple_link_test_code" >conftest.$ac_ext
14597eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14598_lt_linker_boilerplate=`cat conftest.err`
14599$RM -r conftest*
14600
14601
14602  # Allow CC to be a program name with arguments.
14603  lt_save_CC=$CC
14604  lt_save_CFLAGS=$CFLAGS
14605  lt_save_LD=$LD
14606  lt_save_GCC=$GCC
14607  GCC=$GXX
14608  lt_save_with_gnu_ld=$with_gnu_ld
14609  lt_save_path_LD=$lt_cv_path_LD
14610  if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
14611    lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
14612  else
14613    $as_unset lt_cv_prog_gnu_ld
14614  fi
14615  if test -n "${lt_cv_path_LDCXX+set}"; then
14616    lt_cv_path_LD=$lt_cv_path_LDCXX
14617  else
14618    $as_unset lt_cv_path_LD
14619  fi
14620  test -z "${LDCXX+set}" || LD=$LDCXX
14621  CC=${CXX-"c++"}
14622  CFLAGS=$CXXFLAGS
14623  compiler=$CC
14624  compiler_CXX=$CC
14625  for cc_temp in $compiler""; do
14626  case $cc_temp in
14627    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14628    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14629    \-*) ;;
14630    *) break;;
14631  esac
14632done
14633cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
14634
14635
14636  if test -n "$compiler"; then
14637    # We don't want -fno-exception when compiling C++ code, so set the
14638    # no_builtin_flag separately
14639    if test "$GXX" = yes; then
14640      lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
14641    else
14642      lt_prog_compiler_no_builtin_flag_CXX=
14643    fi
14644
14645    if test "$GXX" = yes; then
14646      # Set up default GNU C++ configuration
14647
14648
14649
14650# Check whether --with-gnu-ld was given.
14651if test "${with_gnu_ld+set}" = set; then :
14652  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
14653else
14654  with_gnu_ld=no
14655fi
14656
14657ac_prog=ld
14658if test "$GCC" = yes; then
14659  # Check if gcc -print-prog-name=ld gives a path.
14660  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
14661$as_echo_n "checking for ld used by $CC... " >&6; }
14662  case $host in
14663  *-*-mingw*)
14664    # gcc leaves a trailing carriage return which upsets mingw
14665    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
14666  *)
14667    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
14668  esac
14669  case $ac_prog in
14670    # Accept absolute paths.
14671    [\\/]* | ?:[\\/]*)
14672      re_direlt='/[^/][^/]*/\.\./'
14673      # Canonicalize the pathname of ld
14674      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
14675      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
14676	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
14677      done
14678      test -z "$LD" && LD="$ac_prog"
14679      ;;
14680  "")
14681    # If it fails, then pretend we aren't using GCC.
14682    ac_prog=ld
14683    ;;
14684  *)
14685    # If it is relative, then search for the first ld in PATH.
14686    with_gnu_ld=unknown
14687    ;;
14688  esac
14689elif test "$with_gnu_ld" = yes; then
14690  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
14691$as_echo_n "checking for GNU ld... " >&6; }
14692else
14693  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
14694$as_echo_n "checking for non-GNU ld... " >&6; }
14695fi
14696if ${lt_cv_path_LD+:} false; then :
14697  $as_echo_n "(cached) " >&6
14698else
14699  if test -z "$LD"; then
14700  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14701  for ac_dir in $PATH; do
14702    IFS="$lt_save_ifs"
14703    test -z "$ac_dir" && ac_dir=.
14704    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
14705      lt_cv_path_LD="$ac_dir/$ac_prog"
14706      # Check to see if the program is GNU ld.  I'd rather use --version,
14707      # but apparently some variants of GNU ld only accept -v.
14708      # Break only if it was the GNU/non-GNU ld that we prefer.
14709      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
14710      *GNU* | *'with BFD'*)
14711	test "$with_gnu_ld" != no && break
14712	;;
14713      *)
14714	test "$with_gnu_ld" != yes && break
14715	;;
14716      esac
14717    fi
14718  done
14719  IFS="$lt_save_ifs"
14720else
14721  lt_cv_path_LD="$LD" # Let the user override the test with a path.
14722fi
14723fi
14724
14725LD="$lt_cv_path_LD"
14726if test -n "$LD"; then
14727  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
14728$as_echo "$LD" >&6; }
14729else
14730  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14731$as_echo "no" >&6; }
14732fi
14733test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
14734{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
14735$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
14736if ${lt_cv_prog_gnu_ld+:} false; then :
14737  $as_echo_n "(cached) " >&6
14738else
14739  # I'd rather use --version here, but apparently some GNU lds only accept -v.
14740case `$LD -v 2>&1 </dev/null` in
14741*GNU* | *'with BFD'*)
14742  lt_cv_prog_gnu_ld=yes
14743  ;;
14744*)
14745  lt_cv_prog_gnu_ld=no
14746  ;;
14747esac
14748fi
14749{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
14750$as_echo "$lt_cv_prog_gnu_ld" >&6; }
14751with_gnu_ld=$lt_cv_prog_gnu_ld
14752
14753
14754
14755
14756
14757
14758
14759      # Check if GNU C++ uses GNU ld as the underlying linker, since the
14760      # archiving commands below assume that GNU ld is being used.
14761      if test "$with_gnu_ld" = yes; then
14762        archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14763        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'
14764
14765        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14766        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14767
14768        # If archive_cmds runs LD, not CC, wlarc should be empty
14769        # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
14770        #     investigate it a little bit more. (MM)
14771        wlarc='${wl}'
14772
14773        # ancient GNU ld didn't support --whole-archive et. al.
14774        if eval "`$CC -print-prog-name=ld` --help 2>&1" |
14775	  $GREP 'no-whole-archive' > /dev/null; then
14776          whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14777        else
14778          whole_archive_flag_spec_CXX=
14779        fi
14780      else
14781        with_gnu_ld=no
14782        wlarc=
14783
14784        # A generic and very simple default shared library creation
14785        # command for GNU C++ for the case where it uses the native
14786        # linker, instead of GNU ld.  If possible, this setting should
14787        # overridden to take advantage of the native linker features on
14788        # the platform it is being used on.
14789        archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14790      fi
14791
14792      # Commands to make compiler produce verbose output that lists
14793      # what "hidden" libraries, object files and flags are used when
14794      # linking a shared library.
14795      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14796
14797    else
14798      GXX=no
14799      with_gnu_ld=no
14800      wlarc=
14801    fi
14802
14803    # PORTME: fill in a description of your system's C++ link characteristics
14804    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14805$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14806    ld_shlibs_CXX=yes
14807    case $host_os in
14808      aix3*)
14809        # FIXME: insert proper C++ library support
14810        ld_shlibs_CXX=no
14811        ;;
14812      aix[4-9]*)
14813        if test "$host_cpu" = ia64; then
14814          # On IA64, the linker does run time linking by default, so we don't
14815          # have to do anything special.
14816          aix_use_runtimelinking=no
14817          exp_sym_flag='-Bexport'
14818          no_entry_flag=""
14819        else
14820          aix_use_runtimelinking=no
14821
14822          # Test if we are trying to use run time linking or normal
14823          # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14824          # need to do runtime linking.
14825          case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
14826	    for ld_flag in $LDFLAGS; do
14827	      case $ld_flag in
14828	      *-brtl*)
14829	        aix_use_runtimelinking=yes
14830	        break
14831	        ;;
14832	      esac
14833	    done
14834	    ;;
14835          esac
14836
14837          exp_sym_flag='-bexport'
14838          no_entry_flag='-bnoentry'
14839        fi
14840
14841        # When large executables or shared objects are built, AIX ld can
14842        # have problems creating the table of contents.  If linking a library
14843        # or program results in "error TOC overflow" add -mminimal-toc to
14844        # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
14845        # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14846
14847        archive_cmds_CXX=''
14848        hardcode_direct_CXX=yes
14849        hardcode_direct_absolute_CXX=yes
14850        hardcode_libdir_separator_CXX=':'
14851        link_all_deplibs_CXX=yes
14852        file_list_spec_CXX='${wl}-f,'
14853
14854        if test "$GXX" = yes; then
14855          case $host_os in aix4.[012]|aix4.[012].*)
14856          # We only want to do this on AIX 4.2 and lower, the check
14857          # below for broken collect2 doesn't work under 4.3+
14858	  collect2name=`${CC} -print-prog-name=collect2`
14859	  if test -f "$collect2name" &&
14860	     strings "$collect2name" | $GREP resolve_lib_name >/dev/null
14861	  then
14862	    # We have reworked collect2
14863	    :
14864	  else
14865	    # We have old collect2
14866	    hardcode_direct_CXX=unsupported
14867	    # It fails to find uninstalled libraries when the uninstalled
14868	    # path is not listed in the libpath.  Setting hardcode_minus_L
14869	    # to unsupported forces relinking
14870	    hardcode_minus_L_CXX=yes
14871	    hardcode_libdir_flag_spec_CXX='-L$libdir'
14872	    hardcode_libdir_separator_CXX=
14873	  fi
14874          esac
14875          shared_flag='-shared'
14876	  if test "$aix_use_runtimelinking" = yes; then
14877	    shared_flag="$shared_flag "'${wl}-G'
14878	  fi
14879        else
14880          # not using gcc
14881          if test "$host_cpu" = ia64; then
14882	  # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14883	  # chokes on -Wl,-G. The following line is correct:
14884	  shared_flag='-G'
14885          else
14886	    if test "$aix_use_runtimelinking" = yes; then
14887	      shared_flag='${wl}-G'
14888	    else
14889	      shared_flag='${wl}-bM:SRE'
14890	    fi
14891          fi
14892        fi
14893
14894        export_dynamic_flag_spec_CXX='${wl}-bexpall'
14895        # It seems that -bexpall does not export symbols beginning with
14896        # underscore (_), so it is better to generate a list of symbols to
14897	# export.
14898        always_export_symbols_CXX=yes
14899        if test "$aix_use_runtimelinking" = yes; then
14900          # Warning - without using the other runtime loading flags (-brtl),
14901          # -berok will link without error, but may produce a broken library.
14902          allow_undefined_flag_CXX='-berok'
14903          # Determine the default libpath from the value encoded in an empty
14904          # executable.
14905          if test "${lt_cv_aix_libpath+set}" = set; then
14906  aix_libpath=$lt_cv_aix_libpath
14907else
14908  if ${lt_cv_aix_libpath__CXX+:} false; then :
14909  $as_echo_n "(cached) " >&6
14910else
14911  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14912/* end confdefs.h.  */
14913
14914int
14915main ()
14916{
14917
14918  ;
14919  return 0;
14920}
14921_ACEOF
14922if ac_fn_cxx_try_link "$LINENO"; then :
14923
14924  lt_aix_libpath_sed='
14925      /Import File Strings/,/^$/ {
14926	  /^0/ {
14927	      s/^0  *\([^ ]*\) *$/\1/
14928	      p
14929	  }
14930      }'
14931  lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14932  # Check for a 64-bit object if we didn't find anything.
14933  if test -z "$lt_cv_aix_libpath__CXX"; then
14934    lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14935  fi
14936fi
14937rm -f core conftest.err conftest.$ac_objext \
14938    conftest$ac_exeext conftest.$ac_ext
14939  if test -z "$lt_cv_aix_libpath__CXX"; then
14940    lt_cv_aix_libpath__CXX="/usr/lib:/lib"
14941  fi
14942
14943fi
14944
14945  aix_libpath=$lt_cv_aix_libpath__CXX
14946fi
14947
14948          hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
14949
14950          archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
14951        else
14952          if test "$host_cpu" = ia64; then
14953	    hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
14954	    allow_undefined_flag_CXX="-z nodefs"
14955	    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"
14956          else
14957	    # Determine the default libpath from the value encoded in an
14958	    # empty executable.
14959	    if test "${lt_cv_aix_libpath+set}" = set; then
14960  aix_libpath=$lt_cv_aix_libpath
14961else
14962  if ${lt_cv_aix_libpath__CXX+:} false; then :
14963  $as_echo_n "(cached) " >&6
14964else
14965  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14966/* end confdefs.h.  */
14967
14968int
14969main ()
14970{
14971
14972  ;
14973  return 0;
14974}
14975_ACEOF
14976if ac_fn_cxx_try_link "$LINENO"; then :
14977
14978  lt_aix_libpath_sed='
14979      /Import File Strings/,/^$/ {
14980	  /^0/ {
14981	      s/^0  *\([^ ]*\) *$/\1/
14982	      p
14983	  }
14984      }'
14985  lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14986  # Check for a 64-bit object if we didn't find anything.
14987  if test -z "$lt_cv_aix_libpath__CXX"; then
14988    lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14989  fi
14990fi
14991rm -f core conftest.err conftest.$ac_objext \
14992    conftest$ac_exeext conftest.$ac_ext
14993  if test -z "$lt_cv_aix_libpath__CXX"; then
14994    lt_cv_aix_libpath__CXX="/usr/lib:/lib"
14995  fi
14996
14997fi
14998
14999  aix_libpath=$lt_cv_aix_libpath__CXX
15000fi
15001
15002	    hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
15003	    # Warning - without using the other run time loading flags,
15004	    # -berok will link without error, but may produce a broken library.
15005	    no_undefined_flag_CXX=' ${wl}-bernotok'
15006	    allow_undefined_flag_CXX=' ${wl}-berok'
15007	    if test "$with_gnu_ld" = yes; then
15008	      # We only use this code for GNU lds that support --whole-archive.
15009	      whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
15010	    else
15011	      # Exported symbols can be pulled into shared objects from archives
15012	      whole_archive_flag_spec_CXX='$convenience'
15013	    fi
15014	    archive_cmds_need_lc_CXX=yes
15015	    # This is similar to how AIX traditionally builds its shared
15016	    # libraries.
15017	    archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
15018          fi
15019        fi
15020        ;;
15021
15022      beos*)
15023	if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15024	  allow_undefined_flag_CXX=unsupported
15025	  # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15026	  # support --undefined.  This deserves some investigation.  FIXME
15027	  archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15028	else
15029	  ld_shlibs_CXX=no
15030	fi
15031	;;
15032
15033      chorus*)
15034        case $cc_basename in
15035          *)
15036	  # FIXME: insert proper C++ library support
15037	  ld_shlibs_CXX=no
15038	  ;;
15039        esac
15040        ;;
15041
15042      cygwin* | mingw* | pw32* | cegcc*)
15043	case $GXX,$cc_basename in
15044	,cl* | no,cl*)
15045	  # Native MSVC
15046	  # hardcode_libdir_flag_spec is actually meaningless, as there is
15047	  # no search path for DLLs.
15048	  hardcode_libdir_flag_spec_CXX=' '
15049	  allow_undefined_flag_CXX=unsupported
15050	  always_export_symbols_CXX=yes
15051	  file_list_spec_CXX='@'
15052	  # Tell ltmain to make .lib files, not .a files.
15053	  libext=lib
15054	  # Tell ltmain to make .dll files, not .so files.
15055	  shrext_cmds=".dll"
15056	  # FIXME: Setting linknames here is a bad hack.
15057	  archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
15058	  archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15059	      $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
15060	    else
15061	      $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
15062	    fi~
15063	    $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
15064	    linknames='
15065	  # The linker will not automatically build a static lib if we build a DLL.
15066	  # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
15067	  enable_shared_with_static_runtimes_CXX=yes
15068	  # Don't use ranlib
15069	  old_postinstall_cmds_CXX='chmod 644 $oldlib'
15070	  postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
15071	    lt_tool_outputfile="@TOOL_OUTPUT@"~
15072	    case $lt_outputfile in
15073	      *.exe|*.EXE) ;;
15074	      *)
15075		lt_outputfile="$lt_outputfile.exe"
15076		lt_tool_outputfile="$lt_tool_outputfile.exe"
15077		;;
15078	    esac~
15079	    func_to_tool_file "$lt_outputfile"~
15080	    if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
15081	      $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
15082	      $RM "$lt_outputfile.manifest";
15083	    fi'
15084	  ;;
15085	*)
15086	  # g++
15087	  # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
15088	  # as there is no search path for DLLs.
15089	  hardcode_libdir_flag_spec_CXX='-L$libdir'
15090	  export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
15091	  allow_undefined_flag_CXX=unsupported
15092	  always_export_symbols_CXX=no
15093	  enable_shared_with_static_runtimes_CXX=yes
15094
15095	  if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
15096	    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'
15097	    # If the export-symbols file already is a .def file (1st line
15098	    # is EXPORTS), use it as is; otherwise, prepend...
15099	    archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15100	      cp $export_symbols $output_objdir/$soname.def;
15101	    else
15102	      echo EXPORTS > $output_objdir/$soname.def;
15103	      cat $export_symbols >> $output_objdir/$soname.def;
15104	    fi~
15105	    $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'
15106	  else
15107	    ld_shlibs_CXX=no
15108	  fi
15109	  ;;
15110	esac
15111	;;
15112      darwin* | rhapsody*)
15113
15114
15115  archive_cmds_need_lc_CXX=no
15116  hardcode_direct_CXX=no
15117  hardcode_automatic_CXX=yes
15118  hardcode_shlibpath_var_CXX=unsupported
15119  if test "$lt_cv_ld_force_load" = "yes"; then
15120    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\"`'
15121
15122  else
15123    whole_archive_flag_spec_CXX=''
15124  fi
15125  link_all_deplibs_CXX=yes
15126  allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
15127  case $cc_basename in
15128     ifort*) _lt_dar_can_shared=yes ;;
15129     *) _lt_dar_can_shared=$GCC ;;
15130  esac
15131  if test "$_lt_dar_can_shared" = "yes"; then
15132    output_verbose_link_cmd=func_echo_all
15133    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}"
15134    module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15135    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}"
15136    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}"
15137       if test "$lt_cv_apple_cc_single_mod" != "yes"; then
15138      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}"
15139      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}"
15140    fi
15141
15142  else
15143  ld_shlibs_CXX=no
15144  fi
15145
15146	;;
15147
15148      dgux*)
15149        case $cc_basename in
15150          ec++*)
15151	    # FIXME: insert proper C++ library support
15152	    ld_shlibs_CXX=no
15153	    ;;
15154          ghcx*)
15155	    # Green Hills C++ Compiler
15156	    # FIXME: insert proper C++ library support
15157	    ld_shlibs_CXX=no
15158	    ;;
15159          *)
15160	    # FIXME: insert proper C++ library support
15161	    ld_shlibs_CXX=no
15162	    ;;
15163        esac
15164        ;;
15165
15166      freebsd2.*)
15167        # C++ shared libraries reported to be fairly broken before
15168	# switch to ELF
15169        ld_shlibs_CXX=no
15170        ;;
15171
15172      freebsd-elf*)
15173        archive_cmds_need_lc_CXX=no
15174        ;;
15175
15176      freebsd* | dragonfly*)
15177        # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
15178        # conventions
15179        ld_shlibs_CXX=yes
15180        ;;
15181
15182      gnu*)
15183        ;;
15184
15185      haiku*)
15186        archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15187        link_all_deplibs_CXX=yes
15188        ;;
15189
15190      hpux9*)
15191        hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15192        hardcode_libdir_separator_CXX=:
15193        export_dynamic_flag_spec_CXX='${wl}-E'
15194        hardcode_direct_CXX=yes
15195        hardcode_minus_L_CXX=yes # Not in the search PATH,
15196				             # but as the default
15197				             # location of the library.
15198
15199        case $cc_basename in
15200          CC*)
15201            # FIXME: insert proper C++ library support
15202            ld_shlibs_CXX=no
15203            ;;
15204          aCC*)
15205            archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
15206            # Commands to make compiler produce verbose output that lists
15207            # what "hidden" libraries, object files and flags are used when
15208            # linking a shared library.
15209            #
15210            # There doesn't appear to be a way to prevent this compiler from
15211            # explicitly linking system object files so we need to strip them
15212            # from the output so that they don't get included in the library
15213            # dependencies.
15214            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"'
15215            ;;
15216          *)
15217            if test "$GXX" = yes; then
15218              archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
15219            else
15220              # FIXME: insert proper C++ library support
15221              ld_shlibs_CXX=no
15222            fi
15223            ;;
15224        esac
15225        ;;
15226
15227      hpux10*|hpux11*)
15228        if test $with_gnu_ld = no; then
15229	  hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15230	  hardcode_libdir_separator_CXX=:
15231
15232          case $host_cpu in
15233            hppa*64*|ia64*)
15234              ;;
15235            *)
15236	      export_dynamic_flag_spec_CXX='${wl}-E'
15237              ;;
15238          esac
15239        fi
15240        case $host_cpu in
15241          hppa*64*|ia64*)
15242            hardcode_direct_CXX=no
15243            hardcode_shlibpath_var_CXX=no
15244            ;;
15245          *)
15246            hardcode_direct_CXX=yes
15247            hardcode_direct_absolute_CXX=yes
15248            hardcode_minus_L_CXX=yes # Not in the search PATH,
15249					         # but as the default
15250					         # location of the library.
15251            ;;
15252        esac
15253
15254        case $cc_basename in
15255          CC*)
15256	    # FIXME: insert proper C++ library support
15257	    ld_shlibs_CXX=no
15258	    ;;
15259          aCC*)
15260	    case $host_cpu in
15261	      hppa*64*)
15262	        archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15263	        ;;
15264	      ia64*)
15265	        archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15266	        ;;
15267	      *)
15268	        archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15269	        ;;
15270	    esac
15271	    # Commands to make compiler produce verbose output that lists
15272	    # what "hidden" libraries, object files and flags are used when
15273	    # linking a shared library.
15274	    #
15275	    # There doesn't appear to be a way to prevent this compiler from
15276	    # explicitly linking system object files so we need to strip them
15277	    # from the output so that they don't get included in the library
15278	    # dependencies.
15279	    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"'
15280	    ;;
15281          *)
15282	    if test "$GXX" = yes; then
15283	      if test $with_gnu_ld = no; then
15284	        case $host_cpu in
15285	          hppa*64*)
15286	            archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15287	            ;;
15288	          ia64*)
15289	            archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15290	            ;;
15291	          *)
15292	            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'
15293	            ;;
15294	        esac
15295	      fi
15296	    else
15297	      # FIXME: insert proper C++ library support
15298	      ld_shlibs_CXX=no
15299	    fi
15300	    ;;
15301        esac
15302        ;;
15303
15304      interix[3-9]*)
15305	hardcode_direct_CXX=no
15306	hardcode_shlibpath_var_CXX=no
15307	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15308	export_dynamic_flag_spec_CXX='${wl}-E'
15309	# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15310	# Instead, shared libraries are loaded at an image base (0x10000000 by
15311	# default) and relocated if they conflict, which is a slow very memory
15312	# consuming and fragmenting process.  To avoid this, we pick a random,
15313	# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15314	# time.  Moving up from 0x10000000 also allows more sbrk(2) space.
15315	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'
15316	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'
15317	;;
15318      irix5* | irix6*)
15319        case $cc_basename in
15320          CC*)
15321	    # SGI C++
15322	    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'
15323
15324	    # Archives containing C++ object files must be created using
15325	    # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
15326	    # necessary to make sure instantiated templates are included
15327	    # in the archive.
15328	    old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
15329	    ;;
15330          *)
15331	    if test "$GXX" = yes; then
15332	      if test "$with_gnu_ld" = no; then
15333	        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'
15334	      else
15335	        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'
15336	      fi
15337	    fi
15338	    link_all_deplibs_CXX=yes
15339	    ;;
15340        esac
15341        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15342        hardcode_libdir_separator_CXX=:
15343        inherit_rpath_CXX=yes
15344        ;;
15345
15346      linux* | k*bsd*-gnu | kopensolaris*-gnu)
15347        case $cc_basename in
15348          KCC*)
15349	    # Kuck and Associates, Inc. (KAI) C++ Compiler
15350
15351	    # KCC will only create a shared library if the output file
15352	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
15353	    # to its proper name (with version) after linking.
15354	    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'
15355	    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'
15356	    # Commands to make compiler produce verbose output that lists
15357	    # what "hidden" libraries, object files and flags are used when
15358	    # linking a shared library.
15359	    #
15360	    # There doesn't appear to be a way to prevent this compiler from
15361	    # explicitly linking system object files so we need to strip them
15362	    # from the output so that they don't get included in the library
15363	    # dependencies.
15364	    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"'
15365
15366	    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15367	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15368
15369	    # Archives containing C++ object files must be created using
15370	    # "CC -Bstatic", where "CC" is the KAI C++ compiler.
15371	    old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
15372	    ;;
15373	  icpc* | ecpc* )
15374	    # Intel C++
15375	    with_gnu_ld=yes
15376	    # version 8.0 and above of icpc choke on multiply defined symbols
15377	    # if we add $predep_objects and $postdep_objects, however 7.1 and
15378	    # earlier do not add the objects themselves.
15379	    case `$CC -V 2>&1` in
15380	      *"Version 7."*)
15381	        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15382		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'
15383		;;
15384	      *)  # Version 8.0 or newer
15385	        tmp_idyn=
15386	        case $host_cpu in
15387		  ia64*) tmp_idyn=' -i_dynamic';;
15388		esac
15389	        archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15390		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'
15391		;;
15392	    esac
15393	    archive_cmds_need_lc_CXX=no
15394	    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15395	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15396	    whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
15397	    ;;
15398          pgCC* | pgcpp*)
15399            # Portland Group C++ compiler
15400	    case `$CC -V` in
15401	    *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
15402	      prelink_cmds_CXX='tpldir=Template.dir~
15403		rm -rf $tpldir~
15404		$CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
15405		compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
15406	      old_archive_cmds_CXX='tpldir=Template.dir~
15407		rm -rf $tpldir~
15408		$CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
15409		$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
15410		$RANLIB $oldlib'
15411	      archive_cmds_CXX='tpldir=Template.dir~
15412		rm -rf $tpldir~
15413		$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
15414		$CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
15415	      archive_expsym_cmds_CXX='tpldir=Template.dir~
15416		rm -rf $tpldir~
15417		$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
15418		$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'
15419	      ;;
15420	    *) # Version 6 and above use weak symbols
15421	      archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
15422	      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'
15423	      ;;
15424	    esac
15425
15426	    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
15427	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15428	    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'
15429            ;;
15430	  cxx*)
15431	    # Compaq C++
15432	    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15433	    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'
15434
15435	    runpath_var=LD_RUN_PATH
15436	    hardcode_libdir_flag_spec_CXX='-rpath $libdir'
15437	    hardcode_libdir_separator_CXX=:
15438
15439	    # Commands to make compiler produce verbose output that lists
15440	    # what "hidden" libraries, object files and flags are used when
15441	    # linking a shared library.
15442	    #
15443	    # There doesn't appear to be a way to prevent this compiler from
15444	    # explicitly linking system object files so we need to strip them
15445	    # from the output so that they don't get included in the library
15446	    # dependencies.
15447	    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'
15448	    ;;
15449	  xl* | mpixl* | bgxl*)
15450	    # IBM XL 8.0 on PPC, with GNU ld
15451	    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15452	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15453	    archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15454	    if test "x$supports_anon_versioning" = xyes; then
15455	      archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
15456		cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15457		echo "local: *; };" >> $output_objdir/$libname.ver~
15458		$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15459	    fi
15460	    ;;
15461	  *)
15462	    case `$CC -V 2>&1 | sed 5q` in
15463	    *Sun\ C*)
15464	      # Sun C++ 5.9
15465	      no_undefined_flag_CXX=' -zdefs'
15466	      archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15467	      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'
15468	      hardcode_libdir_flag_spec_CXX='-R$libdir'
15469	      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'
15470	      compiler_needs_object_CXX=yes
15471
15472	      # Not sure whether something based on
15473	      # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
15474	      # would be better.
15475	      output_verbose_link_cmd='func_echo_all'
15476
15477	      # Archives containing C++ object files must be created using
15478	      # "CC -xar", where "CC" is the Sun C++ compiler.  This is
15479	      # necessary to make sure instantiated templates are included
15480	      # in the archive.
15481	      old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
15482	      ;;
15483	    esac
15484	    ;;
15485	esac
15486	;;
15487
15488      lynxos*)
15489        # FIXME: insert proper C++ library support
15490	ld_shlibs_CXX=no
15491	;;
15492
15493      m88k*)
15494        # FIXME: insert proper C++ library support
15495        ld_shlibs_CXX=no
15496	;;
15497
15498      mvs*)
15499        case $cc_basename in
15500          cxx*)
15501	    # FIXME: insert proper C++ library support
15502	    ld_shlibs_CXX=no
15503	    ;;
15504	  *)
15505	    # FIXME: insert proper C++ library support
15506	    ld_shlibs_CXX=no
15507	    ;;
15508	esac
15509	;;
15510
15511      netbsd*)
15512        if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15513	  archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
15514	  wlarc=
15515	  hardcode_libdir_flag_spec_CXX='-R$libdir'
15516	  hardcode_direct_CXX=yes
15517	  hardcode_shlibpath_var_CXX=no
15518	fi
15519	# Workaround some broken pre-1.5 toolchains
15520	output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
15521	;;
15522
15523      *nto* | *qnx*)
15524        ld_shlibs_CXX=yes
15525	;;
15526
15527      openbsd2*)
15528        # C++ shared libraries are fairly broken
15529	ld_shlibs_CXX=no
15530	;;
15531
15532      openbsd*)
15533	if test -f /usr/libexec/ld.so; then
15534	  hardcode_direct_CXX=yes
15535	  hardcode_shlibpath_var_CXX=no
15536	  hardcode_direct_absolute_CXX=yes
15537	  archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15538	  hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15539	  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15540	    archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
15541	    export_dynamic_flag_spec_CXX='${wl}-E'
15542	    whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15543	  fi
15544	  output_verbose_link_cmd=func_echo_all
15545	else
15546	  ld_shlibs_CXX=no
15547	fi
15548	;;
15549
15550      osf3* | osf4* | osf5*)
15551        case $cc_basename in
15552          KCC*)
15553	    # Kuck and Associates, Inc. (KAI) C++ Compiler
15554
15555	    # KCC will only create a shared library if the output file
15556	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
15557	    # to its proper name (with version) after linking.
15558	    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'
15559
15560	    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15561	    hardcode_libdir_separator_CXX=:
15562
15563	    # Archives containing C++ object files must be created using
15564	    # the KAI C++ compiler.
15565	    case $host in
15566	      osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
15567	      *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
15568	    esac
15569	    ;;
15570          RCC*)
15571	    # Rational C++ 2.4.1
15572	    # FIXME: insert proper C++ library support
15573	    ld_shlibs_CXX=no
15574	    ;;
15575          cxx*)
15576	    case $host in
15577	      osf3*)
15578	        allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
15579	        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'
15580	        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15581		;;
15582	      *)
15583	        allow_undefined_flag_CXX=' -expect_unresolved \*'
15584	        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'
15585	        archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
15586	          echo "-hidden">> $lib.exp~
15587	          $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~
15588	          $RM $lib.exp'
15589	        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
15590		;;
15591	    esac
15592
15593	    hardcode_libdir_separator_CXX=:
15594
15595	    # Commands to make compiler produce verbose output that lists
15596	    # what "hidden" libraries, object files and flags are used when
15597	    # linking a shared library.
15598	    #
15599	    # There doesn't appear to be a way to prevent this compiler from
15600	    # explicitly linking system object files so we need to strip them
15601	    # from the output so that they don't get included in the library
15602	    # dependencies.
15603	    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"'
15604	    ;;
15605	  *)
15606	    if test "$GXX" = yes && test "$with_gnu_ld" = no; then
15607	      allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
15608	      case $host in
15609	        osf3*)
15610	          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'
15611		  ;;
15612	        *)
15613	          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'
15614		  ;;
15615	      esac
15616
15617	      hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15618	      hardcode_libdir_separator_CXX=:
15619
15620	      # Commands to make compiler produce verbose output that lists
15621	      # what "hidden" libraries, object files and flags are used when
15622	      # linking a shared library.
15623	      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
15624
15625	    else
15626	      # FIXME: insert proper C++ library support
15627	      ld_shlibs_CXX=no
15628	    fi
15629	    ;;
15630        esac
15631        ;;
15632
15633      psos*)
15634        # FIXME: insert proper C++ library support
15635        ld_shlibs_CXX=no
15636        ;;
15637
15638      sunos4*)
15639        case $cc_basename in
15640          CC*)
15641	    # Sun C++ 4.x
15642	    # FIXME: insert proper C++ library support
15643	    ld_shlibs_CXX=no
15644	    ;;
15645          lcc*)
15646	    # Lucid
15647	    # FIXME: insert proper C++ library support
15648	    ld_shlibs_CXX=no
15649	    ;;
15650          *)
15651	    # FIXME: insert proper C++ library support
15652	    ld_shlibs_CXX=no
15653	    ;;
15654        esac
15655        ;;
15656
15657      solaris*)
15658        case $cc_basename in
15659          CC* | sunCC*)
15660	    # Sun C++ 4.2, 5.x and Centerline C++
15661            archive_cmds_need_lc_CXX=yes
15662	    no_undefined_flag_CXX=' -zdefs'
15663	    archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15664	    archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15665	      $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'
15666
15667	    hardcode_libdir_flag_spec_CXX='-R$libdir'
15668	    hardcode_shlibpath_var_CXX=no
15669	    case $host_os in
15670	      solaris2.[0-5] | solaris2.[0-5].*) ;;
15671	      *)
15672		# The compiler driver will combine and reorder linker options,
15673		# but understands `-z linker_flag'.
15674	        # Supported since Solaris 2.6 (maybe 2.5.1?)
15675		whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
15676	        ;;
15677	    esac
15678	    link_all_deplibs_CXX=yes
15679
15680	    output_verbose_link_cmd='func_echo_all'
15681
15682	    # Archives containing C++ object files must be created using
15683	    # "CC -xar", where "CC" is the Sun C++ compiler.  This is
15684	    # necessary to make sure instantiated templates are included
15685	    # in the archive.
15686	    old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
15687	    ;;
15688          gcx*)
15689	    # Green Hills C++ Compiler
15690	    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
15691
15692	    # The C++ compiler must be used to create the archive.
15693	    old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
15694	    ;;
15695          *)
15696	    # GNU C++ compiler with Solaris linker
15697	    if test "$GXX" = yes && test "$with_gnu_ld" = no; then
15698	      no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
15699	      if $CC --version | $GREP -v '^2\.7' > /dev/null; then
15700	        archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
15701	        archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15702		  $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
15703
15704	        # Commands to make compiler produce verbose output that lists
15705	        # what "hidden" libraries, object files and flags are used when
15706	        # linking a shared library.
15707	        output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
15708	      else
15709	        # g++ 2.7 appears to require `-G' NOT `-shared' on this
15710	        # platform.
15711	        archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
15712	        archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15713		  $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
15714
15715	        # Commands to make compiler produce verbose output that lists
15716	        # what "hidden" libraries, object files and flags are used when
15717	        # linking a shared library.
15718	        output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
15719	      fi
15720
15721	      hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
15722	      case $host_os in
15723		solaris2.[0-5] | solaris2.[0-5].*) ;;
15724		*)
15725		  whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15726		  ;;
15727	      esac
15728	    fi
15729	    ;;
15730        esac
15731        ;;
15732
15733    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15734      no_undefined_flag_CXX='${wl}-z,text'
15735      archive_cmds_need_lc_CXX=no
15736      hardcode_shlibpath_var_CXX=no
15737      runpath_var='LD_RUN_PATH'
15738
15739      case $cc_basename in
15740        CC*)
15741	  archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15742	  archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15743	  ;;
15744	*)
15745	  archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15746	  archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15747	  ;;
15748      esac
15749      ;;
15750
15751      sysv5* | sco3.2v5* | sco5v6*)
15752	# Note: We can NOT use -z defs as we might desire, because we do not
15753	# link with -lc, and that would cause any symbols used from libc to
15754	# always be unresolved, which means just about no library would
15755	# ever link correctly.  If we're not using GNU ld we use -z text
15756	# though, which does catch some bad symbols but isn't as heavy-handed
15757	# as -z defs.
15758	no_undefined_flag_CXX='${wl}-z,text'
15759	allow_undefined_flag_CXX='${wl}-z,nodefs'
15760	archive_cmds_need_lc_CXX=no
15761	hardcode_shlibpath_var_CXX=no
15762	hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
15763	hardcode_libdir_separator_CXX=':'
15764	link_all_deplibs_CXX=yes
15765	export_dynamic_flag_spec_CXX='${wl}-Bexport'
15766	runpath_var='LD_RUN_PATH'
15767
15768	case $cc_basename in
15769          CC*)
15770	    archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15771	    archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15772	    old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
15773	      '"$old_archive_cmds_CXX"
15774	    reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
15775	      '"$reload_cmds_CXX"
15776	    ;;
15777	  *)
15778	    archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15779	    archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15780	    ;;
15781	esac
15782      ;;
15783
15784      tandem*)
15785        case $cc_basename in
15786          NCC*)
15787	    # NonStop-UX NCC 3.20
15788	    # FIXME: insert proper C++ library support
15789	    ld_shlibs_CXX=no
15790	    ;;
15791          *)
15792	    # FIXME: insert proper C++ library support
15793	    ld_shlibs_CXX=no
15794	    ;;
15795        esac
15796        ;;
15797
15798      vxworks*)
15799        # FIXME: insert proper C++ library support
15800        ld_shlibs_CXX=no
15801        ;;
15802
15803      *)
15804        # FIXME: insert proper C++ library support
15805        ld_shlibs_CXX=no
15806        ;;
15807    esac
15808
15809    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15810$as_echo "$ld_shlibs_CXX" >&6; }
15811    test "$ld_shlibs_CXX" = no && can_build_shared=no
15812
15813    GCC_CXX="$GXX"
15814    LD_CXX="$LD"
15815
15816    ## CAVEAT EMPTOR:
15817    ## There is no encapsulation within the following macros, do not change
15818    ## the running order or otherwise move them around unless you know exactly
15819    ## what you are doing...
15820    # Dependencies to place before and after the object being linked:
15821predep_objects_CXX=
15822postdep_objects_CXX=
15823predeps_CXX=
15824postdeps_CXX=
15825compiler_lib_search_path_CXX=
15826
15827cat > conftest.$ac_ext <<_LT_EOF
15828class Foo
15829{
15830public:
15831  Foo (void) { a = 0; }
15832private:
15833  int a;
15834};
15835_LT_EOF
15836
15837
15838_lt_libdeps_save_CFLAGS=$CFLAGS
15839case "$CC $CFLAGS " in #(
15840*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
15841*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
15842*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
15843esac
15844
15845if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15846  (eval $ac_compile) 2>&5
15847  ac_status=$?
15848  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15849  test $ac_status = 0; }; then
15850  # Parse the compiler output and extract the necessary
15851  # objects, libraries and library flags.
15852
15853  # Sentinel used to keep track of whether or not we are before
15854  # the conftest object file.
15855  pre_test_object_deps_done=no
15856
15857  for p in `eval "$output_verbose_link_cmd"`; do
15858    case ${prev}${p} in
15859
15860    -L* | -R* | -l*)
15861       # Some compilers place space between "-{L,R}" and the path.
15862       # Remove the space.
15863       if test $p = "-L" ||
15864          test $p = "-R"; then
15865	 prev=$p
15866	 continue
15867       fi
15868
15869       # Expand the sysroot to ease extracting the directories later.
15870       if test -z "$prev"; then
15871         case $p in
15872         -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
15873         -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
15874         -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
15875         esac
15876       fi
15877       case $p in
15878       =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
15879       esac
15880       if test "$pre_test_object_deps_done" = no; then
15881	 case ${prev} in
15882	 -L | -R)
15883	   # Internal compiler library paths should come after those
15884	   # provided the user.  The postdeps already come after the
15885	   # user supplied libs so there is no need to process them.
15886	   if test -z "$compiler_lib_search_path_CXX"; then
15887	     compiler_lib_search_path_CXX="${prev}${p}"
15888	   else
15889	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
15890	   fi
15891	   ;;
15892	 # The "-l" case would never come before the object being
15893	 # linked, so don't bother handling this case.
15894	 esac
15895       else
15896	 if test -z "$postdeps_CXX"; then
15897	   postdeps_CXX="${prev}${p}"
15898	 else
15899	   postdeps_CXX="${postdeps_CXX} ${prev}${p}"
15900	 fi
15901       fi
15902       prev=
15903       ;;
15904
15905    *.lto.$objext) ;; # Ignore GCC LTO objects
15906    *.$objext)
15907       # This assumes that the test object file only shows up
15908       # once in the compiler output.
15909       if test "$p" = "conftest.$objext"; then
15910	 pre_test_object_deps_done=yes
15911	 continue
15912       fi
15913
15914       if test "$pre_test_object_deps_done" = no; then
15915	 if test -z "$predep_objects_CXX"; then
15916	   predep_objects_CXX="$p"
15917	 else
15918	   predep_objects_CXX="$predep_objects_CXX $p"
15919	 fi
15920       else
15921	 if test -z "$postdep_objects_CXX"; then
15922	   postdep_objects_CXX="$p"
15923	 else
15924	   postdep_objects_CXX="$postdep_objects_CXX $p"
15925	 fi
15926       fi
15927       ;;
15928
15929    *) ;; # Ignore the rest.
15930
15931    esac
15932  done
15933
15934  # Clean up.
15935  rm -f a.out a.exe
15936else
15937  echo "libtool.m4: error: problem compiling CXX test program"
15938fi
15939
15940$RM -f confest.$objext
15941CFLAGS=$_lt_libdeps_save_CFLAGS
15942
15943# PORTME: override above test on systems where it is broken
15944case $host_os in
15945interix[3-9]*)
15946  # Interix 3.5 installs completely hosed .la files for C++, so rather than
15947  # hack all around it, let's just trust "g++" to DTRT.
15948  predep_objects_CXX=
15949  postdep_objects_CXX=
15950  postdeps_CXX=
15951  ;;
15952
15953linux*)
15954  case `$CC -V 2>&1 | sed 5q` in
15955  *Sun\ C*)
15956    # Sun C++ 5.9
15957
15958    # The more standards-conforming stlport4 library is
15959    # incompatible with the Cstd library. Avoid specifying
15960    # it if it's in CXXFLAGS. Ignore libCrun as
15961    # -library=stlport4 depends on it.
15962    case " $CXX $CXXFLAGS " in
15963    *" -library=stlport4 "*)
15964      solaris_use_stlport4=yes
15965      ;;
15966    esac
15967
15968    if test "$solaris_use_stlport4" != yes; then
15969      postdeps_CXX='-library=Cstd -library=Crun'
15970    fi
15971    ;;
15972  esac
15973  ;;
15974
15975solaris*)
15976  case $cc_basename in
15977  CC* | sunCC*)
15978    # The more standards-conforming stlport4 library is
15979    # incompatible with the Cstd library. Avoid specifying
15980    # it if it's in CXXFLAGS. Ignore libCrun as
15981    # -library=stlport4 depends on it.
15982    case " $CXX $CXXFLAGS " in
15983    *" -library=stlport4 "*)
15984      solaris_use_stlport4=yes
15985      ;;
15986    esac
15987
15988    # Adding this requires a known-good setup of shared libraries for
15989    # Sun compiler versions before 5.6, else PIC objects from an old
15990    # archive will be linked into the output, leading to subtle bugs.
15991    if test "$solaris_use_stlport4" != yes; then
15992      postdeps_CXX='-library=Cstd -library=Crun'
15993    fi
15994    ;;
15995  esac
15996  ;;
15997esac
15998
15999
16000case " $postdeps_CXX " in
16001*" -lc "*) archive_cmds_need_lc_CXX=no ;;
16002esac
16003 compiler_lib_search_dirs_CXX=
16004if test -n "${compiler_lib_search_path_CXX}"; then
16005 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
16006fi
16007
16008
16009
16010
16011
16012
16013
16014
16015
16016
16017
16018
16019
16020
16021
16022
16023
16024
16025
16026
16027
16028
16029
16030
16031
16032
16033
16034
16035
16036
16037
16038    lt_prog_compiler_wl_CXX=
16039lt_prog_compiler_pic_CXX=
16040lt_prog_compiler_static_CXX=
16041
16042
16043  # C++ specific cases for pic, static, wl, etc.
16044  if test "$GXX" = yes; then
16045    lt_prog_compiler_wl_CXX='-Wl,'
16046    lt_prog_compiler_static_CXX='-static'
16047
16048    case $host_os in
16049    aix*)
16050      # All AIX code is PIC.
16051      if test "$host_cpu" = ia64; then
16052	# AIX 5 now supports IA64 processor
16053	lt_prog_compiler_static_CXX='-Bstatic'
16054      fi
16055      ;;
16056
16057    amigaos*)
16058      case $host_cpu in
16059      powerpc)
16060            # see comment about AmigaOS4 .so support
16061            lt_prog_compiler_pic_CXX='-fPIC'
16062        ;;
16063      m68k)
16064            # FIXME: we need at least 68020 code to build shared libraries, but
16065            # adding the `-m68020' flag to GCC prevents building anything better,
16066            # like `-m68040'.
16067            lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
16068        ;;
16069      esac
16070      ;;
16071
16072    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16073      # PIC is the default for these OSes.
16074      ;;
16075    mingw* | cygwin* | os2* | pw32* | cegcc*)
16076      # This hack is so that the source file can tell whether it is being
16077      # built for inclusion in a dll (and should export symbols for example).
16078      # Although the cygwin gcc ignores -fPIC, still need this for old-style
16079      # (--disable-auto-import) libraries
16080      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
16081      ;;
16082    darwin* | rhapsody*)
16083      # PIC is the default on this platform
16084      # Common symbols not allowed in MH_DYLIB files
16085      lt_prog_compiler_pic_CXX='-fno-common'
16086      ;;
16087    *djgpp*)
16088      # DJGPP does not support shared libraries at all
16089      lt_prog_compiler_pic_CXX=
16090      ;;
16091    haiku*)
16092      # PIC is the default for Haiku.
16093      # The "-static" flag exists, but is broken.
16094      lt_prog_compiler_static_CXX=
16095      ;;
16096    interix[3-9]*)
16097      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16098      # Instead, we relocate shared libraries at runtime.
16099      ;;
16100    sysv4*MP*)
16101      if test -d /usr/nec; then
16102	lt_prog_compiler_pic_CXX=-Kconform_pic
16103      fi
16104      ;;
16105    hpux*)
16106      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
16107      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
16108      # sets the default TLS model and affects inlining.
16109      case $host_cpu in
16110      hppa*64*)
16111	;;
16112      *)
16113	lt_prog_compiler_pic_CXX='-fPIC'
16114	;;
16115      esac
16116      ;;
16117    *qnx* | *nto*)
16118      # QNX uses GNU C++, but need to define -shared option too, otherwise
16119      # it will coredump.
16120      lt_prog_compiler_pic_CXX='-fPIC -shared'
16121      ;;
16122    *)
16123      lt_prog_compiler_pic_CXX='-fPIC'
16124      ;;
16125    esac
16126  else
16127    case $host_os in
16128      aix[4-9]*)
16129	# All AIX code is PIC.
16130	if test "$host_cpu" = ia64; then
16131	  # AIX 5 now supports IA64 processor
16132	  lt_prog_compiler_static_CXX='-Bstatic'
16133	else
16134	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
16135	fi
16136	;;
16137      chorus*)
16138	case $cc_basename in
16139	cxch68*)
16140	  # Green Hills C++ Compiler
16141	  # _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"
16142	  ;;
16143	esac
16144	;;
16145      mingw* | cygwin* | os2* | pw32* | cegcc*)
16146	# This hack is so that the source file can tell whether it is being
16147	# built for inclusion in a dll (and should export symbols for example).
16148	lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
16149	;;
16150      dgux*)
16151	case $cc_basename in
16152	  ec++*)
16153	    lt_prog_compiler_pic_CXX='-KPIC'
16154	    ;;
16155	  ghcx*)
16156	    # Green Hills C++ Compiler
16157	    lt_prog_compiler_pic_CXX='-pic'
16158	    ;;
16159	  *)
16160	    ;;
16161	esac
16162	;;
16163      freebsd* | dragonfly*)
16164	# FreeBSD uses GNU C++
16165	;;
16166      hpux9* | hpux10* | hpux11*)
16167	case $cc_basename in
16168	  CC*)
16169	    lt_prog_compiler_wl_CXX='-Wl,'
16170	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
16171	    if test "$host_cpu" != ia64; then
16172	      lt_prog_compiler_pic_CXX='+Z'
16173	    fi
16174	    ;;
16175	  aCC*)
16176	    lt_prog_compiler_wl_CXX='-Wl,'
16177	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
16178	    case $host_cpu in
16179	    hppa*64*|ia64*)
16180	      # +Z the default
16181	      ;;
16182	    *)
16183	      lt_prog_compiler_pic_CXX='+Z'
16184	      ;;
16185	    esac
16186	    ;;
16187	  *)
16188	    ;;
16189	esac
16190	;;
16191      interix*)
16192	# This is c89, which is MS Visual C++ (no shared libs)
16193	# Anyone wants to do a port?
16194	;;
16195      irix5* | irix6* | nonstopux*)
16196	case $cc_basename in
16197	  CC*)
16198	    lt_prog_compiler_wl_CXX='-Wl,'
16199	    lt_prog_compiler_static_CXX='-non_shared'
16200	    # CC pic flag -KPIC is the default.
16201	    ;;
16202	  *)
16203	    ;;
16204	esac
16205	;;
16206      linux* | k*bsd*-gnu | kopensolaris*-gnu)
16207	case $cc_basename in
16208	  KCC*)
16209	    # KAI C++ Compiler
16210	    lt_prog_compiler_wl_CXX='--backend -Wl,'
16211	    lt_prog_compiler_pic_CXX='-fPIC'
16212	    ;;
16213	  ecpc* )
16214	    # old Intel C++ for x86_64 which still supported -KPIC.
16215	    lt_prog_compiler_wl_CXX='-Wl,'
16216	    lt_prog_compiler_pic_CXX='-KPIC'
16217	    lt_prog_compiler_static_CXX='-static'
16218	    ;;
16219	  icpc* )
16220	    # Intel C++, used to be incompatible with GCC.
16221	    # ICC 10 doesn't accept -KPIC any more.
16222	    lt_prog_compiler_wl_CXX='-Wl,'
16223	    lt_prog_compiler_pic_CXX='-fPIC'
16224	    lt_prog_compiler_static_CXX='-static'
16225	    ;;
16226	  pgCC* | pgcpp*)
16227	    # Portland Group C++ compiler
16228	    lt_prog_compiler_wl_CXX='-Wl,'
16229	    lt_prog_compiler_pic_CXX='-fpic'
16230	    lt_prog_compiler_static_CXX='-Bstatic'
16231	    ;;
16232	  cxx*)
16233	    # Compaq C++
16234	    # Make sure the PIC flag is empty.  It appears that all Alpha
16235	    # Linux and Compaq Tru64 Unix objects are PIC.
16236	    lt_prog_compiler_pic_CXX=
16237	    lt_prog_compiler_static_CXX='-non_shared'
16238	    ;;
16239	  xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
16240	    # IBM XL 8.0, 9.0 on PPC and BlueGene
16241	    lt_prog_compiler_wl_CXX='-Wl,'
16242	    lt_prog_compiler_pic_CXX='-qpic'
16243	    lt_prog_compiler_static_CXX='-qstaticlink'
16244	    ;;
16245	  *)
16246	    case `$CC -V 2>&1 | sed 5q` in
16247	    *Sun\ C*)
16248	      # Sun C++ 5.9
16249	      lt_prog_compiler_pic_CXX='-KPIC'
16250	      lt_prog_compiler_static_CXX='-Bstatic'
16251	      lt_prog_compiler_wl_CXX='-Qoption ld '
16252	      ;;
16253	    esac
16254	    ;;
16255	esac
16256	;;
16257      lynxos*)
16258	;;
16259      m88k*)
16260	;;
16261      mvs*)
16262	case $cc_basename in
16263	  cxx*)
16264	    lt_prog_compiler_pic_CXX='-W c,exportall'
16265	    ;;
16266	  *)
16267	    ;;
16268	esac
16269	;;
16270      netbsd*)
16271	;;
16272      *qnx* | *nto*)
16273        # QNX uses GNU C++, but need to define -shared option too, otherwise
16274        # it will coredump.
16275        lt_prog_compiler_pic_CXX='-fPIC -shared'
16276        ;;
16277      osf3* | osf4* | osf5*)
16278	case $cc_basename in
16279	  KCC*)
16280	    lt_prog_compiler_wl_CXX='--backend -Wl,'
16281	    ;;
16282	  RCC*)
16283	    # Rational C++ 2.4.1
16284	    lt_prog_compiler_pic_CXX='-pic'
16285	    ;;
16286	  cxx*)
16287	    # Digital/Compaq C++
16288	    lt_prog_compiler_wl_CXX='-Wl,'
16289	    # Make sure the PIC flag is empty.  It appears that all Alpha
16290	    # Linux and Compaq Tru64 Unix objects are PIC.
16291	    lt_prog_compiler_pic_CXX=
16292	    lt_prog_compiler_static_CXX='-non_shared'
16293	    ;;
16294	  *)
16295	    ;;
16296	esac
16297	;;
16298      psos*)
16299	;;
16300      solaris*)
16301	case $cc_basename in
16302	  CC* | sunCC*)
16303	    # Sun C++ 4.2, 5.x and Centerline C++
16304	    lt_prog_compiler_pic_CXX='-KPIC'
16305	    lt_prog_compiler_static_CXX='-Bstatic'
16306	    lt_prog_compiler_wl_CXX='-Qoption ld '
16307	    ;;
16308	  gcx*)
16309	    # Green Hills C++ Compiler
16310	    lt_prog_compiler_pic_CXX='-PIC'
16311	    ;;
16312	  *)
16313	    ;;
16314	esac
16315	;;
16316      sunos4*)
16317	case $cc_basename in
16318	  CC*)
16319	    # Sun C++ 4.x
16320	    lt_prog_compiler_pic_CXX='-pic'
16321	    lt_prog_compiler_static_CXX='-Bstatic'
16322	    ;;
16323	  lcc*)
16324	    # Lucid
16325	    lt_prog_compiler_pic_CXX='-pic'
16326	    ;;
16327	  *)
16328	    ;;
16329	esac
16330	;;
16331      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16332	case $cc_basename in
16333	  CC*)
16334	    lt_prog_compiler_wl_CXX='-Wl,'
16335	    lt_prog_compiler_pic_CXX='-KPIC'
16336	    lt_prog_compiler_static_CXX='-Bstatic'
16337	    ;;
16338	esac
16339	;;
16340      tandem*)
16341	case $cc_basename in
16342	  NCC*)
16343	    # NonStop-UX NCC 3.20
16344	    lt_prog_compiler_pic_CXX='-KPIC'
16345	    ;;
16346	  *)
16347	    ;;
16348	esac
16349	;;
16350      vxworks*)
16351	;;
16352      *)
16353	lt_prog_compiler_can_build_shared_CXX=no
16354	;;
16355    esac
16356  fi
16357
16358case $host_os in
16359  # For platforms which do not support PIC, -DPIC is meaningless:
16360  *djgpp*)
16361    lt_prog_compiler_pic_CXX=
16362    ;;
16363  *)
16364    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
16365    ;;
16366esac
16367
16368{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
16369$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
16370if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
16371  $as_echo_n "(cached) " >&6
16372else
16373  lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
16374fi
16375{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
16376$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
16377lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
16378
16379#
16380# Check to make sure the PIC flag actually works.
16381#
16382if test -n "$lt_prog_compiler_pic_CXX"; then
16383  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
16384$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
16385if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
16386  $as_echo_n "(cached) " >&6
16387else
16388  lt_cv_prog_compiler_pic_works_CXX=no
16389   ac_outfile=conftest.$ac_objext
16390   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16391   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
16392   # Insert the option either (1) after the last *FLAGS variable, or
16393   # (2) before a word containing "conftest.", or (3) at the end.
16394   # Note that $ac_compile itself does not contain backslashes and begins
16395   # with a dollar sign (not a hyphen), so the echo should work correctly.
16396   # The option is referenced via a variable to avoid confusing sed.
16397   lt_compile=`echo "$ac_compile" | $SED \
16398   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16399   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16400   -e 's:$: $lt_compiler_flag:'`
16401   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16402   (eval "$lt_compile" 2>conftest.err)
16403   ac_status=$?
16404   cat conftest.err >&5
16405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16406   if (exit $ac_status) && test -s "$ac_outfile"; then
16407     # The compiler can only warn and ignore the option if not recognized
16408     # So say no if there are warnings other than the usual output.
16409     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
16410     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16411     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16412       lt_cv_prog_compiler_pic_works_CXX=yes
16413     fi
16414   fi
16415   $RM conftest*
16416
16417fi
16418{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
16419$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
16420
16421if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
16422    case $lt_prog_compiler_pic_CXX in
16423     "" | " "*) ;;
16424     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
16425     esac
16426else
16427    lt_prog_compiler_pic_CXX=
16428     lt_prog_compiler_can_build_shared_CXX=no
16429fi
16430
16431fi
16432
16433
16434
16435
16436
16437#
16438# Check to make sure the static flag actually works.
16439#
16440wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
16441{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16442$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
16443if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
16444  $as_echo_n "(cached) " >&6
16445else
16446  lt_cv_prog_compiler_static_works_CXX=no
16447   save_LDFLAGS="$LDFLAGS"
16448   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16449   echo "$lt_simple_link_test_code" > conftest.$ac_ext
16450   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16451     # The linker can only warn and ignore the option if not recognized
16452     # So say no if there are warnings
16453     if test -s conftest.err; then
16454       # Append any errors to the config.log.
16455       cat conftest.err 1>&5
16456       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
16457       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16458       if diff conftest.exp conftest.er2 >/dev/null; then
16459         lt_cv_prog_compiler_static_works_CXX=yes
16460       fi
16461     else
16462       lt_cv_prog_compiler_static_works_CXX=yes
16463     fi
16464   fi
16465   $RM -r conftest*
16466   LDFLAGS="$save_LDFLAGS"
16467
16468fi
16469{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
16470$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
16471
16472if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
16473    :
16474else
16475    lt_prog_compiler_static_CXX=
16476fi
16477
16478
16479
16480
16481    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
16482$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16483if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
16484  $as_echo_n "(cached) " >&6
16485else
16486  lt_cv_prog_compiler_c_o_CXX=no
16487   $RM -r conftest 2>/dev/null
16488   mkdir conftest
16489   cd conftest
16490   mkdir out
16491   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16492
16493   lt_compiler_flag="-o out/conftest2.$ac_objext"
16494   # Insert the option either (1) after the last *FLAGS variable, or
16495   # (2) before a word containing "conftest.", or (3) at the end.
16496   # Note that $ac_compile itself does not contain backslashes and begins
16497   # with a dollar sign (not a hyphen), so the echo should work correctly.
16498   lt_compile=`echo "$ac_compile" | $SED \
16499   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16500   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16501   -e 's:$: $lt_compiler_flag:'`
16502   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16503   (eval "$lt_compile" 2>out/conftest.err)
16504   ac_status=$?
16505   cat out/conftest.err >&5
16506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16507   if (exit $ac_status) && test -s out/conftest2.$ac_objext
16508   then
16509     # The compiler can only warn and ignore the option if not recognized
16510     # So say no if there are warnings
16511     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
16512     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16513     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16514       lt_cv_prog_compiler_c_o_CXX=yes
16515     fi
16516   fi
16517   chmod u+w . 2>&5
16518   $RM conftest*
16519   # SGI C++ compiler will create directory out/ii_files/ for
16520   # template instantiation
16521   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16522   $RM out/* && rmdir out
16523   cd ..
16524   $RM -r conftest
16525   $RM conftest*
16526
16527fi
16528{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
16529$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
16530
16531
16532
16533    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
16534$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16535if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
16536  $as_echo_n "(cached) " >&6
16537else
16538  lt_cv_prog_compiler_c_o_CXX=no
16539   $RM -r conftest 2>/dev/null
16540   mkdir conftest
16541   cd conftest
16542   mkdir out
16543   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16544
16545   lt_compiler_flag="-o out/conftest2.$ac_objext"
16546   # Insert the option either (1) after the last *FLAGS variable, or
16547   # (2) before a word containing "conftest.", or (3) at the end.
16548   # Note that $ac_compile itself does not contain backslashes and begins
16549   # with a dollar sign (not a hyphen), so the echo should work correctly.
16550   lt_compile=`echo "$ac_compile" | $SED \
16551   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16552   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16553   -e 's:$: $lt_compiler_flag:'`
16554   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16555   (eval "$lt_compile" 2>out/conftest.err)
16556   ac_status=$?
16557   cat out/conftest.err >&5
16558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16559   if (exit $ac_status) && test -s out/conftest2.$ac_objext
16560   then
16561     # The compiler can only warn and ignore the option if not recognized
16562     # So say no if there are warnings
16563     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
16564     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16565     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16566       lt_cv_prog_compiler_c_o_CXX=yes
16567     fi
16568   fi
16569   chmod u+w . 2>&5
16570   $RM conftest*
16571   # SGI C++ compiler will create directory out/ii_files/ for
16572   # template instantiation
16573   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16574   $RM out/* && rmdir out
16575   cd ..
16576   $RM -r conftest
16577   $RM conftest*
16578
16579fi
16580{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
16581$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
16582
16583
16584
16585
16586hard_links="nottested"
16587if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
16588  # do not overwrite the value of need_locks provided by the user
16589  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
16590$as_echo_n "checking if we can lock with hard links... " >&6; }
16591  hard_links=yes
16592  $RM conftest*
16593  ln conftest.a conftest.b 2>/dev/null && hard_links=no
16594  touch conftest.a
16595  ln conftest.a conftest.b 2>&5 || hard_links=no
16596  ln conftest.a conftest.b 2>/dev/null && hard_links=no
16597  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
16598$as_echo "$hard_links" >&6; }
16599  if test "$hard_links" = no; then
16600    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16601$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16602    need_locks=warn
16603  fi
16604else
16605  need_locks=no
16606fi
16607
16608
16609
16610    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16611$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
16612
16613  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16614  exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
16615  case $host_os in
16616  aix[4-9]*)
16617    # If we're using GNU nm, then we don't want the "-C" option.
16618    # -C means demangle to AIX nm, but means don't demangle with GNU nm
16619    # Also, AIX nm treats weak defined symbols like other global defined
16620    # symbols, whereas GNU nm marks them as "W".
16621    if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
16622      export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
16623    else
16624      export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
16625    fi
16626    ;;
16627  pw32*)
16628    export_symbols_cmds_CXX="$ltdll_cmds"
16629    ;;
16630  cygwin* | mingw* | cegcc*)
16631    case $cc_basename in
16632    cl*)
16633      exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
16634      ;;
16635    *)
16636      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'
16637      exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
16638      ;;
16639    esac
16640    ;;
16641  *)
16642    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16643    ;;
16644  esac
16645
16646{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
16647$as_echo "$ld_shlibs_CXX" >&6; }
16648test "$ld_shlibs_CXX" = no && can_build_shared=no
16649
16650with_gnu_ld_CXX=$with_gnu_ld
16651
16652
16653
16654
16655
16656
16657#
16658# Do we need to explicitly link libc?
16659#
16660case "x$archive_cmds_need_lc_CXX" in
16661x|xyes)
16662  # Assume -lc should be added
16663  archive_cmds_need_lc_CXX=yes
16664
16665  if test "$enable_shared" = yes && test "$GCC" = yes; then
16666    case $archive_cmds_CXX in
16667    *'~'*)
16668      # FIXME: we may have to deal with multi-command sequences.
16669      ;;
16670    '$CC '*)
16671      # Test whether the compiler implicitly links with -lc since on some
16672      # systems, -lgcc has to come before -lc. If gcc already passes -lc
16673      # to ld, don't add -lc before -lgcc.
16674      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
16675$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
16676if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
16677  $as_echo_n "(cached) " >&6
16678else
16679  $RM conftest*
16680	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16681
16682	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16683  (eval $ac_compile) 2>&5
16684  ac_status=$?
16685  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16686  test $ac_status = 0; } 2>conftest.err; then
16687	  soname=conftest
16688	  lib=conftest
16689	  libobjs=conftest.$ac_objext
16690	  deplibs=
16691	  wl=$lt_prog_compiler_wl_CXX
16692	  pic_flag=$lt_prog_compiler_pic_CXX
16693	  compiler_flags=-v
16694	  linker_flags=-v
16695	  verstring=
16696	  output_objdir=.
16697	  libname=conftest
16698	  lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
16699	  allow_undefined_flag_CXX=
16700	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
16701  (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
16702  ac_status=$?
16703  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16704  test $ac_status = 0; }
16705	  then
16706	    lt_cv_archive_cmds_need_lc_CXX=no
16707	  else
16708	    lt_cv_archive_cmds_need_lc_CXX=yes
16709	  fi
16710	  allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
16711	else
16712	  cat conftest.err 1>&5
16713	fi
16714	$RM conftest*
16715
16716fi
16717{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
16718$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
16719      archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
16720      ;;
16721    esac
16722  fi
16723  ;;
16724esac
16725
16726
16727
16728
16729
16730
16731
16732
16733
16734
16735
16736
16737
16738
16739
16740
16741
16742
16743
16744
16745
16746
16747
16748
16749
16750
16751
16752
16753
16754
16755
16756
16757
16758
16759
16760
16761
16762
16763
16764
16765
16766
16767
16768
16769
16770
16771
16772
16773
16774
16775
16776
16777
16778
16779
16780
16781
16782
16783
16784
16785
16786
16787    { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16788$as_echo_n "checking dynamic linker characteristics... " >&6; }
16789
16790library_names_spec=
16791libname_spec='lib$name'
16792soname_spec=
16793shrext_cmds=".so"
16794postinstall_cmds=
16795postuninstall_cmds=
16796finish_cmds=
16797finish_eval=
16798shlibpath_var=
16799shlibpath_overrides_runpath=unknown
16800version_type=none
16801dynamic_linker="$host_os ld.so"
16802sys_lib_dlsearch_path_spec="/lib /usr/lib"
16803need_lib_prefix=unknown
16804hardcode_into_libs=no
16805
16806# when you set need_version to no, make sure it does not cause -set_version
16807# flags to be left without arguments
16808need_version=unknown
16809
16810case $host_os in
16811aix3*)
16812  version_type=linux # correct to gnu/linux during the next big refactor
16813  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16814  shlibpath_var=LIBPATH
16815
16816  # AIX 3 has no versioning support, so we append a major version to the name.
16817  soname_spec='${libname}${release}${shared_ext}$major'
16818  ;;
16819
16820aix[4-9]*)
16821  version_type=linux # correct to gnu/linux during the next big refactor
16822  need_lib_prefix=no
16823  need_version=no
16824  hardcode_into_libs=yes
16825  if test "$host_cpu" = ia64; then
16826    # AIX 5 supports IA64
16827    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16828    shlibpath_var=LD_LIBRARY_PATH
16829  else
16830    # With GCC up to 2.95.x, collect2 would create an import file
16831    # for dependence libraries.  The import file would start with
16832    # the line `#! .'.  This would cause the generated library to
16833    # depend on `.', always an invalid library.  This was fixed in
16834    # development snapshots of GCC prior to 3.0.
16835    case $host_os in
16836      aix4 | aix4.[01] | aix4.[01].*)
16837      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16838	   echo ' yes '
16839	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
16840	:
16841      else
16842	can_build_shared=no
16843      fi
16844      ;;
16845    esac
16846    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16847    # soname into executable. Probably we can add versioning support to
16848    # collect2, so additional links can be useful in future.
16849    if test "$aix_use_runtimelinking" = yes; then
16850      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16851      # instead of lib<name>.a to let people know that these are not
16852      # typical AIX shared libraries.
16853      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16854    else
16855      # We preserve .a as extension for shared libraries through AIX4.2
16856      # and later when we are not doing run time linking.
16857      library_names_spec='${libname}${release}.a $libname.a'
16858      soname_spec='${libname}${release}${shared_ext}$major'
16859    fi
16860    shlibpath_var=LIBPATH
16861  fi
16862  ;;
16863
16864amigaos*)
16865  case $host_cpu in
16866  powerpc)
16867    # Since July 2007 AmigaOS4 officially supports .so libraries.
16868    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16869    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16870    ;;
16871  m68k)
16872    library_names_spec='$libname.ixlibrary $libname.a'
16873    # Create ${libname}_ixlibrary.a entries in /sys/libs.
16874    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
16875    ;;
16876  esac
16877  ;;
16878
16879beos*)
16880  library_names_spec='${libname}${shared_ext}'
16881  dynamic_linker="$host_os ld.so"
16882  shlibpath_var=LIBRARY_PATH
16883  ;;
16884
16885bsdi[45]*)
16886  version_type=linux # correct to gnu/linux during the next big refactor
16887  need_version=no
16888  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16889  soname_spec='${libname}${release}${shared_ext}$major'
16890  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16891  shlibpath_var=LD_LIBRARY_PATH
16892  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16893  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16894  # the default ld.so.conf also contains /usr/contrib/lib and
16895  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16896  # libtool to hard-code these into programs
16897  ;;
16898
16899cygwin* | mingw* | pw32* | cegcc*)
16900  version_type=windows
16901  shrext_cmds=".dll"
16902  need_version=no
16903  need_lib_prefix=no
16904
16905  case $GCC,$cc_basename in
16906  yes,*)
16907    # gcc
16908    library_names_spec='$libname.dll.a'
16909    # DLL is installed to $(libdir)/../bin by postinstall_cmds
16910    postinstall_cmds='base_file=`basename \${file}`~
16911      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16912      dldir=$destdir/`dirname \$dlpath`~
16913      test -d \$dldir || mkdir -p \$dldir~
16914      $install_prog $dir/$dlname \$dldir/$dlname~
16915      chmod a+x \$dldir/$dlname~
16916      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16917        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16918      fi'
16919    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16920      dlpath=$dir/\$dldll~
16921       $RM \$dlpath'
16922    shlibpath_overrides_runpath=yes
16923
16924    case $host_os in
16925    cygwin*)
16926      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16927      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16928
16929      ;;
16930    mingw* | cegcc*)
16931      # MinGW DLLs use traditional 'lib' prefix
16932      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16933      ;;
16934    pw32*)
16935      # pw32 DLLs use 'pw' prefix rather than 'lib'
16936      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16937      ;;
16938    esac
16939    dynamic_linker='Win32 ld.exe'
16940    ;;
16941
16942  *,cl*)
16943    # Native MSVC
16944    libname_spec='$name'
16945    soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16946    library_names_spec='${libname}.dll.lib'
16947
16948    case $build_os in
16949    mingw*)
16950      sys_lib_search_path_spec=
16951      lt_save_ifs=$IFS
16952      IFS=';'
16953      for lt_path in $LIB
16954      do
16955        IFS=$lt_save_ifs
16956        # Let DOS variable expansion print the short 8.3 style file name.
16957        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
16958        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
16959      done
16960      IFS=$lt_save_ifs
16961      # Convert to MSYS style.
16962      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
16963      ;;
16964    cygwin*)
16965      # Convert to unix form, then to dos form, then back to unix form
16966      # but this time dos style (no spaces!) so that the unix form looks
16967      # like /cygdrive/c/PROGRA~1:/cygdr...
16968      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
16969      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
16970      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16971      ;;
16972    *)
16973      sys_lib_search_path_spec="$LIB"
16974      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
16975        # It is most probably a Windows format PATH.
16976        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16977      else
16978        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16979      fi
16980      # FIXME: find the short name or the path components, as spaces are
16981      # common. (e.g. "Program Files" -> "PROGRA~1")
16982      ;;
16983    esac
16984
16985    # DLL is installed to $(libdir)/../bin by postinstall_cmds
16986    postinstall_cmds='base_file=`basename \${file}`~
16987      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16988      dldir=$destdir/`dirname \$dlpath`~
16989      test -d \$dldir || mkdir -p \$dldir~
16990      $install_prog $dir/$dlname \$dldir/$dlname'
16991    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16992      dlpath=$dir/\$dldll~
16993       $RM \$dlpath'
16994    shlibpath_overrides_runpath=yes
16995    dynamic_linker='Win32 link.exe'
16996    ;;
16997
16998  *)
16999    # Assume MSVC wrapper
17000    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17001    dynamic_linker='Win32 ld.exe'
17002    ;;
17003  esac
17004  # FIXME: first we should search . and the directory the executable is in
17005  shlibpath_var=PATH
17006  ;;
17007
17008darwin* | rhapsody*)
17009  dynamic_linker="$host_os dyld"
17010  version_type=darwin
17011  need_lib_prefix=no
17012  need_version=no
17013  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17014  soname_spec='${libname}${release}${major}$shared_ext'
17015  shlibpath_overrides_runpath=yes
17016  shlibpath_var=DYLD_LIBRARY_PATH
17017  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17018
17019  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17020  ;;
17021
17022dgux*)
17023  version_type=linux # correct to gnu/linux during the next big refactor
17024  need_lib_prefix=no
17025  need_version=no
17026  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17027  soname_spec='${libname}${release}${shared_ext}$major'
17028  shlibpath_var=LD_LIBRARY_PATH
17029  ;;
17030
17031freebsd* | dragonfly*)
17032  # DragonFly does not have aout.  When/if they implement a new
17033  # versioning mechanism, adjust this.
17034  if test -x /usr/bin/objformat; then
17035    objformat=`/usr/bin/objformat`
17036  else
17037    case $host_os in
17038    freebsd[23].*) objformat=aout ;;
17039    *) objformat=elf ;;
17040    esac
17041  fi
17042  version_type=freebsd-$objformat
17043  case $version_type in
17044    freebsd-elf*)
17045      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17046      need_version=no
17047      need_lib_prefix=no
17048      ;;
17049    freebsd-*)
17050      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17051      need_version=yes
17052      ;;
17053  esac
17054  shlibpath_var=LD_LIBRARY_PATH
17055  case $host_os in
17056  freebsd2.*)
17057    shlibpath_overrides_runpath=yes
17058    ;;
17059  freebsd3.[01]* | freebsdelf3.[01]*)
17060    shlibpath_overrides_runpath=yes
17061    hardcode_into_libs=yes
17062    ;;
17063  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17064  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17065    shlibpath_overrides_runpath=no
17066    hardcode_into_libs=yes
17067    ;;
17068  *) # from 4.6 on, and DragonFly
17069    shlibpath_overrides_runpath=yes
17070    hardcode_into_libs=yes
17071    ;;
17072  esac
17073  ;;
17074
17075gnu*)
17076  version_type=linux # correct to gnu/linux during the next big refactor
17077  need_lib_prefix=no
17078  need_version=no
17079  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17080  soname_spec='${libname}${release}${shared_ext}$major'
17081  shlibpath_var=LD_LIBRARY_PATH
17082  shlibpath_overrides_runpath=no
17083  hardcode_into_libs=yes
17084  ;;
17085
17086haiku*)
17087  version_type=linux # correct to gnu/linux during the next big refactor
17088  need_lib_prefix=no
17089  need_version=no
17090  dynamic_linker="$host_os runtime_loader"
17091  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17092  soname_spec='${libname}${release}${shared_ext}$major'
17093  shlibpath_var=LIBRARY_PATH
17094  shlibpath_overrides_runpath=yes
17095  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
17096  hardcode_into_libs=yes
17097  ;;
17098
17099hpux9* | hpux10* | hpux11*)
17100  # Give a soname corresponding to the major version so that dld.sl refuses to
17101  # link against other versions.
17102  version_type=sunos
17103  need_lib_prefix=no
17104  need_version=no
17105  case $host_cpu in
17106  ia64*)
17107    shrext_cmds='.so'
17108    hardcode_into_libs=yes
17109    dynamic_linker="$host_os dld.so"
17110    shlibpath_var=LD_LIBRARY_PATH
17111    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17112    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17113    soname_spec='${libname}${release}${shared_ext}$major'
17114    if test "X$HPUX_IA64_MODE" = X32; then
17115      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17116    else
17117      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17118    fi
17119    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17120    ;;
17121  hppa*64*)
17122    shrext_cmds='.sl'
17123    hardcode_into_libs=yes
17124    dynamic_linker="$host_os dld.sl"
17125    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17126    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17127    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17128    soname_spec='${libname}${release}${shared_ext}$major'
17129    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17130    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17131    ;;
17132  *)
17133    shrext_cmds='.sl'
17134    dynamic_linker="$host_os dld.sl"
17135    shlibpath_var=SHLIB_PATH
17136    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17137    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17138    soname_spec='${libname}${release}${shared_ext}$major'
17139    ;;
17140  esac
17141  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
17142  postinstall_cmds='chmod 555 $lib'
17143  # or fails outright, so override atomically:
17144  install_override_mode=555
17145  ;;
17146
17147interix[3-9]*)
17148  version_type=linux # correct to gnu/linux during the next big refactor
17149  need_lib_prefix=no
17150  need_version=no
17151  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17152  soname_spec='${libname}${release}${shared_ext}$major'
17153  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17154  shlibpath_var=LD_LIBRARY_PATH
17155  shlibpath_overrides_runpath=no
17156  hardcode_into_libs=yes
17157  ;;
17158
17159irix5* | irix6* | nonstopux*)
17160  case $host_os in
17161    nonstopux*) version_type=nonstopux ;;
17162    *)
17163	if test "$lt_cv_prog_gnu_ld" = yes; then
17164		version_type=linux # correct to gnu/linux during the next big refactor
17165	else
17166		version_type=irix
17167	fi ;;
17168  esac
17169  need_lib_prefix=no
17170  need_version=no
17171  soname_spec='${libname}${release}${shared_ext}$major'
17172  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17173  case $host_os in
17174  irix5* | nonstopux*)
17175    libsuff= shlibsuff=
17176    ;;
17177  *)
17178    case $LD in # libtool.m4 will add one of these switches to LD
17179    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17180      libsuff= shlibsuff= libmagic=32-bit;;
17181    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17182      libsuff=32 shlibsuff=N32 libmagic=N32;;
17183    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17184      libsuff=64 shlibsuff=64 libmagic=64-bit;;
17185    *) libsuff= shlibsuff= libmagic=never-match;;
17186    esac
17187    ;;
17188  esac
17189  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17190  shlibpath_overrides_runpath=no
17191  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17192  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17193  hardcode_into_libs=yes
17194  ;;
17195
17196# No shared lib support for Linux oldld, aout, or coff.
17197linux*oldld* | linux*aout* | linux*coff*)
17198  dynamic_linker=no
17199  ;;
17200
17201# This must be glibc/ELF.
17202linux* | k*bsd*-gnu | kopensolaris*-gnu)
17203  version_type=linux # correct to gnu/linux during the next big refactor
17204  need_lib_prefix=no
17205  need_version=no
17206  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17207  soname_spec='${libname}${release}${shared_ext}$major'
17208  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17209  shlibpath_var=LD_LIBRARY_PATH
17210  shlibpath_overrides_runpath=no
17211
17212  # Some binutils ld are patched to set DT_RUNPATH
17213  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
17214  $as_echo_n "(cached) " >&6
17215else
17216  lt_cv_shlibpath_overrides_runpath=no
17217    save_LDFLAGS=$LDFLAGS
17218    save_libdir=$libdir
17219    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
17220	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
17221    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17222/* end confdefs.h.  */
17223
17224int
17225main ()
17226{
17227
17228  ;
17229  return 0;
17230}
17231_ACEOF
17232if ac_fn_cxx_try_link "$LINENO"; then :
17233  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
17234  lt_cv_shlibpath_overrides_runpath=yes
17235fi
17236fi
17237rm -f core conftest.err conftest.$ac_objext \
17238    conftest$ac_exeext conftest.$ac_ext
17239    LDFLAGS=$save_LDFLAGS
17240    libdir=$save_libdir
17241
17242fi
17243
17244  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
17245
17246  # This implies no fast_install, which is unacceptable.
17247  # Some rework will be needed to allow for fast_install
17248  # before this can be enabled.
17249  hardcode_into_libs=yes
17250
17251  # Append ld.so.conf contents to the search path
17252  if test -f /etc/ld.so.conf; then
17253    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' ' '`
17254    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17255  fi
17256
17257  # We used to test for /lib/ld.so.1 and disable shared libraries on
17258  # powerpc, because MkLinux only supported shared libraries with the
17259  # GNU dynamic linker.  Since this was broken with cross compilers,
17260  # most powerpc-linux boxes support dynamic linking these days and
17261  # people can always --disable-shared, the test was removed, and we
17262  # assume the GNU/Linux dynamic linker is in use.
17263  dynamic_linker='GNU/Linux ld.so'
17264  ;;
17265
17266netbsd*)
17267  version_type=sunos
17268  need_lib_prefix=no
17269  need_version=no
17270  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17271    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17272    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17273    dynamic_linker='NetBSD (a.out) ld.so'
17274  else
17275    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17276    soname_spec='${libname}${release}${shared_ext}$major'
17277    dynamic_linker='NetBSD ld.elf_so'
17278  fi
17279  shlibpath_var=LD_LIBRARY_PATH
17280  shlibpath_overrides_runpath=yes
17281  hardcode_into_libs=yes
17282  ;;
17283
17284newsos6)
17285  version_type=linux # correct to gnu/linux during the next big refactor
17286  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17287  shlibpath_var=LD_LIBRARY_PATH
17288  shlibpath_overrides_runpath=yes
17289  ;;
17290
17291*nto* | *qnx*)
17292  version_type=qnx
17293  need_lib_prefix=no
17294  need_version=no
17295  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17296  soname_spec='${libname}${release}${shared_ext}$major'
17297  shlibpath_var=LD_LIBRARY_PATH
17298  shlibpath_overrides_runpath=no
17299  hardcode_into_libs=yes
17300  dynamic_linker='ldqnx.so'
17301  ;;
17302
17303openbsd*)
17304  version_type=sunos
17305  sys_lib_dlsearch_path_spec="/usr/lib"
17306  need_lib_prefix=no
17307  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17308  case $host_os in
17309    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
17310    *)				need_version=no  ;;
17311  esac
17312  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17313  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17314  shlibpath_var=LD_LIBRARY_PATH
17315  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17316    case $host_os in
17317      openbsd2.[89] | openbsd2.[89].*)
17318	shlibpath_overrides_runpath=no
17319	;;
17320      *)
17321	shlibpath_overrides_runpath=yes
17322	;;
17323      esac
17324  else
17325    shlibpath_overrides_runpath=yes
17326  fi
17327  ;;
17328
17329os2*)
17330  libname_spec='$name'
17331  shrext_cmds=".dll"
17332  need_lib_prefix=no
17333  library_names_spec='$libname${shared_ext} $libname.a'
17334  dynamic_linker='OS/2 ld.exe'
17335  shlibpath_var=LIBPATH
17336  ;;
17337
17338osf3* | osf4* | osf5*)
17339  version_type=osf
17340  need_lib_prefix=no
17341  need_version=no
17342  soname_spec='${libname}${release}${shared_ext}$major'
17343  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17344  shlibpath_var=LD_LIBRARY_PATH
17345  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17346  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17347  ;;
17348
17349rdos*)
17350  dynamic_linker=no
17351  ;;
17352
17353solaris*)
17354  version_type=linux # correct to gnu/linux during the next big refactor
17355  need_lib_prefix=no
17356  need_version=no
17357  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17358  soname_spec='${libname}${release}${shared_ext}$major'
17359  shlibpath_var=LD_LIBRARY_PATH
17360  shlibpath_overrides_runpath=yes
17361  hardcode_into_libs=yes
17362  # ldd complains unless libraries are executable
17363  postinstall_cmds='chmod +x $lib'
17364  ;;
17365
17366sunos4*)
17367  version_type=sunos
17368  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17369  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17370  shlibpath_var=LD_LIBRARY_PATH
17371  shlibpath_overrides_runpath=yes
17372  if test "$with_gnu_ld" = yes; then
17373    need_lib_prefix=no
17374  fi
17375  need_version=yes
17376  ;;
17377
17378sysv4 | sysv4.3*)
17379  version_type=linux # correct to gnu/linux during the next big refactor
17380  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17381  soname_spec='${libname}${release}${shared_ext}$major'
17382  shlibpath_var=LD_LIBRARY_PATH
17383  case $host_vendor in
17384    sni)
17385      shlibpath_overrides_runpath=no
17386      need_lib_prefix=no
17387      runpath_var=LD_RUN_PATH
17388      ;;
17389    siemens)
17390      need_lib_prefix=no
17391      ;;
17392    motorola)
17393      need_lib_prefix=no
17394      need_version=no
17395      shlibpath_overrides_runpath=no
17396      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17397      ;;
17398  esac
17399  ;;
17400
17401sysv4*MP*)
17402  if test -d /usr/nec ;then
17403    version_type=linux # correct to gnu/linux during the next big refactor
17404    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17405    soname_spec='$libname${shared_ext}.$major'
17406    shlibpath_var=LD_LIBRARY_PATH
17407  fi
17408  ;;
17409
17410sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17411  version_type=freebsd-elf
17412  need_lib_prefix=no
17413  need_version=no
17414  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17415  soname_spec='${libname}${release}${shared_ext}$major'
17416  shlibpath_var=LD_LIBRARY_PATH
17417  shlibpath_overrides_runpath=yes
17418  hardcode_into_libs=yes
17419  if test "$with_gnu_ld" = yes; then
17420    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17421  else
17422    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17423    case $host_os in
17424      sco3.2v5*)
17425        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17426	;;
17427    esac
17428  fi
17429  sys_lib_dlsearch_path_spec='/usr/lib'
17430  ;;
17431
17432tpf*)
17433  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
17434  version_type=linux # correct to gnu/linux during the next big refactor
17435  need_lib_prefix=no
17436  need_version=no
17437  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17438  shlibpath_var=LD_LIBRARY_PATH
17439  shlibpath_overrides_runpath=no
17440  hardcode_into_libs=yes
17441  ;;
17442
17443uts4*)
17444  version_type=linux # correct to gnu/linux during the next big refactor
17445  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17446  soname_spec='${libname}${release}${shared_ext}$major'
17447  shlibpath_var=LD_LIBRARY_PATH
17448  ;;
17449
17450*)
17451  dynamic_linker=no
17452  ;;
17453esac
17454{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
17455$as_echo "$dynamic_linker" >&6; }
17456test "$dynamic_linker" = no && can_build_shared=no
17457
17458variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17459if test "$GCC" = yes; then
17460  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17461fi
17462
17463if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
17464  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
17465fi
17466if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
17467  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
17468fi
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
17498
17499
17500
17501
17502
17503
17504
17505
17506
17507    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
17508$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17509hardcode_action_CXX=
17510if test -n "$hardcode_libdir_flag_spec_CXX" ||
17511   test -n "$runpath_var_CXX" ||
17512   test "X$hardcode_automatic_CXX" = "Xyes" ; then
17513
17514  # We can hardcode non-existent directories.
17515  if test "$hardcode_direct_CXX" != no &&
17516     # If the only mechanism to avoid hardcoding is shlibpath_var, we
17517     # have to relink, otherwise we might link with an installed library
17518     # when we should be linking with a yet-to-be-installed one
17519     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
17520     test "$hardcode_minus_L_CXX" != no; then
17521    # Linking always hardcodes the temporary library directory.
17522    hardcode_action_CXX=relink
17523  else
17524    # We can link without hardcoding, and we can hardcode nonexisting dirs.
17525    hardcode_action_CXX=immediate
17526  fi
17527else
17528  # We cannot hardcode anything, or else we can only hardcode existing
17529  # directories.
17530  hardcode_action_CXX=unsupported
17531fi
17532{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
17533$as_echo "$hardcode_action_CXX" >&6; }
17534
17535if test "$hardcode_action_CXX" = relink ||
17536   test "$inherit_rpath_CXX" = yes; then
17537  # Fast installation is not supported
17538  enable_fast_install=no
17539elif test "$shlibpath_overrides_runpath" = yes ||
17540     test "$enable_shared" = no; then
17541  # Fast installation is not necessary
17542  enable_fast_install=needless
17543fi
17544
17545
17546
17547
17548
17549
17550
17551  fi # test -n "$compiler"
17552
17553  CC=$lt_save_CC
17554  CFLAGS=$lt_save_CFLAGS
17555  LDCXX=$LD
17556  LD=$lt_save_LD
17557  GCC=$lt_save_GCC
17558  with_gnu_ld=$lt_save_with_gnu_ld
17559  lt_cv_path_LDCXX=$lt_cv_path_LD
17560  lt_cv_path_LD=$lt_save_path_LD
17561  lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
17562  lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
17563fi # test "$_lt_caught_CXX_error" != yes
17564
17565ac_ext=c
17566ac_cpp='$CPP $CPPFLAGS'
17567ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17568ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17569ac_compiler_gnu=$ac_cv_c_compiler_gnu
17570
17571
17572
17573
17574
17575
17576
17577
17578
17579
17580
17581
17582
17583
17584
17585        ac_config_commands="$ac_config_commands libtool"
17586
17587
17588
17589
17590# Only expand once:
17591
17592
17593# Check whether --enable-experimental-libtool was given.
17594if test "${enable_experimental_libtool+set}" = set; then :
17595  enableval=$enable_experimental_libtool; experimental_libtool=$enableval
17596else
17597  experimental_libtool=no
17598fi
17599
17600
17601if test "$experimental_libtool" = "yes"; then
17602  echo "using APR's libtool"
17603  sh_libtool="`$apr_config --apr-libtool`"
17604  LIBTOOL="$sh_libtool"
17605  SVN_LIBTOOL="$sh_libtool"
17606else
17607  sh_libtool="$abs_builddir/libtool"
17608  SVN_LIBTOOL="\$(SHELL) $sh_libtool"
17609fi
17610
17611
17612lt_pversion=`$LIBTOOL --version 2>/dev/null|$SED -e 's/([^)]*)//g;s/^[^0-9]*//;s/[- ].*//g;q'`
17613lt_version=`echo $lt_pversion|$SED -e 's/\([a-z]*\)$/.\1/'`
17614lt_major_version=`echo $lt_version | cut -d'.' -f 1`
17615
17616svn_enable_static=yes
17617svn_enable_shared=yes
17618
17619# Check whether --enable-static was given.
17620if test "${enable_static+set}" = set; then :
17621  enableval=$enable_static; svn_enable_static="$enableval"
17622else
17623  svn_enable_static="yes"
17624fi
17625
17626
17627# Check whether --enable-shared was given.
17628if test "${enable_shared+set}" = set; then :
17629  enableval=$enable_shared; svn_enable_shared="$enableval"
17630else
17631  svn_enable_shared="yes"
17632fi
17633
17634
17635if test "$svn_enable_static" = "yes" && test "$svn_enable_shared" = "yes" ; then
17636  { $as_echo "$as_me:${as_lineno-$LINENO}: building both shared and static libraries" >&5
17637$as_echo "$as_me: building both shared and static libraries" >&6;}
17638elif test "$svn_enable_static" = "yes" ; then
17639  { $as_echo "$as_me:${as_lineno-$LINENO}: building static libraries only" >&5
17640$as_echo "$as_me: building static libraries only" >&6;}
17641  LT_CFLAGS="-static $LT_CFLAGS"
17642  LT_LDFLAGS="-static $LT_LDFLAGS"
17643elif test "$svn_enable_shared" = "yes" ; then
17644  { $as_echo "$as_me:${as_lineno-$LINENO}: building shared libraries only" >&5
17645$as_echo "$as_me: building shared libraries only" >&6;}
17646  if test "$lt_major_version" = "1" ; then
17647    LT_CFLAGS="-prefer-pic $LT_CFLAGS"
17648  elif test "$lt_major_version" = "2" ; then
17649    LT_CFLAGS="-shared $LT_CFLAGS"
17650  fi
17651  LT_LDFLAGS="-shared $LT_LDFLAGS"
17652else
17653  as_fn_error $? "cannot disable both shared and static libraries" "$LINENO" 5
17654fi
17655
17656# Check whether --enable-all-static was given.
17657if test "${enable_all_static+set}" = set; then :
17658  enableval=$enable_all_static;
17659    if test "$enableval" = "yes" ; then
17660      LT_LDFLAGS="-all-static $LT_LDFLAGS"
17661    elif test "$enableval" != "no" ; then
17662      as_fn_error $? "--enable-all-static doesn't accept argument" "$LINENO" 5
17663    fi
17664
17665fi
17666
17667
17668
17669
17670
17671# Check whether --enable-local-library-preloading was given.
17672if test "${enable_local_library_preloading+set}" = set; then :
17673  enableval=$enable_local_library_preloading;
17674  if test "$enableval" != "no"; then
17675    if test "$svn_enable_shared" = "yes"; then
17676      TRANSFORM_LIBTOOL_SCRIPTS="transform-libtool-scripts"
17677    else
17678      as_fn_error $? "--enable-local-library-preloading conflicts with --disable-shared" "$LINENO" 5
17679    fi
17680  else
17681    TRANSFORM_LIBTOOL_SCRIPTS=""
17682  fi
17683
17684else
17685
17686  TRANSFORM_LIBTOOL_SCRIPTS=""
17687
17688fi
17689
17690
17691
17692{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libtool needs -no-undefined" >&5
17693$as_echo_n "checking whether libtool needs -no-undefined... " >&6; }
17694case $host in
17695  *-*-cygwin*)
17696    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17697$as_echo "yes" >&6; }
17698    LT_NO_UNDEFINED="-no-undefined"
17699    ;;
17700  *)
17701    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17702$as_echo "no" >&6; }
17703    LT_NO_UNDEFINED=""
17704    ;;
17705esac
17706
17707
17708{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to avoid circular linkage at all costs" >&5
17709$as_echo_n "checking whether to avoid circular linkage at all costs... " >&6; }
17710case $host in
17711  *-*-cygwin*)
17712    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17713$as_echo "yes" >&6; }
17714
17715$as_echo "#define SVN_AVOID_CIRCULAR_LINKAGE_AT_ALL_COSTS_HACK 1" >>confdefs.h
17716
17717    ;;
17718  *)
17719    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17720$as_echo "no" >&6; }
17721    ;;
17722esac
17723
17724trang=yes
17725
17726# Check whether --with-trang was given.
17727if test "${with_trang+set}" = set; then :
17728  withval=$with_trang;
17729    trang="$withval"
17730
17731fi
17732
17733if test "$trang" = "yes"; then
17734    # Extract the first word of "trang", so it can be a program name with args.
17735set dummy trang; ac_word=$2
17736{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17737$as_echo_n "checking for $ac_word... " >&6; }
17738if ${ac_cv_path_TRANG+:} false; then :
17739  $as_echo_n "(cached) " >&6
17740else
17741  case $TRANG in
17742  [\\/]* | ?:[\\/]*)
17743  ac_cv_path_TRANG="$TRANG" # Let the user override the test with a path.
17744  ;;
17745  *)
17746  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17747for as_dir in $PATH
17748do
17749  IFS=$as_save_IFS
17750  test -z "$as_dir" && as_dir=.
17751    for ac_exec_ext in '' $ac_executable_extensions; do
17752  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17753    ac_cv_path_TRANG="$as_dir/$ac_word$ac_exec_ext"
17754    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17755    break 2
17756  fi
17757done
17758  done
17759IFS=$as_save_IFS
17760
17761  test -z "$ac_cv_path_TRANG" && ac_cv_path_TRANG="none"
17762  ;;
17763esac
17764fi
17765TRANG=$ac_cv_path_TRANG
17766if test -n "$TRANG"; then
17767  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TRANG" >&5
17768$as_echo "$TRANG" >&6; }
17769else
17770  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17771$as_echo "no" >&6; }
17772fi
17773
17774
17775else
17776    TRANG="$trang"
17777
17778fi
17779
17780doxygen=yes
17781
17782# Check whether --with-doxygen was given.
17783if test "${with_doxygen+set}" = set; then :
17784  withval=$with_doxygen;
17785    doxygen="$withval"
17786
17787fi
17788
17789if test "$doxygen" = "yes"; then
17790    # Extract the first word of "doxygen", so it can be a program name with args.
17791set dummy doxygen; ac_word=$2
17792{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17793$as_echo_n "checking for $ac_word... " >&6; }
17794if ${ac_cv_path_DOXYGEN+:} false; then :
17795  $as_echo_n "(cached) " >&6
17796else
17797  case $DOXYGEN in
17798  [\\/]* | ?:[\\/]*)
17799  ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
17800  ;;
17801  *)
17802  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17803for as_dir in $PATH
17804do
17805  IFS=$as_save_IFS
17806  test -z "$as_dir" && as_dir=.
17807    for ac_exec_ext in '' $ac_executable_extensions; do
17808  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17809    ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
17810    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17811    break 2
17812  fi
17813done
17814  done
17815IFS=$as_save_IFS
17816
17817  test -z "$ac_cv_path_DOXYGEN" && ac_cv_path_DOXYGEN="none"
17818  ;;
17819esac
17820fi
17821DOXYGEN=$ac_cv_path_DOXYGEN
17822if test -n "$DOXYGEN"; then
17823  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOXYGEN" >&5
17824$as_echo "$DOXYGEN" >&6; }
17825else
17826  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17827$as_echo "no" >&6; }
17828fi
17829
17830
17831else
17832    DOXYGEN="$doxygen"
17833
17834fi
17835
17836
17837
17838
17839
17840# Check whether --with-expat was given.
17841if test "${with_expat+set}" = set; then :
17842  withval=$with_expat; svn_lib_expat="$withval"
17843else
17844  svn_lib_expat="::expat"
17845fi
17846
17847
17848# APR-util accepts "builtin" as an argument to this option so if the user
17849# passed "builtin" pretend the user didn't specify the --with-expat option
17850# at all. Expat will (hopefully) be found in apr-util.
17851test "_$svn_lib_expat" = "_builtin" && svn_lib_expat="::expat"
17852
17853{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Expat" >&5
17854$as_echo_n "checking for Expat... " >&6; }
17855if test -n "`echo "$svn_lib_expat" | $EGREP ":.*:"`"; then
17856  SVN_XML_INCLUDES=""
17857  for i in `echo "$svn_lib_expat" | $SED -e "s/\([^:]*\):.*/\1/"`; do
17858    SVN_XML_INCLUDES="$SVN_XML_INCLUDES -I$i"
17859  done
17860  SVN_XML_INCLUDES="${SVN_XML_INCLUDES## }"
17861  for l in `echo "$svn_lib_expat" | $SED -e "s/.*:\([^:]*\):.*/\1/"`; do
17862    LDFLAGS="$LDFLAGS -L$l"
17863  done
17864  for l in `echo "$svn_lib_expat" | $SED -e "s/.*:\([^:]*\)/\1/"`; do
17865    SVN_XML_LIBS="$SVN_XML_LIBS -l$l"
17866  done
17867  SVN_XML_LIBS="${SVN_XML_LIBS## }"
17868  old_CPPFLAGS="$CPPFLAGS"
17869  old_LIBS="$LIBS"
17870  CPPFLAGS="$CPPFLAGS $SVN_XML_INCLUDES"
17871  LIBS="$LIBS $SVN_XML_LIBS"
17872  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17873/* end confdefs.h.  */
17874
17875#include <expat.h>
17876int main()
17877{XML_ParserCreate(NULL);}
17878_ACEOF
17879if ac_fn_c_try_link "$LINENO"; then :
17880  svn_lib_expat="yes"
17881else
17882  svn_lib_expat="no"
17883fi
17884rm -f core conftest.err conftest.$ac_objext \
17885    conftest$ac_exeext conftest.$ac_ext
17886  LIBS="$old_LIBS"
17887  if test "$svn_lib_expat" = "yes"; then
17888    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17889$as_echo "yes" >&6; }
17890  else
17891    SVN_XML_INCLUDES=""
17892    SVN_XML_LIBS=""
17893    CPPFLAGS="$CPPFLAGS $SVN_APRUTIL_INCLUDES"
17894    if test "$enable_all_static" != "yes"; then
17895      SVN_APRUTIL_LIBS="$SVN_APRUTIL_LIBS `$apu_config --libs`"
17896    fi
17897    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17898/* end confdefs.h.  */
17899
17900#include <expat.h>
17901int main()
17902{XML_ParserCreate(NULL);}
17903_ACEOF
17904if ac_fn_c_try_compile "$LINENO"; then :
17905  svn_lib_expat="yes"
17906else
17907  svn_lib_expat="no"
17908fi
17909rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17910    if test "$svn_lib_expat" = "yes"; then
17911      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17912$as_echo "yes" >&6; }
17913      { $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
17914$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;}
17915    else
17916      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17917$as_echo "no" >&6; }
17918      as_fn_error $? "Expat not found" "$LINENO" 5
17919    fi
17920  fi
17921  CPPFLAGS="$old_CPPFLAGS"
17922else
17923  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17924$as_echo "no" >&6; }
17925  if test "$svn_lib_expat" = "yes"; then
17926    as_fn_error $? "--with-expat option requires argument" "$LINENO" 5
17927  elif test "$svn_lib_expat" = "no"; then
17928    as_fn_error $? "Expat is required" "$LINENO" 5
17929  else
17930    as_fn_error $? "Invalid syntax of argument of --with-expat option" "$LINENO" 5
17931  fi
17932fi
17933
17934
17935
17936
17937# Berkeley DB on SCO OpenServer needs -lsocket
17938{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
17939$as_echo_n "checking for socket in -lsocket... " >&6; }
17940if ${ac_cv_lib_socket_socket+:} false; then :
17941  $as_echo_n "(cached) " >&6
17942else
17943  ac_check_lib_save_LIBS=$LIBS
17944LIBS="-lsocket  $LIBS"
17945cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17946/* end confdefs.h.  */
17947
17948/* Override any GCC internal prototype to avoid an error.
17949   Use char because int might match the return type of a GCC
17950   builtin and then its argument prototype would still apply.  */
17951#ifdef __cplusplus
17952extern "C"
17953#endif
17954char socket ();
17955int
17956main ()
17957{
17958return socket ();
17959  ;
17960  return 0;
17961}
17962_ACEOF
17963if ac_fn_c_try_link "$LINENO"; then :
17964  ac_cv_lib_socket_socket=yes
17965else
17966  ac_cv_lib_socket_socket=no
17967fi
17968rm -f core conftest.err conftest.$ac_objext \
17969    conftest$ac_exeext conftest.$ac_ext
17970LIBS=$ac_check_lib_save_LIBS
17971fi
17972{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
17973$as_echo "$ac_cv_lib_socket_socket" >&6; }
17974if test "x$ac_cv_lib_socket_socket" = xyes; then :
17975  cat >>confdefs.h <<_ACEOF
17976#define HAVE_LIBSOCKET 1
17977_ACEOF
17978
17979  LIBS="-lsocket $LIBS"
17980
17981fi
17982
17983
17984# Build the BDB filesystem library only if we have an appropriate
17985# version of Berkeley DB.
17986case "$host" in
17987powerpc-apple-darwin*)
17988    # Berkeley DB 4.0 does not work on OS X.
17989    SVN_FS_WANT_DB_MAJOR=4
17990    SVN_FS_WANT_DB_MINOR=1
17991    SVN_FS_WANT_DB_PATCH=25
17992    ;;
17993*)
17994    SVN_FS_WANT_DB_MAJOR=4
17995    SVN_FS_WANT_DB_MINOR=0
17996    SVN_FS_WANT_DB_PATCH=14
17997    ;;
17998esac
17999db_alt_version="5.x"
18000# Look for libdb4.so first:
18001
18002  db_version=$SVN_FS_WANT_DB_MAJOR.$SVN_FS_WANT_DB_MINOR.$SVN_FS_WANT_DB_PATCH
18003
18004
18005# Check whether --with-berkeley-db was given.
18006if test "${with_berkeley_db+set}" = set; then :
18007  withval=$with_berkeley_db;
18008    if test "$withval" = "no"; then
18009      bdb_status=skip
18010    elif test "$withval" = "yes"; then
18011      apu_db_version="`$apu_config --db-version`"
18012      if test $? -ne 0; then
18013        as_fn_error $? "Can't determine whether apr-util is linked against a
18014                      proper version of Berkeley DB." "$LINENO" 5
18015      fi
18016
18017      if test "$withval" = "yes"; then
18018        if test "$apu_db_version" -lt "4"; then
18019          as_fn_error $? "APR-UTIL was linked against Berkeley DB version $apu_db_version,
18020                        while version 4 or higher is required.  Reinstall
18021                        APR-UTIL with the appropriate options." "$LINENO" 5
18022        fi
18023
18024        bdb_status=required
18025
18026      elif test "$apu_found" != "reconfig"; then
18027        if test "$apu_db_version" -lt 4; then
18028          as_fn_error $? "APR-UTIL was installed independently, it won't be
18029                        possible to use the specified Berkeley DB: $withval" "$LINENO" 5
18030        fi
18031
18032        bdb_status=required
18033      fi
18034    else
18035      if echo "$withval" | $EGREP ":.*:.*:" > /dev/null; then
18036        svn_berkeley_db_header="`echo "$withval" | $SED -e "s/\([^:]*\):.*/\1/"`"
18037        SVN_DB_INCLUDES=""
18038        for i in `echo "$withval" | $SED -e "s/.*:\([^:]*\):[^:]*:.*/\1/"`; do
18039          SVN_DB_INCLUDES="$SVN_DB_INCLUDES -I$i"
18040        done
18041        SVN_DB_INCLUDES="${SVN_DB_INCLUDES## }"
18042        for l in `echo "$withval" | $SED -e "s/.*:[^:]*:\([^:]*\):.*/\1/"`; do
18043          LDFLAGS="$LDFLAGS `
18044  input_flags="-L$l"
18045  output_flags=""
18046  filtered_dirs="/lib /lib64 /usr/lib /usr/lib64"
18047  for flag in $input_flags; do
18048    filter="no"
18049    for dir in $filtered_dirs; do
18050      if test "$flag" = "-L$dir" || test "$flag" = "-L$dir/"; then
18051        filter="yes"
18052        break
18053      fi
18054    done
18055    if test "$filter" = "no"; then
18056      output_flags="$output_flags $flag"
18057    fi
18058  done
18059  if test -n "$output_flags"; then
18060    printf "%s" "${output_flags# }"
18061  fi
18062`"
18063        done
18064        SVN_DB_LIBS=""
18065        for l in `echo "$withval" | $SED -e "s/.*:\([^:]*\)/\1/"`; do
18066          SVN_DB_LIBS="$SVN_DB_LIBS -l$l"
18067        done
18068        SVN_DB_LIBS="${SVN_DB_LIBS## }"
18069
18070        bdb_status=required
18071      else
18072        as_fn_error $? "Invalid syntax of argument of --with-berkeley-db option" "$LINENO" 5
18073      fi
18074    fi
18075
18076else
18077
18078    # No --with-berkeley-db option:
18079    #
18080    # Check if APR-UTIL is providing the correct Berkeley DB version
18081    # for us.
18082    #
18083    apu_db_version="`$apu_config --db-version`"
18084    if test $? -ne 0; then
18085      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Detected older version of APR-UTIL, trying to determine
18086                   whether apr-util is linked against Berkeley DB
18087                   $db_version" >&5
18088$as_echo "$as_me: WARNING: Detected older version of APR-UTIL, trying to determine
18089                   whether apr-util is linked against Berkeley DB
18090                   $db_version" >&2;}
18091      bdb_status=try-link
18092    elif test "$apu_db_version" -lt "4"; then
18093      bdb_status=skip
18094    else
18095      bdb_status=try-link
18096    fi
18097
18098fi
18099
18100
18101  if test "$bdb_status" = "skip"; then
18102    svn_lib_berkeley_db=no
18103  else
18104    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for availability of Berkeley DB" >&5
18105$as_echo_n "checking for availability of Berkeley DB... " >&6; }
18106    # Check whether --enable-bdb6 was given.
18107if test "${enable_bdb6+set}" = set; then :
18108  enableval=$enable_bdb6; enable_bdb6=$enableval
18109else
18110  enable_bdb6=unspecified
18111fi
18112
18113
18114
18115    svn_lib_berkeley_db_try_save_cppflags="$CPPFLAGS"
18116    svn_lib_berkeley_db_try_save_libs="$LIBS"
18117
18118    svn_check_berkeley_db_major=$SVN_FS_WANT_DB_MAJOR
18119    svn_check_berkeley_db_minor=$SVN_FS_WANT_DB_MINOR
18120    svn_check_berkeley_db_patch=$SVN_FS_WANT_DB_PATCH
18121    enable_bdb6=$enable_bdb6
18122
18123   if test -z "$SVN_DB_LIBS"; then
18124      # We pass --dbm-libs here since Debian has modified apu-config not
18125      # to return -ldb unless --dbm-libs is passed.  This may also produce
18126      # extra output beyond -ldb but since we're only filtering for -ldb
18127      # it won't matter to us.  However, --dbm-libs was added to apu-config
18128      # in 1.3.8 so it's possible the version we have doesn't support it
18129      # so fallback without it if we get an error.
18130      svn_db_libs_prefiltered="`$apu_config --libs --dbm-libs`"
18131      if test $? -ne 0; then
18132        svn_db_libs_prefiltered="`$apu_config --libs`"
18133      fi
18134
18135      # Extract only the -ldb.* flag from the libs supplied by apu-config
18136      # Otherwise we get bit by the fact that expat might not be built yet
18137      # Or that it resides in a non-standard location which we would have
18138      # to compensate with using something like -R`$apu_config --prefix`/lib.
18139      #
18140      SVN_DB_LIBS="`echo \"$svn_db_libs_prefiltered\" | $SED -e 's/.*\(-ldb[^[:space:]]*\).*/\1/' | $EGREP -- '-ldb[^[:space:]]*'`"
18141    fi
18142
18143    CPPFLAGS="$SVN_DB_INCLUDES $SVN_APRUTIL_INCLUDES $CPPFLAGS"
18144    LIBS="`$apu_config --ldflags` $SVN_DB_LIBS $LIBS"
18145
18146    if test -n "$svn_berkeley_db_header"; then
18147      SVN_DB_HEADER="#include <$svn_berkeley_db_header>"
18148      svn_db_header="#include <$svn_berkeley_db_header>"
18149    else
18150      SVN_DB_HEADER="#include <apu_want.h>"
18151      svn_db_header="#define APU_WANT_DB
18152#include <apu_want.h>"
18153    fi
18154
18155
18156
18157    if test "$cross_compiling" = yes; then :
18158  svn_have_berkeley_db=yes
18159
18160else
18161  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18162/* end confdefs.h.  */
18163
18164#include <string.h>
18165#include <stdlib.h>
18166$svn_db_header
18167
18168int main ()
18169{
18170  int major, minor, patch;
18171
18172  db_version (&major, &minor, &patch);
18173
18174  /* Sanity check: ensure that db.h constants actually match the db library */
18175  if (major != DB_VERSION_MAJOR
18176      || minor != DB_VERSION_MINOR
18177      || patch != DB_VERSION_PATCH)
18178    exit (1);
18179
18180  /* Block Berkeley DB 6, because (a) we haven't tested with it, (b) 6.0.20
18181     and newer are under the AGPL, and we want use of AGPL dependencies to be
18182     opt-in. */
18183  if (major >= 6 && strcmp("$enable_bdb6", "yes"))
18184    exit(2);
18185
18186  /* Run-time check:  ensure the library claims to be the correct version. */
18187
18188  if (major < $svn_check_berkeley_db_major)
18189    exit (1);
18190  if (major > $svn_check_berkeley_db_major)
18191    exit (0);
18192
18193  if (minor < $svn_check_berkeley_db_minor)
18194    exit (1);
18195  if (minor > $svn_check_berkeley_db_minor)
18196    exit (0);
18197
18198  if (patch >= $svn_check_berkeley_db_patch)
18199    exit (0);
18200  else
18201    exit (1);
18202}
18203
18204_ACEOF
18205if ac_fn_c_try_run "$LINENO"; then :
18206  svn_have_berkeley_db=yes
18207else
18208  rc=$?
18209       svn_have_berkeley_db=no
18210       if test $rc = 2; then
18211         svn_have_berkeley_db=no6
18212       fi
18213fi
18214rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18215  conftest.$ac_objext conftest.beam conftest.$ac_ext
18216fi
18217
18218
18219  CPPFLAGS="$svn_lib_berkeley_db_try_save_cppflags"
18220  LIBS="$svn_lib_berkeley_db_try_save_libs"
18221
18222
18223    if test "$svn_have_berkeley_db" = "yes"; then
18224      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18225$as_echo "yes" >&6; }
18226      svn_lib_berkeley_db=yes
18227    else
18228      if test "$svn_have_berkeley_db" = "no6"; then
18229        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (found version 6, but --enable-bdb6 not specified)" >&5
18230$as_echo "no (found version 6, but --enable-bdb6 not specified)" >&6; }
18231        # A warning will be printed at the end of configure.ac.
18232      else
18233        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18234$as_echo "no" >&6; }
18235      fi
18236      svn_lib_berkeley_db=no
18237      if test "$bdb_status" = "required"; then
18238        as_fn_error $? "Berkeley DB $db_version or $db_alt_version wasn't found." "$LINENO" 5
18239      fi
18240    fi
18241  fi
18242
18243
18244
18245cat >>confdefs.h <<_ACEOF
18246#define SVN_FS_WANT_DB_MAJOR $SVN_FS_WANT_DB_MAJOR
18247_ACEOF
18248
18249
18250cat >>confdefs.h <<_ACEOF
18251#define SVN_FS_WANT_DB_MINOR $SVN_FS_WANT_DB_MINOR
18252_ACEOF
18253
18254
18255cat >>confdefs.h <<_ACEOF
18256#define SVN_FS_WANT_DB_PATCH $SVN_FS_WANT_DB_PATCH
18257_ACEOF
18258
18259
18260
18261
18262
18263
18264
18265# Check whether --with-sasl was given.
18266if test "${with_sasl+set}" = set; then :
18267  withval=$with_sasl;
18268    with_sasl="$withval"
18269    required="yes"
18270
18271else
18272
18273    with_sasl="yes"
18274    required="no"
18275
18276fi
18277
18278
18279  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to look for SASL" >&5
18280$as_echo_n "checking whether to look for SASL... " >&6; }
18281
18282  if test "${with_sasl}" = "no"; then
18283    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18284$as_echo "no" >&6; }
18285    svn_lib_sasl=no
18286  else
18287    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18288$as_echo "yes" >&6; }
18289    saved_LDFLAGS="$LDFLAGS"
18290    saved_CPPFLAGS="$CPPFLAGS"
18291
18292    if test "$with_sasl" = "yes"; then
18293      { $as_echo "$as_me:${as_lineno-$LINENO}: Looking in default locations" >&5
18294$as_echo "$as_me: Looking in default locations" >&6;}
18295      ac_fn_c_check_header_mongrel "$LINENO" "sasl/sasl.h" "ac_cv_header_sasl_sasl_h" "$ac_includes_default"
18296if test "x$ac_cv_header_sasl_sasl_h" = xyes; then :
18297  ac_fn_c_check_header_mongrel "$LINENO" "sasl/saslutil.h" "ac_cv_header_sasl_saslutil_h" "$ac_includes_default"
18298if test "x$ac_cv_header_sasl_saslutil_h" = xyes; then :
18299  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prop_get in -lsasl2" >&5
18300$as_echo_n "checking for prop_get in -lsasl2... " >&6; }
18301if ${ac_cv_lib_sasl2_prop_get+:} false; then :
18302  $as_echo_n "(cached) " >&6
18303else
18304  ac_check_lib_save_LIBS=$LIBS
18305LIBS="-lsasl2  $LIBS"
18306cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18307/* end confdefs.h.  */
18308
18309/* Override any GCC internal prototype to avoid an error.
18310   Use char because int might match the return type of a GCC
18311   builtin and then its argument prototype would still apply.  */
18312#ifdef __cplusplus
18313extern "C"
18314#endif
18315char prop_get ();
18316int
18317main ()
18318{
18319return prop_get ();
18320  ;
18321  return 0;
18322}
18323_ACEOF
18324if ac_fn_c_try_link "$LINENO"; then :
18325  ac_cv_lib_sasl2_prop_get=yes
18326else
18327  ac_cv_lib_sasl2_prop_get=no
18328fi
18329rm -f core conftest.err conftest.$ac_objext \
18330    conftest$ac_exeext conftest.$ac_ext
18331LIBS=$ac_check_lib_save_LIBS
18332fi
18333{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sasl2_prop_get" >&5
18334$as_echo "$ac_cv_lib_sasl2_prop_get" >&6; }
18335if test "x$ac_cv_lib_sasl2_prop_get" = xyes; then :
18336  svn_lib_sasl=yes
18337else
18338  svn_lib_sasl=no
18339fi
18340
18341else
18342  svn_lib_sasl=no
18343fi
18344
18345
18346else
18347  svn_lib_sasl=no
18348fi
18349
18350
18351      if test "$svn_lib_sasl" = "no"; then
18352        with_sasl="/usr/local"
18353      fi
18354    else
18355      svn_lib_sasl=no
18356    fi
18357
18358    if test "$svn_lib_sasl" = "no"; then
18359      SVN_SASL_INCLUDES="-I${with_sasl}/include"
18360      CPPFLAGS="$CPPFLAGS $SVN_SASL_INCLUDES"
18361      LDFLAGS="$LDFLAGS `
18362  input_flags="-L${with_sasl}/lib"
18363  output_flags=""
18364  filtered_dirs="/lib /lib64 /usr/lib /usr/lib64"
18365  for flag in $input_flags; do
18366    filter="no"
18367    for dir in $filtered_dirs; do
18368      if test "$flag" = "-L$dir" || test "$flag" = "-L$dir/"; then
18369        filter="yes"
18370        break
18371      fi
18372    done
18373    if test "$filter" = "no"; then
18374      output_flags="$output_flags $flag"
18375    fi
18376  done
18377  if test -n "$output_flags"; then
18378    printf "%s" "${output_flags# }"
18379  fi
18380`"
18381
18382      ac_fn_c_check_header_mongrel "$LINENO" "sasl/sasl.h" "ac_cv_header_sasl_sasl_h" "$ac_includes_default"
18383if test "x$ac_cv_header_sasl_sasl_h" = xyes; then :
18384  ac_fn_c_check_header_mongrel "$LINENO" "sasl/saslutil.h" "ac_cv_header_sasl_saslutil_h" "$ac_includes_default"
18385if test "x$ac_cv_header_sasl_saslutil_h" = xyes; then :
18386  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prop_get in -lsasl2" >&5
18387$as_echo_n "checking for prop_get in -lsasl2... " >&6; }
18388if ${ac_cv_lib_sasl2_prop_get+:} false; then :
18389  $as_echo_n "(cached) " >&6
18390else
18391  ac_check_lib_save_LIBS=$LIBS
18392LIBS="-lsasl2  $LIBS"
18393cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18394/* end confdefs.h.  */
18395
18396/* Override any GCC internal prototype to avoid an error.
18397   Use char because int might match the return type of a GCC
18398   builtin and then its argument prototype would still apply.  */
18399#ifdef __cplusplus
18400extern "C"
18401#endif
18402char prop_get ();
18403int
18404main ()
18405{
18406return prop_get ();
18407  ;
18408  return 0;
18409}
18410_ACEOF
18411if ac_fn_c_try_link "$LINENO"; then :
18412  ac_cv_lib_sasl2_prop_get=yes
18413else
18414  ac_cv_lib_sasl2_prop_get=no
18415fi
18416rm -f core conftest.err conftest.$ac_objext \
18417    conftest$ac_exeext conftest.$ac_ext
18418LIBS=$ac_check_lib_save_LIBS
18419fi
18420{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sasl2_prop_get" >&5
18421$as_echo "$ac_cv_lib_sasl2_prop_get" >&6; }
18422if test "x$ac_cv_lib_sasl2_prop_get" = xyes; then :
18423  svn_lib_sasl=yes
18424else
18425  svn_lib_sasl=no
18426fi
18427
18428else
18429  svn_lib_sasl=no
18430fi
18431
18432
18433else
18434  svn_lib_sasl=no
18435fi
18436
18437
18438    fi
18439
18440    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for availability of Cyrus SASL v2" >&5
18441$as_echo_n "checking for availability of Cyrus SASL v2... " >&6; }
18442    if test "$svn_lib_sasl" = "yes"; then
18443      SVN_SASL_LIBS="-lsasl2"
18444      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18445$as_echo "yes" >&6; }
18446    else
18447      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18448$as_echo "no" >&6; }
18449
18450      if test "$required" = "yes"; then
18451                        as_fn_error $? "Could not find Cyrus SASL v2" "$LINENO" 5
18452      fi
18453
18454      SVN_SASL_INCLUDES=""
18455      LDFLAGS="$saved_LDFLAGS"
18456    fi
18457
18458    CPPFLAGS="$saved_CPPFLAGS"
18459  fi
18460
18461
18462
18463
18464
18465if test "$svn_lib_sasl" = "yes"; then
18466
18467$as_echo "#define SVN_HAVE_SASL 1" >>confdefs.h
18468
18469fi
18470
18471
18472
18473  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Mach-O dynamic module iteration functions" >&5
18474$as_echo_n "checking for Mach-O dynamic module iteration functions... " >&6; }
18475  if test "$cross_compiling" = yes; then :
18476  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18477$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18478as_fn_error $? "cannot run test program while cross compiling
18479See \`config.log' for more details" "$LINENO" 5; }
18480else
18481  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18482/* end confdefs.h.  */
18483
18484    #include <mach-o/dyld.h>
18485    #include <mach-o/loader.h>
18486
18487int
18488main ()
18489{
18490
18491    const struct mach_header *header = _dyld_get_image_header(0);
18492    const char *name = _dyld_get_image_name(0);
18493    if (name && header) return 0;
18494    return 1;
18495
18496  ;
18497  return 0;
18498}
18499_ACEOF
18500if ac_fn_c_try_run "$LINENO"; then :
18501
18502
18503$as_echo "#define SVN_HAVE_MACHO_ITERATE 1" >>confdefs.h
18504
18505    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18506$as_echo "yes" >&6; }
18507
18508else
18509
18510    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18511$as_echo "no" >&6; }
18512
18513fi
18514rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18515  conftest.$ac_objext conftest.beam conftest.$ac_ext
18516fi
18517
18518
18519
18520  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Mac OS property list utilities" >&5
18521$as_echo_n "checking for Mac OS property list utilities... " >&6; }
18522
18523  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18524/* end confdefs.h.  */
18525
18526    #include <AvailabilityMacros.h>
18527    #if !defined(MAC_OS_X_VERSION_MAX_ALLOWED) \
18528     || !defined(MAC_OS_X_VERSION_10_0) \
18529     || (MAC_OS_X_VERSION_MAX_ALLOWED <= MAC_OS_X_VERSION_10_0)
18530    #error ProperyList API unavailable.
18531    #endif
18532
18533int
18534main ()
18535{
18536
18537  ;
18538  return 0;
18539}
18540_ACEOF
18541if ac_fn_c_try_compile "$LINENO"; then :
18542
18543
18544    LIBS="$LIBS -framework CoreFoundation"
18545
18546$as_echo "#define SVN_HAVE_MACOS_PLIST 1" >>confdefs.h
18547
18548    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18549$as_echo "yes" >&6; }
18550
18551else
18552
18553    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18554$as_echo "no" >&6; }
18555
18556fi
18557rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18558
18559
18560  # Check whether --enable-keychain was given.
18561if test "${enable_keychain+set}" = set; then :
18562  enableval=$enable_keychain; enable_keychain=$enableval
18563else
18564  enable_keychain=yes
18565fi
18566
18567
18568  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Mac OS KeyChain Services" >&5
18569$as_echo_n "checking for Mac OS KeyChain Services... " >&6; }
18570
18571  if test "$enable_keychain" = "yes"; then
18572    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18573/* end confdefs.h.  */
18574
18575      #include <AvailabilityMacros.h>
18576      #if !defined(MAC_OS_X_VERSION_MAX_ALLOWED) \
18577       || !defined(MAC_OS_X_VERSION_10_2) \
18578       || (MAC_OS_X_VERSION_MAX_ALLOWED <= MAC_OS_X_VERSION_10_2)
18579      #error KeyChain API unavailable.
18580      #endif
18581
18582int
18583main ()
18584{
18585
18586  ;
18587  return 0;
18588}
18589_ACEOF
18590if ac_fn_c_try_compile "$LINENO"; then :
18591
18592            LIBS="$LIBS -framework Security"
18593      LIBS="$LIBS -framework CoreServices"
18594
18595$as_echo "#define SVN_HAVE_KEYCHAIN_SERVICES 1" >>confdefs.h
18596
18597      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18598$as_echo "yes" >&6; }
18599
18600else
18601
18602      enable_keychain=no
18603      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18604$as_echo "no" >&6; }
18605
18606fi
18607rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18608  fi
18609
18610
18611
18612{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether APR has support for DSOs" >&5
18613$as_echo_n "checking whether APR has support for DSOs... " >&6; }
18614old_CPPFLAGS="$CPPFLAGS"
18615CPPFLAGS="$CPPFLAGS $SVN_APR_INCLUDES"
18616cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18617/* end confdefs.h.  */
18618
18619#include <apr.h>
18620#if !APR_HAS_DSO
18621#error
18622#endif
18623_ACEOF
18624if ac_fn_c_try_cpp "$LINENO"; then :
18625  APR_HAS_DSO="yes"
18626  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18627$as_echo "yes" >&6; }
18628else
18629  APR_HAS_DSO="no"
18630  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18631$as_echo "no" >&6; }
18632fi
18633rm -f conftest.err conftest.i conftest.$ac_ext
18634CPPFLAGS="$old_CPPFLAGS"
18635
18636
18637
18638if test -n "$PKG_CONFIG"; then
18639  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for D-Bus .pc file" >&5
18640$as_echo_n "checking for D-Bus .pc file... " >&6; }
18641  if $PKG_CONFIG --exists dbus-1; then
18642    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18643$as_echo "yes" >&6; }
18644    old_CPPFLAGS="$CPPFLAGS"
18645    old_LIBS="$LIBS"
18646    DBUS_CPPFLAGS="`$PKG_CONFIG --cflags dbus-1`"
18647    { $as_echo "$as_me:${as_lineno-$LINENO}: checking D-Bus version" >&5
18648$as_echo_n "checking D-Bus version... " >&6; }
18649    DBUS_VERSION="`$PKG_CONFIG --modversion dbus-1`"
18650    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBUS_VERSION" >&5
18651$as_echo "$DBUS_VERSION" >&6; }
18652    # D-Bus 0.* requires DBUS_API_SUBJECT_TO_CHANGE
18653    if test -n "`echo "$DBUS_VERSION" | $EGREP '^0\.[[:digit:]]+'`"; then
18654      DBUS_CPPFLAGS="$DBUS_CPPFLAGS -DDBUS_API_SUBJECT_TO_CHANGE"
18655    fi
18656    DBUS_LIBS="`$PKG_CONFIG --libs dbus-1`"
18657    CPPFLAGS="$CPPFLAGS $DBUS_CPPFLAGS"
18658    LIBS="$LIBS $DBUS_LIBS"
18659    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for D-Bus" >&5
18660$as_echo_n "checking for D-Bus... " >&6; }
18661    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18662/* end confdefs.h.  */
18663
18664#include <dbus/dbus.h>
18665int main()
18666{dbus_bus_get(DBUS_BUS_SESSION, NULL);}
18667_ACEOF
18668if ac_fn_c_try_link "$LINENO"; then :
18669  HAVE_DBUS="yes"
18670else
18671  HAVE_DBUS="no"
18672fi
18673rm -f core conftest.err conftest.$ac_objext \
18674    conftest$ac_exeext conftest.$ac_ext
18675    if test "$HAVE_DBUS" = "yes"; then
18676      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18677$as_echo "yes" >&6; }
18678    else
18679      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18680$as_echo "no" >&6; }
18681    fi
18682    CPPFLAGS="$old_CPPFLAGS"
18683    LIBS="$old_LIBS"
18684  else
18685    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18686$as_echo "no" >&6; }
18687  fi
18688fi
18689
18690
18691
18692# Check whether --with-gpg_agent was given.
18693if test "${with_gpg_agent+set}" = set; then :
18694  withval=$with_gpg_agent;
18695else
18696  with_gpg_agent=yes
18697fi
18698
18699{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support GPG-Agent" >&5
18700$as_echo_n "checking whether to support GPG-Agent... " >&6; }
18701if test "$with_gpg_agent" = "yes"; then
18702  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18703$as_echo "yes" >&6; }
18704
18705$as_echo "#define SVN_HAVE_GPG_AGENT 1" >>confdefs.h
18706
18707else
18708  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18709$as_echo "no" >&6; }
18710fi
18711
18712
18713
18714
18715
18716# Check whether --with-gnome_keyring was given.
18717if test "${with_gnome_keyring+set}" = set; then :
18718  withval=$with_gnome_keyring; with_gnome_keyring="$withval"
18719else
18720  with_gnome_keyring=auto
18721fi
18722
18723
18724found_gnome_keyring=no
18725{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to look for GNOME Keyring" >&5
18726$as_echo_n "checking whether to look for GNOME Keyring... " >&6; }
18727if test "$with_gnome_keyring" != "no"; then
18728  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18729$as_echo "yes" >&6; }
18730  if test "$svn_enable_shared" = "yes"; then
18731    if test "$APR_HAS_DSO" = "yes"; then
18732      if test -n "$PKG_CONFIG"; then
18733        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLib and GNOME Keyring .pc files" >&5
18734$as_echo_n "checking for GLib and GNOME Keyring .pc files... " >&6; }
18735        if $PKG_CONFIG --exists glib-2.0 gnome-keyring-1; then
18736          { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18737$as_echo "yes" >&6; }
18738          old_CPPFLAGS="$CPPFLAGS"
18739          SVN_GNOME_KEYRING_INCLUDES="`$PKG_CONFIG --cflags glib-2.0 gnome-keyring-1`"
18740          CPPFLAGS="$CPPFLAGS $SVN_GNOME_KEYRING_INCLUDES"
18741          ac_fn_c_check_header_mongrel "$LINENO" "gnome-keyring.h" "ac_cv_header_gnome_keyring_h" "$ac_includes_default"
18742if test "x$ac_cv_header_gnome_keyring_h" = xyes; then :
18743  found_gnome_keyring=yes
18744else
18745  found_gnome_keyring=no
18746fi
18747
18748
18749          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNOME Keyring" >&5
18750$as_echo_n "checking for GNOME Keyring... " >&6; }
18751          if test "$found_gnome_keyring" = "yes"; then
18752            { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18753$as_echo "yes" >&6; }
18754
18755$as_echo "#define SVN_HAVE_GNOME_KEYRING 1" >>confdefs.h
18756
18757            CPPFLAGS="$old_CPPFLAGS"
18758            SVN_GNOME_KEYRING_LIBS="`$PKG_CONFIG --libs glib-2.0 gnome-keyring-1`"
18759          else
18760            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18761$as_echo "no" >&6; }
18762            if test "$with_gnome_keyring" = "yes"; then
18763              as_fn_error $? "cannot find GNOME Keyring" "$LINENO" 5
18764            fi
18765          fi
18766        else
18767          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18768$as_echo "no" >&6; }
18769          if test "$with_gnome_keyring" = "yes"; then
18770            as_fn_error $? "cannot find GLib and GNOME Keyring .pc files." "$LINENO" 5
18771          else
18772            with_gnome_keyring=no
18773          fi
18774        fi
18775      else
18776        if test "$with_gnome_keyring" = "yes"; then
18777          as_fn_error $? "cannot find pkg-config. GNOME Keyring requires this." "$LINENO" 5
18778        else
18779          with_gnome_keyring=no
18780        fi
18781      fi
18782    else
18783      if test "$with_gnome_keyring" = "yes"; then
18784        as_fn_error $? "APR does not have support for DSOs. GNOME Keyring requires this." "$LINENO" 5
18785      else
18786        with_gnome_keyring=no
18787      fi
18788    fi
18789  else
18790    if test "$with_gnome_keyring" = "yes"; then
18791      as_fn_error $? "--with-gnome-keyring conflicts with --disable-shared" "$LINENO" 5
18792    else
18793      with_gnome_keyring=no
18794    fi
18795  fi
18796else
18797  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18798$as_echo "no" >&6; }
18799fi
18800
18801
18802
18803
18804# Check whether --enable-ev2-impl was given.
18805if test "${enable_ev2_impl+set}" = set; then :
18806  enableval=$enable_ev2_impl; enable_ev2_impl=$enableval
18807else
18808  enable_ev2_impl=no
18809fi
18810
18811if test "$enable_ev2_impl" = "yes"; then
18812
18813$as_echo "#define ENABLE_EV2_IMPL 1" >>confdefs.h
18814
18815fi
18816
18817
18818
18819# Check whether --enable-nls was given.
18820if test "${enable_nls+set}" = set; then :
18821  enableval=$enable_nls; enable_nls=$enableval
18822else
18823  enable_nls=yes
18824fi
18825
18826
18827USE_NLS="no"
18828if test "$enable_nls" = "yes"; then
18829    # Extract the first word of "msgfmt", so it can be a program name with args.
18830set dummy msgfmt; ac_word=$2
18831{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18832$as_echo_n "checking for $ac_word... " >&6; }
18833if ${ac_cv_path_MSGFMT+:} false; then :
18834  $as_echo_n "(cached) " >&6
18835else
18836  case $MSGFMT in
18837  [\\/]* | ?:[\\/]*)
18838  ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
18839  ;;
18840  *)
18841  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18842for as_dir in $PATH
18843do
18844  IFS=$as_save_IFS
18845  test -z "$as_dir" && as_dir=.
18846    for ac_exec_ext in '' $ac_executable_extensions; do
18847  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18848    ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
18849    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18850    break 2
18851  fi
18852done
18853  done
18854IFS=$as_save_IFS
18855
18856  test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="none"
18857  ;;
18858esac
18859fi
18860MSGFMT=$ac_cv_path_MSGFMT
18861if test -n "$MSGFMT"; then
18862  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
18863$as_echo "$MSGFMT" >&6; }
18864else
18865  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18866$as_echo "no" >&6; }
18867fi
18868
18869
18870  # Extract the first word of "msgmerge", so it can be a program name with args.
18871set dummy msgmerge; ac_word=$2
18872{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18873$as_echo_n "checking for $ac_word... " >&6; }
18874if ${ac_cv_path_MSGMERGE+:} false; then :
18875  $as_echo_n "(cached) " >&6
18876else
18877  case $MSGMERGE in
18878  [\\/]* | ?:[\\/]*)
18879  ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
18880  ;;
18881  *)
18882  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18883for as_dir in $PATH
18884do
18885  IFS=$as_save_IFS
18886  test -z "$as_dir" && as_dir=.
18887    for ac_exec_ext in '' $ac_executable_extensions; do
18888  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18889    ac_cv_path_MSGMERGE="$as_dir/$ac_word$ac_exec_ext"
18890    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18891    break 2
18892  fi
18893done
18894  done
18895IFS=$as_save_IFS
18896
18897  test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE="none"
18898  ;;
18899esac
18900fi
18901MSGMERGE=$ac_cv_path_MSGMERGE
18902if test -n "$MSGMERGE"; then
18903  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
18904$as_echo "$MSGMERGE" >&6; }
18905else
18906  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18907$as_echo "no" >&6; }
18908fi
18909
18910
18911  # Extract the first word of "xgettext", so it can be a program name with args.
18912set dummy xgettext; ac_word=$2
18913{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18914$as_echo_n "checking for $ac_word... " >&6; }
18915if ${ac_cv_path_XGETTEXT+:} false; then :
18916  $as_echo_n "(cached) " >&6
18917else
18918  case $XGETTEXT in
18919  [\\/]* | ?:[\\/]*)
18920  ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
18921  ;;
18922  *)
18923  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18924for as_dir in $PATH
18925do
18926  IFS=$as_save_IFS
18927  test -z "$as_dir" && as_dir=.
18928    for ac_exec_ext in '' $ac_executable_extensions; do
18929  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18930    ac_cv_path_XGETTEXT="$as_dir/$ac_word$ac_exec_ext"
18931    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18932    break 2
18933  fi
18934done
18935  done
18936IFS=$as_save_IFS
18937
18938  test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT="none"
18939  ;;
18940esac
18941fi
18942XGETTEXT=$ac_cv_path_XGETTEXT
18943if test -n "$XGETTEXT"; then
18944  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
18945$as_echo "$XGETTEXT" >&6; }
18946else
18947  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18948$as_echo "no" >&6; }
18949fi
18950
18951
18952  if test "$MSGFMT" != "none"; then
18953    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing bindtextdomain" >&5
18954$as_echo_n "checking for library containing bindtextdomain... " >&6; }
18955if ${ac_cv_search_bindtextdomain+:} false; then :
18956  $as_echo_n "(cached) " >&6
18957else
18958  ac_func_search_save_LIBS=$LIBS
18959cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18960/* end confdefs.h.  */
18961
18962/* Override any GCC internal prototype to avoid an error.
18963   Use char because int might match the return type of a GCC
18964   builtin and then its argument prototype would still apply.  */
18965#ifdef __cplusplus
18966extern "C"
18967#endif
18968char bindtextdomain ();
18969int
18970main ()
18971{
18972return bindtextdomain ();
18973  ;
18974  return 0;
18975}
18976_ACEOF
18977for ac_lib in '' intl; do
18978  if test -z "$ac_lib"; then
18979    ac_res="none required"
18980  else
18981    ac_res=-l$ac_lib
18982    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
18983  fi
18984  if ac_fn_c_try_link "$LINENO"; then :
18985  ac_cv_search_bindtextdomain=$ac_res
18986fi
18987rm -f core conftest.err conftest.$ac_objext \
18988    conftest$ac_exeext
18989  if ${ac_cv_search_bindtextdomain+:} false; then :
18990  break
18991fi
18992done
18993if ${ac_cv_search_bindtextdomain+:} false; then :
18994
18995else
18996  ac_cv_search_bindtextdomain=no
18997fi
18998rm conftest.$ac_ext
18999LIBS=$ac_func_search_save_LIBS
19000fi
19001{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_bindtextdomain" >&5
19002$as_echo "$ac_cv_search_bindtextdomain" >&6; }
19003ac_res=$ac_cv_search_bindtextdomain
19004if test "$ac_res" != no; then :
19005  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19006
19007else
19008
19009                    enable_nls="no"
19010
19011fi
19012
19013    if test "$enable_nls" = "no"; then
19014      # Destroy the cached result so we can test again
19015      unset ac_cv_search_bindtextdomain
19016      # On some systems, libintl needs libiconv to link properly,
19017      # so try again with -liconv.
19018      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing bindtextdomain" >&5
19019$as_echo_n "checking for library containing bindtextdomain... " >&6; }
19020if ${ac_cv_search_bindtextdomain+:} false; then :
19021  $as_echo_n "(cached) " >&6
19022else
19023  ac_func_search_save_LIBS=$LIBS
19024cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19025/* end confdefs.h.  */
19026
19027/* Override any GCC internal prototype to avoid an error.
19028   Use char because int might match the return type of a GCC
19029   builtin and then its argument prototype would still apply.  */
19030#ifdef __cplusplus
19031extern "C"
19032#endif
19033char bindtextdomain ();
19034int
19035main ()
19036{
19037return bindtextdomain ();
19038  ;
19039  return 0;
19040}
19041_ACEOF
19042for ac_lib in '' intl; do
19043  if test -z "$ac_lib"; then
19044    ac_res="none required"
19045  else
19046    ac_res=-l$ac_lib
19047    LIBS="-l$ac_lib -liconv $ac_func_search_save_LIBS"
19048  fi
19049  if ac_fn_c_try_link "$LINENO"; then :
19050  ac_cv_search_bindtextdomain=$ac_res
19051fi
19052rm -f core conftest.err conftest.$ac_objext \
19053    conftest$ac_exeext
19054  if ${ac_cv_search_bindtextdomain+:} false; then :
19055  break
19056fi
19057done
19058if ${ac_cv_search_bindtextdomain+:} false; then :
19059
19060else
19061  ac_cv_search_bindtextdomain=no
19062fi
19063rm conftest.$ac_ext
19064LIBS=$ac_func_search_save_LIBS
19065fi
19066{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_bindtextdomain" >&5
19067$as_echo "$ac_cv_search_bindtextdomain" >&6; }
19068ac_res=$ac_cv_search_bindtextdomain
19069if test "$ac_res" != no; then :
19070  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19071
19072                      enable_nls="yes"
19073                      # This is here so that -liconv ends up in LIBS
19074                      # if it worked with -liconv.
19075                      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libiconv_open in -liconv" >&5
19076$as_echo_n "checking for libiconv_open in -liconv... " >&6; }
19077if ${ac_cv_lib_iconv_libiconv_open+:} false; then :
19078  $as_echo_n "(cached) " >&6
19079else
19080  ac_check_lib_save_LIBS=$LIBS
19081LIBS="-liconv  $LIBS"
19082cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19083/* end confdefs.h.  */
19084
19085/* Override any GCC internal prototype to avoid an error.
19086   Use char because int might match the return type of a GCC
19087   builtin and then its argument prototype would still apply.  */
19088#ifdef __cplusplus
19089extern "C"
19090#endif
19091char libiconv_open ();
19092int
19093main ()
19094{
19095return libiconv_open ();
19096  ;
19097  return 0;
19098}
19099_ACEOF
19100if ac_fn_c_try_link "$LINENO"; then :
19101  ac_cv_lib_iconv_libiconv_open=yes
19102else
19103  ac_cv_lib_iconv_libiconv_open=no
19104fi
19105rm -f core conftest.err conftest.$ac_objext \
19106    conftest$ac_exeext conftest.$ac_ext
19107LIBS=$ac_check_lib_save_LIBS
19108fi
19109{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_iconv_libiconv_open" >&5
19110$as_echo "$ac_cv_lib_iconv_libiconv_open" >&6; }
19111if test "x$ac_cv_lib_iconv_libiconv_open" = xyes; then :
19112  cat >>confdefs.h <<_ACEOF
19113#define HAVE_LIBICONV 1
19114_ACEOF
19115
19116  LIBS="-liconv $LIBS"
19117
19118fi
19119
19120
19121else
19122
19123                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: bindtextdomain() not found.  Disabling NLS." >&5
19124$as_echo "$as_me: WARNING: bindtextdomain() not found.  Disabling NLS." >&2;}
19125                      enable_nls="no"
19126
19127fi
19128
19129    fi
19130    if test "$enable_nls" = "yes"; then
19131
19132$as_echo "#define ENABLE_NLS 1" >>confdefs.h
19133
19134      USE_NLS="yes"
19135    fi
19136  fi
19137fi
19138
19139
19140
19141GETTEXT_CODESET=\#
19142NO_GETTEXT_CODESET=\#
19143if test $USE_NLS = "yes"; then
19144   for ac_func in bind_textdomain_codeset
19145do :
19146  ac_fn_c_check_func "$LINENO" "bind_textdomain_codeset" "ac_cv_func_bind_textdomain_codeset"
19147if test "x$ac_cv_func_bind_textdomain_codeset" = xyes; then :
19148  cat >>confdefs.h <<_ACEOF
19149#define HAVE_BIND_TEXTDOMAIN_CODESET 1
19150_ACEOF
19151  GETTEXT_CODESET=""
19152else
19153   NO_GETTEXT_CODESET=""
19154fi
19155done
19156
19157fi
19158
19159
19160
19161# Check if we are using GNU gettext.
19162GNU_GETTEXT=no
19163MSGFMTFLAGS=''
19164if test $USE_NLS = "yes"; then
19165   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we are using GNU gettext" >&5
19166$as_echo_n "checking if we are using GNU gettext... " >&6; }
19167   if $MSGFMT --version 2>&1 | $EGREP GNU > /dev/null; then
19168      GNU_GETTEXT=yes
19169      MSGFMTFLAGS='-c'
19170   fi
19171   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNU_GETTEXT" >&5
19172$as_echo "$GNU_GETTEXT" >&6; }
19173fi
19174
19175
19176
19177libmagic_found=no
19178
19179
19180# Check whether --with-libmagic was given.
19181if test "${with_libmagic+set}" = set; then :
19182  withval=$with_libmagic;
19183  if test "$withval" = "yes" ; then
19184    ac_fn_c_check_header_mongrel "$LINENO" "magic.h" "ac_cv_header_magic_h" "$ac_includes_default"
19185if test "x$ac_cv_header_magic_h" = xyes; then :
19186
19187      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for magic_open in -lmagic" >&5
19188$as_echo_n "checking for magic_open in -lmagic... " >&6; }
19189if ${ac_cv_lib_magic_magic_open+:} false; then :
19190  $as_echo_n "(cached) " >&6
19191else
19192  ac_check_lib_save_LIBS=$LIBS
19193LIBS="-lmagic  $LIBS"
19194cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19195/* end confdefs.h.  */
19196
19197/* Override any GCC internal prototype to avoid an error.
19198   Use char because int might match the return type of a GCC
19199   builtin and then its argument prototype would still apply.  */
19200#ifdef __cplusplus
19201extern "C"
19202#endif
19203char magic_open ();
19204int
19205main ()
19206{
19207return magic_open ();
19208  ;
19209  return 0;
19210}
19211_ACEOF
19212if ac_fn_c_try_link "$LINENO"; then :
19213  ac_cv_lib_magic_magic_open=yes
19214else
19215  ac_cv_lib_magic_magic_open=no
19216fi
19217rm -f core conftest.err conftest.$ac_objext \
19218    conftest$ac_exeext conftest.$ac_ext
19219LIBS=$ac_check_lib_save_LIBS
19220fi
19221{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_magic_magic_open" >&5
19222$as_echo "$ac_cv_lib_magic_magic_open" >&6; }
19223if test "x$ac_cv_lib_magic_magic_open" = xyes; then :
19224  libmagic_found="builtin"
19225fi
19226
19227
19228fi
19229
19230
19231    libmagic_prefix="the default locations"
19232  elif test "$withval" != "no"; then
19233    libmagic_prefix=$withval
19234    save_cppflags="$CPPFLAGS"
19235    CPPFLAGS="$CPPFLAGS -I$libmagic_prefix/include"
19236    for ac_header in magic.h
19237do :
19238  ac_fn_c_check_header_mongrel "$LINENO" "magic.h" "ac_cv_header_magic_h" "$ac_includes_default"
19239if test "x$ac_cv_header_magic_h" = xyes; then :
19240  cat >>confdefs.h <<_ACEOF
19241#define HAVE_MAGIC_H 1
19242_ACEOF
19243
19244      save_ldflags="$LDFLAGS"
19245      LDFLAGS="-L$libmagic_prefix/lib $LDFLAGS"
19246      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for magic_open in -lmagic" >&5
19247$as_echo_n "checking for magic_open in -lmagic... " >&6; }
19248if ${ac_cv_lib_magic_magic_open+:} false; then :
19249  $as_echo_n "(cached) " >&6
19250else
19251  ac_check_lib_save_LIBS=$LIBS
19252LIBS="-lmagic  $LIBS"
19253cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19254/* end confdefs.h.  */
19255
19256/* Override any GCC internal prototype to avoid an error.
19257   Use char because int might match the return type of a GCC
19258   builtin and then its argument prototype would still apply.  */
19259#ifdef __cplusplus
19260extern "C"
19261#endif
19262char magic_open ();
19263int
19264main ()
19265{
19266return magic_open ();
19267  ;
19268  return 0;
19269}
19270_ACEOF
19271if ac_fn_c_try_link "$LINENO"; then :
19272  ac_cv_lib_magic_magic_open=yes
19273else
19274  ac_cv_lib_magic_magic_open=no
19275fi
19276rm -f core conftest.err conftest.$ac_objext \
19277    conftest$ac_exeext conftest.$ac_ext
19278LIBS=$ac_check_lib_save_LIBS
19279fi
19280{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_magic_magic_open" >&5
19281$as_echo "$ac_cv_lib_magic_magic_open" >&6; }
19282if test "x$ac_cv_lib_magic_magic_open" = xyes; then :
19283  libmagic_found="yes"
19284fi
19285
19286      LDFLAGS="$save_ldflags"
19287
19288fi
19289
19290done
19291
19292    CPPFLAGS="$save_cppflags"
19293  fi
19294  if test "$withval" != "no" && test "$libmagic_found" = "no"; then
19295    as_fn_error $? "--with-libmagic requested, but libmagic not found at $libmagic_prefix" "$LINENO" 5
19296  fi
19297
19298else
19299
19300  ac_fn_c_check_header_mongrel "$LINENO" "magic.h" "ac_cv_header_magic_h" "$ac_includes_default"
19301if test "x$ac_cv_header_magic_h" = xyes; then :
19302
19303    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for magic_open in -lmagic" >&5
19304$as_echo_n "checking for magic_open in -lmagic... " >&6; }
19305if ${ac_cv_lib_magic_magic_open+:} false; then :
19306  $as_echo_n "(cached) " >&6
19307else
19308  ac_check_lib_save_LIBS=$LIBS
19309LIBS="-lmagic  $LIBS"
19310cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19311/* end confdefs.h.  */
19312
19313/* Override any GCC internal prototype to avoid an error.
19314   Use char because int might match the return type of a GCC
19315   builtin and then its argument prototype would still apply.  */
19316#ifdef __cplusplus
19317extern "C"
19318#endif
19319char magic_open ();
19320int
19321main ()
19322{
19323return magic_open ();
19324  ;
19325  return 0;
19326}
19327_ACEOF
19328if ac_fn_c_try_link "$LINENO"; then :
19329  ac_cv_lib_magic_magic_open=yes
19330else
19331  ac_cv_lib_magic_magic_open=no
19332fi
19333rm -f core conftest.err conftest.$ac_objext \
19334    conftest$ac_exeext conftest.$ac_ext
19335LIBS=$ac_check_lib_save_LIBS
19336fi
19337{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_magic_magic_open" >&5
19338$as_echo "$ac_cv_lib_magic_magic_open" >&6; }
19339if test "x$ac_cv_lib_magic_magic_open" = xyes; then :
19340  libmagic_found="builtin"
19341fi
19342
19343
19344fi
19345
19346
19347
19348fi
19349
19350
19351if test "$libmagic_found" != "no"; then
19352
19353$as_echo "#define SVN_HAVE_LIBMAGIC 1" >>confdefs.h
19354
19355  SVN_MAGIC_LIBS="-lmagic"
19356fi
19357
19358if test "$libmagic_found" = "yes"; then
19359  SVN_MAGIC_INCLUDES="-I$libmagic_prefix/include"
19360  LDFLAGS="$LDFLAGS `
19361  input_flags="-L$libmagic_prefix/lib"
19362  output_flags=""
19363  filtered_dirs="/lib /lib64 /usr/lib /usr/lib64"
19364  for flag in $input_flags; do
19365    filter="no"
19366    for dir in $filtered_dirs; do
19367      if test "$flag" = "-L$dir" || test "$flag" = "-L$dir/"; then
19368        filter="yes"
19369        break
19370      fi
19371    done
19372    if test "$filter" = "no"; then
19373      output_flags="$output_flags $flag"
19374    fi
19375  done
19376  if test -n "$output_flags"; then
19377    printf "%s" "${output_flags# }"
19378  fi
19379`"
19380fi
19381
19382
19383
19384
19385
19386
19387# Check whether --with-kwallet was given.
19388if test "${with_kwallet+set}" = set; then :
19389  withval=$with_kwallet; svn_lib_kwallet="$withval"
19390else
19391  svn_lib_kwallet=no
19392fi
19393
19394
19395  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to look for KWallet" >&5
19396$as_echo_n "checking whether to look for KWallet... " >&6; }
19397  if test "$svn_lib_kwallet" != "no"; then
19398    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19399$as_echo "yes" >&6; }
19400    if test "$svn_enable_shared" = "yes"; then
19401      if test "$APR_HAS_DSO" = "yes"; then
19402        if test -n "$PKG_CONFIG"; then
19403          if test "$HAVE_DBUS" = "yes"; then
19404            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for QtCore, QtDBus, QtGui" >&5
19405$as_echo_n "checking for QtCore, QtDBus, QtGui... " >&6; }
19406            if $PKG_CONFIG --exists QtCore QtDBus QtGui; then
19407              { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19408$as_echo "yes" >&6; }
19409              if test "$svn_lib_kwallet" != "yes"; then
19410                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kde4-config" >&5
19411$as_echo_n "checking for kde4-config... " >&6; }
19412                KDE4_CONFIG="$svn_lib_kwallet/bin/kde4-config"
19413                if test -f "$KDE4_CONFIG" && test -x "$KDE4_CONFIG"; then
19414                  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19415$as_echo "yes" >&6; }
19416                else
19417                  KDE4_CONFIG=""
19418                  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19419$as_echo "no" >&6; }
19420                fi
19421              else
19422                # Extract the first word of "kde4-config", so it can be a program name with args.
19423set dummy kde4-config; ac_word=$2
19424{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19425$as_echo_n "checking for $ac_word... " >&6; }
19426if ${ac_cv_path_KDE4_CONFIG+:} false; then :
19427  $as_echo_n "(cached) " >&6
19428else
19429  case $KDE4_CONFIG in
19430  [\\/]* | ?:[\\/]*)
19431  ac_cv_path_KDE4_CONFIG="$KDE4_CONFIG" # Let the user override the test with a path.
19432  ;;
19433  *)
19434  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19435for as_dir in $PATH
19436do
19437  IFS=$as_save_IFS
19438  test -z "$as_dir" && as_dir=.
19439    for ac_exec_ext in '' $ac_executable_extensions; do
19440  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19441    ac_cv_path_KDE4_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19442    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19443    break 2
19444  fi
19445done
19446  done
19447IFS=$as_save_IFS
19448
19449  ;;
19450esac
19451fi
19452KDE4_CONFIG=$ac_cv_path_KDE4_CONFIG
19453if test -n "$KDE4_CONFIG"; then
19454  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $KDE4_CONFIG" >&5
19455$as_echo "$KDE4_CONFIG" >&6; }
19456else
19457  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19458$as_echo "no" >&6; }
19459fi
19460
19461
19462              fi
19463              if test -n "$KDE4_CONFIG"; then
19464                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for KWallet" >&5
19465$as_echo_n "checking for KWallet... " >&6; }
19466                old_CXXFLAGS="$CXXFLAGS"
19467                old_LDFLAGS="$LDFLAGS"
19468                old_LIBS="$LIBS"
19469                for d in `$PKG_CONFIG --cflags QtCore QtDBus QtGui`; do
19470                  if test -n "`echo "$d" | $EGREP -- '^-D[^[:space:]]*'`"; then
19471                    CPPFLAGS="$CPPFLAGS $d"
19472                  fi
19473                done
19474                qt_include_dirs="`$PKG_CONFIG --cflags-only-I QtCore QtDBus QtGui`"
19475                kde_dir="`$KDE4_CONFIG --prefix`"
19476                SVN_KWALLET_INCLUDES="$DBUS_CPPFLAGS $qt_include_dirs -I$kde_dir/include"
19477                qt_libs_other_options="`$PKG_CONFIG --libs-only-other QtCore QtDBus QtGui`"
19478                SVN_KWALLET_LIBS="$DBUS_LIBS -lQtCore -lQtDBus -lQtGui -lkdecore -lkdeui $qt_libs_other_options"
19479                CXXFLAGS="$CXXFLAGS $SVN_KWALLET_INCLUDES"
19480                LIBS="$LIBS $SVN_KWALLET_LIBS"
19481                qt_lib_dirs="`$PKG_CONFIG --libs-only-L QtCore QtDBus QtGui`"
19482                kde_lib_suffix="`$KDE4_CONFIG --libsuffix`"
19483                LDFLAGS="$old_LDFLAGS `
19484  input_flags="$qt_lib_dirs -L$kde_dir/lib$kde_lib_suffix"
19485  output_flags=""
19486  filtered_dirs="/lib /lib64 /usr/lib /usr/lib64"
19487  for flag in $input_flags; do
19488    filter="no"
19489    for dir in $filtered_dirs; do
19490      if test "$flag" = "-L$dir" || test "$flag" = "-L$dir/"; then
19491        filter="yes"
19492        break
19493      fi
19494    done
19495    if test "$filter" = "no"; then
19496      output_flags="$output_flags $flag"
19497    fi
19498  done
19499  if test -n "$output_flags"; then
19500    printf "%s" "${output_flags# }"
19501  fi
19502`"
19503                ac_ext=cpp
19504ac_cpp='$CXXCPP $CPPFLAGS'
19505ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19506ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19507ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19508
19509                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19510/* end confdefs.h.  */
19511
19512#include <kwallet.h>
19513int main()
19514{KWallet::Wallet::walletList();}
19515_ACEOF
19516if ac_fn_cxx_try_link "$LINENO"; then :
19517  svn_lib_kwallet="yes"
19518else
19519  svn_lib_kwallet="no"
19520fi
19521rm -f core conftest.err conftest.$ac_objext \
19522    conftest$ac_exeext conftest.$ac_ext
19523                ac_ext=c
19524ac_cpp='$CPP $CPPFLAGS'
19525ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19526ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19527ac_compiler_gnu=$ac_cv_c_compiler_gnu
19528
19529                if test "$svn_lib_kwallet" = "yes"; then
19530                  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19531$as_echo "yes" >&6; }
19532                  CXXFLAGS="$old_CXXFLAGS"
19533                  LIBS="$old_LIBS"
19534                else
19535                  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19536$as_echo "no" >&6; }
19537                  as_fn_error $? "cannot find KWallet" "$LINENO" 5
19538                fi
19539              else
19540                as_fn_error $? "cannot find kde4-config" "$LINENO" 5
19541              fi
19542            else
19543              { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19544$as_echo "no" >&6; }
19545              as_fn_error $? "cannot find QtCore, QtDBus, QtGui" "$LINENO" 5
19546            fi
19547          else
19548            as_fn_error $? "cannot find D-Bus" "$LINENO" 5
19549          fi
19550        else
19551          as_fn_error $? "cannot find pkg-config" "$LINENO" 5
19552        fi
19553      else
19554        as_fn_error $? "APR does not have support for DSOs" "$LINENO" 5
19555      fi
19556    else
19557      as_fn_error $? "--with-kwallet conflicts with --disable-shared" "$LINENO" 5
19558    fi
19559  else
19560    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19561$as_echo "no" >&6; }
19562  fi
19563
19564
19565
19566
19567if test "$svn_lib_kwallet" = "yes"; then
19568
19569$as_echo "#define SVN_HAVE_KWALLET 1" >>confdefs.h
19570
19571fi
19572
19573# Check whether --enable-plaintext-password-storage was given.
19574if test "${enable_plaintext_password_storage+set}" = set; then :
19575  enableval=$enable_plaintext_password_storage;
19576   if test "$enableval" = "no"; then
19577      { $as_echo "$as_me:${as_lineno-$LINENO}: Disabling plaintext password/passphrase storage" >&5
19578$as_echo "$as_me: Disabling plaintext password/passphrase storage" >&6;}
19579
19580$as_echo "#define SVN_DISABLE_PLAINTEXT_PASSWORD_STORAGE 1" >>confdefs.h
19581
19582   fi
19583
19584fi
19585
19586
19587
19588INSTALL_STATIC_RULES="install-bin install-docs"
19589INSTALL_RULES="install-fsmod-lib install-ramod-lib install-lib install-include install-static"
19590INSTALL_RULES="$INSTALL_RULES $INSTALL_APACHE_RULE"
19591BUILD_RULES="fsmod-lib ramod-lib lib bin test sub-test $BUILD_APACHE_RULE tools"
19592
19593if test "$svn_lib_berkeley_db" = "yes"; then
19594  BUILD_RULES="$BUILD_RULES bdb-lib bdb-test"
19595  INSTALL_RULES="`echo $INSTALL_RULES | $SED 's/install-fsmod-lib/install-fsmod-lib install-bdb-lib/'`"
19596  INSTALL_STATIC_RULES="$INSTALL_STATIC_RULES install-bdb-lib"
19597  BDB_TEST_DEPS="\$(BDB_TEST_DEPS)"
19598  BDB_TEST_PROGRAMS="\$(BDB_TEST_PROGRAMS)"
19599fi
19600
19601if test "$svn_lib_serf" = "yes"; then
19602  BUILD_RULES="$BUILD_RULES serf-lib"
19603  INSTALL_RULES="`echo $INSTALL_RULES | $SED 's/install-ramod-lib/install-ramod-lib install-serf-lib/'`"
19604  INSTALL_STATIC_RULES="$INSTALL_STATIC_RULES install-serf-lib"
19605fi
19606
19607if test "$svn_lib_kwallet" = "yes"; then
19608  BUILD_RULES="$BUILD_RULES kwallet-lib"
19609  INSTALL_RULES="`echo $INSTALL_RULES | $SED 's/install-lib/install-lib install-kwallet-lib/'`"
19610  INSTALL_STATIC_RULES="$INSTALL_STATIC_RULES install-kwallet-lib"
19611fi
19612
19613if test "$found_gnome_keyring" = "yes"; then
19614  BUILD_RULES="$BUILD_RULES gnome-keyring-lib"
19615  INSTALL_RULES="`echo $INSTALL_RULES | $SED 's/install-lib/install-lib install-gnome-keyring-lib/'`"
19616  INSTALL_STATIC_RULES="$INSTALL_STATIC_RULES install-gnome-keyring-lib"
19617fi
19618
19619if test "$USE_NLS" = "yes"; then
19620  BUILD_RULES="$BUILD_RULES locale"
19621  INSTALL_RULES="$INSTALL_RULES install-locale"
19622fi
19623
19624
19625
19626
19627
19628
19629
19630
19631{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
19632$as_echo_n "checking for ANSI C header files... " >&6; }
19633if ${ac_cv_header_stdc+:} false; then :
19634  $as_echo_n "(cached) " >&6
19635else
19636  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19637/* end confdefs.h.  */
19638#include <stdlib.h>
19639#include <stdarg.h>
19640#include <string.h>
19641#include <float.h>
19642
19643int
19644main ()
19645{
19646
19647  ;
19648  return 0;
19649}
19650_ACEOF
19651if ac_fn_c_try_compile "$LINENO"; then :
19652  ac_cv_header_stdc=yes
19653else
19654  ac_cv_header_stdc=no
19655fi
19656rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19657
19658if test $ac_cv_header_stdc = yes; then
19659  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
19660  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19661/* end confdefs.h.  */
19662#include <string.h>
19663
19664_ACEOF
19665if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19666  $EGREP "memchr" >/dev/null 2>&1; then :
19667
19668else
19669  ac_cv_header_stdc=no
19670fi
19671rm -f conftest*
19672
19673fi
19674
19675if test $ac_cv_header_stdc = yes; then
19676  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
19677  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19678/* end confdefs.h.  */
19679#include <stdlib.h>
19680
19681_ACEOF
19682if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19683  $EGREP "free" >/dev/null 2>&1; then :
19684
19685else
19686  ac_cv_header_stdc=no
19687fi
19688rm -f conftest*
19689
19690fi
19691
19692if test $ac_cv_header_stdc = yes; then
19693  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
19694  if test "$cross_compiling" = yes; then :
19695  :
19696else
19697  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19698/* end confdefs.h.  */
19699#include <ctype.h>
19700#include <stdlib.h>
19701#if ((' ' & 0x0FF) == 0x020)
19702# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
19703# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
19704#else
19705# define ISLOWER(c) \
19706		   (('a' <= (c) && (c) <= 'i') \
19707		     || ('j' <= (c) && (c) <= 'r') \
19708		     || ('s' <= (c) && (c) <= 'z'))
19709# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
19710#endif
19711
19712#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
19713int
19714main ()
19715{
19716  int i;
19717  for (i = 0; i < 256; i++)
19718    if (XOR (islower (i), ISLOWER (i))
19719	|| toupper (i) != TOUPPER (i))
19720      return 2;
19721  return 0;
19722}
19723_ACEOF
19724if ac_fn_c_try_run "$LINENO"; then :
19725
19726else
19727  ac_cv_header_stdc=no
19728fi
19729rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19730  conftest.$ac_objext conftest.beam conftest.$ac_ext
19731fi
19732
19733fi
19734fi
19735{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
19736$as_echo "$ac_cv_header_stdc" >&6; }
19737if test $ac_cv_header_stdc = yes; then
19738
19739$as_echo "#define STDC_HEADERS 1" >>confdefs.h
19740
19741fi
19742
19743
19744
19745{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
19746$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
19747if ${ac_cv_c_const+:} false; then :
19748  $as_echo_n "(cached) " >&6
19749else
19750  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19751/* end confdefs.h.  */
19752
19753int
19754main ()
19755{
19756
19757#ifndef __cplusplus
19758  /* Ultrix mips cc rejects this sort of thing.  */
19759  typedef int charset[2];
19760  const charset cs = { 0, 0 };
19761  /* SunOS 4.1.1 cc rejects this.  */
19762  char const *const *pcpcc;
19763  char **ppc;
19764  /* NEC SVR4.0.2 mips cc rejects this.  */
19765  struct point {int x, y;};
19766  static struct point const zero = {0,0};
19767  /* AIX XL C 1.02.0.0 rejects this.
19768     It does not let you subtract one const X* pointer from another in
19769     an arm of an if-expression whose if-part is not a constant
19770     expression */
19771  const char *g = "string";
19772  pcpcc = &g + (g ? g-g : 0);
19773  /* HPUX 7.0 cc rejects these. */
19774  ++pcpcc;
19775  ppc = (char**) pcpcc;
19776  pcpcc = (char const *const *) ppc;
19777  { /* SCO 3.2v4 cc rejects this sort of thing.  */
19778    char tx;
19779    char *t = &tx;
19780    char const *s = 0 ? (char *) 0 : (char const *) 0;
19781
19782    *t++ = 0;
19783    if (s) return 0;
19784  }
19785  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
19786    int x[] = {25, 17};
19787    const int *foo = &x[0];
19788    ++foo;
19789  }
19790  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
19791    typedef const int *iptr;
19792    iptr p = 0;
19793    ++p;
19794  }
19795  { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
19796       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
19797    struct s { int j; const int *ap[3]; } bx;
19798    struct s *b = &bx; b->j = 5;
19799  }
19800  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
19801    const int foo = 10;
19802    if (!foo) return 0;
19803  }
19804  return !cs[0] && !zero.x;
19805#endif
19806
19807  ;
19808  return 0;
19809}
19810_ACEOF
19811if ac_fn_c_try_compile "$LINENO"; then :
19812  ac_cv_c_const=yes
19813else
19814  ac_cv_c_const=no
19815fi
19816rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19817fi
19818{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
19819$as_echo "$ac_cv_c_const" >&6; }
19820if test $ac_cv_c_const = no; then
19821
19822$as_echo "#define const /**/" >>confdefs.h
19823
19824fi
19825
19826
19827ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
19828if test "x$ac_cv_type_size_t" = xyes; then :
19829
19830else
19831
19832cat >>confdefs.h <<_ACEOF
19833#define size_t unsigned int
19834_ACEOF
19835
19836fi
19837
19838
19839
19840
19841{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
19842$as_echo_n "checking for working memcmp... " >&6; }
19843if ${ac_cv_func_memcmp_working+:} false; then :
19844  $as_echo_n "(cached) " >&6
19845else
19846  if test "$cross_compiling" = yes; then :
19847  ac_cv_func_memcmp_working=no
19848else
19849  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19850/* end confdefs.h.  */
19851$ac_includes_default
19852int
19853main ()
19854{
19855
19856  /* Some versions of memcmp are not 8-bit clean.  */
19857  char c0 = '\100', c1 = '\200', c2 = '\201';
19858  if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
19859    return 1;
19860
19861  /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
19862     or more and with at least one buffer not starting on a 4-byte boundary.
19863     William Lewis provided this test program.   */
19864  {
19865    char foo[21];
19866    char bar[21];
19867    int i;
19868    for (i = 0; i < 4; i++)
19869      {
19870	char *a = foo + i;
19871	char *b = bar + i;
19872	strcpy (a, "--------01111111");
19873	strcpy (b, "--------10000000");
19874	if (memcmp (a, b, 16) >= 0)
19875	  return 1;
19876      }
19877    return 0;
19878  }
19879
19880  ;
19881  return 0;
19882}
19883_ACEOF
19884if ac_fn_c_try_run "$LINENO"; then :
19885  ac_cv_func_memcmp_working=yes
19886else
19887  ac_cv_func_memcmp_working=no
19888fi
19889rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19890  conftest.$ac_objext conftest.beam conftest.$ac_ext
19891fi
19892
19893fi
19894{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
19895$as_echo "$ac_cv_func_memcmp_working" >&6; }
19896test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
19897  *" memcmp.$ac_objext "* ) ;;
19898  *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
19899 ;;
19900esac
19901
19902
19903
19904for ac_func in vprintf
19905do :
19906  ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
19907if test "x$ac_cv_func_vprintf" = xyes; then :
19908  cat >>confdefs.h <<_ACEOF
19909#define HAVE_VPRINTF 1
19910_ACEOF
19911
19912ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
19913if test "x$ac_cv_func__doprnt" = xyes; then :
19914
19915$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
19916
19917fi
19918
19919fi
19920done
19921
19922
19923
19924for ac_func in symlink readlink
19925do :
19926  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19927ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19928if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
19929  cat >>confdefs.h <<_ACEOF
19930#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19931_ACEOF
19932
19933fi
19934done
19935
19936
19937for ac_header in sys/utsname.h
19938do :
19939  ac_fn_c_check_header_mongrel "$LINENO" "sys/utsname.h" "ac_cv_header_sys_utsname_h" "$ac_includes_default"
19940if test "x$ac_cv_header_sys_utsname_h" = xyes; then :
19941  cat >>confdefs.h <<_ACEOF
19942#define HAVE_SYS_UTSNAME_H 1
19943_ACEOF
19944 for ac_func in uname
19945do :
19946  ac_fn_c_check_func "$LINENO" "uname" "ac_cv_func_uname"
19947if test "x$ac_cv_func_uname" = xyes; then :
19948  cat >>confdefs.h <<_ACEOF
19949#define HAVE_UNAME 1
19950_ACEOF
19951
19952fi
19953done
19954
19955fi
19956
19957done
19958
19959
19960ac_fn_c_check_header_mongrel "$LINENO" "termios.h" "ac_cv_header_termios_h" "$ac_includes_default"
19961if test "x$ac_cv_header_termios_h" = xyes; then :
19962
19963  for ac_func in tcgetattr tcsetattr
19964do :
19965  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19966ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19967if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
19968  cat >>confdefs.h <<_ACEOF
19969#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19970_ACEOF
19971
19972
19973$as_echo "#define HAVE_TERMIOS_H 1" >>confdefs.h
19974
19975
19976fi
19977done
19978
19979
19980fi
19981
19982
19983
19984
19985
19986# Check whether --with-openssl was given.
19987if test "${with_openssl+set}" = set; then :
19988  withval=$with_openssl;
19989fi
19990
19991
19992# Check whether --enable-debug was given.
19993if test "${enable_debug+set}" = set; then :
19994  enableval=$enable_debug;
19995    if test "$enableval" = "yes" ; then
19996      enable_debugging="yes"
19997    else
19998      enable_debugging="no"
19999    fi
20000
20001else
20002
20003    # Neither --enable-debug nor --disable-debug was passed.
20004    enable_debugging="maybe"
20005
20006fi
20007
20008
20009# Check whether --enable-optimize was given.
20010if test "${enable_optimize+set}" = set; then :
20011  enableval=$enable_optimize;
20012    if test "$enableval" = "yes" ; then
20013      enable_optimization="yes"
20014    else
20015      enable_optimization="no"
20016    fi
20017
20018else
20019
20020    # Neither --enable-optimize nor --disable-optimize was passed.
20021    enable_optimization="maybe"
20022
20023fi
20024
20025
20026# Check whether --enable-disallowing-of-undefined-references was given.
20027if test "${enable_disallowing_of_undefined_references+set}" = set; then :
20028  enableval=$enable_disallowing_of_undefined_references;
20029fi
20030
20031if test "$enable_disallowing_of_undefined_references" != "yes" && test "`uname`" != "Linux"; then
20032  enable_disallowing_of_undefined_references="no"
20033fi
20034if test "$enable_disallowing_of_undefined_references" != "no"; then
20035  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -Wl,--no-undefined" >&5
20036$as_echo_n "checking for -Wl,--no-undefined... " >&6; }
20037  old_LDFLAGS="$LDFLAGS"
20038  LDFLAGS="$LDFLAGS -Wl,--no-undefined"
20039  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20040/* end confdefs.h.  */
20041int main(){;}
20042_ACEOF
20043if ac_fn_c_try_link "$LINENO"; then :
20044  svn_wl_no_undefined="yes"
20045else
20046  svn_wl_no_undefined="no"
20047fi
20048rm -f core conftest.err conftest.$ac_objext \
20049    conftest$ac_exeext conftest.$ac_ext
20050  LDFLAGS="$old_LDFLAGS"
20051  if test "$svn_wl_no_undefined" = "yes"; then
20052    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20053$as_echo "yes" >&6; }
20054    for library_dir in "$abs_srcdir/subversion/libsvn_"*; do
20055      eval "`basename $library_dir`_LDFLAGS=-Wl,--no-undefined"
20056    done
20057  else
20058    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20059$as_echo "no" >&6; }
20060    if test "$enable_disallowing_of_undefined_references" = "yes"; then
20061      as_fn_error $? "--enable-disallowing-of-undefined-references explicitly requested, but -Wl,--no-undefined not supported" "$LINENO" 5
20062    fi
20063  fi
20064fi
20065
20066
20067
20068
20069
20070
20071
20072
20073
20074
20075
20076
20077
20078
20079
20080
20081
20082
20083# Check whether --enable-maintainer-mode was given.
20084if test "${enable_maintainer_mode+set}" = set; then :
20085  enableval=$enable_maintainer_mode;
20086    if test "$enableval" = "yes" ; then
20087      if test "$enable_debugging" = "no" ; then
20088        as_fn_error $? "Can't have --disable-debug and --enable-maintainer-mode" "$LINENO" 5
20089      fi
20090      enable_debugging=yes
20091
20092                  if test "$GCC" = "yes"; then
20093        { $as_echo "$as_me:${as_lineno-$LINENO}: maintainer-mode: adding GCC warning flags" >&5
20094$as_echo "$as_me: maintainer-mode: adding GCC warning flags" >&6;}
20095
20096
20097                CFLAGS_KEEP="$CFLAGS"
20098        CFLAGS=""
20099
20100
20101  _svn_xxflags__save="$CFLAGS"
20102  ac_ext=c
20103ac_cpp='$CPP $CPPFLAGS'
20104ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20105ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20106ac_compiler_gnu=$ac_cv_c_compiler_gnu
20107
20108  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -Werror=implicit-function-declaration" >&5
20109$as_echo_n "checking if $CC accepts -Werror=implicit-function-declaration... " >&6; }
20110  CFLAGS="-Werror=implicit-function-declaration $CFLAGS"
20111        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20112/* end confdefs.h.  */
20113int main(void){return 0;}
20114_ACEOF
20115if ac_fn_c_try_link "$LINENO"; then :
20116
20117    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20118$as_echo "yes" >&6; }
20119
20120
20121else
20122
20123    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20124$as_echo "no" >&6; }
20125    CFLAGS="$_svn_xxflags__save"
20126
20127
20128fi
20129rm -f core conftest.err conftest.$ac_objext \
20130    conftest$ac_exeext conftest.$ac_ext
20131  ac_ext=c
20132ac_cpp='$CPP $CPPFLAGS'
20133ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20134ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20135ac_compiler_gnu=$ac_cv_c_compiler_gnu
20136
20137
20138
20139  _svn_xxflags__save="$CFLAGS"
20140  ac_ext=c
20141ac_cpp='$CPP $CPPFLAGS'
20142ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20143ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20144ac_compiler_gnu=$ac_cv_c_compiler_gnu
20145
20146  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -Werror=declaration-after-statement" >&5
20147$as_echo_n "checking if $CC accepts -Werror=declaration-after-statement... " >&6; }
20148  CFLAGS="-Werror=declaration-after-statement $CFLAGS"
20149        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20150/* end confdefs.h.  */
20151int main(void){return 0;}
20152_ACEOF
20153if ac_fn_c_try_link "$LINENO"; then :
20154
20155    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20156$as_echo "yes" >&6; }
20157
20158
20159else
20160
20161    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20162$as_echo "no" >&6; }
20163    CFLAGS="$_svn_xxflags__save"
20164
20165
20166fi
20167rm -f core conftest.err conftest.$ac_objext \
20168    conftest$ac_exeext conftest.$ac_ext
20169  ac_ext=c
20170ac_cpp='$CPP $CPPFLAGS'
20171ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20172ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20173ac_compiler_gnu=$ac_cv_c_compiler_gnu
20174
20175
20176
20177  _svn_xxflags__save="$CFLAGS"
20178  ac_ext=c
20179ac_cpp='$CPP $CPPFLAGS'
20180ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20181ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20182ac_compiler_gnu=$ac_cv_c_compiler_gnu
20183
20184  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -Wextra-tokens" >&5
20185$as_echo_n "checking if $CC accepts -Wextra-tokens... " >&6; }
20186  CFLAGS="-Wextra-tokens $CFLAGS"
20187        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20188/* end confdefs.h.  */
20189int main(void){return 0;}
20190_ACEOF
20191if ac_fn_c_try_link "$LINENO"; then :
20192
20193    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20194$as_echo "yes" >&6; }
20195
20196
20197else
20198
20199    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20200$as_echo "no" >&6; }
20201    CFLAGS="$_svn_xxflags__save"
20202
20203
20204fi
20205rm -f core conftest.err conftest.$ac_objext \
20206    conftest$ac_exeext conftest.$ac_ext
20207  ac_ext=c
20208ac_cpp='$CPP $CPPFLAGS'
20209ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20210ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20211ac_compiler_gnu=$ac_cv_c_compiler_gnu
20212
20213
20214
20215  _svn_xxflags__save="$CFLAGS"
20216  ac_ext=c
20217ac_cpp='$CPP $CPPFLAGS'
20218ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20219ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20220ac_compiler_gnu=$ac_cv_c_compiler_gnu
20221
20222  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -Wnewline-eof" >&5
20223$as_echo_n "checking if $CC accepts -Wnewline-eof... " >&6; }
20224  CFLAGS="-Wnewline-eof $CFLAGS"
20225        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20226/* end confdefs.h.  */
20227int main(void){return 0;}
20228_ACEOF
20229if ac_fn_c_try_link "$LINENO"; then :
20230
20231    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20232$as_echo "yes" >&6; }
20233
20234
20235else
20236
20237    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20238$as_echo "no" >&6; }
20239    CFLAGS="$_svn_xxflags__save"
20240
20241
20242fi
20243rm -f core conftest.err conftest.$ac_objext \
20244    conftest$ac_exeext conftest.$ac_ext
20245  ac_ext=c
20246ac_cpp='$CPP $CPPFLAGS'
20247ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20248ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20249ac_compiler_gnu=$ac_cv_c_compiler_gnu
20250
20251
20252
20253  _svn_xxflags__save="$CFLAGS"
20254  ac_ext=c
20255ac_cpp='$CPP $CPPFLAGS'
20256ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20257ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20258ac_compiler_gnu=$ac_cv_c_compiler_gnu
20259
20260  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -Wshorten-64-to-32" >&5
20261$as_echo_n "checking if $CC accepts -Wshorten-64-to-32... " >&6; }
20262  CFLAGS="-Wshorten-64-to-32 $CFLAGS"
20263        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20264/* end confdefs.h.  */
20265int main(void){return 0;}
20266_ACEOF
20267if ac_fn_c_try_link "$LINENO"; then :
20268
20269    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20270$as_echo "yes" >&6; }
20271
20272
20273else
20274
20275    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20276$as_echo "no" >&6; }
20277    CFLAGS="$_svn_xxflags__save"
20278
20279
20280fi
20281rm -f core conftest.err conftest.$ac_objext \
20282    conftest$ac_exeext conftest.$ac_ext
20283  ac_ext=c
20284ac_cpp='$CPP $CPPFLAGS'
20285ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20286ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20287ac_compiler_gnu=$ac_cv_c_compiler_gnu
20288
20289
20290
20291  _svn_xxflags__save="$CFLAGS"
20292  ac_ext=c
20293ac_cpp='$CPP $CPPFLAGS'
20294ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20295ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20296ac_compiler_gnu=$ac_cv_c_compiler_gnu
20297
20298  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -Wold-style-definition" >&5
20299$as_echo_n "checking if $CC accepts -Wold-style-definition... " >&6; }
20300  CFLAGS="-Wold-style-definition $CFLAGS"
20301        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20302/* end confdefs.h.  */
20303int main(void){return 0;}
20304_ACEOF
20305if ac_fn_c_try_link "$LINENO"; then :
20306
20307    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20308$as_echo "yes" >&6; }
20309
20310
20311else
20312
20313    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20314$as_echo "no" >&6; }
20315    CFLAGS="$_svn_xxflags__save"
20316
20317
20318fi
20319rm -f core conftest.err conftest.$ac_objext \
20320    conftest$ac_exeext conftest.$ac_ext
20321  ac_ext=c
20322ac_cpp='$CPP $CPPFLAGS'
20323ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20324ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20325ac_compiler_gnu=$ac_cv_c_compiler_gnu
20326
20327
20328
20329  _svn_xxflags__save="$CFLAGS"
20330  ac_ext=c
20331ac_cpp='$CPP $CPPFLAGS'
20332ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20333ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20334ac_compiler_gnu=$ac_cv_c_compiler_gnu
20335
20336  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -Wno-system-headers" >&5
20337$as_echo_n "checking if $CC accepts -Wno-system-headers... " >&6; }
20338  CFLAGS="-Wno-system-headers $CFLAGS"
20339        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20340/* end confdefs.h.  */
20341int main(void){return 0;}
20342_ACEOF
20343if ac_fn_c_try_link "$LINENO"; then :
20344
20345    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20346$as_echo "yes" >&6; }
20347
20348
20349else
20350
20351    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20352$as_echo "no" >&6; }
20353    CFLAGS="$_svn_xxflags__save"
20354
20355
20356fi
20357rm -f core conftest.err conftest.$ac_objext \
20358    conftest$ac_exeext conftest.$ac_ext
20359  ac_ext=c
20360ac_cpp='$CPP $CPPFLAGS'
20361ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20362ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20363ac_compiler_gnu=$ac_cv_c_compiler_gnu
20364
20365
20366
20367  _svn_xxflags__save="$CFLAGS"
20368  ac_ext=c
20369ac_cpp='$CPP $CPPFLAGS'
20370ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20371ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20372ac_compiler_gnu=$ac_cv_c_compiler_gnu
20373
20374  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -Wno-format-nonliteral" >&5
20375$as_echo_n "checking if $CC accepts -Wno-format-nonliteral... " >&6; }
20376  CFLAGS="-Wno-format-nonliteral $CFLAGS"
20377        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20378/* end confdefs.h.  */
20379int main(void){return 0;}
20380_ACEOF
20381if ac_fn_c_try_link "$LINENO"; then :
20382
20383    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20384$as_echo "yes" >&6; }
20385
20386
20387else
20388
20389    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20390$as_echo "no" >&6; }
20391    CFLAGS="$_svn_xxflags__save"
20392
20393
20394fi
20395rm -f core conftest.err conftest.$ac_objext \
20396    conftest$ac_exeext conftest.$ac_ext
20397  ac_ext=c
20398ac_cpp='$CPP $CPPFLAGS'
20399ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20400ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20401ac_compiler_gnu=$ac_cv_c_compiler_gnu
20402
20403
20404
20405        CMAINTAINERFLAGS="$CFLAGS $CMAINTAINERFLAGS"
20406        CFLAGS="$CFLAGS_KEEP"
20407
20408                CMAINTAINERFLAGS="-Wall -Wpointer-arith -Wwrite-strings -Wshadow -Wformat=2 -Wunused -Waggregate-return -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wno-multichar -Wredundant-decls -Wnested-externs -Winline -Wno-long-long $CMAINTAINERFLAGS"
20409      fi
20410      if test "$GXX" = "yes"; then
20411        { $as_echo "$as_me:${as_lineno-$LINENO}: maintainer-mode: adding G++ warning flags" >&5
20412$as_echo "$as_me: maintainer-mode: adding G++ warning flags" >&6;}
20413
20414                CXXFLAGS_KEEP="$CXXFLAGS"
20415        CXXFLAGS=""
20416
20417
20418  _svn_xxflags__save="$CXXFLAGS"
20419  ac_ext=cpp
20420ac_cpp='$CXXCPP $CPPFLAGS'
20421ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20422ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20423ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20424
20425  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CXX accepts -Wextra-tokens" >&5
20426$as_echo_n "checking if $CXX accepts -Wextra-tokens... " >&6; }
20427  CXXFLAGS="-Wextra-tokens $CXXFLAGS"
20428        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20429/* end confdefs.h.  */
20430int main(){}
20431_ACEOF
20432if ac_fn_cxx_try_link "$LINENO"; then :
20433
20434    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20435$as_echo "yes" >&6; }
20436
20437
20438else
20439
20440    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20441$as_echo "no" >&6; }
20442    CXXFLAGS="$_svn_xxflags__save"
20443
20444
20445fi
20446rm -f core conftest.err conftest.$ac_objext \
20447    conftest$ac_exeext conftest.$ac_ext
20448  ac_ext=c
20449ac_cpp='$CPP $CPPFLAGS'
20450ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20451ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20452ac_compiler_gnu=$ac_cv_c_compiler_gnu
20453
20454
20455
20456  _svn_xxflags__save="$CXXFLAGS"
20457  ac_ext=cpp
20458ac_cpp='$CXXCPP $CPPFLAGS'
20459ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20460ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20461ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20462
20463  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CXX accepts -Wnewline-eof" >&5
20464$as_echo_n "checking if $CXX accepts -Wnewline-eof... " >&6; }
20465  CXXFLAGS="-Wnewline-eof $CXXFLAGS"
20466        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20467/* end confdefs.h.  */
20468int main(){}
20469_ACEOF
20470if ac_fn_cxx_try_link "$LINENO"; then :
20471
20472    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20473$as_echo "yes" >&6; }
20474
20475
20476else
20477
20478    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20479$as_echo "no" >&6; }
20480    CXXFLAGS="$_svn_xxflags__save"
20481
20482
20483fi
20484rm -f core conftest.err conftest.$ac_objext \
20485    conftest$ac_exeext conftest.$ac_ext
20486  ac_ext=c
20487ac_cpp='$CPP $CPPFLAGS'
20488ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20489ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20490ac_compiler_gnu=$ac_cv_c_compiler_gnu
20491
20492
20493
20494  _svn_xxflags__save="$CXXFLAGS"
20495  ac_ext=cpp
20496ac_cpp='$CXXCPP $CPPFLAGS'
20497ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20498ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20499ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20500
20501  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CXX accepts -Wshorten-64-to-32" >&5
20502$as_echo_n "checking if $CXX accepts -Wshorten-64-to-32... " >&6; }
20503  CXXFLAGS="-Wshorten-64-to-32 $CXXFLAGS"
20504        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20505/* end confdefs.h.  */
20506int main(){}
20507_ACEOF
20508if ac_fn_cxx_try_link "$LINENO"; then :
20509
20510    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20511$as_echo "yes" >&6; }
20512
20513
20514else
20515
20516    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20517$as_echo "no" >&6; }
20518    CXXFLAGS="$_svn_xxflags__save"
20519
20520
20521fi
20522rm -f core conftest.err conftest.$ac_objext \
20523    conftest$ac_exeext conftest.$ac_ext
20524  ac_ext=c
20525ac_cpp='$CPP $CPPFLAGS'
20526ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20527ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20528ac_compiler_gnu=$ac_cv_c_compiler_gnu
20529
20530
20531
20532  _svn_xxflags__save="$CXXFLAGS"
20533  ac_ext=cpp
20534ac_cpp='$CXXCPP $CPPFLAGS'
20535ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20536ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20537ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20538
20539  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CXX accepts -Wno-system-headers" >&5
20540$as_echo_n "checking if $CXX accepts -Wno-system-headers... " >&6; }
20541  CXXFLAGS="-Wno-system-headers $CXXFLAGS"
20542        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20543/* end confdefs.h.  */
20544int main(){}
20545_ACEOF
20546if ac_fn_cxx_try_link "$LINENO"; then :
20547
20548    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20549$as_echo "yes" >&6; }
20550
20551
20552else
20553
20554    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20555$as_echo "no" >&6; }
20556    CXXFLAGS="$_svn_xxflags__save"
20557
20558
20559fi
20560rm -f core conftest.err conftest.$ac_objext \
20561    conftest$ac_exeext conftest.$ac_ext
20562  ac_ext=c
20563ac_cpp='$CPP $CPPFLAGS'
20564ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20565ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20566ac_compiler_gnu=$ac_cv_c_compiler_gnu
20567
20568
20569
20570        CXXMAINTAINERFLAGS="$CXXFLAGS $CXXMAINTAINERFLAGS"
20571        CXXFLAGS="$CXXFLAGS_KEEP"
20572
20573                CXXMAINTAINERFLAGS="-Wall -Wpointer-arith -Wwrite-strings -Wshadow -Wunused -Wunreachable-code $CXXMAINTAINERFLAGS"
20574      fi
20575    fi
20576
20577fi
20578
20579
20580if test "$enable_debugging" = "yes" ; then
20581      if test "$enable_optimization" != "yes"; then
20582    { $as_echo "$as_me:${as_lineno-$LINENO}: Disabling optimizations for debugging" >&5
20583$as_echo "$as_me: Disabling optimizations for debugging" >&6;}
20584    CFLAGS="`echo $CFLAGS' ' | $SED -e 's/-O[^ ]* //g'`"
20585    CXXFLAGS="`echo $CXXFLAGS' ' | $SED -e 's/-O[^ ]* //g'`"
20586  fi
20587    if test -z "`echo $CUSERFLAGS' ' | $EGREP -- '-g[0-9]? '`"; then
20588    { $as_echo "$as_me:${as_lineno-$LINENO}: Enabling debugging for C" >&5
20589$as_echo "$as_me: Enabling debugging for C" >&6;}
20590    CFLAGS="`echo $CFLAGS' ' | $SED -e 's/-g[0-9] //g' -e 's/-g //g'`"
20591
20592  _svn_xxflags__save="$CFLAGS"
20593  ac_ext=c
20594ac_cpp='$CPP $CPPFLAGS'
20595ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20596ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20597ac_compiler_gnu=$ac_cv_c_compiler_gnu
20598
20599  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -fno-inline" >&5
20600$as_echo_n "checking if $CC accepts -fno-inline... " >&6; }
20601  CFLAGS="-fno-inline $CFLAGS"
20602        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20603/* end confdefs.h.  */
20604int main(void){return 0;}
20605_ACEOF
20606if ac_fn_c_try_link "$LINENO"; then :
20607
20608    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20609$as_echo "yes" >&6; }
20610
20611
20612else
20613
20614    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20615$as_echo "no" >&6; }
20616    CFLAGS="$_svn_xxflags__save"
20617
20618
20619fi
20620rm -f core conftest.err conftest.$ac_objext \
20621    conftest$ac_exeext conftest.$ac_ext
20622  ac_ext=c
20623ac_cpp='$CPP $CPPFLAGS'
20624ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20625ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20626ac_compiler_gnu=$ac_cv_c_compiler_gnu
20627
20628
20629
20630  _svn_xxflags__save="$CFLAGS"
20631  ac_ext=c
20632ac_cpp='$CPP $CPPFLAGS'
20633ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20634ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20635ac_compiler_gnu=$ac_cv_c_compiler_gnu
20636
20637  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -fno-omit-frame-pointer" >&5
20638$as_echo_n "checking if $CC accepts -fno-omit-frame-pointer... " >&6; }
20639  CFLAGS="-fno-omit-frame-pointer $CFLAGS"
20640        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20641/* end confdefs.h.  */
20642int main(void){return 0;}
20643_ACEOF
20644if ac_fn_c_try_link "$LINENO"; then :
20645
20646    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20647$as_echo "yes" >&6; }
20648
20649
20650else
20651
20652    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20653$as_echo "no" >&6; }
20654    CFLAGS="$_svn_xxflags__save"
20655
20656
20657fi
20658rm -f core conftest.err conftest.$ac_objext \
20659    conftest$ac_exeext conftest.$ac_ext
20660  ac_ext=c
20661ac_cpp='$CPP $CPPFLAGS'
20662ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20663ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20664ac_compiler_gnu=$ac_cv_c_compiler_gnu
20665
20666
20667
20668  _svn_xxflags__save="$CFLAGS"
20669  ac_ext=c
20670ac_cpp='$CPP $CPPFLAGS'
20671ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20672ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20673ac_compiler_gnu=$ac_cv_c_compiler_gnu
20674
20675  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -g3" >&5
20676$as_echo_n "checking if $CC accepts -g3... " >&6; }
20677  CFLAGS="-g3 $CFLAGS"
20678        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20679/* end confdefs.h.  */
20680int main(void){return 0;}
20681_ACEOF
20682if ac_fn_c_try_link "$LINENO"; then :
20683
20684    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20685$as_echo "yes" >&6; }
20686
20687
20688else
20689
20690    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20691$as_echo "no" >&6; }
20692    CFLAGS="$_svn_xxflags__save"
20693
20694
20695  _svn_xxflags__save="$CFLAGS"
20696  ac_ext=c
20697ac_cpp='$CPP $CPPFLAGS'
20698ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20699ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20700ac_compiler_gnu=$ac_cv_c_compiler_gnu
20701
20702  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -g2" >&5
20703$as_echo_n "checking if $CC accepts -g2... " >&6; }
20704  CFLAGS="-g2 $CFLAGS"
20705        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20706/* end confdefs.h.  */
20707int main(void){return 0;}
20708_ACEOF
20709if ac_fn_c_try_link "$LINENO"; then :
20710
20711    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20712$as_echo "yes" >&6; }
20713
20714
20715else
20716
20717    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20718$as_echo "no" >&6; }
20719    CFLAGS="$_svn_xxflags__save"
20720
20721
20722  _svn_xxflags__save="$CFLAGS"
20723  ac_ext=c
20724ac_cpp='$CPP $CPPFLAGS'
20725ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20726ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20727ac_compiler_gnu=$ac_cv_c_compiler_gnu
20728
20729  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -g" >&5
20730$as_echo_n "checking if $CC accepts -g... " >&6; }
20731  CFLAGS="-g $CFLAGS"
20732        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20733/* end confdefs.h.  */
20734int main(void){return 0;}
20735_ACEOF
20736if ac_fn_c_try_link "$LINENO"; then :
20737
20738    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20739$as_echo "yes" >&6; }
20740
20741
20742else
20743
20744    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20745$as_echo "no" >&6; }
20746    CFLAGS="$_svn_xxflags__save"
20747
20748
20749fi
20750rm -f core conftest.err conftest.$ac_objext \
20751    conftest$ac_exeext conftest.$ac_ext
20752  ac_ext=c
20753ac_cpp='$CPP $CPPFLAGS'
20754ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20755ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20756ac_compiler_gnu=$ac_cv_c_compiler_gnu
20757
20758
20759
20760fi
20761rm -f core conftest.err conftest.$ac_objext \
20762    conftest$ac_exeext conftest.$ac_ext
20763  ac_ext=c
20764ac_cpp='$CPP $CPPFLAGS'
20765ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20766ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20767ac_compiler_gnu=$ac_cv_c_compiler_gnu
20768
20769
20770
20771fi
20772rm -f core conftest.err conftest.$ac_objext \
20773    conftest$ac_exeext conftest.$ac_ext
20774  ac_ext=c
20775ac_cpp='$CPP $CPPFLAGS'
20776ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20777ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20778ac_compiler_gnu=$ac_cv_c_compiler_gnu
20779
20780
20781  fi
20782  if test -z "`echo $CXXUSERFLAGS' ' | $EGREP -- '-g[0-9]? '`"; then
20783    { $as_echo "$as_me:${as_lineno-$LINENO}: Enabling debugging for C++" >&5
20784$as_echo "$as_me: Enabling debugging for C++" >&6;}
20785    CXXFLAGS="`echo $CXXFLAGS' ' | $SED -e 's/-g[0-9] //g' -e 's/-g //g'`"
20786
20787  _svn_xxflags__save="$CXXFLAGS"
20788  ac_ext=cpp
20789ac_cpp='$CXXCPP $CPPFLAGS'
20790ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20791ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20792ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20793
20794  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CXX accepts -fno-inline" >&5
20795$as_echo_n "checking if $CXX accepts -fno-inline... " >&6; }
20796  CXXFLAGS="-fno-inline $CXXFLAGS"
20797        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20798/* end confdefs.h.  */
20799int main(){}
20800_ACEOF
20801if ac_fn_cxx_try_link "$LINENO"; then :
20802
20803    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20804$as_echo "yes" >&6; }
20805
20806
20807else
20808
20809    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20810$as_echo "no" >&6; }
20811    CXXFLAGS="$_svn_xxflags__save"
20812
20813
20814fi
20815rm -f core conftest.err conftest.$ac_objext \
20816    conftest$ac_exeext conftest.$ac_ext
20817  ac_ext=c
20818ac_cpp='$CPP $CPPFLAGS'
20819ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20820ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20821ac_compiler_gnu=$ac_cv_c_compiler_gnu
20822
20823
20824
20825  _svn_xxflags__save="$CXXFLAGS"
20826  ac_ext=cpp
20827ac_cpp='$CXXCPP $CPPFLAGS'
20828ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20829ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20830ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20831
20832  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CXX accepts -fno-omit-frame-pointer" >&5
20833$as_echo_n "checking if $CXX accepts -fno-omit-frame-pointer... " >&6; }
20834  CXXFLAGS="-fno-omit-frame-pointer $CXXFLAGS"
20835        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20836/* end confdefs.h.  */
20837int main(){}
20838_ACEOF
20839if ac_fn_cxx_try_link "$LINENO"; then :
20840
20841    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20842$as_echo "yes" >&6; }
20843
20844
20845else
20846
20847    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20848$as_echo "no" >&6; }
20849    CXXFLAGS="$_svn_xxflags__save"
20850
20851
20852fi
20853rm -f core conftest.err conftest.$ac_objext \
20854    conftest$ac_exeext conftest.$ac_ext
20855  ac_ext=c
20856ac_cpp='$CPP $CPPFLAGS'
20857ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20858ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20859ac_compiler_gnu=$ac_cv_c_compiler_gnu
20860
20861
20862
20863  _svn_xxflags__save="$CXXFLAGS"
20864  ac_ext=cpp
20865ac_cpp='$CXXCPP $CPPFLAGS'
20866ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20867ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20868ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20869
20870  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CXX accepts -g3" >&5
20871$as_echo_n "checking if $CXX accepts -g3... " >&6; }
20872  CXXFLAGS="-g3 $CXXFLAGS"
20873        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20874/* end confdefs.h.  */
20875int main(){}
20876_ACEOF
20877if ac_fn_cxx_try_link "$LINENO"; then :
20878
20879    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20880$as_echo "yes" >&6; }
20881
20882
20883else
20884
20885    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20886$as_echo "no" >&6; }
20887    CXXFLAGS="$_svn_xxflags__save"
20888
20889
20890  _svn_xxflags__save="$CXXFLAGS"
20891  ac_ext=cpp
20892ac_cpp='$CXXCPP $CPPFLAGS'
20893ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20894ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20895ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20896
20897  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CXX accepts -g2" >&5
20898$as_echo_n "checking if $CXX accepts -g2... " >&6; }
20899  CXXFLAGS="-g2 $CXXFLAGS"
20900        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20901/* end confdefs.h.  */
20902int main(){}
20903_ACEOF
20904if ac_fn_cxx_try_link "$LINENO"; then :
20905
20906    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20907$as_echo "yes" >&6; }
20908
20909
20910else
20911
20912    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20913$as_echo "no" >&6; }
20914    CXXFLAGS="$_svn_xxflags__save"
20915
20916
20917  _svn_xxflags__save="$CXXFLAGS"
20918  ac_ext=cpp
20919ac_cpp='$CXXCPP $CPPFLAGS'
20920ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20921ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20922ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20923
20924  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CXX accepts -g" >&5
20925$as_echo_n "checking if $CXX accepts -g... " >&6; }
20926  CXXFLAGS="-g $CXXFLAGS"
20927        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20928/* end confdefs.h.  */
20929int main(){}
20930_ACEOF
20931if ac_fn_cxx_try_link "$LINENO"; then :
20932
20933    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20934$as_echo "yes" >&6; }
20935
20936
20937else
20938
20939    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20940$as_echo "no" >&6; }
20941    CXXFLAGS="$_svn_xxflags__save"
20942
20943
20944fi
20945rm -f core conftest.err conftest.$ac_objext \
20946    conftest$ac_exeext conftest.$ac_ext
20947  ac_ext=cpp
20948ac_cpp='$CXXCPP $CPPFLAGS'
20949ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20950ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20951ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20952
20953
20954
20955fi
20956rm -f core conftest.err conftest.$ac_objext \
20957    conftest$ac_exeext conftest.$ac_ext
20958  ac_ext=cpp
20959ac_cpp='$CXXCPP $CPPFLAGS'
20960ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20961ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20962ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20963
20964
20965
20966fi
20967rm -f core conftest.err conftest.$ac_objext \
20968    conftest$ac_exeext conftest.$ac_ext
20969  ac_ext=c
20970ac_cpp='$CPP $CPPFLAGS'
20971ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20972ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20973ac_compiler_gnu=$ac_cv_c_compiler_gnu
20974
20975
20976  fi
20977      CFLAGS="$CFLAGS -DSVN_DEBUG -DAP_DEBUG"
20978  CXXFLAGS="$CXXFLAGS -DSVN_DEBUG -DAP_DEBUG"
20979elif test "$enable_debugging" = "no" ; then
20980  { $as_echo "$as_me:${as_lineno-$LINENO}: Disabling debugging" >&5
20981$as_echo "$as_me: Disabling debugging" >&6;}
20982  CFLAGS="`echo $CFLAGS' ' | $SED -e 's/-g[0-9] //g' -e 's/-g //g'`"
20983  CXXFLAGS="`echo $CXXFLAGS' ' | $SED -e 's/-g[0-9] //g' -e 's/-g //g'`"
20984    CFLAGS="$CFLAGS -DNDEBUG"
20985  CXXFLAGS="$CXXFLAGS -DNDEBUG"
20986# elif test "$enable_debugging" = "maybe" ; then
20987#   # do nothing
20988fi
20989
20990if test "$enable_optimization" = "yes"; then
20991    if test -z "`echo $CUSERFLAGS' ' | $EGREP -- '-O[^ ]* '`"; then
20992    CFLAGS="`echo $CFLAGS' ' | $SED -e 's/-O[^ ]* //g'`"
20993    if test "$enable_debugging" = "yes"; then
20994      { $as_echo "$as_me:${as_lineno-$LINENO}: Enabling optimizations for C (with debugging enabled)" >&5
20995$as_echo "$as_me: Enabling optimizations for C (with debugging enabled)" >&6;}
20996
20997  _svn_xxflags__save="$CFLAGS"
20998  ac_ext=c
20999ac_cpp='$CPP $CPPFLAGS'
21000ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21001ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21002ac_compiler_gnu=$ac_cv_c_compiler_gnu
21003
21004  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -O1" >&5
21005$as_echo_n "checking if $CC accepts -O1... " >&6; }
21006  CFLAGS="-O1 $CFLAGS"
21007        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21008/* end confdefs.h.  */
21009int main(void){return 0;}
21010_ACEOF
21011if ac_fn_c_try_link "$LINENO"; then :
21012
21013    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21014$as_echo "yes" >&6; }
21015
21016
21017else
21018
21019    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21020$as_echo "no" >&6; }
21021    CFLAGS="$_svn_xxflags__save"
21022
21023
21024  _svn_xxflags__save="$CFLAGS"
21025  ac_ext=c
21026ac_cpp='$CPP $CPPFLAGS'
21027ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21028ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21029ac_compiler_gnu=$ac_cv_c_compiler_gnu
21030
21031  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -O" >&5
21032$as_echo_n "checking if $CC accepts -O... " >&6; }
21033  CFLAGS="-O $CFLAGS"
21034        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21035/* end confdefs.h.  */
21036int main(void){return 0;}
21037_ACEOF
21038if ac_fn_c_try_link "$LINENO"; then :
21039
21040    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21041$as_echo "yes" >&6; }
21042
21043
21044else
21045
21046    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21047$as_echo "no" >&6; }
21048    CFLAGS="$_svn_xxflags__save"
21049
21050
21051fi
21052rm -f core conftest.err conftest.$ac_objext \
21053    conftest$ac_exeext conftest.$ac_ext
21054  ac_ext=c
21055ac_cpp='$CPP $CPPFLAGS'
21056ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21057ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21058ac_compiler_gnu=$ac_cv_c_compiler_gnu
21059
21060
21061
21062fi
21063rm -f core conftest.err conftest.$ac_objext \
21064    conftest$ac_exeext conftest.$ac_ext
21065  ac_ext=c
21066ac_cpp='$CPP $CPPFLAGS'
21067ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21068ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21069ac_compiler_gnu=$ac_cv_c_compiler_gnu
21070
21071
21072    else
21073      { $as_echo "$as_me:${as_lineno-$LINENO}: Enabling optimizations for C" >&5
21074$as_echo "$as_me: Enabling optimizations for C" >&6;}
21075
21076  _svn_xxflags__save="$CFLAGS"
21077  ac_ext=c
21078ac_cpp='$CPP $CPPFLAGS'
21079ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21080ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21081ac_compiler_gnu=$ac_cv_c_compiler_gnu
21082
21083  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -O3" >&5
21084$as_echo_n "checking if $CC accepts -O3... " >&6; }
21085  CFLAGS="-O3 $CFLAGS"
21086        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21087/* end confdefs.h.  */
21088int main(void){return 0;}
21089_ACEOF
21090if ac_fn_c_try_link "$LINENO"; then :
21091
21092    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21093$as_echo "yes" >&6; }
21094
21095
21096else
21097
21098    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21099$as_echo "no" >&6; }
21100    CFLAGS="$_svn_xxflags__save"
21101
21102
21103  _svn_xxflags__save="$CFLAGS"
21104  ac_ext=c
21105ac_cpp='$CPP $CPPFLAGS'
21106ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21107ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21108ac_compiler_gnu=$ac_cv_c_compiler_gnu
21109
21110  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -O2" >&5
21111$as_echo_n "checking if $CC accepts -O2... " >&6; }
21112  CFLAGS="-O2 $CFLAGS"
21113        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21114/* end confdefs.h.  */
21115int main(void){return 0;}
21116_ACEOF
21117if ac_fn_c_try_link "$LINENO"; then :
21118
21119    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21120$as_echo "yes" >&6; }
21121
21122
21123else
21124
21125    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21126$as_echo "no" >&6; }
21127    CFLAGS="$_svn_xxflags__save"
21128
21129
21130  _svn_xxflags__save="$CFLAGS"
21131  ac_ext=c
21132ac_cpp='$CPP $CPPFLAGS'
21133ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21134ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21135ac_compiler_gnu=$ac_cv_c_compiler_gnu
21136
21137  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -O1" >&5
21138$as_echo_n "checking if $CC accepts -O1... " >&6; }
21139  CFLAGS="-O1 $CFLAGS"
21140        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21141/* end confdefs.h.  */
21142int main(void){return 0;}
21143_ACEOF
21144if ac_fn_c_try_link "$LINENO"; then :
21145
21146    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21147$as_echo "yes" >&6; }
21148
21149
21150else
21151
21152    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21153$as_echo "no" >&6; }
21154    CFLAGS="$_svn_xxflags__save"
21155
21156
21157  _svn_xxflags__save="$CFLAGS"
21158  ac_ext=c
21159ac_cpp='$CPP $CPPFLAGS'
21160ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21161ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21162ac_compiler_gnu=$ac_cv_c_compiler_gnu
21163
21164  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -O" >&5
21165$as_echo_n "checking if $CC accepts -O... " >&6; }
21166  CFLAGS="-O $CFLAGS"
21167        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21168/* end confdefs.h.  */
21169int main(void){return 0;}
21170_ACEOF
21171if ac_fn_c_try_link "$LINENO"; then :
21172
21173    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21174$as_echo "yes" >&6; }
21175
21176
21177else
21178
21179    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21180$as_echo "no" >&6; }
21181    CFLAGS="$_svn_xxflags__save"
21182
21183
21184fi
21185rm -f core conftest.err conftest.$ac_objext \
21186    conftest$ac_exeext conftest.$ac_ext
21187  ac_ext=c
21188ac_cpp='$CPP $CPPFLAGS'
21189ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21190ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21191ac_compiler_gnu=$ac_cv_c_compiler_gnu
21192
21193
21194
21195fi
21196rm -f core conftest.err conftest.$ac_objext \
21197    conftest$ac_exeext conftest.$ac_ext
21198  ac_ext=c
21199ac_cpp='$CPP $CPPFLAGS'
21200ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21201ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21202ac_compiler_gnu=$ac_cv_c_compiler_gnu
21203
21204
21205
21206fi
21207rm -f core conftest.err conftest.$ac_objext \
21208    conftest$ac_exeext conftest.$ac_ext
21209  ac_ext=c
21210ac_cpp='$CPP $CPPFLAGS'
21211ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21212ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21213ac_compiler_gnu=$ac_cv_c_compiler_gnu
21214
21215
21216
21217fi
21218rm -f core conftest.err conftest.$ac_objext \
21219    conftest$ac_exeext conftest.$ac_ext
21220  ac_ext=c
21221ac_cpp='$CPP $CPPFLAGS'
21222ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21223ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21224ac_compiler_gnu=$ac_cv_c_compiler_gnu
21225
21226
21227
21228  _svn_xxflags__save="$CFLAGS"
21229  ac_ext=c
21230ac_cpp='$CPP $CPPFLAGS'
21231ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21232ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21233ac_compiler_gnu=$ac_cv_c_compiler_gnu
21234
21235  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -Wno-clobbered" >&5
21236$as_echo_n "checking if $CC accepts -Wno-clobbered... " >&6; }
21237  CFLAGS="-Wno-clobbered $CFLAGS"
21238        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21239/* end confdefs.h.  */
21240int main(void){return 0;}
21241_ACEOF
21242if ac_fn_c_try_link "$LINENO"; then :
21243
21244    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21245$as_echo "yes" >&6; }
21246
21247
21248else
21249
21250    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21251$as_echo "no" >&6; }
21252    CFLAGS="$_svn_xxflags__save"
21253
21254
21255fi
21256rm -f core conftest.err conftest.$ac_objext \
21257    conftest$ac_exeext conftest.$ac_ext
21258  ac_ext=c
21259ac_cpp='$CPP $CPPFLAGS'
21260ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21261ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21262ac_compiler_gnu=$ac_cv_c_compiler_gnu
21263
21264
21265
21266  _svn_xxflags__save="$CFLAGS"
21267  ac_ext=c
21268ac_cpp='$CPP $CPPFLAGS'
21269ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21270ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21271ac_compiler_gnu=$ac_cv_c_compiler_gnu
21272
21273  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -flto" >&5
21274$as_echo_n "checking if $CC accepts -flto... " >&6; }
21275  CFLAGS="-flto $CFLAGS"
21276        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21277/* end confdefs.h.  */
21278int main(void){return 0;}
21279_ACEOF
21280if ac_fn_c_try_link "$LINENO"; then :
21281
21282    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21283$as_echo "yes" >&6; }
21284
21285
21286else
21287
21288    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21289$as_echo "no" >&6; }
21290    CFLAGS="$_svn_xxflags__save"
21291
21292
21293fi
21294rm -f core conftest.err conftest.$ac_objext \
21295    conftest$ac_exeext conftest.$ac_ext
21296  ac_ext=c
21297ac_cpp='$CPP $CPPFLAGS'
21298ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21299ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21300ac_compiler_gnu=$ac_cv_c_compiler_gnu
21301
21302
21303    fi
21304  fi
21305  if test -z "`echo $CXXUSERFLAGS' ' | $EGREP -- '-O[^ ]* '`"; then
21306    CXXFLAGS="`echo $CXXFLAGS' ' | $SED -e 's/-O[^ ]* //g'`"
21307    if test "$enable_debugging" = "yes"; then
21308      { $as_echo "$as_me:${as_lineno-$LINENO}: Enabling optimizations for C++ (with debugging enabled)" >&5
21309$as_echo "$as_me: Enabling optimizations for C++ (with debugging enabled)" >&6;}
21310
21311  _svn_xxflags__save="$CXXFLAGS"
21312  ac_ext=cpp
21313ac_cpp='$CXXCPP $CPPFLAGS'
21314ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21315ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21316ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21317
21318  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CXX accepts -O1" >&5
21319$as_echo_n "checking if $CXX accepts -O1... " >&6; }
21320  CXXFLAGS="-O1 $CXXFLAGS"
21321        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21322/* end confdefs.h.  */
21323int main(){}
21324_ACEOF
21325if ac_fn_cxx_try_link "$LINENO"; then :
21326
21327    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21328$as_echo "yes" >&6; }
21329
21330
21331else
21332
21333    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21334$as_echo "no" >&6; }
21335    CXXFLAGS="$_svn_xxflags__save"
21336
21337
21338  _svn_xxflags__save="$CXXFLAGS"
21339  ac_ext=cpp
21340ac_cpp='$CXXCPP $CPPFLAGS'
21341ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21342ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21343ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21344
21345  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CXX accepts -O" >&5
21346$as_echo_n "checking if $CXX accepts -O... " >&6; }
21347  CXXFLAGS="-O $CXXFLAGS"
21348        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21349/* end confdefs.h.  */
21350int main(){}
21351_ACEOF
21352if ac_fn_cxx_try_link "$LINENO"; then :
21353
21354    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21355$as_echo "yes" >&6; }
21356
21357
21358else
21359
21360    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21361$as_echo "no" >&6; }
21362    CXXFLAGS="$_svn_xxflags__save"
21363
21364
21365fi
21366rm -f core conftest.err conftest.$ac_objext \
21367    conftest$ac_exeext conftest.$ac_ext
21368  ac_ext=cpp
21369ac_cpp='$CXXCPP $CPPFLAGS'
21370ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21371ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21372ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21373
21374
21375
21376fi
21377rm -f core conftest.err conftest.$ac_objext \
21378    conftest$ac_exeext conftest.$ac_ext
21379  ac_ext=c
21380ac_cpp='$CPP $CPPFLAGS'
21381ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21382ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21383ac_compiler_gnu=$ac_cv_c_compiler_gnu
21384
21385
21386    else
21387      { $as_echo "$as_me:${as_lineno-$LINENO}: Enabling optimizations for C++" >&5
21388$as_echo "$as_me: Enabling optimizations for C++" >&6;}
21389
21390  _svn_xxflags__save="$CXXFLAGS"
21391  ac_ext=cpp
21392ac_cpp='$CXXCPP $CPPFLAGS'
21393ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21394ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21395ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21396
21397  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CXX accepts -O3" >&5
21398$as_echo_n "checking if $CXX accepts -O3... " >&6; }
21399  CXXFLAGS="-O3 $CXXFLAGS"
21400        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21401/* end confdefs.h.  */
21402int main(){}
21403_ACEOF
21404if ac_fn_cxx_try_link "$LINENO"; then :
21405
21406    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21407$as_echo "yes" >&6; }
21408
21409
21410else
21411
21412    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21413$as_echo "no" >&6; }
21414    CXXFLAGS="$_svn_xxflags__save"
21415
21416
21417  _svn_xxflags__save="$CXXFLAGS"
21418  ac_ext=cpp
21419ac_cpp='$CXXCPP $CPPFLAGS'
21420ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21421ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21422ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21423
21424  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CXX accepts -O2" >&5
21425$as_echo_n "checking if $CXX accepts -O2... " >&6; }
21426  CXXFLAGS="-O2 $CXXFLAGS"
21427        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21428/* end confdefs.h.  */
21429int main(){}
21430_ACEOF
21431if ac_fn_cxx_try_link "$LINENO"; then :
21432
21433    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21434$as_echo "yes" >&6; }
21435
21436
21437else
21438
21439    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21440$as_echo "no" >&6; }
21441    CXXFLAGS="$_svn_xxflags__save"
21442
21443
21444  _svn_xxflags__save="$CXXFLAGS"
21445  ac_ext=cpp
21446ac_cpp='$CXXCPP $CPPFLAGS'
21447ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21448ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21449ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21450
21451  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CXX accepts -O1" >&5
21452$as_echo_n "checking if $CXX accepts -O1... " >&6; }
21453  CXXFLAGS="-O1 $CXXFLAGS"
21454        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21455/* end confdefs.h.  */
21456int main(){}
21457_ACEOF
21458if ac_fn_cxx_try_link "$LINENO"; then :
21459
21460    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21461$as_echo "yes" >&6; }
21462
21463
21464else
21465
21466    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21467$as_echo "no" >&6; }
21468    CXXFLAGS="$_svn_xxflags__save"
21469
21470
21471  _svn_xxflags__save="$CXXFLAGS"
21472  ac_ext=cpp
21473ac_cpp='$CXXCPP $CPPFLAGS'
21474ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21475ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21476ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21477
21478  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CXX accepts -O" >&5
21479$as_echo_n "checking if $CXX accepts -O... " >&6; }
21480  CXXFLAGS="-O $CXXFLAGS"
21481        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21482/* end confdefs.h.  */
21483int main(){}
21484_ACEOF
21485if ac_fn_cxx_try_link "$LINENO"; then :
21486
21487    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21488$as_echo "yes" >&6; }
21489
21490
21491else
21492
21493    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21494$as_echo "no" >&6; }
21495    CXXFLAGS="$_svn_xxflags__save"
21496
21497
21498fi
21499rm -f core conftest.err conftest.$ac_objext \
21500    conftest$ac_exeext conftest.$ac_ext
21501  ac_ext=cpp
21502ac_cpp='$CXXCPP $CPPFLAGS'
21503ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21504ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21505ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21506
21507
21508
21509fi
21510rm -f core conftest.err conftest.$ac_objext \
21511    conftest$ac_exeext conftest.$ac_ext
21512  ac_ext=cpp
21513ac_cpp='$CXXCPP $CPPFLAGS'
21514ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21515ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21516ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21517
21518
21519
21520fi
21521rm -f core conftest.err conftest.$ac_objext \
21522    conftest$ac_exeext conftest.$ac_ext
21523  ac_ext=cpp
21524ac_cpp='$CXXCPP $CPPFLAGS'
21525ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21526ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21527ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21528
21529
21530
21531fi
21532rm -f core conftest.err conftest.$ac_objext \
21533    conftest$ac_exeext conftest.$ac_ext
21534  ac_ext=c
21535ac_cpp='$CPP $CPPFLAGS'
21536ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21537ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21538ac_compiler_gnu=$ac_cv_c_compiler_gnu
21539
21540
21541
21542  _svn_xxflags__save="$CXXFLAGS"
21543  ac_ext=cpp
21544ac_cpp='$CXXCPP $CPPFLAGS'
21545ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21546ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21547ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21548
21549  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CXX accepts -Wno-clobbered" >&5
21550$as_echo_n "checking if $CXX accepts -Wno-clobbered... " >&6; }
21551  CXXFLAGS="-Wno-clobbered $CXXFLAGS"
21552        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21553/* end confdefs.h.  */
21554int main(){}
21555_ACEOF
21556if ac_fn_cxx_try_link "$LINENO"; then :
21557
21558    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21559$as_echo "yes" >&6; }
21560
21561
21562else
21563
21564    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21565$as_echo "no" >&6; }
21566    CXXFLAGS="$_svn_xxflags__save"
21567
21568
21569fi
21570rm -f core conftest.err conftest.$ac_objext \
21571    conftest$ac_exeext conftest.$ac_ext
21572  ac_ext=c
21573ac_cpp='$CPP $CPPFLAGS'
21574ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21575ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21576ac_compiler_gnu=$ac_cv_c_compiler_gnu
21577
21578
21579
21580  _svn_xxflags__save="$CXXFLAGS"
21581  ac_ext=cpp
21582ac_cpp='$CXXCPP $CPPFLAGS'
21583ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21584ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21585ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21586
21587  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CXX accepts -flto" >&5
21588$as_echo_n "checking if $CXX accepts -flto... " >&6; }
21589  CXXFLAGS="-flto $CXXFLAGS"
21590        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21591/* end confdefs.h.  */
21592int main(){}
21593_ACEOF
21594if ac_fn_cxx_try_link "$LINENO"; then :
21595
21596    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21597$as_echo "yes" >&6; }
21598
21599
21600else
21601
21602    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21603$as_echo "no" >&6; }
21604    CXXFLAGS="$_svn_xxflags__save"
21605
21606
21607fi
21608rm -f core conftest.err conftest.$ac_objext \
21609    conftest$ac_exeext conftest.$ac_ext
21610  ac_ext=c
21611ac_cpp='$CPP $CPPFLAGS'
21612ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21613ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21614ac_compiler_gnu=$ac_cv_c_compiler_gnu
21615
21616
21617    fi
21618  fi
21619elif test "$enable_optimization" = "no"; then
21620    { $as_echo "$as_me:${as_lineno-$LINENO}: Disabling optimizations" >&5
21621$as_echo "$as_me: Disabling optimizations" >&6;}
21622  CFLAGS="`echo $CFLAGS' ' | $SED -e 's/-O[^ ]* //g'`"
21623  CXXFLAGS="`echo $CXXFLAGS' ' | $SED -e 's/-O[^ ]* //g'`"
21624# elif test "$enable_optimization" = "maybe" ; then
21625#   # do nothing
21626fi
21627
21628{ $as_echo "$as_me:${as_lineno-$LINENO}: C compiler flags: $CFLAGS" >&5
21629$as_echo "$as_me: C compiler flags: $CFLAGS" >&6;}
21630{ $as_echo "$as_me:${as_lineno-$LINENO}:     user-defined: $CUSERFLAGS" >&5
21631$as_echo "$as_me:     user-defined: $CUSERFLAGS" >&6;}
21632{ $as_echo "$as_me:${as_lineno-$LINENO}:  maintainer-mode: $CMAINTAINERFLAGS" >&5
21633$as_echo "$as_me:  maintainer-mode: $CMAINTAINERFLAGS" >&6;}
21634{ $as_echo "$as_me:${as_lineno-$LINENO}: C++ compiler flags: $CXXFLAGS" >&5
21635$as_echo "$as_me: C++ compiler flags: $CXXFLAGS" >&6;}
21636{ $as_echo "$as_me:${as_lineno-$LINENO}:       user-defined: $CXXUSERFLAGS" >&5
21637$as_echo "$as_me:       user-defined: $CXXUSERFLAGS" >&6;}
21638{ $as_echo "$as_me:${as_lineno-$LINENO}:    maintainer-mode: $CXXMAINTAINERFLAGS" >&5
21639$as_echo "$as_me:    maintainer-mode: $CXXMAINTAINERFLAGS" >&6;}
21640
21641# Check whether --enable-full-version-match was given.
21642if test "${enable_full_version_match+set}" = set; then :
21643  enableval=$enable_full_version_match;
21644    if test "$enableval" = "no" ; then
21645      { $as_echo "$as_me:${as_lineno-$LINENO}: Disabling svn full version matching" >&5
21646$as_echo "$as_me: Disabling svn full version matching" >&6;}
21647
21648$as_echo "#define SVN_DISABLE_FULL_VERSION_MATCH 1" >>confdefs.h
21649
21650    fi
21651
21652fi
21653
21654
21655
21656# Check whether --with-editor was given.
21657if test "${with_editor+set}" = set; then :
21658  withval=$with_editor;
21659
21660    if test "$withval" = "yes" ; then
21661      as_fn_error $? "--with-editor requires an argument." "$LINENO" 5
21662    else
21663      SVN_CLIENT_EDITOR=$withval
21664
21665cat >>confdefs.h <<_ACEOF
21666#define SVN_CLIENT_EDITOR "$SVN_CLIENT_EDITOR"
21667_ACEOF
21668
21669
21670    fi
21671
21672
21673fi
21674
21675
21676
21677  zlib_found=no
21678
21679
21680# Check whether --with-zlib was given.
21681if test "${with_zlib+set}" = set; then :
21682  withval=$with_zlib;
21683    if test "$withval" = "yes" ; then
21684      ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
21685if test "x$ac_cv_header_zlib_h" = xyes; then :
21686
21687        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
21688$as_echo_n "checking for inflate in -lz... " >&6; }
21689if ${ac_cv_lib_z_inflate+:} false; then :
21690  $as_echo_n "(cached) " >&6
21691else
21692  ac_check_lib_save_LIBS=$LIBS
21693LIBS="-lz  $LIBS"
21694cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21695/* end confdefs.h.  */
21696
21697/* Override any GCC internal prototype to avoid an error.
21698   Use char because int might match the return type of a GCC
21699   builtin and then its argument prototype would still apply.  */
21700#ifdef __cplusplus
21701extern "C"
21702#endif
21703char inflate ();
21704int
21705main ()
21706{
21707return inflate ();
21708  ;
21709  return 0;
21710}
21711_ACEOF
21712if ac_fn_c_try_link "$LINENO"; then :
21713  ac_cv_lib_z_inflate=yes
21714else
21715  ac_cv_lib_z_inflate=no
21716fi
21717rm -f core conftest.err conftest.$ac_objext \
21718    conftest$ac_exeext conftest.$ac_ext
21719LIBS=$ac_check_lib_save_LIBS
21720fi
21721{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
21722$as_echo "$ac_cv_lib_z_inflate" >&6; }
21723if test "x$ac_cv_lib_z_inflate" = xyes; then :
21724  zlib_found="builtin"
21725fi
21726
21727
21728fi
21729
21730
21731    elif test "$withval" = "no" ; then
21732      as_fn_error $? "cannot compile without zlib." "$LINENO" 5
21733    else
21734      { $as_echo "$as_me:${as_lineno-$LINENO}: zlib library configuration" >&5
21735$as_echo "$as_me: zlib library configuration" >&6;}
21736      zlib_prefix=$withval
21737      save_cppflags="$CPPFLAGS"
21738      CPPFLAGS="$CPPFLAGS -I$zlib_prefix/include"
21739      for ac_header in zlib.h
21740do :
21741  ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
21742if test "x$ac_cv_header_zlib_h" = xyes; then :
21743  cat >>confdefs.h <<_ACEOF
21744#define HAVE_ZLIB_H 1
21745_ACEOF
21746
21747        save_ldflags="$LDFLAGS"
21748        LDFLAGS="$LDFLAGS -L$zlib_prefix/lib"
21749        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
21750$as_echo_n "checking for inflate in -lz... " >&6; }
21751if ${ac_cv_lib_z_inflate+:} false; then :
21752  $as_echo_n "(cached) " >&6
21753else
21754  ac_check_lib_save_LIBS=$LIBS
21755LIBS="-lz  $LIBS"
21756cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21757/* end confdefs.h.  */
21758
21759/* Override any GCC internal prototype to avoid an error.
21760   Use char because int might match the return type of a GCC
21761   builtin and then its argument prototype would still apply.  */
21762#ifdef __cplusplus
21763extern "C"
21764#endif
21765char inflate ();
21766int
21767main ()
21768{
21769return inflate ();
21770  ;
21771  return 0;
21772}
21773_ACEOF
21774if ac_fn_c_try_link "$LINENO"; then :
21775  ac_cv_lib_z_inflate=yes
21776else
21777  ac_cv_lib_z_inflate=no
21778fi
21779rm -f core conftest.err conftest.$ac_objext \
21780    conftest$ac_exeext conftest.$ac_ext
21781LIBS=$ac_check_lib_save_LIBS
21782fi
21783{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
21784$as_echo "$ac_cv_lib_z_inflate" >&6; }
21785if test "x$ac_cv_lib_z_inflate" = xyes; then :
21786  zlib_found="yes"
21787fi
21788
21789        LDFLAGS="$save_ldflags"
21790
21791fi
21792
21793done
21794
21795      CPPFLAGS="$save_cppflags"
21796    fi
21797
21798else
21799
21800    ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
21801if test "x$ac_cv_header_zlib_h" = xyes; then :
21802
21803      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
21804$as_echo_n "checking for inflate in -lz... " >&6; }
21805if ${ac_cv_lib_z_inflate+:} false; then :
21806  $as_echo_n "(cached) " >&6
21807else
21808  ac_check_lib_save_LIBS=$LIBS
21809LIBS="-lz  $LIBS"
21810cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21811/* end confdefs.h.  */
21812
21813/* Override any GCC internal prototype to avoid an error.
21814   Use char because int might match the return type of a GCC
21815   builtin and then its argument prototype would still apply.  */
21816#ifdef __cplusplus
21817extern "C"
21818#endif
21819char inflate ();
21820int
21821main ()
21822{
21823return inflate ();
21824  ;
21825  return 0;
21826}
21827_ACEOF
21828if ac_fn_c_try_link "$LINENO"; then :
21829  ac_cv_lib_z_inflate=yes
21830else
21831  ac_cv_lib_z_inflate=no
21832fi
21833rm -f core conftest.err conftest.$ac_objext \
21834    conftest$ac_exeext conftest.$ac_ext
21835LIBS=$ac_check_lib_save_LIBS
21836fi
21837{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
21838$as_echo "$ac_cv_lib_z_inflate" >&6; }
21839if test "x$ac_cv_lib_z_inflate" = xyes; then :
21840  zlib_found="builtin"
21841fi
21842
21843
21844fi
21845
21846
21847
21848fi
21849
21850
21851  if test "$zlib_found" = "no"; then
21852    as_fn_error $? "subversion requires zlib" "$LINENO" 5
21853  fi
21854
21855  if test "$zlib_found" = "yes"; then
21856    SVN_ZLIB_INCLUDES="-I$zlib_prefix/include"
21857    LDFLAGS="$LDFLAGS `
21858  input_flags="-L$zlib_prefix/lib"
21859  output_flags=""
21860  filtered_dirs="/lib /lib64 /usr/lib /usr/lib64"
21861  for flag in $input_flags; do
21862    filter="no"
21863    for dir in $filtered_dirs; do
21864      if test "$flag" = "-L$dir" || test "$flag" = "-L$dir/"; then
21865        filter="yes"
21866        break
21867      fi
21868    done
21869    if test "$filter" = "no"; then
21870      output_flags="$output_flags $flag"
21871    fi
21872  done
21873  if test -n "$output_flags"; then
21874    printf "%s" "${output_flags# }"
21875  fi
21876`"
21877  fi
21878
21879  SVN_ZLIB_LIBS="-lz"
21880
21881
21882
21883
21884
21885MOD_ACTIVATION=""
21886# Check whether --enable-mod-activation was given.
21887if test "${enable_mod_activation+set}" = set; then :
21888  enableval=$enable_mod_activation;
21889    if test "$enableval" = "yes" ; then
21890      MOD_ACTIVATION="-a"
21891      { $as_echo "$as_me:${as_lineno-$LINENO}: Enabling apache module activation" >&5
21892$as_echo "$as_me: Enabling apache module activation" >&6;}
21893    else
21894      { $as_echo "$as_me:${as_lineno-$LINENO}: Disabling apache module activation" >&5
21895$as_echo "$as_me: Disabling apache module activation" >&6;}
21896    fi
21897
21898fi
21899
21900
21901
21902
21903
21904# Check whether --enable-gcov was given.
21905if test "${enable_gcov+set}" = set; then :
21906  enableval=$enable_gcov;
21907    if test "$enableval" = "yes" ; then
21908                  if test "$GCC" = "yes"; then
21909        if test "$svn_enable_shared" = "yes" ; then
21910          as_fn_error $? "Can't have --enable-gcov without --disable-shared (we
21911                        recommend also using --enable-all-static)." "$LINENO" 5
21912        fi
21913        if test ! "$enable_all_static" = "yes" ; then
21914          { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: We recommend --enable-all-static with --enable-gcov." >&5
21915$as_echo "$as_me: WARNING: We recommend --enable-all-static with --enable-gcov." >&2;}
21916        fi
21917        { $as_echo "$as_me:${as_lineno-$LINENO}: Enabling gcov coverage testing." >&5
21918$as_echo "$as_me: Enabling gcov coverage testing." >&6;}
21919        CFLAGS="$CFLAGS -fprofile-arcs -ftest-coverage"
21920        CXXFLAGS="$CXXFLAGS -fprofile-arcs -ftest-coverage"
21921      else
21922        as_fn_error $? "We only support --enable-gcov with GCC right now." "$LINENO" 5
21923      fi
21924    fi
21925
21926fi
21927
21928
21929# Check whether --enable-gprof was given.
21930if test "${enable_gprof+set}" = set; then :
21931  enableval=$enable_gprof;
21932    if test "$enableval" = "yes" ; then
21933                  if test "$GCC" = "yes"; then
21934        if test "$svn_enable_shared" = "yes" ; then
21935          as_fn_error $? "Can't have --enable-gprof without --disable-shared (we
21936                        recommend also using --enable-all-static)." "$LINENO" 5
21937        fi
21938        if test ! "$enable_all_static" = "yes" ; then
21939          { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: We recommend --enable-all-static with --enable-gprof." >&5
21940$as_echo "$as_me: WARNING: We recommend --enable-all-static with --enable-gprof." >&2;}
21941        fi
21942        { $as_echo "$as_me:${as_lineno-$LINENO}: Enabling gprof profiling data (to gmon.out)." >&5
21943$as_echo "$as_me: Enabling gprof profiling data (to gmon.out)." >&6;}
21944        CFLAGS="$CFLAGS -pg"
21945        CXXFLAGS="$CXXFLAGS -pg"
21946        LT_LDFLAGS="$LT_LDFLAGS -pg"
21947      else
21948        as_fn_error $? "We only support --enable-gprof with GCC right now." "$LINENO" 5
21949      fi
21950    fi
21951
21952fi
21953
21954
21955
21956# Scripting and Bindings languages
21957
21958# Python: Used for testsuite, and bindings
21959
21960
21961PYTHON="`$abs_srcdir/build/find_python.sh`"
21962if test -z "$PYTHON"; then
21963  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Python 2.5 or later is required to run the testsuite" >&5
21964$as_echo "$as_me: WARNING: Python 2.5 or later is required to run the testsuite" >&2;}
21965  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: or to use the Subversion Python bindings" >&5
21966$as_echo "$as_me: WARNING: or to use the Subversion Python bindings" >&2;}
21967  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: " >&5
21968$as_echo "$as_me: WARNING: " >&2;}
21969  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: If you have a suitable Python installed, but not on the" >&5
21970$as_echo "$as_me: WARNING: If you have a suitable Python installed, but not on the" >&2;}
21971  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PATH, set the environment variable PYTHON to the full path" >&5
21972$as_echo "$as_me: WARNING: PATH, set the environment variable PYTHON to the full path" >&2;}
21973  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: to the Python executable, and re-run configure" >&5
21974$as_echo "$as_me: WARNING: to the Python executable, and re-run configure" >&2;}
21975fi
21976for ac_prog in "$PYTHON"
21977do
21978  # Extract the first word of "$ac_prog", so it can be a program name with args.
21979set dummy $ac_prog; ac_word=$2
21980{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21981$as_echo_n "checking for $ac_word... " >&6; }
21982if ${ac_cv_path_PYTHON+:} false; then :
21983  $as_echo_n "(cached) " >&6
21984else
21985  case $PYTHON in
21986  [\\/]* | ?:[\\/]*)
21987  ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
21988  ;;
21989  *)
21990  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21991for as_dir in $PATH
21992do
21993  IFS=$as_save_IFS
21994  test -z "$as_dir" && as_dir=.
21995    for ac_exec_ext in '' $ac_executable_extensions; do
21996  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21997    ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
21998    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21999    break 2
22000  fi
22001done
22002  done
22003IFS=$as_save_IFS
22004
22005  ;;
22006esac
22007fi
22008PYTHON=$ac_cv_path_PYTHON
22009if test -n "$PYTHON"; then
22010  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
22011$as_echo "$PYTHON" >&6; }
22012else
22013  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22014$as_echo "no" >&6; }
22015fi
22016
22017
22018  test -n "$PYTHON" && break
22019done
22020test -n "$PYTHON" || PYTHON="none"
22021
22022
22023# The minimum version for the JVM runtime for our Java bytecode.
22024JAVA_OLDEST_WORKING_VER='1.5'
22025# SVN_CHECK_JDK sets $JAVA_CLASSPATH
22026
22027  JAVA_OLDEST_WORKING_VER="$JAVA_OLDEST_WORKING_VER"
22028
22029# Check whether --with-jdk was given.
22030if test "${with_jdk+set}" = set; then :
22031  withval=$with_jdk;
22032    case "$withval" in
22033      "no")
22034        JDK_SUITABLE=no
22035      ;;
22036      "yes")
22037
22038  where=check
22039  JAVA_OLDEST_WORKING_VER="$JAVA_OLDEST_WORKING_VER"
22040
22041  JDK=none
22042  JAVA_BIN=none
22043  JAVADOC=none
22044  JAVAC=none
22045  JAVAH=none
22046  JAR=none
22047  JNI_INCLUDES=none
22048
22049  JDK_SUITABLE=no
22050  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JDK" >&5
22051$as_echo_n "checking for JDK... " >&6; }
22052  if test $where = check; then
22053            if test -x "$JAVA_HOME/bin/java"; then
22054      JDK="$JAVA_HOME"
22055    elif test -x "/Library/Java/Home/bin/java"; then
22056      JDK="/Library/Java/Home"
22057    elif test -x "/usr/bin/java"; then
22058      JDK="/usr"
22059    elif test -x "/usr/local/bin/java"; then
22060      JDK="/usr/local"
22061    fi
22062  else
22063    JDK=$where
22064  fi
22065
22066          os_arch="`uname`"
22067  if test "$os_arch" = "Darwin"; then
22068    OSX_VER=`/usr/bin/sw_vers | grep ProductVersion | cut -f2 | cut -d"." -f1,2`
22069
22070    if test "$OSX_VER" = "10.4"; then
22071            OSX_VER="10.4u"
22072    fi
22073
22074    OSX_SYS_JAVA_FRAMEWORK="/System/Library/Frameworks/JavaVM.framework"
22075    OSX_SDK_JAVA_FRAMEWORK="/Developer/SDKs/MacOSX$OSX_VER.sdk/System/Library"
22076    OSX_SDK_JAVA_FRAMEWORK="$OSX_SDK_JAVA_FRAMEWORK/Frameworks/JavaVM.framework"
22077  fi
22078
22079  if test "$os_arch" = "Darwin" && test "$JDK" = "/usr" &&
22080     test -d "/Library/Java/Home"; then
22081    JDK="/Library/Java/Home"
22082  fi
22083
22084  if test "$os_arch" = "Darwin" && test "$JDK" = "/Library/Java/Home"; then
22085    JRE_LIB_DIR="$OSX_SYS_JAVA_FRAMEWORK/Classes"
22086  else
22087    JRE_LIB_DIR="$JDK/jre/lib"
22088  fi
22089
22090  if test -f "$JDK/include/jni.h"; then
22091        JNI_INCLUDEDIR="$JDK/include"
22092    JDK_SUITABLE=yes
22093  elif test "$os_arch" = "Darwin" && test -e "$JDK/Headers/jni.h"; then
22094        JNI_INCLUDEDIR="$JDK/Headers"
22095    JDK_SUITABLE=yes
22096  elif test "$os_arch" = "Darwin" &&
22097       test -e "$OSX_SYS_JAVA_FRAMEWORK/Headers/jni.h"; then
22098        JNI_INCLUDEDIR="$OSX_SYS_JAVA_FRAMEWORK/Headers"
22099    JDK_SUITABLE=yes
22100  elif test "$os_arch" = "Darwin" &&
22101       test -e "$OSX_SDK_JAVA_FRAMEWORK/Headers/jni.h"; then
22102        JNI_INCLUDEDIR="$OSX_SDK_JAVA_FRAMEWORK/Headers"
22103    JDK_SUITABLE=yes
22104  else
22105    JDK_SUITABLE=no
22106  fi
22107  if test "$JDK_SUITABLE" = "yes"; then
22108    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JNI_INCLUDEDIR/jni.h" >&5
22109$as_echo "$JNI_INCLUDEDIR/jni.h" >&6; }
22110  else
22111    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22112$as_echo "no" >&6; }
22113    if test "$where" != "check"; then
22114      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no JNI header files found." >&5
22115$as_echo "$as_me: WARNING: no JNI header files found." >&2;}
22116      if test "$os_arch" = "Darwin"; then
22117        { $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
22118$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;}
22119      fi
22120    fi
22121  fi
22122
22123  if test "$JDK_SUITABLE" = "yes"; then
22124    JAVA_BIN='$(JDK)/bin'
22125
22126    JAVA="$JAVA_BIN/java"
22127    JAVAC="$JAVA_BIN/javac"
22128    JAVAH="$JAVA_BIN/javah"
22129    JAVADOC="$JAVA_BIN/javadoc"
22130    JAR="$JAVA_BIN/jar"
22131
22132        jikes_options="/usr/local/bin/jikes /usr/bin/jikes"
22133
22134# Check whether --with-jikes was given.
22135if test "${with_jikes+set}" = set; then :
22136  withval=$with_jikes;
22137        if test "$withval" != "no" && test "$withval" != "yes"; then
22138                    jikes_options="$withval $jikes_options"
22139        fi
22140        requested_jikes="$withval"  # will be 'yes' if path unspecified
22141
22142fi
22143
22144    if test "$requested_jikes" != "no"; then
22145            for jikes in $jikes_options; do
22146        if test -z "$jikes_found" && test -x "$jikes"; then
22147          jikes_found="yes"
22148          JAVAC="$jikes"
22149          JAVA_CLASSPATH="$JRE_LIB_DIR"
22150          for jar in $JRE_LIB_DIR/*.jar; do
22151            JAVA_CLASSPATH="$JAVA_CLASSPATH:$jar"
22152          done
22153        fi
22154      done
22155    fi
22156    if test -n "$requested_jikes" && test "$requested_jikes" != "no"; then
22157            if test -z "$jikes_found"; then
22158        as_fn_error $? "Could not find a usable version of Jikes" "$LINENO" 5
22159      elif test -n "$jikes_found" && test "$requested_jikes" != "yes" &&
22160           test "$JAVAC" != "$requested_jikes"; then
22161        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-jikes PATH was invalid, substitute found" >&5
22162$as_echo "$as_me: WARNING: --with-jikes PATH was invalid, substitute found" >&2;}
22163      fi
22164    fi
22165
22166        # The release for "-source" could actually be greater than that
22167    # of "-target", if we want to cross-compile for lesser JVMs.
22168    if test -z "$JAVAC_FLAGS"; then
22169      JAVAC_FLAGS="-target $JAVA_OLDEST_WORKING_VER -source 1.5"
22170      if test "$enable_debugging" = "yes"; then
22171        JAVAC_FLAGS="-g -Xlint:unchecked $JAVAC_FLAGS"
22172      fi
22173    fi
22174
22175    JNI_INCLUDES="-I$JNI_INCLUDEDIR"
22176    list="`find "$JNI_INCLUDEDIR" -type d -print`"
22177    for dir in $list; do
22178      JNI_INCLUDES="$JNI_INCLUDES -I$dir"
22179    done
22180  fi
22181
22182
22183
22184
22185
22186
22187
22188
22189
22190
22191      ;;
22192      *)
22193
22194  where=$withval
22195  JAVA_OLDEST_WORKING_VER="$JAVA_OLDEST_WORKING_VER"
22196
22197  JDK=none
22198  JAVA_BIN=none
22199  JAVADOC=none
22200  JAVAC=none
22201  JAVAH=none
22202  JAR=none
22203  JNI_INCLUDES=none
22204
22205  JDK_SUITABLE=no
22206  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JDK" >&5
22207$as_echo_n "checking for JDK... " >&6; }
22208  if test $where = check; then
22209            if test -x "$JAVA_HOME/bin/java"; then
22210      JDK="$JAVA_HOME"
22211    elif test -x "/Library/Java/Home/bin/java"; then
22212      JDK="/Library/Java/Home"
22213    elif test -x "/usr/bin/java"; then
22214      JDK="/usr"
22215    elif test -x "/usr/local/bin/java"; then
22216      JDK="/usr/local"
22217    fi
22218  else
22219    JDK=$where
22220  fi
22221
22222          os_arch="`uname`"
22223  if test "$os_arch" = "Darwin"; then
22224    OSX_VER=`/usr/bin/sw_vers | grep ProductVersion | cut -f2 | cut -d"." -f1,2`
22225
22226    if test "$OSX_VER" = "10.4"; then
22227            OSX_VER="10.4u"
22228    fi
22229
22230    OSX_SYS_JAVA_FRAMEWORK="/System/Library/Frameworks/JavaVM.framework"
22231    OSX_SDK_JAVA_FRAMEWORK="/Developer/SDKs/MacOSX$OSX_VER.sdk/System/Library"
22232    OSX_SDK_JAVA_FRAMEWORK="$OSX_SDK_JAVA_FRAMEWORK/Frameworks/JavaVM.framework"
22233  fi
22234
22235  if test "$os_arch" = "Darwin" && test "$JDK" = "/usr" &&
22236     test -d "/Library/Java/Home"; then
22237    JDK="/Library/Java/Home"
22238  fi
22239
22240  if test "$os_arch" = "Darwin" && test "$JDK" = "/Library/Java/Home"; then
22241    JRE_LIB_DIR="$OSX_SYS_JAVA_FRAMEWORK/Classes"
22242  else
22243    JRE_LIB_DIR="$JDK/jre/lib"
22244  fi
22245
22246  if test -f "$JDK/include/jni.h"; then
22247        JNI_INCLUDEDIR="$JDK/include"
22248    JDK_SUITABLE=yes
22249  elif test "$os_arch" = "Darwin" && test -e "$JDK/Headers/jni.h"; then
22250        JNI_INCLUDEDIR="$JDK/Headers"
22251    JDK_SUITABLE=yes
22252  elif test "$os_arch" = "Darwin" &&
22253       test -e "$OSX_SYS_JAVA_FRAMEWORK/Headers/jni.h"; then
22254        JNI_INCLUDEDIR="$OSX_SYS_JAVA_FRAMEWORK/Headers"
22255    JDK_SUITABLE=yes
22256  elif test "$os_arch" = "Darwin" &&
22257       test -e "$OSX_SDK_JAVA_FRAMEWORK/Headers/jni.h"; then
22258        JNI_INCLUDEDIR="$OSX_SDK_JAVA_FRAMEWORK/Headers"
22259    JDK_SUITABLE=yes
22260  else
22261    JDK_SUITABLE=no
22262  fi
22263  if test "$JDK_SUITABLE" = "yes"; then
22264    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JNI_INCLUDEDIR/jni.h" >&5
22265$as_echo "$JNI_INCLUDEDIR/jni.h" >&6; }
22266  else
22267    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22268$as_echo "no" >&6; }
22269    if test "$where" != "check"; then
22270      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no JNI header files found." >&5
22271$as_echo "$as_me: WARNING: no JNI header files found." >&2;}
22272      if test "$os_arch" = "Darwin"; then
22273        { $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
22274$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;}
22275      fi
22276    fi
22277  fi
22278
22279  if test "$JDK_SUITABLE" = "yes"; then
22280    JAVA_BIN='$(JDK)/bin'
22281
22282    JAVA="$JAVA_BIN/java"
22283    JAVAC="$JAVA_BIN/javac"
22284    JAVAH="$JAVA_BIN/javah"
22285    JAVADOC="$JAVA_BIN/javadoc"
22286    JAR="$JAVA_BIN/jar"
22287
22288        jikes_options="/usr/local/bin/jikes /usr/bin/jikes"
22289
22290# Check whether --with-jikes was given.
22291if test "${with_jikes+set}" = set; then :
22292  withval=$with_jikes;
22293        if test "$withval" != "no" && test "$withval" != "yes"; then
22294                    jikes_options="$withval $jikes_options"
22295        fi
22296        requested_jikes="$withval"  # will be 'yes' if path unspecified
22297
22298fi
22299
22300    if test "$requested_jikes" != "no"; then
22301            for jikes in $jikes_options; do
22302        if test -z "$jikes_found" && test -x "$jikes"; then
22303          jikes_found="yes"
22304          JAVAC="$jikes"
22305          JAVA_CLASSPATH="$JRE_LIB_DIR"
22306          for jar in $JRE_LIB_DIR/*.jar; do
22307            JAVA_CLASSPATH="$JAVA_CLASSPATH:$jar"
22308          done
22309        fi
22310      done
22311    fi
22312    if test -n "$requested_jikes" && test "$requested_jikes" != "no"; then
22313            if test -z "$jikes_found"; then
22314        as_fn_error $? "Could not find a usable version of Jikes" "$LINENO" 5
22315      elif test -n "$jikes_found" && test "$requested_jikes" != "yes" &&
22316           test "$JAVAC" != "$requested_jikes"; then
22317        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-jikes PATH was invalid, substitute found" >&5
22318$as_echo "$as_me: WARNING: --with-jikes PATH was invalid, substitute found" >&2;}
22319      fi
22320    fi
22321
22322        # The release for "-source" could actually be greater than that
22323    # of "-target", if we want to cross-compile for lesser JVMs.
22324    if test -z "$JAVAC_FLAGS"; then
22325      JAVAC_FLAGS="-target $JAVA_OLDEST_WORKING_VER -source 1.5"
22326      if test "$enable_debugging" = "yes"; then
22327        JAVAC_FLAGS="-g -Xlint:unchecked $JAVAC_FLAGS"
22328      fi
22329    fi
22330
22331    JNI_INCLUDES="-I$JNI_INCLUDEDIR"
22332    list="`find "$JNI_INCLUDEDIR" -type d -print`"
22333    for dir in $list; do
22334      JNI_INCLUDES="$JNI_INCLUDES -I$dir"
22335    done
22336  fi
22337
22338
22339
22340
22341
22342
22343
22344
22345
22346
22347      ;;
22348    esac
22349
22350else
22351
22352
22353  where=check
22354  JAVA_OLDEST_WORKING_VER="$JAVA_OLDEST_WORKING_VER"
22355
22356  JDK=none
22357  JAVA_BIN=none
22358  JAVADOC=none
22359  JAVAC=none
22360  JAVAH=none
22361  JAR=none
22362  JNI_INCLUDES=none
22363
22364  JDK_SUITABLE=no
22365  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JDK" >&5
22366$as_echo_n "checking for JDK... " >&6; }
22367  if test $where = check; then
22368            if test -x "$JAVA_HOME/bin/java"; then
22369      JDK="$JAVA_HOME"
22370    elif test -x "/Library/Java/Home/bin/java"; then
22371      JDK="/Library/Java/Home"
22372    elif test -x "/usr/bin/java"; then
22373      JDK="/usr"
22374    elif test -x "/usr/local/bin/java"; then
22375      JDK="/usr/local"
22376    fi
22377  else
22378    JDK=$where
22379  fi
22380
22381          os_arch="`uname`"
22382  if test "$os_arch" = "Darwin"; then
22383    OSX_VER=`/usr/bin/sw_vers | grep ProductVersion | cut -f2 | cut -d"." -f1,2`
22384
22385    if test "$OSX_VER" = "10.4"; then
22386            OSX_VER="10.4u"
22387    fi
22388
22389    OSX_SYS_JAVA_FRAMEWORK="/System/Library/Frameworks/JavaVM.framework"
22390    OSX_SDK_JAVA_FRAMEWORK="/Developer/SDKs/MacOSX$OSX_VER.sdk/System/Library"
22391    OSX_SDK_JAVA_FRAMEWORK="$OSX_SDK_JAVA_FRAMEWORK/Frameworks/JavaVM.framework"
22392  fi
22393
22394  if test "$os_arch" = "Darwin" && test "$JDK" = "/usr" &&
22395     test -d "/Library/Java/Home"; then
22396    JDK="/Library/Java/Home"
22397  fi
22398
22399  if test "$os_arch" = "Darwin" && test "$JDK" = "/Library/Java/Home"; then
22400    JRE_LIB_DIR="$OSX_SYS_JAVA_FRAMEWORK/Classes"
22401  else
22402    JRE_LIB_DIR="$JDK/jre/lib"
22403  fi
22404
22405  if test -f "$JDK/include/jni.h"; then
22406        JNI_INCLUDEDIR="$JDK/include"
22407    JDK_SUITABLE=yes
22408  elif test "$os_arch" = "Darwin" && test -e "$JDK/Headers/jni.h"; then
22409        JNI_INCLUDEDIR="$JDK/Headers"
22410    JDK_SUITABLE=yes
22411  elif test "$os_arch" = "Darwin" &&
22412       test -e "$OSX_SYS_JAVA_FRAMEWORK/Headers/jni.h"; then
22413        JNI_INCLUDEDIR="$OSX_SYS_JAVA_FRAMEWORK/Headers"
22414    JDK_SUITABLE=yes
22415  elif test "$os_arch" = "Darwin" &&
22416       test -e "$OSX_SDK_JAVA_FRAMEWORK/Headers/jni.h"; then
22417        JNI_INCLUDEDIR="$OSX_SDK_JAVA_FRAMEWORK/Headers"
22418    JDK_SUITABLE=yes
22419  else
22420    JDK_SUITABLE=no
22421  fi
22422  if test "$JDK_SUITABLE" = "yes"; then
22423    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JNI_INCLUDEDIR/jni.h" >&5
22424$as_echo "$JNI_INCLUDEDIR/jni.h" >&6; }
22425  else
22426    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22427$as_echo "no" >&6; }
22428    if test "$where" != "check"; then
22429      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no JNI header files found." >&5
22430$as_echo "$as_me: WARNING: no JNI header files found." >&2;}
22431      if test "$os_arch" = "Darwin"; then
22432        { $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
22433$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;}
22434      fi
22435    fi
22436  fi
22437
22438  if test "$JDK_SUITABLE" = "yes"; then
22439    JAVA_BIN='$(JDK)/bin'
22440
22441    JAVA="$JAVA_BIN/java"
22442    JAVAC="$JAVA_BIN/javac"
22443    JAVAH="$JAVA_BIN/javah"
22444    JAVADOC="$JAVA_BIN/javadoc"
22445    JAR="$JAVA_BIN/jar"
22446
22447        jikes_options="/usr/local/bin/jikes /usr/bin/jikes"
22448
22449# Check whether --with-jikes was given.
22450if test "${with_jikes+set}" = set; then :
22451  withval=$with_jikes;
22452        if test "$withval" != "no" && test "$withval" != "yes"; then
22453                    jikes_options="$withval $jikes_options"
22454        fi
22455        requested_jikes="$withval"  # will be 'yes' if path unspecified
22456
22457fi
22458
22459    if test "$requested_jikes" != "no"; then
22460            for jikes in $jikes_options; do
22461        if test -z "$jikes_found" && test -x "$jikes"; then
22462          jikes_found="yes"
22463          JAVAC="$jikes"
22464          JAVA_CLASSPATH="$JRE_LIB_DIR"
22465          for jar in $JRE_LIB_DIR/*.jar; do
22466            JAVA_CLASSPATH="$JAVA_CLASSPATH:$jar"
22467          done
22468        fi
22469      done
22470    fi
22471    if test -n "$requested_jikes" && test "$requested_jikes" != "no"; then
22472            if test -z "$jikes_found"; then
22473        as_fn_error $? "Could not find a usable version of Jikes" "$LINENO" 5
22474      elif test -n "$jikes_found" && test "$requested_jikes" != "yes" &&
22475           test "$JAVAC" != "$requested_jikes"; then
22476        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-jikes PATH was invalid, substitute found" >&5
22477$as_echo "$as_me: WARNING: --with-jikes PATH was invalid, substitute found" >&2;}
22478      fi
22479    fi
22480
22481        # The release for "-source" could actually be greater than that
22482    # of "-target", if we want to cross-compile for lesser JVMs.
22483    if test -z "$JAVAC_FLAGS"; then
22484      JAVAC_FLAGS="-target $JAVA_OLDEST_WORKING_VER -source 1.5"
22485      if test "$enable_debugging" = "yes"; then
22486        JAVAC_FLAGS="-g -Xlint:unchecked $JAVAC_FLAGS"
22487      fi
22488    fi
22489
22490    JNI_INCLUDES="-I$JNI_INCLUDEDIR"
22491    list="`find "$JNI_INCLUDEDIR" -type d -print`"
22492    for dir in $list; do
22493      JNI_INCLUDES="$JNI_INCLUDES -I$dir"
22494    done
22495  fi
22496
22497
22498
22499
22500
22501
22502
22503
22504
22505
22506
22507fi
22508
22509
22510
22511# Extract the first word of "perl", so it can be a program name with args.
22512set dummy perl; ac_word=$2
22513{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22514$as_echo_n "checking for $ac_word... " >&6; }
22515if ${ac_cv_path_PERL+:} false; then :
22516  $as_echo_n "(cached) " >&6
22517else
22518  case $PERL in
22519  [\\/]* | ?:[\\/]*)
22520  ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
22521  ;;
22522  *)
22523  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22524for as_dir in $PATH
22525do
22526  IFS=$as_save_IFS
22527  test -z "$as_dir" && as_dir=.
22528    for ac_exec_ext in '' $ac_executable_extensions; do
22529  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22530    ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
22531    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22532    break 2
22533  fi
22534done
22535  done
22536IFS=$as_save_IFS
22537
22538  test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
22539  ;;
22540esac
22541fi
22542PERL=$ac_cv_path_PERL
22543if test -n "$PERL"; then
22544  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
22545$as_echo "$PERL" >&6; }
22546else
22547  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22548$as_echo "no" >&6; }
22549fi
22550
22551
22552
22553if test -n "$RUBY"; then
22554  # Extract the first word of ""$RUBY"", so it can be a program name with args.
22555set dummy "$RUBY"; ac_word=$2
22556{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22557$as_echo_n "checking for $ac_word... " >&6; }
22558if ${ac_cv_path_RUBY+:} false; then :
22559  $as_echo_n "(cached) " >&6
22560else
22561  case $RUBY in
22562  [\\/]* | ?:[\\/]*)
22563  ac_cv_path_RUBY="$RUBY" # Let the user override the test with a path.
22564  ;;
22565  *)
22566  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22567for as_dir in $PATH
22568do
22569  IFS=$as_save_IFS
22570  test -z "$as_dir" && as_dir=.
22571    for ac_exec_ext in '' $ac_executable_extensions; do
22572  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22573    ac_cv_path_RUBY="$as_dir/$ac_word$ac_exec_ext"
22574    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22575    break 2
22576  fi
22577done
22578  done
22579IFS=$as_save_IFS
22580
22581  test -z "$ac_cv_path_RUBY" && ac_cv_path_RUBY="none"
22582  ;;
22583esac
22584fi
22585RUBY=$ac_cv_path_RUBY
22586if test -n "$RUBY"; then
22587  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUBY" >&5
22588$as_echo "$RUBY" >&6; }
22589else
22590  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22591$as_echo "no" >&6; }
22592fi
22593
22594
22595else
22596  for ac_prog in ruby ruby1.8 ruby18 ruby1.9 ruby1 ruby1.9.3 ruby193
22597do
22598  # Extract the first word of "$ac_prog", so it can be a program name with args.
22599set dummy $ac_prog; ac_word=$2
22600{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22601$as_echo_n "checking for $ac_word... " >&6; }
22602if ${ac_cv_path_RUBY+:} false; then :
22603  $as_echo_n "(cached) " >&6
22604else
22605  case $RUBY in
22606  [\\/]* | ?:[\\/]*)
22607  ac_cv_path_RUBY="$RUBY" # Let the user override the test with a path.
22608  ;;
22609  *)
22610  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22611for as_dir in $PATH
22612do
22613  IFS=$as_save_IFS
22614  test -z "$as_dir" && as_dir=.
22615    for ac_exec_ext in '' $ac_executable_extensions; do
22616  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22617    ac_cv_path_RUBY="$as_dir/$ac_word$ac_exec_ext"
22618    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22619    break 2
22620  fi
22621done
22622  done
22623IFS=$as_save_IFS
22624
22625  ;;
22626esac
22627fi
22628RUBY=$ac_cv_path_RUBY
22629if test -n "$RUBY"; then
22630  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUBY" >&5
22631$as_echo "$RUBY" >&6; }
22632else
22633  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22634$as_echo "no" >&6; }
22635fi
22636
22637
22638  test -n "$RUBY" && break
22639done
22640test -n "$RUBY" || RUBY="none"
22641
22642fi
22643if test "$RUBY" != "none"; then
22644  { $as_echo "$as_me:${as_lineno-$LINENO}: checking rb_hash_foreach" >&5
22645$as_echo_n "checking rb_hash_foreach... " >&6; }
22646  if "$RUBY" -r mkmf -e 'exit(have_func("rb_hash_foreach") ? 0 : 1)' >/dev/null; then
22647    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22648$as_echo "yes" >&6; }
22649    if test -n "$RDOC"; then
22650      # Extract the first word of ""$RDOC"", so it can be a program name with args.
22651set dummy "$RDOC"; ac_word=$2
22652{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22653$as_echo_n "checking for $ac_word... " >&6; }
22654if ${ac_cv_path_RDOC+:} false; then :
22655  $as_echo_n "(cached) " >&6
22656else
22657  case $RDOC in
22658  [\\/]* | ?:[\\/]*)
22659  ac_cv_path_RDOC="$RDOC" # Let the user override the test with a path.
22660  ;;
22661  *)
22662  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22663for as_dir in $PATH
22664do
22665  IFS=$as_save_IFS
22666  test -z "$as_dir" && as_dir=.
22667    for ac_exec_ext in '' $ac_executable_extensions; do
22668  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22669    ac_cv_path_RDOC="$as_dir/$ac_word$ac_exec_ext"
22670    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22671    break 2
22672  fi
22673done
22674  done
22675IFS=$as_save_IFS
22676
22677  test -z "$ac_cv_path_RDOC" && ac_cv_path_RDOC="none"
22678  ;;
22679esac
22680fi
22681RDOC=$ac_cv_path_RDOC
22682if test -n "$RDOC"; then
22683  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RDOC" >&5
22684$as_echo "$RDOC" >&6; }
22685else
22686  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22687$as_echo "no" >&6; }
22688fi
22689
22690
22691    else
22692      for ac_prog in rdoc rdoc1.8 rdoc18 rdoc1.9 rdoc19 rdoc1.9.3 rdoc193
22693do
22694  # Extract the first word of "$ac_prog", so it can be a program name with args.
22695set dummy $ac_prog; ac_word=$2
22696{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22697$as_echo_n "checking for $ac_word... " >&6; }
22698if ${ac_cv_path_RDOC+:} false; then :
22699  $as_echo_n "(cached) " >&6
22700else
22701  case $RDOC in
22702  [\\/]* | ?:[\\/]*)
22703  ac_cv_path_RDOC="$RDOC" # Let the user override the test with a path.
22704  ;;
22705  *)
22706  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22707for as_dir in $PATH
22708do
22709  IFS=$as_save_IFS
22710  test -z "$as_dir" && as_dir=.
22711    for ac_exec_ext in '' $ac_executable_extensions; do
22712  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22713    ac_cv_path_RDOC="$as_dir/$ac_word$ac_exec_ext"
22714    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22715    break 2
22716  fi
22717done
22718  done
22719IFS=$as_save_IFS
22720
22721  ;;
22722esac
22723fi
22724RDOC=$ac_cv_path_RDOC
22725if test -n "$RDOC"; then
22726  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RDOC" >&5
22727$as_echo "$RDOC" >&6; }
22728else
22729  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22730$as_echo "no" >&6; }
22731fi
22732
22733
22734  test -n "$RDOC" && break
22735done
22736test -n "$RDOC" || RDOC="none"
22737
22738    fi
22739    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ruby major version" >&5
22740$as_echo_n "checking for Ruby major version... " >&6; }
22741if ${svn_cv_ruby_major+:} false; then :
22742  $as_echo_n "(cached) " >&6
22743else
22744
22745    svn_cv_ruby_major="`$RUBY -rrbconfig -e 'print RbConfig::CONFIG.fetch(%q(MAJOR))'`"
22746
22747fi
22748{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $svn_cv_ruby_major" >&5
22749$as_echo "$svn_cv_ruby_major" >&6; }
22750    RUBY_MAJOR="$svn_cv_ruby_major"
22751
22752    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ruby minor version" >&5
22753$as_echo_n "checking for Ruby minor version... " >&6; }
22754if ${svn_cv_ruby_minor+:} false; then :
22755  $as_echo_n "(cached) " >&6
22756else
22757
22758    svn_cv_ruby_minor="`$RUBY -rrbconfig -e 'print RbConfig::CONFIG.fetch(%q(MINOR))'`"
22759
22760fi
22761{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $svn_cv_ruby_minor" >&5
22762$as_echo "$svn_cv_ruby_minor" >&6; }
22763    RUBY_MINOR="$svn_cv_ruby_minor"
22764
22765    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ruby teeny version" >&5
22766$as_echo_n "checking for Ruby teeny version... " >&6; }
22767if ${svn_cv_ruby_teeny+:} false; then :
22768  $as_echo_n "(cached) " >&6
22769else
22770
22771    svn_cv_ruby_teeny="`$RUBY -rrbconfig -e 'major, minor, teeny = RUBY_VERSION.split("."); print teeny;'`"
22772
22773fi
22774{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $svn_cv_ruby_teeny" >&5
22775$as_echo "$svn_cv_ruby_teeny" >&6; }
22776    RUBY_TEENY="$svn_cv_ruby_teeny"
22777
22778
22779
22780
22781    if test \( "$RUBY_MAJOR" -eq "1" -a "$RUBY_MINOR" -gt "8" -a "$RUBY_TEENY" -lt "3" \); then
22782      # Disallow Ruby between 1.8.7 and 1.9.3
22783      RUBY="none"
22784      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The detected Ruby is between 1.9 and 1.9.3" >&5
22785$as_echo "$as_me: WARNING: The detected Ruby is between 1.9 and 1.9.3" >&2;}
22786      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Only 1.8.x and 1.9.3 releases are supported at this time" >&5
22787$as_echo "$as_me: WARNING: Only 1.8.x and 1.9.3 releases are supported at this time" >&2;}
22788    fi
22789  else
22790    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22791$as_echo "no" >&6; }
22792    RUBY="none"
22793    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The detected Ruby is too old for Subversion to use" >&5
22794$as_echo "$as_me: WARNING: The detected Ruby is too old for Subversion to use" >&2;}
22795    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: A Ruby which has rb_hash_foreach is required to use the" >&5
22796$as_echo "$as_me: WARNING: A Ruby which has rb_hash_foreach is required to use the" >&2;}
22797    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Subversion Ruby bindings" >&5
22798$as_echo "$as_me: WARNING: Subversion Ruby bindings" >&2;}
22799    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Upgrade to the official 1.8.2 release, or later" >&5
22800$as_echo "$as_me: WARNING: Upgrade to the official 1.8.2 release, or later" >&2;}
22801  fi
22802fi
22803
22804
22805
22806# Check whether --with-swig was given.
22807if test "${with_swig+set}" = set; then :
22808  withval=$with_swig;
22809    case "$withval" in
22810      "no")
22811        SWIG_SUITABLE=no
22812
22813  where=no
22814
22815  if test $where = no; then
22816    SWIG=none
22817  elif test $where = check; then
22818    # Extract the first word of "swig", so it can be a program name with args.
22819set dummy swig; ac_word=$2
22820{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22821$as_echo_n "checking for $ac_word... " >&6; }
22822if ${ac_cv_path_SWIG+:} false; then :
22823  $as_echo_n "(cached) " >&6
22824else
22825  case $SWIG in
22826  [\\/]* | ?:[\\/]*)
22827  ac_cv_path_SWIG="$SWIG" # Let the user override the test with a path.
22828  ;;
22829  *)
22830  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22831for as_dir in $PATH
22832do
22833  IFS=$as_save_IFS
22834  test -z "$as_dir" && as_dir=.
22835    for ac_exec_ext in '' $ac_executable_extensions; do
22836  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22837    ac_cv_path_SWIG="$as_dir/$ac_word$ac_exec_ext"
22838    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22839    break 2
22840  fi
22841done
22842  done
22843IFS=$as_save_IFS
22844
22845  test -z "$ac_cv_path_SWIG" && ac_cv_path_SWIG="none"
22846  ;;
22847esac
22848fi
22849SWIG=$ac_cv_path_SWIG
22850if test -n "$SWIG"; then
22851  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG" >&5
22852$as_echo "$SWIG" >&6; }
22853else
22854  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22855$as_echo "no" >&6; }
22856fi
22857
22858
22859  else
22860    if test -f "$where"; then
22861      SWIG="$where"
22862    else
22863      SWIG="$where/bin/swig"
22864    fi
22865    if test ! -f "$SWIG" || test ! -x "$SWIG"; then
22866      as_fn_error $? "Could not find swig binary at $SWIG" "$LINENO" 5
22867    fi
22868  fi
22869
22870  if test "$SWIG" != "none"; then
22871    { $as_echo "$as_me:${as_lineno-$LINENO}: checking swig version" >&5
22872$as_echo_n "checking swig version... " >&6; }
22873    SWIG_VERSION_RAW="`$SWIG -version 2>&1 | \
22874                       $SED -ne 's/^.*Version \(.*\)$/\1/p'`"
22875    # We want the version as an integer so we can test against
22876    # which version we're using.  SWIG doesn't provide this
22877    # to us so we have to come up with it on our own.
22878    # The major is passed straight through,
22879    # the minor is zero padded to two places,
22880    # and the patch level is zero padded to three places.
22881    # e.g. 1.3.24 becomes 103024
22882    SWIG_VERSION="`echo \"$SWIG_VERSION_RAW\" | \
22883                  $SED -e 's/[^0-9\.].*$//' \
22884                      -e 's/\.\([0-9]\)$/.0\1/' \
22885                      -e 's/\.\([0-9][0-9]\)$/.0\1/' \
22886                      -e 's/\.\([0-9]\)\./0\1/; s/\.//g;'`"
22887    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG_VERSION_RAW" >&5
22888$as_echo "$SWIG_VERSION_RAW" >&6; }
22889    # If you change the required swig version number, don't forget to update:
22890    #   subversion/bindings/swig/INSTALL
22891    #   packages/rpm/redhat-8+/subversion.spec
22892    #   packages/rpm/redhat-7.x/subversion.spec
22893    #   packages/rpm/rhel-3/subversion.spec
22894    #   packages/rpm/rhel-4/subversion.spec
22895    if test -n "$SWIG_VERSION" && test "$SWIG_VERSION" -ge "103024"; then
22896      SWIG_SUITABLE=yes
22897    else
22898      SWIG_SUITABLE=no
22899      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Detected SWIG version $SWIG_VERSION_RAW" >&5
22900$as_echo "$as_me: WARNING: Detected SWIG version $SWIG_VERSION_RAW" >&2;}
22901      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Subversion requires SWIG 1.3.24 or later" >&5
22902$as_echo "$as_me: WARNING: Subversion requires SWIG 1.3.24 or later" >&2;}
22903    fi
22904  fi
22905
22906  SWIG_PY_COMPILE="none"
22907  SWIG_PY_LINK="none"
22908  if test "$PYTHON" != "none"; then
22909    { $as_echo "$as_me:${as_lineno-$LINENO}: Configuring python swig binding" >&5
22910$as_echo "$as_me: Configuring python swig binding" >&6;}
22911
22912    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python includes" >&5
22913$as_echo_n "checking for Python includes... " >&6; }
22914if ${ac_cv_python_includes+:} false; then :
22915  $as_echo_n "(cached) " >&6
22916else
22917
22918      ac_cv_python_includes="`$PYTHON ${abs_srcdir}/build/get-py-info.py --includes`"
22919
22920fi
22921{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_python_includes" >&5
22922$as_echo "$ac_cv_python_includes" >&6; }
22923    SWIG_PY_INCLUDES="\$(SWIG_INCLUDES) $ac_cv_python_includes"
22924
22925    if test "$ac_cv_python_includes" = "none"; then
22926      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: python bindings cannot be built without distutils module" >&5
22927$as_echo "$as_me: WARNING: python bindings cannot be built without distutils module" >&2;}
22928    fi
22929
22930    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiling Python extensions" >&5
22931$as_echo_n "checking for compiling Python extensions... " >&6; }
22932if ${ac_cv_python_compile+:} false; then :
22933  $as_echo_n "(cached) " >&6
22934else
22935
22936      ac_cv_python_compile="`$PYTHON ${abs_srcdir}/build/get-py-info.py --compile`"
22937
22938fi
22939{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_python_compile" >&5
22940$as_echo "$ac_cv_python_compile" >&6; }
22941    SWIG_PY_COMPILE="$ac_cv_python_compile $CFLAGS"
22942
22943    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linking Python extensions" >&5
22944$as_echo_n "checking for linking Python extensions... " >&6; }
22945if ${ac_cv_python_link+:} false; then :
22946  $as_echo_n "(cached) " >&6
22947else
22948
22949      ac_cv_python_link="`$PYTHON ${abs_srcdir}/build/get-py-info.py --link`"
22950
22951fi
22952{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_python_link" >&5
22953$as_echo "$ac_cv_python_link" >&6; }
22954    SWIG_PY_LINK="$ac_cv_python_link"
22955
22956    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linking Python libraries" >&5
22957$as_echo_n "checking for linking Python libraries... " >&6; }
22958if ${ac_cv_python_libs+:} false; then :
22959  $as_echo_n "(cached) " >&6
22960else
22961
22962      ac_cv_python_libs="`$PYTHON ${abs_srcdir}/build/get-py-info.py --libs`"
22963
22964fi
22965{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_python_libs" >&5
22966$as_echo "$ac_cv_python_libs" >&6; }
22967    SWIG_PY_LIBS="`
22968  input_flags="$ac_cv_python_libs"
22969  output_flags=""
22970  filtered_dirs="/lib /lib64 /usr/lib /usr/lib64"
22971  for flag in $input_flags; do
22972    filter="no"
22973    for dir in $filtered_dirs; do
22974      if test "$flag" = "-L$dir" || test "$flag" = "-L$dir/"; then
22975        filter="yes"
22976        break
22977      fi
22978    done
22979    if test "$filter" = "no"; then
22980      output_flags="$output_flags $flag"
22981    fi
22982  done
22983  if test -n "$output_flags"; then
22984    printf "%s" "${output_flags# }"
22985  fi
22986`"
22987
22988                SVN_PYCFMT_SAVE_CPPFLAGS="$CPPFLAGS"
22989    CPPFLAGS="$CPPFLAGS $SVN_APR_INCLUDES"
22990    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for apr_int64_t Python/C API format string" >&5
22991$as_echo_n "checking for apr_int64_t Python/C API format string... " >&6; }
22992if ${svn_cv_pycfmt_apr_int64_t+:} false; then :
22993  $as_echo_n "(cached) " >&6
22994else
22995
22996      if test "x$svn_cv_pycfmt_apr_int64_t" = "x"; then
22997        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22998/* end confdefs.h.  */
22999#include <apr.h>
23000                      MaTcHtHiS APR_INT64_T_FMT EnDeNd
23001_ACEOF
23002if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23003  $EGREP "MaTcHtHiS +\"lld\" +EnDeNd" >/dev/null 2>&1; then :
23004  svn_cv_pycfmt_apr_int64_t="L"
23005fi
23006rm -f conftest*
23007
23008      fi
23009      if test "x$svn_cv_pycfmt_apr_int64_t" = "x"; then
23010        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23011/* end confdefs.h.  */
23012r
23013                     #include <apr.h>
23014                      MaTcHtHiS APR_INT64_T_FMT EnDeNd
23015_ACEOF
23016if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23017  $EGREP "MaTcHtHiS +\"ld\" +EnDeNd" >/dev/null 2>&1; then :
23018  svn_cv_pycfmt_apr_int64_t="l"
23019fi
23020rm -f conftest*
23021
23022      fi
23023      if test "x$svn_cv_pycfmt_apr_int64_t" = "x"; then
23024        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23025/* end confdefs.h.  */
23026#include <apr.h>
23027                      MaTcHtHiS APR_INT64_T_FMT EnDeNd
23028_ACEOF
23029if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23030  $EGREP "MaTcHtHiS +\"d\" +EnDeNd" >/dev/null 2>&1; then :
23031  svn_cv_pycfmt_apr_int64_t="i"
23032fi
23033rm -f conftest*
23034
23035      fi
23036
23037fi
23038{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $svn_cv_pycfmt_apr_int64_t" >&5
23039$as_echo "$svn_cv_pycfmt_apr_int64_t" >&6; }
23040    CPPFLAGS="$SVN_PYCFMT_SAVE_CPPFLAGS"
23041    if test "x$svn_cv_pycfmt_apr_int64_t" = "x"; then
23042      as_fn_error $? "failed to recognize APR_INT64_T_FMT on this platform" "$LINENO" 5
23043    fi
23044
23045cat >>confdefs.h <<_ACEOF
23046#define SVN_APR_INT64_T_PYCFMT "$svn_cv_pycfmt_apr_int64_t"
23047_ACEOF
23048
23049  fi
23050
23051  if test "$PERL" != "none"; then
23052    { $as_echo "$as_me:${as_lineno-$LINENO}: checking perl version" >&5
23053$as_echo_n "checking perl version... " >&6; }
23054            PERL_VERSION="`$PERL -e 'q([); print $] * 1000000,$/;'`"
23055    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL_VERSION" >&5
23056$as_echo "$PERL_VERSION" >&6; }
23057    if test "$PERL_VERSION" -ge "5008000"; then
23058      SWIG_PL_INCLUDES="\$(SWIG_INCLUDES) `$PERL -MExtUtils::Embed -e ccopts`"
23059    else
23060      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: perl bindings require perl 5.8.0 or newer." >&5
23061$as_echo "$as_me: WARNING: perl bindings require perl 5.8.0 or newer." >&2;}
23062    fi
23063  fi
23064
23065  SWIG_RB_COMPILE="none"
23066  SWIG_RB_LINK="none"
23067  if test "$RUBY" != "none"; then
23068    rbconfig="$RUBY -rrbconfig -e "
23069
23070    for var_name in arch archdir CC LDSHARED DLEXT LIBS LIBRUBYARG \
23071                    rubyhdrdir sitedir sitelibdir sitearchdir libdir
23072    do
23073      rbconfig_tmp=`$rbconfig "print RbConfig::CONFIG['$var_name']"`
23074      eval "rbconfig_$var_name=\"$rbconfig_tmp\""
23075    done
23076
23077    { $as_echo "$as_me:${as_lineno-$LINENO}: Configuring Ruby SWIG binding" >&5
23078$as_echo "$as_me: Configuring Ruby SWIG binding" >&6;}
23079
23080    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ruby include path" >&5
23081$as_echo_n "checking for Ruby include path... " >&6; }
23082if ${svn_cv_ruby_includes+:} false; then :
23083  $as_echo_n "(cached) " >&6
23084else
23085
23086    if test -d "$rbconfig_rubyhdrdir"; then
23087            svn_cv_ruby_includes="-I. -I$rbconfig_rubyhdrdir -I$rbconfig_rubyhdrdir/ruby -I$rbconfig_rubyhdrdir/ruby/backward -I$rbconfig_rubyhdrdir/$rbconfig_arch"
23088    else
23089            svn_cv_ruby_includes="-I. -I$rbconfig_archdir"
23090    fi
23091
23092fi
23093{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $svn_cv_ruby_includes" >&5
23094$as_echo "$svn_cv_ruby_includes" >&6; }
23095    SWIG_RB_INCLUDES="\$(SWIG_INCLUDES) $svn_cv_ruby_includes"
23096
23097    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compile Ruby extensions" >&5
23098$as_echo_n "checking how to compile Ruby extensions... " >&6; }
23099if ${svn_cv_ruby_compile+:} false; then :
23100  $as_echo_n "(cached) " >&6
23101else
23102
23103      svn_cv_ruby_compile="$rbconfig_CC $CFLAGS"
23104
23105fi
23106{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $svn_cv_ruby_compile" >&5
23107$as_echo "$svn_cv_ruby_compile" >&6; }
23108    SWIG_RB_COMPILE="$svn_cv_ruby_compile"
23109
23110  SWIG_RB_COMPILE=`echo "$SWIG_RB_COMPILE" | $SED -e 's/-ansi//'`
23111
23112
23113  SWIG_RB_COMPILE=`echo "$SWIG_RB_COMPILE" | $SED -e 's/-std=c89//'`
23114
23115
23116  SWIG_RB_COMPILE=`echo "$SWIG_RB_COMPILE" | $SED -e 's/-std=c90//'`
23117
23118        SWIG_RB_COMPILE="$SWIG_RB_COMPILE -Wno-int-to-pointer-cast"
23119
23120    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link Ruby extensions" >&5
23121$as_echo_n "checking how to link Ruby extensions... " >&6; }
23122if ${svn_cv_ruby_link+:} false; then :
23123  $as_echo_n "(cached) " >&6
23124else
23125
23126      svn_cv_ruby_link="`$RUBY -e 'ARGV.shift; print ARGV.join(%q( ))' \
23127                           $rbconfig_LDSHARED`"
23128      svn_cv_ruby_link="$rbconfig_CC $svn_cv_ruby_link"
23129      svn_cv_ruby_link="$svn_cv_ruby_link -shrext .$rbconfig_DLEXT"
23130
23131fi
23132{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $svn_cv_ruby_link" >&5
23133$as_echo "$svn_cv_ruby_link" >&6; }
23134    SWIG_RB_LINK="$svn_cv_ruby_link"
23135
23136    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link Ruby libraries" >&5
23137$as_echo_n "checking how to link Ruby libraries... " >&6; }
23138if ${ac_cv_ruby_libs+:} false; then :
23139  $as_echo_n "(cached) " >&6
23140else
23141
23142      ac_cv_ruby_libs="$rbconfig_LIBRUBYARG $rbconfig_LIBS"
23143
23144fi
23145{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_ruby_libs" >&5
23146$as_echo "$ac_cv_ruby_libs" >&6; }
23147    SWIG_RB_LIBS="`
23148  input_flags="$ac_cv_ruby_libs"
23149  output_flags=""
23150  filtered_dirs="/lib /lib64 /usr/lib /usr/lib64"
23151  for flag in $input_flags; do
23152    filter="no"
23153    for dir in $filtered_dirs; do
23154      if test "$flag" = "-L$dir" || test "$flag" = "-L$dir/"; then
23155        filter="yes"
23156        break
23157      fi
23158    done
23159    if test "$filter" = "no"; then
23160      output_flags="$output_flags $flag"
23161    fi
23162  done
23163  if test -n "$output_flags"; then
23164    printf "%s" "${output_flags# }"
23165  fi
23166`"
23167
23168    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rb_errinfo" >&5
23169$as_echo_n "checking for rb_errinfo... " >&6; }
23170    old_CFLAGS="$CFLAGS"
23171    old_LIBS="$LIBS"
23172    CFLAGS="$CFLAGS $svn_cv_ruby_includes"
23173
23174  CFLAGS=`echo "$CFLAGS" | $SED -e 's/-ansi//'`
23175
23176
23177  CFLAGS=`echo "$CFLAGS" | $SED -e 's/-std=c89//'`
23178
23179
23180  CFLAGS=`echo "$CFLAGS" | $SED -e 's/-std=c90//'`
23181
23182    LIBS="$SWIG_RB_LIBS"
23183    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23184/* end confdefs.h.  */
23185
23186#include <ruby.h>
23187int main()
23188{rb_errinfo();}
23189_ACEOF
23190if ac_fn_c_try_link "$LINENO"; then :
23191  have_rb_errinfo="yes"
23192else
23193  have_rb_errinfo="no"
23194fi
23195rm -f core conftest.err conftest.$ac_objext \
23196    conftest$ac_exeext conftest.$ac_ext
23197    if test "$have_rb_errinfo" = "yes"; then
23198      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23199$as_echo "yes" >&6; }
23200
23201$as_echo "#define HAVE_RB_ERRINFO 1" >>confdefs.h
23202
23203    else
23204      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23205$as_echo "no" >&6; }
23206    fi
23207    CFLAGS="$old_CFLAGS"
23208    LIBS="$old_LIBS"
23209
23210    if ${svn_cv_ruby_sitedir+:} false; then :
23211  $as_echo_n "(cached) " >&6
23212else
23213
23214      svn_cv_ruby_sitedir="$rbconfig_sitedir"
23215
23216fi
23217
23218
23219# Check whether --with-ruby-sitedir was given.
23220if test "${with_ruby_sitedir+set}" = set; then :
23221  withval=$with_ruby_sitedir; svn_ruby_installdir="$withval"
23222else
23223  svn_ruby_installdir="$svn_cv_ruby_sitedir"
23224fi
23225
23226
23227    { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to install Ruby scripts" >&5
23228$as_echo_n "checking where to install Ruby scripts... " >&6; }
23229    if ${svn_cv_ruby_sitedir_libsuffix+:} false; then :
23230  $as_echo_n "(cached) " >&6
23231else
23232
23233      svn_cv_ruby_sitedir_libsuffix="`echo "$rbconfig_sitelibdir" | \
23234                                        $SED -e "s,^$rbconfig_sitedir,,"`"
23235
23236fi
23237
23238    SWIG_RB_SITE_LIB_DIR="${svn_ruby_installdir}${svn_cv_ruby_sitedir_libsuffix}"
23239    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG_RB_SITE_LIB_DIR" >&5
23240$as_echo "$SWIG_RB_SITE_LIB_DIR" >&6; }
23241
23242    { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to install Ruby extensions" >&5
23243$as_echo_n "checking where to install Ruby extensions... " >&6; }
23244    if ${svn_cv_ruby_sitedir_archsuffix+:} false; then :
23245  $as_echo_n "(cached) " >&6
23246else
23247
23248      svn_cv_ruby_sitedir_archsuffix="`echo "$rbconfig_sitearchdir" | \
23249                                        $SED -e "s,^$rbconfig_sitedir,,"`"
23250
23251fi
23252
23253    SWIG_RB_SITE_ARCH_DIR="${svn_ruby_installdir}${svn_cv_ruby_sitedir_archsuffix}"
23254    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG_RB_SITE_ARCH_DIR" >&5
23255$as_echo "$SWIG_RB_SITE_ARCH_DIR" >&6; }
23256
23257    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to use output level for Ruby bindings tests" >&5
23258$as_echo_n "checking how to use output level for Ruby bindings tests... " >&6; }
23259    if ${svn_cv_ruby_test_verbose+:} false; then :
23260  $as_echo_n "(cached) " >&6
23261else
23262
23263      svn_cv_ruby_test_verbose="normal"
23264
23265fi
23266
23267
23268# Check whether --with-ruby-test-verbose was given.
23269if test "${with_ruby_test_verbose+set}" = set; then :
23270  withval=$with_ruby_test_verbose; svn_ruby_test_verbose="$withval"
23271else
23272  svn_ruby_test_verbose="$svn_cv_ruby_test_verbose"
23273fi
23274
23275      SWIG_RB_TEST_VERBOSE="$svn_ruby_test_verbose"
23276      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG_RB_TEST_VERBOSE" >&5
23277$as_echo "$SWIG_RB_TEST_VERBOSE" >&6; }
23278  fi
23279
23280
23281
23282
23283
23284
23285
23286
23287
23288
23289
23290
23291
23292
23293      ;;
23294      "yes")
23295
23296  where=check
23297
23298  if test $where = no; then
23299    SWIG=none
23300  elif test $where = check; then
23301    # Extract the first word of "swig", so it can be a program name with args.
23302set dummy swig; ac_word=$2
23303{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23304$as_echo_n "checking for $ac_word... " >&6; }
23305if ${ac_cv_path_SWIG+:} false; then :
23306  $as_echo_n "(cached) " >&6
23307else
23308  case $SWIG in
23309  [\\/]* | ?:[\\/]*)
23310  ac_cv_path_SWIG="$SWIG" # Let the user override the test with a path.
23311  ;;
23312  *)
23313  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23314for as_dir in $PATH
23315do
23316  IFS=$as_save_IFS
23317  test -z "$as_dir" && as_dir=.
23318    for ac_exec_ext in '' $ac_executable_extensions; do
23319  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23320    ac_cv_path_SWIG="$as_dir/$ac_word$ac_exec_ext"
23321    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23322    break 2
23323  fi
23324done
23325  done
23326IFS=$as_save_IFS
23327
23328  test -z "$ac_cv_path_SWIG" && ac_cv_path_SWIG="none"
23329  ;;
23330esac
23331fi
23332SWIG=$ac_cv_path_SWIG
23333if test -n "$SWIG"; then
23334  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG" >&5
23335$as_echo "$SWIG" >&6; }
23336else
23337  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23338$as_echo "no" >&6; }
23339fi
23340
23341
23342  else
23343    if test -f "$where"; then
23344      SWIG="$where"
23345    else
23346      SWIG="$where/bin/swig"
23347    fi
23348    if test ! -f "$SWIG" || test ! -x "$SWIG"; then
23349      as_fn_error $? "Could not find swig binary at $SWIG" "$LINENO" 5
23350    fi
23351  fi
23352
23353  if test "$SWIG" != "none"; then
23354    { $as_echo "$as_me:${as_lineno-$LINENO}: checking swig version" >&5
23355$as_echo_n "checking swig version... " >&6; }
23356    SWIG_VERSION_RAW="`$SWIG -version 2>&1 | \
23357                       $SED -ne 's/^.*Version \(.*\)$/\1/p'`"
23358    # We want the version as an integer so we can test against
23359    # which version we're using.  SWIG doesn't provide this
23360    # to us so we have to come up with it on our own.
23361    # The major is passed straight through,
23362    # the minor is zero padded to two places,
23363    # and the patch level is zero padded to three places.
23364    # e.g. 1.3.24 becomes 103024
23365    SWIG_VERSION="`echo \"$SWIG_VERSION_RAW\" | \
23366                  $SED -e 's/[^0-9\.].*$//' \
23367                      -e 's/\.\([0-9]\)$/.0\1/' \
23368                      -e 's/\.\([0-9][0-9]\)$/.0\1/' \
23369                      -e 's/\.\([0-9]\)\./0\1/; s/\.//g;'`"
23370    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG_VERSION_RAW" >&5
23371$as_echo "$SWIG_VERSION_RAW" >&6; }
23372    # If you change the required swig version number, don't forget to update:
23373    #   subversion/bindings/swig/INSTALL
23374    #   packages/rpm/redhat-8+/subversion.spec
23375    #   packages/rpm/redhat-7.x/subversion.spec
23376    #   packages/rpm/rhel-3/subversion.spec
23377    #   packages/rpm/rhel-4/subversion.spec
23378    if test -n "$SWIG_VERSION" && test "$SWIG_VERSION" -ge "103024"; then
23379      SWIG_SUITABLE=yes
23380    else
23381      SWIG_SUITABLE=no
23382      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Detected SWIG version $SWIG_VERSION_RAW" >&5
23383$as_echo "$as_me: WARNING: Detected SWIG version $SWIG_VERSION_RAW" >&2;}
23384      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Subversion requires SWIG 1.3.24 or later" >&5
23385$as_echo "$as_me: WARNING: Subversion requires SWIG 1.3.24 or later" >&2;}
23386    fi
23387  fi
23388
23389  SWIG_PY_COMPILE="none"
23390  SWIG_PY_LINK="none"
23391  if test "$PYTHON" != "none"; then
23392    { $as_echo "$as_me:${as_lineno-$LINENO}: Configuring python swig binding" >&5
23393$as_echo "$as_me: Configuring python swig binding" >&6;}
23394
23395    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python includes" >&5
23396$as_echo_n "checking for Python includes... " >&6; }
23397if ${ac_cv_python_includes+:} false; then :
23398  $as_echo_n "(cached) " >&6
23399else
23400
23401      ac_cv_python_includes="`$PYTHON ${abs_srcdir}/build/get-py-info.py --includes`"
23402
23403fi
23404{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_python_includes" >&5
23405$as_echo "$ac_cv_python_includes" >&6; }
23406    SWIG_PY_INCLUDES="\$(SWIG_INCLUDES) $ac_cv_python_includes"
23407
23408    if test "$ac_cv_python_includes" = "none"; then
23409      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: python bindings cannot be built without distutils module" >&5
23410$as_echo "$as_me: WARNING: python bindings cannot be built without distutils module" >&2;}
23411    fi
23412
23413    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiling Python extensions" >&5
23414$as_echo_n "checking for compiling Python extensions... " >&6; }
23415if ${ac_cv_python_compile+:} false; then :
23416  $as_echo_n "(cached) " >&6
23417else
23418
23419      ac_cv_python_compile="`$PYTHON ${abs_srcdir}/build/get-py-info.py --compile`"
23420
23421fi
23422{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_python_compile" >&5
23423$as_echo "$ac_cv_python_compile" >&6; }
23424    SWIG_PY_COMPILE="$ac_cv_python_compile $CFLAGS"
23425
23426    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linking Python extensions" >&5
23427$as_echo_n "checking for linking Python extensions... " >&6; }
23428if ${ac_cv_python_link+:} false; then :
23429  $as_echo_n "(cached) " >&6
23430else
23431
23432      ac_cv_python_link="`$PYTHON ${abs_srcdir}/build/get-py-info.py --link`"
23433
23434fi
23435{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_python_link" >&5
23436$as_echo "$ac_cv_python_link" >&6; }
23437    SWIG_PY_LINK="$ac_cv_python_link"
23438
23439    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linking Python libraries" >&5
23440$as_echo_n "checking for linking Python libraries... " >&6; }
23441if ${ac_cv_python_libs+:} false; then :
23442  $as_echo_n "(cached) " >&6
23443else
23444
23445      ac_cv_python_libs="`$PYTHON ${abs_srcdir}/build/get-py-info.py --libs`"
23446
23447fi
23448{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_python_libs" >&5
23449$as_echo "$ac_cv_python_libs" >&6; }
23450    SWIG_PY_LIBS="`
23451  input_flags="$ac_cv_python_libs"
23452  output_flags=""
23453  filtered_dirs="/lib /lib64 /usr/lib /usr/lib64"
23454  for flag in $input_flags; do
23455    filter="no"
23456    for dir in $filtered_dirs; do
23457      if test "$flag" = "-L$dir" || test "$flag" = "-L$dir/"; then
23458        filter="yes"
23459        break
23460      fi
23461    done
23462    if test "$filter" = "no"; then
23463      output_flags="$output_flags $flag"
23464    fi
23465  done
23466  if test -n "$output_flags"; then
23467    printf "%s" "${output_flags# }"
23468  fi
23469`"
23470
23471                SVN_PYCFMT_SAVE_CPPFLAGS="$CPPFLAGS"
23472    CPPFLAGS="$CPPFLAGS $SVN_APR_INCLUDES"
23473    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for apr_int64_t Python/C API format string" >&5
23474$as_echo_n "checking for apr_int64_t Python/C API format string... " >&6; }
23475if ${svn_cv_pycfmt_apr_int64_t+:} false; then :
23476  $as_echo_n "(cached) " >&6
23477else
23478
23479      if test "x$svn_cv_pycfmt_apr_int64_t" = "x"; then
23480        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23481/* end confdefs.h.  */
23482#include <apr.h>
23483                      MaTcHtHiS APR_INT64_T_FMT EnDeNd
23484_ACEOF
23485if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23486  $EGREP "MaTcHtHiS +\"lld\" +EnDeNd" >/dev/null 2>&1; then :
23487  svn_cv_pycfmt_apr_int64_t="L"
23488fi
23489rm -f conftest*
23490
23491      fi
23492      if test "x$svn_cv_pycfmt_apr_int64_t" = "x"; then
23493        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23494/* end confdefs.h.  */
23495r
23496                     #include <apr.h>
23497                      MaTcHtHiS APR_INT64_T_FMT EnDeNd
23498_ACEOF
23499if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23500  $EGREP "MaTcHtHiS +\"ld\" +EnDeNd" >/dev/null 2>&1; then :
23501  svn_cv_pycfmt_apr_int64_t="l"
23502fi
23503rm -f conftest*
23504
23505      fi
23506      if test "x$svn_cv_pycfmt_apr_int64_t" = "x"; then
23507        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23508/* end confdefs.h.  */
23509#include <apr.h>
23510                      MaTcHtHiS APR_INT64_T_FMT EnDeNd
23511_ACEOF
23512if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23513  $EGREP "MaTcHtHiS +\"d\" +EnDeNd" >/dev/null 2>&1; then :
23514  svn_cv_pycfmt_apr_int64_t="i"
23515fi
23516rm -f conftest*
23517
23518      fi
23519
23520fi
23521{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $svn_cv_pycfmt_apr_int64_t" >&5
23522$as_echo "$svn_cv_pycfmt_apr_int64_t" >&6; }
23523    CPPFLAGS="$SVN_PYCFMT_SAVE_CPPFLAGS"
23524    if test "x$svn_cv_pycfmt_apr_int64_t" = "x"; then
23525      as_fn_error $? "failed to recognize APR_INT64_T_FMT on this platform" "$LINENO" 5
23526    fi
23527
23528cat >>confdefs.h <<_ACEOF
23529#define SVN_APR_INT64_T_PYCFMT "$svn_cv_pycfmt_apr_int64_t"
23530_ACEOF
23531
23532  fi
23533
23534  if test "$PERL" != "none"; then
23535    { $as_echo "$as_me:${as_lineno-$LINENO}: checking perl version" >&5
23536$as_echo_n "checking perl version... " >&6; }
23537            PERL_VERSION="`$PERL -e 'q([); print $] * 1000000,$/;'`"
23538    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL_VERSION" >&5
23539$as_echo "$PERL_VERSION" >&6; }
23540    if test "$PERL_VERSION" -ge "5008000"; then
23541      SWIG_PL_INCLUDES="\$(SWIG_INCLUDES) `$PERL -MExtUtils::Embed -e ccopts`"
23542    else
23543      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: perl bindings require perl 5.8.0 or newer." >&5
23544$as_echo "$as_me: WARNING: perl bindings require perl 5.8.0 or newer." >&2;}
23545    fi
23546  fi
23547
23548  SWIG_RB_COMPILE="none"
23549  SWIG_RB_LINK="none"
23550  if test "$RUBY" != "none"; then
23551    rbconfig="$RUBY -rrbconfig -e "
23552
23553    for var_name in arch archdir CC LDSHARED DLEXT LIBS LIBRUBYARG \
23554                    rubyhdrdir sitedir sitelibdir sitearchdir libdir
23555    do
23556      rbconfig_tmp=`$rbconfig "print RbConfig::CONFIG['$var_name']"`
23557      eval "rbconfig_$var_name=\"$rbconfig_tmp\""
23558    done
23559
23560    { $as_echo "$as_me:${as_lineno-$LINENO}: Configuring Ruby SWIG binding" >&5
23561$as_echo "$as_me: Configuring Ruby SWIG binding" >&6;}
23562
23563    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ruby include path" >&5
23564$as_echo_n "checking for Ruby include path... " >&6; }
23565if ${svn_cv_ruby_includes+:} false; then :
23566  $as_echo_n "(cached) " >&6
23567else
23568
23569    if test -d "$rbconfig_rubyhdrdir"; then
23570            svn_cv_ruby_includes="-I. -I$rbconfig_rubyhdrdir -I$rbconfig_rubyhdrdir/ruby -I$rbconfig_rubyhdrdir/ruby/backward -I$rbconfig_rubyhdrdir/$rbconfig_arch"
23571    else
23572            svn_cv_ruby_includes="-I. -I$rbconfig_archdir"
23573    fi
23574
23575fi
23576{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $svn_cv_ruby_includes" >&5
23577$as_echo "$svn_cv_ruby_includes" >&6; }
23578    SWIG_RB_INCLUDES="\$(SWIG_INCLUDES) $svn_cv_ruby_includes"
23579
23580    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compile Ruby extensions" >&5
23581$as_echo_n "checking how to compile Ruby extensions... " >&6; }
23582if ${svn_cv_ruby_compile+:} false; then :
23583  $as_echo_n "(cached) " >&6
23584else
23585
23586      svn_cv_ruby_compile="$rbconfig_CC $CFLAGS"
23587
23588fi
23589{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $svn_cv_ruby_compile" >&5
23590$as_echo "$svn_cv_ruby_compile" >&6; }
23591    SWIG_RB_COMPILE="$svn_cv_ruby_compile"
23592
23593  SWIG_RB_COMPILE=`echo "$SWIG_RB_COMPILE" | $SED -e 's/-ansi//'`
23594
23595
23596  SWIG_RB_COMPILE=`echo "$SWIG_RB_COMPILE" | $SED -e 's/-std=c89//'`
23597
23598
23599  SWIG_RB_COMPILE=`echo "$SWIG_RB_COMPILE" | $SED -e 's/-std=c90//'`
23600
23601        SWIG_RB_COMPILE="$SWIG_RB_COMPILE -Wno-int-to-pointer-cast"
23602
23603    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link Ruby extensions" >&5
23604$as_echo_n "checking how to link Ruby extensions... " >&6; }
23605if ${svn_cv_ruby_link+:} false; then :
23606  $as_echo_n "(cached) " >&6
23607else
23608
23609      svn_cv_ruby_link="`$RUBY -e 'ARGV.shift; print ARGV.join(%q( ))' \
23610                           $rbconfig_LDSHARED`"
23611      svn_cv_ruby_link="$rbconfig_CC $svn_cv_ruby_link"
23612      svn_cv_ruby_link="$svn_cv_ruby_link -shrext .$rbconfig_DLEXT"
23613
23614fi
23615{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $svn_cv_ruby_link" >&5
23616$as_echo "$svn_cv_ruby_link" >&6; }
23617    SWIG_RB_LINK="$svn_cv_ruby_link"
23618
23619    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link Ruby libraries" >&5
23620$as_echo_n "checking how to link Ruby libraries... " >&6; }
23621if ${ac_cv_ruby_libs+:} false; then :
23622  $as_echo_n "(cached) " >&6
23623else
23624
23625      ac_cv_ruby_libs="$rbconfig_LIBRUBYARG $rbconfig_LIBS"
23626
23627fi
23628{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_ruby_libs" >&5
23629$as_echo "$ac_cv_ruby_libs" >&6; }
23630    SWIG_RB_LIBS="`
23631  input_flags="$ac_cv_ruby_libs"
23632  output_flags=""
23633  filtered_dirs="/lib /lib64 /usr/lib /usr/lib64"
23634  for flag in $input_flags; do
23635    filter="no"
23636    for dir in $filtered_dirs; do
23637      if test "$flag" = "-L$dir" || test "$flag" = "-L$dir/"; then
23638        filter="yes"
23639        break
23640      fi
23641    done
23642    if test "$filter" = "no"; then
23643      output_flags="$output_flags $flag"
23644    fi
23645  done
23646  if test -n "$output_flags"; then
23647    printf "%s" "${output_flags# }"
23648  fi
23649`"
23650
23651    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rb_errinfo" >&5
23652$as_echo_n "checking for rb_errinfo... " >&6; }
23653    old_CFLAGS="$CFLAGS"
23654    old_LIBS="$LIBS"
23655    CFLAGS="$CFLAGS $svn_cv_ruby_includes"
23656
23657  CFLAGS=`echo "$CFLAGS" | $SED -e 's/-ansi//'`
23658
23659
23660  CFLAGS=`echo "$CFLAGS" | $SED -e 's/-std=c89//'`
23661
23662
23663  CFLAGS=`echo "$CFLAGS" | $SED -e 's/-std=c90//'`
23664
23665    LIBS="$SWIG_RB_LIBS"
23666    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23667/* end confdefs.h.  */
23668
23669#include <ruby.h>
23670int main()
23671{rb_errinfo();}
23672_ACEOF
23673if ac_fn_c_try_link "$LINENO"; then :
23674  have_rb_errinfo="yes"
23675else
23676  have_rb_errinfo="no"
23677fi
23678rm -f core conftest.err conftest.$ac_objext \
23679    conftest$ac_exeext conftest.$ac_ext
23680    if test "$have_rb_errinfo" = "yes"; then
23681      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23682$as_echo "yes" >&6; }
23683
23684$as_echo "#define HAVE_RB_ERRINFO 1" >>confdefs.h
23685
23686    else
23687      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23688$as_echo "no" >&6; }
23689    fi
23690    CFLAGS="$old_CFLAGS"
23691    LIBS="$old_LIBS"
23692
23693    if ${svn_cv_ruby_sitedir+:} false; then :
23694  $as_echo_n "(cached) " >&6
23695else
23696
23697      svn_cv_ruby_sitedir="$rbconfig_sitedir"
23698
23699fi
23700
23701
23702# Check whether --with-ruby-sitedir was given.
23703if test "${with_ruby_sitedir+set}" = set; then :
23704  withval=$with_ruby_sitedir; svn_ruby_installdir="$withval"
23705else
23706  svn_ruby_installdir="$svn_cv_ruby_sitedir"
23707fi
23708
23709
23710    { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to install Ruby scripts" >&5
23711$as_echo_n "checking where to install Ruby scripts... " >&6; }
23712    if ${svn_cv_ruby_sitedir_libsuffix+:} false; then :
23713  $as_echo_n "(cached) " >&6
23714else
23715
23716      svn_cv_ruby_sitedir_libsuffix="`echo "$rbconfig_sitelibdir" | \
23717                                        $SED -e "s,^$rbconfig_sitedir,,"`"
23718
23719fi
23720
23721    SWIG_RB_SITE_LIB_DIR="${svn_ruby_installdir}${svn_cv_ruby_sitedir_libsuffix}"
23722    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG_RB_SITE_LIB_DIR" >&5
23723$as_echo "$SWIG_RB_SITE_LIB_DIR" >&6; }
23724
23725    { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to install Ruby extensions" >&5
23726$as_echo_n "checking where to install Ruby extensions... " >&6; }
23727    if ${svn_cv_ruby_sitedir_archsuffix+:} false; then :
23728  $as_echo_n "(cached) " >&6
23729else
23730
23731      svn_cv_ruby_sitedir_archsuffix="`echo "$rbconfig_sitearchdir" | \
23732                                        $SED -e "s,^$rbconfig_sitedir,,"`"
23733
23734fi
23735
23736    SWIG_RB_SITE_ARCH_DIR="${svn_ruby_installdir}${svn_cv_ruby_sitedir_archsuffix}"
23737    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG_RB_SITE_ARCH_DIR" >&5
23738$as_echo "$SWIG_RB_SITE_ARCH_DIR" >&6; }
23739
23740    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to use output level for Ruby bindings tests" >&5
23741$as_echo_n "checking how to use output level for Ruby bindings tests... " >&6; }
23742    if ${svn_cv_ruby_test_verbose+:} false; then :
23743  $as_echo_n "(cached) " >&6
23744else
23745
23746      svn_cv_ruby_test_verbose="normal"
23747
23748fi
23749
23750
23751# Check whether --with-ruby-test-verbose was given.
23752if test "${with_ruby_test_verbose+set}" = set; then :
23753  withval=$with_ruby_test_verbose; svn_ruby_test_verbose="$withval"
23754else
23755  svn_ruby_test_verbose="$svn_cv_ruby_test_verbose"
23756fi
23757
23758      SWIG_RB_TEST_VERBOSE="$svn_ruby_test_verbose"
23759      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG_RB_TEST_VERBOSE" >&5
23760$as_echo "$SWIG_RB_TEST_VERBOSE" >&6; }
23761  fi
23762
23763
23764
23765
23766
23767
23768
23769
23770
23771
23772
23773
23774
23775
23776      ;;
23777      *)
23778
23779  where=$withval
23780
23781  if test $where = no; then
23782    SWIG=none
23783  elif test $where = check; then
23784    # Extract the first word of "swig", so it can be a program name with args.
23785set dummy swig; ac_word=$2
23786{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23787$as_echo_n "checking for $ac_word... " >&6; }
23788if ${ac_cv_path_SWIG+:} false; then :
23789  $as_echo_n "(cached) " >&6
23790else
23791  case $SWIG in
23792  [\\/]* | ?:[\\/]*)
23793  ac_cv_path_SWIG="$SWIG" # Let the user override the test with a path.
23794  ;;
23795  *)
23796  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23797for as_dir in $PATH
23798do
23799  IFS=$as_save_IFS
23800  test -z "$as_dir" && as_dir=.
23801    for ac_exec_ext in '' $ac_executable_extensions; do
23802  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23803    ac_cv_path_SWIG="$as_dir/$ac_word$ac_exec_ext"
23804    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23805    break 2
23806  fi
23807done
23808  done
23809IFS=$as_save_IFS
23810
23811  test -z "$ac_cv_path_SWIG" && ac_cv_path_SWIG="none"
23812  ;;
23813esac
23814fi
23815SWIG=$ac_cv_path_SWIG
23816if test -n "$SWIG"; then
23817  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG" >&5
23818$as_echo "$SWIG" >&6; }
23819else
23820  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23821$as_echo "no" >&6; }
23822fi
23823
23824
23825  else
23826    if test -f "$where"; then
23827      SWIG="$where"
23828    else
23829      SWIG="$where/bin/swig"
23830    fi
23831    if test ! -f "$SWIG" || test ! -x "$SWIG"; then
23832      as_fn_error $? "Could not find swig binary at $SWIG" "$LINENO" 5
23833    fi
23834  fi
23835
23836  if test "$SWIG" != "none"; then
23837    { $as_echo "$as_me:${as_lineno-$LINENO}: checking swig version" >&5
23838$as_echo_n "checking swig version... " >&6; }
23839    SWIG_VERSION_RAW="`$SWIG -version 2>&1 | \
23840                       $SED -ne 's/^.*Version \(.*\)$/\1/p'`"
23841    # We want the version as an integer so we can test against
23842    # which version we're using.  SWIG doesn't provide this
23843    # to us so we have to come up with it on our own.
23844    # The major is passed straight through,
23845    # the minor is zero padded to two places,
23846    # and the patch level is zero padded to three places.
23847    # e.g. 1.3.24 becomes 103024
23848    SWIG_VERSION="`echo \"$SWIG_VERSION_RAW\" | \
23849                  $SED -e 's/[^0-9\.].*$//' \
23850                      -e 's/\.\([0-9]\)$/.0\1/' \
23851                      -e 's/\.\([0-9][0-9]\)$/.0\1/' \
23852                      -e 's/\.\([0-9]\)\./0\1/; s/\.//g;'`"
23853    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG_VERSION_RAW" >&5
23854$as_echo "$SWIG_VERSION_RAW" >&6; }
23855    # If you change the required swig version number, don't forget to update:
23856    #   subversion/bindings/swig/INSTALL
23857    #   packages/rpm/redhat-8+/subversion.spec
23858    #   packages/rpm/redhat-7.x/subversion.spec
23859    #   packages/rpm/rhel-3/subversion.spec
23860    #   packages/rpm/rhel-4/subversion.spec
23861    if test -n "$SWIG_VERSION" && test "$SWIG_VERSION" -ge "103024"; then
23862      SWIG_SUITABLE=yes
23863    else
23864      SWIG_SUITABLE=no
23865      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Detected SWIG version $SWIG_VERSION_RAW" >&5
23866$as_echo "$as_me: WARNING: Detected SWIG version $SWIG_VERSION_RAW" >&2;}
23867      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Subversion requires SWIG 1.3.24 or later" >&5
23868$as_echo "$as_me: WARNING: Subversion requires SWIG 1.3.24 or later" >&2;}
23869    fi
23870  fi
23871
23872  SWIG_PY_COMPILE="none"
23873  SWIG_PY_LINK="none"
23874  if test "$PYTHON" != "none"; then
23875    { $as_echo "$as_me:${as_lineno-$LINENO}: Configuring python swig binding" >&5
23876$as_echo "$as_me: Configuring python swig binding" >&6;}
23877
23878    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python includes" >&5
23879$as_echo_n "checking for Python includes... " >&6; }
23880if ${ac_cv_python_includes+:} false; then :
23881  $as_echo_n "(cached) " >&6
23882else
23883
23884      ac_cv_python_includes="`$PYTHON ${abs_srcdir}/build/get-py-info.py --includes`"
23885
23886fi
23887{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_python_includes" >&5
23888$as_echo "$ac_cv_python_includes" >&6; }
23889    SWIG_PY_INCLUDES="\$(SWIG_INCLUDES) $ac_cv_python_includes"
23890
23891    if test "$ac_cv_python_includes" = "none"; then
23892      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: python bindings cannot be built without distutils module" >&5
23893$as_echo "$as_me: WARNING: python bindings cannot be built without distutils module" >&2;}
23894    fi
23895
23896    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiling Python extensions" >&5
23897$as_echo_n "checking for compiling Python extensions... " >&6; }
23898if ${ac_cv_python_compile+:} false; then :
23899  $as_echo_n "(cached) " >&6
23900else
23901
23902      ac_cv_python_compile="`$PYTHON ${abs_srcdir}/build/get-py-info.py --compile`"
23903
23904fi
23905{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_python_compile" >&5
23906$as_echo "$ac_cv_python_compile" >&6; }
23907    SWIG_PY_COMPILE="$ac_cv_python_compile $CFLAGS"
23908
23909    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linking Python extensions" >&5
23910$as_echo_n "checking for linking Python extensions... " >&6; }
23911if ${ac_cv_python_link+:} false; then :
23912  $as_echo_n "(cached) " >&6
23913else
23914
23915      ac_cv_python_link="`$PYTHON ${abs_srcdir}/build/get-py-info.py --link`"
23916
23917fi
23918{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_python_link" >&5
23919$as_echo "$ac_cv_python_link" >&6; }
23920    SWIG_PY_LINK="$ac_cv_python_link"
23921
23922    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linking Python libraries" >&5
23923$as_echo_n "checking for linking Python libraries... " >&6; }
23924if ${ac_cv_python_libs+:} false; then :
23925  $as_echo_n "(cached) " >&6
23926else
23927
23928      ac_cv_python_libs="`$PYTHON ${abs_srcdir}/build/get-py-info.py --libs`"
23929
23930fi
23931{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_python_libs" >&5
23932$as_echo "$ac_cv_python_libs" >&6; }
23933    SWIG_PY_LIBS="`
23934  input_flags="$ac_cv_python_libs"
23935  output_flags=""
23936  filtered_dirs="/lib /lib64 /usr/lib /usr/lib64"
23937  for flag in $input_flags; do
23938    filter="no"
23939    for dir in $filtered_dirs; do
23940      if test "$flag" = "-L$dir" || test "$flag" = "-L$dir/"; then
23941        filter="yes"
23942        break
23943      fi
23944    done
23945    if test "$filter" = "no"; then
23946      output_flags="$output_flags $flag"
23947    fi
23948  done
23949  if test -n "$output_flags"; then
23950    printf "%s" "${output_flags# }"
23951  fi
23952`"
23953
23954                SVN_PYCFMT_SAVE_CPPFLAGS="$CPPFLAGS"
23955    CPPFLAGS="$CPPFLAGS $SVN_APR_INCLUDES"
23956    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for apr_int64_t Python/C API format string" >&5
23957$as_echo_n "checking for apr_int64_t Python/C API format string... " >&6; }
23958if ${svn_cv_pycfmt_apr_int64_t+:} false; then :
23959  $as_echo_n "(cached) " >&6
23960else
23961
23962      if test "x$svn_cv_pycfmt_apr_int64_t" = "x"; then
23963        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23964/* end confdefs.h.  */
23965#include <apr.h>
23966                      MaTcHtHiS APR_INT64_T_FMT EnDeNd
23967_ACEOF
23968if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23969  $EGREP "MaTcHtHiS +\"lld\" +EnDeNd" >/dev/null 2>&1; then :
23970  svn_cv_pycfmt_apr_int64_t="L"
23971fi
23972rm -f conftest*
23973
23974      fi
23975      if test "x$svn_cv_pycfmt_apr_int64_t" = "x"; then
23976        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23977/* end confdefs.h.  */
23978r
23979                     #include <apr.h>
23980                      MaTcHtHiS APR_INT64_T_FMT EnDeNd
23981_ACEOF
23982if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23983  $EGREP "MaTcHtHiS +\"ld\" +EnDeNd" >/dev/null 2>&1; then :
23984  svn_cv_pycfmt_apr_int64_t="l"
23985fi
23986rm -f conftest*
23987
23988      fi
23989      if test "x$svn_cv_pycfmt_apr_int64_t" = "x"; then
23990        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23991/* end confdefs.h.  */
23992#include <apr.h>
23993                      MaTcHtHiS APR_INT64_T_FMT EnDeNd
23994_ACEOF
23995if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23996  $EGREP "MaTcHtHiS +\"d\" +EnDeNd" >/dev/null 2>&1; then :
23997  svn_cv_pycfmt_apr_int64_t="i"
23998fi
23999rm -f conftest*
24000
24001      fi
24002
24003fi
24004{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $svn_cv_pycfmt_apr_int64_t" >&5
24005$as_echo "$svn_cv_pycfmt_apr_int64_t" >&6; }
24006    CPPFLAGS="$SVN_PYCFMT_SAVE_CPPFLAGS"
24007    if test "x$svn_cv_pycfmt_apr_int64_t" = "x"; then
24008      as_fn_error $? "failed to recognize APR_INT64_T_FMT on this platform" "$LINENO" 5
24009    fi
24010
24011cat >>confdefs.h <<_ACEOF
24012#define SVN_APR_INT64_T_PYCFMT "$svn_cv_pycfmt_apr_int64_t"
24013_ACEOF
24014
24015  fi
24016
24017  if test "$PERL" != "none"; then
24018    { $as_echo "$as_me:${as_lineno-$LINENO}: checking perl version" >&5
24019$as_echo_n "checking perl version... " >&6; }
24020            PERL_VERSION="`$PERL -e 'q([); print $] * 1000000,$/;'`"
24021    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL_VERSION" >&5
24022$as_echo "$PERL_VERSION" >&6; }
24023    if test "$PERL_VERSION" -ge "5008000"; then
24024      SWIG_PL_INCLUDES="\$(SWIG_INCLUDES) `$PERL -MExtUtils::Embed -e ccopts`"
24025    else
24026      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: perl bindings require perl 5.8.0 or newer." >&5
24027$as_echo "$as_me: WARNING: perl bindings require perl 5.8.0 or newer." >&2;}
24028    fi
24029  fi
24030
24031  SWIG_RB_COMPILE="none"
24032  SWIG_RB_LINK="none"
24033  if test "$RUBY" != "none"; then
24034    rbconfig="$RUBY -rrbconfig -e "
24035
24036    for var_name in arch archdir CC LDSHARED DLEXT LIBS LIBRUBYARG \
24037                    rubyhdrdir sitedir sitelibdir sitearchdir libdir
24038    do
24039      rbconfig_tmp=`$rbconfig "print RbConfig::CONFIG['$var_name']"`
24040      eval "rbconfig_$var_name=\"$rbconfig_tmp\""
24041    done
24042
24043    { $as_echo "$as_me:${as_lineno-$LINENO}: Configuring Ruby SWIG binding" >&5
24044$as_echo "$as_me: Configuring Ruby SWIG binding" >&6;}
24045
24046    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ruby include path" >&5
24047$as_echo_n "checking for Ruby include path... " >&6; }
24048if ${svn_cv_ruby_includes+:} false; then :
24049  $as_echo_n "(cached) " >&6
24050else
24051
24052    if test -d "$rbconfig_rubyhdrdir"; then
24053            svn_cv_ruby_includes="-I. -I$rbconfig_rubyhdrdir -I$rbconfig_rubyhdrdir/ruby -I$rbconfig_rubyhdrdir/ruby/backward -I$rbconfig_rubyhdrdir/$rbconfig_arch"
24054    else
24055            svn_cv_ruby_includes="-I. -I$rbconfig_archdir"
24056    fi
24057
24058fi
24059{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $svn_cv_ruby_includes" >&5
24060$as_echo "$svn_cv_ruby_includes" >&6; }
24061    SWIG_RB_INCLUDES="\$(SWIG_INCLUDES) $svn_cv_ruby_includes"
24062
24063    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compile Ruby extensions" >&5
24064$as_echo_n "checking how to compile Ruby extensions... " >&6; }
24065if ${svn_cv_ruby_compile+:} false; then :
24066  $as_echo_n "(cached) " >&6
24067else
24068
24069      svn_cv_ruby_compile="$rbconfig_CC $CFLAGS"
24070
24071fi
24072{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $svn_cv_ruby_compile" >&5
24073$as_echo "$svn_cv_ruby_compile" >&6; }
24074    SWIG_RB_COMPILE="$svn_cv_ruby_compile"
24075
24076  SWIG_RB_COMPILE=`echo "$SWIG_RB_COMPILE" | $SED -e 's/-ansi//'`
24077
24078
24079  SWIG_RB_COMPILE=`echo "$SWIG_RB_COMPILE" | $SED -e 's/-std=c89//'`
24080
24081
24082  SWIG_RB_COMPILE=`echo "$SWIG_RB_COMPILE" | $SED -e 's/-std=c90//'`
24083
24084        SWIG_RB_COMPILE="$SWIG_RB_COMPILE -Wno-int-to-pointer-cast"
24085
24086    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link Ruby extensions" >&5
24087$as_echo_n "checking how to link Ruby extensions... " >&6; }
24088if ${svn_cv_ruby_link+:} false; then :
24089  $as_echo_n "(cached) " >&6
24090else
24091
24092      svn_cv_ruby_link="`$RUBY -e 'ARGV.shift; print ARGV.join(%q( ))' \
24093                           $rbconfig_LDSHARED`"
24094      svn_cv_ruby_link="$rbconfig_CC $svn_cv_ruby_link"
24095      svn_cv_ruby_link="$svn_cv_ruby_link -shrext .$rbconfig_DLEXT"
24096
24097fi
24098{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $svn_cv_ruby_link" >&5
24099$as_echo "$svn_cv_ruby_link" >&6; }
24100    SWIG_RB_LINK="$svn_cv_ruby_link"
24101
24102    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link Ruby libraries" >&5
24103$as_echo_n "checking how to link Ruby libraries... " >&6; }
24104if ${ac_cv_ruby_libs+:} false; then :
24105  $as_echo_n "(cached) " >&6
24106else
24107
24108      ac_cv_ruby_libs="$rbconfig_LIBRUBYARG $rbconfig_LIBS"
24109
24110fi
24111{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_ruby_libs" >&5
24112$as_echo "$ac_cv_ruby_libs" >&6; }
24113    SWIG_RB_LIBS="`
24114  input_flags="$ac_cv_ruby_libs"
24115  output_flags=""
24116  filtered_dirs="/lib /lib64 /usr/lib /usr/lib64"
24117  for flag in $input_flags; do
24118    filter="no"
24119    for dir in $filtered_dirs; do
24120      if test "$flag" = "-L$dir" || test "$flag" = "-L$dir/"; then
24121        filter="yes"
24122        break
24123      fi
24124    done
24125    if test "$filter" = "no"; then
24126      output_flags="$output_flags $flag"
24127    fi
24128  done
24129  if test -n "$output_flags"; then
24130    printf "%s" "${output_flags# }"
24131  fi
24132`"
24133
24134    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rb_errinfo" >&5
24135$as_echo_n "checking for rb_errinfo... " >&6; }
24136    old_CFLAGS="$CFLAGS"
24137    old_LIBS="$LIBS"
24138    CFLAGS="$CFLAGS $svn_cv_ruby_includes"
24139
24140  CFLAGS=`echo "$CFLAGS" | $SED -e 's/-ansi//'`
24141
24142
24143  CFLAGS=`echo "$CFLAGS" | $SED -e 's/-std=c89//'`
24144
24145
24146  CFLAGS=`echo "$CFLAGS" | $SED -e 's/-std=c90//'`
24147
24148    LIBS="$SWIG_RB_LIBS"
24149    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24150/* end confdefs.h.  */
24151
24152#include <ruby.h>
24153int main()
24154{rb_errinfo();}
24155_ACEOF
24156if ac_fn_c_try_link "$LINENO"; then :
24157  have_rb_errinfo="yes"
24158else
24159  have_rb_errinfo="no"
24160fi
24161rm -f core conftest.err conftest.$ac_objext \
24162    conftest$ac_exeext conftest.$ac_ext
24163    if test "$have_rb_errinfo" = "yes"; then
24164      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24165$as_echo "yes" >&6; }
24166
24167$as_echo "#define HAVE_RB_ERRINFO 1" >>confdefs.h
24168
24169    else
24170      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24171$as_echo "no" >&6; }
24172    fi
24173    CFLAGS="$old_CFLAGS"
24174    LIBS="$old_LIBS"
24175
24176    if ${svn_cv_ruby_sitedir+:} false; then :
24177  $as_echo_n "(cached) " >&6
24178else
24179
24180      svn_cv_ruby_sitedir="$rbconfig_sitedir"
24181
24182fi
24183
24184
24185# Check whether --with-ruby-sitedir was given.
24186if test "${with_ruby_sitedir+set}" = set; then :
24187  withval=$with_ruby_sitedir; svn_ruby_installdir="$withval"
24188else
24189  svn_ruby_installdir="$svn_cv_ruby_sitedir"
24190fi
24191
24192
24193    { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to install Ruby scripts" >&5
24194$as_echo_n "checking where to install Ruby scripts... " >&6; }
24195    if ${svn_cv_ruby_sitedir_libsuffix+:} false; then :
24196  $as_echo_n "(cached) " >&6
24197else
24198
24199      svn_cv_ruby_sitedir_libsuffix="`echo "$rbconfig_sitelibdir" | \
24200                                        $SED -e "s,^$rbconfig_sitedir,,"`"
24201
24202fi
24203
24204    SWIG_RB_SITE_LIB_DIR="${svn_ruby_installdir}${svn_cv_ruby_sitedir_libsuffix}"
24205    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG_RB_SITE_LIB_DIR" >&5
24206$as_echo "$SWIG_RB_SITE_LIB_DIR" >&6; }
24207
24208    { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to install Ruby extensions" >&5
24209$as_echo_n "checking where to install Ruby extensions... " >&6; }
24210    if ${svn_cv_ruby_sitedir_archsuffix+:} false; then :
24211  $as_echo_n "(cached) " >&6
24212else
24213
24214      svn_cv_ruby_sitedir_archsuffix="`echo "$rbconfig_sitearchdir" | \
24215                                        $SED -e "s,^$rbconfig_sitedir,,"`"
24216
24217fi
24218
24219    SWIG_RB_SITE_ARCH_DIR="${svn_ruby_installdir}${svn_cv_ruby_sitedir_archsuffix}"
24220    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG_RB_SITE_ARCH_DIR" >&5
24221$as_echo "$SWIG_RB_SITE_ARCH_DIR" >&6; }
24222
24223    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to use output level for Ruby bindings tests" >&5
24224$as_echo_n "checking how to use output level for Ruby bindings tests... " >&6; }
24225    if ${svn_cv_ruby_test_verbose+:} false; then :
24226  $as_echo_n "(cached) " >&6
24227else
24228
24229      svn_cv_ruby_test_verbose="normal"
24230
24231fi
24232
24233
24234# Check whether --with-ruby-test-verbose was given.
24235if test "${with_ruby_test_verbose+set}" = set; then :
24236  withval=$with_ruby_test_verbose; svn_ruby_test_verbose="$withval"
24237else
24238  svn_ruby_test_verbose="$svn_cv_ruby_test_verbose"
24239fi
24240
24241      SWIG_RB_TEST_VERBOSE="$svn_ruby_test_verbose"
24242      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG_RB_TEST_VERBOSE" >&5
24243$as_echo "$SWIG_RB_TEST_VERBOSE" >&6; }
24244  fi
24245
24246
24247
24248
24249
24250
24251
24252
24253
24254
24255
24256
24257
24258
24259      ;;
24260    esac
24261
24262else
24263
24264
24265  where=check
24266
24267  if test $where = no; then
24268    SWIG=none
24269  elif test $where = check; then
24270    # Extract the first word of "swig", so it can be a program name with args.
24271set dummy swig; ac_word=$2
24272{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24273$as_echo_n "checking for $ac_word... " >&6; }
24274if ${ac_cv_path_SWIG+:} false; then :
24275  $as_echo_n "(cached) " >&6
24276else
24277  case $SWIG in
24278  [\\/]* | ?:[\\/]*)
24279  ac_cv_path_SWIG="$SWIG" # Let the user override the test with a path.
24280  ;;
24281  *)
24282  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24283for as_dir in $PATH
24284do
24285  IFS=$as_save_IFS
24286  test -z "$as_dir" && as_dir=.
24287    for ac_exec_ext in '' $ac_executable_extensions; do
24288  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24289    ac_cv_path_SWIG="$as_dir/$ac_word$ac_exec_ext"
24290    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24291    break 2
24292  fi
24293done
24294  done
24295IFS=$as_save_IFS
24296
24297  test -z "$ac_cv_path_SWIG" && ac_cv_path_SWIG="none"
24298  ;;
24299esac
24300fi
24301SWIG=$ac_cv_path_SWIG
24302if test -n "$SWIG"; then
24303  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG" >&5
24304$as_echo "$SWIG" >&6; }
24305else
24306  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24307$as_echo "no" >&6; }
24308fi
24309
24310
24311  else
24312    if test -f "$where"; then
24313      SWIG="$where"
24314    else
24315      SWIG="$where/bin/swig"
24316    fi
24317    if test ! -f "$SWIG" || test ! -x "$SWIG"; then
24318      as_fn_error $? "Could not find swig binary at $SWIG" "$LINENO" 5
24319    fi
24320  fi
24321
24322  if test "$SWIG" != "none"; then
24323    { $as_echo "$as_me:${as_lineno-$LINENO}: checking swig version" >&5
24324$as_echo_n "checking swig version... " >&6; }
24325    SWIG_VERSION_RAW="`$SWIG -version 2>&1 | \
24326                       $SED -ne 's/^.*Version \(.*\)$/\1/p'`"
24327    # We want the version as an integer so we can test against
24328    # which version we're using.  SWIG doesn't provide this
24329    # to us so we have to come up with it on our own.
24330    # The major is passed straight through,
24331    # the minor is zero padded to two places,
24332    # and the patch level is zero padded to three places.
24333    # e.g. 1.3.24 becomes 103024
24334    SWIG_VERSION="`echo \"$SWIG_VERSION_RAW\" | \
24335                  $SED -e 's/[^0-9\.].*$//' \
24336                      -e 's/\.\([0-9]\)$/.0\1/' \
24337                      -e 's/\.\([0-9][0-9]\)$/.0\1/' \
24338                      -e 's/\.\([0-9]\)\./0\1/; s/\.//g;'`"
24339    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG_VERSION_RAW" >&5
24340$as_echo "$SWIG_VERSION_RAW" >&6; }
24341    # If you change the required swig version number, don't forget to update:
24342    #   subversion/bindings/swig/INSTALL
24343    #   packages/rpm/redhat-8+/subversion.spec
24344    #   packages/rpm/redhat-7.x/subversion.spec
24345    #   packages/rpm/rhel-3/subversion.spec
24346    #   packages/rpm/rhel-4/subversion.spec
24347    if test -n "$SWIG_VERSION" && test "$SWIG_VERSION" -ge "103024"; then
24348      SWIG_SUITABLE=yes
24349    else
24350      SWIG_SUITABLE=no
24351      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Detected SWIG version $SWIG_VERSION_RAW" >&5
24352$as_echo "$as_me: WARNING: Detected SWIG version $SWIG_VERSION_RAW" >&2;}
24353      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Subversion requires SWIG 1.3.24 or later" >&5
24354$as_echo "$as_me: WARNING: Subversion requires SWIG 1.3.24 or later" >&2;}
24355    fi
24356  fi
24357
24358  SWIG_PY_COMPILE="none"
24359  SWIG_PY_LINK="none"
24360  if test "$PYTHON" != "none"; then
24361    { $as_echo "$as_me:${as_lineno-$LINENO}: Configuring python swig binding" >&5
24362$as_echo "$as_me: Configuring python swig binding" >&6;}
24363
24364    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python includes" >&5
24365$as_echo_n "checking for Python includes... " >&6; }
24366if ${ac_cv_python_includes+:} false; then :
24367  $as_echo_n "(cached) " >&6
24368else
24369
24370      ac_cv_python_includes="`$PYTHON ${abs_srcdir}/build/get-py-info.py --includes`"
24371
24372fi
24373{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_python_includes" >&5
24374$as_echo "$ac_cv_python_includes" >&6; }
24375    SWIG_PY_INCLUDES="\$(SWIG_INCLUDES) $ac_cv_python_includes"
24376
24377    if test "$ac_cv_python_includes" = "none"; then
24378      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: python bindings cannot be built without distutils module" >&5
24379$as_echo "$as_me: WARNING: python bindings cannot be built without distutils module" >&2;}
24380    fi
24381
24382    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiling Python extensions" >&5
24383$as_echo_n "checking for compiling Python extensions... " >&6; }
24384if ${ac_cv_python_compile+:} false; then :
24385  $as_echo_n "(cached) " >&6
24386else
24387
24388      ac_cv_python_compile="`$PYTHON ${abs_srcdir}/build/get-py-info.py --compile`"
24389
24390fi
24391{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_python_compile" >&5
24392$as_echo "$ac_cv_python_compile" >&6; }
24393    SWIG_PY_COMPILE="$ac_cv_python_compile $CFLAGS"
24394
24395    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linking Python extensions" >&5
24396$as_echo_n "checking for linking Python extensions... " >&6; }
24397if ${ac_cv_python_link+:} false; then :
24398  $as_echo_n "(cached) " >&6
24399else
24400
24401      ac_cv_python_link="`$PYTHON ${abs_srcdir}/build/get-py-info.py --link`"
24402
24403fi
24404{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_python_link" >&5
24405$as_echo "$ac_cv_python_link" >&6; }
24406    SWIG_PY_LINK="$ac_cv_python_link"
24407
24408    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linking Python libraries" >&5
24409$as_echo_n "checking for linking Python libraries... " >&6; }
24410if ${ac_cv_python_libs+:} false; then :
24411  $as_echo_n "(cached) " >&6
24412else
24413
24414      ac_cv_python_libs="`$PYTHON ${abs_srcdir}/build/get-py-info.py --libs`"
24415
24416fi
24417{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_python_libs" >&5
24418$as_echo "$ac_cv_python_libs" >&6; }
24419    SWIG_PY_LIBS="`
24420  input_flags="$ac_cv_python_libs"
24421  output_flags=""
24422  filtered_dirs="/lib /lib64 /usr/lib /usr/lib64"
24423  for flag in $input_flags; do
24424    filter="no"
24425    for dir in $filtered_dirs; do
24426      if test "$flag" = "-L$dir" || test "$flag" = "-L$dir/"; then
24427        filter="yes"
24428        break
24429      fi
24430    done
24431    if test "$filter" = "no"; then
24432      output_flags="$output_flags $flag"
24433    fi
24434  done
24435  if test -n "$output_flags"; then
24436    printf "%s" "${output_flags# }"
24437  fi
24438`"
24439
24440                SVN_PYCFMT_SAVE_CPPFLAGS="$CPPFLAGS"
24441    CPPFLAGS="$CPPFLAGS $SVN_APR_INCLUDES"
24442    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for apr_int64_t Python/C API format string" >&5
24443$as_echo_n "checking for apr_int64_t Python/C API format string... " >&6; }
24444if ${svn_cv_pycfmt_apr_int64_t+:} false; then :
24445  $as_echo_n "(cached) " >&6
24446else
24447
24448      if test "x$svn_cv_pycfmt_apr_int64_t" = "x"; then
24449        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24450/* end confdefs.h.  */
24451#include <apr.h>
24452                      MaTcHtHiS APR_INT64_T_FMT EnDeNd
24453_ACEOF
24454if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24455  $EGREP "MaTcHtHiS +\"lld\" +EnDeNd" >/dev/null 2>&1; then :
24456  svn_cv_pycfmt_apr_int64_t="L"
24457fi
24458rm -f conftest*
24459
24460      fi
24461      if test "x$svn_cv_pycfmt_apr_int64_t" = "x"; then
24462        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24463/* end confdefs.h.  */
24464r
24465                     #include <apr.h>
24466                      MaTcHtHiS APR_INT64_T_FMT EnDeNd
24467_ACEOF
24468if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24469  $EGREP "MaTcHtHiS +\"ld\" +EnDeNd" >/dev/null 2>&1; then :
24470  svn_cv_pycfmt_apr_int64_t="l"
24471fi
24472rm -f conftest*
24473
24474      fi
24475      if test "x$svn_cv_pycfmt_apr_int64_t" = "x"; then
24476        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24477/* end confdefs.h.  */
24478#include <apr.h>
24479                      MaTcHtHiS APR_INT64_T_FMT EnDeNd
24480_ACEOF
24481if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24482  $EGREP "MaTcHtHiS +\"d\" +EnDeNd" >/dev/null 2>&1; then :
24483  svn_cv_pycfmt_apr_int64_t="i"
24484fi
24485rm -f conftest*
24486
24487      fi
24488
24489fi
24490{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $svn_cv_pycfmt_apr_int64_t" >&5
24491$as_echo "$svn_cv_pycfmt_apr_int64_t" >&6; }
24492    CPPFLAGS="$SVN_PYCFMT_SAVE_CPPFLAGS"
24493    if test "x$svn_cv_pycfmt_apr_int64_t" = "x"; then
24494      as_fn_error $? "failed to recognize APR_INT64_T_FMT on this platform" "$LINENO" 5
24495    fi
24496
24497cat >>confdefs.h <<_ACEOF
24498#define SVN_APR_INT64_T_PYCFMT "$svn_cv_pycfmt_apr_int64_t"
24499_ACEOF
24500
24501  fi
24502
24503  if test "$PERL" != "none"; then
24504    { $as_echo "$as_me:${as_lineno-$LINENO}: checking perl version" >&5
24505$as_echo_n "checking perl version... " >&6; }
24506            PERL_VERSION="`$PERL -e 'q([); print $] * 1000000,$/;'`"
24507    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL_VERSION" >&5
24508$as_echo "$PERL_VERSION" >&6; }
24509    if test "$PERL_VERSION" -ge "5008000"; then
24510      SWIG_PL_INCLUDES="\$(SWIG_INCLUDES) `$PERL -MExtUtils::Embed -e ccopts`"
24511    else
24512      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: perl bindings require perl 5.8.0 or newer." >&5
24513$as_echo "$as_me: WARNING: perl bindings require perl 5.8.0 or newer." >&2;}
24514    fi
24515  fi
24516
24517  SWIG_RB_COMPILE="none"
24518  SWIG_RB_LINK="none"
24519  if test "$RUBY" != "none"; then
24520    rbconfig="$RUBY -rrbconfig -e "
24521
24522    for var_name in arch archdir CC LDSHARED DLEXT LIBS LIBRUBYARG \
24523                    rubyhdrdir sitedir sitelibdir sitearchdir libdir
24524    do
24525      rbconfig_tmp=`$rbconfig "print RbConfig::CONFIG['$var_name']"`
24526      eval "rbconfig_$var_name=\"$rbconfig_tmp\""
24527    done
24528
24529    { $as_echo "$as_me:${as_lineno-$LINENO}: Configuring Ruby SWIG binding" >&5
24530$as_echo "$as_me: Configuring Ruby SWIG binding" >&6;}
24531
24532    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ruby include path" >&5
24533$as_echo_n "checking for Ruby include path... " >&6; }
24534if ${svn_cv_ruby_includes+:} false; then :
24535  $as_echo_n "(cached) " >&6
24536else
24537
24538    if test -d "$rbconfig_rubyhdrdir"; then
24539            svn_cv_ruby_includes="-I. -I$rbconfig_rubyhdrdir -I$rbconfig_rubyhdrdir/ruby -I$rbconfig_rubyhdrdir/ruby/backward -I$rbconfig_rubyhdrdir/$rbconfig_arch"
24540    else
24541            svn_cv_ruby_includes="-I. -I$rbconfig_archdir"
24542    fi
24543
24544fi
24545{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $svn_cv_ruby_includes" >&5
24546$as_echo "$svn_cv_ruby_includes" >&6; }
24547    SWIG_RB_INCLUDES="\$(SWIG_INCLUDES) $svn_cv_ruby_includes"
24548
24549    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compile Ruby extensions" >&5
24550$as_echo_n "checking how to compile Ruby extensions... " >&6; }
24551if ${svn_cv_ruby_compile+:} false; then :
24552  $as_echo_n "(cached) " >&6
24553else
24554
24555      svn_cv_ruby_compile="$rbconfig_CC $CFLAGS"
24556
24557fi
24558{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $svn_cv_ruby_compile" >&5
24559$as_echo "$svn_cv_ruby_compile" >&6; }
24560    SWIG_RB_COMPILE="$svn_cv_ruby_compile"
24561
24562  SWIG_RB_COMPILE=`echo "$SWIG_RB_COMPILE" | $SED -e 's/-ansi//'`
24563
24564
24565  SWIG_RB_COMPILE=`echo "$SWIG_RB_COMPILE" | $SED -e 's/-std=c89//'`
24566
24567
24568  SWIG_RB_COMPILE=`echo "$SWIG_RB_COMPILE" | $SED -e 's/-std=c90//'`
24569
24570        SWIG_RB_COMPILE="$SWIG_RB_COMPILE -Wno-int-to-pointer-cast"
24571
24572    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link Ruby extensions" >&5
24573$as_echo_n "checking how to link Ruby extensions... " >&6; }
24574if ${svn_cv_ruby_link+:} false; then :
24575  $as_echo_n "(cached) " >&6
24576else
24577
24578      svn_cv_ruby_link="`$RUBY -e 'ARGV.shift; print ARGV.join(%q( ))' \
24579                           $rbconfig_LDSHARED`"
24580      svn_cv_ruby_link="$rbconfig_CC $svn_cv_ruby_link"
24581      svn_cv_ruby_link="$svn_cv_ruby_link -shrext .$rbconfig_DLEXT"
24582
24583fi
24584{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $svn_cv_ruby_link" >&5
24585$as_echo "$svn_cv_ruby_link" >&6; }
24586    SWIG_RB_LINK="$svn_cv_ruby_link"
24587
24588    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link Ruby libraries" >&5
24589$as_echo_n "checking how to link Ruby libraries... " >&6; }
24590if ${ac_cv_ruby_libs+:} false; then :
24591  $as_echo_n "(cached) " >&6
24592else
24593
24594      ac_cv_ruby_libs="$rbconfig_LIBRUBYARG $rbconfig_LIBS"
24595
24596fi
24597{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_ruby_libs" >&5
24598$as_echo "$ac_cv_ruby_libs" >&6; }
24599    SWIG_RB_LIBS="`
24600  input_flags="$ac_cv_ruby_libs"
24601  output_flags=""
24602  filtered_dirs="/lib /lib64 /usr/lib /usr/lib64"
24603  for flag in $input_flags; do
24604    filter="no"
24605    for dir in $filtered_dirs; do
24606      if test "$flag" = "-L$dir" || test "$flag" = "-L$dir/"; then
24607        filter="yes"
24608        break
24609      fi
24610    done
24611    if test "$filter" = "no"; then
24612      output_flags="$output_flags $flag"
24613    fi
24614  done
24615  if test -n "$output_flags"; then
24616    printf "%s" "${output_flags# }"
24617  fi
24618`"
24619
24620    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rb_errinfo" >&5
24621$as_echo_n "checking for rb_errinfo... " >&6; }
24622    old_CFLAGS="$CFLAGS"
24623    old_LIBS="$LIBS"
24624    CFLAGS="$CFLAGS $svn_cv_ruby_includes"
24625
24626  CFLAGS=`echo "$CFLAGS" | $SED -e 's/-ansi//'`
24627
24628
24629  CFLAGS=`echo "$CFLAGS" | $SED -e 's/-std=c89//'`
24630
24631
24632  CFLAGS=`echo "$CFLAGS" | $SED -e 's/-std=c90//'`
24633
24634    LIBS="$SWIG_RB_LIBS"
24635    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24636/* end confdefs.h.  */
24637
24638#include <ruby.h>
24639int main()
24640{rb_errinfo();}
24641_ACEOF
24642if ac_fn_c_try_link "$LINENO"; then :
24643  have_rb_errinfo="yes"
24644else
24645  have_rb_errinfo="no"
24646fi
24647rm -f core conftest.err conftest.$ac_objext \
24648    conftest$ac_exeext conftest.$ac_ext
24649    if test "$have_rb_errinfo" = "yes"; then
24650      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24651$as_echo "yes" >&6; }
24652
24653$as_echo "#define HAVE_RB_ERRINFO 1" >>confdefs.h
24654
24655    else
24656      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24657$as_echo "no" >&6; }
24658    fi
24659    CFLAGS="$old_CFLAGS"
24660    LIBS="$old_LIBS"
24661
24662    if ${svn_cv_ruby_sitedir+:} false; then :
24663  $as_echo_n "(cached) " >&6
24664else
24665
24666      svn_cv_ruby_sitedir="$rbconfig_sitedir"
24667
24668fi
24669
24670
24671# Check whether --with-ruby-sitedir was given.
24672if test "${with_ruby_sitedir+set}" = set; then :
24673  withval=$with_ruby_sitedir; svn_ruby_installdir="$withval"
24674else
24675  svn_ruby_installdir="$svn_cv_ruby_sitedir"
24676fi
24677
24678
24679    { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to install Ruby scripts" >&5
24680$as_echo_n "checking where to install Ruby scripts... " >&6; }
24681    if ${svn_cv_ruby_sitedir_libsuffix+:} false; then :
24682  $as_echo_n "(cached) " >&6
24683else
24684
24685      svn_cv_ruby_sitedir_libsuffix="`echo "$rbconfig_sitelibdir" | \
24686                                        $SED -e "s,^$rbconfig_sitedir,,"`"
24687
24688fi
24689
24690    SWIG_RB_SITE_LIB_DIR="${svn_ruby_installdir}${svn_cv_ruby_sitedir_libsuffix}"
24691    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG_RB_SITE_LIB_DIR" >&5
24692$as_echo "$SWIG_RB_SITE_LIB_DIR" >&6; }
24693
24694    { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to install Ruby extensions" >&5
24695$as_echo_n "checking where to install Ruby extensions... " >&6; }
24696    if ${svn_cv_ruby_sitedir_archsuffix+:} false; then :
24697  $as_echo_n "(cached) " >&6
24698else
24699
24700      svn_cv_ruby_sitedir_archsuffix="`echo "$rbconfig_sitearchdir" | \
24701                                        $SED -e "s,^$rbconfig_sitedir,,"`"
24702
24703fi
24704
24705    SWIG_RB_SITE_ARCH_DIR="${svn_ruby_installdir}${svn_cv_ruby_sitedir_archsuffix}"
24706    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG_RB_SITE_ARCH_DIR" >&5
24707$as_echo "$SWIG_RB_SITE_ARCH_DIR" >&6; }
24708
24709    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to use output level for Ruby bindings tests" >&5
24710$as_echo_n "checking how to use output level for Ruby bindings tests... " >&6; }
24711    if ${svn_cv_ruby_test_verbose+:} false; then :
24712  $as_echo_n "(cached) " >&6
24713else
24714
24715      svn_cv_ruby_test_verbose="normal"
24716
24717fi
24718
24719
24720# Check whether --with-ruby-test-verbose was given.
24721if test "${with_ruby_test_verbose+set}" = set; then :
24722  withval=$with_ruby_test_verbose; svn_ruby_test_verbose="$withval"
24723else
24724  svn_ruby_test_verbose="$svn_cv_ruby_test_verbose"
24725fi
24726
24727      SWIG_RB_TEST_VERBOSE="$svn_ruby_test_verbose"
24728      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG_RB_TEST_VERBOSE" >&5
24729$as_echo "$SWIG_RB_TEST_VERBOSE" >&6; }
24730  fi
24731
24732
24733
24734
24735
24736
24737
24738
24739
24740
24741
24742
24743
24744
24745
24746fi
24747
24748
24749
24750
24751
24752# Check whether --with-ctypesgen was given.
24753if test "${with_ctypesgen+set}" = set; then :
24754  withval=$with_ctypesgen;
24755    case "$withval" in
24756      "no")
24757
24758  where=no
24759
24760  CTYPESGEN=none
24761
24762  if test $where = check; then
24763    # Extract the first word of ""ctypesgen.py"", so it can be a program name with args.
24764set dummy "ctypesgen.py"; ac_word=$2
24765{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24766$as_echo_n "checking for $ac_word... " >&6; }
24767if ${ac_cv_path_CTYPESGEN+:} false; then :
24768  $as_echo_n "(cached) " >&6
24769else
24770  case $CTYPESGEN in
24771  [\\/]* | ?:[\\/]*)
24772  ac_cv_path_CTYPESGEN="$CTYPESGEN" # Let the user override the test with a path.
24773  ;;
24774  *)
24775  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24776for as_dir in $PATH
24777do
24778  IFS=$as_save_IFS
24779  test -z "$as_dir" && as_dir=.
24780    for ac_exec_ext in '' $ac_executable_extensions; do
24781  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24782    ac_cv_path_CTYPESGEN="$as_dir/$ac_word$ac_exec_ext"
24783    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24784    break 2
24785  fi
24786done
24787  done
24788IFS=$as_save_IFS
24789
24790  test -z "$ac_cv_path_CTYPESGEN" && ac_cv_path_CTYPESGEN="none"
24791  ;;
24792esac
24793fi
24794CTYPESGEN=$ac_cv_path_CTYPESGEN
24795if test -n "$CTYPESGEN"; then
24796  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CTYPESGEN" >&5
24797$as_echo "$CTYPESGEN" >&6; }
24798else
24799  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24800$as_echo "no" >&6; }
24801fi
24802
24803
24804  elif test $where != no; then
24805    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctypesgen.py" >&5
24806$as_echo_n "checking for ctypesgen.py... " >&6; }
24807
24808    if test -f "$where"; then
24809      CTYPESGEN="$where"
24810    elif test -f "$where/bin/ctypesgen.py"; then
24811      CTYPESGEN="$where/bin/ctypesgen.py"
24812    else
24813      CTYPESGEN="$where/ctypesgen.py"
24814    fi
24815
24816    if test ! -f "$CTYPESGEN" || test ! -x "$CTYPESGEN"; then
24817      as_fn_error $? "Could not find ctypesgen at $where/ctypesgen.py or at
24818                    $where/bin/ctypesgen.py" "$LINENO" 5
24819    else
24820      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CTYPESGEN" >&5
24821$as_echo "$CTYPESGEN" >&6; }
24822    fi
24823  fi
24824
24825
24826
24827      ;;
24828      "yes")
24829
24830  where=check
24831
24832  CTYPESGEN=none
24833
24834  if test $where = check; then
24835    # Extract the first word of ""ctypesgen.py"", so it can be a program name with args.
24836set dummy "ctypesgen.py"; ac_word=$2
24837{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24838$as_echo_n "checking for $ac_word... " >&6; }
24839if ${ac_cv_path_CTYPESGEN+:} false; then :
24840  $as_echo_n "(cached) " >&6
24841else
24842  case $CTYPESGEN in
24843  [\\/]* | ?:[\\/]*)
24844  ac_cv_path_CTYPESGEN="$CTYPESGEN" # Let the user override the test with a path.
24845  ;;
24846  *)
24847  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24848for as_dir in $PATH
24849do
24850  IFS=$as_save_IFS
24851  test -z "$as_dir" && as_dir=.
24852    for ac_exec_ext in '' $ac_executable_extensions; do
24853  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24854    ac_cv_path_CTYPESGEN="$as_dir/$ac_word$ac_exec_ext"
24855    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24856    break 2
24857  fi
24858done
24859  done
24860IFS=$as_save_IFS
24861
24862  test -z "$ac_cv_path_CTYPESGEN" && ac_cv_path_CTYPESGEN="none"
24863  ;;
24864esac
24865fi
24866CTYPESGEN=$ac_cv_path_CTYPESGEN
24867if test -n "$CTYPESGEN"; then
24868  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CTYPESGEN" >&5
24869$as_echo "$CTYPESGEN" >&6; }
24870else
24871  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24872$as_echo "no" >&6; }
24873fi
24874
24875
24876  elif test $where != no; then
24877    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctypesgen.py" >&5
24878$as_echo_n "checking for ctypesgen.py... " >&6; }
24879
24880    if test -f "$where"; then
24881      CTYPESGEN="$where"
24882    elif test -f "$where/bin/ctypesgen.py"; then
24883      CTYPESGEN="$where/bin/ctypesgen.py"
24884    else
24885      CTYPESGEN="$where/ctypesgen.py"
24886    fi
24887
24888    if test ! -f "$CTYPESGEN" || test ! -x "$CTYPESGEN"; then
24889      as_fn_error $? "Could not find ctypesgen at $where/ctypesgen.py or at
24890                    $where/bin/ctypesgen.py" "$LINENO" 5
24891    else
24892      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CTYPESGEN" >&5
24893$as_echo "$CTYPESGEN" >&6; }
24894    fi
24895  fi
24896
24897
24898
24899      ;;
24900      *)
24901
24902  where=$withval
24903
24904  CTYPESGEN=none
24905
24906  if test $where = check; then
24907    # Extract the first word of ""ctypesgen.py"", so it can be a program name with args.
24908set dummy "ctypesgen.py"; ac_word=$2
24909{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24910$as_echo_n "checking for $ac_word... " >&6; }
24911if ${ac_cv_path_CTYPESGEN+:} false; then :
24912  $as_echo_n "(cached) " >&6
24913else
24914  case $CTYPESGEN in
24915  [\\/]* | ?:[\\/]*)
24916  ac_cv_path_CTYPESGEN="$CTYPESGEN" # Let the user override the test with a path.
24917  ;;
24918  *)
24919  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24920for as_dir in $PATH
24921do
24922  IFS=$as_save_IFS
24923  test -z "$as_dir" && as_dir=.
24924    for ac_exec_ext in '' $ac_executable_extensions; do
24925  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24926    ac_cv_path_CTYPESGEN="$as_dir/$ac_word$ac_exec_ext"
24927    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24928    break 2
24929  fi
24930done
24931  done
24932IFS=$as_save_IFS
24933
24934  test -z "$ac_cv_path_CTYPESGEN" && ac_cv_path_CTYPESGEN="none"
24935  ;;
24936esac
24937fi
24938CTYPESGEN=$ac_cv_path_CTYPESGEN
24939if test -n "$CTYPESGEN"; then
24940  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CTYPESGEN" >&5
24941$as_echo "$CTYPESGEN" >&6; }
24942else
24943  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24944$as_echo "no" >&6; }
24945fi
24946
24947
24948  elif test $where != no; then
24949    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctypesgen.py" >&5
24950$as_echo_n "checking for ctypesgen.py... " >&6; }
24951
24952    if test -f "$where"; then
24953      CTYPESGEN="$where"
24954    elif test -f "$where/bin/ctypesgen.py"; then
24955      CTYPESGEN="$where/bin/ctypesgen.py"
24956    else
24957      CTYPESGEN="$where/ctypesgen.py"
24958    fi
24959
24960    if test ! -f "$CTYPESGEN" || test ! -x "$CTYPESGEN"; then
24961      as_fn_error $? "Could not find ctypesgen at $where/ctypesgen.py or at
24962                    $where/bin/ctypesgen.py" "$LINENO" 5
24963    else
24964      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CTYPESGEN" >&5
24965$as_echo "$CTYPESGEN" >&6; }
24966    fi
24967  fi
24968
24969
24970
24971      ;;
24972    esac
24973
24974else
24975
24976
24977  where=check
24978
24979  CTYPESGEN=none
24980
24981  if test $where = check; then
24982    # Extract the first word of ""ctypesgen.py"", so it can be a program name with args.
24983set dummy "ctypesgen.py"; ac_word=$2
24984{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24985$as_echo_n "checking for $ac_word... " >&6; }
24986if ${ac_cv_path_CTYPESGEN+:} false; then :
24987  $as_echo_n "(cached) " >&6
24988else
24989  case $CTYPESGEN in
24990  [\\/]* | ?:[\\/]*)
24991  ac_cv_path_CTYPESGEN="$CTYPESGEN" # Let the user override the test with a path.
24992  ;;
24993  *)
24994  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24995for as_dir in $PATH
24996do
24997  IFS=$as_save_IFS
24998  test -z "$as_dir" && as_dir=.
24999    for ac_exec_ext in '' $ac_executable_extensions; do
25000  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25001    ac_cv_path_CTYPESGEN="$as_dir/$ac_word$ac_exec_ext"
25002    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25003    break 2
25004  fi
25005done
25006  done
25007IFS=$as_save_IFS
25008
25009  test -z "$ac_cv_path_CTYPESGEN" && ac_cv_path_CTYPESGEN="none"
25010  ;;
25011esac
25012fi
25013CTYPESGEN=$ac_cv_path_CTYPESGEN
25014if test -n "$CTYPESGEN"; then
25015  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CTYPESGEN" >&5
25016$as_echo "$CTYPESGEN" >&6; }
25017else
25018  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25019$as_echo "no" >&6; }
25020fi
25021
25022
25023  elif test $where != no; then
25024    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctypesgen.py" >&5
25025$as_echo_n "checking for ctypesgen.py... " >&6; }
25026
25027    if test -f "$where"; then
25028      CTYPESGEN="$where"
25029    elif test -f "$where/bin/ctypesgen.py"; then
25030      CTYPESGEN="$where/bin/ctypesgen.py"
25031    else
25032      CTYPESGEN="$where/ctypesgen.py"
25033    fi
25034
25035    if test ! -f "$CTYPESGEN" || test ! -x "$CTYPESGEN"; then
25036      as_fn_error $? "Could not find ctypesgen at $where/ctypesgen.py or at
25037                    $where/bin/ctypesgen.py" "$LINENO" 5
25038    else
25039      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CTYPESGEN" >&5
25040$as_echo "$CTYPESGEN" >&6; }
25041    fi
25042  fi
25043
25044
25045
25046
25047fi
25048
25049
25050
25051# Check whether --enable-runtime-module-search was given.
25052if test "${enable_runtime_module_search+set}" = set; then :
25053  enableval=$enable_runtime_module_search;
25054    if test "$enableval" = "yes"; then
25055      use_dso=yes
25056      if test "$svn_enable_shared" = "no"; then
25057        as_fn_error $? "--enable-runtime-module-search conflicts with --disable-shared" "$LINENO" 5
25058      fi
25059
25060$as_echo "#define SVN_USE_DSO 1" >>confdefs.h
25061
25062    fi
25063
25064fi
25065
25066
25067if test "$svn_enable_shared" = "no" || test "$use_dso" != "yes"; then
25068
25069$as_echo "#define SVN_LIBSVN_CLIENT_LINKS_RA_LOCAL 1" >>confdefs.h
25070
25071  svn_ra_lib_deps="\$(RA_LOCAL_DEPS)"
25072  svn_ra_lib_install_deps="install-ramod-lib"
25073  svn_ra_lib_link="\$(RA_LOCAL_LINK)"
25074
25075
25076$as_echo "#define SVN_LIBSVN_CLIENT_LINKS_RA_SVN 1" >>confdefs.h
25077
25078  svn_ra_lib_deps="$svn_ra_lib_deps \$(RA_SVN_DEPS)"
25079  svn_ra_lib_link="$svn_ra_lib_link \$(RA_SVN_LINK)"
25080
25081  if test "$svn_lib_serf" = "yes"; then
25082
25083$as_echo "#define SVN_LIBSVN_CLIENT_LINKS_RA_SERF 1" >>confdefs.h
25084
25085    svn_ra_lib_deps="$svn_ra_lib_deps \$(RA_SERF_DEPS)"
25086    svn_ra_lib_install_deps="$svn_ra_lib_install_deps install-serf-lib"
25087    svn_ra_lib_link="$svn_ra_lib_link \$(RA_SERF_LINK)"
25088  fi
25089
25090  SVN_RA_LIB_DEPS=$svn_ra_lib_deps
25091  SVN_RA_LIB_INSTALL_DEPS=$svn_ra_lib_install_deps
25092  SVN_RA_LIB_LINK=$svn_ra_lib_link
25093
25094
25095$as_echo "#define SVN_LIBSVN_FS_LINKS_FS_FS 1" >>confdefs.h
25096
25097  svn_fs_lib_deps="\$(FS_FS_DEPS)"
25098  svn_fs_lib_install_deps="install-fsmod-lib"
25099  svn_fs_lib_link="\$(FS_FS_LINK)"
25100
25101  if test "$svn_lib_berkeley_db" = "yes"; then
25102
25103$as_echo "#define SVN_LIBSVN_FS_LINKS_FS_BASE 1" >>confdefs.h
25104
25105    svn_fs_lib_deps="$svn_fs_lib_deps \$(FS_BASE_DEPS)"
25106    svn_fs_lib_install_deps="$svn_fs_lib_install_deps install-bdb-lib"
25107    svn_fs_lib_link="$svn_fs_lib_link \$(FS_BASE_LINK)"
25108  fi
25109
25110  SVN_FS_LIB_DEPS=$svn_fs_lib_deps
25111  SVN_FS_LIB_INSTALL_DEPS=$svn_fs_lib_install_deps
25112  SVN_FS_LIB_LINK=$svn_fs_lib_link
25113fi
25114
25115
25116
25117
25118
25119
25120
25121
25122# ==== JavaHL ================================================================
25123
25124do_javahl_build=no
25125# Check whether --enable-javahl was given.
25126if test "${enable_javahl+set}" = set; then :
25127  enableval=$enable_javahl;  if test "$enableval" = "yes" ; then
25128        do_javahl_build="yes"
25129    fi
25130
25131fi
25132
25133
25134JAVAHL_OBJDIR=""
25135INSTALL_EXTRA_JAVAHL_LIB=""
25136FIX_JAVAHL_LIB=""
25137JAVAHL_TESTS_TARGET=""
25138JAVAHL_COMPAT_TESTS_TARGET=""
25139LT_CXX_LIBADD=""
25140if test "$do_javahl_build" = "yes"; then
25141    if test "$JDK_SUITABLE" = "no"; then
25142    as_fn_error $? "Cannot compile JavaHL without a suitable JDK.
25143                  Please specify a suitable JDK using the --with-jdk option." "$LINENO" 5
25144  fi
25145
25146    JAVAHL_OBJDIR='$(libsvnjavahl_PATH)/.libs'
25147
25148  os_arch=`uname`
25149  if test "$os_arch" = "Darwin"; then
25150        INSTALL_EXTRA_JAVAHL_LIB='ln -sf $(libdir)/libsvnjavahl-1.dylib $(libdir)/libsvnjavahl-1.jnilib'
25151    FIX_JAVAHL_LIB="ln -sf libsvnjavahl-1.dylib $JAVAHL_OBJDIR/libsvnjavahl-1.jnilib"
25152  fi
25153  # This segment (and the rest of r10800) is very likely unnecessary
25154  # with libtool 1.5, which automatically adds libstdc++ as a
25155  # dependency to the C++ libraries it builds.  So at some future time
25156  # when autogen.sh requires libtool 1.5 or higher, we can get rid of
25157  # it.
25158  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for additional flags to link C++ libraries" >&5
25159$as_echo_n "checking for additional flags to link C++ libraries... " >&6; }
25160  if test "x$ac_compiler_gnu" = "xyes"; then
25161    LT_CXX_LIBADD="-lstdc++"
25162    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LT_CXX_LIBADD" >&5
25163$as_echo "$LT_CXX_LIBADD" >&6; }
25164  else
25165    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
25166$as_echo "none needed" >&6; }
25167  fi
25168fi
25169
25170
25171
25172
25173
25174
25175# Check whether --with-junit was given.
25176if test "${with_junit+set}" = set; then :
25177  withval=$with_junit;
25178    if test "$withval" != "no"; then
25179      if test -n "$JAVA_CLASSPATH"; then
25180        JAVA_CLASSPATH="$withval:$JAVA_CLASSPATH"
25181      else
25182        JAVA_CLASSPATH="$withval"
25183      fi
25184      JAVAHL_TESTS_TARGET="javahl-tests"
25185      JAVAHL_COMPAT_TESTS_TARGET="javahl-compat-tests"
25186    fi
25187
25188fi
25189
25190
25191
25192
25193
25194# ==== Miscellaneous bits ====================================================
25195
25196# Strip '-no-cpp-precomp' from CPPFLAGS for the clang compiler
25197### I think we get this flag from APR, so the fix probably belongs there
25198if test "$CC" = "clang"; then
25199
25200  CPPFLAGS=`echo "$CPPFLAGS" | $SED -e 's/-no-cpp-precomp //'`
25201
25202fi
25203
25204# Need to strip '-no-cpp-precomp' from CPPFLAGS for SWIG as well.
25205SWIG_CPPFLAGS="$CPPFLAGS"
25206
25207  SWIG_CPPFLAGS=`echo "$SWIG_CPPFLAGS" | $SED -e 's/-no-cpp-precomp //'`
25208
25209
25210
25211
25212cat >>confdefs.h <<_ACEOF
25213#define SVN_PATH_LOCAL_SEPARATOR '/'
25214_ACEOF
25215
25216
25217
25218cat >>confdefs.h <<_ACEOF
25219#define SVN_NULL_DEVICE_NAME "/dev/null"
25220_ACEOF
25221
25222
25223DEFAULT_FS_TYPE="fsfs"
25224
25225cat >>confdefs.h <<_ACEOF
25226#define DEFAULT_FS_TYPE "$DEFAULT_FS_TYPE"
25227_ACEOF
25228
25229
25230DEFAULT_HTTP_LIBRARY="serf"
25231
25232cat >>confdefs.h <<_ACEOF
25233#define DEFAULT_HTTP_LIBRARY "$DEFAULT_HTTP_LIBRARY"
25234_ACEOF
25235
25236
25237# BSD/OS (BSDi) needs to use a different include syntax in Makefile
25238INCLUDE_OUTPUTS="include \$(top_srcdir)/build-outputs.mk"
25239case "$host" in
25240  *bsdi*)
25241    # Check whether they've installed GNU make
25242    if ! make --version > /dev/null 2>&1; then
25243      # BSDi make
25244      INCLUDE_OUTPUTS=".include \"\$(top_srcdir)/build-outputs.mk\""
25245    fi
25246    ;;
25247esac
25248
25249
25250# ==== Detection complete - output and run config.status =====================
25251
25252ac_config_headers="$ac_config_headers subversion/svn_private_config.h.tmp:subversion/svn_private_config.h.in"
25253
25254ac_config_commands="$ac_config_commands svn_private_config.h.tmp"
25255
25256ac_config_files="$ac_config_files Makefile"
25257
25258
25259
25260  SVN_CONFIG_SCRIPT_FILES="$SVN_CONFIG_SCRIPT_FILES tools/backup/hot-backup.py"
25261  ac_config_files="$ac_config_files tools/backup/hot-backup.py"
25262
25263
25264  SVN_CONFIG_SCRIPT_FILES="$SVN_CONFIG_SCRIPT_FILES tools/hook-scripts/commit-access-control.pl"
25265  ac_config_files="$ac_config_files tools/hook-scripts/commit-access-control.pl"
25266
25267
25268  SVN_CONFIG_SCRIPT_FILES="$SVN_CONFIG_SCRIPT_FILES subversion/bindings/swig/perl/native/Makefile.PL"
25269  ac_config_files="$ac_config_files subversion/bindings/swig/perl/native/Makefile.PL"
25270
25271if test -e packages/solaris/pkginfo.in; then
25272
25273  SVN_CONFIG_SCRIPT_FILES="$SVN_CONFIG_SCRIPT_FILES packages/solaris/pkginfo"
25274  ac_config_files="$ac_config_files packages/solaris/pkginfo"
25275
25276fi
25277
25278
25279# Ensure that SWIG is checked after reconfiguration.
25280rm -f .swig_checked
25281
25282
25283cat >>confdefs.h <<_ACEOF
25284#define SVN_BUILD_HOST "${host}"
25285_ACEOF
25286
25287
25288
25289cat >>confdefs.h <<_ACEOF
25290#define SVN_BUILD_TARGET "${target}"
25291_ACEOF
25292
25293
25294cat >confcache <<\_ACEOF
25295# This file is a shell script that caches the results of configure
25296# tests run on this system so they can be shared between configure
25297# scripts and configure runs, see configure's option --config-cache.
25298# It is not useful on other systems.  If it contains results you don't
25299# want to keep, you may remove or edit it.
25300#
25301# config.status only pays attention to the cache file if you give it
25302# the --recheck option to rerun configure.
25303#
25304# `ac_cv_env_foo' variables (set or unset) will be overridden when
25305# loading this file, other *unset* `ac_cv_foo' will be assigned the
25306# following values.
25307
25308_ACEOF
25309
25310# The following way of writing the cache mishandles newlines in values,
25311# but we know of no workaround that is simple, portable, and efficient.
25312# So, we kill variables containing newlines.
25313# Ultrix sh set writes to stderr and can't be redirected directly,
25314# and sets the high bit in the cache file unless we assign to the vars.
25315(
25316  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
25317    eval ac_val=\$$ac_var
25318    case $ac_val in #(
25319    *${as_nl}*)
25320      case $ac_var in #(
25321      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
25322$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
25323      esac
25324      case $ac_var in #(
25325      _ | IFS | as_nl) ;; #(
25326      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
25327      *) { eval $ac_var=; unset $ac_var;} ;;
25328      esac ;;
25329    esac
25330  done
25331
25332  (set) 2>&1 |
25333    case $as_nl`(ac_space=' '; set) 2>&1` in #(
25334    *${as_nl}ac_space=\ *)
25335      # `set' does not quote correctly, so add quotes: double-quote
25336      # substitution turns \\\\ into \\, and sed turns \\ into \.
25337      sed -n \
25338	"s/'/'\\\\''/g;
25339	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
25340      ;; #(
25341    *)
25342      # `set' quotes correctly as required by POSIX, so do not add quotes.
25343      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
25344      ;;
25345    esac |
25346    sort
25347) |
25348  sed '
25349     /^ac_cv_env_/b end
25350     t clear
25351     :clear
25352     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
25353     t end
25354     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
25355     :end' >>confcache
25356if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
25357  if test -w "$cache_file"; then
25358    if test "x$cache_file" != "x/dev/null"; then
25359      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
25360$as_echo "$as_me: updating cache $cache_file" >&6;}
25361      if test ! -f "$cache_file" || test -h "$cache_file"; then
25362	cat confcache >"$cache_file"
25363      else
25364        case $cache_file in #(
25365        */* | ?:*)
25366	  mv -f confcache "$cache_file"$$ &&
25367	  mv -f "$cache_file"$$ "$cache_file" ;; #(
25368        *)
25369	  mv -f confcache "$cache_file" ;;
25370	esac
25371      fi
25372    fi
25373  else
25374    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
25375$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
25376  fi
25377fi
25378rm -f confcache
25379
25380test "x$prefix" = xNONE && prefix=$ac_default_prefix
25381# Let make expand exec_prefix.
25382test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
25383
25384DEFS=-DHAVE_CONFIG_H
25385
25386ac_libobjs=
25387ac_ltlibobjs=
25388U=
25389for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
25390  # 1. Remove the extension, and $U if already installed.
25391  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
25392  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
25393  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
25394  #    will be set to the directory where LIBOBJS objects are built.
25395  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
25396  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
25397done
25398LIBOBJS=$ac_libobjs
25399
25400LTLIBOBJS=$ac_ltlibobjs
25401
25402
25403
25404: "${CONFIG_STATUS=./config.status}"
25405ac_write_fail=0
25406ac_clean_files_save=$ac_clean_files
25407ac_clean_files="$ac_clean_files $CONFIG_STATUS"
25408{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
25409$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
25410as_write_fail=0
25411cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
25412#! $SHELL
25413# Generated by $as_me.
25414# Run this file to recreate the current configuration.
25415# Compiler output produced by configure, useful for debugging
25416# configure, is in config.log if it exists.
25417
25418debug=false
25419ac_cs_recheck=false
25420ac_cs_silent=false
25421
25422SHELL=\${CONFIG_SHELL-$SHELL}
25423export SHELL
25424_ASEOF
25425cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
25426## -------------------- ##
25427## M4sh Initialization. ##
25428## -------------------- ##
25429
25430# Be more Bourne compatible
25431DUALCASE=1; export DUALCASE # for MKS sh
25432if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
25433  emulate sh
25434  NULLCMD=:
25435  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25436  # is contrary to our usage.  Disable this feature.
25437  alias -g '${1+"$@"}'='"$@"'
25438  setopt NO_GLOB_SUBST
25439else
25440  case `(set -o) 2>/dev/null` in #(
25441  *posix*) :
25442    set -o posix ;; #(
25443  *) :
25444     ;;
25445esac
25446fi
25447
25448
25449as_nl='
25450'
25451export as_nl
25452# Printing a long string crashes Solaris 7 /usr/bin/printf.
25453as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
25454as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
25455as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
25456# Prefer a ksh shell builtin over an external printf program on Solaris,
25457# but without wasting forks for bash or zsh.
25458if test -z "$BASH_VERSION$ZSH_VERSION" \
25459    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
25460  as_echo='print -r --'
25461  as_echo_n='print -rn --'
25462elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
25463  as_echo='printf %s\n'
25464  as_echo_n='printf %s'
25465else
25466  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
25467    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
25468    as_echo_n='/usr/ucb/echo -n'
25469  else
25470    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
25471    as_echo_n_body='eval
25472      arg=$1;
25473      case $arg in #(
25474      *"$as_nl"*)
25475	expr "X$arg" : "X\\(.*\\)$as_nl";
25476	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
25477      esac;
25478      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
25479    '
25480    export as_echo_n_body
25481    as_echo_n='sh -c $as_echo_n_body as_echo'
25482  fi
25483  export as_echo_body
25484  as_echo='sh -c $as_echo_body as_echo'
25485fi
25486
25487# The user is always right.
25488if test "${PATH_SEPARATOR+set}" != set; then
25489  PATH_SEPARATOR=:
25490  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
25491    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
25492      PATH_SEPARATOR=';'
25493  }
25494fi
25495
25496
25497# IFS
25498# We need space, tab and new line, in precisely that order.  Quoting is
25499# there to prevent editors from complaining about space-tab.
25500# (If _AS_PATH_WALK were called with IFS unset, it would disable word
25501# splitting by setting IFS to empty value.)
25502IFS=" ""	$as_nl"
25503
25504# Find who we are.  Look in the path if we contain no directory separator.
25505as_myself=
25506case $0 in #((
25507  *[\\/]* ) as_myself=$0 ;;
25508  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25509for as_dir in $PATH
25510do
25511  IFS=$as_save_IFS
25512  test -z "$as_dir" && as_dir=.
25513    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
25514  done
25515IFS=$as_save_IFS
25516
25517     ;;
25518esac
25519# We did not find ourselves, most probably we were run as `sh COMMAND'
25520# in which case we are not to be found in the path.
25521if test "x$as_myself" = x; then
25522  as_myself=$0
25523fi
25524if test ! -f "$as_myself"; then
25525  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
25526  exit 1
25527fi
25528
25529# Unset variables that we do not need and which cause bugs (e.g. in
25530# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
25531# suppresses any "Segmentation fault" message there.  '((' could
25532# trigger a bug in pdksh 5.2.14.
25533for as_var in BASH_ENV ENV MAIL MAILPATH
25534do eval test x\${$as_var+set} = xset \
25535  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
25536done
25537PS1='$ '
25538PS2='> '
25539PS4='+ '
25540
25541# NLS nuisances.
25542LC_ALL=C
25543export LC_ALL
25544LANGUAGE=C
25545export LANGUAGE
25546
25547# CDPATH.
25548(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
25549
25550
25551# as_fn_error STATUS ERROR [LINENO LOG_FD]
25552# ----------------------------------------
25553# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
25554# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
25555# script with STATUS, using 1 if that was 0.
25556as_fn_error ()
25557{
25558  as_status=$1; test $as_status -eq 0 && as_status=1
25559  if test "$4"; then
25560    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
25561    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
25562  fi
25563  $as_echo "$as_me: error: $2" >&2
25564  as_fn_exit $as_status
25565} # as_fn_error
25566
25567
25568# as_fn_set_status STATUS
25569# -----------------------
25570# Set $? to STATUS, without forking.
25571as_fn_set_status ()
25572{
25573  return $1
25574} # as_fn_set_status
25575
25576# as_fn_exit STATUS
25577# -----------------
25578# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
25579as_fn_exit ()
25580{
25581  set +e
25582  as_fn_set_status $1
25583  exit $1
25584} # as_fn_exit
25585
25586# as_fn_unset VAR
25587# ---------------
25588# Portably unset VAR.
25589as_fn_unset ()
25590{
25591  { eval $1=; unset $1;}
25592}
25593as_unset=as_fn_unset
25594# as_fn_append VAR VALUE
25595# ----------------------
25596# Append the text in VALUE to the end of the definition contained in VAR. Take
25597# advantage of any shell optimizations that allow amortized linear growth over
25598# repeated appends, instead of the typical quadratic growth present in naive
25599# implementations.
25600if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
25601  eval 'as_fn_append ()
25602  {
25603    eval $1+=\$2
25604  }'
25605else
25606  as_fn_append ()
25607  {
25608    eval $1=\$$1\$2
25609  }
25610fi # as_fn_append
25611
25612# as_fn_arith ARG...
25613# ------------------
25614# Perform arithmetic evaluation on the ARGs, and store the result in the
25615# global $as_val. Take advantage of shells that can avoid forks. The arguments
25616# must be portable across $(()) and expr.
25617if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
25618  eval 'as_fn_arith ()
25619  {
25620    as_val=$(( $* ))
25621  }'
25622else
25623  as_fn_arith ()
25624  {
25625    as_val=`expr "$@" || test $? -eq 1`
25626  }
25627fi # as_fn_arith
25628
25629
25630if expr a : '\(a\)' >/dev/null 2>&1 &&
25631   test "X`expr 00001 : '.*\(...\)'`" = X001; then
25632  as_expr=expr
25633else
25634  as_expr=false
25635fi
25636
25637if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
25638  as_basename=basename
25639else
25640  as_basename=false
25641fi
25642
25643if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
25644  as_dirname=dirname
25645else
25646  as_dirname=false
25647fi
25648
25649as_me=`$as_basename -- "$0" ||
25650$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
25651	 X"$0" : 'X\(//\)$' \| \
25652	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
25653$as_echo X/"$0" |
25654    sed '/^.*\/\([^/][^/]*\)\/*$/{
25655	    s//\1/
25656	    q
25657	  }
25658	  /^X\/\(\/\/\)$/{
25659	    s//\1/
25660	    q
25661	  }
25662	  /^X\/\(\/\).*/{
25663	    s//\1/
25664	    q
25665	  }
25666	  s/.*/./; q'`
25667
25668# Avoid depending upon Character Ranges.
25669as_cr_letters='abcdefghijklmnopqrstuvwxyz'
25670as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
25671as_cr_Letters=$as_cr_letters$as_cr_LETTERS
25672as_cr_digits='0123456789'
25673as_cr_alnum=$as_cr_Letters$as_cr_digits
25674
25675ECHO_C= ECHO_N= ECHO_T=
25676case `echo -n x` in #(((((
25677-n*)
25678  case `echo 'xy\c'` in
25679  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
25680  xy)  ECHO_C='\c';;
25681  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
25682       ECHO_T='	';;
25683  esac;;
25684*)
25685  ECHO_N='-n';;
25686esac
25687
25688rm -f conf$$ conf$$.exe conf$$.file
25689if test -d conf$$.dir; then
25690  rm -f conf$$.dir/conf$$.file
25691else
25692  rm -f conf$$.dir
25693  mkdir conf$$.dir 2>/dev/null
25694fi
25695if (echo >conf$$.file) 2>/dev/null; then
25696  if ln -s conf$$.file conf$$ 2>/dev/null; then
25697    as_ln_s='ln -s'
25698    # ... but there are two gotchas:
25699    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
25700    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
25701    # In both cases, we have to default to `cp -pR'.
25702    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
25703      as_ln_s='cp -pR'
25704  elif ln conf$$.file conf$$ 2>/dev/null; then
25705    as_ln_s=ln
25706  else
25707    as_ln_s='cp -pR'
25708  fi
25709else
25710  as_ln_s='cp -pR'
25711fi
25712rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
25713rmdir conf$$.dir 2>/dev/null
25714
25715
25716# as_fn_mkdir_p
25717# -------------
25718# Create "$as_dir" as a directory, including parents if necessary.
25719as_fn_mkdir_p ()
25720{
25721
25722  case $as_dir in #(
25723  -*) as_dir=./$as_dir;;
25724  esac
25725  test -d "$as_dir" || eval $as_mkdir_p || {
25726    as_dirs=
25727    while :; do
25728      case $as_dir in #(
25729      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
25730      *) as_qdir=$as_dir;;
25731      esac
25732      as_dirs="'$as_qdir' $as_dirs"
25733      as_dir=`$as_dirname -- "$as_dir" ||
25734$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25735	 X"$as_dir" : 'X\(//\)[^/]' \| \
25736	 X"$as_dir" : 'X\(//\)$' \| \
25737	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
25738$as_echo X"$as_dir" |
25739    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25740	    s//\1/
25741	    q
25742	  }
25743	  /^X\(\/\/\)[^/].*/{
25744	    s//\1/
25745	    q
25746	  }
25747	  /^X\(\/\/\)$/{
25748	    s//\1/
25749	    q
25750	  }
25751	  /^X\(\/\).*/{
25752	    s//\1/
25753	    q
25754	  }
25755	  s/.*/./; q'`
25756      test -d "$as_dir" && break
25757    done
25758    test -z "$as_dirs" || eval "mkdir $as_dirs"
25759  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
25760
25761
25762} # as_fn_mkdir_p
25763if mkdir -p . 2>/dev/null; then
25764  as_mkdir_p='mkdir -p "$as_dir"'
25765else
25766  test -d ./-p && rmdir ./-p
25767  as_mkdir_p=false
25768fi
25769
25770
25771# as_fn_executable_p FILE
25772# -----------------------
25773# Test if FILE is an executable regular file.
25774as_fn_executable_p ()
25775{
25776  test -f "$1" && test -x "$1"
25777} # as_fn_executable_p
25778as_test_x='test -x'
25779as_executable_p=as_fn_executable_p
25780
25781# Sed expression to map a string onto a valid CPP name.
25782as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
25783
25784# Sed expression to map a string onto a valid variable name.
25785as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
25786
25787
25788exec 6>&1
25789## ----------------------------------- ##
25790## Main body of $CONFIG_STATUS script. ##
25791## ----------------------------------- ##
25792_ASEOF
25793test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
25794
25795cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25796# Save the log message, to keep $0 and so on meaningful, and to
25797# report actual input values of CONFIG_FILES etc. instead of their
25798# values after options handling.
25799ac_log="
25800This file was extended by subversion $as_me 1.8.10, which was
25801generated by GNU Autoconf 2.69.  Invocation command line was
25802
25803  CONFIG_FILES    = $CONFIG_FILES
25804  CONFIG_HEADERS  = $CONFIG_HEADERS
25805  CONFIG_LINKS    = $CONFIG_LINKS
25806  CONFIG_COMMANDS = $CONFIG_COMMANDS
25807  $ $0 $@
25808
25809on `(hostname || uname -n) 2>/dev/null | sed 1q`
25810"
25811
25812_ACEOF
25813
25814case $ac_config_files in *"
25815"*) set x $ac_config_files; shift; ac_config_files=$*;;
25816esac
25817
25818case $ac_config_headers in *"
25819"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
25820esac
25821
25822
25823cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25824# Files that config.status was made for.
25825config_files="$ac_config_files"
25826config_headers="$ac_config_headers"
25827config_commands="$ac_config_commands"
25828
25829_ACEOF
25830
25831cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25832ac_cs_usage="\
25833\`$as_me' instantiates files and other configuration actions
25834from templates according to the current configuration.  Unless the files
25835and actions are specified as TAGs, all are instantiated by default.
25836
25837Usage: $0 [OPTION]... [TAG]...
25838
25839  -h, --help       print this help, then exit
25840  -V, --version    print version number and configuration settings, then exit
25841      --config     print configuration, then exit
25842  -q, --quiet, --silent
25843                   do not print progress messages
25844  -d, --debug      don't remove temporary files
25845      --recheck    update $as_me by reconfiguring in the same conditions
25846      --file=FILE[:TEMPLATE]
25847                   instantiate the configuration file FILE
25848      --header=FILE[:TEMPLATE]
25849                   instantiate the configuration header FILE
25850
25851Configuration files:
25852$config_files
25853
25854Configuration headers:
25855$config_headers
25856
25857Configuration commands:
25858$config_commands
25859
25860Report bugs to <http://subversion.apache.org/>."
25861
25862_ACEOF
25863cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25864ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
25865ac_cs_version="\\
25866subversion config.status 1.8.10
25867configured by $0, generated by GNU Autoconf 2.69,
25868  with options \\"\$ac_cs_config\\"
25869
25870Copyright (C) 2012 Free Software Foundation, Inc.
25871This config.status script is free software; the Free Software Foundation
25872gives unlimited permission to copy, distribute and modify it."
25873
25874ac_pwd='$ac_pwd'
25875srcdir='$srcdir'
25876INSTALL='$INSTALL'
25877AWK='$AWK'
25878test -n "\$AWK" || AWK=awk
25879_ACEOF
25880
25881cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25882# The default lists apply if the user does not specify any file.
25883ac_need_defaults=:
25884while test $# != 0
25885do
25886  case $1 in
25887  --*=?*)
25888    ac_option=`expr "X$1" : 'X\([^=]*\)='`
25889    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
25890    ac_shift=:
25891    ;;
25892  --*=)
25893    ac_option=`expr "X$1" : 'X\([^=]*\)='`
25894    ac_optarg=
25895    ac_shift=:
25896    ;;
25897  *)
25898    ac_option=$1
25899    ac_optarg=$2
25900    ac_shift=shift
25901    ;;
25902  esac
25903
25904  case $ac_option in
25905  # Handling of the options.
25906  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
25907    ac_cs_recheck=: ;;
25908  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
25909    $as_echo "$ac_cs_version"; exit ;;
25910  --config | --confi | --conf | --con | --co | --c )
25911    $as_echo "$ac_cs_config"; exit ;;
25912  --debug | --debu | --deb | --de | --d | -d )
25913    debug=: ;;
25914  --file | --fil | --fi | --f )
25915    $ac_shift
25916    case $ac_optarg in
25917    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
25918    '') as_fn_error $? "missing file argument" ;;
25919    esac
25920    as_fn_append CONFIG_FILES " '$ac_optarg'"
25921    ac_need_defaults=false;;
25922  --header | --heade | --head | --hea )
25923    $ac_shift
25924    case $ac_optarg in
25925    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
25926    esac
25927    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
25928    ac_need_defaults=false;;
25929  --he | --h)
25930    # Conflict between --help and --header
25931    as_fn_error $? "ambiguous option: \`$1'
25932Try \`$0 --help' for more information.";;
25933  --help | --hel | -h )
25934    $as_echo "$ac_cs_usage"; exit ;;
25935  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
25936  | -silent | --silent | --silen | --sile | --sil | --si | --s)
25937    ac_cs_silent=: ;;
25938
25939  # This is an error.
25940  -*) as_fn_error $? "unrecognized option: \`$1'
25941Try \`$0 --help' for more information." ;;
25942
25943  *) as_fn_append ac_config_targets " $1"
25944     ac_need_defaults=false ;;
25945
25946  esac
25947  shift
25948done
25949
25950ac_configure_extra_args=
25951
25952if $ac_cs_silent; then
25953  exec 6>/dev/null
25954  ac_configure_extra_args="$ac_configure_extra_args --silent"
25955fi
25956
25957_ACEOF
25958cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25959if \$ac_cs_recheck; then
25960  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
25961  shift
25962  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
25963  CONFIG_SHELL='$SHELL'
25964  export CONFIG_SHELL
25965  exec "\$@"
25966fi
25967
25968_ACEOF
25969cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25970exec 5>>config.log
25971{
25972  echo
25973  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
25974## Running $as_me. ##
25975_ASBOX
25976  $as_echo "$ac_log"
25977} >&5
25978
25979_ACEOF
25980cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25981#
25982# INIT-COMMANDS
25983#
25984
25985
25986# The HP-UX ksh and POSIX shell print the target directory to stdout
25987# if CDPATH is set.
25988(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
25989
25990sed_quote_subst='$sed_quote_subst'
25991double_quote_subst='$double_quote_subst'
25992delay_variable_subst='$delay_variable_subst'
25993macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
25994macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
25995enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
25996enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
25997pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
25998enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
25999SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
26000ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
26001PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
26002host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
26003host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
26004host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
26005build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
26006build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
26007build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
26008SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
26009Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
26010GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
26011EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
26012FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
26013LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
26014NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
26015LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
26016max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
26017ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
26018exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
26019lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
26020lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
26021lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
26022lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
26023lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
26024reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
26025reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
26026OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
26027deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
26028file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
26029file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
26030want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
26031DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
26032sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
26033AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
26034AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
26035archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
26036STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
26037RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
26038old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
26039old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
26040old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
26041lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
26042CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
26043CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
26044compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
26045GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
26046lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
26047lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
26048lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
26049lt_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"`'
26050nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
26051lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
26052objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
26053MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
26054lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
26055lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
26056lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
26057lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
26058lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
26059need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
26060MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
26061DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
26062NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
26063LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
26064OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
26065OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
26066libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
26067shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
26068extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
26069archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
26070enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
26071export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
26072whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
26073compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
26074old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
26075old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
26076archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
26077archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
26078module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
26079module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
26080with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
26081allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
26082no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
26083hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
26084hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
26085hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
26086hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
26087hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
26088hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
26089hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
26090inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
26091link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
26092always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
26093export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
26094exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
26095include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
26096prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
26097postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
26098file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
26099variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
26100need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
26101need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
26102version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
26103runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
26104shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
26105shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
26106libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
26107library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
26108soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
26109install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
26110postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
26111postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
26112finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
26113finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
26114hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
26115sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
26116sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
26117hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
26118enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
26119enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
26120enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
26121old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
26122striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
26123compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
26124predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
26125postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
26126predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
26127postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
26128compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
26129LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
26130reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
26131reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
26132old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
26133compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
26134GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
26135lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
26136lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
26137lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
26138lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
26139lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
26140archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
26141enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
26142export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
26143whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
26144compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
26145old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
26146old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
26147archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
26148archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
26149module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
26150module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
26151with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
26152allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
26153no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
26154hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
26155hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
26156hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
26157hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
26158hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
26159hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
26160hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
26161inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
26162link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
26163always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
26164export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
26165exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
26166include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
26167prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
26168postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
26169file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
26170hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
26171compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
26172predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
26173postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
26174predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
26175postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
26176compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
26177
26178LTCC='$LTCC'
26179LTCFLAGS='$LTCFLAGS'
26180compiler='$compiler_DEFAULT'
26181
26182# A function that is used when there is no print builtin or printf.
26183func_fallback_echo ()
26184{
26185  eval 'cat <<_LTECHO_EOF
26186\$1
26187_LTECHO_EOF'
26188}
26189
26190# Quote evaled strings.
26191for var in SHELL \
26192ECHO \
26193PATH_SEPARATOR \
26194SED \
26195GREP \
26196EGREP \
26197FGREP \
26198LD \
26199NM \
26200LN_S \
26201lt_SP2NL \
26202lt_NL2SP \
26203reload_flag \
26204OBJDUMP \
26205deplibs_check_method \
26206file_magic_cmd \
26207file_magic_glob \
26208want_nocaseglob \
26209DLLTOOL \
26210sharedlib_from_linklib_cmd \
26211AR \
26212AR_FLAGS \
26213archiver_list_spec \
26214STRIP \
26215RANLIB \
26216CC \
26217CFLAGS \
26218compiler \
26219lt_cv_sys_global_symbol_pipe \
26220lt_cv_sys_global_symbol_to_cdecl \
26221lt_cv_sys_global_symbol_to_c_name_address \
26222lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
26223nm_file_list_spec \
26224lt_prog_compiler_no_builtin_flag \
26225lt_prog_compiler_pic \
26226lt_prog_compiler_wl \
26227lt_prog_compiler_static \
26228lt_cv_prog_compiler_c_o \
26229need_locks \
26230MANIFEST_TOOL \
26231DSYMUTIL \
26232NMEDIT \
26233LIPO \
26234OTOOL \
26235OTOOL64 \
26236shrext_cmds \
26237export_dynamic_flag_spec \
26238whole_archive_flag_spec \
26239compiler_needs_object \
26240with_gnu_ld \
26241allow_undefined_flag \
26242no_undefined_flag \
26243hardcode_libdir_flag_spec \
26244hardcode_libdir_separator \
26245exclude_expsyms \
26246include_expsyms \
26247file_list_spec \
26248variables_saved_for_relink \
26249libname_spec \
26250library_names_spec \
26251soname_spec \
26252install_override_mode \
26253finish_eval \
26254old_striplib \
26255striplib \
26256compiler_lib_search_dirs \
26257predep_objects \
26258postdep_objects \
26259predeps \
26260postdeps \
26261compiler_lib_search_path \
26262LD_CXX \
26263reload_flag_CXX \
26264compiler_CXX \
26265lt_prog_compiler_no_builtin_flag_CXX \
26266lt_prog_compiler_pic_CXX \
26267lt_prog_compiler_wl_CXX \
26268lt_prog_compiler_static_CXX \
26269lt_cv_prog_compiler_c_o_CXX \
26270export_dynamic_flag_spec_CXX \
26271whole_archive_flag_spec_CXX \
26272compiler_needs_object_CXX \
26273with_gnu_ld_CXX \
26274allow_undefined_flag_CXX \
26275no_undefined_flag_CXX \
26276hardcode_libdir_flag_spec_CXX \
26277hardcode_libdir_separator_CXX \
26278exclude_expsyms_CXX \
26279include_expsyms_CXX \
26280file_list_spec_CXX \
26281compiler_lib_search_dirs_CXX \
26282predep_objects_CXX \
26283postdep_objects_CXX \
26284predeps_CXX \
26285postdeps_CXX \
26286compiler_lib_search_path_CXX; do
26287    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
26288    *[\\\\\\\`\\"\\\$]*)
26289      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
26290      ;;
26291    *)
26292      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
26293      ;;
26294    esac
26295done
26296
26297# Double-quote double-evaled strings.
26298for var in reload_cmds \
26299old_postinstall_cmds \
26300old_postuninstall_cmds \
26301old_archive_cmds \
26302extract_expsyms_cmds \
26303old_archive_from_new_cmds \
26304old_archive_from_expsyms_cmds \
26305archive_cmds \
26306archive_expsym_cmds \
26307module_cmds \
26308module_expsym_cmds \
26309export_symbols_cmds \
26310prelink_cmds \
26311postlink_cmds \
26312postinstall_cmds \
26313postuninstall_cmds \
26314finish_cmds \
26315sys_lib_search_path_spec \
26316sys_lib_dlsearch_path_spec \
26317reload_cmds_CXX \
26318old_archive_cmds_CXX \
26319old_archive_from_new_cmds_CXX \
26320old_archive_from_expsyms_cmds_CXX \
26321archive_cmds_CXX \
26322archive_expsym_cmds_CXX \
26323module_cmds_CXX \
26324module_expsym_cmds_CXX \
26325export_symbols_cmds_CXX \
26326prelink_cmds_CXX \
26327postlink_cmds_CXX; do
26328    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
26329    *[\\\\\\\`\\"\\\$]*)
26330      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
26331      ;;
26332    *)
26333      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
26334      ;;
26335    esac
26336done
26337
26338ac_aux_dir='$ac_aux_dir'
26339xsi_shell='$xsi_shell'
26340lt_shell_append='$lt_shell_append'
26341
26342# See if we are running on zsh, and set the options which allow our
26343# commands through without removal of \ escapes INIT.
26344if test -n "\${ZSH_VERSION+set}" ; then
26345   setopt NO_GLOB_SUBST
26346fi
26347
26348
26349    PACKAGE='$PACKAGE'
26350    VERSION='$VERSION'
26351    TIMESTAMP='$TIMESTAMP'
26352    RM='$RM'
26353    ofile='$ofile'
26354
26355
26356
26357
26358
26359SED="$SED"
26360                    SVN_DB_HEADER="$SVN_DB_HEADER"
26361
26362_ACEOF
26363
26364cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26365
26366# Handling of arguments.
26367for ac_config_target in $ac_config_targets
26368do
26369  case $ac_config_target in
26370    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
26371    "subversion/svn_private_config.h.tmp") CONFIG_HEADERS="$CONFIG_HEADERS subversion/svn_private_config.h.tmp:subversion/svn_private_config.h.in" ;;
26372    "svn_private_config.h.tmp") CONFIG_COMMANDS="$CONFIG_COMMANDS svn_private_config.h.tmp" ;;
26373    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
26374    "tools/backup/hot-backup.py") CONFIG_FILES="$CONFIG_FILES tools/backup/hot-backup.py" ;;
26375    "tools/hook-scripts/commit-access-control.pl") CONFIG_FILES="$CONFIG_FILES tools/hook-scripts/commit-access-control.pl" ;;
26376    "subversion/bindings/swig/perl/native/Makefile.PL") CONFIG_FILES="$CONFIG_FILES subversion/bindings/swig/perl/native/Makefile.PL" ;;
26377    "packages/solaris/pkginfo") CONFIG_FILES="$CONFIG_FILES packages/solaris/pkginfo" ;;
26378
26379  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
26380  esac
26381done
26382
26383
26384# If the user did not use the arguments to specify the items to instantiate,
26385# then the envvar interface is used.  Set only those that are not.
26386# We use the long form for the default assignment because of an extremely
26387# bizarre bug on SunOS 4.1.3.
26388if $ac_need_defaults; then
26389  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
26390  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
26391  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
26392fi
26393
26394# Have a temporary directory for convenience.  Make it in the build tree
26395# simply because there is no reason against having it here, and in addition,
26396# creating and moving files from /tmp can sometimes cause problems.
26397# Hook for its removal unless debugging.
26398# Note that there is a small window in which the directory will not be cleaned:
26399# after its creation but before its name has been assigned to `$tmp'.
26400$debug ||
26401{
26402  tmp= ac_tmp=
26403  trap 'exit_status=$?
26404  : "${ac_tmp:=$tmp}"
26405  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
26406' 0
26407  trap 'as_fn_exit 1' 1 2 13 15
26408}
26409# Create a (secure) tmp directory for tmp files.
26410
26411{
26412  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
26413  test -d "$tmp"
26414}  ||
26415{
26416  tmp=./conf$$-$RANDOM
26417  (umask 077 && mkdir "$tmp")
26418} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
26419ac_tmp=$tmp
26420
26421# Set up the scripts for CONFIG_FILES section.
26422# No need to generate them if there are no CONFIG_FILES.
26423# This happens for instance with `./config.status config.h'.
26424if test -n "$CONFIG_FILES"; then
26425
26426
26427ac_cr=`echo X | tr X '\015'`
26428# On cygwin, bash can eat \r inside `` if the user requested igncr.
26429# But we know of no other shell where ac_cr would be empty at this
26430# point, so we can use a bashism as a fallback.
26431if test "x$ac_cr" = x; then
26432  eval ac_cr=\$\'\\r\'
26433fi
26434ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
26435if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
26436  ac_cs_awk_cr='\\r'
26437else
26438  ac_cs_awk_cr=$ac_cr
26439fi
26440
26441echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
26442_ACEOF
26443
26444
26445{
26446  echo "cat >conf$$subs.awk <<_ACEOF" &&
26447  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
26448  echo "_ACEOF"
26449} >conf$$subs.sh ||
26450  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
26451ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
26452ac_delim='%!_!# '
26453for ac_last_try in false false false false false :; do
26454  . ./conf$$subs.sh ||
26455    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
26456
26457  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
26458  if test $ac_delim_n = $ac_delim_num; then
26459    break
26460  elif $ac_last_try; then
26461    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
26462  else
26463    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26464  fi
26465done
26466rm -f conf$$subs.sh
26467
26468cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26469cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
26470_ACEOF
26471sed -n '
26472h
26473s/^/S["/; s/!.*/"]=/
26474p
26475g
26476s/^[^!]*!//
26477:repl
26478t repl
26479s/'"$ac_delim"'$//
26480t delim
26481:nl
26482h
26483s/\(.\{148\}\)..*/\1/
26484t more1
26485s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
26486p
26487n
26488b repl
26489:more1
26490s/["\\]/\\&/g; s/^/"/; s/$/"\\/
26491p
26492g
26493s/.\{148\}//
26494t nl
26495:delim
26496h
26497s/\(.\{148\}\)..*/\1/
26498t more2
26499s/["\\]/\\&/g; s/^/"/; s/$/"/
26500p
26501b
26502:more2
26503s/["\\]/\\&/g; s/^/"/; s/$/"\\/
26504p
26505g
26506s/.\{148\}//
26507t delim
26508' <conf$$subs.awk | sed '
26509/^[^""]/{
26510  N
26511  s/\n//
26512}
26513' >>$CONFIG_STATUS || ac_write_fail=1
26514rm -f conf$$subs.awk
26515cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26516_ACAWK
26517cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
26518  for (key in S) S_is_set[key] = 1
26519  FS = ""
26520
26521}
26522{
26523  line = $ 0
26524  nfields = split(line, field, "@")
26525  substed = 0
26526  len = length(field[1])
26527  for (i = 2; i < nfields; i++) {
26528    key = field[i]
26529    keylen = length(key)
26530    if (S_is_set[key]) {
26531      value = S[key]
26532      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
26533      len += length(value) + length(field[++i])
26534      substed = 1
26535    } else
26536      len += 1 + keylen
26537  }
26538
26539  print line
26540}
26541
26542_ACAWK
26543_ACEOF
26544cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26545if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
26546  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
26547else
26548  cat
26549fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
26550  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
26551_ACEOF
26552
26553# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
26554# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
26555# trailing colons and then remove the whole line if VPATH becomes empty
26556# (actually we leave an empty line to preserve line numbers).
26557if test "x$srcdir" = x.; then
26558  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
26559h
26560s///
26561s/^/:/
26562s/[	 ]*$/:/
26563s/:\$(srcdir):/:/g
26564s/:\${srcdir}:/:/g
26565s/:@srcdir@:/:/g
26566s/^:*//
26567s/:*$//
26568x
26569s/\(=[	 ]*\).*/\1/
26570G
26571s/\n//
26572s/^[^=]*=[	 ]*$//
26573}'
26574fi
26575
26576cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26577fi # test -n "$CONFIG_FILES"
26578
26579# Set up the scripts for CONFIG_HEADERS section.
26580# No need to generate them if there are no CONFIG_HEADERS.
26581# This happens for instance with `./config.status Makefile'.
26582if test -n "$CONFIG_HEADERS"; then
26583cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
26584BEGIN {
26585_ACEOF
26586
26587# Transform confdefs.h into an awk script `defines.awk', embedded as
26588# here-document in config.status, that substitutes the proper values into
26589# config.h.in to produce config.h.
26590
26591# Create a delimiter string that does not exist in confdefs.h, to ease
26592# handling of long lines.
26593ac_delim='%!_!# '
26594for ac_last_try in false false :; do
26595  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
26596  if test -z "$ac_tt"; then
26597    break
26598  elif $ac_last_try; then
26599    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
26600  else
26601    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26602  fi
26603done
26604
26605# For the awk script, D is an array of macro values keyed by name,
26606# likewise P contains macro parameters if any.  Preserve backslash
26607# newline sequences.
26608
26609ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
26610sed -n '
26611s/.\{148\}/&'"$ac_delim"'/g
26612t rset
26613:rset
26614s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
26615t def
26616d
26617:def
26618s/\\$//
26619t bsnl
26620s/["\\]/\\&/g
26621s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
26622D["\1"]=" \3"/p
26623s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
26624d
26625:bsnl
26626s/["\\]/\\&/g
26627s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
26628D["\1"]=" \3\\\\\\n"\\/p
26629t cont
26630s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
26631t cont
26632d
26633:cont
26634n
26635s/.\{148\}/&'"$ac_delim"'/g
26636t clear
26637:clear
26638s/\\$//
26639t bsnlc
26640s/["\\]/\\&/g; s/^/"/; s/$/"/p
26641d
26642:bsnlc
26643s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
26644b cont
26645' <confdefs.h | sed '
26646s/'"$ac_delim"'/"\\\
26647"/g' >>$CONFIG_STATUS || ac_write_fail=1
26648
26649cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26650  for (key in D) D_is_set[key] = 1
26651  FS = ""
26652}
26653/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
26654  line = \$ 0
26655  split(line, arg, " ")
26656  if (arg[1] == "#") {
26657    defundef = arg[2]
26658    mac1 = arg[3]
26659  } else {
26660    defundef = substr(arg[1], 2)
26661    mac1 = arg[2]
26662  }
26663  split(mac1, mac2, "(") #)
26664  macro = mac2[1]
26665  prefix = substr(line, 1, index(line, defundef) - 1)
26666  if (D_is_set[macro]) {
26667    # Preserve the white space surrounding the "#".
26668    print prefix "define", macro P[macro] D[macro]
26669    next
26670  } else {
26671    # Replace #undef with comments.  This is necessary, for example,
26672    # in the case of _POSIX_SOURCE, which is predefined and required
26673    # on some systems where configure will not decide to define it.
26674    if (defundef == "undef") {
26675      print "/*", prefix defundef, macro, "*/"
26676      next
26677    }
26678  }
26679}
26680{ print }
26681_ACAWK
26682_ACEOF
26683cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26684  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
26685fi # test -n "$CONFIG_HEADERS"
26686
26687
26688eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
26689shift
26690for ac_tag
26691do
26692  case $ac_tag in
26693  :[FHLC]) ac_mode=$ac_tag; continue;;
26694  esac
26695  case $ac_mode$ac_tag in
26696  :[FHL]*:*);;
26697  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
26698  :[FH]-) ac_tag=-:-;;
26699  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
26700  esac
26701  ac_save_IFS=$IFS
26702  IFS=:
26703  set x $ac_tag
26704  IFS=$ac_save_IFS
26705  shift
26706  ac_file=$1
26707  shift
26708
26709  case $ac_mode in
26710  :L) ac_source=$1;;
26711  :[FH])
26712    ac_file_inputs=
26713    for ac_f
26714    do
26715      case $ac_f in
26716      -) ac_f="$ac_tmp/stdin";;
26717      *) # Look for the file first in the build tree, then in the source tree
26718	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
26719	 # because $ac_f cannot contain `:'.
26720	 test -f "$ac_f" ||
26721	   case $ac_f in
26722	   [\\/$]*) false;;
26723	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
26724	   esac ||
26725	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
26726      esac
26727      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
26728      as_fn_append ac_file_inputs " '$ac_f'"
26729    done
26730
26731    # Let's still pretend it is `configure' which instantiates (i.e., don't
26732    # use $as_me), people would be surprised to read:
26733    #    /* config.h.  Generated by config.status.  */
26734    configure_input='Generated from '`
26735	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
26736	`' by configure.'
26737    if test x"$ac_file" != x-; then
26738      configure_input="$ac_file.  $configure_input"
26739      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
26740$as_echo "$as_me: creating $ac_file" >&6;}
26741    fi
26742    # Neutralize special characters interpreted by sed in replacement strings.
26743    case $configure_input in #(
26744    *\&* | *\|* | *\\* )
26745       ac_sed_conf_input=`$as_echo "$configure_input" |
26746       sed 's/[\\\\&|]/\\\\&/g'`;; #(
26747    *) ac_sed_conf_input=$configure_input;;
26748    esac
26749
26750    case $ac_tag in
26751    *:-:* | *:-) cat >"$ac_tmp/stdin" \
26752      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
26753    esac
26754    ;;
26755  esac
26756
26757  ac_dir=`$as_dirname -- "$ac_file" ||
26758$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26759	 X"$ac_file" : 'X\(//\)[^/]' \| \
26760	 X"$ac_file" : 'X\(//\)$' \| \
26761	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
26762$as_echo X"$ac_file" |
26763    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26764	    s//\1/
26765	    q
26766	  }
26767	  /^X\(\/\/\)[^/].*/{
26768	    s//\1/
26769	    q
26770	  }
26771	  /^X\(\/\/\)$/{
26772	    s//\1/
26773	    q
26774	  }
26775	  /^X\(\/\).*/{
26776	    s//\1/
26777	    q
26778	  }
26779	  s/.*/./; q'`
26780  as_dir="$ac_dir"; as_fn_mkdir_p
26781  ac_builddir=.
26782
26783case "$ac_dir" in
26784.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
26785*)
26786  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
26787  # A ".." for each directory in $ac_dir_suffix.
26788  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
26789  case $ac_top_builddir_sub in
26790  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
26791  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
26792  esac ;;
26793esac
26794ac_abs_top_builddir=$ac_pwd
26795ac_abs_builddir=$ac_pwd$ac_dir_suffix
26796# for backward compatibility:
26797ac_top_builddir=$ac_top_build_prefix
26798
26799case $srcdir in
26800  .)  # We are building in place.
26801    ac_srcdir=.
26802    ac_top_srcdir=$ac_top_builddir_sub
26803    ac_abs_top_srcdir=$ac_pwd ;;
26804  [\\/]* | ?:[\\/]* )  # Absolute name.
26805    ac_srcdir=$srcdir$ac_dir_suffix;
26806    ac_top_srcdir=$srcdir
26807    ac_abs_top_srcdir=$srcdir ;;
26808  *) # Relative name.
26809    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
26810    ac_top_srcdir=$ac_top_build_prefix$srcdir
26811    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
26812esac
26813ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
26814
26815
26816  case $ac_mode in
26817  :F)
26818  #
26819  # CONFIG_FILE
26820  #
26821
26822  case $INSTALL in
26823  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
26824  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
26825  esac
26826_ACEOF
26827
26828cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26829# If the template does not know about datarootdir, expand it.
26830# FIXME: This hack should be removed a few years after 2.60.
26831ac_datarootdir_hack=; ac_datarootdir_seen=
26832ac_sed_dataroot='
26833/datarootdir/ {
26834  p
26835  q
26836}
26837/@datadir@/p
26838/@docdir@/p
26839/@infodir@/p
26840/@localedir@/p
26841/@mandir@/p'
26842case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
26843*datarootdir*) ac_datarootdir_seen=yes;;
26844*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
26845  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
26846$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
26847_ACEOF
26848cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26849  ac_datarootdir_hack='
26850  s&@datadir@&$datadir&g
26851  s&@docdir@&$docdir&g
26852  s&@infodir@&$infodir&g
26853  s&@localedir@&$localedir&g
26854  s&@mandir@&$mandir&g
26855  s&\\\${datarootdir}&$datarootdir&g' ;;
26856esac
26857_ACEOF
26858
26859# Neutralize VPATH when `$srcdir' = `.'.
26860# Shell code in configure.ac might set extrasub.
26861# FIXME: do we really want to maintain this feature?
26862cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26863ac_sed_extra="$ac_vpsub
26864$extrasub
26865_ACEOF
26866cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26867:t
26868/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
26869s|@configure_input@|$ac_sed_conf_input|;t t
26870s&@top_builddir@&$ac_top_builddir_sub&;t t
26871s&@top_build_prefix@&$ac_top_build_prefix&;t t
26872s&@srcdir@&$ac_srcdir&;t t
26873s&@abs_srcdir@&$ac_abs_srcdir&;t t
26874s&@top_srcdir@&$ac_top_srcdir&;t t
26875s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
26876s&@builddir@&$ac_builddir&;t t
26877s&@abs_builddir@&$ac_abs_builddir&;t t
26878s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
26879s&@INSTALL@&$ac_INSTALL&;t t
26880$ac_datarootdir_hack
26881"
26882eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
26883  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
26884
26885test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
26886  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
26887  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
26888      "$ac_tmp/out"`; test -z "$ac_out"; } &&
26889  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
26890which seems to be undefined.  Please make sure it is defined" >&5
26891$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
26892which seems to be undefined.  Please make sure it is defined" >&2;}
26893
26894  rm -f "$ac_tmp/stdin"
26895  case $ac_file in
26896  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
26897  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
26898  esac \
26899  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
26900 ;;
26901  :H)
26902  #
26903  # CONFIG_HEADER
26904  #
26905  if test x"$ac_file" != x-; then
26906    {
26907      $as_echo "/* $configure_input  */" \
26908      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
26909    } >"$ac_tmp/config.h" \
26910      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
26911    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
26912      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
26913$as_echo "$as_me: $ac_file is unchanged" >&6;}
26914    else
26915      rm -f "$ac_file"
26916      mv "$ac_tmp/config.h" "$ac_file" \
26917	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
26918    fi
26919  else
26920    $as_echo "/* $configure_input  */" \
26921      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
26922      || as_fn_error $? "could not create -" "$LINENO" 5
26923  fi
26924 ;;
26925
26926  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
26927$as_echo "$as_me: executing $ac_file commands" >&6;}
26928 ;;
26929  esac
26930
26931
26932  case $ac_file$ac_mode in
26933    "libtool":C)
26934
26935    # See if we are running on zsh, and set the options which allow our
26936    # commands through without removal of \ escapes.
26937    if test -n "${ZSH_VERSION+set}" ; then
26938      setopt NO_GLOB_SUBST
26939    fi
26940
26941    cfgfile="${ofile}T"
26942    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
26943    $RM "$cfgfile"
26944
26945    cat <<_LT_EOF >> "$cfgfile"
26946#! $SHELL
26947
26948# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
26949# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
26950# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26951# NOTE: Changes made to this file will be lost: look at ltmain.sh.
26952#
26953#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
26954#                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
26955#                 Foundation, Inc.
26956#   Written by Gordon Matzigkeit, 1996
26957#
26958#   This file is part of GNU Libtool.
26959#
26960# GNU Libtool is free software; you can redistribute it and/or
26961# modify it under the terms of the GNU General Public License as
26962# published by the Free Software Foundation; either version 2 of
26963# the License, or (at your option) any later version.
26964#
26965# As a special exception to the GNU General Public License,
26966# if you distribute this file as part of a program or library that
26967# is built using GNU Libtool, you may include this file under the
26968# same distribution terms that you use for the rest of that program.
26969#
26970# GNU Libtool is distributed in the hope that it will be useful,
26971# but WITHOUT ANY WARRANTY; without even the implied warranty of
26972# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
26973# GNU General Public License for more details.
26974#
26975# You should have received a copy of the GNU General Public License
26976# along with GNU Libtool; see the file COPYING.  If not, a copy
26977# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
26978# obtained by writing to the Free Software Foundation, Inc.,
26979# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
26980
26981
26982# The names of the tagged configurations supported by this script.
26983available_tags="CXX "
26984
26985# ### BEGIN LIBTOOL CONFIG
26986
26987# Which release of libtool.m4 was used?
26988macro_version=$macro_version
26989macro_revision=$macro_revision
26990
26991# Whether or not to build shared libraries.
26992build_libtool_libs=$enable_shared
26993
26994# Whether or not to build static libraries.
26995build_old_libs=$enable_static
26996
26997# What type of objects to build.
26998pic_mode=$pic_mode
26999
27000# Whether or not to optimize for fast installation.
27001fast_install=$enable_fast_install
27002
27003# Shell to use when invoking shell scripts.
27004SHELL=$lt_SHELL
27005
27006# An echo program that protects backslashes.
27007ECHO=$lt_ECHO
27008
27009# The PATH separator for the build system.
27010PATH_SEPARATOR=$lt_PATH_SEPARATOR
27011
27012# The host system.
27013host_alias=$host_alias
27014host=$host
27015host_os=$host_os
27016
27017# The build system.
27018build_alias=$build_alias
27019build=$build
27020build_os=$build_os
27021
27022# A sed program that does not truncate output.
27023SED=$lt_SED
27024
27025# Sed that helps us avoid accidentally triggering echo(1) options like -n.
27026Xsed="\$SED -e 1s/^X//"
27027
27028# A grep program that handles long lines.
27029GREP=$lt_GREP
27030
27031# An ERE matcher.
27032EGREP=$lt_EGREP
27033
27034# A literal string matcher.
27035FGREP=$lt_FGREP
27036
27037# A BSD- or MS-compatible name lister.
27038NM=$lt_NM
27039
27040# Whether we need soft or hard links.
27041LN_S=$lt_LN_S
27042
27043# What is the maximum length of a command?
27044max_cmd_len=$max_cmd_len
27045
27046# Object file suffix (normally "o").
27047objext=$ac_objext
27048
27049# Executable file suffix (normally "").
27050exeext=$exeext
27051
27052# whether the shell understands "unset".
27053lt_unset=$lt_unset
27054
27055# turn spaces into newlines.
27056SP2NL=$lt_lt_SP2NL
27057
27058# turn newlines into spaces.
27059NL2SP=$lt_lt_NL2SP
27060
27061# convert \$build file names to \$host format.
27062to_host_file_cmd=$lt_cv_to_host_file_cmd
27063
27064# convert \$build files to toolchain format.
27065to_tool_file_cmd=$lt_cv_to_tool_file_cmd
27066
27067# An object symbol dumper.
27068OBJDUMP=$lt_OBJDUMP
27069
27070# Method to check whether dependent libraries are shared objects.
27071deplibs_check_method=$lt_deplibs_check_method
27072
27073# Command to use when deplibs_check_method = "file_magic".
27074file_magic_cmd=$lt_file_magic_cmd
27075
27076# How to find potential files when deplibs_check_method = "file_magic".
27077file_magic_glob=$lt_file_magic_glob
27078
27079# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
27080want_nocaseglob=$lt_want_nocaseglob
27081
27082# DLL creation program.
27083DLLTOOL=$lt_DLLTOOL
27084
27085# Command to associate shared and link libraries.
27086sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
27087
27088# The archiver.
27089AR=$lt_AR
27090
27091# Flags to create an archive.
27092AR_FLAGS=$lt_AR_FLAGS
27093
27094# How to feed a file listing to the archiver.
27095archiver_list_spec=$lt_archiver_list_spec
27096
27097# A symbol stripping program.
27098STRIP=$lt_STRIP
27099
27100# Commands used to install an old-style archive.
27101RANLIB=$lt_RANLIB
27102old_postinstall_cmds=$lt_old_postinstall_cmds
27103old_postuninstall_cmds=$lt_old_postuninstall_cmds
27104
27105# Whether to use a lock for old archive extraction.
27106lock_old_archive_extraction=$lock_old_archive_extraction
27107
27108# A C compiler.
27109LTCC=$lt_CC
27110
27111# LTCC compiler flags.
27112LTCFLAGS=$lt_CFLAGS
27113
27114# Take the output of nm and produce a listing of raw symbols and C names.
27115global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
27116
27117# Transform the output of nm in a proper C declaration.
27118global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
27119
27120# Transform the output of nm in a C name address pair.
27121global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
27122
27123# Transform the output of nm in a C name address pair when lib prefix is needed.
27124global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
27125
27126# Specify filename containing input files for \$NM.
27127nm_file_list_spec=$lt_nm_file_list_spec
27128
27129# The root where to search for dependent libraries,and in which our libraries should be installed.
27130lt_sysroot=$lt_sysroot
27131
27132# The name of the directory that contains temporary libtool files.
27133objdir=$objdir
27134
27135# Used to examine libraries when file_magic_cmd begins with "file".
27136MAGIC_CMD=$MAGIC_CMD
27137
27138# Must we lock files when doing compilation?
27139need_locks=$lt_need_locks
27140
27141# Manifest tool.
27142MANIFEST_TOOL=$lt_MANIFEST_TOOL
27143
27144# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
27145DSYMUTIL=$lt_DSYMUTIL
27146
27147# Tool to change global to local symbols on Mac OS X.
27148NMEDIT=$lt_NMEDIT
27149
27150# Tool to manipulate fat objects and archives on Mac OS X.
27151LIPO=$lt_LIPO
27152
27153# ldd/readelf like tool for Mach-O binaries on Mac OS X.
27154OTOOL=$lt_OTOOL
27155
27156# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
27157OTOOL64=$lt_OTOOL64
27158
27159# Old archive suffix (normally "a").
27160libext=$libext
27161
27162# Shared library suffix (normally ".so").
27163shrext_cmds=$lt_shrext_cmds
27164
27165# The commands to extract the exported symbol list from a shared archive.
27166extract_expsyms_cmds=$lt_extract_expsyms_cmds
27167
27168# Variables whose values should be saved in libtool wrapper scripts and
27169# restored at link time.
27170variables_saved_for_relink=$lt_variables_saved_for_relink
27171
27172# Do we need the "lib" prefix for modules?
27173need_lib_prefix=$need_lib_prefix
27174
27175# Do we need a version for libraries?
27176need_version=$need_version
27177
27178# Library versioning type.
27179version_type=$version_type
27180
27181# Shared library runtime path variable.
27182runpath_var=$runpath_var
27183
27184# Shared library path variable.
27185shlibpath_var=$shlibpath_var
27186
27187# Is shlibpath searched before the hard-coded library search path?
27188shlibpath_overrides_runpath=$shlibpath_overrides_runpath
27189
27190# Format of library name prefix.
27191libname_spec=$lt_libname_spec
27192
27193# List of archive names.  First name is the real one, the rest are links.
27194# The last name is the one that the linker finds with -lNAME
27195library_names_spec=$lt_library_names_spec
27196
27197# The coded name of the library, if different from the real name.
27198soname_spec=$lt_soname_spec
27199
27200# Permission mode override for installation of shared libraries.
27201install_override_mode=$lt_install_override_mode
27202
27203# Command to use after installation of a shared archive.
27204postinstall_cmds=$lt_postinstall_cmds
27205
27206# Command to use after uninstallation of a shared archive.
27207postuninstall_cmds=$lt_postuninstall_cmds
27208
27209# Commands used to finish a libtool library installation in a directory.
27210finish_cmds=$lt_finish_cmds
27211
27212# As "finish_cmds", except a single script fragment to be evaled but
27213# not shown.
27214finish_eval=$lt_finish_eval
27215
27216# Whether we should hardcode library paths into libraries.
27217hardcode_into_libs=$hardcode_into_libs
27218
27219# Compile-time system search path for libraries.
27220sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
27221
27222# Run-time system search path for libraries.
27223sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
27224
27225# Whether dlopen is supported.
27226dlopen_support=$enable_dlopen
27227
27228# Whether dlopen of programs is supported.
27229dlopen_self=$enable_dlopen_self
27230
27231# Whether dlopen of statically linked programs is supported.
27232dlopen_self_static=$enable_dlopen_self_static
27233
27234# Commands to strip libraries.
27235old_striplib=$lt_old_striplib
27236striplib=$lt_striplib
27237
27238
27239# The linker used to build libraries.
27240LD=$lt_LD
27241
27242# How to create reloadable object files.
27243reload_flag=$lt_reload_flag
27244reload_cmds=$lt_reload_cmds
27245
27246# Commands used to build an old-style archive.
27247old_archive_cmds=$lt_old_archive_cmds
27248
27249# A language specific compiler.
27250CC=$lt_compiler
27251
27252# Is the compiler the GNU compiler?
27253with_gcc=$GCC
27254
27255# Compiler flag to turn off builtin functions.
27256no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
27257
27258# Additional compiler flags for building library objects.
27259pic_flag=$lt_lt_prog_compiler_pic
27260
27261# How to pass a linker flag through the compiler.
27262wl=$lt_lt_prog_compiler_wl
27263
27264# Compiler flag to prevent dynamic linking.
27265link_static_flag=$lt_lt_prog_compiler_static
27266
27267# Does compiler simultaneously support -c and -o options?
27268compiler_c_o=$lt_lt_cv_prog_compiler_c_o
27269
27270# Whether or not to add -lc for building shared libraries.
27271build_libtool_need_lc=$archive_cmds_need_lc
27272
27273# Whether or not to disallow shared libs when runtime libs are static.
27274allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
27275
27276# Compiler flag to allow reflexive dlopens.
27277export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
27278
27279# Compiler flag to generate shared objects directly from archives.
27280whole_archive_flag_spec=$lt_whole_archive_flag_spec
27281
27282# Whether the compiler copes with passing no objects directly.
27283compiler_needs_object=$lt_compiler_needs_object
27284
27285# Create an old-style archive from a shared archive.
27286old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
27287
27288# Create a temporary old-style archive to link instead of a shared archive.
27289old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
27290
27291# Commands used to build a shared archive.
27292archive_cmds=$lt_archive_cmds
27293archive_expsym_cmds=$lt_archive_expsym_cmds
27294
27295# Commands used to build a loadable module if different from building
27296# a shared archive.
27297module_cmds=$lt_module_cmds
27298module_expsym_cmds=$lt_module_expsym_cmds
27299
27300# Whether we are building with GNU ld or not.
27301with_gnu_ld=$lt_with_gnu_ld
27302
27303# Flag that allows shared libraries with undefined symbols to be built.
27304allow_undefined_flag=$lt_allow_undefined_flag
27305
27306# Flag that enforces no undefined symbols.
27307no_undefined_flag=$lt_no_undefined_flag
27308
27309# Flag to hardcode \$libdir into a binary during linking.
27310# This must work even if \$libdir does not exist
27311hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
27312
27313# Whether we need a single "-rpath" flag with a separated argument.
27314hardcode_libdir_separator=$lt_hardcode_libdir_separator
27315
27316# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
27317# DIR into the resulting binary.
27318hardcode_direct=$hardcode_direct
27319
27320# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
27321# DIR into the resulting binary and the resulting library dependency is
27322# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
27323# library is relocated.
27324hardcode_direct_absolute=$hardcode_direct_absolute
27325
27326# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
27327# into the resulting binary.
27328hardcode_minus_L=$hardcode_minus_L
27329
27330# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
27331# into the resulting binary.
27332hardcode_shlibpath_var=$hardcode_shlibpath_var
27333
27334# Set to "yes" if building a shared library automatically hardcodes DIR
27335# into the library and all subsequent libraries and executables linked
27336# against it.
27337hardcode_automatic=$hardcode_automatic
27338
27339# Set to yes if linker adds runtime paths of dependent libraries
27340# to runtime path list.
27341inherit_rpath=$inherit_rpath
27342
27343# Whether libtool must link a program against all its dependency libraries.
27344link_all_deplibs=$link_all_deplibs
27345
27346# Set to "yes" if exported symbols are required.
27347always_export_symbols=$always_export_symbols
27348
27349# The commands to list exported symbols.
27350export_symbols_cmds=$lt_export_symbols_cmds
27351
27352# Symbols that should not be listed in the preloaded symbols.
27353exclude_expsyms=$lt_exclude_expsyms
27354
27355# Symbols that must always be exported.
27356include_expsyms=$lt_include_expsyms
27357
27358# Commands necessary for linking programs (against libraries) with templates.
27359prelink_cmds=$lt_prelink_cmds
27360
27361# Commands necessary for finishing linking programs.
27362postlink_cmds=$lt_postlink_cmds
27363
27364# Specify filename containing input files.
27365file_list_spec=$lt_file_list_spec
27366
27367# How to hardcode a shared library path into an executable.
27368hardcode_action=$hardcode_action
27369
27370# The directories searched by this compiler when creating a shared library.
27371compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
27372
27373# Dependencies to place before and after the objects being linked to
27374# create a shared library.
27375predep_objects=$lt_predep_objects
27376postdep_objects=$lt_postdep_objects
27377predeps=$lt_predeps
27378postdeps=$lt_postdeps
27379
27380# The library search path used internally by the compiler when linking
27381# a shared library.
27382compiler_lib_search_path=$lt_compiler_lib_search_path
27383
27384# ### END LIBTOOL CONFIG
27385
27386_LT_EOF
27387
27388  case $host_os in
27389  aix3*)
27390    cat <<\_LT_EOF >> "$cfgfile"
27391# AIX sometimes has problems with the GCC collect2 program.  For some
27392# reason, if we set the COLLECT_NAMES environment variable, the problems
27393# vanish in a puff of smoke.
27394if test "X${COLLECT_NAMES+set}" != Xset; then
27395  COLLECT_NAMES=
27396  export COLLECT_NAMES
27397fi
27398_LT_EOF
27399    ;;
27400  esac
27401
27402
27403ltmain="$ac_aux_dir/ltmain.sh"
27404
27405
27406  # We use sed instead of cat because bash on DJGPP gets confused if
27407  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
27408  # text mode, it properly converts lines to CR/LF.  This bash problem
27409  # is reportedly fixed, but why not run on old versions too?
27410  sed '$q' "$ltmain" >> "$cfgfile" \
27411     || (rm -f "$cfgfile"; exit 1)
27412
27413  if test x"$xsi_shell" = xyes; then
27414  sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
27415func_dirname ()\
27416{\
27417\    case ${1} in\
27418\      */*) func_dirname_result="${1%/*}${2}" ;;\
27419\      *  ) func_dirname_result="${3}" ;;\
27420\    esac\
27421} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
27422  && mv -f "$cfgfile.tmp" "$cfgfile" \
27423    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
27424test 0 -eq $? || _lt_function_replace_fail=:
27425
27426
27427  sed -e '/^func_basename ()$/,/^} # func_basename /c\
27428func_basename ()\
27429{\
27430\    func_basename_result="${1##*/}"\
27431} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
27432  && mv -f "$cfgfile.tmp" "$cfgfile" \
27433    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
27434test 0 -eq $? || _lt_function_replace_fail=:
27435
27436
27437  sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
27438func_dirname_and_basename ()\
27439{\
27440\    case ${1} in\
27441\      */*) func_dirname_result="${1%/*}${2}" ;;\
27442\      *  ) func_dirname_result="${3}" ;;\
27443\    esac\
27444\    func_basename_result="${1##*/}"\
27445} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
27446  && mv -f "$cfgfile.tmp" "$cfgfile" \
27447    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
27448test 0 -eq $? || _lt_function_replace_fail=:
27449
27450
27451  sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
27452func_stripname ()\
27453{\
27454\    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
27455\    # positional parameters, so assign one to ordinary parameter first.\
27456\    func_stripname_result=${3}\
27457\    func_stripname_result=${func_stripname_result#"${1}"}\
27458\    func_stripname_result=${func_stripname_result%"${2}"}\
27459} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
27460  && mv -f "$cfgfile.tmp" "$cfgfile" \
27461    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
27462test 0 -eq $? || _lt_function_replace_fail=:
27463
27464
27465  sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
27466func_split_long_opt ()\
27467{\
27468\    func_split_long_opt_name=${1%%=*}\
27469\    func_split_long_opt_arg=${1#*=}\
27470} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
27471  && mv -f "$cfgfile.tmp" "$cfgfile" \
27472    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
27473test 0 -eq $? || _lt_function_replace_fail=:
27474
27475
27476  sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
27477func_split_short_opt ()\
27478{\
27479\    func_split_short_opt_arg=${1#??}\
27480\    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
27481} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
27482  && mv -f "$cfgfile.tmp" "$cfgfile" \
27483    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
27484test 0 -eq $? || _lt_function_replace_fail=:
27485
27486
27487  sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
27488func_lo2o ()\
27489{\
27490\    case ${1} in\
27491\      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
27492\      *)    func_lo2o_result=${1} ;;\
27493\    esac\
27494} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
27495  && mv -f "$cfgfile.tmp" "$cfgfile" \
27496    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
27497test 0 -eq $? || _lt_function_replace_fail=:
27498
27499
27500  sed -e '/^func_xform ()$/,/^} # func_xform /c\
27501func_xform ()\
27502{\
27503    func_xform_result=${1%.*}.lo\
27504} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
27505  && mv -f "$cfgfile.tmp" "$cfgfile" \
27506    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
27507test 0 -eq $? || _lt_function_replace_fail=:
27508
27509
27510  sed -e '/^func_arith ()$/,/^} # func_arith /c\
27511func_arith ()\
27512{\
27513    func_arith_result=$(( $* ))\
27514} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
27515  && mv -f "$cfgfile.tmp" "$cfgfile" \
27516    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
27517test 0 -eq $? || _lt_function_replace_fail=:
27518
27519
27520  sed -e '/^func_len ()$/,/^} # func_len /c\
27521func_len ()\
27522{\
27523    func_len_result=${#1}\
27524} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
27525  && mv -f "$cfgfile.tmp" "$cfgfile" \
27526    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
27527test 0 -eq $? || _lt_function_replace_fail=:
27528
27529fi
27530
27531if test x"$lt_shell_append" = xyes; then
27532  sed -e '/^func_append ()$/,/^} # func_append /c\
27533func_append ()\
27534{\
27535    eval "${1}+=\\${2}"\
27536} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
27537  && mv -f "$cfgfile.tmp" "$cfgfile" \
27538    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
27539test 0 -eq $? || _lt_function_replace_fail=:
27540
27541
27542  sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
27543func_append_quoted ()\
27544{\
27545\    func_quote_for_eval "${2}"\
27546\    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
27547} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
27548  && mv -f "$cfgfile.tmp" "$cfgfile" \
27549    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
27550test 0 -eq $? || _lt_function_replace_fail=:
27551
27552
27553  # Save a `func_append' function call where possible by direct use of '+='
27554  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
27555    && mv -f "$cfgfile.tmp" "$cfgfile" \
27556      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
27557  test 0 -eq $? || _lt_function_replace_fail=:
27558else
27559  # Save a `func_append' function call even when '+=' is not available
27560  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
27561    && mv -f "$cfgfile.tmp" "$cfgfile" \
27562      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
27563  test 0 -eq $? || _lt_function_replace_fail=:
27564fi
27565
27566if test x"$_lt_function_replace_fail" = x":"; then
27567  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
27568$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
27569fi
27570
27571
27572   mv -f "$cfgfile" "$ofile" ||
27573    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
27574  chmod +x "$ofile"
27575
27576
27577    cat <<_LT_EOF >> "$ofile"
27578
27579# ### BEGIN LIBTOOL TAG CONFIG: CXX
27580
27581# The linker used to build libraries.
27582LD=$lt_LD_CXX
27583
27584# How to create reloadable object files.
27585reload_flag=$lt_reload_flag_CXX
27586reload_cmds=$lt_reload_cmds_CXX
27587
27588# Commands used to build an old-style archive.
27589old_archive_cmds=$lt_old_archive_cmds_CXX
27590
27591# A language specific compiler.
27592CC=$lt_compiler_CXX
27593
27594# Is the compiler the GNU compiler?
27595with_gcc=$GCC_CXX
27596
27597# Compiler flag to turn off builtin functions.
27598no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
27599
27600# Additional compiler flags for building library objects.
27601pic_flag=$lt_lt_prog_compiler_pic_CXX
27602
27603# How to pass a linker flag through the compiler.
27604wl=$lt_lt_prog_compiler_wl_CXX
27605
27606# Compiler flag to prevent dynamic linking.
27607link_static_flag=$lt_lt_prog_compiler_static_CXX
27608
27609# Does compiler simultaneously support -c and -o options?
27610compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
27611
27612# Whether or not to add -lc for building shared libraries.
27613build_libtool_need_lc=$archive_cmds_need_lc_CXX
27614
27615# Whether or not to disallow shared libs when runtime libs are static.
27616allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
27617
27618# Compiler flag to allow reflexive dlopens.
27619export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
27620
27621# Compiler flag to generate shared objects directly from archives.
27622whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
27623
27624# Whether the compiler copes with passing no objects directly.
27625compiler_needs_object=$lt_compiler_needs_object_CXX
27626
27627# Create an old-style archive from a shared archive.
27628old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
27629
27630# Create a temporary old-style archive to link instead of a shared archive.
27631old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
27632
27633# Commands used to build a shared archive.
27634archive_cmds=$lt_archive_cmds_CXX
27635archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
27636
27637# Commands used to build a loadable module if different from building
27638# a shared archive.
27639module_cmds=$lt_module_cmds_CXX
27640module_expsym_cmds=$lt_module_expsym_cmds_CXX
27641
27642# Whether we are building with GNU ld or not.
27643with_gnu_ld=$lt_with_gnu_ld_CXX
27644
27645# Flag that allows shared libraries with undefined symbols to be built.
27646allow_undefined_flag=$lt_allow_undefined_flag_CXX
27647
27648# Flag that enforces no undefined symbols.
27649no_undefined_flag=$lt_no_undefined_flag_CXX
27650
27651# Flag to hardcode \$libdir into a binary during linking.
27652# This must work even if \$libdir does not exist
27653hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
27654
27655# Whether we need a single "-rpath" flag with a separated argument.
27656hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
27657
27658# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
27659# DIR into the resulting binary.
27660hardcode_direct=$hardcode_direct_CXX
27661
27662# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
27663# DIR into the resulting binary and the resulting library dependency is
27664# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
27665# library is relocated.
27666hardcode_direct_absolute=$hardcode_direct_absolute_CXX
27667
27668# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
27669# into the resulting binary.
27670hardcode_minus_L=$hardcode_minus_L_CXX
27671
27672# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
27673# into the resulting binary.
27674hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
27675
27676# Set to "yes" if building a shared library automatically hardcodes DIR
27677# into the library and all subsequent libraries and executables linked
27678# against it.
27679hardcode_automatic=$hardcode_automatic_CXX
27680
27681# Set to yes if linker adds runtime paths of dependent libraries
27682# to runtime path list.
27683inherit_rpath=$inherit_rpath_CXX
27684
27685# Whether libtool must link a program against all its dependency libraries.
27686link_all_deplibs=$link_all_deplibs_CXX
27687
27688# Set to "yes" if exported symbols are required.
27689always_export_symbols=$always_export_symbols_CXX
27690
27691# The commands to list exported symbols.
27692export_symbols_cmds=$lt_export_symbols_cmds_CXX
27693
27694# Symbols that should not be listed in the preloaded symbols.
27695exclude_expsyms=$lt_exclude_expsyms_CXX
27696
27697# Symbols that must always be exported.
27698include_expsyms=$lt_include_expsyms_CXX
27699
27700# Commands necessary for linking programs (against libraries) with templates.
27701prelink_cmds=$lt_prelink_cmds_CXX
27702
27703# Commands necessary for finishing linking programs.
27704postlink_cmds=$lt_postlink_cmds_CXX
27705
27706# Specify filename containing input files.
27707file_list_spec=$lt_file_list_spec_CXX
27708
27709# How to hardcode a shared library path into an executable.
27710hardcode_action=$hardcode_action_CXX
27711
27712# The directories searched by this compiler when creating a shared library.
27713compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
27714
27715# Dependencies to place before and after the objects being linked to
27716# create a shared library.
27717predep_objects=$lt_predep_objects_CXX
27718postdep_objects=$lt_postdep_objects_CXX
27719predeps=$lt_predeps_CXX
27720postdeps=$lt_postdeps_CXX
27721
27722# The library search path used internally by the compiler when linking
27723# a shared library.
27724compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
27725
27726# ### END LIBTOOL TAG CONFIG: CXX
27727_LT_EOF
27728
27729 ;;
27730    "svn_private_config.h.tmp":C) svn_cf=subversion/svn_private_config.h;
27731                    $SED -e "s/@SVN_DB_HEADER@/$SVN_DB_HEADER/" $svn_cf.tmp > $svn_cf.tmp.new
27732                    cmp -s $svn_cf.tmp.new $svn_cf || mv -f $svn_cf.tmp.new $svn_cf
27733                    rm -f $svn_cf.tmp.new $svn_cf.tmp ;;
27734    "tools/backup/hot-backup.py":F) chmod +x tools/backup/hot-backup.py ;;
27735    "tools/hook-scripts/commit-access-control.pl":F) chmod +x tools/hook-scripts/commit-access-control.pl ;;
27736    "subversion/bindings/swig/perl/native/Makefile.PL":F) chmod +x subversion/bindings/swig/perl/native/Makefile.PL ;;
27737    "packages/solaris/pkginfo":F) chmod +x packages/solaris/pkginfo ;;
27738
27739  esac
27740done # for ac_tag
27741
27742
27743as_fn_exit 0
27744_ACEOF
27745ac_clean_files=$ac_clean_files_save
27746
27747test $ac_write_fail = 0 ||
27748  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
27749
27750
27751# configure is writing to config.log, and then calls config.status.
27752# config.status does its own redirection, appending to config.log.
27753# Unfortunately, on DOS this fails, as config.log is still kept open
27754# by configure, so config.status won't be able to write to it; its
27755# output is simply discarded.  So we exec the FD to /dev/null,
27756# effectively closing config.log, so it can be properly (re)opened and
27757# appended to by config.status.  When coming back to configure, we
27758# need to make the FD available again.
27759if test "$no_create" != yes; then
27760  ac_cs_success=:
27761  ac_config_status_args=
27762  test "$silent" = yes &&
27763    ac_config_status_args="$ac_config_status_args --quiet"
27764  exec 5>/dev/null
27765  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
27766  exec 5>>config.log
27767  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
27768  # would make configure fail if this is the last instruction.
27769  $ac_cs_success || as_fn_exit 1
27770fi
27771if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
27772  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
27773$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
27774fi
27775
27776
27777# ==== Print final messages to user ==========================================
27778
27779
27780if test "$svn_have_berkeley_db" = "no6" && test "$enable_bdb6" != "no"; then
27781  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: We have configured without BDB filesystem support
27782
27783
27784Berkeley DB 6 was found, but not used.  Please re-run configure (see
27785./config.nice) with the '--enable-bdb6' flag to use it,
27786or explicitly specify '--disable-bdb6' or '--without-berkeley-db'
27787to silence this warning.
27788
27789Please note that some versions of Berkeley DB 6+ are under the GNU Affero
27790General Public License, version 3:
27791https://oss.oracle.com/pipermail/bdb/2013-June/000056.html
27792
27793The AGPL-3.0 licence may impose special requirements for making available
27794source code of server-side software.  The text of the licence is:
27795https://www.gnu.org/licenses/agpl-3.0.html
27796http://opensource.org/licenses/AGPL-3.0
27797
27798The Berkeley DB backend to Subversion is deprecated; see
27799http://subversion.apache.org/docs/release-notes/1.8#bdb-deprecated
27800
27801The Subversion developers have not tested Subversion with Berkeley DB 6 for
27802technical problems or bugs.
27803" >&5
27804$as_echo "$as_me: WARNING: We have configured without BDB filesystem support
27805
27806
27807Berkeley DB 6 was found, but not used.  Please re-run configure (see
27808./config.nice) with the '--enable-bdb6' flag to use it,
27809or explicitly specify '--disable-bdb6' or '--without-berkeley-db'
27810to silence this warning.
27811
27812Please note that some versions of Berkeley DB 6+ are under the GNU Affero
27813General Public License, version 3:
27814https://oss.oracle.com/pipermail/bdb/2013-June/000056.html
27815
27816The AGPL-3.0 licence may impose special requirements for making available
27817source code of server-side software.  The text of the licence is:
27818https://www.gnu.org/licenses/agpl-3.0.html
27819http://opensource.org/licenses/AGPL-3.0
27820
27821The Berkeley DB backend to Subversion is deprecated; see
27822http://subversion.apache.org/docs/release-notes/1.8#bdb-deprecated
27823
27824The Subversion developers have not tested Subversion with Berkeley DB 6 for
27825technical problems or bugs.
27826" >&2;}
27827fi
27828